@zsviczian/kplex-web 0.0.2 → 0.0.3

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/cdn.js CHANGED
@@ -1,15 +1,772 @@
1
- /*! K-Plex Web 0.0.2 | AGPL-3.0-only | Corresponding source: https://github.com/zsviczian/kplex/tree/34c94e334c88c7984fa7efea65188bb9d904548d */
2
- var zb=Object.create;var Nd=Object.defineProperty;var Cb=Object.getOwnPropertyDescriptor;var Ob=Object.getOwnPropertyNames;var Db=Object.getPrototypeOf,_b=Object.prototype.hasOwnProperty;var mn=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Hb=(t,e,n,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Ob(e))!_b.call(t,a)&&a!==n&&Nd(t,a,{get:()=>e[a],enumerable:!(l=Cb(e,a))||l.enumerable});return t};var P=(t,e,n)=>(n=t!=null?zb(Db(t)):{},Hb(e||!t||!t.__esModule?Nd(n,"default",{value:t,enumerable:!0}):n,t));var Ld=mn(yt=>{"use strict";function Gr(t,e){var n=t.length;t.push(e);t:for(;0<n;){var l=n-1>>>1,a=t[l];if(0<zu(a,e))t[l]=e,t[n]=a,n=l;else break t}}function hn(t){return t.length===0?null:t[0]}function Ou(t){if(t.length===0)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var l=0,a=t.length,i=a>>>1;l<i;){var u=2*(l+1)-1,o=t[u],r=u+1,c=t[r];if(0>zu(o,n))r<a&&0>zu(c,o)?(t[l]=c,t[r]=n,l=r):(t[l]=o,t[u]=n,l=u);else if(r<a&&0>zu(c,n))t[l]=c,t[r]=n,l=r;else break t}}return e}function zu(t,e){var n=t.sortIndex-e.sortIndex;return n!==0?n:t.id-e.id}yt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(wd=performance,yt.unstable_now=function(){return wd.now()}):(Ur=Date,Rd=Ur.now(),yt.unstable_now=function(){return Ur.now()-Rd});var wd,Ur,Rd,Ln=[],tl=[],Lb=1,Xe=null,te=3,Yr=!1,yi=!1,bi=!1,qr=!1,Cd=typeof setTimeout=="function"?setTimeout:null,Od=typeof clearTimeout=="function"?clearTimeout:null,Ad=typeof setImmediate<"u"?setImmediate:null;function Cu(t){for(var e=hn(tl);e!==null;){if(e.callback===null)Ou(tl);else if(e.startTime<=t)Ou(tl),e.sortIndex=e.expirationTime,Gr(Ln,e);else break;e=hn(tl)}}function Xr(t){if(bi=!1,Cu(t),!yi)if(hn(Ln)!==null)yi=!0,ha||(ha=!0,ma());else{var e=hn(tl);e!==null&&jr(Xr,e.startTime-t)}}var ha=!1,vi=-1,Dd=5,_d=-1;function Hd(){return qr?!0:!(yt.unstable_now()-_d<Dd)}function Br(){if(qr=!1,ha){var t=yt.unstable_now();_d=t;var e=!0;try{t:{yi=!1,bi&&(bi=!1,Od(vi),vi=-1),Yr=!0;var n=te;try{e:{for(Cu(t),Xe=hn(Ln);Xe!==null&&!(Xe.expirationTime>t&&Hd());){var l=Xe.callback;if(typeof l=="function"){Xe.callback=null,te=Xe.priorityLevel;var a=l(Xe.expirationTime<=t);if(t=yt.unstable_now(),typeof a=="function"){Xe.callback=a,Cu(t),e=!0;break e}Xe===hn(Ln)&&Ou(Ln),Cu(t)}else Ou(Ln);Xe=hn(Ln)}if(Xe!==null)e=!0;else{var i=hn(tl);i!==null&&jr(Xr,i.startTime-t),e=!1}}break t}finally{Xe=null,te=n,Yr=!1}e=void 0}}finally{e?ma():ha=!1}}}var ma;typeof Ad=="function"?ma=function(){Ad(Br)}:typeof MessageChannel<"u"?(Vr=new MessageChannel,zd=Vr.port2,Vr.port1.onmessage=Br,ma=function(){zd.postMessage(null)}):ma=function(){Cd(Br,0)};var Vr,zd;function jr(t,e){vi=Cd(function(){t(yt.unstable_now())},e)}yt.unstable_IdlePriority=5;yt.unstable_ImmediatePriority=1;yt.unstable_LowPriority=4;yt.unstable_NormalPriority=3;yt.unstable_Profiling=null;yt.unstable_UserBlockingPriority=2;yt.unstable_cancelCallback=function(t){t.callback=null};yt.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"):Dd=0<t?Math.floor(1e3/t):5};yt.unstable_getCurrentPriorityLevel=function(){return te};yt.unstable_next=function(t){switch(te){case 1:case 2:case 3:var e=3;break;default:e=te}var n=te;te=e;try{return t()}finally{te=n}};yt.unstable_requestPaint=function(){qr=!0};yt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=te;te=t;try{return e()}finally{te=n}};yt.unstable_scheduleCallback=function(t,e,n){var l=yt.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?l+n:l):n=l,t){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=n+a,t={id:Lb++,callback:e,priorityLevel:t,startTime:n,expirationTime:a,sortIndex:-1},n>l?(t.sortIndex=n,Gr(tl,t),hn(Ln)===null&&t===hn(tl)&&(bi?(Od(vi),vi=-1):bi=!0,jr(Xr,n-l))):(t.sortIndex=a,Gr(Ln,t),yi||Yr||(yi=!0,ha||(ha=!0,ma()))),t};yt.unstable_shouldYield=Hd;yt.unstable_wrapCallback=function(t){var e=te;return function(){var n=te;te=e;try{return t.apply(this,arguments)}finally{te=n}}}});var Bd=mn((Rx,Ud)=>{"use strict";Ud.exports=Ld()});var Fd=mn(U=>{"use strict";var Kr=Symbol.for("react.transitional.element"),Ub=Symbol.for("react.portal"),Bb=Symbol.for("react.fragment"),Vb=Symbol.for("react.strict_mode"),Gb=Symbol.for("react.profiler"),Yb=Symbol.for("react.consumer"),qb=Symbol.for("react.context"),Xb=Symbol.for("react.forward_ref"),jb=Symbol.for("react.suspense"),kb=Symbol.for("react.memo"),Xd=Symbol.for("react.lazy"),Qb=Symbol.for("react.activity"),Kb=Symbol.for("react.view_transition"),Vd=Symbol.iterator;function Pb(t){return t===null||typeof t!="object"?null:(t=Vd&&t[Vd]||t["@@iterator"],typeof t=="function"?t:null)}var jd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kd=Object.assign,Qd={};function pa(t,e,n){this.props=t,this.context=e,this.refs=Qd,this.updater=n||jd}pa.prototype.isReactComponent={};pa.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};pa.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Kd(){}Kd.prototype=pa.prototype;function Pr(t,e,n){this.props=t,this.context=e,this.refs=Qd,this.updater=n||jd}var Zr=Pr.prototype=new Kd;Zr.constructor=Pr;kd(Zr,pa.prototype);Zr.isPureReactComponent=!0;var Gd=Array.isArray;function Qr(){}var ft={H:null,A:null,T:null,S:null},Pd=Object.prototype.hasOwnProperty;function Jr(t,e,n){var l=n.ref;return{$$typeof:Kr,type:t,key:e,ref:l!==void 0?l:null,props:n}}function Zb(t,e){return Jr(t.type,e,t.props)}function Fr(t){return typeof t=="object"&&t!==null&&t.$$typeof===Kr}function Jb(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Yd=/\/+/g;function kr(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Jb(""+t.key):e.toString(36)}function Fb(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Qr,Qr):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function ga(t,e,n,l,a){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var u=!1;if(t===null)u=!0;else switch(i){case"bigint":case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case Kr:case Ub:u=!0;break;case Xd:return u=t._init,ga(u(t._payload),e,n,l,a)}}if(u)return a=a(t),u=l===""?"."+kr(t,0):l,Gd(a)?(n="",u!=null&&(n=u.replace(Yd,"$&/")+"/"),ga(a,e,n,"",function(c){return c})):a!=null&&(Fr(a)&&(a=Zb(a,n+(a.key==null||t&&t.key===a.key?"":(""+a.key).replace(Yd,"$&/")+"/")+u)),e.push(a)),1;u=0;var o=l===""?".":l+":";if(Gd(t))for(var r=0;r<t.length;r++)l=t[r],i=o+kr(l,r),u+=ga(l,e,n,i,a);else if(r=Pb(t),typeof r=="function")for(t=r.call(t),r=0;!(l=t.next()).done;)l=l.value,i=o+kr(l,r++),u+=ga(l,e,n,i,a);else if(i==="object"){if(typeof t.then=="function")return ga(Fb(t),e,n,l,a);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return u}function Du(t,e,n){if(t==null)return t;var l=[],a=0;return ga(t,l,"","",function(i){return e.call(n,i,a++)}),l}function Ib(t){if(t._status===-1){var e=t._result,n=e();n.then(function(l){(t._status===0||t._status===-1)&&(t._status=1,t._result=l,n.status===void 0&&(n.status="fulfilled",n.value=l))},function(l){(t._status===0||t._status===-1)&&(t._status=2,t._result=l,n.status===void 0&&(n.status="rejected",n.reason=l))}),t._status===-1&&(t._status=0,t._result=n)}if(t._status===1)return t._result.default;throw t._result}var qd=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)};function Zd(t){var e=ft.T,n={};n.types=e!==null?e.types:null,ft.T=n;try{var l=t(),a=ft.S;a!==null&&a(n,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(Qr,qd)}catch(i){qd(i)}finally{e!==null&&n.types!==null&&(e.types=n.types),ft.T=e}}function Jd(t){var e=ft.T;if(e!==null){var n=e.types;n===null?e.types=[t]:n.indexOf(t)===-1&&n.push(t)}else Zd(Jd.bind(null,t))}var $b={map:Du,forEach:function(t,e,n){Du(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Du(t,function(){e++}),e},toArray:function(t){return Du(t,function(e){return e})||[]},only:function(t){if(!Fr(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};U.Activity=Qb;U.Children=$b;U.Component=pa;U.Fragment=Bb;U.Profiler=Gb;U.PureComponent=Pr;U.StrictMode=Vb;U.Suspense=jb;U.ViewTransition=Kb;U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ft;U.__COMPILER_RUNTIME={__proto__:null,c:function(t){return ft.H.useMemoCache(t)}};U.addTransitionType=Jd;U.cache=function(t){return function(){return t.apply(null,arguments)}};U.cacheSignal=function(){return null};U.cloneElement=function(t,e,n){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var l=kd({},t.props),a=t.key;if(e!=null)for(i in e.key!==void 0&&(a=""+e.key),e)!Pd.call(e,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&e.ref===void 0||(l[i]=e[i]);var i=arguments.length-2;if(i===1)l.children=n;else if(1<i){for(var u=Array(i),o=0;o<i;o++)u[o]=arguments[o+2];l.children=u}return Jr(t.type,a,l)};U.createContext=function(t){return t={$$typeof:qb,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Yb,_context:t},t};U.createElement=function(t,e,n){var l,a={},i=null;if(e!=null)for(l in e.key!==void 0&&(i=""+e.key),e)Pd.call(e,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(a[l]=e[l]);var u=arguments.length-2;if(u===1)a.children=n;else if(1<u){for(var o=Array(u),r=0;r<u;r++)o[r]=arguments[r+2];a.children=o}if(t&&t.defaultProps)for(l in u=t.defaultProps,u)a[l]===void 0&&(a[l]=u[l]);return Jr(t,i,a)};U.createRef=function(){return{current:null}};U.forwardRef=function(t){return{$$typeof:Xb,render:t}};U.isValidElement=Fr;U.lazy=function(t){return{$$typeof:Xd,_payload:{_status:-1,_result:t},_init:Ib}};U.memo=function(t,e){return{$$typeof:kb,type:t,compare:e===void 0?null:e}};U.startTransition=Zd;U.unstable_useCacheRefresh=function(){return ft.H.useCacheRefresh()};U.use=function(t){return ft.H.use(t)};U.useActionState=function(t,e,n){return ft.H.useActionState(t,e,n)};U.useCallback=function(t,e){return ft.H.useCallback(t,e)};U.useContext=function(t){return ft.H.useContext(t)};U.useDebugValue=function(){};U.useDeferredValue=function(t,e){return ft.H.useDeferredValue(t,e)};U.useEffect=function(t,e){return ft.H.useEffect(t,e)};U.useEffectEvent=function(t){return ft.H.useEffectEvent(t)};U.useId=function(){return ft.H.useId()};U.useImperativeHandle=function(t,e,n){return ft.H.useImperativeHandle(t,e,n)};U.useInsertionEffect=function(t,e){return ft.H.useInsertionEffect(t,e)};U.useLayoutEffect=function(t,e){return ft.H.useLayoutEffect(t,e)};U.useMemo=function(t,e){return ft.H.useMemo(t,e)};U.useOptimistic=function(t,e){return ft.H.useOptimistic(t,e)};U.useReducer=function(t,e,n){return ft.H.useReducer(t,e,n)};U.useRef=function(t){return ft.H.useRef(t)};U.useState=function(t){return ft.H.useState(t)};U.useSyncExternalStore=function(t,e,n){return ft.H.useSyncExternalStore(t,e,n)};U.useTransition=function(){return ft.H.useTransition()};U.version="19.3.0"});var Re=mn((zx,Id)=>{"use strict";Id.exports=Fd()});var tm=mn(ee=>{"use strict";var Wb=Re();function Wd(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}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 el(){}var oe={d:{f:el,r:function(){throw Error(Wd(522))},D:el,C:el,L:el,m:el,X:el,S:el,M:el},p:0,findDOMNode:null},tv=Symbol.for("react.portal"),ev=Symbol.for("react.recoverable"),$d=Symbol.for("react.optimistic_key");function nv(t,e,n){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:tv,key:l==null?null:l===$d?$d:""+l,children:t,containerInfo:e,implementation:n}}var Si=Wb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _u(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=oe;ee.browser=function(t){return{$$typeof:ev,_reason:t}};ee.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(Wd(299));return nv(t,e,null,n)};ee.flushSync=function(t){var e=Si.T,n=oe.p;try{if(Si.T=null,oe.p=2,t)return t()}finally{Si.T=e,oe.p=n,oe.d.f()}};ee.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,oe.d.C(t,e))};ee.prefetchDNS=function(t){typeof t=="string"&&oe.d.D(t)};ee.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var n=e.as,l=_u(n,e.crossOrigin),a=typeof e.integrity=="string"?e.integrity:void 0,i=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;n==="style"?oe.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:l,integrity:a,fetchPriority:i}):n==="script"&&oe.d.X(t,{crossOrigin:l,integrity:a,fetchPriority:i,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};ee.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var n=_u(e.as,e.crossOrigin);oe.d.M(t,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0})}}else e==null&&oe.d.M(t)};ee.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var n=e.as,l=_u(n,e.crossOrigin);oe.d.L(t,n,{crossOrigin:l,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})}};ee.preloadModule=function(t,e){if(typeof t=="string")if(e){var n=_u(e.as,e.crossOrigin);oe.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0})}else oe.d.m(t)};ee.requestFormReset=function(t){oe.d.r(t)};ee.unstable_batchedUpdates=function(t,e){return t(e)};ee.useFormState=function(t,e,n){return Si.H.useFormState(t,e,n)};ee.useFormStatus=function(){return Si.H.useHostTransitionStatus()};ee.version="19.3.0"});var Hu=mn((Ox,nm)=>{"use strict";function em(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(em)}catch(t){console.error(t)}}em(),nm.exports=tm()});var Xy=mn(pr=>{"use strict";var Ht=Bd(),qh=Re(),lv=Hu();function N(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}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 Xh(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ou(t){for(var e=t,n=e;n&&!n.alternate;)e=n,(e.flags&4098)!==0&&(t=e.return),n=e.return;for(;e.return;)e=e.return;return e.tag===3?t:null}function jh(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 kh(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 lm(t){if(ou(t)!==t)throw Error(N(188))}function av(t){var e=t.alternate;if(!e){if(e=ou(t),e===null)throw Error(N(188));return e!==t?null:t}for(var n=t,l=e;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return lm(a),t;if(i===l)return lm(a),e;i=i.sibling}throw Error(N(188))}if(n.return!==l.return)n=a,l=i;else{for(var u=!1,o=a.child;o;){if(o===n){u=!0,n=a,l=i;break}if(o===l){u=!0,l=a,n=i;break}o=o.sibling}if(!u){for(o=i.child;o;){if(o===n){u=!0,n=i,l=a;break}if(o===l){u=!0,l=i,n=a;break}o=o.sibling}if(!u)throw Error(N(189))}}if(n.alternate!==l)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?t:e}function Qh(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=Qh(t),e!==null)return e;t=t.sibling}return null}function Me(t,e,n,l,a,i){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&n(t,l,a,i)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&Me(t.child,e,n,l,a,i))return!0;t=t.sibling}return!1}function la(t){for(t=t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t;t=t.return}return null}function am(t){var e=!1;for(t=t.return;t!==null&&(t.tag===4&&(e=!0),!(t.tag===3||t.tag===5||t.tag===27));)t=t.return;return e}function Kh(t){var e=[null,null],n=la(t);return n===null||Ph(e,t,n.child,{foundSelf:!1}),e}function Ph(t,e,n,l){for(;n!==null;){if(n===e)l.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(l.foundSelf)return t[1]=n,!0;t[0]=n}else if((n.tag!==22||n.memoizedState===null)&&Ph(t,e,n.child,l))return!0;n=n.sibling}return!1}function _t(t){switch(t.tag){case 5:case 27:case 6:return t.stateNode;case 3:return t.stateNode.containerInfo;default:throw Error(N(559))}}var Ta=null,Ac=null;function iv(t,e,n){return t===n?!0:t===e?(Ta=t,!0):!1}function uv(t,e,n){return t===n?(Ac=t,!1):t===e?(Ac!==null&&(Ta=t),!0):!1}function im(t){if(t===null)return null;do t=t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t||null}function zc(t,e,n){for(var l=0,a=t;a;a=n(a))l++;a=0;for(var i=e;i;i=n(i))a++;for(;0<l-a;)t=n(t),l--;for(;0<a-l;)e=n(e),a--;for(;l--;){if(t===e||e!==null&&t===e.alternate)return t;t=n(t),e=n(e)}return null}var ct=Object.assign,ov=Symbol.for("react.element"),Lu=Symbol.for("react.transitional.element"),Ri=Symbol.for("react.portal"),Ma=Symbol.for("react.fragment"),Zh=Symbol.for("react.strict_mode"),Cc=Symbol.for("react.profiler"),Jh=Symbol.for("react.consumer"),Sn=Symbol.for("react.context"),Gs=Symbol.for("react.forward_ref"),Oc=Symbol.for("react.suspense"),Dc=Symbol.for("react.suspense_list"),Ys=Symbol.for("react.memo"),il=Symbol.for("react.lazy");Symbol.for("react.scope");var _c=Symbol.for("react.activity"),rv=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var cv=Symbol.for("react.memo_cache_sentinel"),Hc=Symbol.for("react.view_transition"),sv=Symbol.for("react.recoverable"),um=Symbol.iterator;function Ei(t){return t===null||typeof t!="object"?null:(t=um&&t[um]||t["@@iterator"],typeof t=="function"?t:null)}var fv=Symbol.for("react.client.reference");function Lc(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===fv?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ma:return"Fragment";case Cc:return"Profiler";case Zh:return"StrictMode";case Oc:return"Suspense";case Dc:return"SuspenseList";case _c:return"Activity";case Hc:return"ViewTransition"}if(typeof t=="object")switch(t.$$typeof){case Ri:return"Portal";case Sn:return t.displayName||"Context";case Jh:return(t._context.displayName||"Context")+".Consumer";case Gs:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ys:return e=t.displayName||null,e!==null?e:Lc(t.type)||"Memo";case il:e=t._payload,t=t._init;try{return Lc(t(e))}catch{}}return null}var Ai=Array.isArray,H=qh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,et=lv.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,kl={pending:!1,data:null,method:null,action:null},Uc=[],Na=-1;function Rn(t){return{current:t}}function Kt(t){0>Na||(t.current=Uc[Na],Uc[Na]=null,Na--)}function ht(t,e){Na++,Uc[Na]=t.current,t.current=e}var Mn=Rn(null),Qi=Rn(null),hl=Rn(null),xo=Rn(null);function To(t,e){switch(ht(hl,e),ht(Qi,t),ht(Mn,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Sh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Sh(e),t=yy(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Kt(Mn),ht(Mn,t)}function Qa(){Kt(Mn),Kt(Qi),Kt(hl)}function Bc(t){var e=t.memoizedState;e!==null&&(ei._currentValue=e.memoizedState,ht(xo,t)),e=Mn.current;var n=yy(e,t.type);e!==n&&(ht(Qi,t),ht(Mn,n))}function Mo(t){Qi.current===t&&(Kt(Mn),Kt(Qi)),xo.current===t&&(Kt(xo),ei._currentValue=kl)}var Ir,om;function ll(t){if(Ir===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ir=e&&e[1]||"",om=-1<n.stack.indexOf(`
1
+ /*! K-Plex Web 0.0.3 | AGPL-3.0-only | Corresponding source: https://github.com/zsviczian/kplex/tree/ed5441572f4cdb9d42045f70dadedc12c9afbc05 */
2
+ var Q0=Object.create;var gh=Object.defineProperty;var Z0=Object.getOwnPropertyDescriptor;var F0=Object.getOwnPropertyNames;var J0=Object.getPrototypeOf,W0=Object.prototype.hasOwnProperty;var $0=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ln=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var e1=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of F0(t))!W0.call(e,a)&&a!==n&&gh(e,a,{get:()=>t[a],enumerable:!(i=Z0(t,a))||i.enumerable});return e};var K=(e,t,n)=>(n=e!=null?Q0(J0(e)):{},e1(t||!e||!e.__esModule?gh(n,"default",{value:e,enumerable:!0}):n,e));var _,T=$0(()=>{_=[["K-Plex",` GNU AFFERO GENERAL PUBLIC LICENSE
3
+ Version 3, 19 November 2007
4
+
5
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The GNU Affero General Public License is a free, copyleft license for
12
+ software and other kinds of works, specifically designed to ensure
13
+ cooperation with the community in the case of network server software.
14
+
15
+ The licenses for most software and other practical works are designed
16
+ to take away your freedom to share and change the works. By contrast,
17
+ our General Public Licenses are intended to guarantee your freedom to
18
+ share and change all versions of a program--to make sure it remains free
19
+ software for all its users.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ them if you wish), that you receive source code or can get it if you
25
+ want it, that you can change the software or use pieces of it in new
26
+ free programs, and that you know you can do these things.
27
+
28
+ Developers that use our General Public Licenses protect your rights
29
+ with two steps: (1) assert copyright on the software, and (2) offer
30
+ you this License which gives you legal permission to copy, distribute
31
+ and/or modify the software.
32
+
33
+ A secondary benefit of defending all users' freedom is that
34
+ improvements made in alternate versions of the program, if they
35
+ receive widespread use, become available for other developers to
36
+ incorporate. Many developers of free software are heartened and
37
+ encouraged by the resulting cooperation. However, in the case of
38
+ software used on network servers, this result may fail to come about.
39
+ The GNU General Public License permits making a modified version and
40
+ letting the public access it on a server without ever releasing its
41
+ source code to the public.
42
+
43
+ The GNU Affero General Public License is designed specifically to
44
+ ensure that, in such cases, the modified source code becomes available
45
+ to the community. It requires the operator of a network server to
46
+ provide the source code of the modified version running there to the
47
+ users of that server. Therefore, public use of a modified version, on
48
+ a publicly accessible server, gives the public access to the source
49
+ code of the modified version.
50
+
51
+ An older license, called the Affero General Public License and
52
+ published by Affero, was designed to accomplish similar goals. This is
53
+ a different license, not a version of the Affero GPL, but Affero has
54
+ released a new version of the Affero GPL which permits relicensing under
55
+ this license.
56
+
57
+ The precise terms and conditions for copying, distribution and
58
+ modification follow.
59
+
60
+ TERMS AND CONDITIONS
61
+
62
+ 0. Definitions.
63
+
64
+ "This License" refers to version 3 of the GNU Affero General Public License.
65
+
66
+ "Copyright" also means copyright-like laws that apply to other kinds of
67
+ works, such as semiconductor masks.
68
+
69
+ "The Program" refers to any copyrightable work licensed under this
70
+ License. Each licensee is addressed as "you". "Licensees" and
71
+ "recipients" may be individuals or organizations.
72
+
73
+ To "modify" a work means to copy from or adapt all or part of the work
74
+ in a fashion requiring copyright permission, other than the making of an
75
+ exact copy. The resulting work is called a "modified version" of the
76
+ earlier work or a work "based on" the earlier work.
77
+
78
+ A "covered work" means either the unmodified Program or a work based
79
+ on the Program.
80
+
81
+ To "propagate" a work means to do anything with it that, without
82
+ permission, would make you directly or secondarily liable for
83
+ infringement under applicable copyright law, except executing it on a
84
+ computer or modifying a private copy. Propagation includes copying,
85
+ distribution (with or without modification), making available to the
86
+ public, and in some countries other activities as well.
87
+
88
+ To "convey" a work means any kind of propagation that enables other
89
+ parties to make or receive copies. Mere interaction with a user through
90
+ a computer network, with no transfer of a copy, is not conveying.
91
+
92
+ An interactive user interface displays "Appropriate Legal Notices"
93
+ to the extent that it includes a convenient and prominently visible
94
+ feature that (1) displays an appropriate copyright notice, and (2)
95
+ tells the user that there is no warranty for the work (except to the
96
+ extent that warranties are provided), that licensees may convey the
97
+ work under this License, and how to view a copy of this License. If
98
+ the interface presents a list of user commands or options, such as a
99
+ menu, a prominent item in the list meets this criterion.
100
+
101
+ 1. Source Code.
102
+
103
+ The "source code" for a work means the preferred form of the work
104
+ for making modifications to it. "Object code" means any non-source
105
+ form of a work.
106
+
107
+ A "Standard Interface" means an interface that either is an official
108
+ standard defined by a recognized standards body, or, in the case of
109
+ interfaces specified for a particular programming language, one that
110
+ is widely used among developers working in that language.
111
+
112
+ The "System Libraries" of an executable work include anything, other
113
+ than the work as a whole, that (a) is included in the normal form of
114
+ packaging a Major Component, but which is not part of that Major
115
+ Component, and (b) serves only to enable use of the work with that
116
+ Major Component, or to implement a Standard Interface for which an
117
+ implementation is available to the public in source code form. A
118
+ "Major Component", in this context, means a major essential component
119
+ (kernel, window system, and so on) of the specific operating system
120
+ (if any) on which the executable work runs, or a compiler used to
121
+ produce the work, or an object code interpreter used to run it.
122
+
123
+ The "Corresponding Source" for a work in object code form means all
124
+ the source code needed to generate, install, and (for an executable
125
+ work) run the object code and to modify the work, including scripts to
126
+ control those activities. However, it does not include the work's
127
+ System Libraries, or general-purpose tools or generally available free
128
+ programs which are used unmodified in performing those activities but
129
+ which are not part of the work. For example, Corresponding Source
130
+ includes interface definition files associated with source files for
131
+ the work, and the source code for shared libraries and dynamically
132
+ linked subprograms that the work is specifically designed to require,
133
+ such as by intimate data communication or control flow between those
134
+ subprograms and other parts of the work.
135
+
136
+ The Corresponding Source need not include anything that users
137
+ can regenerate automatically from other parts of the Corresponding
138
+ Source.
139
+
140
+ The Corresponding Source for a work in source code form is that
141
+ same work.
142
+
143
+ 2. Basic Permissions.
144
+
145
+ All rights granted under this License are granted for the term of
146
+ copyright on the Program, and are irrevocable provided the stated
147
+ conditions are met. This License explicitly affirms your unlimited
148
+ permission to run the unmodified Program. The output from running a
149
+ covered work is covered by this License only if the output, given its
150
+ content, constitutes a covered work. This License acknowledges your
151
+ rights of fair use or other equivalent, as provided by copyright law.
152
+
153
+ You may make, run and propagate covered works that you do not
154
+ convey, without conditions so long as your license otherwise remains
155
+ in force. You may convey covered works to others for the sole purpose
156
+ of having them make modifications exclusively for you, or provide you
157
+ with facilities for running those works, provided that you comply with
158
+ the terms of this License in conveying all material for which you do
159
+ not control copyright. Those thus making or running the covered works
160
+ for you must do so exclusively on your behalf, under your direction
161
+ and control, on terms that prohibit them from making any copies of
162
+ your copyrighted material outside their relationship with you.
163
+
164
+ Conveying under any other circumstances is permitted solely under
165
+ the conditions stated below. Sublicensing is not allowed; section 10
166
+ makes it unnecessary.
167
+
168
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
169
+
170
+ No covered work shall be deemed part of an effective technological
171
+ measure under any applicable law fulfilling obligations under article
172
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
173
+ similar laws prohibiting or restricting circumvention of such
174
+ measures.
175
+
176
+ When you convey a covered work, you waive any legal power to forbid
177
+ circumvention of technological measures to the extent such circumvention
178
+ is effected by exercising rights under this License with respect to
179
+ the covered work, and you disclaim any intention to limit operation or
180
+ modification of the work as a means of enforcing, against the work's
181
+ users, your or third parties' legal rights to forbid circumvention of
182
+ technological measures.
183
+
184
+ 4. Conveying Verbatim Copies.
185
+
186
+ You may convey verbatim copies of the Program's source code as you
187
+ receive it, in any medium, provided that you conspicuously and
188
+ appropriately publish on each copy an appropriate copyright notice;
189
+ keep intact all notices stating that this License and any
190
+ non-permissive terms added in accord with section 7 apply to the code;
191
+ keep intact all notices of the absence of any warranty; and give all
192
+ recipients a copy of this License along with the Program.
193
+
194
+ You may charge any price or no price for each copy that you convey,
195
+ and you may offer support or warranty protection for a fee.
196
+
197
+ 5. Conveying Modified Source Versions.
198
+
199
+ You may convey a work based on the Program, or the modifications to
200
+ produce it from the Program, in the form of source code under the
201
+ terms of section 4, provided that you also meet all of these conditions:
202
+
203
+ a) The work must carry prominent notices stating that you modified
204
+ it, and giving a relevant date.
205
+
206
+ b) The work must carry prominent notices stating that it is
207
+ released under this License and any conditions added under section
208
+ 7. This requirement modifies the requirement in section 4 to
209
+ "keep intact all notices".
210
+
211
+ c) You must license the entire work, as a whole, under this
212
+ License to anyone who comes into possession of a copy. This
213
+ License will therefore apply, along with any applicable section 7
214
+ additional terms, to the whole of the work, and all its parts,
215
+ regardless of how they are packaged. This License gives no
216
+ permission to license the work in any other way, but it does not
217
+ invalidate such permission if you have separately received it.
218
+
219
+ d) If the work has interactive user interfaces, each must display
220
+ Appropriate Legal Notices; however, if the Program has interactive
221
+ interfaces that do not display Appropriate Legal Notices, your
222
+ work need not make them do so.
223
+
224
+ A compilation of a covered work with other separate and independent
225
+ works, which are not by their nature extensions of the covered work,
226
+ and which are not combined with it such as to form a larger program,
227
+ in or on a volume of a storage or distribution medium, is called an
228
+ "aggregate" if the compilation and its resulting copyright are not
229
+ used to limit the access or legal rights of the compilation's users
230
+ beyond what the individual works permit. Inclusion of a covered work
231
+ in an aggregate does not cause this License to apply to the other
232
+ parts of the aggregate.
233
+
234
+ 6. Conveying Non-Source Forms.
235
+
236
+ You may convey a covered work in object code form under the terms
237
+ of sections 4 and 5, provided that you also convey the
238
+ machine-readable Corresponding Source under the terms of this License,
239
+ in one of these ways:
240
+
241
+ a) Convey the object code in, or embodied in, a physical product
242
+ (including a physical distribution medium), accompanied by the
243
+ Corresponding Source fixed on a durable physical medium
244
+ customarily used for software interchange.
245
+
246
+ b) Convey the object code in, or embodied in, a physical product
247
+ (including a physical distribution medium), accompanied by a
248
+ written offer, valid for at least three years and valid for as
249
+ long as you offer spare parts or customer support for that product
250
+ model, to give anyone who possesses the object code either (1) a
251
+ copy of the Corresponding Source for all the software in the
252
+ product that is covered by this License, on a durable physical
253
+ medium customarily used for software interchange, for a price no
254
+ more than your reasonable cost of physically performing this
255
+ conveying of source, or (2) access to copy the
256
+ Corresponding Source from a network server at no charge.
257
+
258
+ c) Convey individual copies of the object code with a copy of the
259
+ written offer to provide the Corresponding Source. This
260
+ alternative is allowed only occasionally and noncommercially, and
261
+ only if you received the object code with such an offer, in accord
262
+ with subsection 6b.
263
+
264
+ d) Convey the object code by offering access from a designated
265
+ place (gratis or for a charge), and offer equivalent access to the
266
+ Corresponding Source in the same way through the same place at no
267
+ further charge. You need not require recipients to copy the
268
+ Corresponding Source along with the object code. If the place to
269
+ copy the object code is a network server, the Corresponding Source
270
+ may be on a different server (operated by you or a third party)
271
+ that supports equivalent copying facilities, provided you maintain
272
+ clear directions next to the object code saying where to find the
273
+ Corresponding Source. Regardless of what server hosts the
274
+ Corresponding Source, you remain obligated to ensure that it is
275
+ available for as long as needed to satisfy these requirements.
276
+
277
+ e) Convey the object code using peer-to-peer transmission, provided
278
+ you inform other peers where the object code and Corresponding
279
+ Source of the work are being offered to the general public at no
280
+ charge under subsection 6d.
281
+
282
+ A separable portion of the object code, whose source code is excluded
283
+ from the Corresponding Source as a System Library, need not be
284
+ included in conveying the object code work.
285
+
286
+ A "User Product" is either (1) a "consumer product", which means any
287
+ tangible personal property which is normally used for personal, family,
288
+ or household purposes, or (2) anything designed or sold for incorporation
289
+ into a dwelling. In determining whether a product is a consumer product,
290
+ doubtful cases shall be resolved in favor of coverage. For a particular
291
+ product received by a particular user, "normally used" refers to a
292
+ typical or common use of that class of product, regardless of the status
293
+ of the particular user or of the way in which the particular user
294
+ actually uses, or expects or is expected to use, the product. A product
295
+ is a consumer product regardless of whether the product has substantial
296
+ commercial, industrial or non-consumer uses, unless such uses represent
297
+ the only significant mode of use of the product.
298
+
299
+ "Installation Information" for a User Product means any methods,
300
+ procedures, authorization keys, or other information required to install
301
+ and execute modified versions of a covered work in that User Product from
302
+ a modified version of its Corresponding Source. The information must
303
+ suffice to ensure that the continued functioning of the modified object
304
+ code is in no case prevented or interfered with solely because
305
+ modification has been made.
306
+
307
+ If you convey an object code work under this section in, or with, or
308
+ specifically for use in, a User Product, and the conveying occurs as
309
+ part of a transaction in which the right of possession and use of the
310
+ User Product is transferred to the recipient in perpetuity or for a
311
+ fixed term (regardless of how the transaction is characterized), the
312
+ Corresponding Source conveyed under this section must be accompanied
313
+ by the Installation Information. But this requirement does not apply
314
+ if neither you nor any third party retains the ability to install
315
+ modified object code on the User Product (for example, the work has
316
+ been installed in ROM).
317
+
318
+ The requirement to provide Installation Information does not include a
319
+ requirement to continue to provide support service, warranty, or updates
320
+ for a work that has been modified or installed by the recipient, or for
321
+ the User Product in which it has been modified or installed. Access to a
322
+ network may be denied when the modification itself materially and
323
+ adversely affects the operation of the network or violates the rules and
324
+ protocols for communication across the network.
325
+
326
+ Corresponding Source conveyed, and Installation Information provided,
327
+ in accord with this section must be in a format that is publicly
328
+ documented (and with an implementation available to the public in
329
+ source code form), and must require no special password or key for
330
+ unpacking, reading or copying.
331
+
332
+ 7. Additional Terms.
333
+
334
+ "Additional permissions" are terms that supplement the terms of this
335
+ License by making exceptions from one or more of its conditions.
336
+ Additional permissions that are applicable to the entire Program shall
337
+ be treated as though they were included in this License, to the extent
338
+ that they are valid under applicable law. If additional permissions
339
+ apply only to part of the Program, that part may be used separately
340
+ under those permissions, but the entire Program remains governed by
341
+ this License without regard to the additional permissions.
342
+
343
+ When you convey a copy of a covered work, you may at your option
344
+ remove any additional permissions from that copy, or from any part of
345
+ it. (Additional permissions may be written to require their own
346
+ removal in certain cases when you modify the work.) You may place
347
+ additional permissions on material, added by you to a covered work,
348
+ for which you have or can give appropriate copyright permission.
349
+
350
+ Notwithstanding any other provision of this License, for material you
351
+ add to a covered work, you may (if authorized by the copyright holders of
352
+ that material) supplement the terms of this License with terms:
353
+
354
+ a) Disclaiming warranty or limiting liability differently from the
355
+ terms of sections 15 and 16 of this License; or
356
+
357
+ b) Requiring preservation of specified reasonable legal notices or
358
+ author attributions in that material or in the Appropriate Legal
359
+ Notices displayed by works containing it; or
360
+
361
+ c) Prohibiting misrepresentation of the origin of that material, or
362
+ requiring that modified versions of such material be marked in
363
+ reasonable ways as different from the original version; or
364
+
365
+ d) Limiting the use for publicity purposes of names of licensors or
366
+ authors of the material; or
367
+
368
+ e) Declining to grant rights under trademark law for use of some
369
+ trade names, trademarks, or service marks; or
370
+
371
+ f) Requiring indemnification of licensors and authors of that
372
+ material by anyone who conveys the material (or modified versions of
373
+ it) with contractual assumptions of liability to the recipient, for
374
+ any liability that these contractual assumptions directly impose on
375
+ those licensors and authors.
376
+
377
+ All other non-permissive additional terms are considered "further
378
+ restrictions" within the meaning of section 10. If the Program as you
379
+ received it, or any part of it, contains a notice stating that it is
380
+ governed by this License along with a term that is a further
381
+ restriction, you may remove that term. If a license document contains
382
+ a further restriction but permits relicensing or conveying under this
383
+ License, you may add to a covered work material governed by the terms
384
+ of that license document, provided that the further restriction does
385
+ not survive such relicensing or conveying.
386
+
387
+ If you add terms to a covered work in accord with this section, you
388
+ must place, in the relevant source files, a statement of the
389
+ additional terms that apply to those files, or a notice indicating
390
+ where to find the applicable terms.
391
+
392
+ Additional terms, permissive or non-permissive, may be stated in the
393
+ form of a separately written license, or stated as exceptions;
394
+ the above requirements apply either way.
395
+
396
+ 8. Termination.
397
+
398
+ You may not propagate or modify a covered work except as expressly
399
+ provided under this License. Any attempt otherwise to propagate or
400
+ modify it is void, and will automatically terminate your rights under
401
+ this License (including any patent licenses granted under the third
402
+ paragraph of section 11).
403
+
404
+ However, if you cease all violation of this License, then your
405
+ license from a particular copyright holder is reinstated (a)
406
+ provisionally, unless and until the copyright holder explicitly and
407
+ finally terminates your license, and (b) permanently, if the copyright
408
+ holder fails to notify you of the violation by some reasonable means
409
+ prior to 60 days after the cessation.
410
+
411
+ Moreover, your license from a particular copyright holder is
412
+ reinstated permanently if the copyright holder notifies you of the
413
+ violation by some reasonable means, this is the first time you have
414
+ received notice of violation of this License (for any work) from that
415
+ copyright holder, and you cure the violation prior to 30 days after
416
+ your receipt of the notice.
417
+
418
+ Termination of your rights under this section does not terminate the
419
+ licenses of parties who have received copies or rights from you under
420
+ this License. If your rights have been terminated and not permanently
421
+ reinstated, you do not qualify to receive new licenses for the same
422
+ material under section 10.
423
+
424
+ 9. Acceptance Not Required for Having Copies.
425
+
426
+ You are not required to accept this License in order to receive or
427
+ run a copy of the Program. Ancillary propagation of a covered work
428
+ occurring solely as a consequence of using peer-to-peer transmission
429
+ to receive a copy likewise does not require acceptance. However,
430
+ nothing other than this License grants you permission to propagate or
431
+ modify any covered work. These actions infringe copyright if you do
432
+ not accept this License. Therefore, by modifying or propagating a
433
+ covered work, you indicate your acceptance of this License to do so.
434
+
435
+ 10. Automatic Licensing of Downstream Recipients.
436
+
437
+ Each time you convey a covered work, the recipient automatically
438
+ receives a license from the original licensors, to run, modify and
439
+ propagate that work, subject to this License. You are not responsible
440
+ for enforcing compliance by third parties with this License.
441
+
442
+ An "entity transaction" is a transaction transferring control of an
443
+ organization, or substantially all assets of one, or subdividing an
444
+ organization, or merging organizations. If propagation of a covered
445
+ work results from an entity transaction, each party to that
446
+ transaction who receives a copy of the work also receives whatever
447
+ licenses to the work the party's predecessor in interest had or could
448
+ give under the previous paragraph, plus a right to possession of the
449
+ Corresponding Source of the work from the predecessor in interest, if
450
+ the predecessor has it or can get it with reasonable efforts.
451
+
452
+ You may not impose any further restrictions on the exercise of the
453
+ rights granted or affirmed under this License. For example, you may
454
+ not impose a license fee, royalty, or other charge for exercise of
455
+ rights granted under this License, and you may not initiate litigation
456
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
457
+ any patent claim is infringed by making, using, selling, offering for
458
+ sale, or importing the Program or any portion of it.
459
+
460
+ 11. Patents.
461
+
462
+ A "contributor" is a copyright holder who authorizes use under this
463
+ License of the Program or a work on which the Program is based. The
464
+ work thus licensed is called the contributor's "contributor version".
465
+
466
+ A contributor's "essential patent claims" are all patent claims
467
+ owned or controlled by the contributor, whether already acquired or
468
+ hereafter acquired, that would be infringed by some manner, permitted
469
+ by this License, of making, using, or selling its contributor version,
470
+ but do not include claims that would be infringed only as a
471
+ consequence of further modification of the contributor version. For
472
+ purposes of this definition, "control" includes the right to grant
473
+ patent sublicenses in a manner consistent with the requirements of
474
+ this License.
475
+
476
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
477
+ patent license under the contributor's essential patent claims, to
478
+ make, use, sell, offer for sale, import and otherwise run, modify and
479
+ propagate the contents of its contributor version.
480
+
481
+ In the following three paragraphs, a "patent license" is any express
482
+ agreement or commitment, however denominated, not to enforce a patent
483
+ (such as an express permission to practice a patent or covenant not to
484
+ sue for patent infringement). To "grant" such a patent license to a
485
+ party means to make such an agreement or commitment not to enforce a
486
+ patent against the party.
487
+
488
+ If you convey a covered work, knowingly relying on a patent license,
489
+ and the Corresponding Source of the work is not available for anyone
490
+ to copy, free of charge and under the terms of this License, through a
491
+ publicly available network server or other readily accessible means,
492
+ then you must either (1) cause the Corresponding Source to be so
493
+ available, or (2) arrange to deprive yourself of the benefit of the
494
+ patent license for this particular work, or (3) arrange, in a manner
495
+ consistent with the requirements of this License, to extend the patent
496
+ license to downstream recipients. "Knowingly relying" means you have
497
+ actual knowledge that, but for the patent license, your conveying the
498
+ covered work in a country, or your recipient's use of the covered work
499
+ in a country, would infringe one or more identifiable patents in that
500
+ country that you have reason to believe are valid.
501
+
502
+ If, pursuant to or in connection with a single transaction or
503
+ arrangement, you convey, or propagate by procuring conveyance of, a
504
+ covered work, and grant a patent license to some of the parties
505
+ receiving the covered work authorizing them to use, propagate, modify
506
+ or convey a specific copy of the covered work, then the patent license
507
+ you grant is automatically extended to all recipients of the covered
508
+ work and works based on it.
509
+
510
+ A patent license is "discriminatory" if it does not include within
511
+ the scope of its coverage, prohibits the exercise of, or is
512
+ conditioned on the non-exercise of one or more of the rights that are
513
+ specifically granted under this License. You may not convey a covered
514
+ work if you are a party to an arrangement with a third party that is
515
+ in the business of distributing software, under which you make payment
516
+ to the third party based on the extent of your activity of conveying
517
+ the work, and under which the third party grants, to any of the
518
+ parties who would receive the covered work from you, a discriminatory
519
+ patent license (a) in connection with copies of the covered work
520
+ conveyed by you (or copies made from those copies), or (b) primarily
521
+ for and in connection with specific products or compilations that
522
+ contain the covered work, unless you entered into that arrangement,
523
+ or that patent license was granted, prior to 28 March 2007.
524
+
525
+ Nothing in this License shall be construed as excluding or limiting
526
+ any implied license or other defenses to infringement that may
527
+ otherwise be available to you under applicable patent law.
528
+
529
+ 12. No Surrender of Others' Freedom.
530
+
531
+ If conditions are imposed on you (whether by court order, agreement or
532
+ otherwise) that contradict the conditions of this License, they do not
533
+ excuse you from the conditions of this License. If you cannot convey a
534
+ covered work so as to satisfy simultaneously your obligations under this
535
+ License and any other pertinent obligations, then as a consequence you may
536
+ not convey it at all. For example, if you agree to terms that obligate you
537
+ to collect a royalty for further conveying from those to whom you convey
538
+ the Program, the only way you could satisfy both those terms and this
539
+ License would be to refrain entirely from conveying the Program.
540
+
541
+ 13. Remote Network Interaction; Use with the GNU General Public License.
542
+
543
+ Notwithstanding any other provision of this License, if you modify the
544
+ Program, your modified version must prominently offer all users
545
+ interacting with it remotely through a computer network (if your version
546
+ supports such interaction) an opportunity to receive the Corresponding
547
+ Source of your version by providing access to the Corresponding Source
548
+ from a network server at no charge, through some standard or customary
549
+ means of facilitating copying of software. This Corresponding Source
550
+ shall include the Corresponding Source for any work covered by version 3
551
+ of the GNU General Public License that is incorporated pursuant to the
552
+ following paragraph.
553
+
554
+ Notwithstanding any other provision of this License, you have
555
+ permission to link or combine any covered work with a work licensed
556
+ under version 3 of the GNU General Public License into a single
557
+ combined work, and to convey the resulting work. The terms of this
558
+ License will continue to apply to the part which is the covered work,
559
+ but the work with which it is combined will remain governed by version
560
+ 3 of the GNU General Public License.
561
+
562
+ 14. Revised Versions of this License.
563
+
564
+ The Free Software Foundation may publish revised and/or new versions of
565
+ the GNU Affero General Public License from time to time. Such new versions
566
+ will be similar in spirit to the present version, but may differ in detail to
567
+ address new problems or concerns.
568
+
569
+ Each version is given a distinguishing version number. If the
570
+ Program specifies that a certain numbered version of the GNU Affero General
571
+ Public License "or any later version" applies to it, you have the
572
+ option of following the terms and conditions either of that numbered
573
+ version or of any later version published by the Free Software
574
+ Foundation. If the Program does not specify a version number of the
575
+ GNU Affero General Public License, you may choose any version ever published
576
+ by the Free Software Foundation.
577
+
578
+ If the Program specifies that a proxy can decide which future
579
+ versions of the GNU Affero General Public License can be used, that proxy's
580
+ public statement of acceptance of a version permanently authorizes you
581
+ to choose that version for the Program.
582
+
583
+ Later license versions may give you additional or different
584
+ permissions. However, no additional obligations are imposed on any
585
+ author or copyright holder as a result of your choosing to follow a
586
+ later version.
587
+
588
+ 15. Disclaimer of Warranty.
589
+
590
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
591
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
592
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
593
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
594
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
595
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
596
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
597
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
598
+
599
+ 16. Limitation of Liability.
600
+
601
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
602
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
603
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
604
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
605
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
606
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
607
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
608
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
609
+ SUCH DAMAGES.
610
+
611
+ 17. Interpretation of Sections 15 and 16.
612
+
613
+ If the disclaimer of warranty and limitation of liability provided
614
+ above cannot be given local legal effect according to their terms,
615
+ reviewing courts shall apply local law that most closely approximates
616
+ an absolute waiver of all civil liability in connection with the
617
+ Program, unless a warranty or assumption of liability accompanies a
618
+ copy of the Program in return for a fee.
619
+
620
+ END OF TERMS AND CONDITIONS
621
+
622
+ How to Apply These Terms to Your New Programs
623
+
624
+ If you develop a new program, and you want it to be of the greatest
625
+ possible use to the public, the best way to achieve this is to make it
626
+ free software which everyone can redistribute and change under these terms.
627
+
628
+ To do so, attach the following notices to the program. It is safest
629
+ to attach them to the start of each source file to most effectively
630
+ state the exclusion of warranty; and each file should have at least
631
+ the "copyright" line and a pointer to where the full notice is found.
632
+
633
+ <one line to give the program's name and a brief idea of what it does.>
634
+ Copyright (C) <year> <name of author>
635
+
636
+ This program is free software: you can redistribute it and/or modify
637
+ it under the terms of the GNU Affero General Public License as published
638
+ by the Free Software Foundation, either version 3 of the License, or
639
+ (at your option) any later version.
640
+
641
+ This program is distributed in the hope that it will be useful,
642
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
643
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
644
+ GNU Affero General Public License for more details.
645
+
646
+ You should have received a copy of the GNU Affero General Public License
647
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
648
+
649
+ Also add information on how to contact you by electronic and paper mail.
650
+
651
+ If your software can interact with users remotely through a computer
652
+ network, you should also make sure that it provides a way for users to
653
+ get its source. For example, if your program is a web application, its
654
+ interface could display a "Source" link that leads users to an archive
655
+ of the code. There are many ways you could offer source, and different
656
+ solutions will be better for different programs; see section 13 for the
657
+ specific requirements.
658
+
659
+ You should also get your employer (if you work as a programmer) or school,
660
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
661
+ For more information on this, and how to apply and follow the GNU AGPL, see
662
+ <https://www.gnu.org/licenses/>.
663
+ `],["React",`MIT License
664
+
665
+ Copyright (c) Meta Platforms, Inc. and affiliates.
666
+
667
+ Permission is hereby granted, free of charge, to any person obtaining a copy
668
+ of this software and associated documentation files (the "Software"), to deal
669
+ in the Software without restriction, including without limitation the rights
670
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
671
+ copies of the Software, and to permit persons to whom the Software is
672
+ furnished to do so, subject to the following conditions:
673
+
674
+ The above copyright notice and this permission notice shall be included in all
675
+ copies or substantial portions of the Software.
676
+
677
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
678
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
679
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
680
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
681
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
682
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
683
+ SOFTWARE.
684
+ `],["ReactDOM",`MIT License
685
+
686
+ Copyright (c) Meta Platforms, Inc. and affiliates.
687
+
688
+ Permission is hereby granted, free of charge, to any person obtaining a copy
689
+ of this software and associated documentation files (the "Software"), to deal
690
+ in the Software without restriction, including without limitation the rights
691
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
692
+ copies of the Software, and to permit persons to whom the Software is
693
+ furnished to do so, subject to the following conditions:
694
+
695
+ The above copyright notice and this permission notice shall be included in all
696
+ copies or substantial portions of the Software.
697
+
698
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
699
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
700
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
701
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
702
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
703
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
704
+ SOFTWARE.
705
+ `],["Scheduler",`MIT License
706
+
707
+ Copyright (c) Meta Platforms, Inc. and affiliates.
708
+
709
+ Permission is hereby granted, free of charge, to any person obtaining a copy
710
+ of this software and associated documentation files (the "Software"), to deal
711
+ in the Software without restriction, including without limitation the rights
712
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
713
+ copies of the Software, and to permit persons to whom the Software is
714
+ furnished to do so, subject to the following conditions:
715
+
716
+ The above copyright notice and this permission notice shall be included in all
717
+ copies or substantial portions of the Software.
718
+
719
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
720
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
721
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
722
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
723
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
724
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
725
+ SOFTWARE.
726
+ `],["Lucide",`ISC License
727
+
728
+ Copyright (c) 2026 Lucide Icons and Contributors
729
+
730
+ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
731
+
732
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
733
+
734
+ Feather icons incorporated in Lucide are distributed under the MIT License.
735
+
736
+ Copyright (c) 2013-present Cole Bemis
737
+
738
+ Permission is hereby granted, free of charge, to any person obtaining a copy
739
+ of this software and associated documentation files (the "Software"), to deal
740
+ in the Software without restriction, including without limitation the rights
741
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
742
+ copies of the Software, and to permit persons to whom the Software is
743
+ furnished to do so, subject to the following conditions:
744
+
745
+ The above copyright notice and this permission notice shall be included in all
746
+ copies or substantial portions of the Software.
747
+
748
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
749
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
750
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
751
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
752
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
753
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
754
+ SOFTWARE.
755
+ `],["Source",`K-Plex Web 0.0.3 (pack 0.4.6)
756
+ Copyright K-Plex contributors. Distributed under AGPL-3.0-only.
757
+ Corresponding source: https://github.com/zsviczian/kplex/tree/ed5441572f4cdb9d42045f70dadedc12c9afbc05
758
+ Use the source for the exact release that supplied this runtime. When redistributing a custom build, make its exact corresponding source available.
759
+ `]]});var Mh=Ln(_e=>{"use strict";T();function Ac(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,a=e[i];if(0<ur(a,t))e[i]=t,e[n]=a,n=i;else break e}}function zn(e){return e.length===0?null:e[0]}function sr(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,a=e.length,o=a>>>1;i<o;){var l=2*(i+1)-1,r=e[l],u=l+1,c=e[u];if(0>ur(r,n))u<a&&0>ur(c,r)?(e[i]=c,e[u]=n,i=u):(e[i]=r,e[l]=n,i=l);else if(u<a&&0>ur(c,n))e[i]=c,e[u]=n,i=u;else break e}}return t}function ur(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}_e.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(yh=performance,_e.unstable_now=function(){return yh.now()}):(Nc=Date,bh=Nc.now(),_e.unstable_now=function(){return Nc.now()-bh});var yh,Nc,bh,$n=[],bi=[],n1=1,an=null,gt=3,Cc=!1,Xo=!1,Ko=!1,Oc=!1,wh=typeof setTimeout=="function"?setTimeout:null,Eh=typeof clearTimeout=="function"?clearTimeout:null,vh=typeof setImmediate<"u"?setImmediate:null;function cr(e){for(var t=zn(bi);t!==null;){if(t.callback===null)sr(bi);else if(t.startTime<=e)sr(bi),t.sortIndex=t.expirationTime,Ac($n,t);else break;t=zn(bi)}}function Lc(e){if(Ko=!1,cr(e),!Xo)if(zn($n)!==null)Xo=!0,Ua||(Ua=!0,_a());else{var t=zn(bi);t!==null&&zc(Lc,t.startTime-e)}}var Ua=!1,Qo=-1,xh=5,Th=-1;function Nh(){return Oc?!0:!(_e.unstable_now()-Th<xh)}function Mc(){if(Oc=!1,Ua){var e=_e.unstable_now();Th=e;var t=!0;try{e:{Xo=!1,Ko&&(Ko=!1,Eh(Qo),Qo=-1),Cc=!0;var n=gt;try{t:{for(cr(e),an=zn($n);an!==null&&!(an.expirationTime>e&&Nh());){var i=an.callback;if(typeof i=="function"){an.callback=null,gt=an.priorityLevel;var a=i(an.expirationTime<=e);if(e=_e.unstable_now(),typeof a=="function"){an.callback=a,cr(e),t=!0;break t}an===zn($n)&&sr($n),cr(e)}else sr($n);an=zn($n)}if(an!==null)t=!0;else{var o=zn(bi);o!==null&&zc(Lc,o.startTime-e),t=!1}}break e}finally{an=null,gt=n,Cc=!1}t=void 0}}finally{t?_a():Ua=!1}}}var _a;typeof vh=="function"?_a=function(){vh(Mc)}:typeof MessageChannel<"u"?(Rc=new MessageChannel,Sh=Rc.port2,Rc.port1.onmessage=Mc,_a=function(){Sh.postMessage(null)}):_a=function(){wh(Mc,0)};var Rc,Sh;function zc(e,t){Qo=wh(function(){e(_e.unstable_now())},t)}_e.unstable_IdlePriority=5;_e.unstable_ImmediatePriority=1;_e.unstable_LowPriority=4;_e.unstable_NormalPriority=3;_e.unstable_Profiling=null;_e.unstable_UserBlockingPriority=2;_e.unstable_cancelCallback=function(e){e.callback=null};_e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xh=0<e?Math.floor(1e3/e):5};_e.unstable_getCurrentPriorityLevel=function(){return gt};_e.unstable_next=function(e){switch(gt){case 1:case 2:case 3:var t=3;break;default:t=gt}var n=gt;gt=t;try{return e()}finally{gt=n}};_e.unstable_requestPaint=function(){Oc=!0};_e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=gt;gt=e;try{return t()}finally{gt=n}};_e.unstable_scheduleCallback=function(e,t,n){var i=_e.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=n+a,e={id:n1++,callback:t,priorityLevel:e,startTime:n,expirationTime:a,sortIndex:-1},n>i?(e.sortIndex=n,Ac(bi,e),zn($n)===null&&e===zn(bi)&&(Ko?(Eh(Qo),Qo=-1):Ko=!0,zc(Lc,n-i))):(e.sortIndex=a,Ac($n,e),Xo||Cc||(Xo=!0,Ua||(Ua=!0,_a()))),e};_e.unstable_shouldYield=Nh;_e.unstable_wrapCallback=function(e){var t=gt;return function(){var n=gt;gt=t;try{return e.apply(this,arguments)}finally{gt=n}}}});var Ah=Ln((mT,Rh)=>{"use strict";T();Rh.exports=Mh()});var Bh=Ln(W=>{"use strict";T();var _c=Symbol.for("react.transitional.element"),i1=Symbol.for("react.portal"),a1=Symbol.for("react.fragment"),o1=Symbol.for("react.strict_mode"),l1=Symbol.for("react.profiler"),r1=Symbol.for("react.consumer"),u1=Symbol.for("react.context"),c1=Symbol.for("react.forward_ref"),s1=Symbol.for("react.suspense"),f1=Symbol.for("react.memo"),Dh=Symbol.for("react.lazy"),d1=Symbol.for("react.activity"),h1=Symbol.for("react.view_transition"),Ch=Symbol.iterator;function m1(e){return e===null||typeof e!="object"?null:(e=Ch&&e[Ch]||e["@@iterator"],typeof e=="function"?e:null)}var Hh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_h=Object.assign,Uh={};function Pa(e,t,n){this.props=e,this.context=t,this.refs=Uh,this.updater=n||Hh}Pa.prototype.isReactComponent={};Pa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kh(){}kh.prototype=Pa.prototype;function Uc(e,t,n){this.props=e,this.context=t,this.refs=Uh,this.updater=n||Hh}var kc=Uc.prototype=new kh;kc.constructor=Uc;_h(kc,Pa.prototype);kc.isPureReactComponent=!0;var Oh=Array.isArray;function Hc(){}var Re={H:null,A:null,T:null,S:null},Ph=Object.prototype.hasOwnProperty;function Pc(e,t,n){var i=n.ref;return{$$typeof:_c,type:e,key:t,ref:i!==void 0?i:null,props:n}}function p1(e,t){return Pc(e.type,t,e.props)}function Ic(e){return typeof e=="object"&&e!==null&&e.$$typeof===_c}function g1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Lh=/\/+/g;function Dc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?g1(""+e.key):t.toString(36)}function y1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Hc,Hc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ka(e,t,n,i,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case _c:case i1:l=!0;break;case Dh:return l=e._init,ka(l(e._payload),t,n,i,a)}}if(l)return a=a(e),l=i===""?"."+Dc(e,0):i,Oh(a)?(n="",l!=null&&(n=l.replace(Lh,"$&/")+"/"),ka(a,t,n,"",function(c){return c})):a!=null&&(Ic(a)&&(a=p1(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(Lh,"$&/")+"/")+l)),t.push(a)),1;l=0;var r=i===""?".":i+":";if(Oh(e))for(var u=0;u<e.length;u++)i=e[u],o=r+Dc(i,u),l+=ka(i,t,n,o,a);else if(u=m1(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,o=r+Dc(i,u++),l+=ka(i,t,n,o,a);else if(o==="object"){if(typeof e.then=="function")return ka(y1(e),t,n,i,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function fr(e,t,n){if(e==null)return e;var i=[],a=0;return ka(e,i,"","",function(o){return t.call(n,o,a++)}),i}function b1(e){if(e._status===-1){var t=e._result,n=t();n.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i,n.status===void 0&&(n.status="fulfilled",n.value=i))},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i,n.status===void 0&&(n.status="rejected",n.reason=i))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var zh=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Ih(e){var t=Re.T,n={};n.types=t!==null?t.types:null,Re.T=n;try{var i=e(),a=Re.S;a!==null&&a(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(Hc,zh)}catch(o){zh(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),Re.T=t}}function Gh(e){var t=Re.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else Ih(Gh.bind(null,e))}var v1={map:fr,forEach:function(e,t,n){fr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fr(e,function(){t++}),t},toArray:function(e){return fr(e,function(t){return t})||[]},only:function(e){if(!Ic(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Activity=d1;W.Children=v1;W.Component=Pa;W.Fragment=a1;W.Profiler=l1;W.PureComponent=Uc;W.StrictMode=o1;W.Suspense=s1;W.ViewTransition=h1;W.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Re;W.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Re.H.useMemoCache(e)}};W.addTransitionType=Gh;W.cache=function(e){return function(){return e.apply(null,arguments)}};W.cacheSignal=function(){return null};W.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=_h({},e.props),a=e.key;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)!Ph.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(i[o]=t[o]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var l=Array(o),r=0;r<o;r++)l[r]=arguments[r+2];i.children=l}return Pc(e.type,a,i)};W.createContext=function(e){return e={$$typeof:u1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:r1,_context:e},e};W.createElement=function(e,t,n){var i,a={},o=null;if(t!=null)for(i in t.key!==void 0&&(o=""+t.key),t)Ph.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(a[i]=t[i]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var r=Array(l),u=0;u<l;u++)r[u]=arguments[u+2];a.children=r}if(e&&e.defaultProps)for(i in l=e.defaultProps,l)a[i]===void 0&&(a[i]=l[i]);return Pc(e,o,a)};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:c1,render:e}};W.isValidElement=Ic;W.lazy=function(e){return{$$typeof:Dh,_payload:{_status:-1,_result:e},_init:b1}};W.memo=function(e,t){return{$$typeof:f1,type:e,compare:t===void 0?null:t}};W.startTransition=Ih;W.unstable_useCacheRefresh=function(){return Re.H.useCacheRefresh()};W.use=function(e){return Re.H.use(e)};W.useActionState=function(e,t,n){return Re.H.useActionState(e,t,n)};W.useCallback=function(e,t){return Re.H.useCallback(e,t)};W.useContext=function(e){return Re.H.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e,t){return Re.H.useDeferredValue(e,t)};W.useEffect=function(e,t){return Re.H.useEffect(e,t)};W.useEffectEvent=function(e){return Re.H.useEffectEvent(e)};W.useId=function(){return Re.H.useId()};W.useImperativeHandle=function(e,t,n){return Re.H.useImperativeHandle(e,t,n)};W.useInsertionEffect=function(e,t){return Re.H.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return Re.H.useLayoutEffect(e,t)};W.useMemo=function(e,t){return Re.H.useMemo(e,t)};W.useOptimistic=function(e,t){return Re.H.useOptimistic(e,t)};W.useReducer=function(e,t,n){return Re.H.useReducer(e,t,n)};W.useRef=function(e){return Re.H.useRef(e)};W.useState=function(e){return Re.H.useState(e)};W.useSyncExternalStore=function(e,t,n){return Re.H.useSyncExternalStore(e,t,n)};W.useTransition=function(){return Re.H.useTransition()};W.version="19.3.0"});var tt=Ln((bT,Vh)=>{"use strict";T();Vh.exports=Bh()});var jh=Ln(yt=>{"use strict";T();var S1=tt();function qh(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function vi(){}var xt={d:{f:vi,r:function(){throw Error(qh(522))},D:vi,C:vi,L:vi,m:vi,X:vi,S:vi,M:vi},p:0,findDOMNode:null},w1=Symbol.for("react.portal"),E1=Symbol.for("react.recoverable"),Yh=Symbol.for("react.optimistic_key");function x1(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:w1,key:i==null?null:i===Yh?Yh:""+i,children:e,containerInfo:t,implementation:n}}var Zo=S1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function dr(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xt;yt.browser=function(e){return{$$typeof:E1,_reason:e}};yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(qh(299));return x1(e,t,null,n)};yt.flushSync=function(e){var t=Zo.T,n=xt.p;try{if(Zo.T=null,xt.p=2,e)return e()}finally{Zo.T=t,xt.p=n,xt.d.f()}};yt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,xt.d.C(e,t))};yt.prefetchDNS=function(e){typeof e=="string"&&xt.d.D(e)};yt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=dr(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?xt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:o}):n==="script"&&xt.d.X(e,{crossOrigin:i,integrity:a,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};yt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=dr(t.as,t.crossOrigin);xt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&xt.d.M(e)};yt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=dr(n,t.crossOrigin);xt.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};yt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=dr(t.as,t.crossOrigin);xt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else xt.d.m(e)};yt.requestFormReset=function(e){xt.d.r(e)};yt.unstable_batchedUpdates=function(e,t){return e(t)};yt.useFormState=function(e,t,n){return Zo.H.useFormState(e,t,n)};yt.useFormStatus=function(){return Zo.H.useHostTransitionStatus()};yt.version="19.3.0"});var hr=Ln((ET,Kh)=>{"use strict";T();function Xh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xh)}catch(e){console.error(e)}}Xh(),Kh.exports=jh()});var Db=Ln(Qu=>{"use strict";T();var Je=Ah(),zp=tt(),T1=hr();function A(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Dp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ul(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function Hp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Qh(e){if(Ul(e)!==e)throw Error(A(188))}function N1(e){var t=e.alternate;if(!t){if(t=Ul(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Qh(a),e;if(o===i)return Qh(a),t;o=o.sibling}throw Error(A(188))}if(n.return!==i.return)n=a,i=o;else{for(var l=!1,r=a.child;r;){if(r===n){l=!0,n=a,i=o;break}if(r===i){l=!0,i=a,n=o;break}r=r.sibling}if(!l){for(r=o.child;r;){if(r===n){l=!0,n=o,i=a;break}if(r===i){l=!0,i=o,n=a;break}r=r.sibling}if(!l)throw Error(A(189))}}if(n.alternate!==i)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function Up(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Up(e),t!==null)return t;e=e.sibling}return null}function Gt(e,t,n,i,a,o){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,i,a,o)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Gt(e.child,t,n,i,a,o))return!0;e=e.sibling}return!1}function Sa(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function Zh(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function kp(e){var t=[null,null],n=Sa(e);return n===null||Pp(t,e,n.child,{foundSelf:!1}),t}function Pp(e,t,n,i){for(;n!==null;){if(n===t)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&Pp(e,t,n.child,i))return!0;n=n.sibling}return!1}function Fe(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(A(559))}}var ja=null,ys=null;function M1(e,t,n){return e===n?!0:e===t?(ja=e,!0):!1}function R1(e,t,n){return e===n?(ys=e,!1):e===t?(ys!==null&&(ja=e),!0):!1}function Fh(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function bs(e,t,n){for(var i=0,a=e;a;a=n(a))i++;a=0;for(var o=t;o;o=n(o))a++;for(;0<i-a;)e=n(e),i--;for(;0<a-i;)t=n(t),a--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var Ne=Object.assign,A1=Symbol.for("react.element"),mr=Symbol.for("react.transitional.element"),nl=Symbol.for("react.portal"),Xa=Symbol.for("react.fragment"),Ip=Symbol.for("react.strict_mode"),vs=Symbol.for("react.profiler"),Gp=Symbol.for("react.consumer"),Pn=Symbol.for("react.context"),Cf=Symbol.for("react.forward_ref"),Ss=Symbol.for("react.suspense"),ws=Symbol.for("react.suspense_list"),Of=Symbol.for("react.memo"),xi=Symbol.for("react.lazy");Symbol.for("react.scope");var Es=Symbol.for("react.activity"),C1=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var O1=Symbol.for("react.memo_cache_sentinel"),xs=Symbol.for("react.view_transition"),L1=Symbol.for("react.recoverable"),Jh=Symbol.iterator;function Fo(e){return e===null||typeof e!="object"?null:(e=Jh&&e[Jh]||e["@@iterator"],typeof e=="function"?e:null)}var z1=Symbol.for("react.client.reference");function Ts(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===z1?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xa:return"Fragment";case vs:return"Profiler";case Ip:return"StrictMode";case Ss:return"Suspense";case ws:return"SuspenseList";case Es:return"Activity";case xs:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case nl:return"Portal";case Pn:return e.displayName||"Context";case Gp:return(e._context.displayName||"Context")+".Consumer";case Cf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Of:return t=e.displayName||null,t!==null?t:Ts(e.type)||"Memo";case xi:t=e._payload,e=e._init;try{return Ts(e(t))}catch{}}return null}var il=Array.isArray,Q=zp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=T1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ra={pending:!1,data:null,method:null,action:null},Ns=[],Ka=-1;function jn(e){return{current:e}}function st(e){0>Ka||(e.current=Ns[Ka],Ns[Ka]=null,Ka--)}function Oe(e,t){Ka++,Ns[Ka]=e.current,e.current=t}var Vn=jn(null),Sl=jn(null),zi=jn(null),eu=jn(null);function tu(e,t){switch(Oe(zi,t),Oe(Sl,e),Oe(Vn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?fp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=fp(t),e=ub(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}st(Vn),Oe(Vn,e)}function mo(){st(Vn),st(Sl),st(zi)}function Ms(e){var t=e.memoizedState;t!==null&&(To._currentValue=t.memoizedState,Oe(eu,e)),t=Vn.current;var n=ub(t,e.type);t!==n&&(Oe(Sl,e),Oe(Vn,n))}function nu(e){Sl.current===e&&(st(Vn),st(Sl)),eu.current===e&&(st(eu),To._currentValue=ra)}var Gc,Wh;function wi(e){if(Gc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Gc=t&&t[1]||"",Wh=-1<n.stack.indexOf(`
3
760
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
4
- `+Ir+t+om}var $r=!1;function Wr(t,e){if(!t||$r)return"";$r=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(g,[])}catch(b){var s=b}Reflect.construct(t,[],g)}else{try{g.call()}catch(b){s=b}g=!1;try{var f=Object.getOwnPropertyDescriptor(t.prototype,"props");Object.defineProperty(t.prototype,"props",{configurable:!0,set:function(){throw Error()}}),g=!0,new t}finally{g&&(f!==void 0?Object.defineProperty(t.prototype,"props",f):delete t.prototype.props)}}}else{try{throw Error()}catch(b){s=b}(g=t())&&typeof g.catch=="function"&&g.catch(function(){})}}catch(b){if(b&&s&&typeof b.stack=="string")return[b.stack,s.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),u=i[0],o=i[1];if(u&&o){var r=u.split(`
5
- `),c=o.split(`
6
- `);for(a=l=0;l<r.length&&!r[l].includes("DetermineComponentFrameRoot");)l++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(l===r.length||a===c.length)for(l=r.length-1,a=c.length-1;1<=l&&0<=a&&r[l]!==c[a];)a--;for(;1<=l&&0<=a;l--,a--)if(r[l]!==c[a]){if(l!==1||a!==1)do if(l--,a--,0>a||r[l]!==c[a]){var h=`
7
- `+r[l].replace(" at new "," at ");return t.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",t.displayName)),h}while(1<=l&&0<=a);break}}}finally{$r=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ll(n):""}function dv(t,e){switch(t.tag){case 26:case 27:case 5:return ll(t.type);case 16:return ll("Lazy");case 13:return t.child!==e&&e!==null?ll("Suspense Fallback"):ll("Suspense");case 19:return ll("SuspenseList");case 0:case 15:return Wr(t.type,!1);case 11:return Wr(t.type.render,!1);case 1:return Wr(t.type,!0);case 31:return ll("Activity");case 30:return ll("ViewTransition");default:return""}}function rm(t){try{var e="",n=null;do e+=dv(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
8
- Error generating stack: `+l.message+`
9
- `+l.stack}}var Vc=Object.prototype.hasOwnProperty,qs=Ht.unstable_scheduleCallback,tc=Ht.unstable_cancelCallback,mv=Ht.unstable_shouldYield,hv=Ht.unstable_requestPaint,_e=Ht.unstable_now,gv=Ht.unstable_getCurrentPriorityLevel,Fh=Ht.unstable_ImmediatePriority,Ih=Ht.unstable_UserBlockingPriority,No=Ht.unstable_NormalPriority,pv=Ht.unstable_LowPriority,$h=Ht.unstable_IdlePriority,yv=Ht.log,bv=Ht.unstable_setDisableYieldValue,ru=null,He=null;function rl(t){if(typeof yv=="function"&&bv(t),He&&typeof He.setStrictMode=="function")try{He.setStrictMode(ru,t)}catch{}}var Le=Math.clz32?Math.clz32:Ev,vv=Math.log,Sv=Math.LN2;function Ev(t){return t>>>=0,t===0?32:31-(vv(t)/Sv|0)|0}var Uu=256,Bu=262144,Vu=4194304;function Gl(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&-t;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 Io(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var a=0,i=t.suspendedLanes,u=t.pingedLanes;t=t.warmLanes;var o=l&134217727;return o!==0?(l=o&~i,l!==0?a=Gl(l):(u&=o,u!==0?a=Gl(u):n||(n=o&~t,n!==0&&(a=Gl(n))))):(o=l&~i,o!==0?a=Gl(o):u!==0?a=Gl(u):n||(n=l&~t,n!==0&&(a=Gl(n)))),a===0?0:e!==0&&e!==a&&(e&i)===0&&(i=a&-a,n=e&-e,i>=n||i===32&&(n&4194048)!==0)?e:a}function cu(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Wh(t,e){(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var l=31-Le(n),a=1<<l;e|=t[l],n&=~a}return e}function xv(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 tg(){var t=Vu;return Vu<<=1,(Vu&62914560)===0&&(Vu=4194304),t}function ec(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function su(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Tv(t,e,n,l,a,i){var u=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var o=t.entanglements,r=t.expirationTimes,c=t.hiddenUpdates;for(n=u&~n;0<n;){var h=31-Le(n),g=1<<h;o[h]=0,r[h]=-1;var s=c[h];if(s!==null)for(c[h]=null,h=0;h<s.length;h++){var f=s[h];f!==null&&(f.lane&=-536870913)}n&=~g}l!==0&&eg(t,l,0),i!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=i&~(u&~e))}function eg(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Le(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function ng(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-Le(n),a=1<<l;a&e|t[l]&e&&(t[l]|=e),n&=~a}}function lg(t,e){var n=e&-e;return n=(n&42)!==0?1:Xs(n),(n&(t.suspendedLanes|e))!==0?0:n}function Xs(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 js(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ag(){var t=et.p;return t!==0?t:(t=window.event,t===void 0?32:Gy(t.type))}function cm(t,e){var n=et.p;try{return et.p=t,e()}finally{et.p=n}}var Zn=Math.random().toString(36).slice(2),kt="__reactFiber$"+Zn,Ne="__reactProps$"+Zn,ai="__reactContainer$"+Zn,sm="__reactEvents$"+Zn,Mv="__reactListeners$"+Zn,Nv="__reactHandles$"+Zn,fm="__reactResources$"+Zn,fu="__reactMarker$"+Zn,wo="__reactLoad$"+Zn;function $o(t){delete t[kt],delete t[Ne],delete t[Mv],delete t[Nv]}function Xl(t){var e;if(e=t[kt])return e;for(var n=t.parentNode;n;){if(e=n[ai]||n[kt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Ah(t);t!==null;){if(n=t[kt])return n;t=Ah(t)}return e}t=n,n=t.parentNode}return null}function ii(t){if(t=t[kt]||t[ai]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function zi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(N(33))}function La(t){var e=t[fm];return e||(e=t[fm]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Gt(t){t[fu]=!0}function ig(t){t[wo]=void 0}var ug=new Set,og={};function aa(t,e){Ka(t,e),Ka(t+"Capture",e)}function Ka(t,e){for(og[t]=e,t=0;t<e.length;t++)ug.add(e[t])}var wv=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]*$"),dm={},mm={};function Rv(t){return Vc.call(mm,t)?!0:Vc.call(dm,t)?!1:wv.test(t)?mm[t]=!0:(dm[t]=!0,!1)}var I=!1;function hm(){var t=I;return I=!1,t}function no(t,e,n){if(Rv(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,n)}}function Gu(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,n)}}function Un(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,l)}}function ze(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function rg(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Av(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,i=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(u){n=""+u,i.call(this,u)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(u){n=""+u},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Gc(t){if(!t._valueTracker){var e=rg(t)?"checked":"value";t._valueTracker=Av(t,e,""+t[e])}}function cg(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=rg(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}var zv=/[\n"\\]/g;function Pe(t){return t.replace(zv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Yc(t,e,n,l,a,i,u,o){t.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?t.type=u:t.removeAttribute("type"),e!=null?u==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ze(e)):t.value!==""+ze(e)&&(t.value=""+ze(e)):u!=="submit"&&u!=="reset"||t.removeAttribute("value"),e!=null?u==="number"&&t.value==e?nc(t,ze(t.value)):nc(t,ze(e)):n!=null?nc(t,ze(n)):l!=null&&t.removeAttribute("value"),a==null&&i!=null&&(t.defaultChecked=!!i),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+ze(o):t.removeAttribute("name")}function sg(t,e,n,l,a,i,u,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){Gc(t);return}n=n!=null?""+ze(n):"",e=e!=null?""+ze(e):n,o||e===t.value||(t.value=e),t.defaultValue=e}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=o?t.checked:!!l,t.defaultChecked=!!l,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.name=u),Gc(t)}function nc(t,e){t.defaultValue!==""+e&&(t.defaultValue=""+e)}function Ua(t,e,n,l){if(t=t.options,e){e={};for(var a=0;a<n.length;a++)e["$"+n[a]]=!0;for(n=0;n<t.length;n++)a=e.hasOwnProperty("$"+t[n].value),t[n].selected!==a&&(t[n].selected=a),a&&l&&(t[n].defaultSelected=!0)}else{for(n=""+ze(n),e=null,a=0;a<t.length;a++){if(t[a].value===n){t[a].selected=!0,l&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function fg(t,e,n){if(e!=null&&(e=""+ze(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+ze(n):""}function dg(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(N(92));if(Ai(l)){if(1<l.length)throw Error(N(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=ze(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Gc(t)}function Pa(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Cv=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 gm(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||Cv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function mg(t,e,n){if(e!=null&&typeof e!="object")throw Error(N(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="",I=!0);for(var a in e)l=e[a],e.hasOwnProperty(a)&&n[a]!==l&&(gm(t,a,l),I=!0)}else for(var i in e)e.hasOwnProperty(i)&&gm(t,i,e[i])}function ks(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 Ov=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"],["maskType","mask-type"],["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"]]),Dv=/^[\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 lo(t){return Dv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function En(){}var qc=null;function Qs(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var wa=null,Ba=null;function pm(t){var e=ii(t);if(e&&(t=e.stateNode)){var n=t[Ne]||null;t:switch(t=e.stateNode,e.type){case"input":if(Yc(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Pe(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var a=l[Ne]||null;if(!a)throw Error(N(90));Yc(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&cg(l)}break t;case"textarea":fg(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ua(t,!!n.multiple,e,!1)}}}var lc=!1;function hg(t,e,n){if(lc)return t(e,n);lc=!0;try{var l=t(e);return l}finally{if(lc=!1,(wa!==null||Ba!==null)&&(dr(),wa&&(e=wa,t=Ba,Ba=wa=null,pm(e),t)))for(e=0;e<t.length;e++)pm(t[e])}}function Ki(t,e){var n=t.stateNode;if(n===null)return null;var l=n[Ne]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(N(231,e,typeof n));return n}var Xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xc=!1;if(Xn)try{ya={},Object.defineProperty(ya,"passive",{get:function(){Xc=!0}}),window.addEventListener("test",ya,ya),window.removeEventListener("test",ya,ya)}catch{Xc=!1}var ya,cl=null,Ks=null,ao=null;function gg(){if(ao)return ao;var t,e=Ks,n=e.length,l,a="value"in cl?cl.value:cl.textContent,i=a.length;for(t=0;t<n&&e[t]===a[t];t++);var u=n-t;for(l=1;l<=u&&e[n-l]===a[i-l];l++);return ao=a.slice(t,1<l?1-l:void 0)}function io(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 Yu(){return!0}function ym(){return!1}function fe(t){function e(n,l,a,i,u){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(n=t[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Yu:ym,this.isPropagationStopped=ym,this}return ct(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Yu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Yu)},persist:function(){},isPersistent:Yu}),e}var zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wo=fe(zl),du=ct({},zl,{view:0,detail:0}),_v=fe(du),ac,ic,xi,tr=ct({},du,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ps,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!==xi&&(xi&&t.type==="mousemove"?(ac=t.screenX-xi.screenX,ic=t.screenY-xi.screenY):ic=ac=0,xi=t),ac)},movementY:function(t){return"movementY"in t?t.movementY:ic}}),bm=fe(tr),Hv=ct({},tr,{dataTransfer:0}),Lv=fe(Hv),Uv=ct({},du,{relatedTarget:0}),uc=fe(Uv),Bv=ct({},zl,{animationName:0,elapsedTime:0,pseudoElement:0}),Vv=fe(Bv),Gv=ct({},zl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Yv=fe(Gv),qv=ct({},zl,{data:0}),vm=fe(qv),Xv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jv={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"},kv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=kv[t])?!!e[t]:!1}function Ps(){return Qv}var Kv=ct({},du,{key:function(t){if(t.key){var e=Xv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=io(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?jv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ps,charCode:function(t){return t.type==="keypress"?io(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?io(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Pv=fe(Kv),Zv=ct({},tr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sm=fe(Zv),Jv=ct({},zl,{submitter:0}),Fv=fe(Jv),Iv=ct({},du,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ps}),$v=fe(Iv),Wv=ct({},zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),t1=fe(Wv),e1=ct({},tr,{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}),n1=fe(e1),l1=ct({},zl,{newState:0,oldState:0,source:0}),a1=fe(l1),i1=[9,13,27,32],Zs=Xn&&"CompositionEvent"in window,Di=null;Xn&&"documentMode"in document&&(Di=document.documentMode);var u1=Xn&&"TextEvent"in window&&!Di,pg=Xn&&(!Zs||Di&&8<Di&&11>=Di),Em=" ",xm=!1;function yg(t,e){switch(t){case"keyup":return i1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ra=!1;function o1(t,e){switch(t){case"compositionend":return bg(e);case"keypress":return e.which!==32?null:(xm=!0,Em);case"textInput":return t=e.data,t===Em&&xm?null:t;default:return null}}function r1(t,e){if(Ra)return t==="compositionend"||!Zs&&yg(t,e)?(t=gg(),ao=Ks=cl=null,Ra=!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 pg&&e.locale!=="ko"?null:e.data;default:return null}}var c1={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 Tm(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!c1[t.type]:e==="textarea"}function vg(t,e,n,l){wa?Ba?Ba.push(l):Ba=[l]:wa=l,e=Zo(e,"onChange"),0<e.length&&(n=new Wo("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var _i=null,Pi=null;function s1(t){hy(t,0)}function er(t){var e=zi(t);if(cg(e))return t}function Mm(t,e){if(t==="change")return e}var Sg=!1;Xn&&(Xn?(Xu="oninput"in document,Xu||(oc=document.createElement("div"),oc.setAttribute("oninput","return;"),Xu=typeof oc.oninput=="function"),qu=Xu):qu=!1,Sg=qu&&(!document.documentMode||9<document.documentMode));var qu,Xu,oc;function Nm(){_i&&(_i.detachEvent("onpropertychange",Eg),Pi=_i=null)}function Eg(t){if(t.propertyName==="value"&&er(Pi)){var e=[];vg(e,Pi,t,Qs(t)),hg(s1,e)}}function f1(t,e,n){t==="focusin"?(Nm(),_i=e,Pi=n,_i.attachEvent("onpropertychange",Eg)):t==="focusout"&&Nm()}function d1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return er(Pi)}function m1(t,e){if(t==="click")return er(e)}function h1(t,e){if(t==="input"||t==="change")return er(e)}function g1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Be=typeof Object.is=="function"?Object.is:g1;function Zi(t,e){if(Be(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var a=n[l];if(!Vc.call(e,a)||!Be(t[a],e[a]))return!1}return!0}function jc(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}}function wm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Rm(t,e){var n=wm(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=wm(n)}}function xg(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?xg(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Tg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=jc(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=jc(t.document)}return e}function Js(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 p1=Xn&&"documentMode"in document&&11>=document.documentMode,Aa=null,kc=null,Hi=null,Qc=!1;function Am(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qc||Aa==null||Aa!==jc(l)||(l=Aa,"selectionStart"in l&&Js(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Hi&&Zi(Hi,l)||(Hi=l,l=Zo(kc,"onSelect"),0<l.length&&(e=new Wo("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Aa)))}function Bl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var za={animationend:Bl("Animation","AnimationEnd"),animationiteration:Bl("Animation","AnimationIteration"),animationstart:Bl("Animation","AnimationStart"),transitionrun:Bl("Transition","TransitionRun"),transitionstart:Bl("Transition","TransitionStart"),transitioncancel:Bl("Transition","TransitionCancel"),transitionend:Bl("Transition","TransitionEnd")},rc={},Mg={};Xn&&(Mg=document.createElement("div").style,"AnimationEvent"in window||(delete za.animationend.animation,delete za.animationiteration.animation,delete za.animationstart.animation),"TransitionEvent"in window||delete za.transitionend.transition);function ia(t){if(rc[t])return rc[t];if(!za[t])return t;var e=za[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Mg)return rc[t]=e[n];return t}var Ng=ia("animationend"),wg=ia("animationiteration"),Rg=ia("animationstart"),y1=ia("transitionrun"),b1=ia("transitionstart"),v1=ia("transitioncancel"),Ag=ia("transitionend"),zg=new Map,Kc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Kc.push("scrollEnd");function un(t,e){zg.set(t,e),aa(e,[t])}var S1=0;function jn(t,e){if(t.name!=null&&t.name!=="auto")return t.name;if(e.autoName!==null)return e.autoName;t=an.identifierPrefix;var n=S1++;return t="_"+t+"t_"+n.toString(32)+"_",e.autoName=t}function zm(t){if(t==null||typeof t=="string")return t;var e=null,n=ka;if(n!==null)for(var l=0;l<n.length;l++){var a=t[n[l]];if(a!=null){if(a==="none")return"none";e=e==null?a:e+(" "+a)}}return e??t.default}function Jn(t,e){return t=zm(t),e=zm(e),e==null?t==="auto"?null:t:e==="auto"?null:e}var Ro=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)},ke=[],Ca=0,Fs=0;function nr(){for(var t=Ca,e=Fs=Ca=0;e<t;){var n=ke[e];ke[e++]=null;var l=ke[e];ke[e++]=null;var a=ke[e];ke[e++]=null;var i=ke[e];if(ke[e++]=null,l!==null&&a!==null){var u=l.pending;u===null?a.next=a:(a.next=u.next,u.next=a),l.pending=a}i!==0&&Cg(n,a,i)}}function lr(t,e,n,l){ke[Ca++]=t,ke[Ca++]=e,ke[Ca++]=n,ke[Ca++]=l,Fs|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Is(t,e,n,l){return lr(t,e,n,l),Ao(t)}function ua(t,e){return lr(t,null,null,e),Ao(t)}function Cg(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var a=!1,i=t.return;i!==null;)i.childLanes|=n,l=i.alternate,l!==null&&(l.childLanes|=n),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(a=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,a&&e!==null&&(a=31-Le(n),t=i.hiddenUpdates,l=t[a],l===null?t[a]=[e]:l.push(e),e.lane=n|536870912),i):null}function Ao(t){if(50<ki)throw ki=0,po=null,Error(N(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Oa={};function E1(t,e,n,l){this.tag=t,this.key=n,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xe(t,e,n,l){return new E1(t,e,n,l)}function $s(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Yn(t,e){var n=t.alternate;return n===null?(n=xe(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&1206910976,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Og(t,e){t.flags&=1206910978;var n=t.alternate;return n===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=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function uo(t,e,n,l,a,i){var u=0;if(l=t,typeof l=="function")$s(l)&&(u=1);else if(typeof l=="string")u=PS(t,n,Mn.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(l){case _c:return t=xe(31,n,e,a),t.elementType=_c,t.lanes=i,t;case Ma:return Ql(n.children,a,i,e);case Zh:u=8,a|=24;break;case Cc:return t=xe(12,n,e,a|2),t.elementType=Cc,t.lanes=i,t;case Oc:return t=xe(13,n,e,a),t.elementType=Oc,t.lanes=i,t;case Dc:return t=xe(19,n,e,a),t.elementType=Dc,t.lanes=i,t;case rv:case Hc:return t=a|32,t=xe(30,n,e,t),t.elementType=Hc,t.lanes=i,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case Sn:u=10;break t;case Jh:u=9;break t;case Gs:u=11;break t;case Ys:u=14;break t;case il:u=16,l=null;break t}u=29,n=Error(N(130,t===null?"null":typeof t,"")),l=null}return e=xe(u,n,e,a),e.elementType=t,e.type=l,e.lanes=i,e}function Ql(t,e,n,l){return t=xe(7,t,l,e),t.lanes=n,t}function cc(t,e,n){return t=xe(6,t,null,e),t.lanes=n,t}function Dg(t){var e=xe(18,null,null,0);return e.stateNode=t,e}function sc(t,e,n){return e=xe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Cm=new WeakMap;function Ze(t,e){if(typeof t=="object"&&t!==null){var n=Cm.get(t);return n!==void 0?n:(e={value:t,source:e,stack:rm(e)},Cm.set(t,e),e)}return{value:t,source:e,stack:rm(e)}}var Da=[],_a=0,zo=null,Ji=0,Qe=[],Ke=0,Ml=null,xn=1,Tn="";function Vn(t,e){Da[_a++]=Ji,Da[_a++]=zo,zo=t,Ji=e}function _g(t,e,n){Qe[Ke++]=xn,Qe[Ke++]=Tn,Qe[Ke++]=Ml,Ml=t;var l=xn;t=Tn;var a=32-Le(l)-1;l&=~(1<<a),n+=1;var i=32-Le(e)+a;if(30<i){var u=a-a%5;i=(l&(1<<u)-1).toString(32),l>>=u,a-=u,xn=1<<32-Le(e)+a|n<<a|l,Tn=i+t}else xn=1<<i|n<<a|l,Tn=t}function ar(t){t.return!==null&&(Vn(t,1),_g(t,1,0))}function Ws(t){for(;t===zo;)zo=Da[--_a],Da[_a]=null,Ji=Da[--_a],Da[_a]=null;for(;t===Ml;)Ml=Qe[--Ke],Qe[Ke]=null,Tn=Qe[--Ke],Qe[Ke]=null,xn=Qe[--Ke],Qe[Ke]=null}function Hg(t,e){Qe[Ke++]=xn,Qe[Ke++]=Tn,Qe[Ke++]=Ml,xn=e.id,Tn=e.overflow,Ml=t}var Yt=null,mt=null,G=!1,gl=null,Je=!1,Pc=Error(N(519));function Nl(t){var e=Error(N(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fi(Ze(e,t)),Pc}function Om(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[kt]=t,e[Ne]=l,n){case"dialog":q("cancel",e),q("close",e);break;case"iframe":case"object":case"embed":q("load",e);break;case"video":case"audio":for(n=0;n<tu.length;n++)q(tu[n],e);break;case"source":q("error",e);break;case"img":case"image":case"link":q("error",e),q("load",e);break;case"details":q("toggle",e);break;case"input":q("invalid",e),sg(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":q("invalid",e);break;case"textarea":q("invalid",e),dg(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||py(e.textContent,n)?(l.popover!=null&&(q("beforetoggle",e),q("toggle",e)),l.onScroll!=null&&q("scroll",e),l.onScrollEnd!=null&&q("scrollend",e),l.onClick!=null&&(e.onclick=En),e=!0):e=!1,e||Nl(t,!0)}function Co(t){for(Yt=t.return;Yt;)switch(Yt.tag){case 5:case 31:case 13:Je=!1;return;case 27:case 3:Je=!0;return;default:Yt=Yt.return}}function ba(t){if(t!==Yt)return!1;if(!G)return Co(t),G=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Os(t.type,t.memoizedProps)),n=!n),n&&mt&&Nl(t),Co(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(N(317));mt=Rh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(N(317));mt=Rh(t)}else e===27?(e=mt,Cl(t.type)?(t=Ls,Ls=null,mt=t):mt=e):mt=Yt?Fe(t.stateNode.nextSibling):null;return!0}function Jl(){mt=Yt=null,G=!1}function fc(){var t=gl;return t!==null&&(Se===null?Se=t:Se.push.apply(Se,t),gl=null),t}function Fi(t){gl===null?gl=[t]:gl.push(t)}var Zc=Rn(null),oa=null,Gn=null;function sl(t,e,n){ht(Zc,e._currentValue),e._currentValue=n}function qn(t){t._currentValue=Zc.current,Kt(Zc)}function oo(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function Jc(t,e,n,l){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){var u=a.child;i=i.firstContext;t:for(;i!==null;){var o=i;i=a;for(var r=0;r<e.length;r++)if(o.context===e[r]){i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),oo(i.return,n,t),l||(u=null);break t}i=o.next}}else if(a.tag===18){if(u=a.return,u===null)throw Error(N(341));u.lanes|=n,i=u.alternate,i!==null&&(i.lanes|=n),oo(u,n,t),u=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),oo(a.return,n,t),u=a.child,u=u!==null?u.sibling:null):u=a.child;if(u!==null)u.return=a;else for(u=a;u!==null;){if(u===t){u=null;break}if(a=u.sibling,a!==null){a.return=u.return,u=a;break}u=u.return}a=u}}function Fl(t,e,n,l){t=null;for(var a=e,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var u=a.alternate;if(u===null)throw Error(N(387));if(u=u.memoizedProps,u!==null){var o=a.type;Be(a.pendingProps.value,u.value)||(t!==null?t.push(o):t=[o])}}else if(a===xo.current){if(u=a.alternate,u===null)throw Error(N(387));u.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(ei):t=[ei])}a=a.return}return t!==null&&Jc(e,t,n,l),e.flags|=262144,t!==null}function Oo(t){for(t=t.firstContext;t!==null;){if(!Be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Il(t){oa=t,Gn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Qt(t){return Lg(oa,t)}function ju(t,e){return oa===null&&Il(t),Lg(t,e)}function Lg(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Gn===null){if(t===null)throw Error(N(308));Gn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Gn=Gn.next=e;return n}var x1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},T1=Ht.unstable_scheduleCallback,M1=Ht.unstable_NormalPriority,zt={$$typeof:Sn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tf(){return{controller:new x1,data:new Map,refCount:0}}function mu(t){t.refCount--,t.refCount===0&&T1(M1,function(){t.controller.abort()})}function Dm(t,e){if((t.pendingLanes&4194048)!==0){var n=t.transitionTypes;for(n===null&&(n=t.transitionTypes=[]),t=0;t<e.length;t++){var l=e[t];n.indexOf(l)===-1&&n.push(l)}}}var Ci=null;function N1(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var Li=null,Fc=0,$l=0,Va=null;function w1(t,e){if(Li===null){var n=Li=[];Fc=0,$l=zf(),Va={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Fc++,e.then(_m,_m),e}function _m(){if(--Fc===0&&(Ci=null,Li!==null)){Va!==null&&(Va.status="fulfilled");var t=Li;Li=null,$l=0,Va=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function R1(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var a=0;a<n.length;a++)(0,n[a])(e)},function(a){for(l.status="rejected",l.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),l}var Hm=H.S;H.S=function(t,e){if(Wp=_e(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&w1(t,e),Ci!==null)for(var n=$a;n!==null;)Dm(n,Ci),n=n.next;if(n=t.types,n!==null){for(var l=$a;l!==null;)Dm(l,n),l=l.next;if($l!==0){l=Ci,l===null&&(l=Ci=[]);for(var a=0;a<n.length;a++){var i=n[a];l.indexOf(i)===-1&&l.push(i)}}}Hm!==null&&Hm(t,e)};var Kl=Rn(null);function ef(){var t=Kl.current;return t!==null?t:rt.pooledCache}function ro(t,e){e===null?ht(Kl,Kl.current):ht(Kl,e.pool)}function Ug(){var t=ef();return t===null?null:{parent:zt._currentValue,pool:t}}var ui=Error(N(460)),nf=Error(N(474)),ir=Error(N(542)),Do={then:function(){}};function Lm(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Bg(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(En,En),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Bm(t),t===void 0&&!("reason"in e)?Error(N(600)):t;default:if(typeof e.status=="string")e.then(En,En);else{if(t=rt,t!==null&&100<t.shellSuspendCounter)throw Error(N(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=l}},function(l){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Bm(t),t}throw Pl=e,ui}}function Yl(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Pl=n,ui):n}}var Pl=null;function Um(){if(Pl===null)throw Error(N(459));var t=Pl;return Pl=null,t}function Bm(t){if(t===ui||t===ir)throw Error(N(483))}var Ga=null,Ii=0;function ku(t){var e=Ii;return Ii+=1,Ga===null&&(Ga=[]),Bg(Ga,t,e)}function nl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Qu(t,e){throw e.$$typeof===ov?Error(N(525)):(t=Object.prototype.toString.call(e),Error(N(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Vg(t){function e(d,m){if(t){var p=d.deletions;p===null?(d.deletions=[m],d.flags|=16):p.push(m)}}function n(d,m){if(!t)return null;for(;m!==null;)e(d,m),m=m.sibling;return null}function l(d){for(var m=new Map;d!==null;)d.key===null?m.set(d.index,d):m.set(d.key,d),d=d.sibling;return m}function a(d,m){return d=Yn(d,m),d.index=0,d.sibling=null,d}function i(d,m,p){return d.index=p,t?(p=d.alternate,p!==null?(p=p.index,p<m?(d.flags|=2,m):p):(d.flags|=134217730,m)):(d.flags|=1048576,m)}function u(d){return t&&d.alternate===null&&(d.flags|=134217730),d}function o(d,m,p,y){return m===null||m.tag!==6?(m=cc(p,d.mode,y),m.return=d,m):(m=a(m,p),m.return=d,m)}function r(d,m,p,y){var x=p.type;return x===Ma?(d=h(d,m,p.props.children,y,p.key),nl(d,p),d):m!==null&&(m.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===il&&Yl(x)===m.type)?(m=a(m,p.props),nl(m,p),m.return=d,m):(m=uo(p.type,p.key,p.props,null,d.mode,y),nl(m,p),m.return=d,m)}function c(d,m,p,y){return m===null||m.tag!==4||m.stateNode.containerInfo!==p.containerInfo||m.stateNode.implementation!==p.implementation?(m=sc(p,d.mode,y),m.return=d,m):(m=a(m,p.children||[]),m.return=d,m)}function h(d,m,p,y,x){return m===null||m.tag!==7?(m=Ql(p,d.mode,y,x),m.return=d,m):(m=a(m,p),m.return=d,m)}function g(d,m,p){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=cc(""+m,d.mode,p),m.return=d,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Lu:return p=uo(m.type,m.key,m.props,null,d.mode,p),nl(p,m),p.return=d,p;case Ri:return m=sc(m,d.mode,p),m.return=d,m;case il:return m=Yl(m),g(d,m,p)}if(Ai(m)||Ei(m))return m=Ql(m,d.mode,p,null),m.return=d,m;if(typeof m.then=="function")return g(d,ku(m),p);if(m.$$typeof===Sn)return g(d,ju(d,m),p);Qu(d,m)}return null}function s(d,m,p,y){var x=m!==null?m.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return x!==null?null:o(d,m,""+p,y);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Lu:return p.key===x?r(d,m,p,y):null;case Ri:return p.key===x?c(d,m,p,y):null;case il:return p=Yl(p),s(d,m,p,y)}if(Ai(p)||Ei(p))return x!==null?null:h(d,m,p,y,null);if(typeof p.then=="function")return s(d,m,ku(p),y);if(p.$$typeof===Sn)return s(d,m,ju(d,p),y);Qu(d,p)}return null}function f(d,m,p,y,x){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return d=d.get(p)||null,o(m,d,""+y,x);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Lu:return d=d.get(y.key===null?p:y.key)||null,r(m,d,y,x);case Ri:return d=d.get(y.key===null?p:y.key)||null,c(m,d,y,x);case il:return y=Yl(y),f(d,m,p,y,x)}if(Ai(y)||Ei(y))return d=d.get(p)||null,h(m,d,y,x,null);if(typeof y.then=="function")return f(d,m,p,ku(y),x);if(y.$$typeof===Sn)return f(d,m,p,ju(m,y),x);Qu(m,y)}return null}function b(d,m,p,y){for(var x=null,T=null,M=m,w=m=0,z=null;M!==null&&w<p.length;w++){M.index>w?(z=M,M=null):z=M.sibling;var C=s(d,M,p[w],y);if(C===null){M===null&&(M=z);break}t&&M&&C.alternate===null&&e(d,M),m=i(C,m,w),T===null?x=C:T.sibling=C,T=C,M=z}if(w===p.length)return n(d,M),G&&Vn(d,w),x;if(M===null){for(;w<p.length;w++)M=g(d,p[w],y),M!==null&&(m=i(M,m,w),T===null?x=M:T.sibling=M,T=M);return G&&Vn(d,w),x}for(M=l(M);w<p.length;w++)z=f(M,d,w,p[w],y),z!==null&&(t&&(C=z.alternate,C!==null&&M.delete(C.key===null?w:C.key)),m=i(z,m,w),T===null?x=z:T.sibling=z,T=z);return t&&M.forEach(function($){return e(d,$)}),G&&Vn(d,w),x}function S(d,m,p,y){if(p==null)throw Error(N(151));for(var x=null,T=null,M=m,w=m=0,z=null,C=p.next();M!==null&&!C.done;w++,C=p.next()){M.index>w?(z=M,M=null):z=M.sibling;var $=s(d,M,C.value,y);if($===null){M===null&&(M=z);break}t&&M&&$.alternate===null&&e(d,M),m=i($,m,w),T===null?x=$:T.sibling=$,T=$,M=z}if(C.done)return n(d,M),G&&Vn(d,w),x;if(M===null){for(;!C.done;w++,C=p.next())C=g(d,C.value,y),C!==null&&(m=i(C,m,w),T===null?x=C:T.sibling=C,T=C);return G&&Vn(d,w),x}for(M=l(M);!C.done;w++,C=p.next())C=f(M,d,w,C.value,y),C!==null&&(t&&(z=C.alternate,z!==null&&M.delete(z.key===null?w:z.key)),m=i(C,m,w),T===null?x=C:T.sibling=C,T=C);return t&&M.forEach(function(pt){return e(d,pt)}),G&&Vn(d,w),x}function v(d,m,p,y){if(typeof p=="object"&&p!==null&&p.type===Ma&&p.key===null&&p.props.ref===void 0&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Lu:t:{for(var x=p.key;m!==null;){if(m.key===x){if(x=p.type,x===Ma){if(m.tag===7){n(d,m.sibling),y=a(m,p.props.children),nl(y,p),y.return=d,d=y;break t}}else if(m.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===il&&Yl(x)===m.type){n(d,m.sibling),y=a(m,p.props),nl(y,p),y.return=d,d=y;break t}n(d,m);break}else e(d,m);m=m.sibling}p.type===Ma?(y=Ql(p.props.children,d.mode,y,p.key),nl(y,p),y.return=d,d=y):(y=uo(p.type,p.key,p.props,null,d.mode,y),nl(y,p),y.return=d,d=y)}return u(d);case Ri:t:{for(x=p.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===p.containerInfo&&m.stateNode.implementation===p.implementation){n(d,m.sibling),y=a(m,p.children||[]),y.return=d,d=y;break t}else{n(d,m);break}else e(d,m);m=m.sibling}y=sc(p,d.mode,y),y.return=d,d=y}return u(d);case il:return p=Yl(p),v(d,m,p,y)}if(Ai(p))return b(d,m,p,y);if(Ei(p)){if(x=Ei(p),typeof x!="function")throw Error(N(150));return p=x.call(p),S(d,m,p,y)}if(typeof p.then=="function")return v(d,m,ku(p),y);if(p.$$typeof===Sn)return v(d,m,ju(d,p),y);Qu(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,m!==null&&m.tag===6?(n(d,m.sibling),y=a(m,p),y.return=d,d=y):(n(d,m),y=cc(p,d.mode,y),y.return=d,d=y),u(d)):n(d,m)}return function(d,m,p,y){try{Ii=0;var x=v(d,m,p,y);return Ga=null,x}catch(M){if(M===ui||M===ir)throw M;var T=xe(29,M,null,d.mode);return T.lanes=y,T.return=d,T}finally{}}}var Wl=Vg(!0),Gg=Vg(!1),ul=!1;function lf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ic(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 pl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function yl(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(tt&2)!==0){var a=l.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),l.pending=e,e=Ao(t),Cg(t,null,n),e}return lr(t,l,e,n),Ao(t)}function Ui(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,ng(t,n)}}function dc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var u={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=u:i=i.next=u,n=n.next}while(n!==null);i===null?a=i=e:i=i.next=e}else a=i=e;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var $c=!1;function Bi(){if($c){var t=Va;if(t!==null)throw t}}function Vi(t,e,n,l){$c=!1;var a=t.updateQueue;ul=!1;var i=a.firstBaseUpdate,u=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var r=o,c=r.next;r.next=null,u===null?i=c:u.next=c,u=r;var h=t.alternate;h!==null&&(h=h.updateQueue,o=h.lastBaseUpdate,o!==u&&(o===null?h.firstBaseUpdate=c:o.next=c,h.lastBaseUpdate=r))}if(i!==null){var g=a.baseState;u=0,h=c=r=null,o=i;do{var s=o.lane&-536870913,f=s!==o.lane;if(f?(Q&s)===s:(l&s)===s){s!==0&&s===$l&&($c=!0),h!==null&&(h=h.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var b=t,S=o;s=e;var v=n;switch(S.tag){case 1:if(b=S.payload,typeof b=="function"){g=b.call(v,g,s);break t}g=b;break t;case 3:b.flags=b.flags&-65537|128;case 0:if(b=S.payload,s=typeof b=="function"?b.call(v,g,s):b,s==null)break t;g=ct({},g,s);break t;case 2:ul=!0}}s=o.callback,s!==null&&(t.flags|=64,f&&(t.flags|=8192),f=a.callbacks,f===null?a.callbacks=[s]:f.push(s))}else f={lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},h===null?(c=h=f,r=g):h=h.next=f,u|=s;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;f=o,o=f.next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}while(!0);h===null&&(r=g),a.baseState=r,a.firstBaseUpdate=c,a.lastBaseUpdate=h,i===null&&(a.shared.lanes=0),Al|=u,t.lanes=u,t.memoizedState=g}}function Yg(t,e){if(typeof t!="function")throw Error(N(191,t));t.call(e)}function qg(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Yg(n[t],e)}var wl=Rn(null),_o=Rn(0);function Vm(t,e){t=Pn,ht(_o,t),ht(wl,e),Pn=t|e.baseLanes}function Wc(){ht(_o,Pn),ht(wl,wl.current)}function af(){Pn=_o.current,Kt(wl),Kt(_o)}var Jt=Rn(null),ne=null;function bl(t){var e=t.alternate;ht(Pt,Pt.current&1),ht(Jt,t),ne===null&&(e===null||wl.current!==null||e.memoizedState!==null)&&(ne=t)}function ts(t){ht(Pt,Pt.current),ht(Jt,t),ne===null&&(ne=t)}function Xg(t){t.tag===22?(ht(Pt,Pt.current),ht(Jt,t),ne===null&&(ne=t)):vl()}function vl(){ht(Pt,Pt.current),ht(Jt,Jt.current)}function Ce(t){Kt(Jt),ne===t&&(ne=null),Kt(Pt)}var Pt=Rn(0);function $i(t,e){ht(Jt,Jt.current),ht(Pt,e)}function uf(t){Kt(Pt),Kt(Jt),ne===t&&(ne=null)}function Ho(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Hs(n)||_f(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!=="independent"){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 kn=0,V=null,ut=null,At=null,Lo=!1,Ya=!1,ta=!1,Uo=0,Wi=0,qa=null,A1=0;function Tt(){throw Error(N(321))}function of(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Be(t[n],e[n]))return!1;return!0}function rf(t,e,n,l,a,i){return kn=i,V=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,H.H=t===null||t.memoizedState===null?vp:Sp,ta=!1,i=n(l,a),ta=!1,Ya&&(i=kg(e,n,l,a)),jg(t),i}function jg(t){H.H=Bo;var e=ut!==null&&ut.next!==null;if(kn=0,At=ut=V=null,Lo=!1,Wi=0,qa=null,e)throw Error(N(300));t===null||Ct||(t=t.dependencies,t!==null&&Oo(t)&&(Ct=!0))}function kg(t,e,n,l){V=t;var a=0;do{if(Ya&&(qa=null),Wi=0,Ya=!1,25<=a)throw Error(N(301));if(a+=1,At=ut=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}H.H=U1,i=e(n,l)}while(Ya);return i}function z1(){var t=H.H,e=t.useState()[0];return e=typeof e.then=="function"?hu(e):e,t=t.useState()[0],(ut!==null?ut.memoizedState:null)!==t&&(V.flags|=1024),e}function cf(){var t=Uo!==0;return Uo=0,t}function sf(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function ff(t){if(Lo){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Lo=!1}kn=0,At=ut=V=null,Ya=!1,Wi=Uo=0,qa=null}function se(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?V.memoizedState=At=t:At=At.next=t,At}function Nt(){if(ut===null){var t=V.alternate;t=t!==null?t.memoizedState:null}else t=ut.next;var e=At===null?V.memoizedState:At.next;if(e!==null)At=e,ut=t;else{if(t===null)throw V.alternate===null?Error(N(467)):Error(N(310));ut=t,t={memoizedState:ut.memoizedState,baseState:ut.baseState,baseQueue:ut.baseQueue,queue:ut.queue,next:null},At===null?V.memoizedState=At=t:At=At.next=t}return At}function ur(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hu(t){var e=Wi;return Wi+=1,qa===null&&(qa=[]),t=Bg(qa,t,e),e=V,(At===null?e.memoizedState:At.next)===null&&(e=e.alternate,H.H=e===null||e.memoizedState===null?vp:Sp),t}function or(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return hu(t);if(t.$$typeof===sv)return;if(t.$$typeof===Sn)return Qt(t)}throw Error(N(438,String(t)))}function df(t){var e=null,n=V.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=V.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=ur(),V.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=cv;return e.index++,n}function Qn(t,e){return typeof e=="function"?e(t):e}function co(t){var e=Nt();return mf(e,ut,t)}function mf(t,e,n){var l=t.queue;if(l===null)throw Error(N(311));l.lastRenderedReducer=n;var a=t.baseQueue,i=l.pending;if(i!==null){if(a!==null){var u=a.next;a.next=i.next,i.next=u}e.baseQueue=a=i,l.pending=null}if(i=t.baseState,a===null)t.memoizedState=i;else{e=a.next;var o=u=null,r=null,c=e,h=!1;do{var g=c.lane&-536870913;if(g!==c.lane?(Q&g)===g:(kn&g)===g){var s=c.revertLane;if(s===0)r!==null&&(r=r.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),g===$l&&(h=!0);else if((kn&s)===s){c=c.next,s===$l&&(h=!0);continue}else g={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},r===null?(o=r=g,u=i):r=r.next=g,V.lanes|=s,Al|=s;g=c.action,ta&&n(i,g),i=c.hasEagerState?c.eagerState:n(i,g)}else s={lane:g,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},r===null?(o=r=s,u=i):r=r.next=s,V.lanes|=g,Al|=g;c=c.next}while(c!==null&&c!==e);if(r===null?u=i:r.next=o,!Be(i,t.memoizedState)&&(Ct=!0,h&&(n=Va,n!==null)))throw n;t.memoizedState=i,t.baseState=u,t.baseQueue=r,l.lastRenderedState=i}return a===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function mc(t){var e=Nt(),n=e.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=t;var l=n.dispatch,a=n.pending,i=e.memoizedState;if(a!==null){n.pending=null;var u=a=a.next;do i=t(i,u.action),u=u.next;while(u!==a);Be(i,e.memoizedState)||(Ct=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,l]}function Qg(t,e,n){var l=V,a=Nt(),i=G;if(i){if(n===void 0)throw Error(N(407));n=n()}else n=e();var u=!Be((ut||a).memoizedState,n);if(u&&(a.memoizedState=n,Ct=!0),a=a.queue,hf(Zg.bind(null,l,a,t),[t]),t=a.getSnapshot!==e||u||At!==null&&(At.memoizedState.tag&1)!==0,Za(t?9:8,{destroy:void 0},Pg.bind(null,l,a,n,e),null),t){if(l.flags|=2048,rt===null)throw Error(N(349));i||(kn&127)!==0||Kg(l,e,n)}return n}function Kg(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=V.updateQueue,e===null?(e=ur(),V.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Pg(t,e,n,l){e.value=n,e.getSnapshot=l,Jg(e)&&Fg(t)}function Zg(t,e,n){return n(function(){Jg(e)&&Fg(t)})}function Jg(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Be(t,n)}catch{return!0}}function Fg(t){var e=ua(t,2);e!==null&&Te(e,t,2)}function es(t){var e=se();if(typeof t=="function"){var n=t;if(t=n(),ta){rl(!0);try{n()}finally{rl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:t},e}function Ig(t,e,n,l){return t.baseState=n,mf(t,ut,typeof l=="function"?l:Qn)}function C1(t,e,n,l,a){if(cr(t))throw Error(N(485));if(t=e.action,t!==null){var i={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};H.T!==null?n(!0):i.isTransition=!1,l(i),n=e.pending,n===null?(i.next=e.pending=i,$g(e,i)):(i.next=n.next,e.pending=n.next=i)}}function $g(t,e){var n=e.action,l=e.payload,a=t.state;if(e.isTransition){var i=H.T,u={};u.types=i!==null?i.types:null,H.T=u;try{var o=n(a,l),r=H.S;r!==null&&r(u,o),Gm(t,e,o)}catch(c){ns(t,e,c)}finally{i!==null&&u.types!==null&&(i.types=u.types),H.T=i}}else try{i=n(a,l),Gm(t,e,i)}catch(c){ns(t,e,c)}}function Gm(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Ym(t,e,l)},function(l){return ns(t,e,l)}):Ym(t,e,n)}function Ym(t,e,n){e.status="fulfilled",e.value=n,Wg(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,$g(t,n)))}function ns(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,Wg(e),e=e.next;while(e!==l)}t.action=null}function Wg(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function tp(t,e){return e}function qm(t,e){if(G){var n=rt.formState;if(n!==null){t:{var l=V;if(G){if(mt){e:{for(var a=mt,i=Je;a.nodeType!==8;){if(!i){a=null;break e}if(a=Fe(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){mt=Fe(a.nextSibling),l=a.data==="F!";break t}}Nl(l)}l=!1}l&&(e=n[0])}}return n=se(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tp,lastRenderedState:e},n.queue=l,n=pp.bind(null,V,l),l.dispatch=n,l=es(!1),i=bf.bind(null,V,!1,l.queue),l=se(),a={state:e,dispatch:null,action:t,pending:null},l.queue=a,n=C1.bind(null,V,a,i,n),a.dispatch=n,l.memoizedState=t,[e,n,!1]}function Xm(t){var e=Nt();return ep(e,ut,t)}function ep(t,e,n){if(e=mf(t,e,tp)[0],t=co(Qn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=hu(e)}catch(u){throw u===ui?ir:u}else l=e;e=Nt();var a=e.queue,i=a.dispatch;return n!==e.memoizedState&&(V.flags|=2048,Za(9,{destroy:void 0},O1.bind(null,a,n),null)),[l,i,t]}function O1(t,e){t.action=e}function jm(t){var e=Nt(),n=ut;if(n!==null)return ep(e,n,t);Nt(),e=e.memoizedState,n=Nt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Za(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=V.updateQueue,e===null&&(e=ur(),V.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function np(){return Nt().memoizedState}function so(t,e,n,l){var a=se();V.flags|=t,a.memoizedState=Za(1|e,{destroy:void 0},n,l===void 0?null:l)}function rr(t,e,n,l){var a=Nt();l=l===void 0?null:l;var i=a.memoizedState.inst;ut!==null&&l!==null&&of(l,ut.memoizedState.deps)?a.memoizedState=Za(e,i,n,l):(V.flags|=t,a.memoizedState=Za(1|e,i,n,l))}function km(t,e){so(8390656,8,t,e)}function hf(t,e){rr(2048,8,t,e)}function D1(t){V.flags|=4;var e=V.updateQueue;if(e===null)e=ur(),V.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function lp(t){var e=Nt().memoizedState;return D1({ref:e,nextImpl:t}),function(){if((tt&2)!==0)throw Error(N(440));return e.impl.apply(void 0,arguments)}}function ap(t,e){return rr(4,2,t,e)}function ip(t,e){return rr(4,4,t,e)}function up(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function op(t,e,n){n=n!=null?n.concat([t]):null,rr(4,4,up.bind(null,e,t),n)}function gf(){}function rp(t,e){var n=Nt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&of(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function cp(t,e){var n=Nt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&of(e,l[1]))return l[0];if(l=t(),ta){rl(!0);try{t()}finally{rl(!1)}}return n.memoizedState=[l,e],l}function pf(t,e,n){return n===void 0||(kn&1073741824)!==0&&(Q&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=ey(),V.lanes|=t,Al|=t,n)}function sp(t,e,n,l){return Be(n,e)?n:wl.current!==null?(t=pf(t,n,l),Be(t,e)||(Ct=!0),t):(kn&106)===0||(kn&1073741824)!==0&&(Q&261930)===0?(Ct=!0,t.memoizedState=n):(t=ey(),V.lanes|=t,Al|=t,e)}function fp(t,e,n,l,a){var i=et.p;et.p=i!==0&&8>i?i:8;var u=H.T,o={};o.types=u!==null?u.types:null,H.T=o,bf(t,!1,e,n);try{var r=a(),c=H.S;if(c!==null&&c(o,r),r!==null&&typeof r=="object"&&typeof r.then=="function"){var h=R1(r,l);Gi(t,e,h,Ue(t))}else Gi(t,e,l,Ue(t))}catch(g){Gi(t,e,{then:function(){},status:"rejected",reason:g},Ue())}finally{et.p=i,u!==null&&o.types!==null&&(u.types=o.types),H.T=u}}function _1(){}function ls(t,e,n,l){if(t.tag!==5)throw Error(N(476));var a=dp(t).queue;fp(t,a,e,kl,n===null?_1:function(){return mp(t),n(l)})}function dp(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:kl,baseState:kl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:kl},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function mp(t){var e=dp(t);e.next===null&&(e=t.alternate.memoizedState),Gi(t,e.next.queue,{},Ue())}function yf(){return Qt(ei)}function hp(){return Nt().memoizedState}function gp(){return Nt().memoizedState}function H1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ue();t=pl(n);var l=yl(e,t,n);l!==null&&(Te(l,e,n),Ui(l,e,n)),e={cache:tf()},t.payload=e;return}e=e.return}}function L1(t,e,n){var l=Ue();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},cr(t)?yp(e,n):(n=Is(t,e,n,l),n!==null&&(Te(n,t,l),bp(n,e,l)))}function pp(t,e,n){var l=Ue();Gi(t,e,n,l)}function Gi(t,e,n,l){var a={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(cr(t))yp(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var u=e.lastRenderedState,o=i(u,n);if(a.hasEagerState=!0,a.eagerState=o,Be(o,u))return lr(t,e,a,0),rt===null&&nr(),!1}catch{}finally{}if(n=Is(t,e,a,l),n!==null)return Te(n,t,l),bp(n,e,l),!0}return!1}function bf(t,e,n,l){if(l={lane:2,revertLane:zf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},cr(t)){if(e)throw Error(N(479))}else e=Is(t,n,l,2),e!==null&&Te(e,t,2)}function cr(t){var e=t.alternate;return t===V||e!==null&&e===V}function yp(t,e){Ya=Lo=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function bp(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,ng(t,n)}}var Bo={readContext:Qt,use:or,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useInsertionEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useSyncExternalStore:Tt,useId:Tt,useHostTransitionStatus:Tt,useFormState:Tt,useActionState:Tt,useOptimistic:Tt,useMemoCache:Tt,useCacheRefresh:Tt,useEffectEvent:Tt},vp={readContext:Qt,use:or,useCallback:function(t,e){return se().memoizedState=[t,e===void 0?null:e],t},useContext:Qt,useEffect:km,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,so(4194308,4,up.bind(null,e,t),n)},useLayoutEffect:function(t,e){return so(4194308,4,t,e)},useInsertionEffect:function(t,e){so(4,2,t,e)},useMemo:function(t,e){var n=se();e=e===void 0?null:e;var l=t();if(ta){rl(!0);try{t()}finally{rl(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=se();if(n!==void 0){var a=n(e);if(ta){rl(!0);try{n(e)}finally{rl(!1)}}}else a=e;return l.memoizedState=l.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},l.queue=t,t=t.dispatch=L1.bind(null,V,t),[l.memoizedState,t]},useRef:function(t){var e=se();return t={current:t},e.memoizedState=t},useState:function(t){t=es(t);var e=t.queue,n=pp.bind(null,V,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:gf,useDeferredValue:function(t,e){var n=se();return pf(n,t,e)},useTransition:function(){var t=es(!1);return t=fp.bind(null,V,t.queue,!0,!1),se().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=V,a=se();if(G){if(n===void 0)throw Error(N(407));n=n()}else{if(n=e(),rt===null)throw Error(N(349));(Q&127)!==0||Kg(l,e,n)}a.memoizedState=n;var i={value:n,getSnapshot:e};return a.queue=i,km(Zg.bind(null,l,i,t),[t]),l.flags|=2048,Za(9,{destroy:void 0},Pg.bind(null,l,i,n,e),null),n},useId:function(){var t=se(),e=rt.identifierPrefix;if(G){var n=Tn,l=xn;n=(l&~(1<<32-Le(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Uo++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=A1++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:yf,useFormState:qm,useActionState:qm,useOptimistic:function(t){var e=se();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=bf.bind(null,V,!0,n),n.dispatch=e,[t,e]},useMemoCache:df,useCacheRefresh:function(){return se().memoizedState=H1.bind(null,V)},useEffectEvent:function(t){var e=se(),n={impl:t};return e.memoizedState=n,function(){if((tt&2)!==0)throw Error(N(440));return n.impl.apply(void 0,arguments)}}},Sp={readContext:Qt,use:or,useCallback:rp,useContext:Qt,useEffect:hf,useImperativeHandle:op,useInsertionEffect:ap,useLayoutEffect:ip,useMemo:cp,useReducer:co,useRef:np,useState:function(){return co(Qn)},useDebugValue:gf,useDeferredValue:function(t,e){var n=Nt();return sp(n,ut.memoizedState,t,e)},useTransition:function(){var t=co(Qn)[0],e=Nt().memoizedState;return[typeof t=="boolean"?t:hu(t),e]},useSyncExternalStore:Qg,useId:hp,useHostTransitionStatus:yf,useFormState:Xm,useActionState:Xm,useOptimistic:function(t,e){var n=Nt();return Ig(n,ut,t,e)},useMemoCache:df,useCacheRefresh:gp,useEffectEvent:lp},U1={readContext:Qt,use:or,useCallback:rp,useContext:Qt,useEffect:hf,useImperativeHandle:op,useInsertionEffect:ap,useLayoutEffect:ip,useMemo:cp,useReducer:mc,useRef:np,useState:function(){return mc(Qn)},useDebugValue:gf,useDeferredValue:function(t,e){var n=Nt();return ut===null?pf(n,t,e):sp(n,ut.memoizedState,t,e)},useTransition:function(){var t=mc(Qn)[0],e=Nt().memoizedState;return[typeof t=="boolean"?t:hu(t),e]},useSyncExternalStore:Qg,useId:hp,useHostTransitionStatus:yf,useFormState:jm,useActionState:jm,useOptimistic:function(t,e){var n=Nt();return ut!==null?Ig(n,ut,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:df,useCacheRefresh:gp,useEffectEvent:lp};function hc(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:ct({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var as={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Ue(),a=pl(l);a.payload=e,n!=null&&(a.callback=n),e=yl(t,a,l),e!==null&&(Te(e,t,l),Ui(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Ue(),a=pl(l);a.tag=1,a.payload=e,n!=null&&(a.callback=n),e=yl(t,a,l),e!==null&&(Te(e,t,l),Ui(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ue(),l=pl(n);l.tag=2,e!=null&&(l.callback=e),e=yl(t,l,n),e!==null&&(Te(e,t,n),Ui(e,t,n))}};function Qm(t,e,n,l,a,i,u){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,i,u):e.prototype&&e.prototype.isPureReactComponent?!Zi(n,l)||!Zi(a,i):!0}function Km(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&as.enqueueReplaceState(e,e.state,null)}function ea(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=ct({},n));for(var a in t)n[a]===void 0&&(n[a]=t[a])}return n}function Ep(t){Ro(t)}function xp(t){console.error(t)}function Tp(t){Ro(t)}function Vo(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Pm(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function is(t,e,n){return n=pl(n),n.tag=3,n.payload={element:null},n.callback=function(){Vo(t,e)},n}function Mp(t){return t=pl(t),t.tag=3,t}function Np(t,e,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=l.value;t.payload=function(){return a(i)},t.callback=function(){Pm(e,n,l)}}var u=n.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(t.callback=function(){Pm(e,n,l),typeof a!="function"&&(Sl===null?Sl=new Set([this]):Sl.add(this));var o=l.stack;this.componentDidCatch(l.value,{componentStack:o!==null?o:""})})}function B1(t,e,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Fl(e,n,a,!0),n=Jt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return ne===null?Ko():n.alternate===null&&Mt===0&&(Mt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===Do?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),Ec(t,l,a)),!1;case 22:return n.flags|=65536,l===Do?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),Ec(t,l,a)),!1}throw Error(N(435,n.tag))}return Ec(t,l,a),Ko(),!1}if(G)return e=Jt.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,l!==Pc&&(t=Error(N(422),{cause:l}),Fi(Ze(t,n)))):(l!==Pc&&(e=Error(N(423),{cause:l}),Fi(Ze(e,n))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,l=Ze(l,n),a=is(t.stateNode,l,a),dc(t,a),Mt!==4&&(Mt=2)),!1;var i=Error(N(520),{cause:l});if(i=Ze(i,n),ji===null?ji=[i]:ji.push(i),Mt!==4&&(Mt=2),e===null)return!0;l=Ze(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=a&-a,n.lanes|=t,t=is(n.stateNode,l,t),dc(n,t),!1;case 1:if(e=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Sl===null||!Sl.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Mp(a),Np(a,t,n,l),dc(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var vf=Error(N(461)),Ct=!1;function Dt(t,e,n,l){e.child=t===null?Gg(e,null,n,l):Wl(e,t.child,n,l)}function Zm(t,e,n,l,a){n=n.render;var i=e.ref;if("ref"in l){var u={};for(var o in l)o!=="ref"&&(u[o]=l[o])}else u=l;return Il(e),l=rf(t,e,n,u,i,a),o=cf(),t!==null&&!Ct?(sf(t,e,a),Kn(t,e,a)):(G&&o&&ar(e),e.flags|=1,Dt(t,e,l,a),e.child)}function Jm(t,e,n,l,a){if(t===null){var i=n.type;return typeof i=="function"&&!$s(i)&&i.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=i,wp(t,e,i,l,a)):(t=uo(n.type,null,l,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!Ef(t,a)){var u=i.memoizedProps;if(n=n.compare,n=n!==null?n:Zi,n(u,l)&&t.ref===e.ref)return Kn(t,e,a)}return e.flags|=1,t=Yn(i,l),t.ref=e.ref,t.return=e,e.child=t}function wp(t,e,n,l,a){if(t!==null){var i=t.memoizedProps;if(Zi(i,l)&&t.ref===e.ref)if(Ct=!1,e.pendingProps=l=i,Ef(t,a))(t.flags&131072)!==0&&(Ct=!0);else return e.lanes=t.lanes,Kn(t,e,a)}return us(t,e,n,l,a)}function Rp(t,e,n,l){var a=l.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|n:n,t!==null){for(l=e.child=t.child,a=0;l!==null;)a=a|l.lanes|l.childLanes,l=l.sibling;l=a&~i}else l=0,e.child=null;return Fm(t,e,i,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ro(e,i!==null?i.cachePool:null),i!==null?Vm(e,i):Wc(),Xg(e);else return l=e.lanes=536870912,Fm(t,e,i!==null?i.baseLanes|n:n,n,l)}else i!==null?(ro(e,i.cachePool),Vm(e,i),vl(),e.memoizedState=null):(t!==null&&ro(e,null),Wc(),vl());return Dt(t,e,a,n),e.child}function Yi(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Fm(t,e,n,l,a){var i=ef();return i=i===null?null:{parent:zt._currentValue,pool:i},e.memoizedState={baseLanes:n,cachePool:i},t!==null&&ro(e,null),Wc(),Xg(e),t!==null&&Fl(t,e,l,!0),e.childLanes=a,null}function fo(t,e){return e=sr({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Im(t,e,n){return Wl(e,t.child,null,n),t=fo(e,e.pendingProps),t.flags|=2,Ce(e),e.memoizedState=null,t}function V1(t,e,n){var l=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(G){if(l.mode==="hidden")return t=fo(e,l),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},Yi(null,t);if(ts(e),(t=mt)?(t=Ry(t,Je),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ml!==null?{id:xn,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},n=Dg(t),n.return=e,e.child=n,Yt=e,mt=null)):t=null,t===null)throw Nl(e);return e.lanes=536870912,null}return fo(e,l)}var i=t.memoizedState;if(i!==null){var u=i.dehydrated;if(ts(e),a)if(e.flags&256)e.flags&=-257,e=Im(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(N(558));else if(Ct||Fl(t,e,n,!1),a=(n&t.childLanes)!==0,Ct||a){if(wl.current===null){if(l=rt,l!==null&&(u=lg(l,n),u!==0&&u!==i.retryLane))throw i.retryLane=u,ua(t,u),Te(l,t,u),vf;Ko()}e=Im(t,e,n)}else t=i.treeContext,mt=Fe(u.nextSibling),Yt=e,G=!0,gl=null,Je=!1,t!==null&&Hg(e,t),e=fo(e,l),e.flags|=134221824;return e}return t=Yn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Sa(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(N(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function us(t,e,n,l,a){return Il(e),n=rf(t,e,n,l,void 0,a),l=cf(),t!==null&&!Ct?(sf(t,e,a),Kn(t,e,a)):(G&&l&&ar(e),e.flags|=1,Dt(t,e,n,a),e.child)}function $m(t,e,n,l,a,i){return Il(e),e.updateQueue=null,n=kg(e,l,n,a),jg(t),l=cf(),t!==null&&!Ct?(sf(t,e,i),Kn(t,e,i)):(G&&l&&ar(e),e.flags|=1,Dt(t,e,n,i),e.child)}function Wm(t,e,n,l,a){if(Il(e),e.stateNode===null){var i=Oa,u=n.contextType;typeof u=="object"&&u!==null&&(i=Qt(u)),i=new n(l,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=as,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=l,i.state=e.memoizedState,i.refs={},lf(e),u=n.contextType,i.context=typeof u=="object"&&u!==null?Qt(u):Oa,i.state=e.memoizedState,u=n.getDerivedStateFromProps,typeof u=="function"&&(hc(e,n,u,l),i.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&as.enqueueReplaceState(i,i.state,null),Vi(e,l,i,a),Bi(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){i=e.stateNode;var o=e.memoizedProps,r=ea(n,o);i.props=r;var c=i.context,h=n.contextType;u=Oa,typeof h=="object"&&h!==null&&(u=Qt(h));var g=n.getDerivedStateFromProps;h=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||c!==u)&&Km(e,i,l,u),ul=!1;var s=e.memoizedState;i.state=s,Vi(e,l,i,a),Bi(),c=e.memoizedState,o||s!==c||ul?(typeof g=="function"&&(hc(e,n,g,l),c=e.memoizedState),(r=ul||Qm(e,n,r,l,s,c,u))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=c),i.props=l,i.state=c,i.context=u,l=r):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{i=e.stateNode,Ic(t,e),u=e.memoizedProps,h=ea(n,u),i.props=h,g=e.pendingProps,s=i.context,c=n.contextType,r=Oa,typeof c=="object"&&c!==null&&(r=Qt(c)),o=n.getDerivedStateFromProps,(c=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==g||s!==r)&&Km(e,i,l,r),ul=!1,s=e.memoizedState,i.state=s,Vi(e,l,i,a),Bi();var f=e.memoizedState;u!==g||s!==f||ul||t!==null&&t.dependencies!==null&&Oo(t.dependencies)?(typeof o=="function"&&(hc(e,n,o,l),f=e.memoizedState),(h=ul||Qm(e,n,h,l,s,f,r)||t!==null&&t.dependencies!==null&&Oo(t.dependencies))?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,f,r),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,f,r)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===t.memoizedProps&&s===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&s===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=f),i.props=l,i.state=f,i.context=r,l=h):(typeof i.componentDidUpdate!="function"||u===t.memoizedProps&&s===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&s===t.memoizedState||(e.flags|=1024),l=!1)}return i=l,Sa(t,e),l=(e.flags&128)!==0,i||l?(i=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&l?(e.child=Wl(e,t.child,null,a),e.child=Wl(e,null,n,a)):Dt(t,e,n,a),e.memoizedState=i.state,t=e.child):t=Kn(t,e,a),t}function th(t,e,n,l){return Jl(),e.flags|=256,Dt(t,e,n,l),e.child}var os={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rs(t){return{baseLanes:t,cachePool:Ug()}}function cs(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=De),t}function Ap(t,e,n){var l=e.pendingProps,a=!1,i=(e.flags&128)!==0,u;if((u=i)||(u=t!==null&&t.memoizedState===null?!1:(Pt.current&2)!==0),u&&(a=!0,e.flags&=-129),u=(e.flags&32)!==0,e.flags&=-33,t===null){if(G){if(a?bl(e):vl(),(t=mt)?(t=Ry(t,Je),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ml!==null?{id:xn,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},n=Dg(t),n.return=e,e.child=n,Yt=e,mt=null)):t=null,t===null)throw Nl(e);return _f(t)?e.lanes=32:e.lanes=536870912,null}return i=l.children,l=l.fallback,a?(vl(),a=e.mode,i=sr({mode:"hidden",children:i},a),l=Ql(l,a,n,null),i.return=e,l.return=e,i.sibling=l,e.child=i,l=e.child,l.memoizedState=rs(n),l.childLanes=cs(t,u,n),e.memoizedState=os,Yi(null,l)):(bl(e),Sf(e,i))}var o=t.memoizedState;if(o!==null){var r=o.dehydrated;if(r!==null)return G1(t,e,i,u,l,r,o,n)}return a?(vl(),a=l.fallback,i=e.mode,o=t.child,r=o.sibling,l=Yn(o,{mode:"hidden",children:l.children}),l.subtreeFlags=o.subtreeFlags&1206910976,r!==null?a=Yn(r,a):(a=Ql(a,i,n,null),a.flags|=2),a.return=e,l.return=e,l.sibling=a,e.child=l,Yi(null,l),l=e.child,a=t.child.memoizedState,a===null?a=rs(n):(i=a.cachePool,i!==null?(o=zt._currentValue,i=i.parent!==o?{parent:o,pool:o}:i):i=Ug(),a={baseLanes:a.baseLanes|n,cachePool:i}),l.memoizedState=a,l.childLanes=cs(t,u,n),e.memoizedState=os,Yi(t.child,l)):(bl(e),n=t.child,t=n.sibling,n=Yn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(u=e.deletions,u===null?(e.deletions=[t],e.flags|=16):u.push(t)),e.child=n,e.memoizedState=null,n)}function Sf(t,e){return e=sr({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function sr(t,e){return t=xe(22,t,null,e),t.lanes=0,t}function Ku(t,e,n){return Wl(e,t.child,null,n),t=Sf(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function G1(t,e,n,l,a,i,u,o){if(n)return e.flags&256?(bl(e),e.flags&=-257,Ku(t,e,o)):e.memoizedState!==null?(vl(),e.child=t.child,e.flags|=128,null):(vl(),i=a.fallback,u=e.mode,a=sr({mode:"visible",children:a.children},u),i=Ql(i,u,o,null),i.flags|=2,a.return=e,i.return=e,a.sibling=i,e.child=a,Wl(e,t.child,null,o),a=e.child,a.memoizedState=rs(o),a.childLanes=cs(t,l,o),e.memoizedState=os,Yi(null,a));if(bl(e),_f(i)){if(l=i.nextSibling&&i.nextSibling.dataset,l)var r=l.dgst;return l=r,l!==""&&(a=Error(N(419)),a.stack="",a.digest=l,Fi({value:a,source:null,stack:null})),Ku(t,e,o)}if(Ct||Fl(t,e,o,!1),l=(o&t.childLanes)!==0,Ct||l){if(wl.current!==null)return Ku(t,e,o);if(l=rt,l!==null&&(a=lg(l,o),a!==0&&a!==u.retryLane))throw u.retryLane=a,ua(t,a),Te(l,t,a),vf;return Hs(i)||Ko(),Ku(t,e,o)}return Hs(i)?(e.flags|=192,e.child=t.child,null):(t=u.treeContext,mt=Fe(i.nextSibling),Yt=e,G=!0,gl=null,Je=!1,t!==null&&Hg(e,t),e=Sf(e,a.children),e.flags|=134221824,e)}function eh(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),oo(t.return,e,n)}function nh(t){for(var e=null;t!==null;){var n=t.alternate;n!==null&&Ho(n)===null&&(e=t),t=t.sibling}return e}function Pu(t,e,n,l,a,i){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a,treeForkCount:i}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=l,u.tail=n,u.tailMode=a,u.treeForkCount=i)}function gc(t){var e=t.child;for(t.child=null;e!==null;){var n=e.sibling;e.sibling=t.child,t.child=e,e=n}}function ss(t,e,n){var l=e.pendingProps,a=l.revealOrder,i=l.tail;l=l.children;var u=Pt.current;if(e.flags&128)return $i(e,u),null;var o=(u&2)!==0;if(o?(u=u&1|2,e.flags|=128):u&=1,$i(e,u),a==="backwards"&&t!==null?(gc(t),Dt(t,e,l,n),gc(t)):Dt(t,e,l,n),l=G?Ji:0,!o&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&eh(t,n,e);else if(t.tag===19)eh(t,n,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"backwards":n=nh(e.child),n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null,gc(e)),Pu(e,!0,a,null,i,l);break;case"unstable_legacy-backwards":for(n=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Ho(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}Pu(e,!0,n,null,i,l);break;case"together":Pu(e,!1,null,null,void 0,l);break;case"independent":e.memoizedState=null;break;default:n=nh(e.child),n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),Pu(e,!1,a,n,i,l)}return e.child}function lh(t,e,n){var l=e.pendingProps;return sl(e,e.type,l.value),Dt(t,e,l.children,n),e.child}function Kn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Al|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Fl(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(N(153));if(e.child!==null){for(t=e.child,n=Yn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Yn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Ef(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Oo(t)))}function Y1(t,e,n){switch(e.tag){case 3:To(e,e.stateNode.containerInfo),sl(e,zt,t.memoizedState.cache),Jl();break;case 27:case 5:Bc(e);break;case 4:To(e,e.stateNode.containerInfo);break;case 10:sl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,ts(e),null;break;case 13:var l=e.memoizedState;if(l!==null){if(l.dehydrated!==null)return bl(e),e.flags|=128,null;l=Fl(t,e,n,!1);var a=e.child.childLanes;return l||(n&a)!==0?Ap(t,e,n):(bl(e),t=Kn(t,e,n),t!==null?t.sibling:null)}bl(e);break;case 19:if(e.flags&128)return ss(t,e,n);if(a=(t.flags&128)!==0,l=(n&e.childLanes)!==0,l||(Fl(t,e,n,!1),l=(n&e.childLanes)!==0),a){if(l)return ss(t,e,n);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),$i(e,Pt.current),l)break;return null;case 22:return e.lanes=0,Rp(t,e,n,e.pendingProps);case 24:sl(e,zt,t.memoizedState.cache)}return Kn(t,e,n)}function zp(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ct=!0;else{if(!Ef(t,n)&&(e.flags&128)===0)return Ct=!1,Y1(t,e,n);Ct=(t.flags&131072)!==0}else Ct=!1,G&&(e.flags&1048576)!==0&&_g(e,Ji,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Yl(e.elementType),e.type=t,typeof t=="function")$s(t)?(l=ea(t,l),e.tag=1,e=Wm(null,e,t,l,n)):(e.tag=0,e=us(null,e,t,l,n));else{if(t!=null){var a=t.$$typeof;if(a===Gs){e.tag=11,e=Zm(null,e,t,l,n);break t}else if(a===Ys){e.tag=14,e=Jm(null,e,t,l,n);break t}else if(a===Sn){e.tag=10,e.type=t,e=lh(null,e,n);break t}}throw e=Lc(t)||t,Error(N(306,e,""))}}return e;case 0:return us(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,a=ea(l,e.pendingProps),Wm(t,e,l,a,n);case 3:t:{if(To(e,e.stateNode.containerInfo),t===null)throw Error(N(387));l=e.pendingProps;var i=e.memoizedState;a=i.element,Ic(t,e),Vi(e,l,null,n);var u=e.memoizedState;if(l=u.cache,sl(e,zt,l),l!==i.cache&&Jc(e,[zt],n,!0),Bi(),l=u.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:u.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=th(t,e,l,n);break t}else if(l!==a){a=Ze(Error(N(424)),e),Fi(a),e=th(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(mt=Fe(t.firstChild),Yt=e,G=!0,gl=null,Je=!0,n=Gg(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Jl(),l===a){e=Kn(t,e,n);break t}Dt(t,e,l,n)}e=e.child}return e;case 26:return Sa(t,e),t===null?(n=Ch(e.type,null,e.pendingProps,null))?e.memoizedState=n:G||(e.stateNode=by(e.type,e.pendingProps,hl.current,e)):e.memoizedState=Ch(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Bc(e),t===null&&G&&(l=e.stateNode=Ay(e.type,e.pendingProps,hl.current),Yt=e,Je=!0,a=mt,Cl(e.type)?(Ls=a,mt=Fe(l.firstChild)):mt=a),Dt(t,e,e.pendingProps.children,n),Sa(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&G&&((a=l=mt)&&(l=DS(l,e.type,e.pendingProps,Je),l!==null?(e.stateNode=l,Yt=e,mt=Fe(l.firstChild),Je=!1,a=!0):a=!1),a||Nl(e)),Bc(e),a=e.type,i=e.pendingProps,u=t!==null?t.memoizedProps:null,l=i.children,Os(a,i)?l=null:u!==null&&Os(a,u)&&(e.flags|=32),e.memoizedState!==null&&(a=rf(t,e,z1,null,null,n),ei._currentValue=a),Sa(t,e),Dt(t,e,l,n),e.child;case 6:return t===null&&G&&((t=n=mt)&&(n=_S(n,e.pendingProps,Je),n!==null?(e.stateNode=n,Yt=e,mt=null,t=!0):t=!1),t||Nl(e)),null;case 13:return Ap(t,e,n);case 4:return To(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Wl(e,null,l,n):Dt(t,e,l,n),e.child;case 11:return Zm(t,e,e.type,e.pendingProps,n);case 7:return l=e.pendingProps,Sa(t,e),Dt(t,e,l,n),e.child;case 8:return Dt(t,e,e.pendingProps.children,n),e.child;case 12:return Dt(t,e,e.pendingProps.children,n),e.child;case 10:return lh(t,e,n);case 9:return a=e.type._context,l=e.pendingProps.children,Il(e),a=Qt(a),l=l(a),e.flags|=1,Dt(t,e,l,n),e.child;case 14:return Jm(t,e,e.type,e.pendingProps,n);case 15:return wp(t,e,e.type,e.pendingProps,n);case 19:return ss(t,e,n);case 31:return V1(t,e,n);case 22:return Rp(t,e,n,e.pendingProps);case 24:return Il(e),l=Qt(zt),t===null?(a=ef(),a===null&&(a=rt,i=tf(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),e.memoizedState={parent:l,cache:a},lf(e),sl(e,zt,a)):((t.lanes&n)!==0&&(Ic(t,e),Vi(e,null,null,n),Bi()),a=t.memoizedState,i=e.memoizedState,a.parent!==l?(a={parent:l,cache:l},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),sl(e,zt,l)):(l=i.cache,sl(e,zt,l),l!==a.cache&&Jc(e,[zt],n,!0))),Dt(t,e,e.pendingProps.children,n),e.child;case 30:return e.stateNode===null&&(e.stateNode={autoName:null,paired:null,clones:null,ref:null}),l=e.pendingProps,l.name!=null&&l.name!=="auto"?e.flags|=t===null?18882560:18874368:G&&ar(e),t!==null&&t.memoizedProps.name!==l.name?e.flags|=4194816:Sa(t,e),Dt(t,e,l.children,n),e.child;case 29:throw e.pendingProps}throw Error(N(156,e.tag))}function Bn(t){t.flags|=4}function pc(t,e,n,l,a){var i;if((i=(t.mode&32)!==0)&&(i=n===null?_h(e,l):_h(e,l)&&(l.src!==n.src||l.srcSet!==n.srcSet)),i){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(ay())t.flags|=8192;else throw Pl=Do,nf}else t.flags&=-16777217}function ah(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Dy(e))if(ay())t.flags|=8192;else throw Pl=Do,nf}function Zu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?tg():536870912,t.lanes|=e,Ja|=e)}function Ti(t,e){if(!G)switch(t.tailMode){case"visible":break;case"collapsed":for(var n=t.tail,l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null;break;default:for(e=t.tail,n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null}}function dt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags&1206910976,l|=a.flags&1206910976,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function q1(t,e,n){var l=e.pendingProps;switch(Ws(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(e),null;case 1:return dt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),qn(zt),Qa(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ba(e)?Bn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,fc())),dt(e),null;case 26:var a=e.type,i=e.memoizedState;return t===null?(Bn(e),i!==null?(dt(e),ah(e,i)):(dt(e),pc(e,a,null,l,n))):i?i!==t.memoizedState?(Bn(e),dt(e),ah(e,i)):(dt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Bn(e),dt(e),pc(e,a,t,l,n)),null;case 27:if(Mo(e),n=hl.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Bn(e);else{if(!l){if(e.stateNode===null)throw Error(N(166));return dt(e),e.subtreeFlags&=-33554433,null}t=Mn.current,ba(e)?Om(e,t):(t=Ay(a,l,n),e.stateNode=t,Bn(e))}return dt(e),e.subtreeFlags&=-33554433,null;case 5:if(Mo(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Bn(e);else{if(!l){if(e.stateNode===null)throw Error(N(166));return dt(e),e.subtreeFlags&=-33554433,null}if(i=Mn.current,ba(e))Om(e,i);else{var u=nu(hl.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?u.createElement(a,{is:l.is}):u.createElement(a)}}i[kt]=e,i[Ne]=l;t:for(u=e.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break t;for(;u.sibling===null;){if(u.return===null||u.return===e)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}e.stateNode=i;t:switch(Zt(i,a,l),a){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Bn(e)}}return dt(e),e.subtreeFlags&=-33554433,pc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Bn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(N(166));if(t=hl.current,ba(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,a=Yt,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps}t[kt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||py(t.nodeValue,n)),t||Nl(e,!0)}else t=nu(t).createTextNode(l),t[kt]=e,e.stateNode=t}return dt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=ba(e),n!==null){if(t===null){if(!l)throw Error(N(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(N(557));t[kt]=e}else Jl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;dt(e),t=!1}else n=fc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ce(e),e):(Ce(e),null);if((e.flags&128)!==0)throw Error(N(558))}return dt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=ba(e),l!==null&&l.dehydrated!==null){if(t===null){if(!a)throw Error(N(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(N(317));a[kt]=e}else Jl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;dt(e),a=!1}else a=fc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(Ce(e),e):(Ce(e),null)}return Ce(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,a=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(a=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==a&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Zu(e,e.updateQueue),dt(e),null);case 4:return Qa(),t===null&&Cf(e.stateNode.containerInfo),e.flags|=67108864,dt(e),null;case 10:return qn(e.type),dt(e),null;case 19:if(uf(e),l=e.memoizedState,l===null)return dt(e),null;if(a=(e.flags&128)!==0,i=l.rendering,i===null)if(a)Ti(l,!1);else{if(Mt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=Ho(t),i!==null){for(e.flags|=128,Ti(l,!1),t=i.updateQueue,e.updateQueue=t,Zu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Og(n,t),n=n.sibling;return $i(e,Pt.current&1|2),G&&Vn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&_e()>ko&&(e.flags|=128,a=!0,Ti(l,!1),e.lanes=4194304)}else{if(!a)if(t=Ho(i),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Zu(e,t),Ti(l,!0),l.tail===null&&l.tailMode!=="collapsed"&&l.tailMode!=="visible"&&!i.alternate&&!G)return dt(e),null}else 2*_e()-l.renderingStartTime>ko&&n!==536870912&&(e.flags|=128,a=!0,Ti(l,!1),e.lanes=4194304);l.isBackwards?(i.sibling=e.child,e.child=i):(t=l.last,t!==null?t.sibling=i:e.child=i,l.last=i)}if(l.tail!==null){t=l.tail;t:{for(n=t;n!==null;){if(n.alternate!==null){n=!1;break t}n=n.sibling}n=!0}return l.rendering=t,l.tail=t.sibling,l.renderingStartTime=_e(),t.sibling=null,i=Pt.current,i=a?i&1|2:i&1,l.tailMode==="visible"||l.tailMode==="collapsed"||!n||G?$i(e,i):(n=i,ht(Jt,e),ht(Pt,n),ne===null&&(ne=e)),G&&Vn(e,l.treeForkCount),t}return dt(e),null;case 22:case 23:return Ce(e),af(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(dt(e),e.subtreeFlags&6&&(e.flags|=8192)):dt(e),n=e.updateQueue,n!==null&&Zu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&Kt(Kl),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),qn(zt),dt(e),null;case 25:return null;case 30:return e.flags|=33554432,dt(e),null}throw Error(N(156,e.tag))}function X1(t,e){switch(Ws(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return qn(zt),Qa(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Mo(e),null;case 31:if(e.memoizedState!==null){if(Ce(e),e.alternate===null)throw Error(N(340));Jl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ce(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(N(340));Jl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return uf(e),t=e.flags,t&65536?(e.flags=t&-65537|128,t=e.memoizedState,t!==null&&(t.rendering=null,t.tail=null),e.flags|=4,e):null;case 4:return Qa(),null;case 10:return qn(e.type),null;case 22:case 23:return Ce(e),af(),t!==null&&Kt(Kl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return qn(zt),null;case 25:return null;default:return null}}function Cp(t,e){switch(Ws(e),e.tag){case 3:qn(zt),Qa();break;case 26:case 27:case 5:Mo(e);break;case 4:Qa();break;case 31:e.memoizedState!==null&&Ce(e);break;case 13:Ce(e);break;case 19:uf(e);break;case 10:qn(e.type);break;case 22:case 23:Ce(e),af(),t!==null&&Kt(Kl);break;case 24:qn(zt)}}function gu(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var a=l.next;n=a;do{if((n.tag&t)===t){l=void 0;var i=n.create,u=n.inst;l=i(),u.destroy=l}n=n.next}while(n!==a)}}catch(o){it(e,e.return,o)}}function Rl(t,e,n){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&t)===t){var u=l.inst,o=u.destroy;if(o!==void 0){u.destroy=void 0,a=e;var r=n,c=o;try{c()}catch(h){it(a,r,h)}}}l=l.next}while(l!==i)}}catch(h){it(e,e.return,h)}}function Op(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{qg(e,n)}catch(l){it(t,t.return,l)}}}function Dp(t,e,n){n.props=ea(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){it(t,e,l)}}function bn(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:var a=t.stateNode,i=jn(t.memoizedProps,a);(a.ref===null||a.ref.name!==i)&&(a.ref=xy(i)),l=a.ref;break;case 7:if(t.stateNode===null){var u=new Ve(t);Me(t.child,!1,CS,u,void 0,void 0),t.stateNode=u}l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(o){it(t,e,o)}}function jt(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(a){it(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){it(t,e,a)}else n.current=null}function Go(t,e){if((t.tag===5||t.tag===27||t.tag===6)&&t.alternate===null&&e!==null)for(var n=0;n<e.length;n++)wy(t.stateNode,e[n])}function ih(t){for(var e=t.return;e!==null&&(Tf(e)&&wy(t.stateNode,e.stateNode),!xf(e));)e=e.return}function qi(t){for(var e=t.return;e!==null&&(Tf(e)&&OS(t.stateNode,e.stateNode),!xf(e));)e=e.return}function xf(t){return t.tag===5||t.tag===3||t.tag===27}function Tf(t){return t&&t.tag===7&&t.stateNode!==null}function fs(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(a){it(t,t.return,a)}}function yc(t,e,n){try{var l=t.stateNode;dS(l,t.type,n,e),l[Ne]=e}catch(a){it(t,t.return,a)}}function _p(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Cl(t.type)||t.tag===4}function bc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||_p(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&&Cl(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 ds(t,e,n,l){var a=t.tag;if(a===5||a===6)a=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(a,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(a),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=En)),Go(t,l),I=!0;else if(a!==4&&(a===27&&(Go(t,l),l=null,Cl(t.type)&&(n=t.stateNode,e=null)),t=t.child,t!==null))for(ds(t,e,n,l),t=t.sibling;t!==null;)ds(t,e,n,l),t=t.sibling}function Yo(t,e,n,l){var a=t.tag;if(a===5||a===6)a=t.stateNode,e?n.insertBefore(a,e):n.appendChild(a),Go(t,l),I=!0;else if(a!==4&&(a===27&&(Go(t,l),l=null,Cl(t.type)&&(n=t.stateNode)),t=t.child,t!==null))for(Yo(t,e,n,l),t=t.sibling;t!==null;)Yo(t,e,n,l),t=t.sibling}function Hp(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);Zt(e,l,n),e[kt]=t,e[Ne]=n}catch(i){it(t,t.return,i)}}var qo=!1,Oe=null;function uh(t){(t.tag===30||(t.subtreeFlags&33554432)!==0)&&(qo=!0)}var vn=null;function oh(){var t=vn;return vn=null,t}var Ee=0;function oi(t,e,n,l,a){return Ee=0,Lp(t.child,e,n,l,a)}function Lp(t,e,n,l,a){for(var i=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(l!==null){var o=Ds(u);l.push(o),o.view&&(i=!0)}else i||Ds(u).view&&(i=!0);qo=!0,vy(u,Ee===0?e:e+"_"+Ee,n),Ee++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&a||Lp(t.child,e,n,l,a)&&(i=!0));t=t.sibling}return i}function wn(t,e){for(;t!==null;)t.tag===5?Sy(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&e||wn(t.child,e)),t=t.sibling}function mo(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if((t.tag!==22||t.memoizedState===null)&&(mo(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired)){var e=t.memoizedProps;if(e.name==null||e.name==="auto")throw Error(N(544));var n=e.name;e=Jn(e.default,e.share),e!=="none"&&(oi(t,n,e,null,!1)||wn(t.child,!1))}t=t.sibling}}function ms(t,e){if(t.tag===30){var n=t.stateNode,l=t.memoizedProps,a=jn(l,n),i=Jn(l.default,n.paired?l.share:l.enter);i!=="none"?oi(t,a,i,null,!1)?(mo(t),n.paired||e||Fa(t,l.onEnter)):wn(t.child,!1):mo(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)ms(t,e),t=t.sibling;else mo(t)}function hs(t){if(Oe!==null&&Oe.size!==0){var e=Oe;if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var n=t.memoizedProps,l=n.name;if(l!=null&&l!=="auto"){var a=e.get(l);if(a!==void 0){var i=Jn(n.default,n.share);if(i!=="none"&&(oi(t,l,i,null,!1)?(i=t.stateNode,a.paired=i,i.paired=a,Fa(t,n.onShare)):wn(t.child,!1)),e.delete(l),e.size===0)break}}}hs(t)}t=t.sibling}}}function gs(t){if(t.tag===30){var e=t.memoizedProps,n=jn(e,t.stateNode),l=Oe!==null?Oe.get(n):void 0,a=Jn(e.default,l!==void 0?e.share:e.exit);a!=="none"&&(oi(t,n,a,null,!1)?l!==void 0?(a=t.stateNode,l.paired=a,a.paired=l,Oe.delete(n),Fa(t,e.onShare)):Fa(t,e.onExit):wn(t.child,!1)),Oe!==null&&hs(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)gs(t),t=t.sibling;else Oe!==null&&hs(t)}function Up(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,n=jn(e,t.stateNode);e=Jn(e.default,e.update),t.flags&=-5,e!=="none"&&oi(t,n,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&Up(t);t=t.sibling}}function ps(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var e=t.stateNode;e.paired!==null&&(e.paired=null,wn(t.child,!1))}ps(t)}t=t.sibling}}function ho(t){if(t.tag===30)t.stateNode.paired=null,wn(t.child,!1),ps(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)ho(t),t=t.sibling;else ps(t)}function Bp(t){for(t=t.child;t!==null;)t.tag===30?wn(t.child,!1):(t.subtreeFlags&33554432)!==0&&Bp(t),t=t.sibling}function Mf(t,e,n,l,a,i,u){for(var o=!1;e!==null;){if(e.tag===5){var r=e.stateNode;if(i!==null&&Ee<i.length){var c=i[Ee],h=Ds(r);(c.view||h.view)&&(o=!0);var g;if(g=(t.flags&4)===0)if(h.clip)g=!0;else{g=c.rect;var s=h.rect;g=g.y!==s.y||g.x!==s.x||g.height!==s.height||g.width!==s.width}g&&(t.flags|=4),h.abs?h=!c.abs:(c=c.rect,h=h.rect,h=c.height!==h.height||c.width!==h.width),h&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&vy(r,Ee===0?n:n+"_"+Ee,a),o&&(t.flags&4)!==0||(vn===null&&(vn=[]),vn.push(r,Ee===0?l:l+"_"+Ee,e.memoizedProps)),Ee++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&u?t.flags|=e.flags&32:Mf(t,e.child,n,l,a,i,u)&&(o=!0));e=e.sibling}return o}function Vp(t,e){for(t=t.child;t!==null;){if(t.tag===30){var n=t.memoizedProps,l=t.stateNode,a=jn(n,l),i=Jn(n.default,n.update);if(e){l=l.clones;var u=l===null?null:l.map(bS)}else u=t.memoizedState,t.memoizedState=null;l=t;var o=t.child;Ee=0,a=Mf(l,o,a,a,i,u,!1),(t.flags&4)!==0&&a&&(e||Fa(t,n.onUpdate))}else(t.subtreeFlags&33554432)!==0&&Vp(t,e);t=t.sibling}}var Bt=!1,nt=!1,gn=!1,vc=!1,rh=typeof WeakSet=="function"?WeakSet:Set,Vt=null,pn=!1,Oi=!1,Xo=!1,ys=!1;function j1(t,e,n){if(t=t.containerInfo,zs=ni,t=Tg(t),Js(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var o=0,r=-1,c=-1,h=0,g=0,s=t,f=null;e:for(;;){for(var b;s!==l||i!==0&&s.nodeType!==3||(r=o+i),s!==u||a!==0&&s.nodeType!==3||(c=o+a),s.nodeType===3&&(o+=s.nodeValue.length),(b=s.firstChild)!==null;)f=s,s=b;for(;;){if(s===t)break e;if(f===l&&++h===i&&(r=o),f===u&&++g===a&&(c=o),(b=s.nextSibling)!==null)break;s=f,f=s.parentNode}s=b}l=r===-1||c===-1?null:{start:r,end:c}}else l=null}l=l||{start:0,end:0}}else l=null;for(Cs={focusedElem:t,selectionRange:l},ni=!1,n=(n&335544064)===n,Vt=e,e=n?9270:1024;Vt!==null;){if(t=Vt,n&&(l=t.deletions,l!==null))for(i=0;i<l.length;i++)n&&gs(l[i]);if(t.alternate===null&&(t.flags&2)!==0)n&&uh(t),Ju(n);else{if(t.tag===22){if(l=t.alternate,t.memoizedState!==null){l!==null&&l.memoizedState===null&&n&&gs(l),Ju(n);continue}else if(l!==null&&l.memoizedState!==null){n&&uh(t),Ju(n);continue}}l=t.child,(t.subtreeFlags&e)!==0&&l!==null?(l.return=t,Vt=l):(n&&Up(t),Ju(n))}}Oe=null}function Ju(t){for(;Vt!==null;){var e=Vt,n=t,l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&l!==null){n=void 0,a=l.memoizedProps,l=l.memoizedState;var i=e.stateNode;try{var u=ea(e.type,a);n=i.getSnapshotBeforeUpdate(u,l),i.__reactInternalSnapshotBeforeUpdate=n}catch(o){it(e,e.return,o)}}break;case 3:if((a&1024)!==0){if(l=e.stateNode.containerInfo,n=l.nodeType,n===9)_s(l);else if(n===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":_s(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&l!==null&&(n=jn(l.memoizedProps,l.stateNode),a=e.memoizedProps,a=Jn(a.default,a.update),a!=="none"&&oi(l,n,a,l.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(N(163))}if(l=e.sibling,l!==null){l.return=e.return,Vt=l;break}Vt=e.return}}function Gp(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:yn(t,n),l&4&&gu(5,n);break;case 1:if(yn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(u){it(n,n.return,u)}else{var a=ea(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(u){it(n,n.return,u)}}l&64&&Op(n),l&512&&bn(n,n.return);break;case 3:if(yn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{qg(t,e)}catch(u){it(n,n.return,u)}}break;case 27:e===null&&l&4&&Hp(n);case 26:case 5:yn(t,n),e===null&&l&4&&fs(n),l&512&&bn(n,n.return);break;case 12:yn(t,n);break;case 31:yn(t,n),l&4&&jp(t,n);break;case 13:yn(t,n),l&4&&kp(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=eS.bind(null,n),HS(t,n))));break;case 22:if(l=n.memoizedState!==null||Bt,!l){var i=e!==null&&e.memoizedState!==null||nt;e=Bt,a=nt,Bt=l,(nt=i)&&!a?(l=2,(n.subtreeFlags&8772)!==0&&(l|=1),en(t,n,l)):yn(t,n),Bt=e,nt=a}break;case 30:yn(t,n),l&512&&bn(n,n.return);break;case 7:l&512&&bn(n,n.return);default:yn(t,n)}}function bs(t,e){for(t=t.child;t!==null;)Yp(t,e),t=t.sibling}function Yp(t,e){switch(t.tag){case 5:case 26:try{var n=t.stateNode;if(e){var l=n.style;typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"}else{var a=t.stateNode,i=t.memoizedProps.style,u=i!=null&&i.hasOwnProperty("display")?i.display:null;a.style.display=u==null||typeof u=="boolean"?"":(""+u).trim()}}catch(r){it(t,t.return,r)}vs(t,e);break;case 6:try{t.stateNode.nodeValue=e?"":t.memoizedProps,I=!0}catch(r){it(t,t.return,r)}break;case 18:try{var o=t.stateNode;e?Mh(o,!0):Mh(t.stateNode,!1)}catch(r){it(t,t.return,r)}break;case 22:case 23:t.memoizedState===null&&bs(t,e);break;default:bs(t,e)}}function vs(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){t:{var n=t,l=e;switch(n.tag){case 4:Yp(n,l);break t;case 22:n.memoizedState===null&&vs(n,l);break t;default:vs(n,l)}}t=t.sibling}}function qp(t){var e=t.alternate;e!==null&&(t.alternate=null,qp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&$o(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 bt=null,ve=!1;function tn(t,e,n){for(n=n.child;n!==null;)Xp(t,e,n),n=n.sibling}function Xp(t,e,n){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(ru,n)}catch{}switch(n.tag){case 26:nt||jt(n,e),tn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!nt&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nt||jt(n,e),qi(n);var l=bt,a=ve;Cl(n.type)&&(bt=n.stateNode,ve=!1),tn(t,e,n),zy(n.stateNode,n.type,n.memoizedProps),bt=l,ve=a;break;case 5:nt||jt(n,e),qi(n);case 6:if(n.tag===6&&qi(n),l=bt,a=ve,bt=null,tn(t,e,n),bt=l,ve=a,bt!==null)if(ve)try{(bt.nodeType===9?bt.body:bt.nodeName==="HTML"?bt.ownerDocument.body:bt).removeChild(n.stateNode),I=!0}catch(i){it(n,e,i)}else try{bt.removeChild(n.stateNode),I=!0}catch(i){it(n,e,i)}break;case 18:bt!==null&&(ve?(t=bt,Th(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),li(t)):Th(bt,n.stateNode));break;case 4:l=bt,a=ve,bt=n.stateNode.containerInfo,ve=!0,tn(t,e,n),bt=l,ve=a;break;case 0:case 11:case 14:case 15:Rl(2,n,e),nt||Rl(4,n,e),tn(t,e,n);break;case 1:nt||(jt(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Dp(n,e,l)),tn(t,e,n);break;case 21:tn(t,e,n);break;case 22:nt=(l=nt)||n.memoizedState!==null,tn(t,e,n),nt=l;break;case 30:jt(n,e),tn(t,e,n);break;case 7:nt||jt(n,e),tn(t,e,n);break;default:tn(t,e,n)}}function jp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{li(t)}catch(n){it(e,e.return,n)}}}function kp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{li(t)}catch(n){it(e,e.return,n)}}function k1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new rh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new rh),e;default:throw Error(N(435,t.tag))}}function Fu(t,e){var n=k1(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var a=nS.bind(null,t,l);l.then(a,a)}})}function re(t,e,n){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a],u=t,o=e,r=o;t:for(;r!==null;){switch(r.tag){case 27:if(Cl(r.type)){bt=r.stateNode,ve=!1;break t}break;case 5:bt=r.stateNode,ve=!1;break t;case 3:case 4:bt=r.stateNode.containerInfo,ve=!0;break t}r=r.return}if(bt===null)throw Error(N(160));Xp(u,o,i),bt=null,ve=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Qp(e,t,n),e=e.sibling}var nn=null;function Qp(t,e,n){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(a&4&&(l=t.updateQueue,l=l!==null?l.events:null,l!==null))for(var i=0;i<l.length;i++){var u=l[i];u.ref.impl=u.nextImpl}re(e,t,n),ce(t),a&4&&(Rl(3,t,t.return),gu(3,t),Rl(5,t,t.return));break;case 1:re(e,t,n),ce(t),a&512&&(nt||l===null||jt(l,l.return)),a&64&&Bt&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?e:n.concat(e))));break;case 26:if(i=nn,re(e,t,n),ce(t),a&512&&(nt||l===null||jt(l,l.return)),a&4)if(a=l!==null?l.memoizedState:null,n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null)if(Bt)t.stateNode=by(t.type,t.memoizedProps,e.containerInfo,t);else{t:{e=t.type,n=t.memoizedProps,a=i.ownerDocument||i;e:switch(e){case"title":l=a.getElementsByTagName("title")[0],(!l||l[fu]||l[kt]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=a.createElement(e),a.head.insertBefore(l,a.querySelector("head > title"))),Zt(l,e,n),l[kt]=t,Gt(l),e=l;break t;case"link":if(i=Dh("link","href",a).get(e+(n.href||""))){for(u=0;u<i.length;u++)if(l=i[u],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){i.splice(u,1);break e}}l=a.createElement(e),Zt(l,e,n),a.head.appendChild(l);break;case"meta":if(i=Dh("meta","content",a).get(e+(n.content||""))){for(u=0;u<i.length;u++)if(l=i[u],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){i.splice(u,1);break e}}l=a.createElement(e),Zt(l,e,n),a.head.appendChild(l);break;default:throw Error(N(468,e))}l[kt]=t,Gt(l),e=l}t.stateNode=e}else Bt||Us(i,t.type,t.stateNode);else t.stateNode=Oh(i,n,t.memoizedProps);else a!==n?(a===null?(e=l.stateNode,e===null||nt||e.parentNode.removeChild(e)):a.count--,n===null?Bt||Us(i,t.type,t.stateNode):Oh(i,n,t.memoizedProps)):n===null&&t.stateNode!==null&&yc(t,t.memoizedProps,l.memoizedProps);break;case 27:re(e,t,n),ce(t),a&512&&(nt||l===null||jt(l,l.return)),l!==null&&a&4&&yc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(i=gn,gn=!1,re(e,t,n),gn=i,ce(t),a&512&&(nt||l===null||jt(l,l.return)),t.flags&32){e=t.stateNode;try{Pa(e,""),I=!0}catch(h){it(t,t.return,h)}}a&4&&t.stateNode!=null&&(e=t.memoizedProps,yc(t,e,l!==null?l.memoizedProps:e)),a&1024&&(vc=!0);break;case 6:if(re(e,t,n),ce(t),a&4){if(t.stateNode===null)throw Error(N(162));e=t.memoizedProps,n=t.stateNode;try{n.nodeValue=e,I=!0}catch(h){it(t,t.return,h)}}break;case 3:if(I=!1,bo=null,i=nn,nn=lu(e.containerInfo),re(e,t,n),nn=i,ce(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{li(e.containerInfo)}catch(h){it(t,t.return,h)}vc&&(vc=!1,Kp(t)),I=!1;break;case 4:a=gn,gn=Bt,l=hm(),i=nn,nn=lu(t.stateNode.containerInfo),re(e,t,n),ce(t),nn=i,I&&Oi&&(Xo=!0),I=l,gn=a;break;case 12:re(e,t,n),ce(t);break;case 31:re(e,t,n),ce(t),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Fu(t,e)));break;case 13:re(e,t,n),ce(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(fr=_e()),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Fu(t,e)));break;case 22:i=t.memoizedState!==null,u=l!==null&&l.memoizedState!==null;var o=Bt,r=nt,c=gn;Bt=o||i,gn=c||i,nt=r||u,re(e,t,n),nt=r,gn=c,Bt=o,ce(t),a&8192&&(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,!i||l===null||u||Bt||nt||(e=u||nt,n=Bt,l=nt,Bt=i||Bt,nt=e,al(t,2),Bt=n,nt=l),!i&&gn||bs(t,i)),a&4&&(e=t.updateQueue,e!==null&&(n=e.retryQueue,n!==null&&(e.retryQueue=null,Fu(t,n))));break;case 19:re(e,t,n),ce(t),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Fu(t,e)));break;case 30:a&512&&(nt||l===null||jt(l,l.return)),a=hm(),i=Oi,u=(n&335544064)===n,o=t.memoizedProps,Oi=u&&Jn(o.default,o.update)!=="none",re(e,t,n),ce(t),u&&l!==null&&I&&(t.flags|=4),Oi=i,I=a;break;case 21:break;case 7:a&512&&(nt||l===null||jt(l,l.return)),l&&l.stateNode!==null&&(l.stateNode._fragmentFiber=t);default:re(e,t,n),ce(t)}}function ce(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(_p(l)){n=l;break}l=l.return}l=null;for(var a=t.return;a!==null;){if(Tf(a)){var i=a.stateNode;l===null?l=[i]:l.push(i)}if(xf(a))break;a=a.return}var u=l;if(n==null)throw Error(N(160));switch(n.tag){case 27:var o=n.stateNode,r=bc(t);Yo(t,r,o,u);break;case 5:var c=n.stateNode;n.flags&32&&(Pa(c,""),n.flags&=-33);var h=bc(t);Yo(t,h,c,u);break;case 3:case 4:var g=n.stateNode.containerInfo,s=bc(t);ds(t,s,g,u);break;default:throw Error(N(161))}}catch(f){it(t,t.return,f)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Kp(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Kp(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,ni=!0,e.reset(),ni=!1),t=t.sibling}}function va(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)Pp(e,t),e=e.sibling;else Vp(e,!1)}function Pp(t,e){var n=t.alternate;if(n===null)ms(t,!1);else switch(t.tag){case 3:if(ys=pn=!1,oh(),va(e,t),!pn&&!Xo){if(t=vn,t!==null)for(var l=0;l<t.length;l+=3){n=t[l];var a=t[l+1];Sy(n,t[l+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}t=e.containerInfo,t=t.nodeType===9?t.documentElement:t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===""&&(t.style.viewTransitionName="none",t.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),t.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),ys=!0}vn=null;break;case 5:va(e,t);break;case 4:l=pn,pn=!1,va(e,t),pn&&(Xo=!0),pn=l;break;case 22:t.memoizedState===null&&(n.memoizedState!==null?ms(t,!1):va(e,t));break;case 30:l=pn,a=oh(),pn=!1,va(e,t),pn&&(t.flags|=4);var i=t.memoizedProps,u=t.stateNode;e=jn(i,u),u=jn(n.memoizedProps,u);var o=Jn(i.default,i.update);o==="none"?e=!1:(i=n.memoizedState,n.memoizedState=null,n=t.child,Ee=0,e=Mf(t,n,e,u,o,i,!0),Ee!==(i===null?0:i.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?(Fa(t,t.memoizedProps.onUpdate),vn=a):a!==null&&(a.push.apply(a,vn),vn=a),pn=(t.flags&32)!==0?!0:l;break;default:va(e,t)}}function yn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Gp(t,e.alternate,e),e=e.sibling}function al(t,e){for(t=t.child;t!==null;){var n=t,l=e;switch(n.tag){case 0:case 11:case 14:case 15:Rl(4,n,n.return),al(n,l);break;case 1:jt(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Dp(n,n.return,a),al(n,l);break;case 27:(l&2)!==0&&zy(n.stateNode,n.type,n.memoizedProps);case 5:jt(n,n.return),n.tag!==5&&n.tag!==27||qi(n),al(n,l);break;case 6:qi(n);break;case 26:jt(n,n.return),a=n.stateNode,n.memoizedState!==null||a===null||nt||a.parentNode.removeChild(a),al(n,l);break;case 22:n.memoizedState===null&&al(n,l);break;case 30:jt(n,n.return),al(n,l);break;case 7:jt(n,n.return);default:al(n,l)}t=t.sibling}}function en(t,e,n){for(n=(e.subtreeFlags&8772)!==0?n:n&-2,e=e.child;e!==null;){var l=e.alternate,a=t,i=e,u=i.flags,o=(n&1)!==0;switch(i.tag){case 0:case 11:case 15:en(a,i,n),gu(4,i);break;case 1:if(en(a,i,n),l=i,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(h){it(l,l.return,h)}if(l=i,a=l.updateQueue,a!==null){var r=l.stateNode;try{var c=a.shared.hiddenCallbacks;if(c!==null)for(a.shared.hiddenCallbacks=null,a=0;a<c.length;a++)Yg(c[a],r)}catch(h){it(l,l.return,h)}}o&&u&64&&Op(i),bn(i,i.return);break;case 27:(n&2)!==0&&Hp(i);case 5:i.tag!==5&&i.tag!==27||ih(i),en(a,i,n),o&&l===null&&u&4&&fs(i),bn(i,i.return);break;case 6:ih(i);break;case 26:r=i.stateNode,i.memoizedState!==null||r===null||Bt||Us(lu(r.ownerDocument),i.type,r),en(a,i,n),o&&l===null&&u&4&&fs(i),bn(i,i.return);break;case 12:en(a,i,n);break;case 31:en(a,i,n),o&&u&4&&jp(a,i);break;case 13:en(a,i,n),o&&u&4&&kp(a,i);break;case 22:i.memoizedState===null&&en(a,i,n),bn(i,i.return);break;case 30:en(a,i,n),bn(i,i.return);break;case 7:bn(i,i.return);default:en(a,i,n)}e=e.sibling}}function Nf(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&mu(n))}function wf(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&mu(t))}function je(t,e,n,l){var a=(n&335544064)===n;if(e.subtreeFlags&(a?10262:10256))for(e=e.child;e!==null;)Zp(t,e,n,l),e=e.sibling;else a&&Bp(e)}function Zp(t,e,n,l){var a=(n&335544064)===n;a&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&ho(e);var i=e.flags;switch(e.tag){case 0:case 11:case 15:je(t,e,n,l),i&2048&&gu(9,e);break;case 1:je(t,e,n,l);break;case 3:je(t,e,n,l),a&&ys&&(t=t.containerInfo,t=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,t.style.viewTransitionName==="root"&&(t.style.viewTransitionName=""),t=t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName==="none"&&(t.style.viewTransitionName="")),i&2048&&(i=null,e.alternate!==null&&(i=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==i&&(e.refCount++,i!=null&&mu(i)));break;case 12:if(i&2048){je(t,e,n,l),i=e.stateNode;try{var u=e.memoizedProps,o=u.id,r=u.onPostCommit;typeof r=="function"&&r(o,e.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(c){it(e,e.return,c)}}else je(t,e,n,l);break;case 31:je(t,e,n,l);break;case 13:je(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,o=e.alternate,e.memoizedState!==null?(a&&o!==null&&o.memoizedState===null&&ho(o),u._visibility&2?je(t,e,n,l):Xi(t,e)):(a&&o!==null&&o.memoizedState!==null&&ho(e),u._visibility&2?je(t,e,n,l):(u._visibility|=2,Ea(t,e,n,l,(e.subtreeFlags&10256)!==0||!1))),i&2048&&Nf(o,e);break;case 24:je(t,e,n,l),i&2048&&wf(e.alternate,e);break;case 30:a&&(i=e.alternate,i!==null&&(wn(i.child,!0),wn(e.child,!0))),je(t,e,n,l);break;default:je(t,e,n,l)}}function Ea(t,e,n,l,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,u=e,o=n,r=l,c=u.flags;switch(u.tag){case 0:case 11:case 15:Ea(i,u,o,r,a),gu(8,u);break;case 23:break;case 22:var h=u.stateNode;u.memoizedState!==null?h._visibility&2?Ea(i,u,o,r,a):Xi(i,u):(h._visibility|=2,Ea(i,u,o,r,a)),a&&c&2048&&Nf(u.alternate,u);break;case 24:Ea(i,u,o,r,a),a&&c&2048&&wf(u.alternate,u);break;default:Ea(i,u,o,r,a)}e=e.sibling}}function Xi(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,a=l.flags;switch(l.tag){case 22:Xi(n,l),a&2048&&Nf(l.alternate,l);break;case 24:Xi(n,l),a&2048&&wf(l.alternate,l);break;default:Xi(n,l)}e=e.sibling}}var ql=8192;function Vl(t,e,n){if(t.subtreeFlags&ql)for(t=t.child;t!==null;)Jp(t,e,n),t=t.sibling}function Jp(t,e,n){switch(t.tag){case 26:Vl(t,e,n),t.flags&ql&&(t.memoizedState!==null?ZS(n,nn,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&Hh(n,t)));break;case 5:Vl(t,e,n),t.flags&ql&&(t=t.stateNode,(e&335544128)===e&&Hh(n,t));break;case 3:case 4:var l=nn;nn=lu(t.stateNode.containerInfo),Vl(t,e,n),nn=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=ql,ql=16777216,Vl(t,e,n),ql=l):Vl(t,e,n));break;case 30:if((t.flags&ql)!==0&&(l=t.memoizedProps.name,l!=null&&l!=="auto")){var a=t.stateNode;a.paired=null,Oe===null&&(Oe=new Map),Oe.set(l,a)}Vl(t,e,n);break;default:Vl(t,e,n)}}function Fp(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 Mi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Vt=l,$p(l,t)}Fp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ip(t),t=t.sibling}function Ip(t){switch(t.tag){case 0:case 11:case 15:Mi(t),t.flags&2048&&Rl(9,t,t.return);break;case 3:Mi(t);break;case 12:Mi(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,go(t)):Mi(t);break;default:Mi(t)}}function go(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Vt=l,$p(l,t)}Fp(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Rl(8,e,e.return),go(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,go(e));break;default:go(e)}t=t.sibling}}function $p(t,e){for(;Vt!==null;){var n=Vt;switch(n.tag){case 0:case 11:case 15:Rl(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:mu(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Vt=l;else t:for(n=t;Vt!==null;){l=Vt;var a=l.sibling,i=l.return;if(qp(l),l===n){Vt=null;break t}if(a!==null){a.return=i,Vt=a;break t}Vt=i}}}var Q1={getCacheForType:function(t){var e=Qt(zt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Qt(zt).controller.signal}},K1=typeof WeakMap=="function"?WeakMap:Map,tt=0,rt=null,X=null,Q=0,lt=0,Ae=null,fl=!1,ri=!1,Rf=!1,Pn=0,Mt=0,Al=0,Zl=0,jo=0,De=0,Ja=0,ji=null,Se=null,Ss=!1,fr=0,Wp=0,ko=1/0,Qo=null,Sl=null,Et=0,an=null,na=null,Nn=0,Es=0,xs=null,ty=null,Xa=null,ja=null,ka=null,ki=0,po=null;function Ue(){return(tt&2)!==0&&Q!==0?Q&-Q:H.T!==null?zf():ag()}function ey(){if(De===0)if((Q&536870912)===0||G){var t=Bu;Bu<<=1,(Bu&3932160)===0&&(Bu=262144),De=t}else De=536870912;return t=Jt.current,t!==null&&(t.flags|=32),De}function Fa(t,e){if(e!=null){var n=t.stateNode,l=n.ref;l===null&&(l=n.ref=xy(jn(t.memoizedProps,n))),ja===null&&(ja=[]),ja.push(e.bind(null,l))}}function Te(t,e,n){(t===rt&&(lt===2||lt===9)||t.cancelPendingCommit!==null)&&(Ia(t,0),dl(t,Q,De,!1)),su(t,n),((tt&2)===0||t!==rt)&&(t===rt&&((tt&2)===0&&(Zl|=n),Mt===4&&dl(t,Q,De,!1)),An(t))}function ny(t,e,n){if((tt&6)!==0)throw Error(N(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||cu(t,e),a=l?J1(t,e):Sc(t,e,!0),i=l;do{if(a===0){ri&&!l&&dl(t,e,0,!1);break}else{if(n=t.current.alternate,i&&!P1(n)){a=Sc(t,e,!1),i=!1;continue}if(a===2){if(i=e,t.errorRecoveryDisabledLanes&i)var u=0;else u=t.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){e=u;t:{var o=t;a=ji;var r=o.current.memoizedState.isDehydrated;if(r&&(Ia(o,u).flags|=256),u=Sc(o,u,!1),u!==2&&u!==6){if(Rf&&!r){o.errorRecoveryDisabledLanes|=i,Zl|=i,a=4;break t}i=Se,Se=a,i!==null&&(Se===null?Se=i:Se.push.apply(Se,i))}a=u}if(i=!1,a!==2)continue}}if(a===1){Ia(t,0),dl(t,e,0,!0);break}t:{switch(l=t,i=a,i){case 0:case 1:throw Error(N(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:dl(l,e,De,!fl);break t;case 2:Se=null;break;case 3:case 5:break;default:throw Error(N(329))}if((e&62914560)===e&&(a=fr+300-_e(),10<a)){if(dl(l,e,De,!fl),Io(l,0,!0)!==0)break t;Nn=e,l.timeoutHandle=Of(ch.bind(null,l,n,Se,Qo,Ss,e,De,Zl,Ja,fl,i,"Throttled",-0,0),a);break t}ch(l,n,Se,Qo,Ss,e,De,Zl,Ja,fl,i,null,-0,0)}}break}while(!0);An(t)}function ch(t,e,n,l,a,i,u,o,r,c,h,g,s,f){t.timeoutHandle=-1;var b=e.subtreeFlags,S=(i&335544064)===i;if(g=null,(S||b&8192||(b&16785408)===16785408)&&(g={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:En},Oe=null,Jp(e,i,g),S&&(b=g,S=t.containerInfo,S=(S.nodeType===9?S:S.ownerDocument).__reactViewTransition,S!=null&&(b.count++,b.waitingForViewTransition=!0,b=au.bind(b),S.finished.then(b,b))),b=(i&62914560)===i?fr-_e():(i&4194048)===i?Wp-_e():0,b=JS(g,b),b!==null)){Nn=i,t.cancelPendingCommit=b(fh.bind(null,t,e,i,n,l,a,u,o,r,c,h,g,null,s,f)),dl(t,i,u,!c);return}fh(t,e,i,n,l,a,u,o,r,c,h,g)}function P1(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var a=n[l],i=a.getSnapshot;a=a.value;try{if(!Be(i(),a))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;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 dl(t,e,n,l){e=Wh(t,e),e&=~jo,e&=~Zl,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var a=e;0<a;){var i=31-Le(a),u=1<<i;l[i]=-1,a&=~u}n!==0&&eg(t,n,e)}function dr(){return(tt&6)===0?(pu(0,!1),!1):!0}function Af(){if(X!==null){if(lt===0)var t=X.return;else t=X,Gn=oa=null,ff(t),Ga=null,Ii=0,t=X;for(;t!==null;)Cp(t.alternate,t),t=t.return;X=null}}function Ia(t,e){var n=t.timeoutHandle;return n!==-1&&(t.timeoutHandle=-1,gS(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Nn=0,Af(),rt=t,X=n=Yn(t.current,null),Q=e,lt=0,Ae=null,fl=!1,ri=cu(t,e),Rf=!1,Ja=De=jo=Zl=Al=Mt=0,Se=ji=null,Ss=!1,Pn=Wh(t,e),nr(),n}function ly(t,e){V=null,H.H=Bo,e===ui||e===ir?(e=Um(),lt=3):e===nf?(e=Um(),lt=4):lt=e===vf?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ae=e,X===null&&(Mt=1,Vo(t,Ze(e,t.current)))}function ay(){var t=Jt.current;return t===null?!0:(Q&4194048)===Q?ne===null:(Q&62914560)===Q||(Q&536870912)!==0?t===ne:!1}function iy(){var t=H.H;return H.H=Bo,t===null?Bo:t}function uy(){var t=H.A;return H.A=Q1,t}function Ko(){Mt=4,fl||(Q&4194048)!==Q&&Jt.current!==null||(ri=!0),(Al&134217727)===0&&(Zl&134217727)===0||rt===null||dl(rt,Q,De,!1)}function Sc(t,e,n){var l=tt;tt|=2;var a=iy(),i=uy();(rt!==t||Q!==e)&&(Qo=null,Ia(t,e)),e=!1;var u=Mt;t:do try{if(lt!==0&&X!==null){var o=X,r=Ae;switch(lt){case 8:Af(),u=6;break t;case 3:case 2:case 9:case 6:Jt.current===null&&(e=!0);var c=lt;if(lt=0,Ae=null,Ha(t,o,r,c),n&&ri){u=0;break t}break;default:c=lt,lt=0,Ae=null,Ha(t,o,r,c)}}Z1(),u=Mt;break}catch(h){ly(t,h)}while(!0);return e&&t.shellSuspendCounter++,Gn=oa=null,tt=l,H.H=a,H.A=i,X===null&&(rt=null,Q=0,nr()),u}function Z1(){for(;X!==null;)oy(X)}function J1(t,e){var n=tt;tt|=2;var l=iy(),a=uy();rt!==t||Q!==e?(Qo=null,ko=_e()+500,Ia(t,e)):ri=cu(t,e);t:do try{if(lt!==0&&X!==null){e=X;var i=Ae;e:switch(lt){case 1:lt=0,Ae=null,Ha(t,e,i,1);break;case 2:case 9:if(Lm(i)){lt=0,Ae=null,sh(e);break}e=function(){lt!==2&&lt!==9||rt!==t||(lt=7),An(t)},i.then(e,e);break t;case 3:lt=7;break t;case 4:lt=5;break t;case 7:Lm(i)?(lt=0,Ae=null,sh(e)):(lt=0,Ae=null,Ha(t,e,i,7));break;case 5:var u=null;switch(X.tag){case 26:u=X.memoizedState;case 5:case 27:var o=X;if(u?Dy(u):o.stateNode.complete){lt=0,Ae=null;var r=o.sibling;if(r!==null)X=r;else{var c=o.return;c!==null?(X=c,mr(c)):X=null}break e}}lt=0,Ae=null,Ha(t,e,i,5);break;case 6:lt=0,Ae=null,Ha(t,e,i,6);break;case 8:Af(),Mt=6;break t;default:throw Error(N(462))}}F1();break}catch(h){ly(t,h)}while(!0);return Gn=oa=null,H.H=l,H.A=a,tt=n,X!==null?0:(rt=null,Q=0,nr(),Mt)}function F1(){for(;X!==null&&!mv();)oy(X)}function oy(t){var e=zp(t.alternate,t,Pn);t.memoizedProps=t.pendingProps,e===null?mr(t):X=e}function sh(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=$m(n,e,e.pendingProps,e.type,void 0,Q);break;case 11:e=$m(n,e,e.pendingProps,e.type.render,e.ref,Q);break;case 5:ff(e);var l=e;l===Yt&&(G?(Co(l),l.tag===5&&l.stateNode!=null&&(mt=l.stateNode)):(Co(l),G=!0));default:Cp(n,e),e=X=Og(e,Pn),e=zp(n,e,Pn)}t.memoizedProps=t.pendingProps,e===null?mr(t):X=e}function Ha(t,e,n,l){Gn=oa=null,ff(e),Ga=null,Ii=0;var a=e.return;try{if(B1(t,a,e,n,Q)){Mt=1,Vo(t,Ze(n,t.current)),X=null;return}}catch(i){if(a!==null)throw X=a,i;Mt=1,Vo(t,Ze(n,t.current)),X=null;return}e.flags&32768?(G||l===1?t=!0:ri||(Q&536870912)!==0?t=!1:(fl=t=!0,(l===2||l===9||l===3||l===6)&&(l=Jt.current,l!==null&&l.tag===13&&(l.flags|=16384))),ry(e,t)):mr(e)}function mr(t){var e=t;do{if((e.flags&32768)!==0){ry(e,fl);return}t=e.return;var n=q1(e.alternate,e,Pn);if(n!==null){X=n;return}if(e=e.sibling,e!==null){X=e;return}X=e=t}while(e!==null);Mt===0&&(Mt=5)}function ry(t,e){do{var n=X1(t.alternate,t);if(n!==null){n.flags&=32767,X=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){X=t;return}X=t=n}while(t!==null);Mt=6,X=null}function fh(t,e,n,l,a,i,u,o,r,c,h,g){t.cancelPendingCommit=null;do hr();while(Et!==0);if((tt&6)!==0)throw Error(N(327));if(e!==null){if(e===t.current)throw Error(N(177));t===rt&&(X=rt=null,Q=0),na=e,an=t,Nn=n,xs=a,ty=l,I1(t,e,n,u,o,r,g)}}function I1(t,e,n,l,a,i,u){var o=e.lanes|e.childLanes;if(Es=o,o|=Fs,Tv(t,n,o,l,a,i),ja=null,(n&335544064)===n?(ka=N1(t),l=10262):(ka=null,l=10256),(e.subtreeFlags&l)!==0||(e.flags&l)!==0?(t.callbackNode=null,t.callbackPriority=0,lS(No,function(){return ws(),null})):(t.callbackNode=null,t.callbackPriority=0),qo=!1,l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=H.T,H.T=null,a=et.p,et.p=2,i=tt,tt|=4;try{j1(t,e,n)}finally{tt=i,et.p=a,H.T=l}}Et=1,qo?Xa=ES(u,t.containerInfo,ka,Ts,Ms,W1,Ns,ws,$1,null,null):(Ts(),Ms(),Ns())}function $1(t){if(Et!==0){var e=an.onRecoverableError;e(t,{componentStack:null})}}function W1(){Et===3&&(Et=0,Pp(na,an),Et=4)}function Ts(){if(Et===1){Et=0;var t=an,e=na,n=Nn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=H.T,H.T=null;var a=et.p;et.p=2;var i=tt;tt|=4;try{Oi=Xo=!1,Qp(e,t,n),n=Cs;var u=Tg(t.containerInfo),o=n.focusedElem,r=n.selectionRange;if(u!==o&&o&&o.ownerDocument&&xg(o.ownerDocument.documentElement,o)){if(r!==null&&Js(o)){var c=r.start,h=r.end;if(h===void 0&&(h=c),"selectionStart"in o)o.selectionStart=c,o.selectionEnd=Math.min(h,o.value.length);else{var g=o.ownerDocument||document,s=g&&g.defaultView||window;if(s.getSelection){var f=s.getSelection(),b=o.textContent.length,S=Math.min(r.start,b),v=r.end===void 0?S:Math.min(r.end,b);!f.extend&&S>v&&(u=v,v=S,S=u);var d=Rm(o,S),m=Rm(o,v);if(d&&m&&(f.rangeCount!==1||f.anchorNode!==d.node||f.anchorOffset!==d.offset||f.focusNode!==m.node||f.focusOffset!==m.offset)){var p=g.createRange();p.setStart(d.node,d.offset),f.removeAllRanges(),S>v?(f.addRange(p),f.extend(m.node,m.offset)):(p.setEnd(m.node,m.offset),f.addRange(p))}}}}for(g=[],f=o;f=f.parentNode;)f.nodeType===1&&g.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<g.length;o++){var y=g[o];y.element.scrollLeft=y.left,y.element.scrollTop=y.top}}ni=!!zs,Cs=zs=null}finally{tt=i,et.p=a,H.T=l}}t.current=e,Et=2}}function Ms(){if(Et===2){Et=0;var t=an,e=na,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=H.T,H.T=null;var l=et.p;et.p=2;var a=tt;tt|=4;try{Gp(t,e.alternate,e)}finally{tt=a,et.p=l,H.T=n}}Et=3}}function Ns(){if(Et===4||Et===3){Et=0;var t=Xa;Xa=null,hv();var e=an,n=na,l=Nn,a=ty,i=(l&335544064)===l?10262:10256;if((n.subtreeFlags&i)!==0||(n.flags&i)!==0?Et=5:(Et=0,na=an=null,cy(e,e.pendingLanes)),i=e.pendingLanes,i===0&&(Sl=null),js(l),n=n.stateNode,He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(ru,n,void 0,(n.current.flags&128)===128)}catch{}if(a!==null){n=H.T,i=et.p,et.p=2,H.T=null;try{for(var u=e.onRecoverableError,o=0;o<a.length;o++){var r=a[o];u(r.value,{componentStack:r.stack})}}finally{H.T=n,et.p=i}}if(a=ja,u=ka,ka=null,a!==null&&(ja=null,u===null&&(u=[]),t!==null))for(r=0;r<a.length;r++)n=(0,a[r])(u),n!==void 0&&t.finished.finally(n);(Nn&3)!==0&&hr(),An(e),i=e.pendingLanes,(l&261930)!==0&&(i&42)!==0?e===po?ki++:(ki=0,po=e):(ki=0,po=null),pu(0,!1)}}function cy(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,mu(e)))}function hr(){return Xa!==null&&(Xa.skipTransition(),Xa=null),Ts(),Ms(),Ns(),ws()}function ws(){if(Et!==5)return!1;var t=an,e=Es;Es=0;var n=js(Nn),l=H.T,a=et.p;try{et.p=32>n?32:n,H.T=null,n=xs,xs=null;var i=an,u=Nn;if(Et=0,na=an=null,Nn=0,(tt&6)!==0)throw Error(N(331));var o=tt;if(tt|=4,Ip(i.current),Zp(i,i.current,u,n),tt=o,pu(0,!1),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(ru,i)}catch{}return!0}finally{et.p=a,H.T=l,cy(t,e)}}function dh(t,e,n){e=Ze(n,e),e=is(t.stateNode,e,2),t=yl(t,e,2),t!==null&&(su(t,2),An(t))}function it(t,e,n){if(t.tag===3)dh(t,t,n);else for(;e!==null;){if(e.tag===3){dh(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Sl===null||!Sl.has(l))){t=Ze(n,t),n=Mp(2),l=yl(e,n,2),l!==null&&(Np(n,l,e,t),su(l,2),An(l));break}}e=e.return}}function Ec(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new K1;var a=new Set;l.set(e,a)}else a=l.get(e),a===void 0&&(a=new Set,l.set(e,a));a.has(n)||(Rf=!0,a.add(n),t=tS.bind(null,t,e,n),e.then(t,t))}function tS(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,rt===t&&(Q&n)===n&&((Mt===4||Mt===3&&(Q&62914560)===Q&&300>_e()-fr)&&(tt&2)===0?Ia(t,0):jo|=n,Ja===Q&&(Ja=0)),An(t)}function sy(t,e){e===0&&(e=tg()),t=ua(t,e),t!==null&&(su(t,e),An(t))}function eS(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),sy(t,n)}function nS(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(N(314))}l!==null&&l.delete(e),sy(t,n)}function lS(t,e){return qs(t,e)}var $a=null,xa=null,Rs=!1,Po=!1,xc=!1,ml=0;function An(t){t!==xa&&t.next===null&&(xa===null?$a=xa=t:xa=xa.next=t),Po=!0,Rs||(Rs=!0,iS())}function pu(t,e){if(!xc&&Po){xc=!0;do for(var n=!1,l=$a;l!==null;){if(!e)if(t!==0){var a=l.pendingLanes;if(a===0)var i=0;else{var u=l.suspendedLanes,o=l.pingedLanes;i=(1<<31-Le(42|t)+1)-1,i&=a&~(u&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,mh(l,i))}else i=Q,i=Io(l,l===rt?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||cu(l,i)||(n=!0,mh(l,i));l=l.next}while(n);xc=!1}}function aS(){fy()}function fy(){Po=Rs=!1;var t=0;ml!==0&&hS()&&(t=ml);for(var e=_e(),n=null,l=$a;l!==null;){var a=l.next,i=dy(l,e);i===0?(l.next=null,n===null?$a=a:n.next=a,a===null&&(xa=n)):(n=l,(t!==0||(i&3)!==0)&&(Po=!0)),l=a}Et!==0&&Et!==5||pu(t,!1),ml!==0&&(ml=0)}function dy(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,a=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var u=31-Le(i),o=1<<u,r=a[u];r===-1?((o&n)===0||(o&l)!==0)&&(a[u]=xv(o,e)):r<=e&&(t.expiredLanes|=o),i&=~o}if(e=rt,n=Q,n=Io(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(lt===2||lt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&tc(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||cu(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&tc(l),js(n)){case 2:case 8:n=Ih;break;case 32:n=No;break;case 268435456:n=$h;break;default:n=No}return l=my.bind(null,t),n=qs(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&tc(l),t.callbackPriority=2,t.callbackNode=null,2}function my(t,e){if(Et!==0&&Et!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(hr()&&t.callbackNode!==n)return null;var l=Q;return l=Io(t,t===rt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(ny(t,l,e),dy(t,_e()),t.callbackNode!=null&&t.callbackNode===n?my.bind(null,t):null)}function mh(t,e){if(hr())return null;ny(t,e,!0)}function iS(){pS(function(){(tt&6)!==0?qs(Fh,aS):fy()})}function zf(){if(ml===0){var t=$l;t===0&&(t=Uu,Uu<<=1,(Uu&261888)===0&&(Uu=256)),ml=t}return ml}function hh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:lo(t)}function uS(t,e,n,l,a){if(e==="submit"&&n&&n.stateNode===a){var i=hh((a[Ne]||null).action),u=l.submitter;u&&(e=(e=u[Ne]||null)?hh(e.formAction):u.getAttribute("formAction"),e!==null&&(i=e,u=null));var o=new Wo("action","action",null,l,a);t.push({event:o,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ml!==0){var r=new FormData(a,u);ls(n,{pending:!0,data:r,method:a.method,action:i},null,r)}}else typeof i=="function"&&(o.preventDefault(),r=new FormData(a,u),ls(n,{pending:!0,data:r,method:a.method,action:i},i,r))},currentTarget:a}]})}}for(Iu=0;Iu<Kc.length;Iu++)$u=Kc[Iu],gh=$u.toLowerCase(),ph=$u[0].toUpperCase()+$u.slice(1),un(gh,"on"+ph);var $u,gh,ph,Iu;un(Ng,"onAnimationEnd");un(wg,"onAnimationIteration");un(Rg,"onAnimationStart");un("dblclick","onDoubleClick");un("focusin","onFocus");un("focusout","onBlur");un(y1,"onTransitionRun");un(b1,"onTransitionStart");un(v1,"onTransitionCancel");un(Ag,"onTransitionEnd");Ka("onMouseEnter",["mouseout","mouseover"]);Ka("onMouseLeave",["mouseout","mouseover"]);Ka("onPointerEnter",["pointerout","pointerover"]);Ka("onPointerLeave",["pointerout","pointerover"]);aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));aa("onBeforeInput",["compositionend","keypress","textInput","paste"]);aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var tu="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(" "),oS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(tu));function hy(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],a=l.event;l=l.listeners;t:{var i=void 0;if(e)for(var u=l.length-1;0<=u;u--){var o=l[u],r=o.instance,c=o.currentTarget;if(o=o.listener,r!==i&&a.isPropagationStopped())break t;i=o,a.currentTarget=c;try{i(a)}catch(h){Ro(h)}a.currentTarget=null,i=r}else for(u=0;u<l.length;u++){if(o=l[u],r=o.instance,c=o.currentTarget,o=o.listener,r!==i&&a.isPropagationStopped())break t;i=o,a.currentTarget=c;try{i(a)}catch(h){Ro(h)}a.currentTarget=null,i=r}}}}function q(t,e){var n=e[sm];n===void 0&&(n=e[sm]=new Set);var l=t+"__bubble";n.has(l)||(gy(e,t,2,!1),n.add(l))}function Tc(t,e,n){var l=0;e&&(l|=4),gy(n,t,l,e)}var Wu="_reactListening"+Math.random().toString(36).slice(2);function Cf(t){if(!t[Wu]){t[Wu]=!0,ug.forEach(function(n){n!=="selectionchange"&&(oS.has(n)||Tc(n,!1,t),Tc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Wu]||(e[Wu]=!0,Tc("selectionchange",!1,e))}}function gy(t,e,n,l){switch(Gy(e)){case 2:var a=WS;break;case 8:a=tE;break;default:a=Bf}n=a.bind(null,e,n,t),a=void 0,!Xc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),l?a!==void 0?t.addEventListener(e,n,{capture:!0,passive:a}):t.addEventListener(e,n,!0):a!==void 0?t.addEventListener(e,n,{passive:a}):t.addEventListener(e,n,!1)}function Mc(t,e,n,l,a){var i=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var u=l.tag;if(u===3||u===4){var o=l.stateNode.containerInfo;if(o===a)break;if(u===4)for(u=l.return;u!==null;){var r=u.tag;if((r===3||r===4)&&u.stateNode.containerInfo===a)return;u=u.return}for(;o!==null;){if(u=Xl(o),u===null)return;if(r=u.tag,r===5||r===6||r===26||r===27){l=i=u;continue t}o=o.parentNode}}l=l.return}hg(function(){var c=i,h=Qs(n),g=[];t:{var s=zg.get(t);if(s!==void 0){var f=Wo,b=t;switch(t){case"keypress":if(io(n)===0)break t;case"keydown":case"keyup":f=Pv;break;case"focusin":b="focus",f=uc;break;case"focusout":b="blur",f=uc;break;case"beforeblur":case"afterblur":f=uc;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=bm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Lv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=$v;break;case Ng:case wg:case Rg:f=Vv;break;case Ag:f=t1;break;case"scroll":case"scrollend":f=_v;break;case"wheel":f=n1;break;case"copy":case"cut":case"paste":f=Yv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Sm;break;case"submit":f=Fv;break;case"toggle":case"beforetoggle":f=a1}var S=(e&4)!==0,v=!S&&(t==="scroll"||t==="scrollend"),d=S?s!==null?s+"Capture":null:s;S=[];for(var m=c,p;m!==null;){var y=m;if(p=y.stateNode,y=y.tag,y!==5&&y!==26&&y!==27||p===null||d===null||(y=Ki(m,d),y!=null&&S.push(eu(m,y,p))),v)break;m=m.return}0<S.length&&(s=new f(s,b,null,n,h),g.push({event:s,listeners:S}))}}if((e&7)===0){t:{if(f=t==="mouseover"||t==="pointerover",s=t==="mouseout"||t==="pointerout",f&&n!==qc&&(b=n.relatedTarget||n.fromElement)&&(Xl(b)||b[ai]))break t;(s||f)&&(b=h.window===h?h:(f=h.ownerDocument)?f.defaultView||f.parentWindow:window,s?(f=n.relatedTarget||n.toElement,s=c,f=f?Xl(f):null,f!==null&&(v=ou(f),S=f.tag,f!==v||S!==5&&S!==27&&S!==6)&&(f=null)):(s=null,f=c),s!==f&&(S=bm,y="onMouseLeave",d="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(S=Sm,y="onPointerLeave",d="onPointerEnter",m="pointer"),v=s==null?b:zi(s),p=f==null?b:zi(f),b=new S(y,m+"leave",s,n,h),b.target=v,b.relatedTarget=p,y=null,Xl(h)===c&&(S=new S(d,m+"enter",f,n,h),S.target=p,S.relatedTarget=v,y=S),v=y,S=s&&f?zc(s,f,rS):null,s!==null&&yh(g,b,s,S,!1),f!==null&&v!==null&&yh(g,v,f,S,!0)))}t:{if(s=c?zi(c):window,f=s.nodeName&&s.nodeName.toLowerCase(),f==="select"||f==="input"&&s.type==="file")var x=Mm;else if(Tm(s))if(Sg)x=h1;else{x=d1;var T=f1}else f=s.nodeName,!f||f.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&ks(c.elementType)&&(x=Mm):x=m1;if(x&&(x=x(t,c))){vg(g,x,n,h);break t}T&&T(t,s,c)}switch(T=c?zi(c):window,t){case"focusin":(Tm(T)||T.contentEditable==="true")&&(Aa=T,kc=c,Hi=null);break;case"focusout":Hi=kc=Aa=null;break;case"mousedown":Qc=!0;break;case"contextmenu":case"mouseup":case"dragend":Qc=!1,Am(g,n,h);break;case"selectionchange":if(p1)break;case"keydown":case"keyup":Am(g,n,h)}var M;if(Zs)t:{switch(t){case"compositionstart":var w="onCompositionStart";break t;case"compositionend":w="onCompositionEnd";break t;case"compositionupdate":w="onCompositionUpdate";break t}w=void 0}else Ra?yg(t,n)&&(w="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(w="onCompositionStart");w&&(pg&&n.locale!=="ko"&&(Ra||w!=="onCompositionStart"?w==="onCompositionEnd"&&Ra&&(M=gg()):(cl=h,Ks="value"in cl?cl.value:cl.textContent,Ra=!0)),T=Zo(c,w),0<T.length&&(w=new vm(w,t,null,n,h),g.push({event:w,listeners:T}),M?w.data=M:(M=bg(n),M!==null&&(w.data=M)))),(M=u1?o1(t,n):r1(t,n))&&(w=Zo(c,"onBeforeInput"),0<w.length&&(T=new vm("onBeforeInput","beforeinput",null,n,h),g.push({event:T,listeners:w}),T.data=M)),uS(g,t,c,n,h)}hy(g,e)})}function eu(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Zo(t,e){for(var n=e+"Capture",l=[];t!==null;){var a=t,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Ki(t,n),a!=null&&l.unshift(eu(t,a,i)),a=Ki(t,e),a!=null&&l.push(eu(t,a,i))),t.tag===3)return l;t=t.return}return[]}function rS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function yh(t,e,n,l,a){for(var i=e._reactName,u=[];n!==null&&n!==l;){var o=n,r=o.alternate,c=o.stateNode;if(o=o.tag,r!==null&&r===l)break;o!==5&&o!==26&&o!==27||c===null||(r=c,a?(c=Ki(n,i),c!=null&&u.unshift(eu(n,c,r))):a||(c=Ki(n,i),c!=null&&u.push(eu(n,c,r)))),n=n.return}u.length!==0&&t.push({event:e,listeners:u})}var cS=/\r\n?/g,sS=/\u0000|\uFFFD/g;function bh(t){return(typeof t=="string"?t:""+t).replace(cS,`
10
- `).replace(sS,"")}function py(t,e){return e=bh(e),bh(t)===e}function at(t,e,n,l,a,i){switch(n){case"children":if(typeof l=="string")e==="body"||e==="textarea"&&l===""||Pa(t,l);else if(typeof l=="number"||typeof l=="bigint")e!=="body"&&Pa(t,""+l);else return;break;case"className":Gu(t,"class",l);break;case"tabIndex":Gu(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Gu(t,n,l);break;case"style":mg(t,l,i);return;case"data":if(e!=="object"){Gu(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=lo(l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"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 i=="function"&&(n==="formAction"?(e!=="input"&&at(t,e,"name",a.name,a,null),at(t,e,"formEncType",a.formEncType,a,null),at(t,e,"formMethod",a.formMethod,a,null),at(t,e,"formTarget",a.formTarget,a,null)):(at(t,e,"encType",a.encType,a,null),at(t,e,"method",a.method,a,null),at(t,e,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=lo(l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=En);return;case"onScroll":l!=null&&q("scroll",t);return;case"onScrollEnd":l!=null&&q("scrollend",t);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(N(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(N(60));i?.__html!==n&&(t.innerHTML=n)}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=lo(l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":q("beforetoggle",t),q("toggle",t),no(t,"popover",l);break;case"xlinkActuate":Un(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Un(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Un(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Un(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Un(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Un(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Un(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Un(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Un(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":no(t,"is",l);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=Ov.get(n)||n,no(t,n,l);else return}I=!0}function As(t,e,n,l,a,i){switch(n){case"style":mg(t,l,i);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(N(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(N(60));i?.__html!==n&&(t.innerHTML=n)}}break;case"children":if(typeof l=="string")Pa(t,l);else if(typeof l=="number"||typeof l=="bigint")Pa(t,""+l);else return;break;case"onScroll":l!=null&&q("scroll",t);return;case"onScrollEnd":l!=null&&q("scrollend",t);return;case"onClick":l!=null&&(t.onclick=En);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!og.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),i=n.slice(2,a?n.length-7:void 0),e=t[Ne]||null,e=e!=null?e[n]:null,typeof e=="function"&&t.removeEventListener(i,e,a),typeof l=="function")){typeof e!="function"&&e!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(i,l,a);break t}I=!0,n in t?t[n]=l:l===!0?t.setAttribute(n,""):no(t,n,l)}return}I=!0}function Zt(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":q("error",t),q("load",t);var l=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var u=n[i];if(u!=null)switch(i){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(N(137,e));default:at(t,e,i,u,n,null)}}a&&at(t,e,"srcSet",n.srcSet,n,null),l&&at(t,e,"src",n.src,n,null);return;case"input":q("invalid",t);var o=i=u=a=null,r=null,c=null;for(l in n)if(n.hasOwnProperty(l)){var h=n[l];if(h!=null)switch(l){case"name":a=h;break;case"type":u=h;break;case"checked":r=h;break;case"defaultChecked":c=h;break;case"value":i=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(N(137,e));break;default:at(t,e,l,h,n,null)}}sg(t,i,o,r,c,u,a,!1);return;case"select":q("invalid",t),l=u=i=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":i=o;break;case"defaultValue":u=o;break;case"multiple":l=o;default:at(t,e,a,o,n,null)}e=i,n=u,t.multiple=!!l,e!=null?Ua(t,!!l,e,!1):n!=null&&Ua(t,!!l,n,!0);return;case"textarea":q("invalid",t),i=a=l=null;for(u in n)if(n.hasOwnProperty(u)&&(o=n[u],o!=null))switch(u){case"value":l=o;break;case"defaultValue":a=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(N(91));break;default:at(t,e,u,o,n,null)}dg(t,l,a,i);return;case"option":for(r in n)if(n.hasOwnProperty(r)&&(l=n[r],l!=null))switch(r){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:at(t,e,r,l,n,null)}return;case"dialog":q("beforetoggle",t),q("toggle",t),q("cancel",t),q("close",t);break;case"iframe":case"object":q("load",t);break;case"video":case"audio":for(l=0;l<tu.length;l++)q(tu[l],t);break;case"image":q("error",t),q("load",t);break;case"details":q("toggle",t);break;case"embed":case"source":case"link":q("error",t),q("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 n)if(n.hasOwnProperty(c)&&(l=n[c],l!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(N(137,e));default:at(t,e,c,l,n,null)}return;default:if(ks(e)){for(h in n)n.hasOwnProperty(h)&&(l=n[h],l!==void 0&&As(t,e,h,l,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(l=n[o],l!=null&&at(t,e,o,l,n,null))}var fS={};function dS(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,u=null,o=null,r=null,c=null,h=null;for(f in n){var g=n[f];if(n.hasOwnProperty(f)&&g!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":r=g;default:l.hasOwnProperty(f)||at(t,e,f,null,l,g)}}for(var s in l){var f=l[s];if(g=n[s],l.hasOwnProperty(s)&&(f!=null||g!=null))switch(s){case"type":f!==g&&(I=!0),i=f;break;case"name":f!==g&&(I=!0),a=f;break;case"checked":f!==g&&(I=!0),c=f;break;case"defaultChecked":f!==g&&(I=!0),h=f;break;case"value":f!==g&&(I=!0),u=f;break;case"defaultValue":f!==g&&(I=!0),o=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(N(137,e));break;default:f!==g&&at(t,e,s,f,l,g)}}Yc(t,u,o,r,c,h,i,a);return;case"select":f=u=o=s=null;for(i in n)if(r=n[i],n.hasOwnProperty(i)&&r!=null)switch(i){case"value":break;case"multiple":f=r;default:l.hasOwnProperty(i)||at(t,e,i,null,l,r)}for(a in l)if(i=l[a],r=n[a],l.hasOwnProperty(a)&&(i!=null||r!=null))switch(a){case"value":i!==r&&(I=!0),s=i;break;case"defaultValue":i!==r&&(I=!0),o=i;break;case"multiple":i!==r&&(I=!0),u=i;default:i!==r&&at(t,e,a,i,l,r)}e=o,n=u,l=f,s!=null?Ua(t,!!n,s,!1):!!l!=!!n&&(e!=null?Ua(t,!!n,e,!0):Ua(t,!!n,n?[]:"",!1));return;case"textarea":f=s=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!l.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:at(t,e,o,null,l,a)}for(u in l)if(a=l[u],i=n[u],l.hasOwnProperty(u)&&(a!=null||i!=null))switch(u){case"value":a!==i&&(I=!0),s=a;break;case"defaultValue":a!==i&&(I=!0),f=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(N(91));break;default:a!==i&&at(t,e,u,a,l,i)}fg(t,s,f);return;case"option":for(var b in n)if(s=n[b],n.hasOwnProperty(b)&&s!=null&&!l.hasOwnProperty(b))switch(b){case"selected":t.selected=!1;break;default:at(t,e,b,null,l,s)}for(r in l)if(s=l[r],f=n[r],l.hasOwnProperty(r)&&s!==f&&(s!=null||f!=null))switch(r){case"selected":s!==f&&(I=!0),t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:at(t,e,r,s,l,f)}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 S in n)s=n[S],n.hasOwnProperty(S)&&s!=null&&!l.hasOwnProperty(S)&&at(t,e,S,null,l,s);for(c in l)if(s=l[c],f=n[c],l.hasOwnProperty(c)&&s!==f&&(s!=null||f!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(N(137,e));break;default:at(t,e,c,s,l,f)}return;default:if(ks(e)){for(var v in n)s=n[v],n.hasOwnProperty(v)&&s!==void 0&&!l.hasOwnProperty(v)&&As(t,e,v,void 0,l,s);for(h in l)s=l[h],f=n[h],!l.hasOwnProperty(h)||s===f||s===void 0&&f===void 0||As(t,e,h,s,l,f);return}}for(var d in n)s=n[d],n.hasOwnProperty(d)&&s!=null&&!l.hasOwnProperty(d)&&at(t,e,d,null,l,s);for(g in l)s=l[g],f=n[g],!l.hasOwnProperty(g)||s===f||s==null&&f==null||at(t,e,g,s,l,f)}function vh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var a=n[l],i=a.transferSize,u=a.initiatorType,o=a.duration;if(i&&o&&vh(u)){for(u=0,o=a.responseEnd,l+=1;l<n.length;l++){var r=n[l],c=r.startTime;if(c>o)break;var h=r.transferSize,g=r.initiatorType;h&&vh(g)&&(r=r.responseEnd,u+=h*(r<o?1:(o-c)/(r-c)))}if(--l,e+=8*(i+u)/(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 zs=null,Cs=null;function nu(t){return t.nodeType===9?t:t.ownerDocument}function Sh(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 yy(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 by(t,e,n,l){return n=nu(n).createElement(t),n[kt]=l,n[Ne]=e,Zt(n,t,e),Gt(n),n}function Os(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 Nc=null;function hS(){var t=window.event;return t&&t.type==="popstate"?t===Nc?!1:(Nc=t,!0):(Nc=null,!1)}var Of=typeof setTimeout=="function"?setTimeout:void 0,gS=typeof clearTimeout=="function"?clearTimeout:void 0,Eh=typeof Promise=="function"?Promise:void 0,xh=typeof requestAnimationFrame=="function"?requestAnimationFrame:Of,pS=typeof queueMicrotask=="function"?queueMicrotask:typeof Eh<"u"?function(t){return Eh.resolve(null).then(t).catch(yS)}:Of;function yS(t){setTimeout(function(){throw t})}function Cl(t){return t==="head"}function Th(t,e){var n=e,l=0;do{var a=n.nextSibling;if(t.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(a),li(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Rc(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Rc(n);for(var i=n.firstChild;i;){var u=i.nextSibling,o=i.nodeName;i[fu]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=u}}else n==="body"&&Rc(t.ownerDocument.body);n=a}while(n);li(e)}function Mh(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function vy(t,e,n){if(e=CSS.escape(e)!==e?"r-"+btoa(e).replace(/=/g,""):e,t.style.viewTransitionName=e,n!=null&&(t.style.viewTransitionClass=n),n=getComputedStyle(t),n.display==="inline"){if(e=t.getClientRects(),e.length===1)var l=1;else for(var a=l=0;a<e.length;a++){var i=e[a];0<i.width&&0<i.height&&l++}l===1&&(t=t.style,t.display=e.length===1?"inline-block":"block",t.marginTop="-"+n.paddingTop,t.marginBottom="-"+n.paddingBottom)}}function Sy(t,e){t=t.style,e=e.style;var n=e!=null?e.hasOwnProperty("viewTransitionName")?e.viewTransitionName:e.hasOwnProperty("view-transition-name")?e["view-transition-name"]:null:null;t.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=e!=null?e.hasOwnProperty("viewTransitionClass")?e.viewTransitionClass:e.hasOwnProperty("view-transition-class")?e["view-transition-class"]:null:null,t.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),t.display==="inline-block"&&(e==null?t.display=t.margin="":(n=e.display,t.display=n==null||typeof n=="boolean"?"":n,n=e.margin,n!=null?t.margin=n:(n=e.hasOwnProperty("marginTop")?e.marginTop:e["margin-top"],t.marginTop=n==null||typeof n=="boolean"?"":n,e=e.hasOwnProperty("marginBottom")?e.marginBottom:e["margin-bottom"],t.marginBottom=e==null||typeof e=="boolean"?"":e)))}function Ey(t,e,n){return n=n.ownerDocument.defaultView,{rect:t,abs:e.position==="absolute"||e.position==="fixed",clip:e.clipPath!=="none"||e.overflow!=="visible"||e.filter!=="none"||e.mask!=="none"||e.mask!=="none"||e.borderRadius!=="0px",view:0<=t.bottom&&0<=t.right&&t.top<=n.innerHeight&&t.left<=n.innerWidth}}function Ds(t){var e=t.getBoundingClientRect(),n=getComputedStyle(t);return Ey(e,n,t)}function bS(t){var e=t.getBoundingClientRect();e=new DOMRect(e.x+2e4,e.y+2e4,e.width,e.height);var n=getComputedStyle(t);return Ey(e,n,t)}function vS(t){return t.documentElement.clientHeight}function SS(t){this.addEventListener("load",t),this.addEventListener("error",t)}function ES(t,e,n,l,a,i,u,o,r){var c=e.nodeType===9?e:e.ownerDocument;try{var h=c.startViewTransition({update:function(){var s=c.defaultView,f=s.navigation&&s.navigation.transition,b=c.fonts.status;l();var S=[];if(b==="loaded"&&(vS(c),c.fonts.status==="loading"&&S.push(c.fonts.ready)),b=S.length,t!==null)for(var v=t.suspenseyImages,d=0,m=0;m<v.length;m++){var p=v[m];if(!p.complete){var y=p.getBoundingClientRect();if(0<y.bottom&&0<y.right&&y.top<s.innerHeight&&y.left<s.innerWidth){if(d+=_y(p),d>vo){S.length=b;break}p=new Promise(SS.bind(p)),S.push(p)}}}if(0<S.length)return s=Promise.race([Promise.all(S),new Promise(function(x){return setTimeout(x,500)})]).then(a,a),(f?Promise.allSettled([f.finished,s]):s).then(i,i);if(a(),f)return f.finished.then(i,i);i()},types:n});c.__reactViewTransition=h;var g=[];return h.ready.then(function(){for(var s=c.documentElement.getAnimations({subtree:!0}),f=0;f<s.length;f++){var b=s[f],S=b.effect,v=S.pseudoElement;if(v!=null&&v.startsWith("::view-transition")){g.push(b),b=S.getKeyframes();for(var d=v=void 0,m=!0,p=0;p<b.length;p++){var y=b[p],x=y.width;if(v===void 0)v=x;else if(v!==x){m=!1;break}if(x=y.height,d===void 0)d=x;else if(d!==x){m=!1;break}delete y.width,delete y.height,y.transform==="none"&&delete y.transform}m&&v!==void 0&&d!==void 0&&(S.setKeyframes(b),m=getComputedStyle(S.target,S.pseudoElement),m.width!==v||m.height!==d)&&(m=b[0],m.width=v,m.height=d,m=b[b.length-1],m.width=v,m.height=d,S.setKeyframes(b))}}u()},function(s){c.__reactViewTransition===h&&(c.__reactViewTransition=null);try{if(typeof s=="object"&&s!==null)switch(s.name){case"InvalidStateError":(s.message==="View transition was skipped because document visibility state is hidden."||s.message==="Skipping view transition because document visibility state has become hidden."||s.message==="Skipping view transition because viewport size changed."||s.message==="Transition was aborted because of invalid state")&&(s=null)}s!==null&&r(s)}finally{l(),a(),u()}}),h.finished.finally(function(){for(var s=0;s<g.length;s++)g[s].cancel();c.__reactViewTransition===h&&(c.__reactViewTransition=null),o()}),h}catch{return l(),a(),u(),null}}function jl(t,e){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+e+")"}jl.prototype.animate=function(t,e){return e=typeof e=="number"?{duration:e}:ct({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)};jl.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,n=t.getAnimations({subtree:!0}),l=[],a=0;a<n.length;a++){var i=n[a].effect;i!==null&&i.target===t&&i.pseudoElement===e&&l.push(n[a])}return l};jl.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function xy(t){return{name:t,group:new jl("group",t),imagePair:new jl("image-pair",t),old:new jl("old",t),new:new jl("new",t)}}function Ve(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}Ve.prototype.addEventListener=function(t,e,n){var l=null,a=null;if(!(n!=null&&typeof n!="boolean"&&(l=n.signal||null,l!==null&&l.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var i=this._eventListeners;if(Ty(i,t,e,n)===-1){var u=this,o=e;n!=null&&typeof n!="boolean"&&n.once===!0&&(o=function(r){u.removeEventListener(t,e,n),typeof e=="function"?e.call(this,r):e.handleEvent(r)}),l!==null&&(a=u.removeEventListener.bind(u,t,e,n),l.addEventListener("abort",a,{once:!0}),a=l.removeEventListener.bind(l,"abort",a)),l=Wa(n),i.push({type:t,listener:e,optionsOrUseCapture:n,attachedListener:o,cleanup:a}),Me(this._fragmentFiber.child,!1,xS,t,o,l)}this._eventListeners=i}};function xS(t,e,n,l){return _t(t).addEventListener(e,n,l),!1}Ve.prototype.removeEventListener=function(t,e,n){var l=this._eventListeners;if(l!==null&&(e=Ty(l,t,e,n),e!==-1)){var a=l[e];n=a.attachedListener;var i=a.cleanup;a=Wa(a.optionsOrUseCapture),Me(this._fragmentFiber.child,!1,TS,t,n,a),l.splice(e,1),i!==null&&i()}};function TS(t,e,n,l){return _t(t).removeEventListener(e,n,l),!1}function Wa(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function Nh(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function Ty(t,e,n,l){if(t.length===0)return-1;l=Nh(l);for(var a=0;a<t.length;a++){var i=t[a];if(i.type===e&&i.listener===n&&Nh(i.optionsOrUseCapture)===l)return a}return-1}Ve.prototype.dispatchEvent=function(t){var e=la(this._fragmentFiber);if(e===null)return!0;e=_t(e);var n=this._eventListeners;if(n!==null&&0<n.length||!t.bubbles){var l=e.nodeType===9?e.createComment(""):document.createTextNode("");if(n)for(var a=0;a<n.length;a++){var i=n[a];l.addEventListener(i.type,i.attachedListener,Wa(i.optionsOrUseCapture))}if(e.appendChild(l),t=l.dispatchEvent(t),n)for(a=0;a<n.length;a++)i=n[a],l.removeEventListener(i.type,i.attachedListener,Wa(i.optionsOrUseCapture));return e.removeChild(l),t}return e.dispatchEvent(t)};Ve.prototype.focus=function(t){Me(this._fragmentFiber.child,!0,My,t,void 0,void 0)};function My(t,e){return t.tag===6?!1:(t=_t(t),LS(t,e))}Ve.prototype.focusLast=function(t){var e=[];Me(this._fragmentFiber.child,!0,Df,e,void 0,void 0);for(var n=e.length-1;0<=n&&!My(e[n],t);n--);};function Df(t,e){return e.push(t),!1}Ve.prototype.blur=function(){var t=la(this._fragmentFiber);t!==null&&(t=_t(t),t=nu(t).activeElement,t!==null&&Me(this._fragmentFiber.child,!1,MS,t,void 0,void 0))};function MS(t,e){return t.tag===6?!1:(t=_t(t),t===e||t.contains(e)?(e.blur(),!0):!1)}Ve.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),Me(this._fragmentFiber.child,!1,NS,t,void 0,void 0)};function NS(t,e){return t.tag===6||(t=_t(t),e.observe(t)),!1}Ve.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),Me(this._fragmentFiber.child,!1,wS,t,void 0,void 0);for(var n=e=0;n<ln.length;n++){var l=ln[n];l.fragmentInstance===this&&l.observer===t?t.unobserve(l.instance):ln[e++]=l}ln.length=e}};function wS(t,e){return t.tag===6||(t=_t(t),e.unobserve(t)),!1}var ln=[],wc=!1;function RS(t,e,n){ln.push({fragmentInstance:t,observer:e,instance:n}),wc||(wc=!0,US(function(){wc=!1;var l=ln;ln=[];for(var a=0;a<l.length;a++){var i=l[a];i.observer.unobserve(i.instance)}}))}Ve.prototype.getClientRects=function(){var t=[];return Me(this._fragmentFiber.child,!1,AS,t,void 0,void 0),t};function AS(t,e){if(t.tag===6){t=t.stateNode;var n=t.ownerDocument.createRange();n.selectNodeContents(t),e.push.apply(e,n.getClientRects())}else t=_t(t),e.push.apply(e,t.getClientRects());return!1}Ve.prototype.getRootNode=function(t){var e=la(this._fragmentFiber);return e===null?this:_t(e).getRootNode(t)};Ve.prototype.compareDocumentPosition=function(t){var e=la(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Me(this._fragmentFiber.child,!1,Df,n,void 0,void 0);var l=_t(e);if(n.length===0){if(n=l,am(this._fragmentFiber)){t:{for(e=this._fragmentFiber.return;e!==null;){if(e.tag===4){e=e.stateNode.containerInfo;break t}if(e.tag===3||e.tag===5||e.tag===27)break;e=e.return}e=null}e!=null&&(n=e)}e=this._fragmentFiber;var a=l=n.compareDocumentPosition(t);return n===t?a=Node.DOCUMENT_POSITION_CONTAINS:l&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=Kh(e)[1],n===null?a=Node.DOCUMENT_POSITION_PRECEDING:(t=_t(n).compareDocumentPosition(t),a=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=_t(n[0]),a=_t(n[n.length-1]);var i=am(this._fragmentFiber)?e.parentElement:l;if(i==null)return Node.DOCUMENT_POSITION_DISCONNECTED;l=i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,i=i.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var u=e.compareDocumentPosition(t),o=a.compareDocumentPosition(t),r=u&Node.DOCUMENT_POSITION_CONTAINED_BY||o&Node.DOCUMENT_POSITION_CONTAINED_BY;return o=l&&i&&u&Node.DOCUMENT_POSITION_FOLLOWING&&o&Node.DOCUMENT_POSITION_PRECEDING,e=l&&e===t||i&&a===t||r||o?Node.DOCUMENT_POSITION_CONTAINED_BY:!l&&e===t||!i&&a===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:u,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||zS(e,this._fragmentFiber,n[0],n[n.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function zS(t,e,n,l,a){var i=Xl(a);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!i)t:{for(;i!==null;){if(i.tag===7&&(i===e||i.alternate===e)){n=!0;break t}i=i.return}n=!1}return n}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(i===null)return i=a.ownerDocument,a===i||a===i.documentElement||a===i.body;t:{for(i=e,e=la(e);i!==null;){if(!(i.tag!==5&&i.tag!==3&&i.tag!==27||i!==e&&i.alternate!==e)){i=!0;break t}i=i.return}i=!1}return i}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!i)&&!(e=i===n)&&(e=zc(n,i,im),e===null?e=!1:(Me(e,!0,iv,i,n),i=Ta,Ta=null,e=i!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!i)&&!(e=i===l)&&(e=zc(l,i,im),e===null?e=!1:(Me(e,!0,uv,i,l),i=Ta,Ac=Ta=null,e=i!==null)),e):!1}function wh(t,e){var n=t.ownerDocument.createRange();n.selectNodeContents(t),t=n.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,e?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}Ve.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(N(566));var e=[];Me(this._fragmentFiber.child,!1,Df,e,void 0,void 0);var n=t!==!1;if(e.length===0){var l=Kh(this._fragmentFiber);if(l=n?l[1]||l[0]||la(this._fragmentFiber):l[0]||l[1],l===null)return;if(l.tag===6){t=_t(l),wh(t,n);return}if(l=_t(l),l.nodeType!==9){if(l.nodeType===11){n="host"in l?l.host:null,n!==null&&n.scrollIntoView(t);return}l.scrollIntoView(t)}}for(l=n?e.length-1:0;l!==(n?-1:e.length);){var a=e[l];a.tag===6?(a=_t(a),wh(a,n)):_t(a).scrollIntoView(t),l+=n?-1:1}};function CS(t,e){return t=_t(t),Ny(t,e),!1}function Ny(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function wy(t,e){var n=e._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l];t.addEventListener(a.type,a.attachedListener,Wa(a.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(i){for(var u=0,o=0;o<ln.length;o++){var r=ln[o];(r.fragmentInstance!==e||r.observer!==i||r.instance!==t)&&(ln[u++]=r)}ln.length=u,i.observe(t)}),Ny(t,e))}function OS(t,e){var n=e._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l];t.removeEventListener(a.type,a.attachedListener,Wa(a.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(i){typeof i.rootMargin=="string"?RS(e,i,t):i.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function _s(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":_s(n),$o(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function DS(t,e,n,l){for(;t.nodeType===1;){var a=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[fu])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==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(i=t.getAttribute("src"),(i!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=Fe(t.nextSibling),t===null)break}return null}function _S(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Fe(t.nextSibling),t===null))return null;return t}function Ry(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Fe(t.nextSibling),t===null))return null;return t}function Hs(t){return t.data==="$?"||t.data==="$~"}function _f(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function HS(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Fe(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 Ls=null;function Rh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Fe(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Ah(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function LS(t,e){function n(){l=!0}if(t.ownerDocument.activeElement===t)return!0;var l=!1;try{t.ownerDocument.addEventListener("focus",n,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener("focus",n,!0)}return l}function US(t){xh(function(){xh(function(e){return t(e)})})}function Ay(t,e,n){switch(e=nu(n),t){case"html":if(t=e.documentElement,!t)throw Error(N(452));return t;case"head":if(t=e.head,!t)throw Error(N(453));return t;case"body":if(t=e.body,!t)throw Error(N(454));return t;default:throw Error(N(451))}}function zy(t,e,n){for(var l in n){var a=n[l];n.hasOwnProperty(l)&&a!=null&&at(t,e,l,null,fS,a)}n.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===En&&(t.onclick=null),$o(t)}function Rc(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);$o(t)}var Ie=new Map,zh=new Set;function lu(t){if(typeof t.getRootNode=="function"){var e=t.getRootNode();if(e.nodeType===9||e.nodeType===11)return e}return t.nodeType===9?t:t.ownerDocument}var Fn=et.d;et.d={f:BS,r:VS,D:GS,C:YS,L:qS,m:XS,X:kS,S:jS,M:QS};function BS(){var t=Fn.f(),e=dr();return t||e}function VS(t){var e=ii(t);e!==null&&e.tag===5&&e.type==="form"?mp(e):Fn.r(t)}var ci=typeof document>"u"?null:document;function Cy(t,e,n){var l=ci;if(l&&typeof e=="string"&&e){var a=Pe(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),zh.has(a)||(zh.add(a),t={rel:t,crossOrigin:n,href:e},l.querySelector(a)===null&&(e=l.createElement("link"),Zt(e,"link",t),Gt(e),l.head.appendChild(e)))}}function GS(t){Fn.D(t),Cy("dns-prefetch",t,null)}function YS(t,e){Fn.C(t,e),Cy("preconnect",t,e)}function qS(t,e,n){Fn.L(t,e,n);var l=ci;if(l&&t&&e){var a='link[rel="preload"][as="'+Pe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Pe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Pe(n.imageSizes)+'"]')):a+='[href="'+Pe(t)+'"]';var i=a;switch(e){case"style":i=ti(t);break;case"script":i=si(t)}if(!(Ie.has(i)||(t=ct({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ie.set(i,t),l.querySelector(a)!==null||e==="style"&&l.querySelector(yu(i))||e==="script"&&l.querySelector(bu(i))))){var u=l.createElement("link");Zt(u,"link",t),e==="style"&&(u[wo]=!0,u.onload=u.onerror=function(){ig(u)}),Gt(u),l.head.appendChild(u)}}}function XS(t,e){Fn.m(t,e);var n=ci;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Pe(l)+'"][href="'+Pe(t)+'"]',i=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=si(t)}if(!Ie.has(i)&&(t=ct({rel:"modulepreload",href:t},e),Ie.set(i,t),n.querySelector(a)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(bu(i)))return}l=n.createElement("link"),Zt(l,"link",t),Gt(l),n.head.appendChild(l)}}}function jS(t,e,n){Fn.S(t,e,n);var l=ci;if(l&&t){var a=La(l).hoistableStyles,i=ti(t);e=e||"default";var u=a.get(i);if(!u){var o={loading:0,preload:null};if(u=l.querySelector(yu(i)))o.loading=5;else{t=ct({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ie.get(i))&&Hf(t,n);var r=u=l.createElement("link");Gt(r),Zt(r,"link",t),r._p=new Promise(function(c,h){r.onload=c,r.onerror=h}),r.addEventListener("load",function(){o.loading|=1}),r.addEventListener("error",function(){o.loading|=2}),o.loading|=4,yo(u,e,l)}u={type:"stylesheet",instance:u,count:1,state:o},a.set(i,u)}}}function kS(t,e){Fn.X(t,e);var n=ci;if(n&&t){var l=La(n).hoistableScripts,a=si(t),i=l.get(a);i||(i=n.querySelector(bu(a)),i||(t=ct({src:t,async:!0},e),(e=Ie.get(a))&&Lf(t,e),i=n.createElement("script"),Gt(i),Zt(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i))}}function QS(t,e){Fn.M(t,e);var n=ci;if(n&&t){var l=La(n).hoistableScripts,a=si(t),i=l.get(a);i||(i=n.querySelector(bu(a)),i||(t=ct({src:t,async:!0,type:"module"},e),(e=Ie.get(a))&&Lf(t,e),i=n.createElement("script"),Gt(i),Zt(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i))}}function Ch(t,e,n,l){var a=(a=hl.current)?lu(a):null;if(!a)throw Error(N(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=ti(n.href),e=La(a).hoistableStyles,l=e.get(n),l||(l={type:"style",instance:null,count:0,state:null},e.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ti(n.href);var i=La(a).hoistableStyles,u=i.get(t);if(u||(a=a.ownerDocument||a,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,u),(i=a.querySelector(yu(t)))?i._p||(u.instance=i,u.state.loading=5):(i=Ie.get(t),i||(i={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ie.set(t,i)),KS(a,t,i,u.state))),e&&l===null)throw Error(N(528,""));return u}if(e&&l!==null)throw Error(N(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(n=si(n),e=La(a).hoistableScripts,l=e.get(n),l||(l={type:"script",instance:null,count:0,state:null},e.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(N(444,t))}}function ti(t){return'href="'+Pe(t)+'"'}function yu(t){return'link[rel="stylesheet"]['+t+"]"}function Oy(t){return ct({},t,{"data-precedence":t.precedence,precedence:null})}function KS(t,e,n,l){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[wo]!==!0){l.loading=1;return}}else e=t.createElement("link"),e[wo]=!0,e.onload=e.onerror=ig.bind(null,e),Zt(e,"link",n),Gt(e),t.head.appendChild(e);l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2})}function si(t){return'[src="'+Pe(t)+'"]'}function bu(t){return"script[async]"+t}function Oh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Pe(n.href)+'"]');if(l)return e.instance=l,Gt(l),l;var a=ct({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Gt(l),Zt(l,"style",a),yo(l,n.precedence,t),e.instance=l;case"stylesheet":a=ti(n.href);var i=t.querySelector(yu(a));if(i)return e.state.loading|=4,e.instance=i,Gt(i),i;l=Oy(n),(a=Ie.get(a))&&Hf(l,a),i=(t.ownerDocument||t).createElement("link"),Gt(i);var u=i;return u._p=new Promise(function(o,r){u.onload=o,u.onerror=r}),Zt(i,"link",l),e.state.loading|=4,yo(i,n.precedence,t),e.instance=i;case"script":return i=si(n.src),(a=t.querySelector(bu(i)))?(e.instance=a,Gt(a),a):(l=n,(a=Ie.get(i))&&(l=ct({},n),Lf(l,a)),t=t.ownerDocument||t,a=t.createElement("script"),Gt(a),Zt(a,"link",l),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(N(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,yo(l,n.precedence,t));return e.instance}function yo(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,i=a,u=0;u<l.length;u++){var o=l[u];if(o.dataset.precedence===e)i=o;else if(i!==a)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Hf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Lf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var bo=null;function Dh(t,e,n){if(bo===null){var l=new Map,a=bo=new Map;a.set(n,l)}else a=bo,l=a.get(n),l||(l=new Map,a.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),a=0;a<n.length;a++){var i=n[a];if(!(i[fu]||i[kt]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(e)||"";u=t+u;var o=l.get(u);o?o.push(i):l.set(u,[i])}}return l}function Us(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function PS(t,e,n){if(n===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;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!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 _h(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function Dy(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function _y(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Hh(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=_y(e),t.suspenseyImages.push(e)),t=FS.bind(t),e.decode().then(t,t))}function ZS(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=ti(l.href),i=e.querySelector(yu(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=au.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=i,Gt(i);return}i=e.ownerDocument||e,l=Oy(l),(a=Ie.get(a))&&Hf(l,a),i=i.createElement("link"),Gt(i);var u=i;u._p=new Promise(function(o,r){u.onload=o,u.onerror=r}),Zt(i,"link",l),n.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=au.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var vo=0;function JS(t,e){return t.stylesheets&&t.count===0&&So(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&So(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&vo===0&&(vo=62500*mS());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&So(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>vo?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(a)}}:null}function Hy(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)So(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function au(){this.count--,Hy(this)}function FS(){this.imgCount--,Hy(this)}var Jo=null;function So(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Jo=new Map,e.forEach(IS,t),Jo=null,au.call(t))}function IS(t,e){if(!(e.state.loading&4)){var n=Jo.get(t);if(n)var l=n.get(null);else{n=new Map,Jo.set(t,n);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var u=a[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(n.set(u.dataset.precedence,u),l=u)}l&&n.set(null,l)}a=e.instance,u=a.getAttribute("data-precedence"),i=n.get(u)||l,i===l&&n.set(null,a),n.set(u,a),this.count++,l=au.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),i?i.parentNode.insertBefore(a,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var ei={$$typeof:Sn,Provider:null,Consumer:null,_currentValue:kl,_currentValue2:kl,_threadCount:0};function $S(t,e,n,l,a,i,u,o,r){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=ec(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ec(0),this.hiddenUpdates=ec(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r,this.transitionTypes=null,this.incompleteTransitions=new Map}function Ly(t,e,n,l,a,i,u,o,r,c,h,g){return t=new $S(t,e,n,u,r,c,h,g,o),e=1,i===!0&&(e|=24),i=xe(3,null,null,e),t.current=i,i.stateNode=t,e=tf(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:l,isDehydrated:n,cache:e},lf(i),t}function Uy(t){return t?(t=Oa,t):Oa}function By(t,e,n,l,a,i){a=Uy(a),l.context===null?l.context=a:l.pendingContext=a,l=pl(e),l.payload={element:n},i=i===void 0?null:i,i!==null&&(l.callback=i),n=yl(t,l,e),n!==null&&(Te(n,t,e),Ui(n,t,e))}function Lh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Uf(t,e){Lh(t,e),(t=t.alternate)&&Lh(t,e)}function Vy(t){if(t.tag===13||t.tag===31){var e=ua(t,67108864);e!==null&&Te(e,t,67108864),Uf(t,67108864)}}function Uh(t){if(t.tag===13||t.tag===31){var e=Ue();e=Xs(e);var n=ua(t,e);n!==null&&Te(n,t,e),Uf(t,e)}}var ni=!0;function WS(t,e,n,l){var a=H.T;H.T=null;var i=et.p;try{et.p=2,Bf(t,e,n,l)}finally{et.p=i,H.T=a}}function tE(t,e,n,l){var a=H.T;H.T=null;var i=et.p;try{et.p=8,Bf(t,e,n,l)}finally{et.p=i,H.T=a}}function Bf(t,e,n,l){if(ni){var a=Bs(l);if(a===null)Mc(t,e,l,Fo,n),Bh(t,l);else if(nE(a,t,e,n,l))l.stopPropagation();else if(Bh(t,l),e&4&&-1<eE.indexOf(t)){for(;a!==null;){var i=ii(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=Gl(i.pendingLanes);if(u!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;u;){var r=1<<31-Le(u);o.entanglements[1]|=r,u&=~r}An(i),(tt&6)===0&&(ko=_e()+500,pu(0,!1))}}break;case 31:case 13:o=ua(i,2),o!==null&&Te(o,i,2),dr(),Uf(i,2)}if(i=Bs(l),i===null&&Mc(t,e,l,Fo,n),i===a)break;a=i}a!==null&&l.stopPropagation()}else Mc(t,e,l,null,n)}}function Bs(t){return t=Qs(t),Vf(t)}var Fo=null;function Vf(t){if(Fo=null,t=Xl(t),t!==null){var e=ou(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=jh(e),t!==null)return t;t=null}else if(n===31){if(t=kh(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Fo=t,null}function Gy(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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(gv()){case Fh:return 2;case Ih:return 8;case No:case pv:return 32;case $h:return 268435456;default:return 32}default:return 32}}var Vs=!1,El=null,xl=null,Tl=null,iu=new Map,uu=new Map,ol=[],eE="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 Bh(t,e){switch(t){case"focusin":case"focusout":El=null;break;case"dragenter":case"dragleave":xl=null;break;case"mouseover":case"mouseout":Tl=null;break;case"pointerover":case"pointerout":iu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":uu.delete(e.pointerId)}}function Ni(t,e,n,l,a,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:i,targetContainers:[a]},e!==null&&(e=ii(e),e!==null&&Vy(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function nE(t,e,n,l,a){switch(e){case"focusin":return El=Ni(El,t,e,n,l,a),!0;case"dragenter":return xl=Ni(xl,t,e,n,l,a),!0;case"mouseover":return Tl=Ni(Tl,t,e,n,l,a),!0;case"pointerover":var i=a.pointerId;return iu.set(i,Ni(iu.get(i)||null,t,e,n,l,a)),!0;case"gotpointercapture":return i=a.pointerId,uu.set(i,Ni(uu.get(i)||null,t,e,n,l,a)),!0}return!1}function Yy(t){var e=Xl(t.target);if(e!==null){var n=ou(e);if(n!==null){if(e=n.tag,e===13){if(e=jh(n),e!==null){t.blockedOn=e,cm(t.priority,function(){Uh(n)});return}}else if(e===31){if(e=kh(n),e!==null){t.blockedOn=e,cm(t.priority,function(){Uh(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Eo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Bs(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);qc=l,n.target.dispatchEvent(l),qc=null}else return e=ii(n),e!==null&&Vy(e),t.blockedOn=n,!1;e.shift()}return!0}function Vh(t,e,n){Eo(t)&&n.delete(e)}function lE(){Vs=!1,El!==null&&Eo(El)&&(El=null),xl!==null&&Eo(xl)&&(xl=null),Tl!==null&&Eo(Tl)&&(Tl=null),iu.forEach(Vh),uu.forEach(Vh)}function to(t,e){t.blockedOn===e&&(t.blockedOn=null,Vs||(Vs=!0,Ht.unstable_scheduleCallback(Ht.unstable_NormalPriority,lE)))}var eo=null;function Gh(t){eo!==t&&(eo=t,Ht.unstable_scheduleCallback(Ht.unstable_NormalPriority,function(){eo===t&&(eo=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],a=t[e+2];if(typeof l!="function"){if(Vf(l||n)===null)continue;break}var i=ii(n);i!==null&&(t.splice(e,3),e-=3,ls(i,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function li(t){function e(r){return to(r,t)}El!==null&&to(El,t),xl!==null&&to(xl,t),Tl!==null&&to(Tl,t),iu.forEach(e),uu.forEach(e);for(var n=0;n<ol.length;n++){var l=ol[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<ol.length&&(n=ol[0],n.blockedOn===null);)Yy(n),n.blockedOn===null&&ol.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],i=n[l+1],u=a[Ne]||null;if(typeof i=="function")u||Gh(n);else if(u){var o=null;if(i&&i.hasAttribute("formAction")){if(a=i,u=i[Ne]||null)o=u.formAction;else if(Vf(a)!==null)continue}else o=u.action;typeof o=="function"?n[l+1]=o:(n.splice(l,3),l-=3),Gh(n)}}}function qy(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return a=u})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function Gf(t){this._internalRoot=t}gr.prototype.render=Gf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(N(409));var n=e.current,l=Ue();By(n,l,t,e,null,null)};gr.prototype.unmount=Gf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;By(t.current,2,null,t,null,null),dr(),e[ai]=null}};function gr(t){this._internalRoot=t}gr.prototype.unstable_scheduleHydration=function(t){if(t){var e=ag();t={blockedOn:null,target:t,priority:e};for(var n=0;n<ol.length&&e!==0&&e<ol[n].priority;n++);ol.splice(n,0,t),n===0&&Yy(t)}};var Yh=qh.version;if(Yh!=="19.3.0")throw Error(N(527,Yh,"19.3.0"));et.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(N(188)):(t=Object.keys(t).join(","),Error(N(268,t)));return t=av(e),t=t!==null?Qh(t):null,t=t===null?null:t.stateNode,t};var aE={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(wi=__REACT_DEVTOOLS_GLOBAL_HOOK__,!wi.isDisabled&&wi.supportsFiber))try{ru=wi.inject(aE),He=wi}catch{}var wi;pr.createRoot=function(t,e){if(!Xh(t))throw Error(N(299));var n=!1,l="",a=Ep,i=xp,u=Tp;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(u=e.onRecoverableError)),e=Ly(t,1,!1,null,null,n,l,null,a,i,u,qy),t[ai]=e.current,Cf(t),new Gf(e)};pr.hydrateRoot=function(t,e,n){if(!Xh(t))throw Error(N(299));var l=!1,a="",i=Ep,u=xp,o=Tp,r=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(u=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(r=n.formState)),e=Ly(t,1,!0,e,n??null,l,a,r,i,u,o,qy),e.context=Uy(null),n=e.current,l=Ue(),l=Xs(l),a=pl(l),a.callback=null,yl(n,a,l),n=l,e.current.lanes=n,su(e,n),An(e),t[ai]=e.current,Cf(t),new gr(e)};pr.version="19.3.0"});var Qy=mn((_x,ky)=>{"use strict";function jy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(jy)}catch(t){console.error(t)}}jy(),ky.exports=Xy()});var n0=mn(vr=>{"use strict";var bE=Symbol.for("react.transitional.element"),vE=Symbol.for("react.fragment");function e0(t,e,n){var l=null;if(n!==void 0&&(l=""+n),e.key!==void 0&&(l=""+e.key),"key"in e){n={};for(var a in e)a!=="key"&&(n[a]=e[a])}else n=e;return e=n.ref,{$$typeof:bE,type:t,key:l,ref:e!==void 0?e:null,props:n}}vr.Fragment=vE;vr.jsx=e0;vr.jsxs=e0});var wt=mn((Ix,l0)=>{"use strict";l0.exports=n0()});var Sb=P(Qy(),1);var K=P(Re(),1);var fi=t=>t;var br=1e4,iE=25e4,uE=256*1024*1024,Zy=24*1024*1024,qf="data/search.json",Xf="theme/publication.css",Bx=48*1024,oE=["parent","child","left","right","previous","next"],rE=["document","drawing","attachment","folder","tag","url"],cE=/^(?:index\.html|\.nojekyll|data\/search\.json|theme\/publication\.css|notes\/[a-f0-9-]{36}\.html|assets\/[a-f0-9]{64}\.(?:png|jpe?g|gif|webp|avif|svg|mp3|ogg|wav|mp4|webm|pdf)|runtime\/(?:compass\.css|(?:compass|demo|chunk(?:-[a-zA-Z0-9]+)?)\.js(?:\.LEGAL\.txt)?)|LICENSES\/(?:K-Plex|React|ReactDOM|Scheduler|Source)\.txt)$/,sE=/^[a-f0-9]{64}$/,Ky=["none","arrow","triangle","bar","dot"],fE=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,dE=/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/;function In(t){return typeof t=="string"&&dE.test(t)}function jf(t){if(!In(t))throw new Error("Invalid public note ID");return`notes/${t}.html`}function kf(t){return typeof t=="string"&&t.length<=180&&cE.test(t)}function on(t){if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Invalid publication record");return t}function ra(t,e){return typeof t=="string"&&t.length<=e&&t.trim().length>0&&!/\p{Cc}/u.test(t)}function Ol(t,e,n){return typeof t=="number"&&Number.isFinite(t)&&t>=e&&t<=n}function yr(t){let e=on(t),n={};for(let i of["fill","stroke","color","gate"]){let u=e[i];if(u!==void 0){if(typeof u!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(u))throw new Error("Invalid publication color");n[i]=u}}let{fontSize:l,gateRadius:a}=e;if(l!==void 0&&!Ol(l,6,96))throw new Error("Invalid publication font size");if(a!==void 0&&!Ol(a,0,40))throw new Error("Invalid publication gate radius");return{...n,fontSize:l,gateRadius:a}}function mE(t){let{center:e,sibling:n,inferred:l}=on(t);return{center:e===void 0?void 0:yr(e),sibling:n===void 0?void 0:yr(n),inferred:l===void 0?void 0:yr(l)}}function hE(t){let{stroke:e,width:n,arrowStart:l,arrowEnd:a,startHead:i,endHead:u}=on(t);if(e!==void 0&&(typeof e!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(e))||n!==void 0&&!Ol(n,.25,20)||l!==void 0&&typeof l!="boolean"||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication link style");let o=Ky.find(c=>c===i),r=Ky.find(c=>c===u);if(i!==void 0&&!o||u!==void 0&&!r)throw new Error("Invalid publication arrow type");return{stroke:e,width:n,arrowStart:l,arrowEnd:a,startHead:o,endHead:r}}function gE(t){let e=on(t),n={};if(e.maximum!==void 0){if(!Ol(e.maximum,1,400)||!Number.isInteger(e.maximum))throw new Error("Invalid publication scene limit");n.maximum=e.maximum}if(e.flip!==void 0){if(typeof e.flip!="boolean")throw new Error("Invalid publication orientation");n.flip=e.flip}if(e.geometry!==void 0){let l=on(e.geometry),a={},i=["compactingFactor","horizontalCompactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"];for(let u of i){let o=l[u];if(o!==void 0){if(!Ol(o,.1,4e3))throw new Error("Invalid publication geometry");Object.assign(a,{[u]:o})}}if(l.compactView!==void 0&&typeof l.compactView!="boolean")throw new Error("Invalid publication compact mode");if(l.lateralArrangement!==void 0&&l.lateralArrangement!=="split"&&l.lateralArrangement!=="left")throw new Error("Invalid publication side layout");n.geometry={...a,...l.compactView===void 0?{}:{compactView:l.compactView},...l.lateralArrangement===void 0?{}:{lateralArrangement:l.lateralArrangement}}}if(e.typography!==void 0){let{baseFontSize:l,wrapNodeLabels:a,propertyFontSize:i}=on(e.typography);if(l!==void 0&&!Ol(l,6,48)||i!==void 0&&!Ol(i,6,48)||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication typography");n.typography={baseFontSize:l,wrapNodeLabels:a,propertyFontSize:i}}return n}function pE(t){let e=Object.entries(on(t));if(e.length>64)throw new Error("Too many publication properties");let n=new Map;for(let[l,a]of e){if(!ra(l,192)||["__proto__","constructor","prototype"].includes(l))throw new Error("Invalid publication property name");if(ra(a,1e3)||typeof a=="boolean"||typeof a=="number"&&Number.isFinite(a))n.set(l,a);else if(Array.isArray(a)&&a.length<=48&&a.every(i=>ra(i,1e3)))n.set(l,[...a]);else throw new Error("Invalid publication property value")}return Object.fromEntries(n)}function Jy(t){let e=on(t);if(e.version!==2||typeof e.runtimeVersion!="string"||!fE.test(e.runtimeVersion))throw new Error("Unsupported publication version");let{colorMode:n}=e;if(n!==void 0&&n!=="light"&&n!=="dark"&&n!=="both")throw new Error("Invalid publication color mode");if(!In(e.id)||!In(e.entry)||!ra(e.title,240)||typeof e.fullText!="boolean"||!Array.isArray(e.nodes)||!e.nodes.length||e.nodes.length>br||!Array.isArray(e.relations)||e.relations.length>iE||!Array.isArray(e.resources)||e.resources.length>br*4)throw new Error("Invalid publication manifest");let l=0,a=new Set,i=e.resources.map(s=>{let{path:f,bytes:b,sha256:S}=on(s);if(!kf(f)||a.has(f)||!Ol(b,0,32*1024*1024)||!Number.isInteger(b)||typeof S!="string"||!sE.test(S))throw new Error("Invalid publication resource");if(a.add(f),l+=b,l>uE)throw new Error("Publication exceeds package limit");return{path:f,bytes:b,sha256:S}}),u=new Set,o=new Set,r=e.nodes.map(s=>{let f=on(s),{id:b,title:S,aliases:v,asset:d}=f,m=rE.find(p=>p===f.kind);if(!In(b)||u.has(b)||!ra(S,512)||!m)throw new Error("Invalid publication node");if(u.add(b),m==="document"||m==="drawing"){let p=jf(b);if(!a.has(p))throw new Error("Missing publication note resource");o.add(p)}if(d!==void 0&&(typeof d!="string"||!d.startsWith("assets/")||!a.has(d)))throw new Error("Missing publication asset");if(v!==void 0&&(!Array.isArray(v)||v.length>64||!v.every(p=>ra(p,512))))throw new Error("Invalid publication aliases");return{id:b,title:S,kind:m,...v===void 0?{}:{aliases:[...v]},...d===void 0?{}:{asset:d},...f.style===void 0?{}:{style:yr(f.style)},...f.roleStyles===void 0?{}:{roleStyles:mE(f.roleStyles)},...f.properties===void 0?{}:{properties:pE(f.properties)}}});if(!u.has(e.entry)||[...a].some(s=>s.startsWith("notes/")&&!o.has(s))||e.fullText!==a.has(qf))throw new Error("Invalid publication document catalogue");let c;if(e.pins!==void 0){if(!Array.isArray(e.pins)||e.pins.length>u.size)throw new Error("Invalid publication pins");let s=e.pins;if(new Set(s).size!==s.length||!s.every(f=>typeof f=="string"&&u.has(f)))throw new Error("Invalid publication pins");c=s.slice()}let h=new Set,g=e.relations.map(s=>{let{source:f,target:b,relationType:S,direction:v,definition:d,role:m,style:p}=on(s),y=oE.find(T=>T===m);if(typeof f!="string"||typeof b!="string"||f===b||!u.has(f)||!u.has(b)||!y||S!==1&&S!==2||v!==null&&v!==1&&v!==2&&v!==3||d!==void 0&&!ra(d,192))throw new Error("Invalid publication relationship");let x=`${f}/${b}/${y}`;if(h.has(x))throw new Error("Duplicate publication relationship");return h.add(x),{source:f,target:b,role:y,relationType:S,direction:v,...d===void 0?{}:{definition:d},...p===void 0?{}:{style:hE(p)}}});return{version:2,runtimeVersion:e.runtimeVersion,id:e.id,title:e.title,entry:e.entry,fullText:e.fullText,nodes:r,relations:g,resources:i,...n===void 0?{}:{colorMode:n},...c===void 0?{}:{pins:c},...e.appearance===void 0?{}:{appearance:gE(e.appearance)}}}var vu={key:"F4"};var O={licenses:"Runtime licenses",view:"Compass",back:"History back",forward:"History forward",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit graph",loadFailed:"Could not open this publication",retry:"Retry",loading:"Opening publication…",loadingNote:"Opening note…",find:"Find a thought",fullText:"Include note text",searchLoading:"Loading note search…",searchUnavailable:"Note search is unavailable",address:"Note address",open:"Open",nodeUnavailable:"That thought is unavailable in this publication",copyAddress:"Copy note address",addressCopied:"Note address copied",copyShortAddress:"Copy link (short ID)",copyFullAddress:"Copy link (full ID)",ambiguousAddress:"This short ID matches several notes. Use the full ID.",pins:"Pins",history:"Session history",backTooltip:"History back (Alt + ←)",forwardTooltip:"History forward (Alt + →)",showSidecarTooltip:"Show Sidecar (Alt + Shift + S)",hideSidecarTooltip:"Hide Sidecar (Alt + Shift + S)",chooseNote:"Choose a matching thought",chooseAddress:"Enter a note ID to select another match",showSidecar:"Show Sidecar",hideSidecar:"Hide Sidecar",closeSidecar:"Close Sidecar",showSiblings:"Show siblings",siblings:"Siblings",darkMode:"Dark mode",resizeSidecar:"Resize Sidecar",dockSidecarBottom:"Move Sidecar below",dockSidecarRight:"Move Sidecar right",noteUnavailable:"Could not open this note",mediaUnavailable:"Some media could not be opened",noDocument:"No document is available for this thought",downloadAsset:"Download file",sceneLimited:"Some connections are outside this view’s display limit",themeUnavailable:"Using the default colors",insecure:"Open this publication over HTTPS or through a local preview server"};var Qf={min:8,max:20,step:1,default:12};function Kf(t){return typeof t=="number"&&Number.isFinite(t)?Math.max(Qf.min,Math.min(Qf.max,t)):Qf.default}var Su=(t,e,n)=>Math.max(e,Math.min(n,t));function Fy(t){return Math.max(5,(t.gateRadius??5)*1.05)}function Pf(t=30,e=!1){let n=Math.round(Math.max(8,t));return Math.max(e?18:8,n+(e?8:0))}function Eu(t,e,n=12.4){return(e?Su(t*.72,13,24):Su(t*.62,10,16))*Su(Number.isFinite(n)?n:12.4,8,28)/12.4}function yE(t,e){if(t.measurement&&Number.isFinite(t.measurement.width)&&t.measurement.width>=0)return t.measurement.width;let n=l=>Array.from(l).reduce((a,i)=>a+(i.codePointAt(0)>11903?1:.55)*e,0);return n(t.text)+(t.label?n(`${t.label}:`)+4:0)+(t.icon?e+4:0)}function Iy(t,e){return t.length?4+t.reduce((n,l)=>n+Math.ceil(l.measurement&&Number.isFinite(l.measurement.height)&&l.measurement.height>0?l.measurement.height:e*1.4),0):0}function $y(t,e){return t.reduce((n,l)=>Math.max(n,32+yE(l,e)),0)}function Wy(t,e,n,l=!1,a=30,i,u=1,o=[]){let r=(n.baseFontSize??12.4)/12.4,c=Math.min(t.length,Pf(a,l)),h=l?180:112,s=Math.max(h,i??(l?370:286)),f=l?Eu(e,!0,n.baseFontSize)*.55:e*r*.29,b=Su(70+c*Math.max(4.8,f),h,s),S=(l?16:8)+2*Math.max(0,u),v=Eu(e,l,n.baseFontSize),d=Math.max(l?48:26,Math.ceil(v*1.6+S)),m=Math.ceil(Math.max(e*r,v)*2.4+v*.4+S),p=n.wrapNodeLabels?Math.max(d,m):d,y=Kf(n.propertyFontSize),x=$y(o,y);return{width:o.length?Su(Math.max(b,x),h,s):b,height:p+Iy(o,y)}}function t0(t,e,n,l,a=1,i=[]){if(e===1)return t;let u=Kf(l.propertyFontSize),o=$y(i,u),r=Eu(n,!1,l.baseFontSize)*(l.wrapNodeLabels?2.8:1.6);return{width:Math.max(t.width*e,Math.min(t.width,o)),height:Math.max(t.height*e,Math.ceil(r+8+2*Math.max(0,a))+Iy(i,u))}}var Rt=P(wt(),1);function a0({bounds:t,semanticRole:e,className:n,style:l,...a}){return(0,Rt.jsx)("div",{...a,className:`kplex-thought kplex-role-${e}${n?" "+n:""}`,style:{left:t.x-t.width/2,top:t.y-t.height/2,width:t.width,height:t.height,...l}})}function i0({label:t,maximum:e,center:n}){let l=Pf(e??30,n),a=t.length>l?`${t.slice(0,Math.max(1,l-1))}…`:t;return(0,Rt.jsx)("span",{className:"kplex-thought-text",title:t,children:a})}function u0({wrap:t,children:e}){return(0,Rt.jsx)("span",{className:`kplex-thought-label${t?" is-two-line":""}`,children:e})}function o0({side:t,connected:e,highlighted:n,disabled:l,count:a,...i}){return(0,Rt.jsxs)("span",{className:`kplex-gate-wrap gate-wrap-${t}${e?"":" is-empty"}`,children:[(0,Rt.jsx)("span",{...i,"data-kplex-gate":t,className:`kplex-gate gate-${t}${e?" has-connections":" is-empty"}${n?" is-highlighted":""}${l?" is-link-disabled":""}`}),a!==null&&(0,Rt.jsx)("span",{className:"kplex-gate-count",children:a})]})}function r0(t){return(0,Rt.jsx)("path",{className:"kplex-edge-visible",fill:"none",vectorEffect:"non-scaling-stroke",...t})}function c0({label:t,midpoint:e,fontSize:n,color:l,background:a,opacity:i}){if(!t)return null;let u=n??10,o=Math.max(20,t.length*u*.58+10),r=u+6;return(0,Rt.jsxs)("g",{className:"kplex-edge-label-wrap",pointerEvents:"none",opacity:i,children:[(0,Rt.jsx)("rect",{x:e.x-o/2,y:e.y-r/2,width:o,height:r,rx:3,fill:a}),(0,Rt.jsx)("text",{className:"kplex-edge-label",x:e.x,y:e.y,textAnchor:"middle",dominantBaseline:"central",fill:l,fontSize:u,children:t})]})}function Zf(t,e="kplex"){if(!(!t||t==="none"))return`url(#${e}-${t==="triangle"||t==="dot"||t==="bar"?t:"arrow"})`}function s0({prefix:t="kplex"}){return(0,Rt.jsxs)("defs",{children:[(0,Rt.jsx)("marker",{id:`${t}-arrow`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Rt.jsx)("path",{d:"M1,1 L8,4.5 L1,8",fill:"none",stroke:"context-stroke",strokeWidth:"1.4"})}),(0,Rt.jsx)("marker",{id:`${t}-triangle`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Rt.jsx)("path",{d:"M0,0 L9,4.5 L0,9 z",fill:"context-stroke"})}),(0,Rt.jsx)("marker",{id:`${t}-dot`,markerWidth:"8",markerHeight:"8",refX:"4",refY:"4",orient:"auto",markerUnits:"strokeWidth",children:(0,Rt.jsx)("circle",{cx:"4",cy:"4",r:"2.6",fill:"context-stroke"})}),(0,Rt.jsx)("marker",{id:`${t}-bar`,markerWidth:"8",markerHeight:"10",refX:"4",refY:"5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Rt.jsx)("path",{d:"M4,1 L4,9",stroke:"context-stroke",strokeWidth:"1.8"})})]})}var f0={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous"};function xu(t,e){let n=e.toLowerCase(),l=t.nodes.get(n);return l?[l.id]:t.shortIds.get(n)??[]}function d0(t,e){if(!t.manifest)return;let n=e.slice(0,8),l=xu(t,n);return l.length===1&&l[0]===e?n:void 0}function Jf(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function di(t){return typeof t=="string"&&t.trim().length>0}function SE(t){return typeof t=="string"&&Object.getOwnPropertyDescriptor(f0,t)!==void 0}function m0(t){let e=Jf(t);if(e?.version===2&&("runtimeVersion"in e||"resources"in e))return EE(Jy(t));if(e?.version!==1)throw new Error("Unsupported publication fixture version");if(!di(e.title)||!di(e.entry)||!Array.isArray(e.nodes)||!Array.isArray(e.relations))throw new Error("Invalid publication fixture");let n=new Map,l=new Map,a=Object.freeze([]);for(let r of e.nodes){let c=Jf(r);if(!c||!di(c.id)||!di(c.title)||n.has(c.id)||c.text!==void 0&&typeof c.text!="string")throw new Error("Invalid or duplicate publication node");let h=fi(c.id);n.set(h,Object.freeze({id:h,name:c.title,kind:"document",resolution:"resolved",url:null,aliases:a,tags:a,styleTags:a,noteType:null,primaryStyleTag:null,maxLabelLength:30})),typeof c.text=="string"&&l.set(h,c.text)}let i=n.get(e.entry)?.id;if(!i)throw new Error("Missing publication entry node");let u=new Map,o=new Set;for(let r of e.relations){let c=Jf(r);if(!c||!di(c.source)||!di(c.target)||!SE(c.role)||c.label!==void 0&&typeof c.label!="string")throw new Error("Invalid publication relationship");let h=n.get(c.source),g=n.get(c.target);if(!h||!g)throw new Error("Missing publication relationship endpoint");let s=f0[c.role],f=JSON.stringify([h.id,c.role,g.id]);if(h===g||o.has(f))throw new Error("Invalid or duplicate publication relationship");o.add(f),o.add(JSON.stringify([g.id,s,h.id])),Ff(u,h,g,c.role,1,1,c.label),Ff(u,g,h,s,1,2,c.label)}return{title:e.title,entry:i,read:h0(n,u),nodes:n,shortIds:new Map,manifest:null,published:new Map,body:r=>l.get(r),linkStyle:()=>{}}}function Ff(t,e,n,l,a,i,u){let o=t.get(e.id);o||t.set(e.id,o=new Map);let r=o.get(l);r||o.set(l,r=[]),r.push(Object.freeze({node:n,role:l,relationType:a,direction:i,definition:u}))}function EE(t){let e=new Map,n=new Map,l=new Map,a=new Map,i=new Map;for(let u of t.nodes){let o=fi(u.id),r=u.id.slice(0,8),c=a.get(r);c?c.push(o):a.set(r,[o]);let h=u.kind==="folder"?"container":u.kind==="drawing"?"document":u.kind;e.set(o,Object.freeze({id:o,name:u.title,kind:h,resolution:"resolved",url:null,aliases:u.aliases??[],tags:[],styleTags:[],noteType:null,primaryStyleTag:null,maxLabelLength:30})),n.set(o,u)}for(let u of t.relations)Ff(l,e.get(u.source),e.get(u.target),u.role,u.relationType,u.direction,u.definition),u.style&&i.set(`${u.source}/${u.target}/${u.role}`,u.style);return{title:t.title,entry:fi(t.entry),read:h0(e,l),nodes:e,shortIds:a,manifest:t,published:n,body:()=>{},linkStyle:(u,o,r)=>i.get(`${u}/${o}/${r}`)}}function h0(t,e){let n=new Intl.Collator("en",{numeric:!0}),l=(i,u)=>n.compare(i.name,u.name)||(i.id<u.id?-1:i.id>u.id?1:0);for(let i of e.values())for(let u of i.values())Object.freeze(u.sort((o,r)=>l(o.node,r.node)));let a=Object.freeze([]);return{coverage:"local",isCurrent:()=>!0,node:i=>t.get(i)??null,relations(i,u,o){if(!t.has(i))return{items:a,coverage:"unavailable",truncated:!1};let r=e.get(i)?.get(u)??a,c=o!==void 0&&r.length>o;return{items:c?r.slice(0,o):r,coverage:"local",truncated:c}},evidence:()=>({coverage:"unavailable",value:null}),compare:l,corpus:{available:!1,reason:"unsupported"}}}var ca=P(Re(),1);var xE=80;function Sr(t,e){return[...t.filter(n=>n.id!==e.id),e].slice(-xE)}function $f(t){try{let e=decodeURIComponent(t.replace(/^#/,""));return e.length<=200&&!/\p{Cc}/u.test(e)&&e||void 0}catch{return}}function Tu(t,e){let n=e.protocol==="file:"&&e.hash.startsWith("#node=")?new URLSearchParams(e.hash.slice(1)):null,l=n?n.get("node"):e.searchParams.get("node")??e.searchParams.get("node-id"),a=l===null?[]:xu(t,l),i=a.length===1?a[0]:void 0,u=$f(n?encodeURIComponent(n.get("fragment")??""):e.hash);return{location:{id:i??t.entry,fragment:i||l===null?u:void 0},addressProblem:l===null||i?void 0:a.length?"ambiguous":"missing",matches:a}}function TE(t,e){let n=new URLSearchParams({node:t});return e&&n.set("fragment",e),`#${n}`}function g0(t,e,n,l){try{let a=new URL(t,e);if(a.origin!==e.origin||a.pathname!==e.pathname&&a.pathname!==`${e.pathname}index.html`)return;if(t.startsWith("#node=")&&e.protocol==="file:"){let{location:r,addressProblem:c}=Tu(n,a);return c?void 0:r}if(t.startsWith("#"))return{id:l,fragment:$f(a.hash)};if(!(a.searchParams.get("node")??a.searchParams.get("node-id")))return;let{location:u,addressProblem:o}=Tu(n,a);return o?void 0:u}catch{return}}function Mu(t,e,n=e.id){let l=new URL(t);return l.protocol==="file:"?(l.hash=TE(n,e.fragment??""),l):(l.searchParams.delete("node-id"),l.searchParams.set("node",n),l.hash=e.fragment?encodeURIComponent(e.fragment):"",l)}function p0(t,e,n){try{let l=new URL(t,e);if(l.protocol!==e.protocol||l.origin!==e.origin||l.username||l.password)return;let a=i=>i.endsWith("/")?i+"index.html":i;return a(l.pathname)!==a(e.pathname)||!(l.searchParams.has("node")||l.searchParams.has("node-id")||l.protocol==="file:"&&l.hash.startsWith("#node="))?void 0:Tu(n,l)}catch{return}}function If(t,e){return!t||typeof t!="object"||!("kplexPublication"in t)||t.kplexPublication!==e||!("position"in t)||typeof t.position!="number"||!Number.isSafeInteger(t.position)||t.position<0||!("last"in t)||typeof t.last!="number"||!Number.isSafeInteger(t.last)||t.last<t.position?null:{position:t.position,last:t.last}}function y0(t,e,n){let l=(0,ca.useRef)(n);l.current=n;let a=t.manifest?.id,[i,u]=(0,ca.useState)(()=>{let f=e?Tu(t,new URL(e.location.href)):{location:{id:t.entry},addressProblem:void 0},b=e&&a?If(e.history.state,a)??{position:0,last:0}:void 0;return{entries:[f.location],index:0,addressProblem:f.addressProblem,browser:b,visits:[f.location]}}),o=i.entries[i.index],r=(0,ca.useRef)(i.browser?.last??0);(0,ca.useEffect)(()=>{if(!e||!a)return;let f=e.history,b=v=>{let{location:d,addressProblem:m}=Tu(t,new URL(e.location.href)),p=If(v.state,a),y=p?{...p,last:Math.max(p.position,r.current)}:{position:0,last:0};r.current=y.last,f.replaceState({kplexPublication:a,...y},""),l.current(d.id),u(x=>({entries:[d],index:0,addressProblem:m,browser:y,visits:Sr(x.visits,d)}))},S=If(f.state,a)??{position:0,last:0};return f.replaceState({kplexPublication:a,...S},""),e.addEventListener("popstate",b),()=>e.removeEventListener("popstate",b)},[e,t,a]);function c(f){if(!t.nodes.has(f.id)||!i.addressProblem&&o.id===f.id&&o.fragment===f.fragment)return!1;if(l.current(f.id),e&&a&&i.browser){let S=i.browser.position+1,v={position:S,last:S};return e.history.pushState({kplexPublication:a,...v},"",Mu(new URL(e.location.href),f)),r.current=S,u({entries:[f],index:0,browser:v,visits:Sr(i.visits,f)}),!0}let b=i.index+1;return u({entries:[...i.entries.slice(0,b),f],index:b,visits:Sr(i.visits,f)}),!0}let h=i.browser?i.browser.position>0:i.index>0,g=i.browser?i.browser.position<i.browser.last:i.index+1<i.entries.length;function s(f){if(f===-1?h:g)if(e&&i.browser)e.history.go(f);else{let b=i.index+f,S=i.entries[b];l.current(S.id),u({...i,index:b,addressProblem:void 0,visits:Sr(i.visits,S)})}}return{attention:o,activate:c,move:s,visits:i.visits,addressProblem:i.addressProblem,canGoBack:h,canGoForward:g}}var Dl=P(Re(),1);var mi=P(Re(),1),S0=P(Hu(),1);var ME="button, input, select, textarea, a[href], [contenteditable='true'], [role='button'], [role='link'], [data-kplex-no-dialog-drag]";function NE(){}function wE(t){return!t||typeof t!="object"||!("closest"in t)?null:t}function RE(t,e){let l=wE(t)?.closest(ME)??null;return!!(l&&e.contains(l))}function b0(t,e,n,l,a){let i=e+a,u=Math.max(i,e+n-l-a);return Math.min(u,Math.max(i,t))}function AE(t){let e=t.visualViewport;return{left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.width??t.innerWidth,height:e?.height??t.innerHeight}}function v0({modalEl:t,handleEl:e,viewportMargin:n=8,onPositionChange:l}){let a=t.ownerDocument,i=a.defaultView;if(!i||e.ownerDocument!==a)return NE;let u=null,o=!1,r=!1,c=!1,h=i.visualViewport,g=(x,T)=>{let M=t.getBoundingClientRect(),w=AE(i),z=b0(x,w.left,w.width,M.width,n),C=b0(T,w.top,w.height,M.height,n);t.style.setProperty("--kplex-dialog-left",`${z}px`),t.style.setProperty("--kplex-dialog-top",`${C}px`),t.classList.add("is-positioned"),r=!0,l?.({left:z,top:C})},s=()=>{if(!r||c)return;let x=t.getBoundingClientRect();g(x.left,x.top)},f=()=>{a.removeEventListener("pointermove",S,!0),a.removeEventListener("pointerup",v,!0),a.removeEventListener("pointercancel",v,!0)},b=()=>{if(!u)return;let x=u.pointerId;u=null,o=!1,f(),e.hasPointerCapture(x)&&e.releasePointerCapture(x),t.classList.remove("is-dragging"),e.classList.remove("is-dragging")};function S(x){let T=u;if(!T||x.pointerId!==T.pointerId)return;x.preventDefault(),x.stopPropagation();let M=x.clientX-T.startClientX,w=x.clientY-T.startClientY;if(!o){if(Math.hypot(M,w)<3)return;o=!0,t.classList.add("is-dragging"),e.classList.add("is-dragging")}g(T.startLeft+M,T.startTop+w)}function v(x){!u||x.pointerId!==u.pointerId||(x.preventDefault(),x.stopPropagation(),b())}let d=x=>{u?.pointerId===x.pointerId&&b()},m=()=>{b()},p=x=>{if(c||u||x.button!==0||RE(x.target,e))return;let T=t.getBoundingClientRect();u={pointerId:x.pointerId,startClientX:x.clientX,startClientY:x.clientY,startLeft:T.left,startTop:T.top},a.addEventListener("pointermove",S,!0),a.addEventListener("pointerup",v,!0),a.addEventListener("pointercancel",v,!0);try{e.setPointerCapture(x.pointerId)}catch{}x.preventDefault(),x.stopPropagation()},y=()=>{c||(c=!0,b(),e.removeEventListener("pointerdown",p),e.removeEventListener("lostpointercapture",d),i.removeEventListener("blur",m),i.removeEventListener("resize",s),i.removeEventListener("pagehide",y),h?.removeEventListener("resize",s),h?.removeEventListener("scroll",s),t.classList.remove("kplex-draggable-dialog","is-positioned","is-dragging"),e.classList.remove("kplex-draggable-dialog-handle","is-dragging"),t.style.removeProperty("--kplex-dialog-left"),t.style.removeProperty("--kplex-dialog-top"))};return t.classList.add("kplex-draggable-dialog"),e.classList.add("kplex-draggable-dialog-handle"),e.addEventListener("pointerdown",p),e.addEventListener("lostpointercapture",d),i.addEventListener("blur",m),i.addEventListener("resize",s),i.addEventListener("pagehide",y),h?.addEventListener("resize",s),h?.addEventListener("scroll",s),y}function zE(t,e){let n=t.target,l=t.composedPath();return e.some(a=>a?l.includes(a)?!0:n?a.contains(n):!1:!1)}function E0({open:t,anchorRef:e,panelRef:n,dragHandleRef:l,insideRoots:a,onDismiss:i,dismissWhenAnchorHidden:u=!1,handleEscape:o,portalTarget:r,positioning:c,children:h}){let[g,s]=(0,mi.useState)({}),f=(0,mi.useRef)({insideRoots:a,onDismiss:i,handleEscape:o});f.current={insideRoots:a,onDismiss:i,handleEscape:o};let b=e.current,S=b?.ownerDocument??null,v=b?.closest("[data-floating-layer-boundary]")??null,d=t&&S?v??r(S):null;return(0,mi.useLayoutEffect)(()=>{if(!t)return;let m=e.current;if(!m)return;let p=m.ownerDocument,y=p.defaultView;if(!y)return;let x=!1,T=null,M=()=>{if(x)return;let ot=e.current;if(!ot||ot.ownerDocument!==p)return;let Y=ot.getBoundingClientRect();if(u&&(!ot.getClientRects().length||!Y.width||!Y.height)){f.current.onDismiss("anchor-hidden");return}let W=y.visualViewport,vt=v?.getBoundingClientRect(),Ye=vt&&v?vt.left+v.clientLeft-v.scrollLeft:0,zn=vt&&v?vt.top+v.clientTop-v.scrollTop:0,Z=Math.max(W?.offsetLeft??0,vt?.left??0),$e=Math.max(W?.offsetTop??0,vt?.top??0),qt=Math.min((W?.offsetLeft??0)+Math.min(y.innerWidth,W?.width??y.innerWidth),vt?.right??1/0),me=Math.min((W?.offsetTop??0)+Math.min(y.innerHeight,W?.height??y.innerHeight),vt?.bottom??1/0),J=Math.min(c.viewportMargin,Math.max(0,(qt-Z)/2)),ae=Math.max(0,Math.min(Math.max(c.minimumWidth,c.preferredWidth),qt-Z-J*2)),Wn=Math.max(Z+J,Math.min(T?.left??Y.left,qt-ae-J)),It=me-Y.bottom-c.anchorGap-J,$t=Y.top-$e-c.anchorGap-J,Wt=It<c.minimumMaxHeight&&$t>It?Y.top-c.anchorGap-Math.min(n.current?.scrollHeight||c.minimumMaxHeight,$t):Y.bottom+c.anchorGap,he=Math.max($e+J,Math.min(T?.top??Wt,me-Math.min(c.minimumMaxHeight,Math.max(0,me-$e-J*2))-J));s({position:v?"absolute":"fixed",left:Wn-Ye,top:he-zn,width:ae,maxHeight:Math.max(0,me-he-J)})},w=ot=>{zE(ot,f.current.insideRoots())||f.current.onDismiss("outside-pointer")},z=ot=>{if(ot.key!=="Escape"||f.current.handleEscape?.(ot)===!1)return;ot.preventDefault(),ot.stopPropagation(),f.current.onDismiss("escape");let Y=e.current;Y?.ownerDocument===p&&Y.isConnected&&Y.focus({preventScroll:!0})},C=y.ResizeObserver,$=C?new C(M):null;$?.observe(m),v&&$?.observe(v),n.current&&$?.observe(n.current),y.addEventListener("resize",M),y.visualViewport?.addEventListener("resize",M),y.visualViewport?.addEventListener("scroll",M),p.addEventListener("scroll",M,!0),p.addEventListener("pointerdown",w,!0),p.addEventListener("keydown",z,!0);let pt=n.current,j=l?.current,xt=pt&&j?v0({modalEl:pt,handleEl:j,viewportMargin:c.viewportMargin,onPositionChange:ot=>{T=ot,M()}}):void 0,Ut=()=>{x||(x=!0,xt?.(),$?.disconnect(),y.removeEventListener("resize",M),y.visualViewport?.removeEventListener("resize",M),y.visualViewport?.removeEventListener("scroll",M),p.removeEventListener("scroll",M,!0),p.removeEventListener("pointerdown",w,!0),p.removeEventListener("keydown",z,!0),y.removeEventListener("pagehide",Ut))};return y.addEventListener("pagehide",Ut),M(),Ut},[t,u,e,n,l,S,v,c.anchorGap,c.minimumMaxHeight,c.minimumWidth,c.preferredWidth,c.viewportMargin]),d?(0,S0.createPortal)(h(g),d):null}var rn=P(wt(),1),CE={preferredWidth:250,minimumWidth:160,viewportMargin:8,anchorGap:5,minimumMaxHeight:55};function x0({anchor:t,address:e,shortAddress:n,onDismiss:l,onCopied:a}){let i=(0,Dl.useRef)(t),u=(0,Dl.useRef)(null),o=(0,Dl.useRef)(!0),[r,c]=(0,Dl.useState)();i.current=t,(0,Dl.useEffect)(()=>(o.current=!0,()=>{o.current=!1}),[]);async function h(s){try{let f=t.ownerDocument.defaultView?.navigator.clipboard;if(!f)throw new Error("Clipboard unavailable");await f.writeText(s),o.current&&(a(),l(!0))}catch{o.current&&c(s)}}function g(s){if(!n||r||!["ArrowDown","ArrowUp","Home","End"].includes(s.key))return;let[f,b]=Array.from(s.currentTarget.querySelectorAll("[role=menuitem]")),S=s.key==="Home"?f:s.key==="End"||s.target===f?b:f;s.preventDefault(),S?.focus()}return(0,rn.jsx)(E0,{open:!0,anchorRef:i,panelRef:u,insideRoots:()=>[u.current],dismissWhenAnchorHidden:!0,onDismiss:s=>l(s==="escape"),portalTarget:()=>t.closest(".kplex-publication"),positioning:CE,children:s=>(0,rn.jsx)("div",{ref:u,style:s,className:"kplex-publication-address-menu",role:r?"dialog":"menu","aria-label":O.copyAddress,onKeyDown:g,children:r?(0,rn.jsx)("input",{autoFocus:!0,readOnly:!0,"aria-label":O.address,value:r,onFocus:f=>f.currentTarget.select()}):(0,rn.jsxs)(rn.Fragment,{children:[(0,rn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!!n,disabled:!n,onClick:()=>{n&&h(n)},children:O.copyShortAddress}),(0,rn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!n,onClick:()=>{h(e)},children:O.copyFullAddress}),!n&&(0,rn.jsx)("p",{children:O.ambiguousAddress})]})})})}var Nu=P(Re(),1);function T0(t,e){if(!t.length||!Number.isFinite(e))return null;let n=Math.max(0,Math.min(1,e));if(t.length===1)return t[0];for(let l=1;l<t.length;l++){let a=t[l],i=t[l-1];if(n>a.offset&&l<t.length-1)continue;let u=a.offset>i.offset?(n-i.offset)/(a.offset-i.offset):1,o=(r,c)=>r+(c-r)*u;return{offset:n,x:o(i.x,a.x),y:o(i.y,a.y),scaleX:o(i.scaleX,a.scaleX),scaleY:o(i.scaleY,a.scaleY),originX:o(i.originX,a.originX),originY:o(i.originY,a.originY)}}return null}var Er=class{constructor(){this.animations=new Map;this.poses=new Map}play(e,n,l,a){this.animations.get(e)?.cancel(),this.animations.delete(e),this.poses.delete(e);let i=e.animate(n,{...l,fill:"none"});if(!i)return null;this.animations.set(e,i),a&&this.poses.set(e,{animation:i,frames:a});let u=()=>{this.animations.get(e)===i&&(this.animations.delete(e),this.poses.delete(e))};return i.finished.then(u,u),i}isRunning(e){return e?this.animations.has(e):this.animations.size>0}sample(e){let n=this.poses.get(e);if(!n||this.animations.get(e)!==n.animation)return null;let l=n.animation.effect?.getComputedTiming().progress;return typeof l=="number"?T0(n.frames,l):null}cancelAll(){for(let e of this.animations.values())e.cancel();this.animations.clear(),this.poses.clear()}};function M0(t,e,n,l){let a=Math.max(.01,n),i=(t.left-e.left)/a,u=(t.top-e.top)/a,o=e.width>0?t.width/e.width:1,r=e.height>0?t.height/e.height:1,c=Math.hypot(i,u),h=Math.min(24/a,c*.08),g=c?-u/c:0,s=c?i/c:0;return[0,.35,.65,.85,1].map(f=>{let b=f===0||f===1?0:Math.sin(Math.PI*f),S=i*(1-f)+g*h*b,v=u*(1-f)+s*h*b,d=1+.055*b;return l?.push({offset:f,x:S,y:v,scaleX:(o+(1-o)*f)*d,scaleY:(r+(1-r)*f)*d,originX:0,originY:0}),{offset:f,transformOrigin:"0 0",transform:`translate(${S}px, ${v}px) scale(${(o+(1-o)*f)*d}, ${(r+(1-r)*f)*d})`,opacity:1}})}var xr={duration:320,easing:"cubic-bezier(.2,.72,.22,1)"};function N0(t){let e=t.getBoundingClientRect(),n=t.querySelector("[data-publication-sibling-scroll]"),l=n?.getBoundingClientRect(),a=[];for(let i of Array.from(t.querySelectorAll("[data-publication-occurrence]"))){let u=i.getBoundingClientRect(),o=l&&n?.contains(i)?l:e;u.left>=Math.min(e.right,o.right)||u.right<=Math.max(e.left,o.left)||u.top>=Math.min(e.bottom,o.bottom)||u.bottom<=Math.max(e.top,o.top)||a.push({element:i,id:i.dataset.publicationNode,occurrence:i.dataset.publicationOccurrence,rect:u,clipped:o!==e&&(u.top<o.top||u.bottom>o.bottom)})}return a}function OE(t,e){let n=new Set(t),l=new Map(t.map(u=>[u.occurrence,u])),a=new Map;for(let u of t){let o=a.get(u.id);o?o.push(u):a.set(u.id,[u])}let i=new Map;for(let u of e){let o=l.get(u.occurrence);o?.id===u.id&&(i.set(u,o),n.delete(o))}for(let u of e){if(i.has(u))continue;let o,r=1/0;for(let c of a.get(u.id)??[]){if(!n.has(c))continue;let h=Math.hypot(u.rect.x-c.rect.x,u.rect.y-c.rect.y);h<r&&(o=c,r=h)}o&&(i.set(u,o),n.delete(o))}return{pairs:i,remaining:n}}function w0(t,e){let n=(0,Nu.useRef)(new Er).current,l=(0,Nu.useRef)(null);function a(){l.current=null,n.cancelAll(),e.current?.replaceChildren()}(0,Nu.useEffect)(()=>{let o=t.current?.ownerDocument.defaultView?.matchMedia("(prefers-reduced-motion: reduce)");return o?.addEventListener("change",a),()=>{o?.removeEventListener("change",a),a()}},[]);function i(o){let r=t.current,c=r?.ownerDocument.defaultView;if(!(!r||!c)){if(r.querySelector("[data-publication-center]")?.dataset.publicationNode===o){l.current=null;return}if(r.ownerDocument.hidden||c.matchMedia("(prefers-reduced-motion: reduce)").matches||typeof r.animate!="function"){a();return}l.current={id:o,cards:N0(r)}}}function u(o,r){let c=t.current,h=e.current,g=l.current;if(a(),!c||!h||g?.id!==o)return;let s=N0(c),{pairs:f,remaining:b}=OE(g.cards,s);for(let d of s){let m=f.get(d)?.rect;m?(Math.abs(m.left-d.rect.left)>.5||Math.abs(m.top-d.rect.top)>.5||Math.abs(m.width-d.rect.width)>.5||Math.abs(m.height-d.rect.height)>.5)&&n.play(d.element,M0(m,d.rect,r),xr):n.play(d.element,[{opacity:0,transform:"translateY(12px) scale(.94)"},{opacity:1,transform:"none"}],xr)}let S=h.getBoundingClientRect();for(let d of b){if(d.clipped||d.element.isConnected)continue;let m=d.element.cloneNode(!0);m.removeAttribute("role"),m.removeAttribute("tabindex"),m.removeAttribute("data-publication-node"),m.removeAttribute("data-publication-occurrence"),m.removeAttribute("data-publication-center"),m.style.left=`${d.rect.left-S.left}px`,m.style.top=`${d.rect.top-S.top}px`;let p=d.rect.width/parseFloat(m.style.width),y=d.rect.height/parseFloat(m.style.height);h.append(m);let x=n.play(m,[{opacity:1,transformOrigin:"0 0",transform:`scale(${p}, ${y})`},{opacity:0,transformOrigin:"0 0",transform:`translateY(-8px) scale(${p*.95}, ${y*.95})`}],{...xr,duration:200});x?x.finished.then(()=>m.remove(),()=>m.remove()):m.remove()}let v=c.querySelector(".kplex-links");v&&n.play(v,[{opacity:0,offset:0},{opacity:.12,offset:.45},{opacity:1,offset:1}],xr)}return{capture:i,play:u,cancel:a}}var de=P(Re(),1);var wu=P(wt(),1);function R0({label:t,controlId:e,children:n,layout:l="stacked",actions:a,className:i=""}){return(0,wu.jsxs)("div",{className:`${l==="option"?"kplex-form-option":l==="inline"?"kplex-form-inline":"kplex-form-field kplex-react-field"}${a?" has-actions":""} ${i}`,children:[(0,wu.jsx)("label",{id:`${e}-label`,htmlFor:e,children:t}),n,a?(0,wu.jsx)("div",{className:"kplex-field-actions",children:a}):null]})}var Tr=P(Re(),1);var gt=P(Re(),1),z0=P(Hu(),1),le=P(wt(),1);function DE(t,e){let n=e.trim().toLocaleLowerCase();if(!n)return new Set;let l=t.toLocaleLowerCase(),a=l.indexOf(n);if(a>=0)return new Set(Array.from({length:n.length},(o,r)=>a+r));let i=new Set,u=0;for(let o of n){let r=l.indexOf(o,u);if(r<0)return new Set;i.add(r),u=r+1}return i}function A0(t,e){let n=DE(t,e);if(!n.size)return t;let l=[],a=0,i=n.has(0);for(let u=1;u<=t.length;u+=1){let o=u<t.length&&n.has(u);if(u<t.length&&o===i)continue;let r=t.slice(a,u);l.push(i?(0,le.jsx)("mark",{className:"kplex-fuzzy-match",children:r},`${a}:m`):(0,le.jsx)("span",{children:r},`${a}:t`)),a=u,i=o}return(0,le.jsx)(le.Fragment,{children:l})}function C0({value:t,onChange:e,results:n,getResults:l,onChoose:a,getKey:i,getLabel:u,getDetail:o,placeholder:r,ariaLabel:c,inputId:h,labelledBy:g,icon:s,autoFocus:f=!1,disabled:b=!1,floating:S=!1,floatingMode:v="app",portalSelector:d,appTopbarSelector:m,maxFloatingHeight:p=440,minFloatingWidth:y=0,resultsClassName:x="",matchingQuery:T,resultsOwnerId:M,preferSuggestionOnModifiedEnter:w=!1,resultPrefix:z,onEnterWithoutResult:C,onCtrlEnter:$,openResultsOnFocus:pt=!0,onFocusChange:j,onDismiss:xt,focusRequest:Ut,inputTitle:ot,inputKeyShortcuts:Y,className:W="",highlightMatches:vt=!0,closeOnChoose:Ye=!0,closeOnBlur:zn=!1,combobox:Z=!1,advanceOnChoose:$e=!1,disclosure:qt}){let me=(0,gt.useId)(),[J,ae]=(0,gt.useState)(!1),[Wn,It]=(0,gt.useState)(!1),[$t,Wt]=(0,gt.useState)(!1),[he,qe]=(0,gt.useState)(!1),[Cn,ge]=(0,gt.useState)(0),[On,fn]=(0,gt.useState)(null),pe=(0,gt.useRef)(null),Dn=(0,gt.useRef)(null),dn=(0,gt.useRef)(null),Hl=J&&!$t&&(he||pt||Wn&&t.trim().length>0),F=(0,gt.useMemo)(()=>Hl?l?.(t)??n??[]:[],[Hl,l,n,t]),ye=F.length?Math.max(0,Math.min(F.length-1,Cn)):0,ie=pe.current?.ownerDocument??null,St=ie?.defaultView??null,_n=S?v==="viewport"?ie?.body??null:d?pe.current?.closest(d)??null:null:null,We=J&&F.length>0&&(!S||!!(_n&&On)),ue=()=>{qe(!1),Wt(!0),ge(0),xt?.()},Ll=()=>{qt&&(qt.onOpen(),dn.current?.focus({preventScroll:!0}),ae(!0),qe(!0),Wt(!1),ge(0))},fa=A=>{qe(!1),ae(!A),It(!1),Wt(!A),ge(0);let L=dn.current;A&&L&&L.ownerDocument.activeElement===L&&L.blur(),j?.(!1)},E=()=>fa(!0),R=A=>{if(a(A),Ye){fa(!Z);return}$e&&F.length>0&&ge(L=>(Math.max(0,Math.min(F.length-1,L))+1)%F.length)};(0,gt.useEffect)(()=>{ge(0)},[t]);let B=(0,gt.useCallback)(()=>{let A=dn.current;A&&(ae(!0),It(!1),Wt(!1),A.focus({preventScroll:!0}),j?.(!0))},[j]);(0,gt.useEffect)(()=>{f&&B()},[f,B]),(0,gt.useEffect)(()=>{Ut&&B()},[Ut,B]),(0,gt.useEffect)(()=>{let A=pe.current;if(!A)return;let L=()=>ue();return A.addEventListener("kplex-dismiss-suggestions",L),()=>A.removeEventListener("kplex-dismiss-suggestions",L)},[xt]),(0,gt.useEffect)(()=>{if(!J||!ie||!St)return;let A=pe.current;if(!A)return;let L=Xt=>{let we=Xt.target;we&&(A.contains(we)||Dn.current?.contains(we))||E()},st=()=>ie.removeEventListener("pointerdown",L,!0);return ie.addEventListener("pointerdown",L,!0),St.addEventListener("pagehide",st,{once:!0}),()=>{st(),St.removeEventListener("pagehide",st)}},[J,ie,St]),(0,gt.useLayoutEffect)(()=>{if(!S||!J||!F.length){fn(null);return}let A=pe.current;if(!A||!St)return;let L=St.visualViewport,st=()=>{let Hn=A.getBoundingClientRect(),be=8,Dr=6;if(v==="viewport"){let yd=L?.offsetLeft??0,_r=L?.offsetTop??0,bd=L?.width??St.innerWidth,vd=_r+(L?.height??St.innerHeight),Sd=Math.min(Math.max(Hn.width,y),Math.max(0,bd-be*2)),Rb=Math.max(yd+be,Math.min(Hn.left,yd+bd-be-Sd)),Ed=Math.max(Hn.bottom+Dr,_r+be),xd=Math.min(Hn.top-Dr,vd-be),Hr=Math.max(0,vd-be-Ed),Td=Math.max(0,xd-_r-be),Md=Hr>=Math.min(180,p)||Hr>=Td,Ab=Math.max(0,Math.min(p,Md?Hr:Td)),Lr={position:"fixed",left:Rb,width:Sd,maxHeight:Ab,zIndex:1e4};Md?Lr.top=Ed:Lr.bottom=St.innerHeight-xd,fn(Lr);return}let fd=d?A.closest(d)??null:null,dd=m?A.closest(m)??null:null;if(!fd||!dd)return;let pi=fd.getBoundingClientRect(),Tb=dd.getBoundingClientRect(),md=Math.max(0,pi.width-be*2),hd=Math.min(780,Math.max(Hn.width,Math.min(620,md)),md),gd=be,Mb=Math.max(gd,pi.width-be-hd),Nb=Math.min(Mb,Math.max(gd,Hn.left-pi.left)),pd=Math.max(0,Tb.bottom-pi.top+Dr),wb=Math.max(0,Math.min(p,pi.height-pd-be));fn({left:Nb,top:pd,width:hd,maxHeight:wb})};st();let Xt=St.ResizeObserver,we=Xt?new Xt(st):null,Ul=v==="app"&&d?A.closest(d):null,gi=v==="app"&&m?A.closest(m):null;Ul&&we?.observe(Ul),gi&&we?.observe(gi),we?.observe(A);let da=()=>{we?.disconnect(),St.removeEventListener("resize",st),St.removeEventListener("scroll",st,!0),L?.removeEventListener("resize",st),L?.removeEventListener("scroll",st)};return St.addEventListener("resize",st),St.addEventListener("scroll",st,!0),L?.addEventListener("resize",st),L?.addEventListener("scroll",st),St.addEventListener("pagehide",da,{once:!0}),()=>{da(),St.removeEventListener("pagehide",da)}},[m,S,v,J,F.length,p,y,ie,St,d]),(0,gt.useEffect)(()=>{let A=Dn.current;!A||!F.length||A.querySelector(`[data-kplex-fuzzy-index="${ye}"]`)?.scrollIntoView({block:"nearest"})},[ye,F.length]);let _=A=>{if(!(A.nativeEvent.isComposing||A.key==="Dead"||A.getModifierState("AltGraph"))){if(A.key==="Tab"){ue(),ae(!1),j?.(!1);return}if(A.key==="Escape"){F.length&&(A.preventDefault(),A.stopPropagation(),ue());return}if(Z&&qt&&A.key==="ArrowDown"&&!F.length){A.preventDefault(),Ll();return}if(A.key==="ArrowDown"&&F.length){A.preventDefault(),ge(L=>Math.min(F.length-1,L+1));return}if(A.key==="ArrowUp"&&F.length){A.preventDefault(),ge(L=>Math.max(0,L-1));return}if(A.key==="Enter"&&A.repeat){A.preventDefault(),A.stopPropagation();return}if(A.key==="Enter"&&F.length&&(!(A.ctrlKey||A.metaKey)||w)){A.preventDefault(),A.stopPropagation();let L=F[ye];L&&R(L);return}if(A.key==="Enter"&&(A.ctrlKey||A.metaKey)&&$){A.preventDefault(),A.stopPropagation(),$();return}if(!(A.key==="Enter"&&(A.ctrlKey||A.metaKey)&&!$)&&A.key==="Enter"){A.preventDefault();let L=F[ye];L?R(L):C?.()}}},k=J&&F.length>0?(0,le.jsx)("div",{ref:Dn,id:Z?me:void 0,role:Z?"listbox":void 0,"aria-labelledby":Z?g:void 0,"aria-label":Z&&!g?c:void 0,"data-fuzzy-owner":M,"data-kplex-tooltip-scope":!0,className:`kplex-search-results${S?" kplex-fuzzy-floating-results":" kplex-fuzzy-inline-results"}${x?` ${x}`:""}`,style:S?On??void 0:void 0,children:F.map((A,L)=>{let st=u(A),Xt=o?.(A),we=vt?T??t:"";return(0,le.jsxs)("button",{id:Z?`${me}-option-${L}`:void 0,role:Z?"option":void 0,"aria-selected":Z?L===ye:void 0,tabIndex:Z?-1:void 0,"data-kplex-fuzzy-index":L,className:`kplex-search-result${z?" has-prefix":""}${L===ye?" is-selected":""}`,"aria-label":Xt?`${st}
11
- ${Xt}`:st,onMouseDown:Ul=>Ul.preventDefault(),onMouseEnter:()=>ge(L),onClick:()=>R(A),children:[z?(0,le.jsx)("span",{className:"kplex-search-result-prefix","aria-hidden":"true",children:z(A)}):null,(0,le.jsx)("span",{children:A0(st,we)}),Xt?(0,le.jsx)("small",{children:A0(Xt,we)}):null]},i(A))})}):null,Ot=S&&_n&&On&&k?(0,z0.createPortal)(k,_n):S?null:k;return(0,le.jsxs)("div",{ref:pe,className:`kplex-search-shell kplex-fuzzy-search${W?` ${W}`:""}`,children:[s?(0,le.jsx)("div",{className:"kplex-search-icon",children:s}):null,(0,le.jsx)("input",{ref:dn,type:"text",role:Z?"combobox":void 0,id:h,className:"kplex-search",value:t,disabled:b,onChange:A=>{qe(!1),It(!0),Wt(!1),e(A.currentTarget.value)},onFocus:()=>{ae(!0),It(!1),Wt(!1),j?.(!0)},onBlur:zn?E:void 0,onKeyDown:_,placeholder:r,"aria-label":g?void 0:c,title:ot,"aria-keyshortcuts":Y,"aria-labelledby":g,"aria-expanded":Z?We:J&&F.length>0,"aria-haspopup":Z?"listbox":void 0,"aria-autocomplete":Z?"list":void 0,"aria-controls":Z&&We?me:void 0,"aria-activedescendant":Z&&We?`${me}-option-${ye}`:void 0,autoComplete:"off"}),qt?(0,le.jsx)("button",{type:"button",className:"kplex-fuzzy-disclosure",tabIndex:Z?-1:void 0,disabled:b,"aria-label":qt.label,"aria-expanded":Z?We:J&&F.length>0,"aria-haspopup":Z?"listbox":void 0,"aria-controls":Z&&We?me:void 0,onMouseDown:A=>A.preventDefault(),onClick:()=>{if(J&&he&&!$t){ue();return}Ll()},children:qt.icon}):null,Ot]})}var D0=P(wt(),1);function O0({graph:t,icon:e,portalSelector:n,appTopbarSelector:l,onActivate:a,revision:i,focusRequest:u,inputTitle:o,inputKeyShortcuts:r,placeholder:c,ariaLabel:h,clearOnActivate:g=!0,repeatFind:s=!1,resultIcon:f}){let[b,S]=(0,Tr.useState)(""),v=(0,Tr.useCallback)(d=>t.search(d,24),[t,i]);return(0,D0.jsx)(C0,{value:b,onChange:S,getResults:v,onChoose:d=>{a(d.node.id),g&&S("")},getKey:d=>d.node.id,getLabel:d=>d.label,getDetail:d=>d.detail,resultPrefix:f,placeholder:c,ariaLabel:h,floating:!0,icon:e,portalSelector:n,appTopbarSelector:l,focusRequest:u,inputTitle:o,inputKeyShortcuts:r,closeOnChoose:!s,advanceOnChoose:s})}var _E=1e5,HE=8*1024*1024,_0=1e6,LE=/[\p{L}\p{N}]+/gu,UE=/^[\p{L}\p{N}]{1,128}$/u;function H0(t){return[...new Set(t.normalize("NFC").toLowerCase().match(LE))].filter(e=>e.length<=128)}function BE(t,e){if(!Array.isArray(t)||t.length>br)throw new Error("Invalid publication search rows");let n=new Set,l=0;return t.map(a=>{if(!a||typeof a!="object"||!("id"in a)||!In(a.id)||n.has(a.id)||e&&!e.has(a.id)||!("text"in a)||typeof a.text!="string"||a.text.length>_E)throw new Error("Invalid publication search row");if(n.add(a.id),l+=a.text.length,l>HE)throw new Error("Publication search exceeds its text budget");return{id:a.id,text:a.text}})}function L0(t,e){if(!t||typeof t!="object"||!("version"in t)||t.version!==1||!("rows"in t)||!("terms"in t)||!Array.isArray(t.terms)||t.terms.length>_0)throw new Error("Invalid publication search index");let n=BE(t.rows,e),l="";for(let{id:o}of n){if(l>=o)throw new Error("Unordered publication search rows");l=o}let a="",i=0,u=t.terms.map(o=>{if(!Array.isArray(o)||o.length!==2)throw new Error("Invalid publication search term");let[r,c]=o;if(typeof r!="string"||r.length>128||!UE.test(r)||r!==r.normalize("NFC").toLowerCase()||a>=r||!Array.isArray(c)||!c.length||c.length>n.length)throw new Error("Invalid publication search term");if(a=r,i+=c.length,i>_0)throw new Error("Publication search exceeds its posting budget");let h=-1;for(let g of c){if(typeof g!="number"||!Number.isInteger(g)||g<=h||g>=n.length)throw new Error("Invalid publication search reference");h=g}return[r,c]});return{version:1,rows:n,terms:u}}function sa(t){return t.trim().normalize("NFC").toLowerCase()}function U0(t,e){let n=new Set([...e.published.values()].filter(a=>a.kind==="document"||a.kind==="drawing").map(a=>a.id)),l=L0(t,n);return{rows:l.rows,positions:new Map(l.rows.map(({id:a},i)=>[a,i])),postings:new Map(l.terms)}}function VE(t,e){let n=Math.max(0,sa(t).indexOf(e)-35);return`${n?"…":""}${t.slice(n,n+90)}${t.length>n+90?"…":""}`}function B0(t,e){let n=new Map,l=[...t.nodes.values()].map(i=>{let u=sa(i.name),o=i.aliases.map(sa),r=Object.values(t.published.get(i.id)?.properties??{}).flatMap(c=>typeof c=="object"?[...c]:[String(c)]).map(sa);for(let c of[u,...o]){let h=n.get(c);h||n.set(c,h=new Set),h.add(i.id)}return{node:i,title:u,aliases:o,properties:r}});return{graph:{search(i,u){let o=sa(i.slice(0,128));if(!o)return[];let r=H0(o),c=r[0],h=e&&r.length?r.map(g=>new Set(e.postings.get(g))):null;return l.flatMap(({node:g,title:s,aliases:f,properties:b})=>{let S=e?.positions.get(g.id),v=s===o?1:f.includes(o)?2:s.startsWith(o)?3:f.some(d=>d.startsWith(o))?4:s.includes(o)?5:f.some(d=>d.includes(o))||b.some(d=>d.includes(o))?6:S!==void 0&&h?.every(d=>d.has(S))?7:0;return v?[{score:v,node:g,position:S,title:s}]:[]}).sort((g,s)=>g.score-s.score||t.read.compare(g.node,s.node)).slice(0,u).map(({score:g,node:s,position:f,title:b})=>{let S=g===7&&f!==void 0?e?.rows[f]?.text:void 0,v=S&&c?VE(S,c):n.get(b).size>1?s.id:s.aliases.find(d=>sa(d).includes(o))??"";return{node:s,label:s.name,detail:v}})}},address(i){let u=sa(i),o=xu(t,u);return o.length?o:[...n.get(u)??[]]}}}var Lt=P(wt(),1);function V0({publication:t,resources:e,page:n,searchFocus:l,onChoose:a}){let i=(0,de.useRef)(null),u=(0,de.useId)(),[o,r]=(0,de.useState)(""),[c,h]=(0,de.useState)([]),[g,s]=(0,de.useState)(!1),[f,b]=(0,de.useState)(!1),[S,v]=(0,de.useState)(null),[d,m]=(0,de.useState)(!1),p=(0,de.useMemo)(()=>B0(t,f?S:null),[t,f,S]);(0,de.useEffect)(()=>{let x=i.current?.ownerDocument.defaultView;if(!f||!x||S)return;let T=new x.AbortController,M=T.signal;return m(!1),e.text(qf,M).then(w=>{M.aborted||v(U0(JSON.parse(w),t))}).catch(()=>{M.aborted||m(!0)}),()=>T.abort()},[f,t,e,S]);function y(x){x.preventDefault();let T=p0(o.trim(),n(),t),M=T?T.matches:p.address(o);if(M.length!==1){h(M),s(!M.length);return}h([]),s(!1),a(T?.location??{id:M[0]})}return(0,Lt.jsxs)("div",{className:"kplex-publication-tools",ref:i,children:[(0,Lt.jsx)(O0,{graph:p.graph,revision:S&&f?1:0,onActivate:x=>a({id:x}),portalSelector:".kplex-publication",appTopbarSelector:".kplex-publication-header",placeholder:O.find,ariaLabel:O.find,focusRequest:l,inputTitle:`${O.find} (${vu.key})`,inputKeyShortcuts:vu.key}),t.manifest?.fullText&&(0,Lt.jsxs)("div",{className:"kplex-publication-search-options",children:[(0,Lt.jsx)("button",{type:"button","aria-pressed":f,onClick:()=>b(x=>!x),children:O.fullText}),d&&f?(0,Lt.jsx)("span",{role:"status",children:O.searchUnavailable}):f&&!S?(0,Lt.jsx)("span",{role:"status",children:O.searchLoading}):null]}),(0,Lt.jsxs)("form",{className:"kplex-publication-address",onSubmit:y,children:[(0,Lt.jsx)(R0,{label:O.address,layout:"inline",controlId:u,actions:(0,Lt.jsx)("button",{type:"submit",children:O.open}),children:(0,Lt.jsx)("input",{id:u,type:"text",autoComplete:"off",maxLength:512,value:o,onChange:x=>{r(x.currentTarget.value),h([]),s(!1)}})}),g&&(0,Lt.jsx)("span",{role:"status",children:O.nodeUnavailable}),c.length>1&&(0,Lt.jsxs)("div",{className:"kplex-publication-address-matches",children:[(0,Lt.jsx)("p",{children:O.chooseNote}),(0,Lt.jsx)("ul",{children:c.slice(0,24).map(x=>(0,Lt.jsx)("li",{children:(0,Lt.jsxs)("button",{type:"button",onClick:()=>{h([]),a({id:x})},children:[t.nodes.get(x)?.name," · ",x]})},x))}),c.length>24&&(0,Lt.jsx)("p",{children:O.chooseAddress})]})]})]})}var Ge=P(Re(),1);var Mr="http://www.w3.org/1999/xhtml",hi="http://www.w3.org/2000/svg",GE="http://www.w3.org/1999/xlink",YE=new Set("a article aside audio b blockquote br caption code dd del div dl dt em figcaption figure h1 h2 h3 h4 h5 h6 hr i img li mark ol p pre s section span strong sub sup table tbody td th thead tr ul video".split(" ")),qE=new Set("svg a circle clipPath defs ellipse g image line linearGradient marker mask path pattern polygon polyline radialGradient rect stop symbol text textPath tspan use".split(" ")),XE=new Set("x y x1 x2 y1 y2 cx cy r rx ry fx fy fr d points width height viewBox markerWidth markerHeight refX refY startOffset stroke-width stroke-dasharray stroke-dashoffset font-size letter-spacing textLength pathLength transform gradientTransform patternTransform opacity fill-opacity stroke-opacity offset stop-opacity stroke-miterlimit".split(" ")),jE=new Set("stroke-linecap stroke-linejoin text-anchor dominant-baseline alignment-baseline font-weight font-style font-family fill-rule clip-rule gradientUnits spreadMethod markerUnits marker-start marker-end marker-mid patternUnits patternContentUnits clipPathUnits maskUnits maskContentUnits preserveAspectRatio orient vector-effect visibility lengthAdjust".split(" ")),kE=new Set(["fill","stroke","stop-color","clip-path","mask","marker-start","marker-end","marker-mid"]),G0=/^[-a-z0-9_]{1,96}$/i,QE=/^[\d\s+.,%()a-z-]+$/i,KE=/^[a-z0-9][a-z0-9 .,%'"-]{0,191}$/i,PE=/^(?:#[\da-f]{3,8}|[a-z]{1,32}|rgba?\([\d., %]+\)|hsla?\([\d., %+-]+\))$/i,ZE=/^url\(#([a-z0-9_.:-]{1,160})\)$/i,JE=/^\.\/assets\/[a-f0-9]{64}\.[a-z0-9]{2,5}$/,Y0=/\.(?:png|jpe?g|gif|webp|avif|svg)$/,q0=4*1024*1024;function Nr(t){return/^[bh]-[\p{L}\p{N}_-]{1,80}$/u.test(t)}function FE(t){if(t.length>2048||!/^https?:\/\//i.test(t)||/[\p{Cc}\s\\]/u.test(t))return null;try{let e=new URL(t);return e.hostname&&!e.username&&!e.password?e.href:null}catch{return null}}function IE(t,e=""){if(!In(t)||e&&!Nr(e))throw new Error("Invalid public link");return`?node=${t}${e?`#${encodeURIComponent(e)}`:""}`}function X0(t,e){if(t.startsWith("?node=")){let n=/^\?node=([^#]+)(?:#(.+))?$/.exec(t);if(!n||!e.nodeIds.has(n[1])||!In(n[1]))return null;let l="";try{l=decodeURIComponent(n[2]??"")}catch{return null}if(l&&!Nr(l))return null;if(e.nodeAddress)return e.nodeAddress(n[1],l);let a=IE(n[1],l);return e.siteURL?new URL(a,e.siteURL).href:a}if(t.startsWith("#")){let n;try{n=decodeURIComponent(t.slice(1))}catch{return null}return Nr(n)?`#${encodeURIComponent(e.idPrefix?`${e.idPrefix}-${n}`:n)}`:null}return j0(t,e)??(e.allowExternalLinks===!1?null:FE(t))}function j0(t,e){let n=t.slice(2);return!JE.test(t)||!kf(n)||!e.assetPaths.has(n)?null:e.siteURL?new URL(`./${n}`,e.siteURL).href:`./${n}`}function $E(t,e){let n=new Map;for(let l of Array.from(t.querySelectorAll("[id]"))){let a=l.getAttribute("id");a&&/^[a-z0-9_.:-]{1,160}$/i.test(a)&&!n.has(a)&&n.set(a,`${e}-${n.size+1}`)}return n}function k0(t,e){e&&(t.setAttribute("href",e),t.setAttribute("rel","noopener noreferrer"))}function Q0(t,e,n,l){let a=j0(n,l);a&&(l.deferMedia?t.setAttribute("data-publication-asset",n.slice(2)):t.setAttribute(e,a))}function WE(t,e){if(t.getAttribute("data-publication-drawing")!=="true")return;e.setAttribute("data-publication-drawing","true");let n=t.getAttribute("data-publication-drawing-mode");(n==="light"||n==="dark")&&e.setAttribute("data-publication-drawing-mode",n);for(let l of["width","height"]){let a=`data-publication-${l}`,i=t.getAttribute(a)??"";/^(?:0|[1-9]\d{0,4}%?)$/.test(i)&&(e.setAttribute(a,i),e.style.setProperty(`--kplex-published-drawing-${l}`,i.endsWith("%")?i:`${i}px`))}}function tx(t,e,n){let l=t.localName,a=t.getAttribute("id")??t.getAttribute("data-publication-fragment");if(a&&Nr(a)&&(e.id=n.idPrefix?`${n.idPrefix}-${a}`:a,e.setAttribute("data-publication-fragment",a)),l==="a"&&k0(e,X0(t.getAttribute("href")??"",n)),l==="figure"&&WE(t,e),l==="img"||l==="audio"||l==="video"){let i=t.getAttribute("src")??"";(l==="img"?Y0:l==="audio"?/\.(?:mp3|ogg|wav)$/:/\.(?:mp4|webm)$/).test(i)&&Q0(e,"src",i,n),l==="img"?(e.setAttribute("alt",(t.getAttribute("alt")??"").slice(0,512)),e.setAttribute("loading","lazy"),e.setAttribute("decoding","async")):(e.setAttribute("controls","controls"),e.setAttribute("preload","none"))}if(l==="aside"||l==="blockquote"){let i=t.getAttribute("data-callout");i&&G0.test(i)&&e.setAttribute("data-callout",i)}if(l==="ol"){let i=t.getAttribute("start");i&&/^\d{1,7}$/.test(i)&&e.setAttribute("start",i)}}var ex=/@font-face\s*\{\s*font-family:\s*(["']?)([a-z0-9][a-z0-9 _-]{0,95})\1\s*;\s*src:\s*url\(\s*(["']?)data:font\/(woff2|woff|ttf|otf);base64,([A-Za-z0-9+/]+={0,2})\3\s*\)\s*;\s*\}/gi,nx={woff2:"wOF2",woff:"wOFF",ttf:"\0\0\0",otf:"OTTO"},lx=512*1024;function ax(t,e){let n=new Map,l=[],a=0;for(let i of Array.from(t.children))if(!(i.namespaceURI!==hi||i.localName!=="defs"))for(let u of Array.from(i.children)){if(u.namespaceURI!==hi||u.localName!=="style"||u.childElementCount)continue;let o=u.textContent??"";if(a+=o.length,a>lx)return{families:new Map,rules:[]};for(let r of o.matchAll(ex)){let c=r[2].trim().toLowerCase(),h=r[4],g=r[5];if(!(h==="woff2"||h==="woff"||h==="ttf"||h==="otf")||g.length<8||g.length%4||!atob(g.slice(0,8)).startsWith(nx[h]))continue;let s=n.get(c)??`${e}-font-${n.size+1}`;n.set(c,s),l.push(`@font-face{font-family:${s};src:url(data:font/${h};base64,${g});}`)}}return{families:n,rules:l}}function ix(t,e){return t.split(",").map(n=>e?.get(n.trim().replace(/^["']|["']$/g,"").toLowerCase())??n).join(",")}function ux(t,e,n,l,a){for(let i of Array.from(t.attributes)){let{localName:u,value:o}=i;if(!(o.length>65536)){if(u==="href"&&(i.namespaceURI===null||i.namespaceURI===GE)){if(t.localName==="a")k0(e,X0(o,l));else if(t.localName==="image"&&Y0.test(o))Q0(e,"href",o,l);else if((t.localName==="use"||t.localName==="textPath"||t.localName.endsWith("Gradient"))&&o.startsWith("#")){let r=n.get(o.slice(1));r&&e.setAttribute("href",`#${r}`)}continue}if(!i.namespaceURI)if(u==="id"){let r=n.get(o);r&&e.setAttribute(u,r)}else if(kE.has(u)){let r=ZE.exec(o),c=r&&n.get(r[1]);c?e.setAttribute(u,`url(#${c})`):PE.test(o)&&e.setAttribute(u,o)}else XE.has(u)&&QE.test(o)?e.setAttribute(u,o):jE.has(u)&&KE.test(o)&&e.setAttribute(u,u==="font-family"?ix(o,a?.families):o)}}}function ox(t,e,n){if(n.idPrefix&&!G0.test(n.idPrefix))throw new Error("Invalid publication fragment scope");let l=e.defaultView;if(!l)throw new Error("Publication document unavailable");let a=n.siteURL?e:e.implementation.createDocument(null,null),i=a.adoptNode(new l.DocumentFragment),u=0,o=0,r=0,c=new Set,h=(g,s,f,b,S)=>{if(++u>1e5||f>64)throw new Error("Publication content too complex");if(g.nodeType===3||g.nodeType===4){let d=g.nodeValue??"";if(r+=d.length,r>q0)throw new Error("Publication content too large");s.appendChild(a.createTextNode(d));return}if(g.nodeType!==1)return;let v=g;if(v.namespaceURI===hi&&qE.has(v.localName)){if(v.localName==="svg"){let p=`${n.idPrefix??"svg"}-s${++o}`;b=$E(v,p),S=n.allowDrawingFonts?ax(v,p):void 0}if(!b)return;let d=a.createElementNS(hi,v.localName);ux(v,d,b,n,S);let m=d.getAttribute("id");if(m&&c.has(m)?d.removeAttribute("id"):m&&c.add(m),s.appendChild(d),v.localName==="svg"&&S?.rules.length){let p=a.createElementNS(hi,"defs"),y=a.createElementNS(hi,"style");y.textContent=S.rules.join(`
12
- `),p.appendChild(y),d.appendChild(p)}for(let p of Array.from(v.childNodes))h(p,d,f+1,b,S)}else if(!b&&v.namespaceURI===Mr&&YE.has(v.localName)){if(n.drawingMode&&v.localName==="figure"&&v.getAttribute("data-publication-drawing")==="true"){let m=v.getAttribute("data-publication-drawing-mode");if((m==="light"||m==="dark")&&m!==n.drawingMode)return}let d=a.createElementNS(Mr,v.localName);tx(v,d,n),s.appendChild(d);for(let m of Array.from(v.childNodes))h(m,d,f+1,null)}};for(let g of t)h(g,i,0,null);return i}function K0(t,e,n){if(t.length>q0||/<!\s*(?:doctype|entity)|<\?[^>]*\?>/i.test(t))throw new Error("Invalid publication content");let l=e.defaultView;if(!l)throw new Error("Publication document unavailable");let a=new l.DOMParser().parseFromString(`<article xmlns="${Mr}">${t}</article>`,"application/xhtml+xml");if(a.documentElement.namespaceURI!==Mr||a.querySelector("parsererror"))throw new Error("Invalid publication markup");return ox(Array.from(a.documentElement.childNodes),e,{...n,allowDrawingFonts:!0})}var Ft=P(wt(),1),P0="http://www.w3.org/2000/svg",rx={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",avif:"image/avif",svg:"image/svg+xml",mp3:"audio/mpeg",ogg:"audio/ogg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",pdf:"application/pdf"};function Wf(t,e){if(e)return Array.from(t.querySelectorAll("[data-publication-fragment]")).find(n=>n.id===e||n.getAttribute("data-publication-fragment")===e)}function Z0({publication:t,resources:e,location:n,id:l,contentScope:a,colorMode:i,onClose:u,onNavigate:o,dock:r,onSwitchDock:c}){let h=(0,Ge.useRef)(null),g=(0,Ge.useRef)(null),s=(0,Ge.useRef)(!1),f=(0,Ge.useRef)(n.fragment);f.current=n.fragment;let[b,S]=(0,Ge.useState)(0),[v,d]=(0,Ge.useState)("loading"),[m,p]=(0,Ge.useState)(0),y=t.published.get(n.id);(0,Ge.useEffect)(()=>{let T=h.current,M=T?.ownerDocument.defaultView;if(!T||!M)return;let w=new M.AbortController,z=w.signal,C=new Map;p(0),T.replaceChildren();let $=async j=>{let xt=C.get(j);if(xt)return xt;let Ut=rx[j.slice(j.lastIndexOf(".")+1)];if(!Ut)throw new Error("Unsupported publication media");let ot=await e.bytes(j,z);z.throwIfAborted();let Y=M.URL.createObjectURL(new M.Blob([ot],{type:Ut}));return C.set(j,Y),Y},pt=async()=>{if(y.kind!=="document"&&y.kind!=="drawing"){if(!y.asset){d("unavailable");return}let Y=await $(y.asset);z.throwIfAborted();let W=T.ownerDocument.createElement("a");W.href=Y,W.download=y.asset.slice(7),W.textContent=O.downloadAsset,T.replaceChildren(W),d("ready");return}let j=await e.text(jf(y.id),z),xt=K0(j,T.ownerDocument,{siteURL:e.siteURL,nodeAddress:e.nodeAddress,nodeIds:new Set(t.nodes.keys()),assetPaths:e.assetPaths,idPrefix:a,deferMedia:!0,drawingMode:i}),Ut=Array.from(xt.querySelectorAll("[data-publication-asset]"),Y=>({element:Y,path:Y.getAttribute("data-publication-asset"),download:!1})),ot=new URL("./assets/",e.siteURL);for(let Y of Array.from(xt.querySelectorAll("a[href]"))){let W=new URL(Y.getAttribute("href"),e.siteURL);if(W.origin!==ot.origin||!W.pathname.startsWith(ot.pathname))continue;let vt=W.pathname.slice(e.siteURL.pathname.length);Y.removeAttribute("href"),Y.namespaceURI!==P0&&e.assetPaths.has(vt)&&Ut.push({element:Y,path:vt,download:!0})}z.throwIfAborted(),T.replaceChildren(xt),d("ready"),Wf(T,f.current)?.scrollIntoView({block:"start"});for(let{element:Y,path:W,download:vt}of Ut)try{let Ye=await $(W);z.throwIfAborted(),Y.setAttribute(vt||Y.namespaceURI===P0?"href":"src",Ye),vt&&Y.setAttribute("download",W.slice(7)),Y.removeAttribute("data-publication-asset")}catch{if(z.aborted)return;p(Ye=>Ye+1)}};return d("loading"),pt().catch(()=>{z.aborted||d("failed")}),()=>{w.abort(),T.replaceChildren();for(let j of C.values())M.URL.revokeObjectURL(j)}},[b,y,t,e,a,i]),(0,Ge.useEffect)(()=>{h.current&&Wf(h.current,n.fragment)?.scrollIntoView({block:"start"})},[n.fragment]),(0,Ge.useEffect)(()=>{s.current&&(s.current=!1,g.current?.focus({preventScroll:!0}))},[n.id]);function x(T){if(T.defaultPrevented||T.metaKey||T.ctrlKey||T.shiftKey||T.altKey)return;let M=T.target;if(!(M instanceof T.currentTarget.ownerDocument.defaultView.Element))return;let w=M.closest("a")?.getAttribute("href");if(!w)return;let z=g0(w,e.siteURL,t,n.id);if(!z)return;T.preventDefault();let C=w.startsWith("#")&&z.id===n.id&&h.current?Wf(h.current,z.fragment):null;s.current=T.detail===0&&z.id!==n.id,o(C?{...z,fragment:C.getAttribute("data-publication-fragment")??void 0}:z)}return(0,Ft.jsxs)("aside",{id:l,className:"kplex-publication-note","aria-labelledby":`${l}-heading`,children:[(0,Ft.jsxs)("header",{className:"kplex-publication-sidecar-heading",children:[(0,Ft.jsx)("h2",{ref:g,id:`${l}-heading`,tabIndex:-1,children:y.title}),(0,Ft.jsxs)("div",{className:"kplex-publication-sidecar-actions",children:[c&&(0,Ft.jsx)("button",{type:"button",onClick:c,children:r==="right"?O.dockSidecarBottom:O.dockSidecarRight}),(0,Ft.jsx)("button",{type:"button",onClick:u,"aria-label":O.closeSidecar,children:"×"})]})]}),v==="loading"&&(0,Ft.jsx)("p",{role:"status",children:O.loadingNote}),v==="failed"&&(0,Ft.jsxs)("div",{role:"alert",children:[(0,Ft.jsx)("p",{children:O.noteUnavailable}),(0,Ft.jsx)("button",{type:"button",onClick:()=>S(T=>T+1),children:O.retry})]}),v==="unavailable"&&(0,Ft.jsx)("p",{children:O.noDocument}),(0,Ft.jsx)("div",{ref:h,className:"kplex-publication-note-content","aria-busy":v==="loading",onClick:x}),m>0&&(0,Ft.jsxs)("div",{role:"status",children:[(0,Ft.jsx)("p",{children:O.mediaUnavailable}),(0,Ft.jsx)("button",{type:"button",onClick:()=>S(T=>T+1),children:O.retry})]})]})}var cn=P(Re(),1);var $n=P(wt(),1),cx=736,J0=20;function sx({dock:t,sidecarId:e,size:n,minimum:l,maximum:a,onSize:i}){let u=(0,cn.useRef)(null),o=(0,cn.useRef)(null),r=t==="right";function c(d){return r?d.clientX:d.clientY}function h(d){i(Math.max(l,Math.min(a,Math.round(d))))}function g(d,m){o.current?.pointer===m&&(o.current=null,d.hasPointerCapture(m)&&d.releasePointerCapture(m))}(0,cn.useLayoutEffect)(()=>{let d=u.current;return()=>{d&&o.current&&g(d,o.current.pointer)}},[t]);function s(d){d.button!==0||o.current||(d.preventDefault(),d.currentTarget.focus({preventScroll:!0}),d.currentTarget.setPointerCapture(d.pointerId),o.current={pointer:d.pointerId,origin:c(d),size:n})}function f(d){let m=o.current;m?.pointer===d.pointerId&&h(m.size+m.origin-c(d))}function b(d){f(d),g(d.currentTarget,d.pointerId)}function S(d){g(d.currentTarget,d.pointerId)}function v(d){if(d.altKey||d.ctrlKey||d.metaKey)return;let m=r?"ArrowLeft":"ArrowUp",p=r?"ArrowRight":"ArrowDown",y=d.shiftKey?1:10,x;if(d.key==="Home")x=l;else if(d.key==="End")x=a;else if(d.key===m)x=n+y;else if(d.key===p)x=n-y;else return;d.preventDefault(),h(x)}return(0,$n.jsx)("div",{ref:u,className:"kplex-publication-divider",role:"separator",tabIndex:0,"aria-label":O.resizeSidecar,"aria-controls":e,"aria-orientation":r?"vertical":"horizontal","aria-valuemin":l,"aria-valuemax":a,"aria-valuenow":n,onPointerDown:s,onPointerMove:f,onPointerUp:b,onPointerCancel:S,onLostPointerCapture:S,onKeyDown:v})}function F0({canvas:t,sidecarId:e,sidecarOpen:n,renderSidecar:l}){let a=(0,cn.useRef)(null),[i,u]=(0,cn.useState)({width:0,height:0}),[o,r]=(0,cn.useState)("right"),[c,h]=(0,cn.useState)({}),g=i.width>=cx,s=g?o:"bottom",f=s==="right",b=f?i.width:i.height,S=Math.max(0,b-(f?260:160)-J0),v=Math.min(S,f?240:120),d=c[s]??Math.round(b*(f?.34:.43)),m=Math.max(v,Math.min(S,d)),p=n?{"--kplex-publication-sidecar-size":`${m}px`,"--kplex-publication-divider-size":`${J0}px`}:void 0;(0,cn.useLayoutEffect)(()=>{let T=a.current,M=T?.ownerDocument.defaultView;if(!T||!M)return;let w=T;function z(){let $=w.clientWidth,pt=w.clientHeight;u(j=>j.width===$&&j.height===pt?j:{width:$,height:pt})}let C=new M.ResizeObserver(z);return C.observe(T),z(),()=>C.disconnect()},[]);function y(T){h(M=>M[s]===T?M:{...M,[s]:T})}function x(){r(s==="right"?"bottom":"right")}return(0,$n.jsxs)("div",{ref:a,className:`kplex-publication-workspace${n?" is-sidecar-open":""}`,"data-sidecar-dock":n?s:void 0,style:p,children:[t,n?(0,$n.jsxs)($n.Fragment,{children:[(0,$n.jsx)(sx,{dock:s,sidecarId:e,size:m,minimum:v,maximum:S,onSize:y}),l(s,g?x:void 0)]}):(0,$n.jsx)("div",{id:e,hidden:!0})]})}function wr(t,e,n){let l=n/2;switch(e){case"top":return{x:t.x,y:t.y-t.height/2-3-l};case"bottom":return{x:t.x,y:t.y+t.height/2+3+l};case"left":return{x:t.x-t.width/2-3-l,y:t.y};case"right":return{x:t.x+t.width/2+3+l,y:t.y}}}function I0(t){switch(t){case"top":return{x:0,y:-1};case"bottom":return{x:0,y:1};case"left":return{x:-1,y:0};case"right":return{x:1,y:0}}}function fx(t,e,n,l,a){let i=1-a,u=i*i,o=a*a;return{x:u*i*t.x+3*u*a*e.x+3*i*o*n.x+o*a*l.x,y:u*i*t.y+3*u*a*e.y+3*i*o*n.y+o*a*l.y}}function td(t,e,n,l,a){if(a==="straight")return{d:`M ${t.x} ${t.y} L ${e.x} ${e.y}`,midpoint:{x:(t.x+e.x)/2,y:(t.y+e.y)/2}};let i=Math.hypot(e.x-t.x,e.y-t.y),u=Math.max(20,Math.min(108,i*.2)),o=I0(n),r=I0(l),c={x:t.x+o.x*u,y:t.y+o.y*u},h={x:e.x+r.x*u,y:e.y+r.y*u};return{d:`M ${t.x} ${t.y} C ${c.x} ${c.y}, ${h.x} ${h.y}, ${e.x} ${e.y}`,midpoint:fx(t,c,h,e,.5)}}var ed=["parent","child","left","right","previous","next"];function $0(t,e,n,l){let a=e.neighbours(t,"parent").slice(0,n),i=e.neighbours(t,"child").slice(0,n),u=[...e.neighbours(t,"left"),...e.neighbours(t,"previous")].slice(0,n),o=[...e.neighbours(t,"right"),...e.neighbours(t,"next")].slice(0,n),r=new Set([e.identity(t),...[...a,...i,...u,...o].map(g=>e.identity(g.page))]),c=new Map([...a,...i,...u,...o].map(g=>[e.identity(g.page),g.page])),h=new Map;if(l)for(let g of c.values())for(let s of ed)for(let f of e.neighbours(g,s)){let b=e.identity(f.page);if(r.has(b))continue;let S=h.get(b);(!S||S.relationType!==1)&&h.set(b,{...f,role:"sibling"})}return{center:t,parents:a,children:i,leftFriends:u,rightFriends:o,siblings:e.sort([...h.values()]).slice(0,n)}}var _l=(t,e,n)=>Math.max(e,Math.min(n,t));function nb(t){return t.horizontalCompactingFactor??t.compactingFactor}function dx(t){let e=t.compactView?.82:1;return{horizontal:_l(1.35/nb(t),.38,1.35)*e,vertical:_l(1.35/t.compactingFactor,.38,1.35)*e,spacing:_l(t.minLinkLength/18,.72,1.7)}}function W0(t,e){return Math.max(1,Math.min(e==="parent"?3:7,Math.round(e==="parent"?t.parentColumns:t.childColumns)))}function zr(t){return _l(t.siblingRelativeSize/100,.3,.85)}function tb(t,e){let n=_l(nb(t),.75,4);return n>=3?-e*.05*(n-3):48*(3-n)*_l(t.minLinkLength/18,.72,1.7)*(t.compactView?.82:1)}function Rr(t,e,n=0){return Math.max(e,...t.map(l=>Math.abs(l.x-n)+l.width/2+24))}function Ar(t,e,n=0){return Math.max(e,...t.map(l=>Math.abs(l.x-n)+l.width/2))}function sn(t,e,n=!1){let l=[...t];for(let a of t){let i=e.mini(a,n);i&&l.push({...a,width:i.width,height:i.viewportHeight,y:a.y+a.height/2+i.topGap+i.viewportHeight/2})}return l}function eb(t,e,n,l,a,i,u){let o=t;if(!o.length)return o;let r=[];for(let s=0;s<o.length;s+=l){let f=o.slice(s,s+l);r.push({nodes:f,height:Math.max(...f.map(b=>b.height)),reserve:Math.max(0,...f.map(b=>u.reserve(b)))})}let c=e,h=r[0].height,g=r[0].reserve;return r.forEach((s,f)=>{let b;if(f===0){let m=Math.max(0,s.height-26)/2;b=n===-1?e-s.reserve-m:e+m}else n===1?b=c+h/2+g+i+s.height/2:b=c-h/2-i-s.reserve-s.height/2;let S=s.nodes.map(m=>u.width(m)),d=-(S.reduce((m,p)=>m+p,0)+a*Math.max(0,s.nodes.length-1))/2;s.nodes.forEach((m,p)=>{let y=S[p];m.x=d+y/2,m.y=b,d+=y+a}),c=b,h=s.height,g=s.reserve}),o}function nd(t,e,n,l){let a=t;return lb(a,e,n,l),a}function lb(t,e,n,l){if(!t.length)return;let a=t.map(c=>l.verticalReserve(c));t[0].x=e,t[0].y=0;for(let c=1;c<t.length;c+=1){let h=t[c-1],g=t[c];g.x=e,g.y=h.y+h.height/2+a[c-1]+n+g.height/2}let i=t[0].y-t[0].height/2,u=t.length-1,o=t[u].y+t[u].height/2+a[u],r=-(i+o)/2;for(let c of t)c.y+=r}function ld(t,e,n,l,a="center"){if(!t.length)return;let i=Math.min(...t.map(g=>g.y-g.height/2)),o=Math.max(...t.map(g=>g.y+g.height/2+l.verticalReserve(g)))-i,r=Math.max(1,n-e),h=(o>r?e:a==="midline"?_l(i,e,n-o):a==="bottom"?n-o:a==="top"?e:e+(r-o)/2)-i;for(let g of t)g.y+=h}function Ru(t,e,n,l,a,i,u){let c=a.centerX-a.width/2,h=a.centerX+a.width/2,g=a.fixedEdgeY,s=a.fixedEdgeY;e.length&&(c=Math.min(c,...e.map(S=>S.x-S.width/2-24)),h=Math.max(h,...e.map(S=>S.x+S.width/2+24)),g=Math.min(...e.map(S=>S.y-S.height/2)),s=Math.max(...e.map(S=>S.y+S.height/2)));let f=u!==void 0&&i!==void 0?Math.max(72,i-u):Math.max(72,n),b=u!==void 0&&i!==void 0?u:l==="top"?(e.length?s+16:a.fixedEdgeY)-f:e.length?g-16:a.fixedEdgeY;return{key:t,left:c,top:b,width:h-c,height:f,resizeEdge:l}}function Au(t,e,n,l,a,i){if(!e.length)return null;let u=24,o=16,r=Math.min(...e.map(p=>p.x-p.width/2)),c=Math.max(...e.map(p=>p.x+p.width/2)),h=Math.min(...e.map(p=>p.y-p.height/2)),g=Math.max(...e.map(p=>p.y+p.height/2)),s=h-o,f=g+o,b=f-s,S=i!==void 0&&a!==void 0?Math.max(72,a-i):a===void 0?Number.POSITIVE_INFINITY:Math.max(72,a-s),v=Math.min(b,Math.max(72,n),S);if(b<=v+.5)return null;let d=s,m=0;return i!==void 0&&a!==void 0?(d=i,m=Math.max(0,d-s)):a!==void 0?(d=a-v,m=Math.max(0,d-s)):(l==="bottom"?d=f-v:l==="center"&&(d=_l(-v/2,s,f-v)),m=Math.max(0,d-s)),{key:t,left:r-u,top:d,width:c-r+u*2,height:v,contentTop:s,contentHeight:b,initialScrollTop:m}}function ab(t,e,n,l=!1){let a=R=>Math.max(0,...R.filter(B=>B.editor).map(B=>B.height+72));[...t.parents,...t.children,...t.leftFriends,...t.rightFriends,...t.siblings].some(R=>R.editor)&&(e={...e,parentMaxHeight:Math.max(e.parentMaxHeight,a(t.parents)),childMaxHeight:Math.max(e.childMaxHeight,a(t.children)),friendMaxHeight:Math.max(e.friendMaxHeight,a([...t.leftFriends,...t.rightFriends])),siblingMaxHeight:Math.max(e.siblingMaxHeight,a(t.siblings))});let i=t.center,{horizontal:u,vertical:o,spacing:r}=dx(e),c=50*u*r,h=36*o*r,g=66*o*r,s=18*o*r,f=26,b=-(i.height/2+f/2+g),S=Math.max(42,52*o*r),v=i.height/2+f/2+g+S,d=eb(t.parents,b,-1,W0(e,"parent"),c,h,n),m=eb(t.children,v,1,W0(e,"child"),c,h,n),p=i.width/2,y=p+205*u*r,x=nd(t.leftFriends,-y,s,n),T=e.lateralArrangement==="left",M=nd(t.rightFriends,T?-y:y,s,n),w=T?[...x,...M]:x;T&&lb(w,-y,s,n);let z=!T&&M.length>0,C=z?Math.max(...M.map(R=>R.x+R.width/2)):p,$=z?285:205,pt=z?190:120,j=Math.max(y+$*u*r,C+pt*u*r),xt=nd(t.siblings,j,s,n),Ut=m.length?Math.min(...m.map(R=>R.y-R.height/2)):i.height/2+g+S+12,ot=Math.max(30,36*o*r),Y=Math.max(120,e.friendMaxHeight),W=Math.max(120,e.siblingMaxHeight),vt=l?T?Math.min(Y/2,Ut-ot):Y/2:Ut-ot,Ye=vt-Y,zn=Ye,Z=vt,$e=Ye,qt=vt;ld(w,zn,Z,n,"midline"),T||ld(M,$e,qt,n,"midline");let me=Math.max(58,72*o*r),J=l?W/2:vt-me,ae=l?-W/2:J-W;ld(xt,ae,J,n,l?"midline":"center");let Wn=sn(d,n,!0),It=sn(xt,n,!0),$t=d.length?Rr(Wn,i.width/2+24):170,Wt=Ar(Wn,i.width/2),he=Math.max(Rr(sn(x,n,!0),115,-y),Rr(sn(M,n,!0),115,T?-y:y)),qe=Math.max(Ar(sn(x,n,!0),0,-y),Ar(sn(M,n,!0),0,T?-y:y)),Cn=Rr(It,110,j),ge=Ar(It,0,j),On=T?Math.max(0,tb(e,$t*2)):tb(e,$t*2);d.length&&(y=$t+he+On),y=Math.max(y,Wt+qe+4);for(let R of x)R.x=-y;for(let R of M)R.x=T?-y:y;(d.length||z)&&(j=z?y+he+Cn+Math.max(0,On):$t+Cn+On),j=Math.max(j,Wt+ge+4,z?y+qe+ge+4:0);for(let R of xt)R.x=j;let fn=sn(d,n),pe=sn(m,n),Dn=sn(w,n),dn=sn(T?[]:M,n),Hl=sn(xt,n),F={},ye=Au("parent",fn,e.parentMaxHeight,"bottom"),ie=Au("child",pe,e.childMaxHeight,"top"),St=Au("left",Dn,e.friendMaxHeight,"top",Z,zn),_n=Au("right",dn,e.friendMaxHeight,"top",qt,$e),We=Au("sibling",Hl,e.siblingMaxHeight,"top",J,ae);ye&&(ye.left=-$t,ye.width=$t*2,F.parent=ye),ie&&(F.child=ie),St&&(F.left=St),_n&&(F.right=_n),We&&(F.sibling=We);let ue={},Ll=b+f/2+16,fa=v-f/2-16;ue.parent=Ru("parent",fn,e.parentMaxHeight,"top",{centerX:0,width:$t*2,fixedEdgeY:Ll}),ue.child=Ru("child",pe,e.childMaxHeight,"bottom",{centerX:0,width:440,fixedEdgeY:fa}),ue.left=Ru("left",Dn,e.friendMaxHeight,"top",{centerX:-y,width:he*2,fixedEdgeY:Z},Z,zn),T||(ue.right=Ru("right",dn,e.friendMaxHeight,"top",{centerX:y,width:he*2,fixedEdgeY:qt},qt,$e)),ue.sibling=Ru("sibling",Hl,e.siblingMaxHeight,"top",{centerX:j,width:Cn*2,fixedEdgeY:J},J,ae);let E=[i,...d,...m,...x,...M,...xt];return e.flipEastWest&&mx(E,ue,F),{nodes:E,zoneViewports:F,zoneAreas:ue}}function mx(t,e,n){for(let l of t)l.x=-l.x;for(let l of Object.values(e))l&&(l.left=-l.left-l.width);for(let l of Object.values(n))l&&(l.left=-l.left-l.width)}var ib={version:1,fields:{flipEastWest:{defaultValue:!1,validate:t=>typeof t=="boolean"}}};function Cr(t){return t?.status!=="unavailable"&&t?.values.flipEastWest===!0}function Or(t){return{top:"parent",bottom:"child",left:t?"right":"left",right:t?"left":"right"}}function ub(t,e=!1){return t==="parent"?{source:"top",target:"bottom"}:t==="child"?{source:"bottom",target:"top"}:(t==="left"||t==="previous")!==e?{source:"left",target:"right"}:{source:"right",target:"left"}}var hx={parent:"graph.zoneParents",child:"graph.zoneChildren",left:"graph.zoneFriendsPrevious",right:"graph.zoneChallengersNext",sibling:"graph.zoneSiblings"};var gx={parent:{key:"parentMaxHeight",min:140,max:800},child:{key:"childMaxHeight",min:160,max:900},left:{key:"friendMaxHeight",min:140,max:800},right:{key:"friendMaxHeight",min:140,max:800},sibling:{key:"siblingMaxHeight",min:120,max:700}};function px(t){if(!t||typeof t!="object"||!["compactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"].every(a=>{let i=Reflect.get(t,a);return typeof i=="number"&&Number.isFinite(i)}))return!1;let n=Reflect.get(t,"horizontalCompactingFactor"),l=Reflect.get(t,"lateralArrangement");return typeof Reflect.get(t,"compactView")=="boolean"&&(n===void 0||typeof n=="number"&&Number.isFinite(n))&&(l===void 0||l==="left"||l==="split")}var ad={sectionSource:"attention",editorHosting:"occurrence",id:"classic",version:1,labelKey:"view.classic",icon:"brain-circuit",configuration:ib,capabilities:{sections:!0,descendants:!0,editor:!0,compact:!1},defaultState:null,restoreState:()=>null,project(t){let e=t.read.node(t.attention);if(!e||!t.read.isCurrent())return null;let n=!1,l=new Map,a=(h,g)=>{let s=JSON.stringify([h.id,g]),f=l.get(s)??t.read.relations(h.id,g);return l.set(s,f),n||=f.truncated||f.coverage==="unavailable",f.items.map(b=>({page:b.node,role:b.role,relationType:b.relationType,value:b}))},i=$0(e,{identity:h=>h.id,neighbours:a,sort:h=>h.sort((g,s)=>t.read.compare(g.page,s.page))},t.maximum,!t.state||typeof t.state!="object"||Reflect.get(t.state,"renderSiblings")!==!1),u=Cr(t.configuration),o=[{id:"attention",nodeId:e.id,representation:"thought",...u?{ports:Or(!0)}:{}}],r=[],c=(h,g)=>h.forEach((s,f)=>{let b=JSON.stringify([g,s.page.id,f]),S=ub(g,Cr(t.configuration));o.push({id:b,nodeId:s.page.id,role:g,areaId:g,representation:"thought",relation:s.value,groupingPartition:g,...u?{ports:Or(!0)}:{}}),g!=="sibling"&&r.push({id:b,kind:"semantic",source:"attention",target:b,sourceNode:e.id,targetNode:s.page.id,sourcePort:S.source,targetPort:S.target,relation:s.value})});c(i.parents,"parent"),c(i.children,"child"),c(i.leftFriends,"left"),c(i.rightFriends,"right"),c(i.siblings,"sibling");for(let h of o.filter(g=>g.role&&g.role!=="sibling")){if(!h.nodeId)continue;let g=t.read.node(h.nodeId);if(!g)continue;let s=ed.flatMap(f=>a(g,f));for(let f of o.filter(b=>b.role==="sibling")){let b=s.find(v=>v.page.id===f.nodeId),S=b?ub(b.role,u):null;b&&S&&r.push({id:JSON.stringify([h.id,f.id]),kind:"semantic",source:h.id,target:f.id,sourceNode:h.nodeId,targetNode:b.page.id,sourcePort:S.source,targetPort:S.target,relation:b.value})}}return{attention:e.id,layoutRoot:e.id,entry:"attention",editor:"attention",frame:"attention",occurrences:o,edges:r,truncated:n||[i.parents,i.children,i.leftFriends,i.rightFriends,i.siblings].some(h=>h.length===t.maximum),coverage:t.read.coverage}},layout(t,e,n,l,a){if(!px(n))throw new Error("Missing Classic geometry preferences");let i={...n,flipEastWest:n.flipEastWest??Cr(a?.configuration)},u=new Map(e.map(s=>[s.id,s])),o=t.occurrences.map(s=>{let f=u.get(s.id);if(!f)throw new Error("Missing occurrence measurement");return{...f,x:0,y:0,role:s.role??"center",areaId:s.areaId}}),r=o.find(s=>s.id===t.entry);if(!r)throw new Error("Missing Classic attention occurrence");let c=s=>o.filter(f=>f.areaId===s),h=ab({center:r,parents:c("parent"),children:c("child"),leftFriends:c("left"),rightFriends:c("right"),siblings:c("sibling")},i,{reserve:s=>s.expandedReserve,verticalReserve:s=>s.expandedReserve*(s.role==="sibling"?zr(i):1),width:s=>s.expandedWidth,mini:(s,f)=>s[f?"envelope":"mini"]},l),g=Object.values(h.zoneAreas).map(s=>{let f=gx[s.key];return{id:s.key,labelKey:hx[s.key],bounds:{x:s.left,y:s.top,width:s.width,height:s.height},resizeEdge:s.resizeEdge,heightPreference:{key:f.key,minimum:f.min,maximum:f.max},...s.key==="sibling"?{}:{dropRole:s.key},...h.zoneViewports[s.key]?{viewport:{...h.zoneViewports[s.key],x:h.zoneViewports[s.key].left,y:h.zoneViewports[s.key].top}}:{}}});return{positions:new Map(h.nodes.map(s=>[s.id,{x:s.x,y:s.y,width:s.width,height:s.height}])),areas:g}}};var yx={compactingFactor:2,horizontalCompactingFactor:2,compactView:!1,minLinkLength:18,parentColumns:2,childColumns:5,siblingRelativeSize:85,parentMaxHeight:300,childMaxHeight:400,friendMaxHeight:350,siblingMaxHeight:250},id={baseFontSize:12.4,wrapNodeLabels:!1,propertyFontSize:10};function rb(t,e,n=!0){let{read:l}=t,a=t.manifest?.appearance,i=a?.flip??!1,u={...yx,...a?.geometry,flipEastWest:i},o={baseFontSize:a?.typography?.baseFontSize??id.baseFontSize,wrapNodeLabels:a?.typography?.wrapNodeLabels??id.wrapNodeLabels,propertyFontSize:a?.typography?.propertyFontSize??id.propertyFontSize},r=Or(i),c=ad.project({attention:e,read:l,maximum:a?.maximum??100,state:{renderSiblings:n},configuration:{status:"available",values:{flipEastWest:i}}});if(!c)throw new Error("Publication attention is unavailable");let h=c.occurrences.map(v=>{let d=v.nodeId&&l.node(v.nodeId);if(!d)throw new Error("Publication occurrence is unavailable");let m=v.id===c.entry,p=v.role==="sibling",y=p?zr(u):1,x=t.published.get(d.id),T=x?.roleStyles,M=v.relation?.relationType===2?T?.inferred:void 0,w=m?T?.center:p?T?.sibling:void 0,z={...x?.style,...M,...w},C=w?.fontSize??M?.fontSize??x?.style?.fontSize??(m?30:p?15:20),$=w?.gateRadius??M?.gateRadius??x?.style?.gateRadius??5,pt=Eu(C*y,m,o.baseFontSize),j=Wy(d.name,C,o,m,d.maxLabelLength),xt=t0(j,y,C*y,o);return{occurrence:v,node:d,center:m,fontSize:pt,style:z,gateSize:Fy({gateRadius:$*y}),measurement:{id:v.id,...xt,expandedWidth:xt.width,expandedReserve:0,mini:null,envelope:null}}}),g=ad.layout(c,h.map(v=>v.measurement),u,!1),s=h.map(({occurrence:v,node:d,center:m,fontSize:p,gateSize:y,style:x})=>({id:v.id,node:d,center:m,fontSize:p,gateSize:y,style:x,role:v.role??"center",bounds:g.positions.get(v.id),gates:Object.keys(r).map(T=>{let M=r[T],w=M==="left"?"previous":M==="right"?"next":null,z=l.relations(d.id,M).items,C=w?new Set([...z,...l.relations(d.id,w).items].map($=>$.node.id)).size:z.length;return{side:T,count:C}})})),f=new Map(s.map(v=>[v.id,v])),b=g.areas.find(v=>v.id==="sibling")?.viewport,S=c.edges.map(v=>{let d=f.get(v.source),m=f.get(v.target),p=td(wr(d.bounds,v.sourcePort,d.gateSize),wr(m.bounds,v.targetPort,m.gateSize),v.sourcePort,v.targetPort,"bezier"),y=v.kind==="semantic"?v.relation.direction:null,x=v.kind==="semantic"?v.relation.definition??null:null,T=v.kind==="semantic"?t.linkStyle(v.sourceNode,v.targetNode,v.relation.role):void 0;return{id:v.id,source:v.source,target:v.target,route:p,label:x,sourcePort:v.sourcePort,targetPort:v.targetPort,stroke:T?.stroke,strokeWidth:T?.width,startHead:T?.startHead??(T?.arrowStart??(y===2||y===3)?"arrow":void 0),endHead:T?.endHead??(T?.arrowEnd??(y===1||y===3)?"arrow":void 0)}});return{cards:s,cardById:f,edges:S,siblingViewport:b,wrap:o.wrapNodeLabels,truncated:c.truncated}}function ob(t,e,n,l){let a=wr(t.bounds,e,t.gateSize);if(t.role!=="sibling")return a;let i=a.y+n.y-n.contentTop-l;return i>=n.y&&i<=n.y+n.height?{...a,y:i}:null}function cb(t,e,n){let l=t.siblingViewport;if(!l)return e.route;let a=t.cardById.get(e.source),i=t.cardById.get(e.target);if(a.role!=="sibling"&&i.role!=="sibling")return e.route;let u=ob(a,e.sourcePort,l,n),o=ob(i,e.targetPort,l,n);return u&&o?td(u,o,e.sourcePort,e.targetPort,"bezier"):null}var bx=new Map([...["background-primary","background-secondary","background-modifier-border","background-modifier-hover","text-normal","text-muted","text-faint","interactive-accent","interactive-normal","interactive-hover","text-on-accent","kplex-publication-panel","kplex-publication-link","kplex-publication-canvas","link-color","link-color-hover","link-external-color","code-background","code-normal","blockquote-border-color","blockquote-color","table-border-color","table-header-background","text-highlight-bg","color-red","color-green","color-orange","color-blue","color-cyan","color-purple"].map(t=>[t,"color"]),...["font-interface","font-text","font-monospace","inline-title-font"].map(t=>[t,"font"]),...["font-ui-medium","font-text-size","p-spacing","heading-spacing","inline-title-size","input-radius","button-radius","callout-radius"].map(t=>[t,"length"]),["line-height-normal","line-height"],["inline-title-weight","weight"],["inline-title-color","color"],...[1,2,3,4,5,6].flatMap(t=>[["h"+t+"-color","color"],["h"+t+"-size","length"],["h"+t+"-weight","weight"],["h"+t+"-font","font"],["h"+t+"-line-height","line-height"],["h"+t+"-style","font-style"]])]),vx=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","-apple-system"]),Sx=new Set(["inherit","initial","revert","revert-layer","unset","default"]);function Ex(t){let e=t.split(",");if(!e.length||e.length>10)return;let n=[];for(let l of e){let a=l.trim(),i=/^(['"])(.*?)\1$/u.exec(a),u=i?.[2]??a;if(!/^[\p{L}\p{N}][\p{L}\p{M}\p{N} _.-]{0,79}$/u.test(u)&&u!=="-apple-system"||Sx.has(u.toLowerCase()))return;n.push(!i&&vx.has(u.toLowerCase())?u.toLowerCase():JSON.stringify(u))}return n.join(", ")}function sb(t){if(t==="0")return t;let e=/^(\d{1,3}(?:\.\d{1,4})?|\.\d{1,4})(px|rem|em)$/.exec(t);if(!e)return;let n=Number(e[1]),l=e[2];return n<=(l==="px"?160:8)?String(n)+l:void 0}function fb(t,e){let n=e.trim();if(!(!n||n.length>320))switch(bx.get(t)){case"color":return/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(n)?n.toLowerCase():void 0;case"font":return Ex(n);case"length":return sb(n);case"line-height":return/^(?:[1-3](?:\.\d{1,4})?|0\.[5-9]\d{0,3}|4(?:\.0{1,4})?)$/.test(n)?String(Number(n)):sb(n);case"weight":return n==="normal"||n==="bold"||/^(?:[1-9]\d{0,2}|1000)$/.test(n)?n:void 0;case"font-style":return/^(?:normal|italic|oblique)$/.test(n)?n:void 0;default:return}}var ud=/\s*(?:\.kplex-publication\s*\{([^{}]*)\}|@media\s*\(\s*prefers-color-scheme:\s*(light|dark)\s*\)\s*\{\s*\.kplex-publication\s*\{([^{}]*)\}\s*\})\s*/yu;function db(t){if(!t.length||t.length>16*1024)throw new Error("Unsupported publication theme");let e={},n=new Set,l=0;for(;l<t.length;){ud.lastIndex=l;let a=ud.exec(t);if(!a)throw new Error("Unsupported publication theme");l=ud.lastIndex;let i=(a[1]??a[3]).split(";").map(r=>r.trim()).filter(Boolean),u=i.filter(r=>r.startsWith("color-scheme"));if(u.length){let r=/^color-scheme\s*:\s*(light|dark)$/.exec(u[0])?.[1];if(!r||u.length!==1||a[2]||n.has("author"))throw new Error("Unsupported publication mode");e.colorScheme=r}let o=u.length?"author":a[2]??"light";if(n.has(o))throw new Error("Duplicate publication theme mode");n.add(o);for(let r of i){if(r===u[0])continue;let c=/^--([a-z][a-z0-9-]*)\s*:\s*(.+)$/u.exec(r),h=c&&fb(c[1],c[2]);if(!c||h===void 0||h===null)throw new Error("Unsupported publication theme token");e["--kplex-published-"+o+"-"+c[1]]=h}}return e}function mb(t,e){let n=`--kplex-published-${e}-`,l={colorScheme:e};for(let[a,i]of Object.entries(t??{}))a.startsWith(n)&&typeof i=="string"&&(l["--kplex-published-author-"+a.slice(n.length)]=i);return l}var D=P(wt(),1),hb={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},od={back:"Alt+ArrowLeft",forward:"Alt+ArrowRight",sidecar:"Alt+Shift+S"};function rd(t,e){let n=e.ownerDocument.defaultView?.Element;return!!(n&&t.target instanceof n&&t.target.closest("[data-publication-sibling-scroll]"))}function gb(t,e){return e?{x:(t.x+e.x)/2,y:(t.y+e.y)/2,distance:Math.max(1,Math.hypot(t.x-e.x,t.y-e.y))}:{...t,distance:1}}function pb({publication:t,markerPrefix:e,resources:n,browser:l}){let a=(0,K.useRef)(null),i=(0,K.useRef)(null),u=w0(a,i),o=y0(t,l,u.capture),r=o.attention.id,[c,h]=(0,K.useState)(!0),g=(0,K.useMemo)(()=>rb(t,r,c),[t,r,c]),s=g.cards.find(E=>E.center),f=g.siblingViewport,b=(0,K.useRef)(null),[S,v]=(0,K.useState)(0),d=(0,K.useRef)(null),m=(0,K.useRef)({x:0,y:0,scale:1}),p=(0,K.useRef)(!1),y=(0,K.useRef)({points:new Map,origin:null,moved:!1}),x=(0,K.useRef)(!1),T=(0,K.useId)(),M=(0,K.useRef)(null),[w,z]=(0,K.useState)(!0),[C,$]=(0,K.useState)(0),[pt,j]=(0,K.useState)(null),[xt,Ut]=(0,K.useState)(!1),ot=(0,K.useRef)(()=>{}),Y=(0,K.useRef)(null),[W,vt]=(0,K.useState)(),[Ye,zn]=(0,K.useState)(!1),[Z,$e]=(0,K.useState)("light"),[qt,me]=(0,K.useState)(),J=t.manifest?.colorMode,ae=t.manifest?.pins,Wn=W?.colorScheme==="dark"?"dark":W?.colorScheme==="light"?"light":void 0,It=J==="both"?qt??Z:J??Wn??Z;ot.current=E=>{if(E.defaultPrevented||E.isComposing||E.ctrlKey||E.metaKey)return;if(n&&E.key===vu.key&&!E.altKey&&!E.shiftKey){E.preventDefault(),E.repeat||$(B=>B+1);return}let R=E.target;!E.altKey||R?.isContentEditable||R?.closest?.("input,textarea,select")||(n&&E.shiftKey&&(E.code==="KeyS"||E.key.toLowerCase()==="s")?(E.preventDefault(),E.repeat||z(B=>!B)):!E.shiftKey&&(E.key==="ArrowLeft"||E.key==="ArrowRight")&&(E.preventDefault(),E.repeat||o.move(E.key==="ArrowLeft"?-1:1)))},(0,K.useEffect)(()=>{if(!l)return;let E=R=>ot.current(R);return l.addEventListener("keydown",E),()=>l.removeEventListener("keydown",E)},[l]),(0,K.useLayoutEffect)(()=>{let E=Y.current;E&&(E.scrollLeft=E.scrollWidth)},[o.visits]),(0,K.useEffect)(()=>{let E=a.current?.ownerDocument.defaultView?.matchMedia("(prefers-color-scheme: dark)");if(!E)return;let R=()=>$e(E.matches?"dark":"light");return R(),E.addEventListener("change",R),()=>E.removeEventListener("change",R)},[]),(0,K.useLayoutEffect)(()=>{let E=b.current;!E||!f||(E.scrollTop=f.initialScrollTop,v(E.scrollTop))},[f]),(0,K.useEffect)(()=>{let E=a.current?.ownerDocument.defaultView;if(!E||!n?.has(Xf))return;let R=new E.AbortController,B=R.signal;return n.text(Xf,B).then(_=>{B.aborted||vt(db(_))}).catch(()=>{B.aborted||zn(!0)}),()=>R.abort()},[n]);function $t(E){m.current=E,d.current&&(d.current.style.transform=`translate(${E.x}px, ${E.y}px) scale(${E.scale})`)}function Wt(){let E=a.current;if(!E)return;let R=0,B=0;for(let{bounds:k,role:Ot}of g.cards)Ot==="sibling"&&f||(R=Math.max(R,Math.abs(k.x-s.bounds.x)+k.width/2),B=Math.max(B,Math.abs(k.y-s.bounds.y)+k.height/2));f&&(R=Math.max(R,Math.abs(f.x+f.width/2-s.bounds.x)+f.width/2),B=Math.max(B,Math.abs(f.y+f.height/2-s.bounds.y)+f.height/2));let _=Math.max(.25,Math.min(1,(E.clientWidth/2-22)/R,(E.clientHeight/2-22)/B));p.current=!1,$t({x:-s.bounds.x*_,y:-s.bounds.y*_,scale:_})}function he(E,R,B){u.cancel();let{x:_,y:k,scale:Ot}=m.current,A=Math.max(.25,Math.min(3,Ot*B));p.current=!0,$t({x:R.x-(E.x-_)*A/Ot,y:R.y-(E.y-k)*A/Ot,scale:A})}function qe(E){he({x:0,y:0},{x:0,y:0},E)}function Cn(E,R,B){let _=E.getBoundingClientRect();return{x:R-_.left-_.width/2,y:B-_.top-_.height/2}}(0,K.useLayoutEffect)(()=>{let E=a.current;if(!E)return;Wt(),u.play(r,m.current.scale),x.current&&(E.querySelector("[data-publication-center]")?.focus({preventScroll:!0}),x.current=!1);let R=k=>{if(rd(k,E))return;k.preventDefault();let Ot=Cn(E,k.clientX,k.clientY),A=k.deltaY*(k.deltaMode===1?16:k.deltaMode===2?E.clientHeight:1);he(Ot,Ot,Math.exp(-Math.max(-200,Math.min(200,A))/350))},B=E.ownerDocument.defaultView,_=B?new B.ResizeObserver(()=>{p.current||Wt()}):null;return _?.observe(E),E.addEventListener("wheel",R,{passive:!1}),()=>{_?.disconnect(),E.removeEventListener("wheel",R)}},[g]);function ge(E,R){o.activate({id:E})&&E!==r&&(x.current=R)}function On(){z(!1),M.current?.focus()}function fn(E){o.activate(E)}function pe(){let E=l?.location.href??(n&&new URL("index.html",n.siteURL).href);if(!E)throw new Error("Publication address unavailable");let R=new URL(E);return R.search="",R.hash="",R}function Dn(E,R){Ut(!1),j({id:E,anchor:R})}function dn(E,R,B=!1){return(0,D.jsxs)("nav",{className:`kplex-publication-trail ${B?"kplex-publication-history":"kplex-publication-pins"}`,"aria-label":R,children:[(0,D.jsx)("span",{children:R}),(0,D.jsx)("ol",{ref:B?Y:void 0,children:E.map(_=>(0,D.jsx)("li",{children:(0,D.jsx)("a",{href:Mu(pe(),_).href,"aria-current":_.id===r?"location":void 0,onClick:k=>{k.altKey||k.ctrlKey||k.metaKey||k.shiftKey||(k.preventDefault(),fn(_))},children:t.nodes.get(_.id)?.name})},_.id))})]})}function Hl(E){if(!E.altKey&&!(E.target===b.current&&!E.altKey&&["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(E.key))){if(E.key==="Home"||E.key==="0")u.cancel(),Wt();else if(E.key==="+"||E.key==="=")qe(1.25);else if(E.key==="-")qe(.8);else if(Object.prototype.hasOwnProperty.call(hb,E.key)){let[R,B]=hb[E.key],_=Array.from(E.currentTarget.querySelectorAll("[data-publication-node]")),k=_.find(Xt=>Xt===E.target)?.dataset.publicationOccurrence,Ot=k?g.cardById.get(k)??s:s,A=-1,L=1/0;for(let[Xt,we]of _.entries()){let Ul=g.cardById.get(we.dataset.publicationOccurrence).bounds,gi=Ul.x-Ot.bounds.x,da=Ul.y-Ot.bounds.y,Hn=gi*R+da*B,be=Hn+2*Math.abs(gi*B-da*R);Hn>0&&be<L&&(A=Xt,L=be)}let st=_[A];st?.focus({preventScroll:!b.current?.contains(st)})}else return;E.preventDefault()}}function F(E){if(E.button!==0||rd(E,E.currentTarget))return;let R=y.current;if(R.points.size>=2)return;let B={...Cn(E.currentTarget,E.clientX,E.clientY),id:E.pointerId};R.points.size===0&&(R.origin=B,R.moved=!1),R.points.set(E.pointerId,B)}function ye(E){let R=y.current;if(!R.points.has(E.pointerId))return;let[B,_]=R.points.values(),k=gb(B,_),Ot={...Cn(E.currentTarget,E.clientX,E.clientY),id:E.pointerId};R.points.set(E.pointerId,Ot);let[A,L]=R.points.values(),st=gb(A,L);if(!(!R.moved&&!L&&R.origin&&Math.hypot(Ot.x-R.origin.x,Ot.y-R.origin.y)<5)){if(R.moved)E.currentTarget.hasPointerCapture(E.pointerId)||E.currentTarget.setPointerCapture(E.pointerId);else{R.moved=!0;for(let Xt of R.points.keys())E.currentTarget.setPointerCapture(Xt)}he(k,st,st.distance/k.distance)}}function ie(E){y.current.points.delete(E.pointerId)}let St=t.body(r),_n=(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("button",{type:"button","data-publication-siblings-toggle":!0,"aria-pressed":c,onClick:()=>h(E=>!E),children:O.showSiblings}),(0,D.jsx)("button",{type:"button",onClick:()=>qe(.8),"aria-label":O.zoomOut,children:"−"}),(0,D.jsx)("button",{type:"button",onClick:()=>qe(1.25),"aria-label":O.zoomIn,children:"+"}),(0,D.jsx)("button",{type:"button",onClick:()=>{u.cancel(),Wt()},children:O.fit})]});function We(E,R=!1){let B=R&&f?{...E.bounds,x:E.bounds.x-f.x,y:E.bounds.y-f.contentTop}:E.bounds;return(0,D.jsxs)(a0,{bounds:B,semanticRole:E.role,"data-publication-node":E.node.id,"data-publication-occurrence":E.id,"data-publication-center":E.center||void 0,role:"button",tabIndex:0,"aria-label":E.node.name,"aria-current":E.center||void 0,style:{fontSize:E.fontSize,backgroundColor:E.style?.fill,borderColor:E.style?.stroke,color:E.style?.color,"--kplex-gate-size":`${E.gateSize}px`,"--kplex-gate-fill":E.style?.gate},onClick:_=>ge(E.node.id,_.detail===0),onContextMenu:_=>{n&&(_.preventDefault(),Dn(E.node.id,_.currentTarget))},onKeyDown:_=>{n&&(_.key==="ContextMenu"||_.shiftKey&&_.key==="F10")?(_.preventDefault(),Dn(E.node.id,_.currentTarget)):(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),ge(E.node.id,!0))},children:[(0,D.jsx)(u0,{wrap:g.wrap,children:(0,D.jsx)(i0,{label:E.node.name,maximum:E.node.maxLabelLength,center:E.center})}),E.gates.map(({side:_,count:k})=>(0,D.jsx)(o0,{side:_,connected:k>0,count:k?String(k):null,"aria-hidden":"true"},_))]},`${E.id}:${E.node.id}`)}let ue=(0,D.jsxs)("div",{ref:a,className:"kplex-publication-viewport",role:"group","aria-label":O.view,tabIndex:0,onKeyDown:Hl,onPointerDown:F,onPointerMove:ye,onPointerUp:ie,onPointerCancel:ie,onLostPointerCapture:ie,onPointerLeave:E=>{E.currentTarget.hasPointerCapture(E.pointerId)||ie(E)},onClickCapture:E=>{E.detail&&y.current.moved&&!rd(E,E.currentTarget)&&(E.stopPropagation(),y.current.moved=!1)},children:[(0,D.jsxs)("div",{className:"kplex-camera",ref:d,children:[(0,D.jsxs)("svg",{className:"kplex-links",width:"3200",height:"2400",viewBox:"-1600 -1200 3200 2400","aria-hidden":"true",children:[(0,D.jsx)(s0,{prefix:e}),g.edges.map(E=>{let R=cb(g,E,S);if(!R)return null;let{id:B,source:_,target:k,label:Ot,stroke:A,strokeWidth:L,startHead:st,endHead:Xt}=E;return(0,D.jsxs)("g",{className:"kplex-edge","data-publication-source":_,"data-publication-target":k,children:[(0,D.jsx)(r0,{d:R.d,stroke:A??"var(--kplex-publication-link)",strokeWidth:L??1.2,markerStart:Zf(st,e),markerEnd:Zf(Xt,e)}),(0,D.jsx)(c0,{label:Ot,midpoint:R.midpoint,color:"var(--text-muted)",background:"var(--background-primary)"})]},B)})]}),(0,D.jsx)("div",{className:"kplex-nodes",children:g.cards.map(E=>f&&E.role==="sibling"?null:We(E))}),f&&(0,D.jsx)("div",{className:"kplex-zone-panel",style:{left:f.x,top:f.y,width:f.width,height:f.height},children:(0,D.jsx)("div",{className:"kplex-zone-scroll kplex-publication-sibling-scroll","data-publication-sibling-scroll":!0,ref:b,role:"region","aria-label":O.siblings,tabIndex:0,onScroll:E=>{v(E.currentTarget.scrollTop)},children:(0,D.jsx)("div",{className:"kplex-zone-content",style:{height:f.contentHeight},children:g.cards.map(E=>E.role==="sibling"?We(E,!0):null)})})})]}),(0,D.jsx)("div",{className:"kplex-publication-exits",ref:i,"aria-hidden":"true"})]}),Ll=pt?d0(t,pt.id):void 0,fa=J==="both"?mb(W,It):J?{...W,colorScheme:It}:W;return(0,D.jsxs)("main",{className:`kplex-publication${n?" kplex-publication-production":""}`,style:fa,onKeyDown:l?void 0:E=>ot.current(E.nativeEvent),children:[(0,D.jsxs)("header",{className:"kplex-publication-header",children:[(0,D.jsxs)("div",{children:[(0,D.jsx)("h1",{children:t.title}),(0,D.jsx)("span",{children:O.view})]}),(0,D.jsxs)("div",{className:"kplex-publication-controls",children:[(0,D.jsx)("button",{type:"button",onClick:()=>o.move(-1),disabled:!o.canGoBack,"aria-label":O.back,"aria-keyshortcuts":od.back,title:O.backTooltip,children:"←"}),(0,D.jsx)("button",{type:"button",onClick:()=>o.move(1),disabled:!o.canGoForward,"aria-label":O.forward,"aria-keyshortcuts":od.forward,title:O.forwardTooltip,children:"→"}),n?(0,D.jsx)("button",{type:"button",ref:M,"aria-expanded":w,"aria-controls":`sidecar-${T}`,"aria-keyshortcuts":od.sidecar,title:w?O.hideSidecarTooltip:O.showSidecarTooltip,onClick:()=>z(E=>!E),children:w?O.hideSidecar:O.showSidecar}):_n,J==="both"&&(0,D.jsx)("button",{type:"button","aria-pressed":It==="dark",onClick:()=>me(It==="dark"?"light":"dark"),children:O.darkMode})]}),n&&(0,D.jsx)(V0,{publication:t,resources:n,page:pe,searchFocus:C,onChoose:fn}),n&&ae?.length?dn(ae.map(E=>({id:fi(E)})),O.pins):null]}),n?(0,D.jsx)(F0,{sidecarId:`sidecar-${T}`,sidecarOpen:w,canvas:(0,D.jsxs)("div",{className:"kplex-publication-canvas",children:[ue,(0,D.jsx)("div",{className:"kplex-publication-controls kplex-publication-camera-actions",children:_n}),(0,D.jsxs)("div",{className:"kplex-publication-status","aria-live":"polite",children:[o.addressProblem&&(0,D.jsx)("p",{children:o.addressProblem==="ambiguous"?O.ambiguousAddress:O.nodeUnavailable}),g.truncated&&(0,D.jsx)("p",{children:O.sceneLimited}),Ye&&(0,D.jsx)("p",{children:O.themeUnavailable}),xt&&(0,D.jsx)("p",{children:O.addressCopied})]})]}),renderSidecar:(E,R)=>(0,D.jsx)(Z0,{publication:t,resources:n,id:`sidecar-${T}`,contentScope:`${e}-document`,location:o.attention,colorMode:It,onClose:On,onNavigate:fn,dock:E,onSwitchDock:R})}):(0,D.jsxs)(D.Fragment,{children:[ue,(0,D.jsxs)("section",{className:"kplex-publication-note","aria-labelledby":T,"aria-live":"polite",children:[(0,D.jsx)("h2",{id:T,children:s.node.name}),St&&(0,D.jsx)("p",{children:St})]})]}),n&&o.visits.length>1&&dn(o.visits,O.history,!0),n&&pt&&(0,D.jsx)(x0,{anchor:pt.anchor,address:Mu(pe(),{id:pt.id}).href,shortAddress:Ll&&Mu(pe(),{id:pt.id},Ll).href,onDismiss:E=>{j(null),E&&pt.anchor.isConnected&&pt.anchor.focus({preventScroll:!0})},onCopied:()=>Ut(!0)},pt.id)]})}async function yb(t,e,n,l){let a=await t.fetch(e,{credentials:"omit",redirect:"error",signal:l}),i=a.body?.getReader();if(!a.ok||!i||Number(a.headers.get("Content-Length"))>n)throw await i?.cancel(),new Error("Publication resource unavailable");let u=[],o=0;try{for(;;){let h=await i.read();if(h.done)break;if(o+=h.value.byteLength,o>n)throw new Error("Publication resource exceeds its declared size");u.push(h.value)}}catch(h){throw await i.cancel().catch(()=>{}),h}finally{i.releaseLock()}let r=new Uint8Array(o),c=0;for(let h of u)r.set(h,c),c+=h.byteLength;return r}async function bb(t,e,n){return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(await yb(t,e,Zy,n)))}function vb(t,e,n,l,a){let i=new URL("./",e),u=new Map(n.resources.map(c=>[c.path,c])),o=new Set([...u.keys()].filter(c=>c.startsWith("assets/")));async function r(c,h){let g=u.get(c),s=new URL(c,i);if(!g||s.origin!==i.origin||s.pathname!==`${i.pathname}${c}`||!t.crypto.subtle)throw new Error("Publication resource unavailable");let f=l?await l(c,g.bytes,h):await yb(t,s,g.bytes,h);if(f.byteLength!==g.bytes)throw new Error("Publication resource size mismatch");let b=await t.crypto.subtle.digest("SHA-256",f);if(h.throwIfAborted(),Array.from(new Uint8Array(b),v=>v.toString(16).padStart(2,"0")).join("")!==g.sha256)throw new Error("Publication resource checksum mismatch");return f}return{siteURL:i,assetPaths:o,bytes:r,nodeAddress:a,has:c=>u.has(c),async text(c,h){return new TextDecoder("utf-8",{fatal:!0}).decode(await r(c,h))}}}var xb=P(wt(),1),cd=new WeakSet,xx=0;function Eb(t,e,n){return Tx(t,e,n,!0)}function Tx(t,e,n,l=!1,a){let i=t.ownerDocument.defaultView,u=new URL(n??"./publication.json",t.ownerDocument.baseURI),o=b=>{let S=m0(b);if(S.manifest&&(!i?.crypto.subtle||!a&&u.origin!==i.location.origin))throw new Error("Secure publication context unavailable");let v=S.manifest&&i?a?.(S.manifest)??vb(i,u,S.manifest):void 0;return{publication:S,resources:v}},r=o(e);if(cd.has(t))throw new Error("A publication is already mounted in this element");let c=`kplex-publication-${++xx}`,h=(0,Sb.createRoot)(t,{identifierPrefix:c});cd.add(t);let g=0,s=!1,f=({publication:b,resources:S})=>{l&&(t.ownerDocument.title=b.title),h.render((0,xb.jsx)(pb,{publication:b,markerPrefix:c,resources:S,browser:l&&S&&i?i:void 0},g++))};return f(r),{update(b){if(s)throw new Error("Publication mount has been disposed");f(o(b))},dispose(){if(!s){s=!0;try{h.unmount()}finally{cd.delete(t)}}}}}var sd=document.querySelector("[data-kplex-demo]");if(sd){{let t=sd.ownerDocument,e=t.createElement("style");e.textContent=`@scope (.kplex-publication) {
761
+ `+Gc+e+Wh}var Bc=!1;function Vc(e,t){if(!e||Bc)return"";Bc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(y){var s=y}Reflect.construct(e,[],p)}else{try{p.call()}catch(y){s=y}p=!1;try{var m=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),p=!0,new e}finally{p&&(m!==void 0?Object.defineProperty(e.prototype,"props",m):delete e.prototype.props)}}}else{try{throw Error()}catch(y){s=y}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(y){if(y&&s&&typeof y.stack=="string")return[y.stack,s.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),l=o[0],r=o[1];if(l&&r){var u=l.split(`
762
+ `),c=r.split(`
763
+ `);for(a=i=0;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(i===u.length||a===c.length)for(i=u.length-1,a=c.length-1;1<=i&&0<=a&&u[i]!==c[a];)a--;for(;1<=i&&0<=a;i--,a--)if(u[i]!==c[a]){if(i!==1||a!==1)do if(i--,a--,0>a||u[i]!==c[a]){var f=`
764
+ `+u[i].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=i&&0<=a);break}}}finally{Bc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?wi(n):""}function D1(e,t){switch(e.tag){case 26:case 27:case 5:return wi(e.type);case 16:return wi("Lazy");case 13:return e.child!==t&&t!==null?wi("Suspense Fallback"):wi("Suspense");case 19:return wi("SuspenseList");case 0:case 15:return Vc(e.type,!1);case 11:return Vc(e.type.render,!1);case 1:return Vc(e.type,!0);case 31:return wi("Activity");case 30:return wi("ViewTransition");default:return""}}function $h(e){try{var t="",n=null;do t+=D1(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
765
+ Error generating stack: `+i.message+`
766
+ `+i.stack}}var Rs=Object.prototype.hasOwnProperty,Lf=Je.unstable_scheduleCallback,Yc=Je.unstable_cancelCallback,H1=Je.unstable_shouldYield,_1=Je.unstable_requestPaint,Ft=Je.unstable_now,U1=Je.unstable_getCurrentPriorityLevel,Bp=Je.unstable_ImmediatePriority,Vp=Je.unstable_UserBlockingPriority,iu=Je.unstable_NormalPriority,k1=Je.unstable_LowPriority,Yp=Je.unstable_IdlePriority,P1=Je.log,I1=Je.unstable_setDisableYieldValue,kl=null,Jt=null;function Mi(e){if(typeof P1=="function"&&I1(e),Jt&&typeof Jt.setStrictMode=="function")try{Jt.setStrictMode(kl,e)}catch{}}var Wt=Math.clz32?Math.clz32:V1,G1=Math.log,B1=Math.LN2;function V1(e){return e>>>=0,e===0?32:31-(G1(e)/B1|0)|0}var pr=256,gr=262144,yr=4194304;function na(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Cu(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var a=0,o=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var r=i&134217727;return r!==0?(i=r&~o,i!==0?a=na(i):(l&=r,l!==0?a=na(l):n||(n=r&~e,n!==0&&(a=na(n))))):(r=i&~o,r!==0?a=na(r):l!==0?a=na(l):n||(n=i&~e,n!==0&&(a=na(n)))),a===0?0:t!==0&&t!==a&&(t&o)===0&&(o=a&-a,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:a}function Pl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qp(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-Wt(n),a=1<<i;t|=e[i],n&=~a}return t}function Y1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jp(){var e=yr;return yr<<=1,(yr&62914560)===0&&(yr=4194304),e}function qc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Il(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function q1(e,t,n,i,a,o){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var r=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=l&~n;0<n;){var f=31-Wt(n),p=1<<f;r[f]=0,u[f]=-1;var s=c[f];if(s!==null)for(c[f]=null,f=0;f<s.length;f++){var m=s[f];m!==null&&(m.lane&=-536870913)}n&=~p}i!==0&&Xp(e,i,0),o!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=o&~(l&~t))}function Xp(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Wt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Kp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Wt(n),a=1<<i;a&t|e[i]&t&&(e[i]|=t),n&=~a}}function Qp(e,t){var n=t&-t;return n=(n&42)!==0?1:zf(n),(n&(e.suspendedLanes|t))!==0?0:n}function zf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Df(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Zp(){var e=ge.p;return e!==0?e:(e=window.event,e===void 0?32:Ob(e.type))}function em(e,t){var n=ge.p;try{return ge.p=e,t()}finally{ge.p=n}}var di=Math.random().toString(36).slice(2),ut="__reactFiber$"+di,Bt="__reactProps$"+di,Ro="__reactContainer$"+di,tm="__reactEvents$"+di,j1="__reactListeners$"+di,X1="__reactHandles$"+di,nm="__reactResources$"+di,Gl="__reactMarker$"+di,au="__reactLoad$"+di;function Ou(e){delete e[ut],delete e[Bt],delete e[j1],delete e[X1]}function oa(e){var t;if(t=e[ut])return t;for(var n=e.parentNode;n;){if(t=n[Ro]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vp(e);e!==null;){if(n=e[ut])return n;e=vp(e)}return t}e=n,n=e.parentNode}return null}function Ao(e){if(e=e[ut]||e[Ro]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function al(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(A(33))}function io(e){var t=e[nm];return t||(t=e[nm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Gl]=!0}function Fp(e){e[au]=void 0}var Jp=new Set,Wp={};function wa(e,t){po(e,t),po(e+"Capture",t)}function po(e,t){for(Wp[e]=t,e=0;e<t.length;e++)Jp.add(t[e])}var K1=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]*$"),im={},am={};function Q1(e){return Rs.call(am,e)?!0:Rs.call(im,e)?!1:K1.test(e)?am[e]=!0:(im[e]=!0,!1)}var me=!1;function om(){var e=me;return me=!1,e}function _r(e,t,n){if(Q1(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function br(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function ei(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,i)}}function Xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $p(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Z1(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var a=i.get,o=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){n=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function As(e){if(!e._valueTracker){var t=$p(e)?"checked":"value";e._valueTracker=Z1(e,t,""+e[t])}}function eg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=$p(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}var F1=/[\n"\\]/g;function cn(e){return e.replace(F1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Cs(e,t,n,i,a,o,l,r){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xt(t)):e.value!==""+Xt(t)&&(e.value=""+Xt(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?l==="number"&&e.value==t?jc(e,Xt(e.value)):jc(e,Xt(t)):n!=null?jc(e,Xt(n)):i!=null&&e.removeAttribute("value"),a==null&&o!=null&&(e.defaultChecked=!!o),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Xt(r):e.removeAttribute("name")}function tg(e,t,n,i,a,o,l,r){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){As(e);return}n=n!=null?""+Xt(n):"",t=t!=null?""+Xt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}i=i??a,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=r?e.checked:!!i,e.defaultChecked=!!i,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),As(e)}function jc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function ao(e,t,n,i){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Xt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,i&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function ng(e,t,n){if(t!=null&&(t=""+Xt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Xt(n):""}function ig(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(A(92));if(il(i)){if(1<i.length)throw Error(A(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Xt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),As(e)}function go(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var J1=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 lm(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||J1.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function ag(e,t,n){if(t!=null&&typeof t!="object")throw Error(A(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",me=!0);for(var a in t)i=t[a],t.hasOwnProperty(a)&&n[a]!==i&&(lm(e,a,i),me=!0)}else for(var o in t)t.hasOwnProperty(o)&&lm(e,o,t[o])}function Hf(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var W1=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"],["maskType","mask-type"],["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"]]),$1=/^[\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 Ur(e){return $1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function In(){}var Os=null;function _f(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qa=null,oo=null;function rm(e){var t=Ao(e);if(t&&(e=t.stateNode)){var n=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Cs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+cn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=i[Bt]||null;if(!a)throw Error(A(90));Cs(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&eg(i)}break e;case"textarea":ng(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ao(e,!!n.multiple,t,!1)}}}var Xc=!1;function og(e,t,n){if(Xc)return e(t,n);Xc=!0;try{var i=e(t);return i}finally{if(Xc=!1,(Qa!==null||oo!==null)&&(qu(),Qa&&(t=Qa,e=oo,oo=Qa=null,rm(t),e)))for(t=0;t<e.length;t++)rm(e[t])}}function wl(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Bt]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(A(231,t,typeof n));return n}var li=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ls=!1;if(li)try{Ia={},Object.defineProperty(Ia,"passive",{get:function(){Ls=!0}}),window.addEventListener("test",Ia,Ia),window.removeEventListener("test",Ia,Ia)}catch{Ls=!1}var Ia,Ri=null,Uf=null,kr=null;function lg(){if(kr)return kr;var e,t=Uf,n=t.length,i,a="value"in Ri?Ri.value:Ri.textContent,o=a.length;for(e=0;e<n&&t[e]===a[e];e++);var l=n-e;for(i=1;i<=l&&t[n-i]===a[o-i];i++);return kr=a.slice(e,1<i?1-i:void 0)}function Pr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vr(){return!0}function um(){return!1}function Rt(e){function t(n,i,a,o,l){this._reactName=n,this._targetInst=a,this.type=i,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(o):o[r]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?vr:um,this.isPropagationStopped=um,this}return Ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=vr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=vr)},persist:function(){},isPersistent:vr}),t}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lu=Rt(Ki),Bl=Ne({},Ki,{view:0,detail:0}),eS=Rt(Bl),Kc,Qc,Jo,zu=Ne({},Bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jo&&(Jo&&e.type==="mousemove"?(Kc=e.screenX-Jo.screenX,Qc=e.screenY-Jo.screenY):Qc=Kc=0,Jo=e),Kc)},movementY:function(e){return"movementY"in e?e.movementY:Qc}}),cm=Rt(zu),tS=Ne({},zu,{dataTransfer:0}),nS=Rt(tS),iS=Ne({},Bl,{relatedTarget:0}),Zc=Rt(iS),aS=Ne({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),oS=Rt(aS),lS=Ne({},Ki,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rS=Rt(lS),uS=Ne({},Ki,{data:0}),sm=Rt(uS),cS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sS={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"},fS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fS[e])?!!t[e]:!1}function kf(){return dS}var hS=Ne({},Bl,{key:function(e){if(e.key){var t=cS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kf,charCode:function(e){return e.type==="keypress"?Pr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mS=Rt(hS),pS=Ne({},zu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fm=Rt(pS),gS=Ne({},Ki,{submitter:0}),yS=Rt(gS),bS=Ne({},Bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kf}),vS=Rt(bS),SS=Ne({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),wS=Rt(SS),ES=Ne({},zu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),xS=Rt(ES),TS=Ne({},Ki,{newState:0,oldState:0,source:0}),NS=Rt(TS),MS=[9,13,27,32],Pf=li&&"CompositionEvent"in window,rl=null;li&&"documentMode"in document&&(rl=document.documentMode);var RS=li&&"TextEvent"in window&&!rl,rg=li&&(!Pf||rl&&8<rl&&11>=rl),dm=" ",hm=!1;function ug(e,t){switch(e){case"keyup":return MS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Za=!1;function AS(e,t){switch(e){case"compositionend":return cg(t);case"keypress":return t.which!==32?null:(hm=!0,dm);case"textInput":return e=t.data,e===dm&&hm?null:e;default:return null}}function CS(e,t){if(Za)return e==="compositionend"||!Pf&&ug(e,t)?(e=lg(),kr=Uf=Ri=null,Za=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return rg&&t.locale!=="ko"?null:t.data;default:return null}}var OS={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 mm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!OS[e.type]:t==="textarea"}function sg(e,t,n,i){Qa?oo?oo.push(i):oo=[i]:Qa=i,t=Mu(t,"onChange"),0<t.length&&(n=new Lu("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var ul=null,El=null;function LS(e){ob(e,0)}function Du(e){var t=al(e);if(eg(t))return e}function pm(e,t){if(e==="change")return t}var fg=!1;li&&(li?(wr="oninput"in document,wr||(Fc=document.createElement("div"),Fc.setAttribute("oninput","return;"),wr=typeof Fc.oninput=="function"),Sr=wr):Sr=!1,fg=Sr&&(!document.documentMode||9<document.documentMode));var Sr,wr,Fc;function gm(){ul&&(ul.detachEvent("onpropertychange",dg),El=ul=null)}function dg(e){if(e.propertyName==="value"&&Du(El)){var t=[];sg(t,El,e,_f(e)),og(LS,t)}}function zS(e,t,n){e==="focusin"?(gm(),ul=t,El=n,ul.attachEvent("onpropertychange",dg)):e==="focusout"&&gm()}function DS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Du(El)}function HS(e,t){if(e==="click")return Du(t)}function _S(e,t){if(e==="input"||e==="change")return Du(t)}function US(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var en=typeof Object.is=="function"?Object.is:US;function xl(e,t){if(en(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var a=n[i];if(!Rs.call(t,a)||!en(e[a],t[a]))return!1}return!0}function zs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ym(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bm(e,t){var n=ym(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ym(n)}}function hg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zs(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zs(e.document)}return t}function If(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var kS=li&&"documentMode"in document&&11>=document.documentMode,Fa=null,Ds=null,cl=null,Hs=!1;function vm(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hs||Fa==null||Fa!==zs(i)||(i=Fa,"selectionStart"in i&&If(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),cl&&xl(cl,i)||(cl=i,i=Mu(Ds,"onSelect"),0<i.length&&(t=new Lu("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Fa)))}function ea(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ja={animationend:ea("Animation","AnimationEnd"),animationiteration:ea("Animation","AnimationIteration"),animationstart:ea("Animation","AnimationStart"),transitionrun:ea("Transition","TransitionRun"),transitionstart:ea("Transition","TransitionStart"),transitioncancel:ea("Transition","TransitionCancel"),transitionend:ea("Transition","TransitionEnd")},Jc={},pg={};li&&(pg=document.createElement("div").style,"AnimationEvent"in window||(delete Ja.animationend.animation,delete Ja.animationiteration.animation,delete Ja.animationstart.animation),"TransitionEvent"in window||delete Ja.transitionend.transition);function Ea(e){if(Jc[e])return Jc[e];if(!Ja[e])return e;var t=Ja[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in pg)return Jc[e]=t[n];return e}var gg=Ea("animationend"),yg=Ea("animationiteration"),bg=Ea("animationstart"),PS=Ea("transitionrun"),IS=Ea("transitionstart"),GS=Ea("transitioncancel"),vg=Ea("transitionend"),Sg=new Map,_s="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");_s.push("scrollEnd");function wn(e,t){Sg.set(e,t),wa(t,[e])}var BS=0;function ri(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Sn.identifierPrefix;var n=BS++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Sm(e){if(e==null||typeof e=="string")return e;var t=null,n=ho;if(n!==null)for(var i=0;i<n.length;i++){var a=e[n[i]];if(a!=null){if(a==="none")return"none";t=t==null?a:t+(" "+a)}}return t??e.default}function hi(e,t){return e=Sm(e),t=Sm(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var ou=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ln=[],Wa=0,Gf=0;function Hu(){for(var e=Wa,t=Gf=Wa=0;t<e;){var n=ln[t];ln[t++]=null;var i=ln[t];ln[t++]=null;var a=ln[t];ln[t++]=null;var o=ln[t];if(ln[t++]=null,i!==null&&a!==null){var l=i.pending;l===null?a.next=a:(a.next=l.next,l.next=a),i.pending=a}o!==0&&wg(n,a,o)}}function _u(e,t,n,i){ln[Wa++]=e,ln[Wa++]=t,ln[Wa++]=n,ln[Wa++]=i,Gf|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Bf(e,t,n,i){return _u(e,t,n,i),lu(e)}function xa(e,t){return _u(e,null,null,t),lu(e)}function wg(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var a=!1,o=e.return;o!==null;)o.childLanes|=n,i=o.alternate,i!==null&&(i.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(a=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,a&&t!==null&&(a=31-Wt(n),e=o.hiddenUpdates,i=e[a],i===null?e[a]=[t]:i.push(t),t.lane=n|536870912),o):null}function lu(e){if(50<vl)throw vl=0,Qr=null,Error(A(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var $a={};function VS(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,i){return new VS(e,t,n,i)}function Vf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ai(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Eg(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ir(e,t,n,i,a,o){var l=0;if(i=e,typeof i=="function")Vf(i)&&(l=1);else if(typeof i=="string")l=mE(e,n,Vn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case Es:return e=Pt(31,n,t,a),e.elementType=Es,e.lanes=o,e;case Xa:return ua(n.children,a,o,t);case Ip:l=8,a|=24;break;case vs:return e=Pt(12,n,t,a|2),e.elementType=vs,e.lanes=o,e;case Ss:return e=Pt(13,n,t,a),e.elementType=Ss,e.lanes=o,e;case ws:return e=Pt(19,n,t,a),e.elementType=ws,e.lanes=o,e;case C1:case xs:return e=a|32,e=Pt(30,n,t,e),e.elementType=xs,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Pn:l=10;break e;case Gp:l=9;break e;case Cf:l=11;break e;case Of:l=14;break e;case xi:l=16,i=null;break e}l=29,n=Error(A(130,e===null?"null":typeof e,"")),i=null}return t=Pt(l,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function ua(e,t,n,i){return e=Pt(7,e,i,t),e.lanes=n,e}function Wc(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function xg(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function $c(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var wm=new WeakMap;function sn(e,t){if(typeof e=="object"&&e!==null){var n=wm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:$h(t)},wm.set(e,t),t)}return{value:e,source:t,stack:$h(t)}}var eo=[],to=0,ru=null,Tl=0,rn=[],un=0,Vi=null,Gn=1,Bn="";function ni(e,t){eo[to++]=Tl,eo[to++]=ru,ru=e,Tl=t}function Tg(e,t,n){rn[un++]=Gn,rn[un++]=Bn,rn[un++]=Vi,Vi=e;var i=Gn;e=Bn;var a=32-Wt(i)-1;i&=~(1<<a),n+=1;var o=32-Wt(t)+a;if(30<o){var l=a-a%5;o=(i&(1<<l)-1).toString(32),i>>=l,a-=l,Gn=1<<32-Wt(t)+a|n<<a|i,Bn=o+e}else Gn=1<<o|n<<a|i,Bn=e}function Uu(e){e.return!==null&&(ni(e,1),Tg(e,1,0))}function Yf(e){for(;e===ru;)ru=eo[--to],eo[to]=null,Tl=eo[--to],eo[to]=null;for(;e===Vi;)Vi=rn[--un],rn[un]=null,Bn=rn[--un],rn[un]=null,Gn=rn[--un],rn[un]=null}function Ng(e,t){rn[un++]=Gn,rn[un++]=Bn,rn[un++]=Vi,Gn=t.id,Bn=t.overflow,Vi=e}var ot=null,Ce=null,oe=!1,Di=null,fn=!1,Us=Error(A(519));function Yi(e){var t=Error(A(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nl(sn(t,e)),Us}function Em(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[ut]=e,t[Bt]=i,n){case"dialog":re("cancel",t),re("close",t);break;case"iframe":case"object":case"embed":re("load",t);break;case"video":case"audio":for(n=0;n<Cl.length;n++)re(Cl[n],t);break;case"source":re("error",t);break;case"img":case"image":case"link":re("error",t),re("load",t);break;case"details":re("toggle",t);break;case"input":re("invalid",t),tg(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":re("invalid",t);break;case"textarea":re("invalid",t),ig(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||rb(t.textContent,n)?(i.popover!=null&&(re("beforetoggle",t),re("toggle",t)),i.onScroll!=null&&re("scroll",t),i.onScrollEnd!=null&&re("scrollend",t),i.onClick!=null&&(t.onclick=In),t=!0):t=!1,t||Yi(e,!0)}function uu(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:fn=!1;return;case 27:case 3:fn=!0;return;default:ot=ot.return}}function Ga(e){if(e!==ot)return!1;if(!oe)return uu(e),oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||wf(e.type,e.memoizedProps)),n=!n),n&&Ce&&Yi(e),uu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));Ce=bp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));Ce=bp(e)}else t===27?(t=Ce,Qi(e.type)?(e=Nf,Nf=null,Ce=e):Ce=t):Ce=ot?dn(e.stateNode.nextSibling):null;return!0}function da(){Ce=ot=null,oe=!1}function es(){var e=Di;return e!==null&&(Ut===null?Ut=e:Ut.push.apply(Ut,e),Di=null),e}function Nl(e){Di===null?Di=[e]:Di.push(e)}var ks=jn(null),Ta=null,ii=null;function Ai(e,t,n){Oe(ks,t._currentValue),t._currentValue=n}function oi(e){e._currentValue=ks.current,st(ks)}function Gr(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Ps(e,t,n,i){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var l=a.child;o=o.firstContext;e:for(;o!==null;){var r=o;o=a;for(var u=0;u<t.length;u++)if(r.context===t[u]){o.lanes|=n,r=o.alternate,r!==null&&(r.lanes|=n),Gr(o.return,n,e),i||(l=null);break e}o=r.next}}else if(a.tag===18){if(l=a.return,l===null)throw Error(A(341));l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),Gr(l,n,e),l=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Gr(a.return,n,e),l=a.child,l=l!==null?l.sibling:null):l=a.child;if(l!==null)l.return=a;else for(l=a;l!==null;){if(l===e){l=null;break}if(a=l.sibling,a!==null){a.return=l.return,l=a;break}l=l.return}a=l}}function ha(e,t,n,i){e=null;for(var a=t,o=!1;a!==null;){if(!o){if((a.flags&524288)!==0)o=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var l=a.alternate;if(l===null)throw Error(A(387));if(l=l.memoizedProps,l!==null){var r=a.type;en(a.pendingProps.value,l.value)||(e!==null?e.push(r):e=[r])}}else if(a===eu.current){if(l=a.alternate,l===null)throw Error(A(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(To):e=[To])}a=a.return}return e!==null&&Ps(t,e,n,i),t.flags|=262144,e!==null}function cu(e){for(e=e.firstContext;e!==null;){if(!en(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ma(e){Ta=e,ii=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Mg(Ta,e)}function Er(e,t){return Ta===null&&ma(e),Mg(e,t)}function Mg(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ii===null){if(e===null)throw Error(A(308));ii=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ii=ii.next=t;return n}var YS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},qS=Je.unstable_scheduleCallback,jS=Je.unstable_NormalPriority,Xe={$$typeof:Pn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qf(){return{controller:new YS,data:new Map,refCount:0}}function Vl(e){e.refCount--,e.refCount===0&&qS(jS,function(){e.controller.abort()})}function xm(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var i=t[e];n.indexOf(i)===-1&&n.push(i)}}}var ol=null;function XS(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var sl=null,Is=0,pa=0,lo=null;function KS(e,t){if(sl===null){var n=sl=[];Is=0,pa=bd(),lo={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Is++,t.then(Tm,Tm),t}function Tm(){if(--Is===0&&(ol=null,sl!==null)){lo!==null&&(lo.status="fulfilled");var e=sl;sl=null,pa=0,lo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function QS(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(i.status="rejected",i.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),i}var Nm=Q.S;Q.S=function(e,t){if(qy=Ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&KS(e,t),ol!==null)for(var n=wo;n!==null;)xm(n,ol),n=n.next;if(n=e.types,n!==null){for(var i=wo;i!==null;)xm(i,n),i=i.next;if(pa!==0){i=ol,i===null&&(i=ol=[]);for(var a=0;a<n.length;a++){var o=n[a];i.indexOf(o)===-1&&i.push(o)}}}Nm!==null&&Nm(e,t)};var ca=jn(null);function jf(){var e=ca.current;return e!==null?e:Te.pooledCache}function Br(e,t){t===null?Oe(ca,ca.current):Oe(ca,t.pool)}function Rg(){var e=jf();return e===null?null:{parent:Xe._currentValue,pool:e}}var Co=Error(A(460)),Xf=Error(A(474)),ku=Error(A(542)),su={then:function(){}};function Mm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ag(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(In,In),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Am(e),e===void 0&&!("reason"in t)?Error(A(600)):e;default:if(typeof t.status=="string")t.then(In,In);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(A(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=i}},function(i){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Am(e),e}throw sa=t,Co}}function ia(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(sa=n,Co):n}}var sa=null;function Rm(){if(sa===null)throw Error(A(459));var e=sa;return sa=null,e}function Am(e){if(e===Co||e===ku)throw Error(A(483))}var ro=null,Ml=0;function xr(e){var t=Ml;return Ml+=1,ro===null&&(ro=[]),Ag(ro,e,t)}function Si(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Tr(e,t){throw t.$$typeof===A1?Error(A(525)):(e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Cg(e){function t(h,d){if(e){var g=h.deletions;g===null?(h.deletions=[d],h.flags|=16):g.push(d)}}function n(h,d){if(!e)return null;for(;d!==null;)t(h,d),d=d.sibling;return null}function i(h){for(var d=new Map;h!==null;)h.key===null?d.set(h.index,h):d.set(h.key,h),h=h.sibling;return d}function a(h,d){return h=ai(h,d),h.index=0,h.sibling=null,h}function o(h,d,g){return h.index=g,e?(g=h.alternate,g!==null?(g=g.index,g<d?(h.flags|=2,d):g):(h.flags|=134217730,d)):(h.flags|=1048576,d)}function l(h){return e&&h.alternate===null&&(h.flags|=134217730),h}function r(h,d,g,S){return d===null||d.tag!==6?(d=Wc(g,h.mode,S),d.return=h,d):(d=a(d,g),d.return=h,d)}function u(h,d,g,S){var x=g.type;return x===Xa?(h=f(h,d,g.props.children,S,g.key),Si(h,g),h):d!==null&&(d.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===xi&&ia(x)===d.type)?(d=a(d,g.props),Si(d,g),d.return=h,d):(d=Ir(g.type,g.key,g.props,null,h.mode,S),Si(d,g),d.return=h,d)}function c(h,d,g,S){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=$c(g,h.mode,S),d.return=h,d):(d=a(d,g.children||[]),d.return=h,d)}function f(h,d,g,S,x){return d===null||d.tag!==7?(d=ua(g,h.mode,S,x),d.return=h,d):(d=a(d,g),d.return=h,d)}function p(h,d,g){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=Wc(""+d,h.mode,g),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case mr:return g=Ir(d.type,d.key,d.props,null,h.mode,g),Si(g,d),g.return=h,g;case nl:return d=$c(d,h.mode,g),d.return=h,d;case xi:return d=ia(d),p(h,d,g)}if(il(d)||Fo(d))return d=ua(d,h.mode,g,null),d.return=h,d;if(typeof d.then=="function")return p(h,xr(d),g);if(d.$$typeof===Pn)return p(h,Er(h,d),g);Tr(h,d)}return null}function s(h,d,g,S){var x=d!==null?d.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return x!==null?null:r(h,d,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case mr:return g.key===x?u(h,d,g,S):null;case nl:return g.key===x?c(h,d,g,S):null;case xi:return g=ia(g),s(h,d,g,S)}if(il(g)||Fo(g))return x!==null?null:f(h,d,g,S,null);if(typeof g.then=="function")return s(h,d,xr(g),S);if(g.$$typeof===Pn)return s(h,d,Er(h,g),S);Tr(h,g)}return null}function m(h,d,g,S,x){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return h=h.get(g)||null,r(d,h,""+S,x);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case mr:return h=h.get(S.key===null?g:S.key)||null,u(d,h,S,x);case nl:return h=h.get(S.key===null?g:S.key)||null,c(d,h,S,x);case xi:return S=ia(S),m(h,d,g,S,x)}if(il(S)||Fo(S))return h=h.get(g)||null,f(d,h,S,x,null);if(typeof S.then=="function")return m(h,d,g,xr(S),x);if(S.$$typeof===Pn)return m(h,d,g,Er(d,S),x);Tr(d,S)}return null}function y(h,d,g,S){for(var x=null,N=null,E=d,M=d=0,R=null;E!==null&&M<g.length;M++){E.index>M?(R=E,E=null):R=E.sibling;var O=s(h,E,g[M],S);if(O===null){E===null&&(E=R);break}e&&E&&O.alternate===null&&t(h,E),d=o(O,d,M),N===null?x=O:N.sibling=O,N=O,E=R}if(M===g.length)return n(h,E),oe&&ni(h,M),x;if(E===null){for(;M<g.length;M++)E=p(h,g[M],S),E!==null&&(d=o(E,d,M),N===null?x=E:N.sibling=E,N=E);return oe&&ni(h,M),x}for(E=i(E);M<g.length;M++)R=m(E,h,M,g[M],S),R!==null&&(e&&(O=R.alternate,O!==null&&E.delete(O.key===null?M:O.key)),d=o(R,d,M),N===null?x=R:N.sibling=R,N=R);return e&&E.forEach(function(D){return t(h,D)}),oe&&ni(h,M),x}function b(h,d,g,S){if(g==null)throw Error(A(151));for(var x=null,N=null,E=d,M=d=0,R=null,O=g.next();E!==null&&!O.done;M++,O=g.next()){E.index>M?(R=E,E=null):R=E.sibling;var D=s(h,E,O.value,S);if(D===null){E===null&&(E=R);break}e&&E&&D.alternate===null&&t(h,E),d=o(D,d,M),N===null?x=D:N.sibling=D,N=D,E=R}if(O.done)return n(h,E),oe&&ni(h,M),x;if(E===null){for(;!O.done;M++,O=g.next())O=p(h,O.value,S),O!==null&&(d=o(O,d,M),N===null?x=O:N.sibling=O,N=O);return oe&&ni(h,M),x}for(E=i(E);!O.done;M++,O=g.next())O=m(E,h,M,O.value,S),O!==null&&(e&&(R=O.alternate,R!==null&&E.delete(R.key===null?M:R.key)),d=o(O,d,M),N===null?x=O:N.sibling=O,N=O);return e&&E.forEach(function(I){return t(h,I)}),oe&&ni(h,M),x}function w(h,d,g,S){if(typeof g=="object"&&g!==null&&g.type===Xa&&g.key===null&&g.props.ref===void 0&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case mr:e:{for(var x=g.key;d!==null;){if(d.key===x){if(x=g.type,x===Xa){if(d.tag===7){n(h,d.sibling),S=a(d,g.props.children),Si(S,g),S.return=h,h=S;break e}}else if(d.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===xi&&ia(x)===d.type){n(h,d.sibling),S=a(d,g.props),Si(S,g),S.return=h,h=S;break e}n(h,d);break}else t(h,d);d=d.sibling}g.type===Xa?(S=ua(g.props.children,h.mode,S,g.key),Si(S,g),S.return=h,h=S):(S=Ir(g.type,g.key,g.props,null,h.mode,S),Si(S,g),S.return=h,h=S)}return l(h);case nl:e:{for(x=g.key;d!==null;){if(d.key===x)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(h,d.sibling),S=a(d,g.children||[]),S.return=h,h=S;break e}else{n(h,d);break}else t(h,d);d=d.sibling}S=$c(g,h.mode,S),S.return=h,h=S}return l(h);case xi:return g=ia(g),w(h,d,g,S)}if(il(g))return y(h,d,g,S);if(Fo(g)){if(x=Fo(g),typeof x!="function")throw Error(A(150));return g=x.call(g),b(h,d,g,S)}if(typeof g.then=="function")return w(h,d,xr(g),S);if(g.$$typeof===Pn)return w(h,d,Er(h,g),S);Tr(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,d!==null&&d.tag===6?(n(h,d.sibling),S=a(d,g),S.return=h,h=S):(n(h,d),S=Wc(g,h.mode,S),S.return=h,h=S),l(h)):n(h,d)}return function(h,d,g,S){try{Ml=0;var x=w(h,d,g,S);return ro=null,x}catch(E){if(E===Co||E===ku)throw E;var N=Pt(29,E,null,h.mode);return N.lanes=S,N.return=h,N}finally{}}}var ga=Cg(!0),Og=Cg(!1),Ti=!1;function Kf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Hi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _i(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(pe&2)!==0){var a=i.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),i.pending=t,t=lu(e),wg(e,null,n),t}return _u(e,i,t,n),lu(e)}function fl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Kp(e,n)}}function ts(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?a=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Bs=!1;function dl(){if(Bs){var e=lo;if(e!==null)throw e}}function hl(e,t,n,i){Bs=!1;var a=e.updateQueue;Ti=!1;var o=a.firstBaseUpdate,l=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var u=r,c=u.next;u.next=null,l===null?o=c:l.next=c,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,r=f.lastBaseUpdate,r!==l&&(r===null?f.firstBaseUpdate=c:r.next=c,f.lastBaseUpdate=u))}if(o!==null){var p=a.baseState;l=0,f=c=u=null,r=o;do{var s=r.lane&-536870913,m=s!==r.lane;if(m?(se&s)===s:(i&s)===s){s!==0&&s===pa&&(Bs=!0),f!==null&&(f=f.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var y=e,b=r;s=t;var w=n;switch(b.tag){case 1:if(y=b.payload,typeof y=="function"){p=y.call(w,p,s);break e}p=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,s=typeof y=="function"?y.call(w,p,s):y,s==null)break e;p=Ne({},p,s);break e;case 2:Ti=!0}}s=r.callback,s!==null&&(e.flags|=64,m&&(e.flags|=8192),m=a.callbacks,m===null?a.callbacks=[s]:m.push(s))}else m={lane:s,tag:r.tag,payload:r.payload,callback:r.callback,next:null},f===null?(c=f=m,u=p):f=f.next=m,l|=s;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;m=r,r=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(!0);f===null&&(u=p),a.baseState=u,a.firstBaseUpdate=c,a.lastBaseUpdate=f,o===null&&(a.shared.lanes=0),Xi|=l,e.lanes=l,e.memoizedState=p}}function Lg(e,t){if(typeof e!="function")throw Error(A(191,e));e.call(t)}function zg(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Lg(n[e],t)}var qi=jn(null),fu=jn(0);function Cm(e,t){e=fi,Oe(fu,e),Oe(qi,t),fi=e|t.baseLanes}function Vs(){Oe(fu,fi),Oe(qi,qi.current)}function Qf(){fi=fu.current,st(qi),st(fu)}var ht=jn(null),bt=null;function Ui(e){var t=e.alternate;Oe(ft,ft.current&1),Oe(ht,e),bt===null&&(t===null||qi.current!==null||t.memoizedState!==null)&&(bt=e)}function Ys(e){Oe(ft,ft.current),Oe(ht,e),bt===null&&(bt=e)}function Dg(e){e.tag===22?(Oe(ft,ft.current),Oe(ht,e),bt===null&&(bt=e)):ki()}function ki(){Oe(ft,ft.current),Oe(ht,ht.current)}function Kt(e){st(ht),bt===e&&(bt=null),st(ft)}var ft=jn(0);function Rl(e,t){Oe(ht,ht.current),Oe(ft,t)}function Zf(e){st(ft),st(ht),bt===e&&(bt=null)}function du(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Tf(n)||Ed(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=0,ee=null,xe=null,je=null,hu=!1,uo=!1,ya=!1,mu=0,Al=0,co=null,ZS=0;function Ge(){throw Error(A(321))}function Ff(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!en(e[n],t[n]))return!1;return!0}function Jf(e,t,n,i,a,o){return ui=o,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Q.H=e===null||e.memoizedState===null?sy:fy,ya=!1,o=n(i,a),ya=!1,uo&&(o=_g(t,n,i,a)),Hg(e),o}function Hg(e){Q.H=pu;var t=xe!==null&&xe.next!==null;if(ui=0,je=xe=ee=null,hu=!1,Al=0,co=null,t)throw Error(A(300));e===null||Ke||(e=e.dependencies,e!==null&&cu(e)&&(Ke=!0))}function _g(e,t,n,i){ee=e;var a=0;do{if(uo&&(co=null),Al=0,uo=!1,25<=a)throw Error(A(301));if(a+=1,je=xe=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}Q.H=iw,o=t(n,i)}while(uo);return o}function FS(){var e=Q.H,t=e.useState()[0];return t=typeof t.then=="function"?Yl(t):t,e=e.useState()[0],(xe!==null?xe.memoizedState:null)!==e&&(ee.flags|=1024),t}function Wf(){var e=mu!==0;return mu=0,e}function $f(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ed(e){if(hu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hu=!1}ui=0,je=xe=ee=null,uo=!1,Al=mu=0,co=null}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return je===null?ee.memoizedState=je=e:je=je.next=e,je}function Ve(){if(xe===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=je===null?ee.memoizedState:je.next;if(t!==null)je=t,xe=e;else{if(e===null)throw ee.alternate===null?Error(A(467)):Error(A(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},je===null?ee.memoizedState=je=e:je=je.next=e}return je}function Pu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yl(e){var t=Al;return Al+=1,co===null&&(co=[]),e=Ag(co,e,t),t=ee,(je===null?t.memoizedState:je.next)===null&&(t=t.alternate,Q.H=t===null||t.memoizedState===null?sy:fy),e}function Iu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Yl(e);if(e.$$typeof===L1)return;if(e.$$typeof===Pn)return ct(e)}throw Error(A(438,String(e)))}function td(e){var t=null,n=ee.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=ee.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Pu(),ee.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=O1;return t.index++,n}function ci(e,t){return typeof t=="function"?t(e):t}function Vr(e){var t=Ve();return nd(t,xe,e)}function nd(e,t,n){var i=e.queue;if(i===null)throw Error(A(311));i.lastRenderedReducer=n;var a=e.baseQueue,o=i.pending;if(o!==null){if(a!==null){var l=a.next;a.next=o.next,o.next=l}t.baseQueue=a=o,i.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var r=l=null,u=null,c=t,f=!1;do{var p=c.lane&-536870913;if(p!==c.lane?(se&p)===p:(ui&p)===p){var s=c.revertLane;if(s===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===pa&&(f=!0);else if((ui&s)===s){c=c.next,s===pa&&(f=!0);continue}else p={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=p,l=o):u=u.next=p,ee.lanes|=s,Xi|=s;p=c.action,ya&&n(o,p),o=c.hasEagerState?c.eagerState:n(o,p)}else s={lane:p,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=s,l=o):u=u.next=s,ee.lanes|=p,Xi|=p;c=c.next}while(c!==null&&c!==t);if(u===null?l=o:u.next=r,!en(o,e.memoizedState)&&(Ke=!0,f&&(n=lo,n!==null)))throw n;e.memoizedState=o,e.baseState=l,e.baseQueue=u,i.lastRenderedState=o}return a===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function ns(e){var t=Ve(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var l=a=a.next;do o=e(o,l.action),l=l.next;while(l!==a);en(o,t.memoizedState)||(Ke=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Ug(e,t,n){var i=ee,a=Ve(),o=oe;if(o){if(n===void 0)throw Error(A(407));n=n()}else n=t();var l=!en((xe||a).memoizedState,n);if(l&&(a.memoizedState=n,Ke=!0),a=a.queue,id(Ig.bind(null,i,a,e),[e]),e=a.getSnapshot!==t||l||je!==null&&(je.memoizedState.tag&1)!==0,yo(e?9:8,{destroy:void 0},Pg.bind(null,i,a,n,t),null),e){if(i.flags|=2048,Te===null)throw Error(A(349));o||(ui&127)!==0||kg(i,t,n)}return n}function kg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ee.updateQueue,t===null?(t=Pu(),ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Pg(e,t,n,i){t.value=n,t.getSnapshot=i,Gg(t)&&Bg(e)}function Ig(e,t,n){return n(function(){Gg(t)&&Bg(e)})}function Gg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!en(e,n)}catch{return!0}}function Bg(e){var t=xa(e,2);t!==null&&It(t,e,2)}function qs(e){var t=Mt();if(typeof e=="function"){var n=e;if(e=n(),ya){Mi(!0);try{n()}finally{Mi(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:e},t}function Vg(e,t,n,i){return e.baseState=n,nd(e,xe,typeof i=="function"?i:ci)}function JS(e,t,n,i,a){if(Bu(e))throw Error(A(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){o.listeners.push(l)}};Q.T!==null?n(!0):o.isTransition=!1,i(o),n=t.pending,n===null?(o.next=t.pending=o,Yg(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Yg(e,t){var n=t.action,i=t.payload,a=e.state;if(t.isTransition){var o=Q.T,l={};l.types=o!==null?o.types:null,Q.T=l;try{var r=n(a,i),u=Q.S;u!==null&&u(l,r),Om(e,t,r)}catch(c){js(e,t,c)}finally{o!==null&&l.types!==null&&(o.types=l.types),Q.T=o}}else try{o=n(a,i),Om(e,t,o)}catch(c){js(e,t,c)}}function Om(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Lm(e,t,i)},function(i){return js(e,t,i)}):Lm(e,t,n)}function Lm(e,t,n){t.status="fulfilled",t.value=n,qg(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Yg(e,n)))}function js(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,qg(t),t=t.next;while(t!==i)}e.action=null}function qg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function jg(e,t){return t}function zm(e,t){if(oe){var n=Te.formState;if(n!==null){e:{var i=ee;if(oe){if(Ce){t:{for(var a=Ce,o=fn;a.nodeType!==8;){if(!o){a=null;break t}if(a=dn(a.nextSibling),a===null){a=null;break t}}o=a.data,a=o==="F!"||o==="F"?a:null}if(a){Ce=dn(a.nextSibling),i=a.data==="F!";break e}}Yi(i)}i=!1}i&&(t=n[0])}}return n=Mt(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jg,lastRenderedState:t},n.queue=i,n=ry.bind(null,ee,i),i.dispatch=n,i=qs(!1),o=rd.bind(null,ee,!1,i.queue),i=Mt(),a={state:t,dispatch:null,action:e,pending:null},i.queue=a,n=JS.bind(null,ee,a,o,n),a.dispatch=n,i.memoizedState=e,[t,n,!1]}function Dm(e){var t=Ve();return Xg(t,xe,e)}function Xg(e,t,n){if(t=nd(e,t,jg)[0],e=Vr(ci)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Yl(t)}catch(l){throw l===Co?ku:l}else i=t;t=Ve();var a=t.queue,o=a.dispatch;return n!==t.memoizedState&&(ee.flags|=2048,yo(9,{destroy:void 0},WS.bind(null,a,n),null)),[i,o,e]}function WS(e,t){e.action=t}function Hm(e){var t=Ve(),n=xe;if(n!==null)return Xg(t,n,e);Ve(),t=t.memoizedState,n=Ve();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function yo(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=ee.updateQueue,t===null&&(t=Pu(),ee.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Kg(){return Ve().memoizedState}function Yr(e,t,n,i){var a=Mt();ee.flags|=e,a.memoizedState=yo(1|t,{destroy:void 0},n,i===void 0?null:i)}function Gu(e,t,n,i){var a=Ve();i=i===void 0?null:i;var o=a.memoizedState.inst;xe!==null&&i!==null&&Ff(i,xe.memoizedState.deps)?a.memoizedState=yo(t,o,n,i):(ee.flags|=e,a.memoizedState=yo(1|t,o,n,i))}function _m(e,t){Yr(8390656,8,e,t)}function id(e,t){Gu(2048,8,e,t)}function $S(e){ee.flags|=4;var t=ee.updateQueue;if(t===null)t=Pu(),ee.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Qg(e){var t=Ve().memoizedState;return $S({ref:t,nextImpl:e}),function(){if((pe&2)!==0)throw Error(A(440));return t.impl.apply(void 0,arguments)}}function Zg(e,t){return Gu(4,2,e,t)}function Fg(e,t){return Gu(4,4,e,t)}function Jg(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Wg(e,t,n){n=n!=null?n.concat([e]):null,Gu(4,4,Jg.bind(null,t,e),n)}function ad(){}function $g(e,t){var n=Ve();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Ff(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function ey(e,t){var n=Ve();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Ff(t,i[1]))return i[0];if(i=e(),ya){Mi(!0);try{e()}finally{Mi(!1)}}return n.memoizedState=[i,t],i}function od(e,t,n){return n===void 0||(ui&1073741824)!==0&&(se&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Xy(),ee.lanes|=e,Xi|=e,n)}function ty(e,t,n,i){return en(n,t)?n:qi.current!==null?(e=od(e,n,i),en(e,t)||(Ke=!0),e):(ui&106)===0||(ui&1073741824)!==0&&(se&261930)===0?(Ke=!0,e.memoizedState=n):(e=Xy(),ee.lanes|=e,Xi|=e,t)}function ny(e,t,n,i,a){var o=ge.p;ge.p=o!==0&&8>o?o:8;var l=Q.T,r={};r.types=l!==null?l.types:null,Q.T=r,rd(e,!1,t,n);try{var u=a(),c=Q.S;if(c!==null&&c(r,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=QS(u,i);ml(e,t,f,$t(e))}else ml(e,t,i,$t(e))}catch(p){ml(e,t,{then:function(){},status:"rejected",reason:p},$t())}finally{ge.p=o,l!==null&&r.types!==null&&(l.types=r.types),Q.T=l}}function ew(){}function Xs(e,t,n,i){if(e.tag!==5)throw Error(A(476));var a=iy(e).queue;ny(e,a,t,ra,n===null?ew:function(){return ay(e),n(i)})}function iy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ra,baseState:ra,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:ra},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ay(e){var t=iy(e);t.next===null&&(t=e.alternate.memoizedState),ml(e,t.next.queue,{},$t())}function ld(){return ct(To)}function oy(){return Ve().memoizedState}function ly(){return Ve().memoizedState}function tw(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=$t();e=Hi(n);var i=_i(t,e,n);i!==null&&(It(i,t,n),fl(i,t,n)),t={cache:qf()},e.payload=t;return}t=t.return}}function nw(e,t,n){var i=$t();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bu(e)?uy(t,n):(n=Bf(e,t,n,i),n!==null&&(It(n,e,i),cy(n,t,i)))}function ry(e,t,n){var i=$t();ml(e,t,n,i)}function ml(e,t,n,i){var a={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bu(e))uy(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,r=o(l,n);if(a.hasEagerState=!0,a.eagerState=r,en(r,l))return _u(e,t,a,0),Te===null&&Hu(),!1}catch{}finally{}if(n=Bf(e,t,a,i),n!==null)return It(n,e,i),cy(n,t,i),!0}return!1}function rd(e,t,n,i){if(i={lane:2,revertLane:bd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Bu(e)){if(t)throw Error(A(479))}else t=Bf(e,n,i,2),t!==null&&It(t,e,2)}function Bu(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function uy(e,t){uo=hu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cy(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Kp(e,n)}}var pu={readContext:ct,use:Iu,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge,useEffectEvent:Ge},sy={readContext:ct,use:Iu,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:_m,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Yr(4194308,4,Jg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yr(4194308,4,e,t)},useInsertionEffect:function(e,t){Yr(4,2,e,t)},useMemo:function(e,t){var n=Mt();t=t===void 0?null:t;var i=e();if(ya){Mi(!0);try{e()}finally{Mi(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Mt();if(n!==void 0){var a=n(t);if(ya){Mi(!0);try{n(t)}finally{Mi(!1)}}}else a=t;return i.memoizedState=i.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},i.queue=e,e=e.dispatch=nw.bind(null,ee,e),[i.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:function(e){e=qs(e);var t=e.queue,n=ry.bind(null,ee,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ad,useDeferredValue:function(e,t){var n=Mt();return od(n,e,t)},useTransition:function(){var e=qs(!1);return e=ny.bind(null,ee,e.queue,!0,!1),Mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=ee,a=Mt();if(oe){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Te===null)throw Error(A(349));(se&127)!==0||kg(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,_m(Ig.bind(null,i,o,e),[e]),i.flags|=2048,yo(9,{destroy:void 0},Pg.bind(null,i,o,n,t),null),n},useId:function(){var e=Mt(),t=Te.identifierPrefix;if(oe){var n=Bn,i=Gn;n=(i&~(1<<32-Wt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=mu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=ZS++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ld,useFormState:zm,useActionState:zm,useOptimistic:function(e){var t=Mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=rd.bind(null,ee,!0,n),n.dispatch=t,[e,t]},useMemoCache:td,useCacheRefresh:function(){return Mt().memoizedState=tw.bind(null,ee)},useEffectEvent:function(e){var t=Mt(),n={impl:e};return t.memoizedState=n,function(){if((pe&2)!==0)throw Error(A(440));return n.impl.apply(void 0,arguments)}}},fy={readContext:ct,use:Iu,useCallback:$g,useContext:ct,useEffect:id,useImperativeHandle:Wg,useInsertionEffect:Zg,useLayoutEffect:Fg,useMemo:ey,useReducer:Vr,useRef:Kg,useState:function(){return Vr(ci)},useDebugValue:ad,useDeferredValue:function(e,t){var n=Ve();return ty(n,xe.memoizedState,e,t)},useTransition:function(){var e=Vr(ci)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Yl(e),t]},useSyncExternalStore:Ug,useId:oy,useHostTransitionStatus:ld,useFormState:Dm,useActionState:Dm,useOptimistic:function(e,t){var n=Ve();return Vg(n,xe,e,t)},useMemoCache:td,useCacheRefresh:ly,useEffectEvent:Qg},iw={readContext:ct,use:Iu,useCallback:$g,useContext:ct,useEffect:id,useImperativeHandle:Wg,useInsertionEffect:Zg,useLayoutEffect:Fg,useMemo:ey,useReducer:ns,useRef:Kg,useState:function(){return ns(ci)},useDebugValue:ad,useDeferredValue:function(e,t){var n=Ve();return xe===null?od(n,e,t):ty(n,xe.memoizedState,e,t)},useTransition:function(){var e=ns(ci)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Yl(e),t]},useSyncExternalStore:Ug,useId:oy,useHostTransitionStatus:ld,useFormState:Hm,useActionState:Hm,useOptimistic:function(e,t){var n=Ve();return xe!==null?Vg(n,xe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:td,useCacheRefresh:ly,useEffectEvent:Qg};function is(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ks={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=$t(),a=Hi(i);a.payload=t,n!=null&&(a.callback=n),t=_i(e,a,i),t!==null&&(It(t,e,i),fl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=$t(),a=Hi(i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=_i(e,a,i),t!==null&&(It(t,e,i),fl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$t(),i=Hi(n);i.tag=2,t!=null&&(i.callback=t),t=_i(e,i,n),t!==null&&(It(t,e,n),fl(t,e,n))}};function Um(e,t,n,i,a,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,l):t.prototype&&t.prototype.isPureReactComponent?!xl(n,i)||!xl(a,o):!0}function km(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Ks.enqueueReplaceState(t,t.state,null)}function ba(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=Ne({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function dy(e){ou(e)}function hy(e){console.error(e)}function my(e){ou(e)}function gu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Pm(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Qs(e,t,n){return n=Hi(n),n.tag=3,n.payload={element:null},n.callback=function(){gu(e,t)},n}function py(e){return e=Hi(e),e.tag=3,e}function gy(e,t,n,i){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var o=i.value;e.payload=function(){return a(o)},e.callback=function(){Pm(t,n,i)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){Pm(t,n,i),typeof a!="function"&&(Pi===null?Pi=new Set([this]):Pi.add(this));var r=i.stack;this.componentDidCatch(i.value,{componentStack:r!==null?r:""})})}function aw(e,t,n,i,a){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&ha(t,n,a,!0),n=ht.current,n!==null){switch(n.tag){case 31:case 13:case 19:return bt===null?Tu():n.alternate===null&&Be===0&&(Be=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===su?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),ss(e,i,a)),!1;case 22:return n.flags|=65536,i===su?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),ss(e,i,a)),!1}throw Error(A(435,n.tag))}return ss(e,i,a),Tu(),!1}if(oe)return t=ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==Us&&(e=Error(A(422),{cause:i}),Nl(sn(e,n)))):(i!==Us&&(t=Error(A(423),{cause:i}),Nl(sn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=sn(i,n),a=Qs(e.stateNode,i,a),ts(e,a),Be!==4&&(Be=2)),!1;var o=Error(A(520),{cause:i});if(o=sn(o,n),bl===null?bl=[o]:bl.push(o),Be!==4&&(Be=2),t===null)return!0;i=sn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Qs(n.stateNode,i,e),ts(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Pi===null||!Pi.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=py(a),gy(a,e,n,i),ts(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var ud=Error(A(461)),Ke=!1;function Ze(e,t,n,i){t.child=e===null?Og(t,null,n,i):ga(t,e.child,n,i)}function Im(e,t,n,i,a){n=n.render;var o=t.ref;if("ref"in i){var l={};for(var r in i)r!=="ref"&&(l[r]=i[r])}else l=i;return ma(t),i=Jf(e,t,n,l,o,a),r=Wf(),e!==null&&!Ke?($f(e,t,a),si(e,t,a)):(oe&&r&&Uu(t),t.flags|=1,Ze(e,t,i,a),t.child)}function Gm(e,t,n,i,a){if(e===null){var o=n.type;return typeof o=="function"&&!Vf(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,yy(e,t,o,i,a)):(e=Ir(n.type,null,i,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!sd(e,a)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:xl,n(l,i)&&e.ref===t.ref)return si(e,t,a)}return t.flags|=1,e=ai(o,i),e.ref=t.ref,e.return=t,t.child=e}function yy(e,t,n,i,a){if(e!==null){var o=e.memoizedProps;if(xl(o,i)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=i=o,sd(e,a))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,si(e,t,a)}return Zs(e,t,n,i,a)}function by(e,t,n,i){var a=i.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(i=t.child=e.child,a=0;i!==null;)a=a|i.lanes|i.childLanes,i=i.sibling;i=a&~o}else i=0,t.child=null;return Bm(e,t,o,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Br(t,o!==null?o.cachePool:null),o!==null?Cm(t,o):Vs(),Dg(t);else return i=t.lanes=536870912,Bm(e,t,o!==null?o.baseLanes|n:n,n,i)}else o!==null?(Br(t,o.cachePool),Cm(t,o),ki(),t.memoizedState=null):(e!==null&&Br(t,null),Vs(),ki());return Ze(e,t,a,n),t.child}function pl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Bm(e,t,n,i,a){var o=jf();return o=o===null?null:{parent:Xe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Br(t,null),Vs(),Dg(t),e!==null&&ha(e,t,i,!0),t.childLanes=a,null}function qr(e,t){return t=Vu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vm(e,t,n){return ga(t,e.child,null,n),e=qr(t,t.pendingProps),e.flags|=2,Kt(t),t.memoizedState=null,e}function ow(e,t,n){var i=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(i.mode==="hidden")return e=qr(t,i),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},pl(null,e);if(Ys(t),(e=Ce)?(e=bb(e,fn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vi!==null?{id:Gn,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},n=xg(e),n.return=t,t.child=n,ot=t,Ce=null)):e=null,e===null)throw Yi(t);return t.lanes=536870912,null}return qr(t,i)}var o=e.memoizedState;if(o!==null){var l=o.dehydrated;if(Ys(t),a)if(t.flags&256)t.flags&=-257,t=Vm(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(A(558));else if(Ke||ha(e,t,n,!1),a=(n&e.childLanes)!==0,Ke||a){if(qi.current===null){if(i=Te,i!==null&&(l=Qp(i,n),l!==0&&l!==o.retryLane))throw o.retryLane=l,xa(e,l),It(i,e,l),ud;Tu()}t=Vm(e,t,n)}else e=o.treeContext,Ce=dn(l.nextSibling),ot=t,oe=!0,Di=null,fn=!1,e!==null&&Ng(t,e),t=qr(t,i),t.flags|=134221824;return t}return e=ai(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Va(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(A(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Zs(e,t,n,i,a){return ma(t),n=Jf(e,t,n,i,void 0,a),i=Wf(),e!==null&&!Ke?($f(e,t,a),si(e,t,a)):(oe&&i&&Uu(t),t.flags|=1,Ze(e,t,n,a),t.child)}function Ym(e,t,n,i,a,o){return ma(t),t.updateQueue=null,n=_g(t,i,n,a),Hg(e),i=Wf(),e!==null&&!Ke?($f(e,t,o),si(e,t,o)):(oe&&i&&Uu(t),t.flags|=1,Ze(e,t,n,o),t.child)}function qm(e,t,n,i,a){if(ma(t),t.stateNode===null){var o=$a,l=n.contextType;typeof l=="object"&&l!==null&&(o=ct(l)),o=new n(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Ks,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},Kf(t),l=n.contextType,o.context=typeof l=="object"&&l!==null?ct(l):$a,o.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(is(t,n,l,i),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(l=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),l!==o.state&&Ks.enqueueReplaceState(o,o.state,null),hl(t,i,o,a),dl(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var r=t.memoizedProps,u=ba(n,r);o.props=u;var c=o.context,f=n.contextType;l=$a,typeof f=="object"&&f!==null&&(l=ct(f));var p=n.getDerivedStateFromProps;f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(r||c!==l)&&km(t,o,i,l),Ti=!1;var s=t.memoizedState;o.state=s,hl(t,i,o,a),dl(),c=t.memoizedState,r||s!==c||Ti?(typeof p=="function"&&(is(t,n,p,i),c=t.memoizedState),(u=Ti||Um(t,n,u,i,s,c,l))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),o.props=i,o.state=c,o.context=l,i=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,Gs(e,t),l=t.memoizedProps,f=ba(n,l),o.props=f,p=t.pendingProps,s=o.context,c=n.contextType,u=$a,typeof c=="object"&&c!==null&&(u=ct(c)),r=n.getDerivedStateFromProps,(c=typeof r=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==p||s!==u)&&km(t,o,i,u),Ti=!1,s=t.memoizedState,o.state=s,hl(t,i,o,a),dl();var m=t.memoizedState;l!==p||s!==m||Ti||e!==null&&e.dependencies!==null&&cu(e.dependencies)?(typeof r=="function"&&(is(t,n,r,i),m=t.memoizedState),(f=Ti||Um(t,n,f,i,s,m,u)||e!==null&&e.dependencies!==null&&cu(e.dependencies))?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,m,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=m),o.props=i,o.state=m,o.context=u,i=f):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,Va(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=ga(t,e.child,null,a),t.child=ga(t,null,n,a)):Ze(e,t,n,a),t.memoizedState=o.state,e=t.child):e=si(e,t,a),e}function jm(e,t,n,i){return da(),t.flags|=256,Ze(e,t,n,i),t.child}var Fs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Js(e){return{baseLanes:e,cachePool:Rg()}}function Ws(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function vy(e,t,n){var i=t.pendingProps,a=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),l&&(a=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(a?Ui(t):ki(),(e=Ce)?(e=bb(e,fn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vi!==null?{id:Gn,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},n=xg(e),n.return=t,t.child=n,ot=t,Ce=null)):e=null,e===null)throw Yi(t);return Ed(e)?t.lanes=32:t.lanes=536870912,null}return o=i.children,i=i.fallback,a?(ki(),a=t.mode,o=Vu({mode:"hidden",children:o},a),i=ua(i,a,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,i=t.child,i.memoizedState=Js(n),i.childLanes=Ws(e,l,n),t.memoizedState=Fs,pl(null,i)):(Ui(t),cd(t,o))}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(u!==null)return lw(e,t,o,l,i,u,r,n)}return a?(ki(),a=i.fallback,o=t.mode,r=e.child,u=r.sibling,i=ai(r,{mode:"hidden",children:i.children}),i.subtreeFlags=r.subtreeFlags&1206910976,u!==null?a=ai(u,a):(a=ua(a,o,n,null),a.flags|=2),a.return=t,i.return=t,i.sibling=a,t.child=i,pl(null,i),i=t.child,a=e.child.memoizedState,a===null?a=Js(n):(o=a.cachePool,o!==null?(r=Xe._currentValue,o=o.parent!==r?{parent:r,pool:r}:o):o=Rg(),a={baseLanes:a.baseLanes|n,cachePool:o}),i.memoizedState=a,i.childLanes=Ws(e,l,n),t.memoizedState=Fs,pl(e.child,i)):(Ui(t),n=e.child,e=n.sibling,n=ai(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=n,t.memoizedState=null,n)}function cd(e,t){return t=Vu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vu(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Nr(e,t,n){return ga(t,e.child,null,n),e=cd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lw(e,t,n,i,a,o,l,r){if(n)return t.flags&256?(Ui(t),t.flags&=-257,Nr(e,t,r)):t.memoizedState!==null?(ki(),t.child=e.child,t.flags|=128,null):(ki(),o=a.fallback,l=t.mode,a=Vu({mode:"visible",children:a.children},l),o=ua(o,l,r,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,ga(t,e.child,null,r),a=t.child,a.memoizedState=Js(r),a.childLanes=Ws(e,i,r),t.memoizedState=Fs,pl(null,a));if(Ui(t),Ed(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var u=i.dgst;return i=u,i!==""&&(a=Error(A(419)),a.stack="",a.digest=i,Nl({value:a,source:null,stack:null})),Nr(e,t,r)}if(Ke||ha(e,t,r,!1),i=(r&e.childLanes)!==0,Ke||i){if(qi.current!==null)return Nr(e,t,r);if(i=Te,i!==null&&(a=Qp(i,r),a!==0&&a!==l.retryLane))throw l.retryLane=a,xa(e,a),It(i,e,a),ud;return Tf(o)||Tu(),Nr(e,t,r)}return Tf(o)?(t.flags|=192,t.child=e.child,null):(e=l.treeContext,Ce=dn(o.nextSibling),ot=t,oe=!0,Di=null,fn=!1,e!==null&&Ng(t,e),t=cd(t,a.children),t.flags|=134221824,t)}function Xm(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Gr(e.return,t,n)}function Km(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&du(n)===null&&(t=e),e=e.sibling}return t}function Mr(e,t,n,i,a,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:a,treeForkCount:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=i,l.tail=n,l.tailMode=a,l.treeForkCount=o)}function as(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function $s(e,t,n){var i=t.pendingProps,a=i.revealOrder,o=i.tail;i=i.children;var l=ft.current;if(t.flags&128)return Rl(t,l),null;var r=(l&2)!==0;if(r?(l=l&1|2,t.flags|=128):l&=1,Rl(t,l),a==="backwards"&&e!==null?(as(e),Ze(e,t,i,n),as(e)):Ze(e,t,i,n),i=oe?Tl:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xm(e,n,t);else if(e.tag===19)Xm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"backwards":n=Km(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null,as(t)),Mr(t,!0,a,null,o,i);break;case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&du(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Mr(t,!0,n,null,o,i);break;case"together":Mr(t,!1,null,null,void 0,i);break;case"independent":t.memoizedState=null;break;default:n=Km(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Mr(t,!1,a,n,o,i)}return t.child}function Qm(e,t,n){var i=t.pendingProps;return Ai(t,t.type,i.value),Ze(e,t,i.children,n),t.child}function si(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ha(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=ai(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ai(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&cu(e)))}function rw(e,t,n){switch(t.tag){case 3:tu(t,t.stateNode.containerInfo),Ai(t,Xe,e.memoizedState.cache),da();break;case 27:case 5:Ms(t);break;case 4:tu(t,t.stateNode.containerInfo);break;case 10:Ai(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ys(t),null;break;case 13:var i=t.memoizedState;if(i!==null){if(i.dehydrated!==null)return Ui(t),t.flags|=128,null;i=ha(e,t,n,!1);var a=t.child.childLanes;return i||(n&a)!==0?vy(e,t,n):(Ui(t),e=si(e,t,n),e!==null?e.sibling:null)}Ui(t);break;case 19:if(t.flags&128)return $s(e,t,n);if(a=(e.flags&128)!==0,i=(n&t.childLanes)!==0,i||(ha(e,t,n,!1),i=(n&t.childLanes)!==0),a){if(i)return $s(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Rl(t,ft.current),i)break;return null;case 22:return t.lanes=0,by(e,t,n,t.pendingProps);case 24:Ai(t,Xe,e.memoizedState.cache)}return si(e,t,n)}function Sy(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!sd(e,n)&&(t.flags&128)===0)return Ke=!1,rw(e,t,n);Ke=(e.flags&131072)!==0}else Ke=!1,oe&&(t.flags&1048576)!==0&&Tg(t,Tl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ia(t.elementType),t.type=e,typeof e=="function")Vf(e)?(i=ba(e,i),t.tag=1,t=qm(null,t,e,i,n)):(t.tag=0,t=Zs(null,t,e,i,n));else{if(e!=null){var a=e.$$typeof;if(a===Cf){t.tag=11,t=Im(null,t,e,i,n);break e}else if(a===Of){t.tag=14,t=Gm(null,t,e,i,n);break e}else if(a===Pn){t.tag=10,t.type=e,t=Qm(null,t,n);break e}}throw t=Ts(e)||e,Error(A(306,t,""))}}return t;case 0:return Zs(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=ba(i,t.pendingProps),qm(e,t,i,a,n);case 3:e:{if(tu(t,t.stateNode.containerInfo),e===null)throw Error(A(387));i=t.pendingProps;var o=t.memoizedState;a=o.element,Gs(e,t),hl(t,i,null,n);var l=t.memoizedState;if(i=l.cache,Ai(t,Xe,i),i!==o.cache&&Ps(t,[Xe],n,!0),dl(),i=l.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=jm(e,t,i,n);break e}else if(i!==a){a=sn(Error(A(424)),t),Nl(a),t=jm(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ce=dn(e.firstChild),ot=t,oe=!0,Di=null,fn=!0,n=Og(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(da(),i===a){t=si(e,t,n);break e}Ze(e,t,i,n)}t=t.child}return t;case 26:return Va(e,t),e===null?(n=wp(t.type,null,t.pendingProps,null))?t.memoizedState=n:oe||(t.stateNode=cb(t.type,t.pendingProps,zi.current,t)):t.memoizedState=wp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ms(t),e===null&&oe&&(i=t.stateNode=vb(t.type,t.pendingProps,zi.current),ot=t,fn=!0,a=Ce,Qi(t.type)?(Nf=a,Ce=dn(i.firstChild)):Ce=a),Ze(e,t,t.pendingProps.children,n),Va(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((a=i=Ce)&&(i=$w(i,t.type,t.pendingProps,fn),i!==null?(t.stateNode=i,ot=t,Ce=dn(i.firstChild),fn=!1,a=!0):a=!1),a||Yi(t)),Ms(t),a=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,wf(a,o)?i=null:l!==null&&wf(a,l)&&(t.flags|=32),t.memoizedState!==null&&(a=Jf(e,t,FS,null,null,n),To._currentValue=a),Va(e,t),Ze(e,t,i,n),t.child;case 6:return e===null&&oe&&((e=n=Ce)&&(n=eE(n,t.pendingProps,fn),n!==null?(t.stateNode=n,ot=t,Ce=null,e=!0):e=!1),e||Yi(t)),null;case 13:return vy(e,t,n);case 4:return tu(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ga(t,null,i,n):Ze(e,t,i,n),t.child;case 11:return Im(e,t,t.type,t.pendingProps,n);case 7:return i=t.pendingProps,Va(e,t),Ze(e,t,i,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:return Qm(e,t,n);case 9:return a=t.type._context,i=t.pendingProps.children,ma(t),a=ct(a),i=i(a),t.flags|=1,Ze(e,t,i,n),t.child;case 14:return Gm(e,t,t.type,t.pendingProps,n);case 15:return yy(e,t,t.type,t.pendingProps,n);case 19:return $s(e,t,n);case 31:return ow(e,t,n);case 22:return by(e,t,n,t.pendingProps);case 24:return ma(t),i=ct(Xe),e===null?(a=jf(),a===null&&(a=Te,o=qf(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:i,cache:a},Kf(t),Ai(t,Xe,a)):((e.lanes&n)!==0&&(Gs(e,t),hl(t,null,null,n),dl()),a=e.memoizedState,o=t.memoizedState,a.parent!==i?(a={parent:i,cache:i},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ai(t,Xe,i)):(i=o.cache,Ai(t,Xe,i),i!==a.cache&&Ps(t,[Xe],n,!0))),Ze(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=t.pendingProps,i.name!=null&&i.name!=="auto"?t.flags|=e===null?18882560:18874368:oe&&Uu(t),e!==null&&e.memoizedProps.name!==i.name?t.flags|=4194816:Va(e,t),Ze(e,t,i.children,n),t.child;case 29:throw t.pendingProps}throw Error(A(156,t.tag))}function ti(e){e.flags|=4}function os(e,t,n,i,a){var o;if((o=(e.mode&32)!==0)&&(o=n===null?Tp(t,i):Tp(t,i)&&(i.src!==n.src||i.srcSet!==n.srcSet)),o){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Zy())e.flags|=8192;else throw sa=su,Xf}else e.flags&=-16777217}function Zm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!xb(t))if(Zy())e.flags|=8192;else throw sa=su,Xf}function Rr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?jp():536870912,e.lanes|=t,bo|=t)}function Wo(e,t){if(!oe)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags&1206910976,i|=a.flags&1206910976,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function uw(e,t,n){var i=t.pendingProps;switch(Yf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ae(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),oi(Xe),mo(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ga(t)?ti(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,es())),Ae(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(ti(t),o!==null?(Ae(t),Zm(t,o)):(Ae(t),os(t,a,null,i,n))):o?o!==e.memoizedState?(ti(t),Ae(t),Zm(t,o)):(Ae(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ti(t),Ae(t),os(t,a,e,i,n)),null;case 27:if(nu(t),n=zi.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ti(t);else{if(!i){if(t.stateNode===null)throw Error(A(166));return Ae(t),t.subtreeFlags&=-33554433,null}e=Vn.current,Ga(t)?Em(t,e):(e=vb(a,i,n),t.stateNode=e,ti(t))}return Ae(t),t.subtreeFlags&=-33554433,null;case 5:if(nu(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ti(t);else{if(!i){if(t.stateNode===null)throw Error(A(166));return Ae(t),t.subtreeFlags&=-33554433,null}if(o=Vn.current,Ga(t))Em(t,o);else{var l=Ll(zi.current);switch(o){case 1:o=l.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:o=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":o=l.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":o=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":o=l.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?l.createElement("select",{is:i.is}):l.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?l.createElement(a,{is:i.is}):l.createElement(a)}}o[ut]=t,o[Bt]=i;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)o.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=o;e:switch(dt(o,a,i),a){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ti(t)}}return Ae(t),t.subtreeFlags&=-33554433,os(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ti(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(A(166));if(e=zi.current,Ga(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,a=ot,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||rb(e.nodeValue,n)),e||Yi(t,!0)}else e=Ll(e).createTextNode(i),e[ut]=t,t.stateNode=e}return Ae(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Ga(t),n!==null){if(e===null){if(!i)throw Error(A(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(557));e[ut]=t}else da(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),e=!1}else n=es(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Kt(t),t):(Kt(t),null);if((t.flags&128)!==0)throw Error(A(558))}return Ae(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ga(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(A(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(A(317));a[ut]=t}else da(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),a=!1}else a=es(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Kt(t),t):(Kt(t),null)}return Kt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Rr(t,t.updateQueue),Ae(t),null);case 4:return mo(),e===null&&vd(t.stateNode.containerInfo),t.flags|=67108864,Ae(t),null;case 10:return oi(t.type),Ae(t),null;case 19:if(Zf(t),i=t.memoizedState,i===null)return Ae(t),null;if(a=(t.flags&128)!==0,o=i.rendering,o===null)if(a)Wo(i,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=du(e),o!==null){for(t.flags|=128,Wo(i,!1),e=o.updateQueue,t.updateQueue=e,Rr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Eg(n,e),n=n.sibling;return Rl(t,ft.current&1|2),oe&&ni(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ft()>Eu&&(t.flags|=128,a=!0,Wo(i,!1),t.lanes=4194304)}else{if(!a)if(e=du(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Rr(t,e),Wo(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!o.alternate&&!oe)return Ae(t),null}else 2*Ft()-i.renderingStartTime>Eu&&n!==536870912&&(t.flags|=128,a=!0,Wo(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}if(i.tail!==null){e=i.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ft(),e.sibling=null,o=ft.current,o=a?o&1|2:o&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||oe?Rl(t,o):(n=o,Oe(ht,t),Oe(ft,n),bt===null&&(bt=t)),oe&&ni(t,i.treeForkCount),e}return Ae(t),null;case 22:case 23:return Kt(t),Qf(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),n=t.updateQueue,n!==null&&Rr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&st(ca),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),oi(Xe),Ae(t),null;case 25:return null;case 30:return t.flags|=33554432,Ae(t),null}throw Error(A(156,t.tag))}function cw(e,t){switch(Yf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oi(Xe),mo(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return nu(t),null;case 31:if(t.memoizedState!==null){if(Kt(t),t.alternate===null)throw Error(A(340));da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Zf(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return mo(),null;case 10:return oi(t.type),null;case 22:case 23:return Kt(t),Qf(),e!==null&&st(ca),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return oi(Xe),null;case 25:return null;default:return null}}function wy(e,t){switch(Yf(t),t.tag){case 3:oi(Xe),mo();break;case 26:case 27:case 5:nu(t);break;case 4:mo();break;case 31:t.memoizedState!==null&&Kt(t);break;case 13:Kt(t);break;case 19:Zf(t);break;case 10:oi(t.type);break;case 22:case 23:Kt(t),Qf(),e!==null&&st(ca);break;case 24:oi(Xe)}}function ql(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var a=i.next;n=a;do{if((n.tag&e)===e){i=void 0;var o=n.create,l=n.inst;i=o(),l.destroy=i}n=n.next}while(n!==a)}}catch(r){Ee(t,t.return,r)}}function ji(e,t,n){try{var i=t.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var o=a.next;i=o;do{if((i.tag&e)===e){var l=i.inst,r=l.destroy;if(r!==void 0){l.destroy=void 0,a=t;var u=n,c=r;try{c()}catch(f){Ee(a,u,f)}}}i=i.next}while(i!==o)}}catch(f){Ee(t,t.return,f)}}function Ey(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{zg(t,n)}catch(i){Ee(e,e.return,i)}}}function xy(e,t,n){n.props=ba(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Ee(e,t,i)}}function Un(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var a=e.stateNode,o=ri(e.memoizedProps,a);(a.ref===null||a.ref.name!==o)&&(a.ref=hb(o)),i=a.ref;break;case 7:if(e.stateNode===null){var l=new tn(e);Gt(e.child,!1,Jw,l,void 0,void 0),e.stateNode=l}i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){Ee(e,t,r)}}function rt(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(a){Ee(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Ee(e,t,a)}else n.current=null}function yu(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)yb(e.stateNode,t[n])}function Fm(e){for(var t=e.return;t!==null&&(dd(t)&&yb(e.stateNode,t.stateNode),!fd(t));)t=t.return}function gl(e){for(var t=e.return;t!==null&&(dd(t)&&Ww(e.stateNode,t.stateNode),!fd(t));)t=t.return}function fd(e){return e.tag===5||e.tag===3||e.tag===27}function dd(e){return e&&e.tag===7&&e.stateNode!==null}function ef(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(a){Ee(e,e.return,a)}}function ls(e,t,n){try{var i=e.stateNode;Dw(i,e.type,n,t),i[Bt]=t}catch(a){Ee(e,e.return,a)}}function Ty(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qi(e.type)||e.tag===4}function rs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ty(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tf(e,t,n,i){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(a,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(a),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=In)),yu(e,i),me=!0;else if(a!==4&&(a===27&&(yu(e,i),i=null,Qi(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(tf(e,t,n,i),e=e.sibling;e!==null;)tf(e,t,n,i),e=e.sibling}function bu(e,t,n,i){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?n.insertBefore(a,t):n.appendChild(a),yu(e,i),me=!0;else if(a!==4&&(a===27&&(yu(e,i),i=null,Qi(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(bu(e,t,n,i),e=e.sibling;e!==null;)bu(e,t,n,i),e=e.sibling}function Ny(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);dt(t,i,n),t[ut]=e,t[Bt]=n}catch(o){Ee(e,e.return,o)}}var vu=!1,Qt=null;function Jm(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(vu=!0)}var kn=null;function Wm(){var e=kn;return kn=null,e}var kt=0;function Oo(e,t,n,i,a){return kt=0,My(e.child,t,n,i,a)}function My(e,t,n,i,a){for(var o=!1;e!==null;){if(e.tag===5){var l=e.stateNode;if(i!==null){var r=Ef(l);i.push(r),r.view&&(o=!0)}else o||Ef(l).view&&(o=!0);vu=!0,sb(l,kt===0?t:t+"_"+kt,n),kt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a||My(e.child,t,n,i,a)&&(o=!0));e=e.sibling}return o}function qn(e,t){for(;e!==null;)e.tag===5?fb(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||qn(e.child,t)),e=e.sibling}function jr(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(jr(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(A(544));var n=t.name;t=hi(t.default,t.share),t!=="none"&&(Oo(e,n,t,null,!1)||qn(e.child,!1))}e=e.sibling}}function nf(e,t){if(e.tag===30){var n=e.stateNode,i=e.memoizedProps,a=ri(i,n),o=hi(i.default,n.paired?i.share:i.enter);o!=="none"?Oo(e,a,o,null,!1)?(jr(e),n.paired||t||vo(e,i.onEnter)):qn(e.child,!1):jr(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)nf(e,t),e=e.sibling;else jr(e)}function af(e){if(Qt!==null&&Qt.size!==0){var t=Qt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,i=n.name;if(i!=null&&i!=="auto"){var a=t.get(i);if(a!==void 0){var o=hi(n.default,n.share);if(o!=="none"&&(Oo(e,i,o,null,!1)?(o=e.stateNode,a.paired=o,o.paired=a,vo(e,n.onShare)):qn(e.child,!1)),t.delete(i),t.size===0)break}}}af(e)}e=e.sibling}}}function of(e){if(e.tag===30){var t=e.memoizedProps,n=ri(t,e.stateNode),i=Qt!==null?Qt.get(n):void 0,a=hi(t.default,i!==void 0?t.share:t.exit);a!=="none"&&(Oo(e,n,a,null,!1)?i!==void 0?(a=e.stateNode,i.paired=a,a.paired=i,Qt.delete(n),vo(e,t.onShare)):vo(e,t.onExit):qn(e.child,!1)),Qt!==null&&af(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)of(e),e=e.sibling;else Qt!==null&&af(e)}function Ry(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=ri(t,e.stateNode);t=hi(t.default,t.update),e.flags&=-5,t!=="none"&&Oo(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Ry(e);e=e.sibling}}function lf(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,qn(e.child,!1))}lf(e)}e=e.sibling}}function Xr(e){if(e.tag===30)e.stateNode.paired=null,qn(e.child,!1),lf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Xr(e),e=e.sibling;else lf(e)}function Ay(e){for(e=e.child;e!==null;)e.tag===30?qn(e.child,!1):(e.subtreeFlags&33554432)!==0&&Ay(e),e=e.sibling}function hd(e,t,n,i,a,o,l){for(var r=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(o!==null&&kt<o.length){var c=o[kt],f=Ef(u);(c.view||f.view)&&(r=!0);var p;if(p=(e.flags&4)===0)if(f.clip)p=!0;else{p=c.rect;var s=f.rect;p=p.y!==s.y||p.x!==s.x||p.height!==s.height||p.width!==s.width}p&&(e.flags|=4),f.abs?f=!c.abs:(c=c.rect,f=f.rect,f=c.height!==f.height||c.width!==f.width),f&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&sb(u,kt===0?n:n+"_"+kt,a),r&&(e.flags&4)!==0||(kn===null&&(kn=[]),kn.push(u,kt===0?i:i+"_"+kt,t.memoizedProps)),kt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&l?e.flags|=t.flags&32:hd(e,t.child,n,i,a,o,l)&&(r=!0));t=t.sibling}return r}function Cy(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,i=e.stateNode,a=ri(n,i),o=hi(n.default,n.update);if(t){i=i.clones;var l=i===null?null:i.map(Iw)}else l=e.memoizedState,e.memoizedState=null;i=e;var r=e.child;kt=0,a=hd(i,r,a,a,o,l,!1),(e.flags&4)!==0&&a&&(t||vo(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&Cy(e,t);e=e.sibling}}var nt=!1,be=!1,Dn=!1,us=!1,$m=typeof WeakSet=="function"?WeakSet:Set,it=null,Hn=!1,ll=!1,Su=!1,rf=!1;function sw(e,t,n){if(e=e.containerInfo,vf=No,e=mg(e),If(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var o=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{i.nodeType,l.nodeType}catch{i=null;break e}var r=0,u=-1,c=-1,f=0,p=0,s=e,m=null;t:for(;;){for(var y;s!==i||o!==0&&s.nodeType!==3||(u=r+o),s!==l||a!==0&&s.nodeType!==3||(c=r+a),s.nodeType===3&&(r+=s.nodeValue.length),(y=s.firstChild)!==null;)m=s,s=y;for(;;){if(s===e)break t;if(m===i&&++f===o&&(u=r),m===l&&++p===a&&(c=r),(y=s.nextSibling)!==null)break;s=m,m=s.parentNode}s=y}i=u===-1||c===-1?null:{start:u,end:c}}else i=null}i=i||{start:0,end:0}}else i=null;for(Sf={focusedElem:e,selectionRange:i},No=!1,n=(n&335544064)===n,it=t,t=n?9270:1024;it!==null;){if(e=it,n&&(i=e.deletions,i!==null))for(o=0;o<i.length;o++)n&&of(i[o]);if(e.alternate===null&&(e.flags&2)!==0)n&&Jm(e),Ar(n);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&of(i),Ar(n);continue}else if(i!==null&&i.memoizedState!==null){n&&Jm(e),Ar(n);continue}}i=e.child,(e.subtreeFlags&t)!==0&&i!==null?(i.return=e,it=i):(n&&Ry(e),Ar(n))}}Qt=null}function Ar(e){for(;it!==null;){var t=it,n=e,i=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&i!==null){n=void 0,a=i.memoizedProps,i=i.memoizedState;var o=t.stateNode;try{var l=ba(t.type,a);n=o.getSnapshotBeforeUpdate(l,i),o.__reactInternalSnapshotBeforeUpdate=n}catch(r){Ee(t,t.return,r)}}break;case 3:if((a&1024)!==0){if(i=t.stateNode.containerInfo,n=i.nodeType,n===9)xf(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":xf(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=ri(i.memoizedProps,i.stateNode),a=t.memoizedProps,a=hi(a.default,a.update),a!=="none"&&Oo(i,n,a,i.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(A(163))}if(i=t.sibling,i!==null){i.return=t.return,it=i;break}it=t.return}}function Oy(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:_n(e,n),i&4&&ql(5,n);break;case 1:if(_n(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){Ee(n,n.return,l)}else{var a=ba(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){Ee(n,n.return,l)}}i&64&&Ey(n),i&512&&Un(n,n.return);break;case 3:if(_n(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{zg(e,t)}catch(l){Ee(n,n.return,l)}}break;case 27:t===null&&i&4&&Ny(n);case 26:case 5:_n(e,n),t===null&&i&4&&ef(n),i&512&&Un(n,n.return);break;case 12:_n(e,n);break;case 31:_n(e,n),i&4&&Hy(e,n);break;case 13:_n(e,n),i&4&&_y(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ew.bind(null,n),tE(e,n))));break;case 22:if(i=n.memoizedState!==null||nt,!i){var o=t!==null&&t.memoizedState!==null||be;t=nt,a=be,nt=i,(be=o)&&!a?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),yn(e,n,i)):_n(e,n),nt=t,be=a}break;case 30:_n(e,n),i&512&&Un(n,n.return);break;case 7:i&512&&Un(n,n.return);default:_n(e,n)}}function uf(e,t){for(e=e.child;e!==null;)Ly(e,t),e=e.sibling}function Ly(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var i=n.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var a=e.stateNode,o=e.memoizedProps.style,l=o!=null&&o.hasOwnProperty("display")?o.display:null;a.style.display=l==null||typeof l=="boolean"?"":(""+l).trim()}}catch(u){Ee(e,e.return,u)}cf(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,me=!0}catch(u){Ee(e,e.return,u)}break;case 18:try{var r=e.stateNode;t?pp(r,!0):pp(e.stateNode,!1)}catch(u){Ee(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&uf(e,t);break;default:uf(e,t)}}function cf(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,i=t;switch(n.tag){case 4:Ly(n,i);break e;case 22:n.memoizedState===null&&cf(n,i);break e;default:cf(n,i)}}e=e.sibling}}function zy(e){var t=e.alternate;t!==null&&(e.alternate=null,zy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ou(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,_t=!1;function gn(e,t,n){for(n=n.child;n!==null;)Dy(e,t,n),n=n.sibling}function Dy(e,t,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(kl,n)}catch{}switch(n.tag){case 26:be||rt(n,t),gn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!be&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:be||rt(n,t),gl(n);var i=Ue,a=_t;Qi(n.type)&&(Ue=n.stateNode,_t=!1),gn(e,t,n),Sb(n.stateNode,n.type,n.memoizedProps),Ue=i,_t=a;break;case 5:be||rt(n,t),gl(n);case 6:if(n.tag===6&&gl(n),i=Ue,a=_t,Ue=null,gn(e,t,n),Ue=i,_t=a,Ue!==null)if(_t)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(n.stateNode),me=!0}catch(o){Ee(n,t,o)}else try{Ue.removeChild(n.stateNode),me=!0}catch(o){Ee(n,t,o)}break;case 18:Ue!==null&&(_t?(e=Ue,mp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Mo(e)):mp(Ue,n.stateNode));break;case 4:i=Ue,a=_t,Ue=n.stateNode.containerInfo,_t=!0,gn(e,t,n),Ue=i,_t=a;break;case 0:case 11:case 14:case 15:ji(2,n,t),be||ji(4,n,t),gn(e,t,n);break;case 1:be||(rt(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&xy(n,t,i)),gn(e,t,n);break;case 21:gn(e,t,n);break;case 22:be=(i=be)||n.memoizedState!==null,gn(e,t,n),be=i;break;case 30:rt(n,t),gn(e,t,n);break;case 7:be||rt(n,t),gn(e,t,n);break;default:gn(e,t,n)}}function Hy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Mo(e)}catch(n){Ee(t,t.return,n)}}}function _y(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Mo(e)}catch(n){Ee(t,t.return,n)}}function fw(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $m),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $m),t;default:throw Error(A(435,e.tag))}}function Cr(e,t){var n=fw(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var a=xw.bind(null,e,i);i.then(a,a)}})}function Tt(e,t,n){var i=t.deletions;if(i!==null)for(var a=0;a<i.length;a++){var o=i[a],l=e,r=t,u=r;e:for(;u!==null;){switch(u.tag){case 27:if(Qi(u.type)){Ue=u.stateNode,_t=!1;break e}break;case 5:Ue=u.stateNode,_t=!1;break e;case 3:case 4:Ue=u.stateNode.containerInfo,_t=!0;break e}u=u.return}if(Ue===null)throw Error(A(160));Dy(l,r,o),Ue=null,_t=!1,l=o.alternate,l!==null&&(l.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Uy(t,e,n),t=t.sibling}var bn=null;function Uy(e,t,n){var i=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var o=0;o<i.length;o++){var l=i[o];l.ref.impl=l.nextImpl}Tt(t,e,n),Nt(e),a&4&&(ji(3,e,e.return),ql(3,e),ji(5,e,e.return));break;case 1:Tt(t,e,n),Nt(e),a&512&&(be||i===null||rt(i,i.return)),a&64&&nt&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=bn,Tt(t,e,n),Nt(e),a&512&&(be||i===null||rt(i,i.return)),a&4)if(a=i!==null?i.memoizedState:null,n=e.memoizedState,i===null)if(n===null)if(e.stateNode===null)if(nt)e.stateNode=cb(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;t:switch(t){case"title":i=a.getElementsByTagName("title")[0],(!i||i[Gl]||i[ut]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(t),a.head.insertBefore(i,a.querySelector("head > title"))),dt(i,t,n),i[ut]=e,at(i),t=i;break e;case"link":if(o=xp("link","href",a).get(t+(n.href||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(l,1);break t}}i=a.createElement(t),dt(i,t,n),a.head.appendChild(i);break;case"meta":if(o=xp("meta","content",a).get(t+(n.content||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(l,1);break t}}i=a.createElement(t),dt(i,t,n),a.head.appendChild(i);break;default:throw Error(A(468,t))}i[ut]=e,at(i),t=i}e.stateNode=t}else nt||Mf(o,e.type,e.stateNode);else e.stateNode=Ep(o,n,e.memoizedProps);else a!==n?(a===null?(t=i.stateNode,t===null||be||t.parentNode.removeChild(t)):a.count--,n===null?nt||Mf(o,e.type,e.stateNode):Ep(o,n,e.memoizedProps)):n===null&&e.stateNode!==null&&ls(e,e.memoizedProps,i.memoizedProps);break;case 27:Tt(t,e,n),Nt(e),a&512&&(be||i===null||rt(i,i.return)),i!==null&&a&4&&ls(e,e.memoizedProps,i.memoizedProps);break;case 5:if(o=Dn,Dn=!1,Tt(t,e,n),Dn=o,Nt(e),a&512&&(be||i===null||rt(i,i.return)),e.flags&32){t=e.stateNode;try{go(t,""),me=!0}catch(f){Ee(e,e.return,f)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,ls(e,t,i!==null?i.memoizedProps:t)),a&1024&&(us=!0);break;case 6:if(Tt(t,e,n),Nt(e),a&4){if(e.stateNode===null)throw Error(A(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,me=!0}catch(f){Ee(e,e.return,f)}}break;case 3:if(me=!1,Fr=null,o=bn,bn=zl(t.containerInfo),Tt(t,e,n),bn=o,Nt(e),a&4&&i!==null&&i.memoizedState.isDehydrated)try{Mo(t.containerInfo)}catch(f){Ee(e,e.return,f)}us&&(us=!1,ky(e)),me=!1;break;case 4:a=Dn,Dn=nt,i=om(),o=bn,bn=zl(e.stateNode.containerInfo),Tt(t,e,n),Nt(e),bn=o,me&&ll&&(Su=!0),me=i,Dn=a;break;case 12:Tt(t,e,n),Nt(e);break;case 31:Tt(t,e,n),Nt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cr(e,t)));break;case 13:Tt(t,e,n),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Yu=Ft()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cr(e,t)));break;case 22:o=e.memoizedState!==null,l=i!==null&&i.memoizedState!==null;var r=nt,u=be,c=Dn;nt=r||o,Dn=c||o,be=u||l,Tt(t,e,n),be=u,Dn=c,nt=r,Nt(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||i===null||l||nt||be||(t=l||be,n=nt,i=be,nt=o||nt,be=t,Ei(e,2),nt=n,be=i),!o&&Dn||uf(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Cr(e,n))));break;case 19:Tt(t,e,n),Nt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cr(e,t)));break;case 30:a&512&&(be||i===null||rt(i,i.return)),a=om(),o=ll,l=(n&335544064)===n,r=e.memoizedProps,ll=l&&hi(r.default,r.update)!=="none",Tt(t,e,n),Nt(e),l&&i!==null&&me&&(e.flags|=4),ll=o,me=a;break;case 21:break;case 7:a&512&&(be||i===null||rt(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:Tt(t,e,n),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Ty(i)){n=i;break}i=i.return}i=null;for(var a=e.return;a!==null;){if(dd(a)){var o=a.stateNode;i===null?i=[o]:i.push(o)}if(fd(a))break;a=a.return}var l=i;if(n==null)throw Error(A(160));switch(n.tag){case 27:var r=n.stateNode,u=rs(e);bu(e,u,r,l);break;case 5:var c=n.stateNode;n.flags&32&&(go(c,""),n.flags&=-33);var f=rs(e);bu(e,f,c,l);break;case 3:case 4:var p=n.stateNode.containerInfo,s=rs(e);tf(e,s,p,l);break;default:throw Error(A(161))}}catch(m){Ee(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ky(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ky(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,No=!0,t.reset(),No=!1),e=e.sibling}}function Ba(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Py(t,e),t=t.sibling;else Cy(t,!1)}function Py(e,t){var n=e.alternate;if(n===null)nf(e,!1);else switch(e.tag){case 3:if(rf=Hn=!1,Wm(),Ba(t,e),!Hn&&!Su){if(e=kn,e!==null)for(var i=0;i<e.length;i+=3){n=e[i];var a=e[i+1];fb(n,e[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),rf=!0}kn=null;break;case 5:Ba(t,e);break;case 4:i=Hn,Hn=!1,Ba(t,e),Hn&&(Su=!0),Hn=i;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?nf(e,!1):Ba(t,e));break;case 30:i=Hn,a=Wm(),Hn=!1,Ba(t,e),Hn&&(e.flags|=4);var o=e.memoizedProps,l=e.stateNode;t=ri(o,l),l=ri(n.memoizedProps,l);var r=hi(o.default,o.update);r==="none"?t=!1:(o=n.memoizedState,n.memoizedState=null,n=e.child,kt=0,t=hd(e,n,t,l,r,o,!0),kt!==(o===null?0:o.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(vo(e,e.memoizedProps.onUpdate),kn=a):a!==null&&(a.push.apply(a,kn),kn=a),Hn=(e.flags&32)!==0?!0:i;break;default:Ba(t,e)}}function _n(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Oy(e,t.alternate,t),t=t.sibling}function Ei(e,t){for(e=e.child;e!==null;){var n=e,i=t;switch(n.tag){case 0:case 11:case 14:case 15:ji(4,n,n.return),Ei(n,i);break;case 1:rt(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&xy(n,n.return,a),Ei(n,i);break;case 27:(i&2)!==0&&Sb(n.stateNode,n.type,n.memoizedProps);case 5:rt(n,n.return),n.tag!==5&&n.tag!==27||gl(n),Ei(n,i);break;case 6:gl(n);break;case 26:rt(n,n.return),a=n.stateNode,n.memoizedState!==null||a===null||be||a.parentNode.removeChild(a),Ei(n,i);break;case 22:n.memoizedState===null&&Ei(n,i);break;case 30:rt(n,n.return),Ei(n,i);break;case 7:rt(n,n.return);default:Ei(n,i)}e=e.sibling}}function yn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var i=t.alternate,a=e,o=t,l=o.flags,r=(n&1)!==0;switch(o.tag){case 0:case 11:case 15:yn(a,o,n),ql(4,o);break;case 1:if(yn(a,o,n),i=o,a=i.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(f){Ee(i,i.return,f)}if(i=o,a=i.updateQueue,a!==null){var u=i.stateNode;try{var c=a.shared.hiddenCallbacks;if(c!==null)for(a.shared.hiddenCallbacks=null,a=0;a<c.length;a++)Lg(c[a],u)}catch(f){Ee(i,i.return,f)}}r&&l&64&&Ey(o),Un(o,o.return);break;case 27:(n&2)!==0&&Ny(o);case 5:o.tag!==5&&o.tag!==27||Fm(o),yn(a,o,n),r&&i===null&&l&4&&ef(o),Un(o,o.return);break;case 6:Fm(o);break;case 26:u=o.stateNode,o.memoizedState!==null||u===null||nt||Mf(zl(u.ownerDocument),o.type,u),yn(a,o,n),r&&i===null&&l&4&&ef(o),Un(o,o.return);break;case 12:yn(a,o,n);break;case 31:yn(a,o,n),r&&l&4&&Hy(a,o);break;case 13:yn(a,o,n),r&&l&4&&_y(a,o);break;case 22:o.memoizedState===null&&yn(a,o,n),Un(o,o.return);break;case 30:yn(a,o,n),Un(o,o.return);break;case 7:Un(o,o.return);default:yn(a,o,n)}t=t.sibling}}function md(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Vl(n))}function pd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Vl(e))}function on(e,t,n,i){var a=(n&335544064)===n;if(t.subtreeFlags&(a?10262:10256))for(t=t.child;t!==null;)Iy(e,t,n,i),t=t.sibling;else a&&Ay(t)}function Iy(e,t,n,i){var a=(n&335544064)===n;a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Xr(t);var o=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,n,i),o&2048&&ql(9,t);break;case 1:on(e,t,n,i);break;case 3:on(e,t,n,i),a&&rf&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),o&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Vl(o)));break;case 12:if(o&2048){on(e,t,n,i),o=t.stateNode;try{var l=t.memoizedProps,r=l.id,u=l.onPostCommit;typeof u=="function"&&u(r,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(c){Ee(t,t.return,c)}}else on(e,t,n,i);break;case 31:on(e,t,n,i);break;case 13:on(e,t,n,i);break;case 23:break;case 22:l=t.stateNode,r=t.alternate,t.memoizedState!==null?(a&&r!==null&&r.memoizedState===null&&Xr(r),l._visibility&2?on(e,t,n,i):yl(e,t)):(a&&r!==null&&r.memoizedState!==null&&Xr(t),l._visibility&2?on(e,t,n,i):(l._visibility|=2,Ya(e,t,n,i,(t.subtreeFlags&10256)!==0||!1))),o&2048&&md(r,t);break;case 24:on(e,t,n,i),o&2048&&pd(t.alternate,t);break;case 30:a&&(o=t.alternate,o!==null&&(qn(o.child,!0),qn(t.child,!0))),on(e,t,n,i);break;default:on(e,t,n,i)}}function Ya(e,t,n,i,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,l=t,r=n,u=i,c=l.flags;switch(l.tag){case 0:case 11:case 15:Ya(o,l,r,u,a),ql(8,l);break;case 23:break;case 22:var f=l.stateNode;l.memoizedState!==null?f._visibility&2?Ya(o,l,r,u,a):yl(o,l):(f._visibility|=2,Ya(o,l,r,u,a)),a&&c&2048&&md(l.alternate,l);break;case 24:Ya(o,l,r,u,a),a&&c&2048&&pd(l.alternate,l);break;default:Ya(o,l,r,u,a)}t=t.sibling}}function yl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,a=i.flags;switch(i.tag){case 22:yl(n,i),a&2048&&md(i.alternate,i);break;case 24:yl(n,i),a&2048&&pd(i.alternate,i);break;default:yl(n,i)}t=t.sibling}}var aa=8192;function ta(e,t,n){if(e.subtreeFlags&aa)for(e=e.child;e!==null;)Gy(e,t,n),e=e.sibling}function Gy(e,t,n){switch(e.tag){case 26:ta(e,t,n),e.flags&aa&&(e.memoizedState!==null?pE(n,bn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Np(n,e)));break;case 5:ta(e,t,n),e.flags&aa&&(e=e.stateNode,(t&335544128)===t&&Np(n,e));break;case 3:case 4:var i=bn;bn=zl(e.stateNode.containerInfo),ta(e,t,n),bn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=aa,aa=16777216,ta(e,t,n),aa=i):ta(e,t,n));break;case 30:if((e.flags&aa)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var a=e.stateNode;a.paired=null,Qt===null&&(Qt=new Map),Qt.set(i,a)}ta(e,t,n);break;default:ta(e,t,n)}}function By(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function $o(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];it=i,Yy(i,e)}By(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vy(e),e=e.sibling}function Vy(e){switch(e.tag){case 0:case 11:case 15:$o(e),e.flags&2048&&ji(9,e,e.return);break;case 3:$o(e);break;case 12:$o(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Kr(e)):$o(e);break;default:$o(e)}}function Kr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];it=i,Yy(i,e)}By(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ji(8,t,t.return),Kr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Kr(t));break;default:Kr(t)}e=e.sibling}}function Yy(e,t){for(;it!==null;){var n=it;switch(n.tag){case 0:case 11:case 15:ji(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Vl(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,it=i;else e:for(n=e;it!==null;){i=it;var a=i.sibling,o=i.return;if(zy(i),i===n){it=null;break e}if(a!==null){a.return=o,it=a;break e}it=o}}}var dw={getCacheForType:function(e){var t=ct(Xe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ct(Xe).controller.signal}},hw=typeof WeakMap=="function"?WeakMap:Map,pe=0,Te=null,ue=null,se=0,Se=0,jt=null,Ci=!1,Lo=!1,gd=!1,fi=0,Be=0,Xi=0,fa=0,wu=0,Zt=0,bo=0,bl=null,Ut=null,sf=!1,Yu=0,qy=0,Eu=1/0,xu=null,Pi=null,Ie=0,Sn=null,va=null,Yn=0,ff=0,df=null,jy=null,so=null,fo=null,ho=null,vl=0,Qr=null;function $t(){return(pe&2)!==0&&se!==0?se&-se:Q.T!==null?bd():Zp()}function Xy(){if(Zt===0)if((se&536870912)===0||oe){var e=gr;gr<<=1,(gr&3932160)===0&&(gr=262144),Zt=e}else Zt=536870912;return e=ht.current,e!==null&&(e.flags|=32),Zt}function vo(e,t){if(t!=null){var n=e.stateNode,i=n.ref;i===null&&(i=n.ref=hb(ri(e.memoizedProps,n))),fo===null&&(fo=[]),fo.push(t.bind(null,i))}}function It(e,t,n){(e===Te&&(Se===2||Se===9)||e.cancelPendingCommit!==null)&&(So(e,0),Oi(e,se,Zt,!1)),Il(e,n),((pe&2)===0||e!==Te)&&(e===Te&&((pe&2)===0&&(fa|=n),Be===4&&Oi(e,se,Zt,!1)),Xn(e))}function Ky(e,t,n){if((pe&6)!==0)throw Error(A(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Pl(e,t),a=i?gw(e,t):cs(e,t,!0),o=i;do{if(a===0){Lo&&!i&&Oi(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!mw(n)){a=cs(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var r=e;a=bl;var u=r.current.memoizedState.isDehydrated;if(u&&(So(r,l).flags|=256),l=cs(r,l,!1),l!==2&&l!==6){if(gd&&!u){r.errorRecoveryDisabledLanes|=o,fa|=o,a=4;break e}o=Ut,Ut=a,o!==null&&(Ut===null?Ut=o:Ut.push.apply(Ut,o))}a=l}if(o=!1,a!==2)continue}}if(a===1){So(e,0),Oi(e,t,0,!0);break}e:{switch(i=e,o=a,o){case 0:case 1:throw Error(A(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Oi(i,t,Zt,!Ci);break e;case 2:Ut=null;break;case 3:case 5:break;default:throw Error(A(329))}if((t&62914560)===t&&(a=Yu+300-Ft(),10<a)){if(Oi(i,t,Zt,!Ci),Cu(i,0,!0)!==0)break e;Yn=t,i.timeoutHandle=Sd(ep.bind(null,i,n,Ut,xu,sf,t,Zt,fa,bo,Ci,o,"Throttled",-0,0),a);break e}ep(i,n,Ut,xu,sf,t,Zt,fa,bo,Ci,o,null,-0,0)}}break}while(!0);Xn(e)}function ep(e,t,n,i,a,o,l,r,u,c,f,p,s,m){e.timeoutHandle=-1;var y=t.subtreeFlags,b=(o&335544064)===o;if(p=null,(b||y&8192||(y&16785408)===16785408)&&(p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:In},Qt=null,Gy(t,o,p),b&&(y=p,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(y.count++,y.waitingForViewTransition=!0,y=Dl.bind(y),b.finished.then(y,y))),y=(o&62914560)===o?Yu-Ft():(o&4194048)===o?qy-Ft():0,y=gE(p,y),y!==null)){Yn=o,e.cancelPendingCommit=y(np.bind(null,e,t,o,n,i,a,l,r,u,c,f,p,null,s,m)),Oi(e,o,l,!c);return}np(e,t,o,n,i,a,l,r,u,c,f,p)}function mw(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var a=n[i],o=a.getSnapshot;a=a.value;try{if(!en(o(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Oi(e,t,n,i){t=qp(e,t),t&=~wu,t&=~fa,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var a=t;0<a;){var o=31-Wt(a),l=1<<o;i[o]=-1,a&=~l}n!==0&&Xp(e,n,t)}function qu(){return(pe&6)===0?(jl(0,!1),!1):!0}function yd(){if(ue!==null){if(Se===0)var e=ue.return;else e=ue,ii=Ta=null,ed(e),ro=null,Ml=0,e=ue;for(;e!==null;)wy(e.alternate,e),e=e.return;ue=null}}function So(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Uw(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Yn=0,yd(),Te=e,ue=n=ai(e.current,null),se=t,Se=0,jt=null,Ci=!1,Lo=Pl(e,t),gd=!1,bo=Zt=wu=fa=Xi=Be=0,Ut=bl=null,sf=!1,fi=qp(e,t),Hu(),n}function Qy(e,t){ee=null,Q.H=pu,t===Co||t===ku?(t=Rm(),Se=3):t===Xf?(t=Rm(),Se=4):Se=t===ud?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,ue===null&&(Be=1,gu(e,sn(t,e.current)))}function Zy(){var e=ht.current;return e===null?!0:(se&4194048)===se?bt===null:(se&62914560)===se||(se&536870912)!==0?e===bt:!1}function Fy(){var e=Q.H;return Q.H=pu,e===null?pu:e}function Jy(){var e=Q.A;return Q.A=dw,e}function Tu(){Be=4,Ci||(se&4194048)!==se&&ht.current!==null||(Lo=!0),(Xi&134217727)===0&&(fa&134217727)===0||Te===null||Oi(Te,se,Zt,!1)}function cs(e,t,n){var i=pe;pe|=2;var a=Fy(),o=Jy();(Te!==e||se!==t)&&(xu=null,So(e,t)),t=!1;var l=Be;e:do try{if(Se!==0&&ue!==null){var r=ue,u=jt;switch(Se){case 8:yd(),l=6;break e;case 3:case 2:case 9:case 6:ht.current===null&&(t=!0);var c=Se;if(Se=0,jt=null,no(e,r,u,c),n&&Lo){l=0;break e}break;default:c=Se,Se=0,jt=null,no(e,r,u,c)}}pw(),l=Be;break}catch(f){Qy(e,f)}while(!0);return t&&e.shellSuspendCounter++,ii=Ta=null,pe=i,Q.H=a,Q.A=o,ue===null&&(Te=null,se=0,Hu()),l}function pw(){for(;ue!==null;)Wy(ue)}function gw(e,t){var n=pe;pe|=2;var i=Fy(),a=Jy();Te!==e||se!==t?(xu=null,Eu=Ft()+500,So(e,t)):Lo=Pl(e,t);e:do try{if(Se!==0&&ue!==null){t=ue;var o=jt;t:switch(Se){case 1:Se=0,jt=null,no(e,t,o,1);break;case 2:case 9:if(Mm(o)){Se=0,jt=null,tp(t);break}t=function(){Se!==2&&Se!==9||Te!==e||(Se=7),Xn(e)},o.then(t,t);break e;case 3:Se=7;break e;case 4:Se=5;break e;case 7:Mm(o)?(Se=0,jt=null,tp(t)):(Se=0,jt=null,no(e,t,o,7));break;case 5:var l=null;switch(ue.tag){case 26:l=ue.memoizedState;case 5:case 27:var r=ue;if(l?xb(l):r.stateNode.complete){Se=0,jt=null;var u=r.sibling;if(u!==null)ue=u;else{var c=r.return;c!==null?(ue=c,ju(c)):ue=null}break t}}Se=0,jt=null,no(e,t,o,5);break;case 6:Se=0,jt=null,no(e,t,o,6);break;case 8:yd(),Be=6;break e;default:throw Error(A(462))}}yw();break}catch(f){Qy(e,f)}while(!0);return ii=Ta=null,Q.H=i,Q.A=a,pe=n,ue!==null?0:(Te=null,se=0,Hu(),Be)}function yw(){for(;ue!==null&&!H1();)Wy(ue)}function Wy(e){var t=Sy(e.alternate,e,fi);e.memoizedProps=e.pendingProps,t===null?ju(e):ue=t}function tp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ym(n,t,t.pendingProps,t.type,void 0,se);break;case 11:t=Ym(n,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:ed(t);var i=t;i===ot&&(oe?(uu(i),i.tag===5&&i.stateNode!=null&&(Ce=i.stateNode)):(uu(i),oe=!0));default:wy(n,t),t=ue=Eg(t,fi),t=Sy(n,t,fi)}e.memoizedProps=e.pendingProps,t===null?ju(e):ue=t}function no(e,t,n,i){ii=Ta=null,ed(t),ro=null,Ml=0;var a=t.return;try{if(aw(e,a,t,n,se)){Be=1,gu(e,sn(n,e.current)),ue=null;return}}catch(o){if(a!==null)throw ue=a,o;Be=1,gu(e,sn(n,e.current)),ue=null;return}t.flags&32768?(oe||i===1?e=!0:Lo||(se&536870912)!==0?e=!1:(Ci=e=!0,(i===2||i===9||i===3||i===6)&&(i=ht.current,i!==null&&i.tag===13&&(i.flags|=16384))),$y(t,e)):ju(t)}function ju(e){var t=e;do{if((t.flags&32768)!==0){$y(t,Ci);return}e=t.return;var n=uw(t.alternate,t,fi);if(n!==null){ue=n;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);Be===0&&(Be=5)}function $y(e,t){do{var n=cw(e.alternate,e);if(n!==null){n.flags&=32767,ue=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ue=e;return}ue=e=n}while(e!==null);Be=6,ue=null}function np(e,t,n,i,a,o,l,r,u,c,f,p){e.cancelPendingCommit=null;do Xu();while(Ie!==0);if((pe&6)!==0)throw Error(A(327));if(t!==null){if(t===e.current)throw Error(A(177));e===Te&&(ue=Te=null,se=0),va=t,Sn=e,Yn=n,df=a,jy=i,bw(e,t,n,l,r,u,p)}}function bw(e,t,n,i,a,o,l){var r=t.lanes|t.childLanes;if(ff=r,r|=Gf,q1(e,n,r,i,a,o),fo=null,(n&335544064)===n?(ho=XS(e),i=10262):(ho=null,i=10256),(t.subtreeFlags&i)!==0||(t.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,Tw(iu,function(){return gf(),null})):(e.callbackNode=null,e.callbackPriority=0),vu=!1,i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null,a=ge.p,ge.p=2,o=pe,pe|=4;try{sw(e,t,n)}finally{pe=o,ge.p=a,Q.T=i}}Ie=1,vu?so=Vw(l,e.containerInfo,ho,hf,mf,Sw,pf,gf,vw,null,null):(hf(),mf(),pf())}function vw(e){if(Ie!==0){var t=Sn.onRecoverableError;t(e,{componentStack:null})}}function Sw(){Ie===3&&(Ie=0,Py(va,Sn),Ie=4)}function hf(){if(Ie===1){Ie=0;var e=Sn,t=va,n=Yn,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null;var a=ge.p;ge.p=2;var o=pe;pe|=4;try{ll=Su=!1,Uy(t,e,n),n=Sf;var l=mg(e.containerInfo),r=n.focusedElem,u=n.selectionRange;if(l!==r&&r&&r.ownerDocument&&hg(r.ownerDocument.documentElement,r)){if(u!==null&&If(r)){var c=u.start,f=u.end;if(f===void 0&&(f=c),"selectionStart"in r)r.selectionStart=c,r.selectionEnd=Math.min(f,r.value.length);else{var p=r.ownerDocument||document,s=p&&p.defaultView||window;if(s.getSelection){var m=s.getSelection(),y=r.textContent.length,b=Math.min(u.start,y),w=u.end===void 0?b:Math.min(u.end,y);!m.extend&&b>w&&(l=w,w=b,b=l);var h=bm(r,b),d=bm(r,w);if(h&&d&&(m.rangeCount!==1||m.anchorNode!==h.node||m.anchorOffset!==h.offset||m.focusNode!==d.node||m.focusOffset!==d.offset)){var g=p.createRange();g.setStart(h.node,h.offset),m.removeAllRanges(),b>w?(m.addRange(g),m.extend(d.node,d.offset)):(g.setEnd(d.node,d.offset),m.addRange(g))}}}}for(p=[],m=r;m=m.parentNode;)m.nodeType===1&&p.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<p.length;r++){var S=p[r];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}No=!!vf,Sf=vf=null}finally{pe=o,ge.p=a,Q.T=i}}e.current=t,Ie=2}}function mf(){if(Ie===2){Ie=0;var e=Sn,t=va,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=Q.T,Q.T=null;var i=ge.p;ge.p=2;var a=pe;pe|=4;try{Oy(e,t.alternate,t)}finally{pe=a,ge.p=i,Q.T=n}}Ie=3}}function pf(){if(Ie===4||Ie===3){Ie=0;var e=so;so=null,_1();var t=Sn,n=va,i=Yn,a=jy,o=(i&335544064)===i?10262:10256;if((n.subtreeFlags&o)!==0||(n.flags&o)!==0?Ie=5:(Ie=0,va=Sn=null,eb(t,t.pendingLanes)),o=t.pendingLanes,o===0&&(Pi=null),Df(i),n=n.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(kl,n,void 0,(n.current.flags&128)===128)}catch{}if(a!==null){n=Q.T,o=ge.p,ge.p=2,Q.T=null;try{for(var l=t.onRecoverableError,r=0;r<a.length;r++){var u=a[r];l(u.value,{componentStack:u.stack})}}finally{Q.T=n,ge.p=o}}if(a=fo,l=ho,ho=null,a!==null&&(fo=null,l===null&&(l=[]),e!==null))for(u=0;u<a.length;u++)n=(0,a[u])(l),n!==void 0&&e.finished.finally(n);(Yn&3)!==0&&Xu(),Xn(t),o=t.pendingLanes,(i&261930)!==0&&(o&42)!==0?t===Qr?vl++:(vl=0,Qr=t):(vl=0,Qr=null),jl(0,!1)}}function eb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Vl(t)))}function Xu(){return so!==null&&(so.skipTransition(),so=null),hf(),mf(),pf(),gf()}function gf(){if(Ie!==5)return!1;var e=Sn,t=ff;ff=0;var n=Df(Yn),i=Q.T,a=ge.p;try{ge.p=32>n?32:n,Q.T=null,n=df,df=null;var o=Sn,l=Yn;if(Ie=0,va=Sn=null,Yn=0,(pe&6)!==0)throw Error(A(331));var r=pe;if(pe|=4,Vy(o.current),Iy(o,o.current,l,n),pe=r,jl(0,!1),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(kl,o)}catch{}return!0}finally{ge.p=a,Q.T=i,eb(e,t)}}function ip(e,t,n){t=sn(n,t),t=Qs(e.stateNode,t,2),e=_i(e,t,2),e!==null&&(Il(e,2),Xn(e))}function Ee(e,t,n){if(e.tag===3)ip(e,e,n);else for(;t!==null;){if(t.tag===3){ip(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Pi===null||!Pi.has(i))){e=sn(n,e),n=py(2),i=_i(t,n,2),i!==null&&(gy(n,i,t,e),Il(i,2),Xn(i));break}}t=t.return}}function ss(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new hw;var a=new Set;i.set(t,a)}else a=i.get(t),a===void 0&&(a=new Set,i.set(t,a));a.has(n)||(gd=!0,a.add(n),e=ww.bind(null,e,t,n),t.then(e,e))}function ww(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Te===e&&(se&n)===n&&((Be===4||Be===3&&(se&62914560)===se&&300>Ft()-Yu)&&(pe&2)===0?So(e,0):wu|=n,bo===se&&(bo=0)),Xn(e)}function tb(e,t){t===0&&(t=jp()),e=xa(e,t),e!==null&&(Il(e,t),Xn(e))}function Ew(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tb(e,n)}function xw(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(A(314))}i!==null&&i.delete(t),tb(e,n)}function Tw(e,t){return Lf(e,t)}var wo=null,qa=null,yf=!1,Nu=!1,fs=!1,Li=0;function Xn(e){e!==qa&&e.next===null&&(qa===null?wo=qa=e:qa=qa.next=e),Nu=!0,yf||(yf=!0,Mw())}function jl(e,t){if(!fs&&Nu){fs=!0;do for(var n=!1,i=wo;i!==null;){if(!t)if(e!==0){var a=i.pendingLanes;if(a===0)var o=0;else{var l=i.suspendedLanes,r=i.pingedLanes;o=(1<<31-Wt(42|e)+1)-1,o&=a&~(l&~r),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,ap(i,o))}else o=se,o=Cu(i,i===Te?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Pl(i,o)||(n=!0,ap(i,o));i=i.next}while(n);fs=!1}}function Nw(){nb()}function nb(){Nu=yf=!1;var e=0;Li!==0&&_w()&&(e=Li);for(var t=Ft(),n=null,i=wo;i!==null;){var a=i.next,o=ib(i,t);o===0?(i.next=null,n===null?wo=a:n.next=a,a===null&&(qa=n)):(n=i,(e!==0||(o&3)!==0)&&(Nu=!0)),i=a}Ie!==0&&Ie!==5||jl(e,!1),Li!==0&&(Li=0)}function ib(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var l=31-Wt(o),r=1<<l,u=a[l];u===-1?((r&n)===0||(r&i)!==0)&&(a[l]=Y1(r,t)):u<=t&&(e.expiredLanes|=r),o&=~r}if(t=Te,n=se,n=Cu(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Se===2||Se===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Yc(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Pl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Yc(i),Df(n)){case 2:case 8:n=Vp;break;case 32:n=iu;break;case 268435456:n=Yp;break;default:n=iu}return i=ab.bind(null,e),n=Lf(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Yc(i),e.callbackPriority=2,e.callbackNode=null,2}function ab(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xu()&&e.callbackNode!==n)return null;var i=se;return i=Cu(e,e===Te?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Ky(e,i,t),ib(e,Ft()),e.callbackNode!=null&&e.callbackNode===n?ab.bind(null,e):null)}function ap(e,t){if(Xu())return null;Ky(e,t,!0)}function Mw(){kw(function(){(pe&6)!==0?Lf(Bp,Nw):nb()})}function bd(){if(Li===0){var e=pa;e===0&&(e=pr,pr<<=1,(pr&261888)===0&&(pr=256)),Li=e}return Li}function op(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ur(e)}function Rw(e,t,n,i,a){if(t==="submit"&&n&&n.stateNode===a){var o=op((a[Bt]||null).action),l=i.submitter;l&&(t=(t=l[Bt]||null)?op(t.formAction):l.getAttribute("formAction"),t!==null&&(o=t,l=null));var r=new Lu("action","action",null,i,a);e.push({event:r,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Li!==0){var u=new FormData(a,l);Xs(n,{pending:!0,data:u,method:a.method,action:o},null,u)}}else typeof o=="function"&&(r.preventDefault(),u=new FormData(a,l),Xs(n,{pending:!0,data:u,method:a.method,action:o},o,u))},currentTarget:a}]})}}for(Or=0;Or<_s.length;Or++)Lr=_s[Or],lp=Lr.toLowerCase(),rp=Lr[0].toUpperCase()+Lr.slice(1),wn(lp,"on"+rp);var Lr,lp,rp,Or;wn(gg,"onAnimationEnd");wn(yg,"onAnimationIteration");wn(bg,"onAnimationStart");wn("dblclick","onDoubleClick");wn("focusin","onFocus");wn("focusout","onBlur");wn(PS,"onTransitionRun");wn(IS,"onTransitionStart");wn(GS,"onTransitionCancel");wn(vg,"onTransitionEnd");po("onMouseEnter",["mouseout","mouseover"]);po("onMouseLeave",["mouseout","mouseover"]);po("onPointerEnter",["pointerout","pointerover"]);po("onPointerLeave",["pointerout","pointerover"]);wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));wa("onBeforeInput",["compositionend","keypress","textInput","paste"]);wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cl="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(" "),Aw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cl));function ob(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],a=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var l=i.length-1;0<=l;l--){var r=i[l],u=r.instance,c=r.currentTarget;if(r=r.listener,u!==o&&a.isPropagationStopped())break e;o=r,a.currentTarget=c;try{o(a)}catch(f){ou(f)}a.currentTarget=null,o=u}else for(l=0;l<i.length;l++){if(r=i[l],u=r.instance,c=r.currentTarget,r=r.listener,u!==o&&a.isPropagationStopped())break e;o=r,a.currentTarget=c;try{o(a)}catch(f){ou(f)}a.currentTarget=null,o=u}}}}function re(e,t){var n=t[tm];n===void 0&&(n=t[tm]=new Set);var i=e+"__bubble";n.has(i)||(lb(t,e,2,!1),n.add(i))}function ds(e,t,n){var i=0;t&&(i|=4),lb(n,e,i,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function vd(e){if(!e[zr]){e[zr]=!0,Jp.forEach(function(n){n!=="selectionchange"&&(Aw.has(n)||ds(n,!1,e),ds(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zr]||(t[zr]=!0,ds("selectionchange",!1,t))}}function lb(e,t,n,i){switch(Ob(t)){case 2:var a=SE;break;case 8:a=wE;break;default:a=Md}n=a.bind(null,t,n,e),a=void 0,!Ls||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),i?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function hs(e,t,n,i,a){var o=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var l=i.tag;if(l===3||l===4){var r=i.stateNode.containerInfo;if(r===a)break;if(l===4)for(l=i.return;l!==null;){var u=l.tag;if((u===3||u===4)&&l.stateNode.containerInfo===a)return;l=l.return}for(;r!==null;){if(l=oa(r),l===null)return;if(u=l.tag,u===5||u===6||u===26||u===27){i=o=l;continue e}r=r.parentNode}}i=i.return}og(function(){var c=o,f=_f(n),p=[];e:{var s=Sg.get(e);if(s!==void 0){var m=Lu,y=e;switch(e){case"keypress":if(Pr(n)===0)break e;case"keydown":case"keyup":m=mS;break;case"focusin":y="focus",m=Zc;break;case"focusout":y="blur",m=Zc;break;case"beforeblur":case"afterblur":m=Zc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=cm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=nS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=vS;break;case gg:case yg:case bg:m=oS;break;case vg:m=wS;break;case"scroll":case"scrollend":m=eS;break;case"wheel":m=xS;break;case"copy":case"cut":case"paste":m=rS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=fm;break;case"submit":m=yS;break;case"toggle":case"beforetoggle":m=NS}var b=(t&4)!==0,w=!b&&(e==="scroll"||e==="scrollend"),h=b?s!==null?s+"Capture":null:s;b=[];for(var d=c,g;d!==null;){var S=d;if(g=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||g===null||h===null||(S=wl(d,h),S!=null&&b.push(Ol(d,S,g))),w)break;d=d.return}0<b.length&&(s=new m(s,y,null,n,f),p.push({event:s,listeners:b}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",s=e==="mouseout"||e==="pointerout",m&&n!==Os&&(y=n.relatedTarget||n.fromElement)&&(oa(y)||y[Ro]))break e;(s||m)&&(y=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,s?(m=n.relatedTarget||n.toElement,s=c,m=m?oa(m):null,m!==null&&(w=Ul(m),b=m.tag,m!==w||b!==5&&b!==27&&b!==6)&&(m=null)):(s=null,m=c),s!==m&&(b=cm,S="onMouseLeave",h="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(b=fm,S="onPointerLeave",h="onPointerEnter",d="pointer"),w=s==null?y:al(s),g=m==null?y:al(m),y=new b(S,d+"leave",s,n,f),y.target=w,y.relatedTarget=g,S=null,oa(f)===c&&(b=new b(h,d+"enter",m,n,f),b.target=g,b.relatedTarget=w,S=b),w=S,b=s&&m?bs(s,m,Cw):null,s!==null&&up(p,y,s,b,!1),m!==null&&w!==null&&up(p,w,m,b,!0)))}e:{if(s=c?al(c):window,m=s.nodeName&&s.nodeName.toLowerCase(),m==="select"||m==="input"&&s.type==="file")var x=pm;else if(mm(s))if(fg)x=_S;else{x=DS;var N=zS}else m=s.nodeName,!m||m.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&Hf(c.elementType)&&(x=pm):x=HS;if(x&&(x=x(e,c))){sg(p,x,n,f);break e}N&&N(e,s,c)}switch(N=c?al(c):window,e){case"focusin":(mm(N)||N.contentEditable==="true")&&(Fa=N,Ds=c,cl=null);break;case"focusout":cl=Ds=Fa=null;break;case"mousedown":Hs=!0;break;case"contextmenu":case"mouseup":case"dragend":Hs=!1,vm(p,n,f);break;case"selectionchange":if(kS)break;case"keydown":case"keyup":vm(p,n,f)}var E;if(Pf)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else Za?ug(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(rg&&n.locale!=="ko"&&(Za||M!=="onCompositionStart"?M==="onCompositionEnd"&&Za&&(E=lg()):(Ri=f,Uf="value"in Ri?Ri.value:Ri.textContent,Za=!0)),N=Mu(c,M),0<N.length&&(M=new sm(M,e,null,n,f),p.push({event:M,listeners:N}),E?M.data=E:(E=cg(n),E!==null&&(M.data=E)))),(E=RS?AS(e,n):CS(e,n))&&(M=Mu(c,"onBeforeInput"),0<M.length&&(N=new sm("onBeforeInput","beforeinput",null,n,f),p.push({event:N,listeners:M}),N.data=E)),Rw(p,e,c,n,f)}ob(p,t)})}function Ol(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mu(e,t){for(var n=t+"Capture",i=[];e!==null;){var a=e,o=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||o===null||(a=wl(e,n),a!=null&&i.unshift(Ol(e,a,o)),a=wl(e,t),a!=null&&i.push(Ol(e,a,o))),e.tag===3)return i;e=e.return}return[]}function Cw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function up(e,t,n,i,a){for(var o=t._reactName,l=[];n!==null&&n!==i;){var r=n,u=r.alternate,c=r.stateNode;if(r=r.tag,u!==null&&u===i)break;r!==5&&r!==26&&r!==27||c===null||(u=c,a?(c=wl(n,o),c!=null&&l.unshift(Ol(n,c,u))):a||(c=wl(n,o),c!=null&&l.push(Ol(n,c,u)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Ow=/\r\n?/g,Lw=/\u0000|\uFFFD/g;function cp(e){return(typeof e=="string"?e:""+e).replace(Ow,`
767
+ `).replace(Lw,"")}function rb(e,t){return t=cp(t),cp(e)===t}function we(e,t,n,i,a,o){switch(n){case"children":if(typeof i=="string")t==="body"||t==="textarea"&&i===""||go(e,i);else if(typeof i=="number"||typeof i=="bigint")t!=="body"&&go(e,""+i);else return;break;case"className":br(e,"class",i);break;case"tabIndex":br(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":br(e,n,i);break;case"style":ag(e,i,o);return;case"data":if(t!=="object"){br(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Ur(i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"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 o=="function"&&(n==="formAction"?(t!=="input"&&we(e,t,"name",a.name,a,null),we(e,t,"formEncType",a.formEncType,a,null),we(e,t,"formMethod",a.formMethod,a,null),we(e,t,"formTarget",a.formTarget,a,null)):(we(e,t,"encType",a.encType,a,null),we(e,t,"method",a.method,a,null),we(e,t,"target",a.target,a,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Ur(i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=In);return;case"onScroll":i!=null&&re("scroll",e);return;case"onScrollEnd":i!=null&&re("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(A(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(A(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Ur(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":re("beforetoggle",e),re("toggle",e),_r(e,"popover",i);break;case"xlinkActuate":ei(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ei(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ei(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ei(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ei(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ei(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ei(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ei(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ei(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":_r(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=W1.get(n)||n,_r(e,n,i);else return}me=!0}function bf(e,t,n,i,a,o){switch(n){case"style":ag(e,i,o);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(A(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(A(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof i=="string")go(e,i);else if(typeof i=="number"||typeof i=="bigint")go(e,""+i);else return;break;case"onScroll":i!=null&&re("scroll",e);return;case"onScrollEnd":i!=null&&re("scrollend",e);return;case"onClick":i!=null&&(e.onclick=In);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Wp.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),o=n.slice(2,a?n.length-7:void 0),t=e[Bt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(o,t,a),typeof i=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,i,a);break e}me=!0,n in e?e[n]=i:i===!0?e.setAttribute(n,""):_r(e,n,i)}return}me=!0}function dt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":re("error",e),re("load",e);var i=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var l=n[o];if(l!=null)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(A(137,t));default:we(e,t,o,l,n,null)}}a&&we(e,t,"srcSet",n.srcSet,n,null),i&&we(e,t,"src",n.src,n,null);return;case"input":re("invalid",e);var r=o=l=a=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(f!=null)switch(i){case"name":a=f;break;case"type":l=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":o=f;break;case"defaultValue":r=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(A(137,t));break;default:we(e,t,i,f,n,null)}}tg(e,o,r,u,c,l,a,!1);return;case"select":re("invalid",e),i=l=o=null;for(a in n)if(n.hasOwnProperty(a)&&(r=n[a],r!=null))switch(a){case"value":o=r;break;case"defaultValue":l=r;break;case"multiple":i=r;default:we(e,t,a,r,n,null)}t=o,n=l,e.multiple=!!i,t!=null?ao(e,!!i,t,!1):n!=null&&ao(e,!!i,n,!0);return;case"textarea":re("invalid",e),o=a=i=null;for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"value":i=r;break;case"defaultValue":a=r;break;case"children":o=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(A(91));break;default:we(e,t,l,r,n,null)}ig(e,i,a,o);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:we(e,t,u,i,n,null)}return;case"dialog":re("beforetoggle",e),re("toggle",e),re("cancel",e),re("close",e);break;case"iframe":case"object":re("load",e);break;case"video":case"audio":for(i=0;i<Cl.length;i++)re(Cl[i],e);break;case"image":re("error",e),re("load",e);break;case"details":re("toggle",e);break;case"embed":case"source":case"link":re("error",e),re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(i=n[c],i!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(A(137,t));default:we(e,t,c,i,n,null)}return;default:if(Hf(t)){for(f in n)n.hasOwnProperty(f)&&(i=n[f],i!==void 0&&bf(e,t,f,i,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(i=n[r],i!=null&&we(e,t,r,i,n,null))}var zw={};function Dw(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,l=null,r=null,u=null,c=null,f=null;for(m in n){var p=n[m];if(n.hasOwnProperty(m)&&p!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":u=p;default:i.hasOwnProperty(m)||we(e,t,m,null,i,p)}}for(var s in i){var m=i[s];if(p=n[s],i.hasOwnProperty(s)&&(m!=null||p!=null))switch(s){case"type":m!==p&&(me=!0),o=m;break;case"name":m!==p&&(me=!0),a=m;break;case"checked":m!==p&&(me=!0),c=m;break;case"defaultChecked":m!==p&&(me=!0),f=m;break;case"value":m!==p&&(me=!0),l=m;break;case"defaultValue":m!==p&&(me=!0),r=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(A(137,t));break;default:m!==p&&we(e,t,s,m,i,p)}}Cs(e,l,r,u,c,f,o,a);return;case"select":m=l=r=s=null;for(o in n)if(u=n[o],n.hasOwnProperty(o)&&u!=null)switch(o){case"value":break;case"multiple":m=u;default:i.hasOwnProperty(o)||we(e,t,o,null,i,u)}for(a in i)if(o=i[a],u=n[a],i.hasOwnProperty(a)&&(o!=null||u!=null))switch(a){case"value":o!==u&&(me=!0),s=o;break;case"defaultValue":o!==u&&(me=!0),r=o;break;case"multiple":o!==u&&(me=!0),l=o;default:o!==u&&we(e,t,a,o,i,u)}t=r,n=l,i=m,s!=null?ao(e,!!n,s,!1):!!i!=!!n&&(t!=null?ao(e,!!n,t,!0):ao(e,!!n,n?[]:"",!1));return;case"textarea":m=s=null;for(r in n)if(a=n[r],n.hasOwnProperty(r)&&a!=null&&!i.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:we(e,t,r,null,i,a)}for(l in i)if(a=i[l],o=n[l],i.hasOwnProperty(l)&&(a!=null||o!=null))switch(l){case"value":a!==o&&(me=!0),s=a;break;case"defaultValue":a!==o&&(me=!0),m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(A(91));break;default:a!==o&&we(e,t,l,a,i,o)}ng(e,s,m);return;case"option":for(var y in n)if(s=n[y],n.hasOwnProperty(y)&&s!=null&&!i.hasOwnProperty(y))switch(y){case"selected":e.selected=!1;break;default:we(e,t,y,null,i,s)}for(u in i)if(s=i[u],m=n[u],i.hasOwnProperty(u)&&s!==m&&(s!=null||m!=null))switch(u){case"selected":s!==m&&(me=!0),e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:we(e,t,u,s,i,m)}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 b in n)s=n[b],n.hasOwnProperty(b)&&s!=null&&!i.hasOwnProperty(b)&&we(e,t,b,null,i,s);for(c in i)if(s=i[c],m=n[c],i.hasOwnProperty(c)&&s!==m&&(s!=null||m!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(A(137,t));break;default:we(e,t,c,s,i,m)}return;default:if(Hf(t)){for(var w in n)s=n[w],n.hasOwnProperty(w)&&s!==void 0&&!i.hasOwnProperty(w)&&bf(e,t,w,void 0,i,s);for(f in i)s=i[f],m=n[f],!i.hasOwnProperty(f)||s===m||s===void 0&&m===void 0||bf(e,t,f,s,i,m);return}}for(var h in n)s=n[h],n.hasOwnProperty(h)&&s!=null&&!i.hasOwnProperty(h)&&we(e,t,h,null,i,s);for(p in i)s=i[p],m=n[p],!i.hasOwnProperty(p)||s===m||s==null&&m==null||we(e,t,p,s,i,m)}function sp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Hw(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var a=n[i],o=a.transferSize,l=a.initiatorType,r=a.duration;if(o&&r&&sp(l)){for(l=0,r=a.responseEnd,i+=1;i<n.length;i++){var u=n[i],c=u.startTime;if(c>r)break;var f=u.transferSize,p=u.initiatorType;f&&sp(p)&&(u=u.responseEnd,l+=f*(u<r?1:(r-c)/(u-c)))}if(--i,t+=8*(o+l)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var vf=null,Sf=null;function Ll(e){return e.nodeType===9?e:e.ownerDocument}function fp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ub(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function cb(e,t,n,i){return n=Ll(n).createElement(e),n[ut]=i,n[Bt]=t,dt(n,e,t),at(n),n}function wf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ms=null;function _w(){var e=window.event;return e&&e.type==="popstate"?e===ms?!1:(ms=e,!0):(ms=null,!1)}var Sd=typeof setTimeout=="function"?setTimeout:void 0,Uw=typeof clearTimeout=="function"?clearTimeout:void 0,dp=typeof Promise=="function"?Promise:void 0,hp=typeof requestAnimationFrame=="function"?requestAnimationFrame:Sd,kw=typeof queueMicrotask=="function"?queueMicrotask:typeof dp<"u"?function(e){return dp.resolve(null).then(e).catch(Pw)}:Sd;function Pw(e){setTimeout(function(){throw e})}function Qi(e){return e==="head"}function mp(e,t){var n=t,i=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(a),Mo(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")gs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,gs(n);for(var o=n.firstChild;o;){var l=o.nextSibling,r=o.nodeName;o[Gl]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=l}}else n==="body"&&gs(e.ownerDocument.body);n=a}while(n);Mo(t)}function pp(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function sb(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var i=1;else for(var a=i=0;a<t.length;a++){var o=t[a];0<o.width&&0<o.height&&i++}i===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function fb(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function db(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Ef(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return db(t,n,e)}function Iw(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return db(t,n,e)}function Gw(e){return e.documentElement.clientHeight}function Bw(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Vw(e,t,n,i,a,o,l,r,u){var c=t.nodeType===9?t:t.ownerDocument;try{var f=c.startViewTransition({update:function(){var s=c.defaultView,m=s.navigation&&s.navigation.transition,y=c.fonts.status;i();var b=[];if(y==="loaded"&&(Gw(c),c.fonts.status==="loading"&&b.push(c.fonts.ready)),y=b.length,e!==null)for(var w=e.suspenseyImages,h=0,d=0;d<w.length;d++){var g=w[d];if(!g.complete){var S=g.getBoundingClientRect();if(0<S.bottom&&0<S.right&&S.top<s.innerHeight&&S.left<s.innerWidth){if(h+=Tb(g),h>Jr){b.length=y;break}g=new Promise(Bw.bind(g)),b.push(g)}}}if(0<b.length)return s=Promise.race([Promise.all(b),new Promise(function(x){return setTimeout(x,500)})]).then(a,a),(m?Promise.allSettled([m.finished,s]):s).then(o,o);if(a(),m)return m.finished.then(o,o);o()},types:n});c.__reactViewTransition=f;var p=[];return f.ready.then(function(){for(var s=c.documentElement.getAnimations({subtree:!0}),m=0;m<s.length;m++){var y=s[m],b=y.effect,w=b.pseudoElement;if(w!=null&&w.startsWith("::view-transition")){p.push(y),y=b.getKeyframes();for(var h=w=void 0,d=!0,g=0;g<y.length;g++){var S=y[g],x=S.width;if(w===void 0)w=x;else if(w!==x){d=!1;break}if(x=S.height,h===void 0)h=x;else if(h!==x){d=!1;break}delete S.width,delete S.height,S.transform==="none"&&delete S.transform}d&&w!==void 0&&h!==void 0&&(b.setKeyframes(y),d=getComputedStyle(b.target,b.pseudoElement),d.width!==w||d.height!==h)&&(d=y[0],d.width=w,d.height=h,d=y[y.length-1],d.width=w,d.height=h,b.setKeyframes(y))}}l()},function(s){c.__reactViewTransition===f&&(c.__reactViewTransition=null);try{if(typeof s=="object"&&s!==null)switch(s.name){case"InvalidStateError":(s.message==="View transition was skipped because document visibility state is hidden."||s.message==="Skipping view transition because document visibility state has become hidden."||s.message==="Skipping view transition because viewport size changed."||s.message==="Transition was aborted because of invalid state")&&(s=null)}s!==null&&u(s)}finally{i(),a(),l()}}),f.finished.finally(function(){for(var s=0;s<p.length;s++)p[s].cancel();c.__reactViewTransition===f&&(c.__reactViewTransition=null),r()}),f}catch{return i(),a(),l(),null}}function la(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}la.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Ne({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};la.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),i=[],a=0;a<n.length;a++){var o=n[a].effect;o!==null&&o.target===e&&o.pseudoElement===t&&i.push(n[a])}return i};la.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function hb(e){return{name:e,group:new la("group",e),imagePair:new la("image-pair",e),old:new la("old",e),new:new la("new",e)}}function tn(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}tn.prototype.addEventListener=function(e,t,n){var i=null,a=null;if(!(n!=null&&typeof n!="boolean"&&(i=n.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var o=this._eventListeners;if(mb(o,e,t,n)===-1){var l=this,r=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(r=function(u){l.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),i!==null&&(a=l.removeEventListener.bind(l,e,t,n),i.addEventListener("abort",a,{once:!0}),a=i.removeEventListener.bind(i,"abort",a)),i=Eo(n),o.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:r,cleanup:a}),Gt(this._fragmentFiber.child,!1,Yw,e,r,i)}this._eventListeners=o}};function Yw(e,t,n,i){return Fe(e).addEventListener(t,n,i),!1}tn.prototype.removeEventListener=function(e,t,n){var i=this._eventListeners;if(i!==null&&(t=mb(i,e,t,n),t!==-1)){var a=i[t];n=a.attachedListener;var o=a.cleanup;a=Eo(a.optionsOrUseCapture),Gt(this._fragmentFiber.child,!1,qw,e,n,a),i.splice(t,1),o!==null&&o()}};function qw(e,t,n,i){return Fe(e).removeEventListener(t,n,i),!1}function Eo(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function gp(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function mb(e,t,n,i){if(e.length===0)return-1;i=gp(i);for(var a=0;a<e.length;a++){var o=e[a];if(o.type===t&&o.listener===n&&gp(o.optionsOrUseCapture)===i)return a}return-1}tn.prototype.dispatchEvent=function(e){var t=Sa(this._fragmentFiber);if(t===null)return!0;t=Fe(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var i=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var a=0;a<n.length;a++){var o=n[a];i.addEventListener(o.type,o.attachedListener,Eo(o.optionsOrUseCapture))}if(t.appendChild(i),e=i.dispatchEvent(e),n)for(a=0;a<n.length;a++)o=n[a],i.removeEventListener(o.type,o.attachedListener,Eo(o.optionsOrUseCapture));return t.removeChild(i),e}return t.dispatchEvent(e)};tn.prototype.focus=function(e){Gt(this._fragmentFiber.child,!0,pb,e,void 0,void 0)};function pb(e,t){return e.tag===6?!1:(e=Fe(e),nE(e,t))}tn.prototype.focusLast=function(e){var t=[];Gt(this._fragmentFiber.child,!0,wd,t,void 0,void 0);for(var n=t.length-1;0<=n&&!pb(t[n],e);n--);};function wd(e,t){return t.push(e),!1}tn.prototype.blur=function(){var e=Sa(this._fragmentFiber);e!==null&&(e=Fe(e),e=Ll(e).activeElement,e!==null&&Gt(this._fragmentFiber.child,!1,jw,e,void 0,void 0))};function jw(e,t){return e.tag===6?!1:(e=Fe(e),e===t||e.contains(t)?(t.blur(),!0):!1)}tn.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Gt(this._fragmentFiber.child,!1,Xw,e,void 0,void 0)};function Xw(e,t){return e.tag===6||(e=Fe(e),t.observe(e)),!1}tn.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Gt(this._fragmentFiber.child,!1,Kw,e,void 0,void 0);for(var n=t=0;n<vn.length;n++){var i=vn[n];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):vn[t++]=i}vn.length=t}};function Kw(e,t){return e.tag===6||(e=Fe(e),t.unobserve(e)),!1}var vn=[],ps=!1;function Qw(e,t,n){vn.push({fragmentInstance:e,observer:t,instance:n}),ps||(ps=!0,iE(function(){ps=!1;var i=vn;vn=[];for(var a=0;a<i.length;a++){var o=i[a];o.observer.unobserve(o.instance)}}))}tn.prototype.getClientRects=function(){var e=[];return Gt(this._fragmentFiber.child,!1,Zw,e,void 0,void 0),e};function Zw(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=Fe(e),t.push.apply(t,e.getClientRects());return!1}tn.prototype.getRootNode=function(e){var t=Sa(this._fragmentFiber);return t===null?this:Fe(t).getRootNode(e)};tn.prototype.compareDocumentPosition=function(e){var t=Sa(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Gt(this._fragmentFiber.child,!1,wd,n,void 0,void 0);var i=Fe(t);if(n.length===0){if(n=i,Zh(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var a=i=n.compareDocumentPosition(e);return n===e?a=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=kp(t)[1],n===null?a=Node.DOCUMENT_POSITION_PRECEDING:(e=Fe(n).compareDocumentPosition(e),a=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Fe(n[0]),a=Fe(n[n.length-1]);var o=Zh(this._fragmentFiber)?t.parentElement:i;if(o==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=o.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var l=t.compareDocumentPosition(e),r=a.compareDocumentPosition(e),u=l&Node.DOCUMENT_POSITION_CONTAINED_BY||r&Node.DOCUMENT_POSITION_CONTAINED_BY;return r=i&&o&&l&Node.DOCUMENT_POSITION_FOLLOWING&&r&Node.DOCUMENT_POSITION_PRECEDING,t=i&&t===e||o&&a===e||u||r?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&t===e||!o&&a===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:l,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Fw(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Fw(e,t,n,i,a){var o=oa(a);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!o)e:{for(;o!==null;){if(o.tag===7&&(o===t||o.alternate===t)){n=!0;break e}o=o.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(o===null)return o=a.ownerDocument,a===o||a===o.documentElement||a===o.body;e:{for(o=t,t=Sa(t);o!==null;){if(!(o.tag!==5&&o.tag!==3&&o.tag!==27||o!==t&&o.alternate!==t)){o=!0;break e}o=o.return}o=!1}return o}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!o)&&!(t=o===n)&&(t=bs(n,o,Fh),t===null?t=!1:(Gt(t,!0,M1,o,n),o=ja,ja=null,t=o!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!o)&&!(t=o===i)&&(t=bs(i,o,Fh),t===null?t=!1:(Gt(t,!0,R1,o,i),o=ja,ys=ja=null,t=o!==null)),t):!1}function yp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}tn.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(A(566));var t=[];Gt(this._fragmentFiber.child,!1,wd,t,void 0,void 0);var n=e!==!1;if(t.length===0){var i=kp(this._fragmentFiber);if(i=n?i[1]||i[0]||Sa(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=Fe(i),yp(e,n);return}if(i=Fe(i),i.nodeType!==9){if(i.nodeType===11){n="host"in i?i.host:null,n!==null&&n.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=n?t.length-1:0;i!==(n?-1:t.length);){var a=t[i];a.tag===6?(a=Fe(a),yp(a,n)):Fe(a).scrollIntoView(e),i+=n?-1:1}};function Jw(e,t){return e=Fe(e),gb(e,t),!1}function gb(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function yb(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];e.addEventListener(a.type,a.attachedListener,Eo(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){for(var l=0,r=0;r<vn.length;r++){var u=vn[r];(u.fragmentInstance!==t||u.observer!==o||u.instance!==e)&&(vn[l++]=u)}vn.length=l,o.observe(e)}),gb(e,t))}function Ww(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];e.removeEventListener(a.type,a.attachedListener,Eo(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){typeof o.rootMargin=="string"?Qw(t,o,e):o.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function xf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":xf(n),Ou(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function $w(e,t,n,i){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Gl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=dn(e.nextSibling),e===null)break}return null}function eE(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=dn(e.nextSibling),e===null))return null;return e}function bb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=dn(e.nextSibling),e===null))return null;return e}function Tf(e){return e.data==="$?"||e.data==="$~"}function Ed(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function tE(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function dn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Nf=null;function bp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return dn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function vp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function nE(e,t){function n(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return i}function iE(e){hp(function(){hp(function(t){return e(t)})})}function vb(e,t,n){switch(t=Ll(n),e){case"html":if(e=t.documentElement,!e)throw Error(A(452));return e;case"head":if(e=t.head,!e)throw Error(A(453));return e;case"body":if(e=t.body,!e)throw Error(A(454));return e;default:throw Error(A(451))}}function Sb(e,t,n){for(var i in n){var a=n[i];n.hasOwnProperty(i)&&a!=null&&we(e,t,i,null,zw,a)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===In&&(e.onclick=null),Ou(e)}function gs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ou(e)}var hn=new Map,Sp=new Set;function zl(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var mi=ge.d;ge.d={f:aE,r:oE,D:lE,C:rE,L:uE,m:cE,X:fE,S:sE,M:dE};function aE(){var e=mi.f(),t=qu();return e||t}function oE(e){var t=Ao(e);t!==null&&t.tag===5&&t.type==="form"?ay(t):mi.r(e)}var zo=typeof document>"u"?null:document;function wb(e,t,n){var i=zo;if(i&&typeof t=="string"&&t){var a=cn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Sp.has(a)||(Sp.add(a),e={rel:e,crossOrigin:n,href:t},i.querySelector(a)===null&&(t=i.createElement("link"),dt(t,"link",e),at(t),i.head.appendChild(t)))}}function lE(e){mi.D(e),wb("dns-prefetch",e,null)}function rE(e,t){mi.C(e,t),wb("preconnect",e,t)}function uE(e,t,n){mi.L(e,t,n);var i=zo;if(i&&e&&t){var a='link[rel="preload"][as="'+cn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+cn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+cn(n.imageSizes)+'"]')):a+='[href="'+cn(e)+'"]';var o=a;switch(t){case"style":o=xo(e);break;case"script":o=Do(e)}if(!(hn.has(o)||(e=Ne({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),hn.set(o,e),i.querySelector(a)!==null||t==="style"&&i.querySelector(Xl(o))||t==="script"&&i.querySelector(Kl(o))))){var l=i.createElement("link");dt(l,"link",e),t==="style"&&(l[au]=!0,l.onload=l.onerror=function(){Fp(l)}),at(l),i.head.appendChild(l)}}}function cE(e,t){mi.m(e,t);var n=zo;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+cn(i)+'"][href="'+cn(e)+'"]',o=a;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Do(e)}if(!hn.has(o)&&(e=Ne({rel:"modulepreload",href:e},t),hn.set(o,e),n.querySelector(a)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Kl(o)))return}i=n.createElement("link"),dt(i,"link",e),at(i),n.head.appendChild(i)}}}function sE(e,t,n){mi.S(e,t,n);var i=zo;if(i&&e){var a=io(i).hoistableStyles,o=xo(e);t=t||"default";var l=a.get(o);if(!l){var r={loading:0,preload:null};if(l=i.querySelector(Xl(o)))r.loading=5;else{e=Ne({rel:"stylesheet",href:e,"data-precedence":t},n),(n=hn.get(o))&&xd(e,n);var u=l=i.createElement("link");at(u),dt(u,"link",e),u._p=new Promise(function(c,f){u.onload=c,u.onerror=f}),u.addEventListener("load",function(){r.loading|=1}),u.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Zr(l,t,i)}l={type:"stylesheet",instance:l,count:1,state:r},a.set(o,l)}}}function fE(e,t){mi.X(e,t);var n=zo;if(n&&e){var i=io(n).hoistableScripts,a=Do(e),o=i.get(a);o||(o=n.querySelector(Kl(a)),o||(e=Ne({src:e,async:!0},t),(t=hn.get(a))&&Td(e,t),o=n.createElement("script"),at(o),dt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(a,o))}}function dE(e,t){mi.M(e,t);var n=zo;if(n&&e){var i=io(n).hoistableScripts,a=Do(e),o=i.get(a);o||(o=n.querySelector(Kl(a)),o||(e=Ne({src:e,async:!0,type:"module"},t),(t=hn.get(a))&&Td(e,t),o=n.createElement("script"),at(o),dt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(a,o))}}function wp(e,t,n,i){var a=(a=zi.current)?zl(a):null;if(!a)throw Error(A(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=xo(n.href),t=io(a).hoistableStyles,i=t.get(n),i||(i={type:"style",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=xo(n.href);var o=io(a).hoistableStyles,l=o.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,l),(o=a.querySelector(Xl(e)))?o._p||(l.instance=o,l.state.loading=5):(o=hn.get(e),o||(o={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hn.set(e,o)),hE(a,e,o,l.state))),t&&i===null)throw Error(A(528,""));return l}if(t&&i!==null)throw Error(A(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Do(n),t=io(a).hoistableScripts,i=t.get(n),i||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(A(444,e))}}function xo(e){return'href="'+cn(e)+'"'}function Xl(e){return'link[rel="stylesheet"]['+e+"]"}function Eb(e){return Ne({},e,{"data-precedence":e.precedence,precedence:null})}function hE(e,t,n,i){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[au]!==!0){i.loading=1;return}}else t=e.createElement("link"),t[au]=!0,t.onload=t.onerror=Fp.bind(null,t),dt(t,"link",n),at(t),e.head.appendChild(t);i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2})}function Do(e){return'[src="'+cn(e)+'"]'}function Kl(e){return"script[async]"+e}function Ep(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+cn(n.href)+'"]');if(i)return t.instance=i,at(i),i;var a=Ne({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),at(i),dt(i,"style",a),Zr(i,n.precedence,e),t.instance=i;case"stylesheet":a=xo(n.href);var o=e.querySelector(Xl(a));if(o)return t.state.loading|=4,t.instance=o,at(o),o;i=Eb(n),(a=hn.get(a))&&xd(i,a),o=(e.ownerDocument||e).createElement("link"),at(o);var l=o;return l._p=new Promise(function(r,u){l.onload=r,l.onerror=u}),dt(o,"link",i),t.state.loading|=4,Zr(o,n.precedence,e),t.instance=o;case"script":return o=Do(n.src),(a=e.querySelector(Kl(o)))?(t.instance=a,at(a),a):(i=n,(a=hn.get(o))&&(i=Ne({},n),Td(i,a)),e=e.ownerDocument||e,a=e.createElement("script"),at(a),dt(a,"link",i),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(A(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Zr(i,n.precedence,e));return t.instance}function Zr(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=i.length?i[i.length-1]:null,o=a,l=0;l<i.length;l++){var r=i[l];if(r.dataset.precedence===t)o=r;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function xd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Td(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fr=null;function xp(e,t,n){if(Fr===null){var i=new Map,a=Fr=new Map;a.set(n,i)}else a=Fr,i=a.get(n),i||(i=new Map,a.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[Gl]||o[ut]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var l=o.getAttribute(t)||"";l=e+l;var r=i.get(l);r?r.push(o):i.set(l,[o])}}return i}function Mf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function mE(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Tp(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function xb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Tb(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Np(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Tb(t),e.suspenseyImages.push(t)),e=yE.bind(e),t.decode().then(e,e))}function pE(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=xo(i.href),o=t.querySelector(Xl(a));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Dl.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,at(o);return}o=t.ownerDocument||t,i=Eb(i),(a=hn.get(a))&&xd(i,a),o=o.createElement("link"),at(o);var l=o;l._p=new Promise(function(r,u){l.onload=r,l.onerror=u}),dt(o,"link",i),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Dl.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Jr=0;function gE(e,t){return e.stylesheets&&e.count===0&&Wr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Wr(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Jr===0&&(Jr=62500*Hw());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wr(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Jr?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(a)}}:null}function Nb(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Wr(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Dl(){this.count--,Nb(this)}function yE(){this.imgCount--,Nb(this)}var Ru=null;function Wr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ru=new Map,t.forEach(bE,e),Ru=null,Dl.call(e))}function bE(e,t){if(!(t.state.loading&4)){var n=Ru.get(e);if(n)var i=n.get(null);else{n=new Map,Ru.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var l=a[o];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(n.set(l.dataset.precedence,l),i=l)}i&&n.set(null,i)}a=t.instance,l=a.getAttribute("data-precedence"),o=n.get(l)||i,o===i&&n.set(null,a),n.set(l,a),this.count++,i=Dl.bind(this),a.addEventListener("load",i),a.addEventListener("error",i),o?o.parentNode.insertBefore(a,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var To={$$typeof:Pn,Provider:null,Consumer:null,_currentValue:ra,_currentValue2:ra,_threadCount:0};function vE(e,t,n,i,a,o,l,r,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qc(0),this.hiddenUpdates=qc(null),this.identifierPrefix=i,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function Mb(e,t,n,i,a,o,l,r,u,c,f,p){return e=new vE(e,t,n,l,u,c,f,p,r),t=1,o===!0&&(t|=24),o=Pt(3,null,null,t),e.current=o,o.stateNode=e,t=qf(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:n,cache:t},Kf(o),e}function Rb(e){return e?(e=$a,e):$a}function Ab(e,t,n,i,a,o){a=Rb(a),i.context===null?i.context=a:i.pendingContext=a,i=Hi(t),i.payload={element:n},o=o===void 0?null:o,o!==null&&(i.callback=o),n=_i(e,i,t),n!==null&&(It(n,e,t),fl(n,e,t))}function Mp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Nd(e,t){Mp(e,t),(e=e.alternate)&&Mp(e,t)}function Cb(e){if(e.tag===13||e.tag===31){var t=xa(e,67108864);t!==null&&It(t,e,67108864),Nd(e,67108864)}}function Rp(e){if(e.tag===13||e.tag===31){var t=$t();t=zf(t);var n=xa(e,t);n!==null&&It(n,e,t),Nd(e,t)}}var No=!0;function SE(e,t,n,i){var a=Q.T;Q.T=null;var o=ge.p;try{ge.p=2,Md(e,t,n,i)}finally{ge.p=o,Q.T=a}}function wE(e,t,n,i){var a=Q.T;Q.T=null;var o=ge.p;try{ge.p=8,Md(e,t,n,i)}finally{ge.p=o,Q.T=a}}function Md(e,t,n,i){if(No){var a=Rf(i);if(a===null)hs(e,t,i,Au,n),Ap(e,i);else if(xE(a,e,t,n,i))i.stopPropagation();else if(Ap(e,i),t&4&&-1<EE.indexOf(e)){for(;a!==null;){var o=Ao(a);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var l=na(o.pendingLanes);if(l!==0){var r=o;for(r.pendingLanes|=2,r.entangledLanes|=2;l;){var u=1<<31-Wt(l);r.entanglements[1]|=u,l&=~u}Xn(o),(pe&6)===0&&(Eu=Ft()+500,jl(0,!1))}}break;case 31:case 13:r=xa(o,2),r!==null&&It(r,o,2),qu(),Nd(o,2)}if(o=Rf(i),o===null&&hs(e,t,i,Au,n),o===a)break;a=o}a!==null&&i.stopPropagation()}else hs(e,t,i,null,n)}}function Rf(e){return e=_f(e),Rd(e)}var Au=null;function Rd(e){if(Au=null,e=oa(e),e!==null){var t=Ul(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Hp(t),e!==null)return e;e=null}else if(n===31){if(e=_p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Au=e,null}function Ob(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(U1()){case Bp:return 2;case Vp:return 8;case iu:case k1:return 32;case Yp:return 268435456;default:return 32}default:return 32}}var Af=!1,Ii=null,Gi=null,Bi=null,Hl=new Map,_l=new Map,Ni=[],EE="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 Ap(e,t){switch(e){case"focusin":case"focusout":Ii=null;break;case"dragenter":case"dragleave":Gi=null;break;case"mouseover":case"mouseout":Bi=null;break;case"pointerover":case"pointerout":Hl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_l.delete(t.pointerId)}}function el(e,t,n,i,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[a]},t!==null&&(t=Ao(t),t!==null&&Cb(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function xE(e,t,n,i,a){switch(t){case"focusin":return Ii=el(Ii,e,t,n,i,a),!0;case"dragenter":return Gi=el(Gi,e,t,n,i,a),!0;case"mouseover":return Bi=el(Bi,e,t,n,i,a),!0;case"pointerover":var o=a.pointerId;return Hl.set(o,el(Hl.get(o)||null,e,t,n,i,a)),!0;case"gotpointercapture":return o=a.pointerId,_l.set(o,el(_l.get(o)||null,e,t,n,i,a)),!0}return!1}function Lb(e){var t=oa(e.target);if(t!==null){var n=Ul(t);if(n!==null){if(t=n.tag,t===13){if(t=Hp(n),t!==null){e.blockedOn=t,em(e.priority,function(){Rp(n)});return}}else if(t===31){if(t=_p(n),t!==null){e.blockedOn=t,em(e.priority,function(){Rp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $r(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Rf(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Os=i,n.target.dispatchEvent(i),Os=null}else return t=Ao(n),t!==null&&Cb(t),e.blockedOn=n,!1;t.shift()}return!0}function Cp(e,t,n){$r(e)&&n.delete(t)}function TE(){Af=!1,Ii!==null&&$r(Ii)&&(Ii=null),Gi!==null&&$r(Gi)&&(Gi=null),Bi!==null&&$r(Bi)&&(Bi=null),Hl.forEach(Cp),_l.forEach(Cp)}function Dr(e,t){e.blockedOn===t&&(e.blockedOn=null,Af||(Af=!0,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,TE)))}var Hr=null;function Op(e){Hr!==e&&(Hr=e,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,function(){Hr===e&&(Hr=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],a=e[t+2];if(typeof i!="function"){if(Rd(i||n)===null)continue;break}var o=Ao(n);o!==null&&(e.splice(t,3),t-=3,Xs(o,{pending:!0,data:a,method:n.method,action:i},i,a))}}))}function Mo(e){function t(u){return Dr(u,e)}Ii!==null&&Dr(Ii,e),Gi!==null&&Dr(Gi,e),Bi!==null&&Dr(Bi,e),Hl.forEach(t),_l.forEach(t);for(var n=0;n<Ni.length;n++){var i=Ni[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Ni.length&&(n=Ni[0],n.blockedOn===null);)Lb(n),n.blockedOn===null&&Ni.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var a=n[i],o=n[i+1],l=a[Bt]||null;if(typeof o=="function")l||Op(n);else if(l){var r=null;if(o&&o.hasAttribute("formAction")){if(a=o,l=o[Bt]||null)r=l.formAction;else if(Rd(a)!==null)continue}else r=l.action;typeof r=="function"?n[i+1]=r:(n.splice(i,3),i-=3),Op(n)}}}function zb(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(l){return a=l})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Ad(e){this._internalRoot=e}Ku.prototype.render=Ad.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));var n=t.current,i=$t();Ab(n,i,e,t,null,null)};Ku.prototype.unmount=Ad.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ab(e.current,2,null,e,null,null),qu(),t[Ro]=null}};function Ku(e){this._internalRoot=e}Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ni.length&&t!==0&&t<Ni[n].priority;n++);Ni.splice(n,0,e),n===0&&Lb(e)}};var Lp=zp.version;if(Lp!=="19.3.0")throw Error(A(527,Lp,"19.3.0"));ge.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=N1(t),e=e!==null?Up(e):null,e=e===null?null:e.stateNode,e};var NE={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(tl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!tl.isDisabled&&tl.supportsFiber))try{kl=tl.inject(NE),Jt=tl}catch{}var tl;Qu.createRoot=function(e,t){if(!Dp(e))throw Error(A(299));var n=!1,i="",a=dy,o=hy,l=my;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Mb(e,1,!1,null,null,n,i,null,a,o,l,zb),e[Ro]=t.current,vd(e),new Ad(t)};Qu.hydrateRoot=function(e,t,n){if(!Dp(e))throw Error(A(299));var i=!1,a="",o=dy,l=hy,r=my,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=Mb(e,1,!0,t,n??null,i,a,u,o,l,r,zb),t.context=Rb(null),n=t.current,i=$t(),i=zf(i),a=Hi(i),a.callback=null,_i(n,a,i),n=i,t.current.lanes=n,Il(t,n),Xn(t),e[Ro]=t.current,vd(e),new Ku(t)};Qu.version="19.3.0"});var Ub=Ln((MT,_b)=>{"use strict";T();function Hb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hb)}catch(e){console.error(e)}}Hb(),_b.exports=Db()});var tv=Ln(ic=>{"use strict";T();var BE=Symbol.for("react.transitional.element"),VE=Symbol.for("react.fragment");function ev(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:BE,type:e,key:i,ref:t!==void 0?t:null,props:n}}ic.Fragment=VE;ic.jsx=ev;ic.jsxs=ev});var ye=Ln((bN,nv)=>{"use strict";T();nv.exports=tv()});T();T();var q0=K(Ub(),1);T();var te=K(tt(),1);T();var En=e=>e;T();T();T();var ME=["path","circle","ellipse","line","polyline","polygon","rect","g"],RE={fill:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,stroke:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,strokeWidth:/^[\d.]+$/,strokeLinecap:/^(?:butt|round|square)$/,strokeLinejoin:/^(?:miter|round|bevel)$/,fillRule:/^(?:nonzero|evenodd)$/,opacity:/^[\d.]+$/,fillOpacity:/^[\d.]+$/,strokeOpacity:/^[\d.]+$/,transform:/^(?:(?:matrix|translate|scale|rotate|skewX|skewY)\([\deE+.,\s-]+\)[,\s]*)+$/,d:/^[mMlLhHvVcCsSqQtTaAzZeE\d+.,\s-]+$/,points:/^[\deE+.,\s-]+$/},AE=["x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","width","height"],Pb=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Ib=1024;function Cd(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function kb(e){let t=Cd(e),n={};for(let[i,a]of Object.entries(RE)){let o=t[i],l=i==="d"||i==="points"?4096:i==="transform"?128:32;typeof o=="string"&&o.length<=l&&a.test(o)&&(n[i]=o)}for(let i of AE){let a=t[i];typeof a=="string"&&a.length<=32&&Pb.test(a)&&Math.abs(Number(a))<=1e5&&(n[i]=a)}return n}function Gb(e){let{viewBox:t,attrs:n,shapes:i}=Cd(e);if(typeof t!="string"||t.length>100)return;let a=t.trim().split(/[\s,]+/);if(a.length!==4||!a.every(u=>Pb.test(u)&&Math.abs(Number(u))<=1e5)||Number(a[2])<=0||Number(a[3])<=0)return;let o=64;function l(u,c){if(!Array.isArray(u)||c>6)return[];let f=[];for(let p of u){if(o--<=0)break;let{tag:s,attrs:m,shapes:y}=Cd(p),b=ME.find(w=>w===s);b&&f.push({tag:b,attrs:kb(m),shapes:b==="g"?l(y,c+1):[]})}return f}let r=l(i,0);return r.length?{viewBox:a.join(" "),attrs:kb(n),shapes:r}:void 0}var Fu=1e4,CE=25e4,OE=256*1024*1024,Yb=24*1024*1024,Ld="data/search.json",zd="theme/publication.css",UT=48*1024,Dd=["parent","child","left","right","previous","next"],LE=["document","drawing","attachment","folder","tag","url"],zE=/^(?:index\.html|\.nojekyll|data\/search\.json|theme\/publication\.css|notes\/[a-f0-9-]{36}\.html|assets\/[a-f0-9]{64}\.(?:png|jpe?g|gif|webp|avif|svg|mp3|ogg|wav|mp4|webm|pdf)|runtime\/(?:compass\.css|(?:compass|demo|chunk(?:-[a-zA-Z0-9]+)?)\.js(?:\.LEGAL\.txt)?)|LICENSES\/(?:K-Plex|React|ReactDOM|Scheduler|Lucide|Source)\.txt)$/,DE=/^[a-f0-9]{64}$/,Bb=["none","arrow","triangle","bar","dot"],HE=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,_E=/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/;function Hd(e){return typeof e=="string"&&e.length<=2048&&!/[\s\\<>"\p{Cc}]/u.test(e)&&/^https?:\/\/(?:[a-z0-9._-]+|\[[a-f0-9:.]+\])(?::\d{1,5})?(?:[/?#]|$)/i.test(e)}function pi(e){return typeof e=="string"&&_E.test(e)}function _d(e){if(!pi(e))throw new Error("Invalid public note ID");return`notes/${e}.html`}function Ud(e){return typeof e=="string"&&e.length<=180&&zE.test(e)}function xn(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Invalid publication record");return e}function Na(e,t){return typeof e=="string"&&e.length<=t&&e.trim().length>0&&!/\p{Cc}/u.test(e)}function Kn(e,t,n){return typeof e=="number"&&Number.isFinite(e)&&e>=t&&e<=n}function qb(e,t){return Kn(e,0,t-1)&&Number.isInteger(e)}function Zu(e,t){let n=xn(e),i={};for(let r of["fill","stroke","color","gate"]){let u=n[r];if(u!==void 0){if(typeof u!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(u))throw new Error("Invalid publication color");i[r]=u}}let{fontSize:a,gateRadius:o,icon:l}=n;if(a!==void 0&&!Kn(a,6,96))throw new Error("Invalid publication font size");if(o!==void 0&&!Kn(o,0,40))throw new Error("Invalid publication gate radius");if(l!=null&&!qb(l,t))throw new Error("Invalid publication icon reference");return{...i,fontSize:a,gateRadius:o,...l===void 0?{}:{icon:l}}}function UE(e,t){let{center:n,sibling:i,inferred:a}=xn(e);return{center:n===void 0?void 0:Zu(n,t),sibling:i===void 0?void 0:Zu(i,t),inferred:a===void 0?void 0:Zu(a,t)}}function kE(e){let{stroke:t,width:n,arrowStart:i,arrowEnd:a,startHead:o,endHead:l,labelColor:r,labelSize:u}=xn(e);if(t!==void 0&&(typeof t!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(t))||n!==void 0&&!Kn(n,.25,20)||i!==void 0&&typeof i!="boolean"||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication link style");let c=Bb.find(p=>p===o),f=Bb.find(p=>p===l);if(o!==void 0&&!c||l!==void 0&&!f)throw new Error("Invalid publication arrow type");if(r!==void 0&&(typeof r!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(r))||u!==void 0&&!Kn(u,6,96))throw new Error("Invalid publication link label");return{stroke:t,width:n,arrowStart:i,arrowEnd:a,startHead:c,endHead:f,labelColor:r,labelSize:u}}function PE(e){let t=xn(e),n={};if(t.maximum!==void 0){if(!Kn(t.maximum,1,400)||!Number.isInteger(t.maximum))throw new Error("Invalid publication scene limit");n.maximum=t.maximum}if(t.flip!==void 0){if(typeof t.flip!="boolean")throw new Error("Invalid publication orientation");n.flip=t.flip}if(t.showCrossLinks!==void 0){if(typeof t.showCrossLinks!="boolean")throw new Error("Invalid publication crosslinks preference");n.showCrossLinks=t.showCrossLinks}if(t.geometry!==void 0){let i=xn(t.geometry),a={},o=["compactingFactor","horizontalCompactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"];for(let l of o){let r=i[l];if(r!==void 0){if(!Kn(r,.1,4e3))throw new Error("Invalid publication geometry");Object.assign(a,{[l]:r})}}if(i.compactView!==void 0&&typeof i.compactView!="boolean")throw new Error("Invalid publication compact mode");if(i.lateralArrangement!==void 0&&i.lateralArrangement!=="split"&&i.lateralArrangement!=="left")throw new Error("Invalid publication side layout");n.geometry={...a,...i.compactView===void 0?{}:{compactView:i.compactView},...i.lateralArrangement===void 0?{}:{lateralArrangement:i.lateralArrangement}}}if(t.typography!==void 0){let{baseFontSize:i,wrapNodeLabels:a,propertyFontSize:o}=xn(t.typography);if(i!==void 0&&!Kn(i,6,48)||o!==void 0&&!Kn(o,6,48)||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication typography");n.typography={baseFontSize:i,wrapNodeLabels:a,propertyFontSize:o}}return n}function IE(e){let t=Object.entries(xn(e));if(t.length>64)throw new Error("Too many publication properties");let n=new Map;for(let[i,a]of t){if(!Na(i,192)||["__proto__","constructor","prototype"].includes(i))throw new Error("Invalid publication property name");if(Na(a,1e3)||typeof a=="boolean"||typeof a=="number"&&Number.isFinite(a))n.set(i,a);else if(Array.isArray(a)&&a.length<=48&&a.every(o=>Na(o,1e3)))n.set(i,[...a]);else throw new Error("Invalid publication property value")}return Object.fromEntries(n)}function jb(e){let t=xn(e);if(t.version!==2||typeof t.runtimeVersion!="string"||!HE.test(t.runtimeVersion))throw new Error("Unsupported publication version");let{colorMode:n}=t;if(n!==void 0&&n!=="light"&&n!=="dark"&&n!=="both")throw new Error("Invalid publication color mode");if(!pi(t.id)||!pi(t.entry)||!Na(t.title,240)||typeof t.fullText!="boolean"||!Array.isArray(t.nodes)||!t.nodes.length||t.nodes.length>Fu||!Array.isArray(t.relations)||t.relations.length>CE||!Array.isArray(t.resources)||t.resources.length>Fu*4)throw new Error("Invalid publication manifest");let i=0,a=new Set,o=t.resources.map(y=>{let{path:b,bytes:w,sha256:h}=xn(y);if(!Ud(b)||a.has(b)||!Kn(w,0,32*1024*1024)||!Number.isInteger(w)||typeof h!="string"||!DE.test(h))throw new Error("Invalid publication resource");if(a.add(b),i+=w,i>OE)throw new Error("Publication exceeds package limit");return{path:b,bytes:w,sha256:h}}),l;if(t.icons!==void 0){if(!Array.isArray(t.icons)||t.icons.length>Ib)throw new Error("Invalid publication icons");l=t.icons.map(y=>{let b=Gb(y);if(!b)throw new Error("Invalid publication icon");return b})}let r=l?.length??0,u=new Set,c=new Set,f=t.nodes.map(y=>{let b=xn(y),{id:w,title:h,aliases:d,asset:g,url:S,trailIcon:x}=b,N=LE.find(E=>E===b.kind);if(!pi(w)||u.has(w)||!Na(h,512)||!N)throw new Error("Invalid publication node");if(u.add(w),N==="document"||N==="drawing"){let E=_d(w);if(!a.has(E))throw new Error("Missing publication note resource");c.add(E)}if(g!==void 0&&(typeof g!="string"||!g.startsWith("assets/")||!a.has(g)))throw new Error("Missing publication asset");if(S!==void 0&&(N!=="url"||!Hd(S)))throw new Error("Invalid publication web link");if(x!==void 0&&!qb(x,r))throw new Error("Invalid publication trail icon");if(d!==void 0&&(!Array.isArray(d)||d.length>64||!d.every(E=>Na(E,512))))throw new Error("Invalid publication aliases");return{id:w,title:h,kind:N,...d===void 0?{}:{aliases:[...d]},...g===void 0?{}:{asset:g},...S===void 0?{}:{url:S},...x===void 0?{}:{trailIcon:x},...b.style===void 0?{}:{style:Zu(b.style,r)},...b.roleStyles===void 0?{}:{roleStyles:UE(b.roleStyles,r)},...b.properties===void 0?{}:{properties:IE(b.properties)}}});if(!u.has(t.entry)||[...a].some(y=>y.startsWith("notes/")&&!c.has(y))||t.fullText!==a.has(Ld))throw new Error("Invalid publication document catalogue");let p;if(t.pins!==void 0){if(!Array.isArray(t.pins)||t.pins.length>u.size)throw new Error("Invalid publication pins");let y=t.pins;if(new Set(y).size!==y.length||!y.every(b=>typeof b=="string"&&u.has(b)))throw new Error("Invalid publication pins");p=y.slice()}let s=new Set,m=t.relations.map(y=>{let{source:b,target:w,relationType:h,direction:d,definition:g,role:S,style:x}=xn(y),N=Dd.find(M=>M===S);if(typeof b!="string"||typeof w!="string"||b===w||!u.has(b)||!u.has(w)||!N||h!==1&&h!==2||d!==null&&d!==1&&d!==2&&d!==3||g!==void 0&&!Na(g,192))throw new Error("Invalid publication relationship");let E=`${b}/${w}/${N}`;if(s.has(E))throw new Error("Duplicate publication relationship");return s.add(E),{source:b,target:w,role:N,relationType:h,direction:d,...g===void 0?{}:{definition:g},...x===void 0?{}:{style:kE(x)}}});return{version:2,runtimeVersion:t.runtimeVersion,id:t.id,title:t.title,entry:t.entry,fullText:t.fullText,nodes:f,relations:m,resources:o,...n===void 0?{}:{colorMode:n},...p===void 0?{}:{pins:p},...l===void 0?{}:{icons:l},...t.appearance===void 0?{}:{appearance:PE(t.appearance)}}}T();var Ql={key:"F4"};T();T();T();function Xb(e){try{let t=JSON.stringify(e);if(!t||t.length>16384)return null;let n=JSON.parse(t),i=(a,o)=>o<=8&&(!a||typeof a!="object"||Object.values(a).every(l=>i(l,o+1)));return i(n,0)?n:null}catch{return null}}T();var mt={occurrences:2e3,depth:20,scopes:8,stateCharacters:12e3,occurrenceCharacters:4096},Ju={min:.1,max:4,step:.05};function Ho(e,t,n){return{defaultValue:e,validate:i=>typeof i=="number"&&Number.isInteger(i)&&i>=t&&i<=n}}var Wu={version:1,fields:{arrangement:{defaultValue:"right",validate:e=>e==="balanced"||e==="left"||e==="right"},horizontalSpacing:Ho(96,40,240),verticalSpacing:Ho(24,12,80),parentColumns:Ho(2,1,3),initialGenerations:Ho(1,1,3),horizontalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=Ju.min&&e<=Ju.max},verticalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=Ju.min&&e<=Ju.max},maximumDepth:Ho(10,1,mt.depth),maximumOccurrences:Ho(500,16,mt.occurrences)}};function $u(e){if(e?.status==="unavailable")return null;let t=e?.values??{},n=a=>Object.prototype.hasOwnProperty.call(t,a)?t[a]:Wu.fields[a].defaultValue;for(let[a,o]of Object.entries(Wu.fields))if(!o.validate(n(a)))return null;let i=n("arrangement");return i!=="balanced"&&i!=="left"&&i!=="right"?null:{arrangement:i,horizontalSpacing:Number(n("horizontalSpacing")),verticalSpacing:Number(n("verticalSpacing")),horizontalDensity:Number(n("horizontalDensity")),verticalDensity:Number(n("verticalDensity")),parentColumns:Number(n("parentColumns")),initialGenerations:Number(n("initialGenerations")),maximumDepth:Number(n("maximumDepth")),maximumOccurrences:Number(n("maximumOccurrences"))}}var kd={version:1,scope:null,initialGenerations:null,expanded:[],collapsed:[],sides:{}},ec={version:0,unavailable:!0};function Ma(e){return typeof e=="string"&&e.length>0&&e.length<=mt.occurrenceCharacters}function Zi(e){if(e==null)return{...kd,expanded:[],collapsed:[],sides:{}};let t=Xb(e);if(!t||typeof t!="object"||Array.isArray(t)||Reflect.get(t,"version")!==1)return ec;let n=Reflect.get(t,"scope"),i=Reflect.get(t,"initialGenerations"),a=Reflect.get(t,"expanded"),o=Reflect.get(t,"collapsed"),l=Reflect.get(t,"sides");if(n===null!=(i===null)||n!==null&&!Ma(n)||i!==null&&(typeof i!="number"||!Number.isInteger(i)||i<1||i>3)||!Array.isArray(a)||!Array.isArray(o)||a.length>256||o.length>256||!a.every(Ma)||!o.every(Ma)||!l||typeof l!="object"||Array.isArray(l)||Object.keys(l).length>256)return ec;let r=[];for(let[c,f]of Object.entries(l)){let p=f;if(!Ma(c)||p!==-1&&p!==1)return ec;r.push([c,p])}r.sort(([c],[f])=>c<f?-1:c>f?1:0);let u={...t,version:1,scope:n===null?null:En(n),initialGenerations:i,expanded:[...new Set(a)].sort(),collapsed:[...new Set(o)].sort(),sides:Object.fromEntries(r)};return JSON.stringify(u).length<=mt.stateCharacters?u:ec}function Kb(e,t,n){return e.scope===t?e:{...e,scope:t,initialGenerations:n,expanded:[],collapsed:[],sides:{}}}function Zl(e){let t=Zi(e);return t.version===1?t:null}function tc(e,t,n){let i=Zi(e),a=i.version===1&&i.scope===t.layoutRoot?i:Zi(t.stateSuggestion);if(a.version!==1||a.scope!==t.layoutRoot)return null;let o=new Set(a.expanded),l=new Set(a.collapsed),r=t.occurrences.filter(u=>u.branch?.canExpand&&!u.branch.reference);if(n.kind==="toggle")r=r.filter(u=>u.id===n.occurrenceId);else if(n.kind==="expand-generation"){let u=Math.min(...r.filter(c=>!c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>!c.branch.expanded&&c.branch.depth===u)}else{let u=Math.max(...r.filter(c=>c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>c.branch.expanded&&c.branch.depth===u)}if(!r.length)return null;for(let u of r)n.kind==="expand-generation"||n.kind==="toggle"&&!u.branch.expanded?(l.delete(u.id),o.add(u.id)):(o.delete(u.id),l.add(u.id));return Zl({...a,expanded:[...o],collapsed:[...l]})}T();var L={licenses:"Runtime licenses",about:"About K-Plex and runtime licenses",close:"Close",mindMap:"Mind Map",expandBranch:"Expand branch",collapseBranch:"Collapse branch",graphOptions:"Graph options",crossLinks:"Show crosslinks",linkOntology:"Show link ontology",view:"Compass",back:"History back",forward:"History forward",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit graph",loadFailed:"Could not open this publication",retry:"Retry",loading:"Opening publication…",loadingNote:"Opening note…",find:"Find a thought",fullText:"Include note text",searchLoading:"Loading note search…",searchUnavailable:"Note search is unavailable",address:"Note address",open:"Open",nodeUnavailable:"That thought is unavailable in this publication",copyAddress:"Copy note address",addressCopied:"Note address copied",copyShortAddress:"Copy link (short ID)",copyFullAddress:"Copy link (full ID)",ambiguousAddress:"This short ID matches several notes. Use the full ID.",pins:"Pins",history:"Session history",backTooltip:"History back (Alt + ←)",forwardTooltip:"History forward (Alt + →)",showSidecarTooltip:"Show Sidecar (Alt + Shift + S)",hideSidecarTooltip:"Hide Sidecar (Alt + Shift + S)",chooseNote:"Choose a matching thought",chooseAddress:"Enter a note ID to select another match",showSidecar:"Show Sidecar",hideSidecar:"Hide Sidecar",closeSidecar:"Close Sidecar",showSiblings:"Show siblings",hideSiblings:"Hide siblings",siblings:"Siblings",friends:"Friends / Previous",challengers:"Challengers / Next",lateral:"Friends, challengers, and sequence",darkMode:"Dark mode",lightMode:"Light mode",systemTheme:"System theme",sidecar:"Sidecar",sidecarHide:"Hide",sidecarLeft:"Left",sidecarRight:"Right",sidecarBottom:"Bottom",openWebsite:"Open original in a new tab",webFrameHelp:"If the page is blank or blocked, open the original.",githubLoading:"Loading GitHub preview…",githubPreviewUnavailable:"GitHub preview unavailable. Open the original to view the page.",githubOpenOriginal:"View this GitHub page in a browser tab.",githubNoCommits:"No commits in this comparison.",githubCommitCount:(e,t)=>`Showing ${e} of ${t} commits`,resizeSidecar:"Resize Sidecar",dockSidecarBottom:"Move Sidecar below",dockSidecarRight:"Move Sidecar right",noteUnavailable:"Could not open this note",mediaUnavailable:"Some media could not be opened",noDocument:"No document is available for this thought",downloadAsset:"Download file",sceneLimited:"Some connections are outside this view’s display limit",themeUnavailable:"Using the default colors",insecure:"Open this publication over HTTPS or through a local preview server"};T();var nc=class{constructor(t,n,i,a=750,o){this.owner=t;this.requireAlt=n;this.publish=i;this.delayMs=a;this.modifierFeedback=o;this.timer=null;this.candidate=null;this.alt=!1;this.enteredAt=0;this.modifierCandidate=!1}enter(t,n){if(n.pointerType==="touch"){this.modifierFeedback&&this.clear();return}this.clear(!1),this.candidate=t,this.alt=n.altKey,this.enteredAt=this.owner.performance.now(),this.modifierCandidate=n.pointerType==="mouse"&&n.isTrusted===!0&&this.modifierFeedback?.accepts(t)===!0,this.modifierFeedback?.publish(this.modifierCandidate&&this.alt?t:null),this.requireAlt||this.modifierCandidate&&this.alt?this.publish(this.alt?t:null):this.activateOrdinary()}modifier(t,n=!1){this.candidate===null||this.alt===t||!this.requireAlt&&!this.modifierCandidate||this.modifierCandidate&&!n||(this.alt=t,this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.modifierCandidate&&this.modifierFeedback?.publish(t?this.candidate:null),this.requireAlt||t?this.publish(t?this.candidate:null):(this.publish(null),this.activateOrdinary()))}activateOrdinary(){let t=this.candidate;if(t===null)return;let n=Math.max(0,this.delayMs-(this.owner.performance.now()-this.enteredAt));n===0?this.publish(t):this.timer=this.owner.setTimeout(()=>{this.timer=null,this.publish(t)},n)}clear(t=!0){this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.candidate=null,this.modifierCandidate=!1,this.modifierFeedback?.publish(null),t&&this.publish(null)}};function Qb(e,t){let n=e.ownerDocument,i=n.defaultView,a=r=>t.modifier(r.altKey,r.isTrusted),o=()=>t.clear(),l=()=>{n.visibilityState==="hidden"&&t.clear()};return i.addEventListener("keydown",a),i.addEventListener("keyup",a),i.addEventListener("blur",o),n.addEventListener("visibilitychange",l),()=>{i.removeEventListener("keydown",a),i.removeEventListener("keyup",a),i.removeEventListener("blur",o),n.removeEventListener("visibilitychange",l),t.clear()}}T();T();T();T();T();var Pd={min:8,max:20,step:1,default:12};function Id(e){return typeof e=="number"&&Number.isFinite(e)?Math.max(Pd.min,Math.min(Pd.max,e)):Pd.default}var Fl=(e,t,n)=>Math.max(t,Math.min(n,e));function Zb(e){return Math.max(5,(e.gateRadius??5)*1.05)}function Gd(e=30,t=!1){let n=Math.round(Math.max(8,e));return Math.max(t?18:8,n+(t?8:0))}function Jl(e,t,n=12.4){return(t?Fl(e*.72,13,24):Fl(e*.62,10,16))*Fl(Number.isFinite(n)?n:12.4,8,28)/12.4}function GE(e,t){if(e.measurement&&Number.isFinite(e.measurement.width)&&e.measurement.width>=0)return e.measurement.width;let n=i=>Array.from(i).reduce((a,o)=>a+(o.codePointAt(0)>11903?1:.55)*t,0);return n(e.text)+(e.label?n(`${e.label}:`)+4:0)+(e.icon?t+4:0)}function Fb(e,t){return e.length?4+e.reduce((n,i)=>n+Math.ceil(i.measurement&&Number.isFinite(i.measurement.height)&&i.measurement.height>0?i.measurement.height:t*1.4),0):0}function Jb(e,t){return e.reduce((n,i)=>Math.max(n,32+GE(i,t)),0)}function Wb(e,t,n,i=!1,a=30,o,l=1,r=[]){let u=(n.baseFontSize??12.4)/12.4,c=Math.min(e.length,Gd(a,i)),f=i?180:112,s=Math.max(f,o??(i?370:286)),m=i?Jl(t,!0,n.baseFontSize)*.55:t*u*.29,y=Fl(70+c*Math.max(4.8,m),f,s),b=(i?16:8)+2*Math.max(0,l),w=Jl(t,i,n.baseFontSize),h=Math.max(i?48:26,Math.ceil(w*1.6+b)),d=Math.ceil(Math.max(t*u,w)*2.4+w*.4+b),g=n.wrapNodeLabels?Math.max(h,d):h,S=Id(n.propertyFontSize),x=Jb(r,S);return{width:r.length?Fl(Math.max(y,x),f,s):y,height:g+Fb(r,S)}}function $b(e,t,n,i,a=1,o=[]){if(t===1)return e;let l=Id(i.propertyFontSize),r=Jb(o,l),u=Jl(n,!1,i.baseFontSize)*(i.wrapNodeLabels?2.8:1.6);return{width:Math.max(e.width*t,Math.min(e.width,r)),height:Math.max(e.height*t,Math.ceil(u+8+2*Math.max(0,a))+Fb(o,l))}}var Ye=K(ye(),1);function iv({bounds:e,semanticRole:t,className:n,style:i,...a}){return(0,Ye.jsx)("div",{...a,className:`kplex-thought kplex-role-${t}${n?" "+n:""}`,style:{left:e.x-e.width/2,top:e.y-e.height/2,width:e.width,height:e.height,...i}})}function av({label:e,maximum:t,center:n}){let i=Gd(t??30,n),a=e.length>i?`${e.slice(0,Math.max(1,i-1))}…`:e;return(0,Ye.jsx)("span",{className:"kplex-thought-text",title:e,children:a})}function ov({wrap:e,children:t}){return(0,Ye.jsx)("span",{className:`kplex-thought-label${e?" is-two-line":""}`,children:t})}function lv({side:e,connected:t,highlighted:n,disabled:i,count:a,...o}){return(0,Ye.jsxs)("span",{className:`kplex-gate-wrap gate-wrap-${e}${t?"":" is-empty"}`,children:[(0,Ye.jsx)("span",{...o,"data-kplex-gate":e,className:`kplex-gate gate-${e}${t?" has-connections":" is-empty"}${n?" is-highlighted":""}${i?" is-link-disabled":""}`}),a!==null&&(0,Ye.jsx)("span",{className:"kplex-gate-count",children:a})]})}function rv(e){return(0,Ye.jsx)("path",{className:"kplex-edge-visible",fill:"none",vectorEffect:"non-scaling-stroke",...e})}function uv({label:e,midpoint:t,fontSize:n,color:i,background:a,opacity:o}){if(!e)return null;let l=n??10,r=Math.max(20,e.length*l*.58+10),u=l+6;return(0,Ye.jsxs)("g",{className:"kplex-edge-label-wrap",pointerEvents:"none",opacity:o,children:[(0,Ye.jsx)("rect",{x:t.x-r/2,y:t.y-u/2,width:r,height:u,rx:3,fill:a}),(0,Ye.jsx)("text",{className:"kplex-edge-label",x:t.x,y:t.y,textAnchor:"middle",dominantBaseline:"central",fill:i,fontSize:l,children:e})]})}function Bd(e,t="kplex"){if(!(!e||e==="none"))return`url(#${t}-${e==="triangle"||e==="dot"||e==="bar"?e:"arrow"})`}function cv({prefix:e="kplex"}){return(0,Ye.jsxs)("defs",{children:[(0,Ye.jsx)("marker",{id:`${e}-arrow`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Ye.jsx)("path",{d:"M1,1 L8,4.5 L1,8",fill:"none",stroke:"context-stroke",strokeWidth:"1.4"})}),(0,Ye.jsx)("marker",{id:`${e}-triangle`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Ye.jsx)("path",{d:"M0,0 L9,4.5 L0,9 z",fill:"context-stroke"})}),(0,Ye.jsx)("marker",{id:`${e}-dot`,markerWidth:"8",markerHeight:"8",refX:"4",refY:"4",orient:"auto",markerUnits:"strokeWidth",children:(0,Ye.jsx)("circle",{cx:"4",cy:"4",r:"2.6",fill:"context-stroke"})}),(0,Ye.jsx)("marker",{id:`${e}-bar`,markerWidth:"8",markerHeight:"10",refX:"4",refY:"5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Ye.jsx)("path",{d:"M4,1 L4,9",stroke:"context-stroke",strokeWidth:"1.8"})})]})}T();var sv={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous"};function Wl(e,t){let n=t.toLowerCase(),i=e.nodes.get(n);return i?[i.id]:e.shortIds.get(n)??[]}function fv(e,t){if(!e.manifest)return;let n=t.slice(0,8),i=Wl(e,n);return i.length===1&&i[0]===t?n:void 0}function Vd(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}function _o(e){return typeof e=="string"&&e.trim().length>0}function YE(e){return typeof e=="string"&&Object.getOwnPropertyDescriptor(sv,e)!==void 0}function dv(e){let t=Vd(e);if(t?.version===2&&("runtimeVersion"in t||"resources"in t))return qE(jb(e));if(t?.version!==1)throw new Error("Unsupported publication fixture version");if(!_o(t.title)||!_o(t.entry)||!Array.isArray(t.nodes)||!Array.isArray(t.relations))throw new Error("Invalid publication fixture");let n=new Map,i=new Map,a=Object.freeze([]);for(let u of t.nodes){let c=Vd(u);if(!c||!_o(c.id)||!_o(c.title)||n.has(c.id)||c.text!==void 0&&typeof c.text!="string")throw new Error("Invalid or duplicate publication node");let f=En(c.id);n.set(f,Object.freeze({id:f,name:c.title,kind:"document",resolution:"resolved",url:null,aliases:a,tags:a,styleTags:a,noteType:null,primaryStyleTag:null,maxLabelLength:30})),typeof c.text=="string"&&i.set(f,c.text)}let o=n.get(t.entry)?.id;if(!o)throw new Error("Missing publication entry node");let l=new Map,r=new Set;for(let u of t.relations){let c=Vd(u);if(!c||!_o(c.source)||!_o(c.target)||!YE(c.role)||c.label!==void 0&&typeof c.label!="string")throw new Error("Invalid publication relationship");let f=n.get(c.source),p=n.get(c.target);if(!f||!p)throw new Error("Missing publication relationship endpoint");let s=sv[c.role],m=JSON.stringify([f.id,c.role,p.id]);if(f===p||r.has(m))throw new Error("Invalid or duplicate publication relationship");r.add(m),r.add(JSON.stringify([p.id,s,f.id])),Yd(l,f,p,c.role,1,1,c.label),Yd(l,p,f,s,1,2,c.label)}return{title:t.title,entry:o,read:hv(n,l),nodes:n,shortIds:new Map,manifest:null,published:new Map,body:u=>i.get(u),linkStyle:()=>{}}}function Yd(e,t,n,i,a,o,l){let r=e.get(t.id);r||e.set(t.id,r=new Map);let u=r.get(i);u||r.set(i,u=[]),u.push(Object.freeze({node:n,role:i,relationType:a,direction:o,definition:l}))}function qE(e){let t=new Map,n=new Map,i=new Map,a=new Map,o=new Map;for(let l of e.nodes){let r=En(l.id),u=l.id.slice(0,8),c=a.get(u);c?c.push(r):a.set(u,[r]);let f=l.kind==="folder"?"container":l.kind==="drawing"?"document":l.kind;t.set(r,Object.freeze({id:r,name:l.title,kind:f,resolution:"resolved",url:l.url??null,aliases:l.aliases??[],tags:[],styleTags:[],noteType:null,primaryStyleTag:null,maxLabelLength:30})),n.set(r,l)}for(let l of e.relations)Yd(i,t.get(l.source),t.get(l.target),l.role,l.relationType,l.direction,l.definition),l.style&&o.set(`${l.source}/${l.target}/${l.role}`,l.style);return{title:e.title,entry:En(e.entry),read:hv(t,i),nodes:t,shortIds:a,manifest:e,published:n,body:()=>{},linkStyle:(l,r,u)=>o.get(`${l}/${r}/${u}`)}}function hv(e,t){let n=new Intl.Collator("en",{numeric:!0}),i=(o,l)=>n.compare(o.name,l.name)||(o.id<l.id?-1:o.id>l.id?1:0);for(let o of t.values())for(let l of o.values())Object.freeze(l.sort((r,u)=>i(r.node,u.node)));let a=Object.freeze([]);return{coverage:"local",isCurrent:()=>!0,node:o=>e.get(o)??null,scope:o=>({coverage:e.has(o)?"local":"unavailable",complete:e.has(o),prepared:e.has(o),pending:!1}),relations(o,l,r){if(!e.has(o))return{items:a,coverage:"unavailable",truncated:!1};let u=t.get(o)?.get(l)??a,c=r!==void 0&&u.length>r;return{items:c?u.slice(0,r):u,coverage:"local",truncated:c}},evidence:()=>({coverage:"unavailable",value:null}),compare:i,corpus:{available:!1,reason:"unsupported"}}}T();var Ra=K(tt(),1);T();var mv=["siblings","ontology","crosslinks","sidecar"],qd={view:["compass","mindmap"],dock:["left","right","bottom"],theme:["system","light","dark"]},pv=["view",...mv,"dock","theme"],jd={view:"compass",siblings:!0,ontology:!0,crosslinks:!1,sidecar:!0,dock:"right",theme:"system"};function gv(e,t){let n=r=>t?.get(r)??e.get(r),i={},a=qd.view.find(r=>r===n("view")),o=qd.dock.find(r=>r===n("dock")),l=qd.theme.find(r=>r===n("theme"));a&&(i.view=a),o&&(i.dock=o),l&&(i.theme=l);for(let r of mv){let u=n(r);(u==="1"||u==="0")&&(i[r]=u==="1")}return i}function Xd(e,t){for(let n of pv){let i=t?.[n];i===void 0?e.delete(n):e.set(n,typeof i=="boolean"?i?"1":"0":i)}}function Kd(e,t){return pv.every(n=>e?.[n]===t?.[n])}var jE=80;function ac(e,t){return[...e.filter(n=>n.id!==t.id),t].slice(-jE)}function Zd(e){try{let t=decodeURIComponent(e.replace(/^#/,""));return t.length<=200&&!/\p{Cc}/u.test(t)&&t||void 0}catch{return}}function $l(e,t){let n=t.protocol==="file:"&&t.hash.startsWith("#node=")?new URLSearchParams(t.hash.slice(1)):null,i=n?n.get("node"):t.searchParams.get("node")??t.searchParams.get("node-id"),a=i===null?[]:Wl(e,i),o=a.length===1?a[0]:void 0,l=Zd(n?encodeURIComponent(n.get("fragment")??""):t.hash),r=gv(t.searchParams,n);return{location:{id:o??e.entry,fragment:o||i===null?l:void 0,canvas:r},addressProblem:i===null||o?void 0:a.length?"ambiguous":"missing",matches:a}}function XE(e,t,n){let i=new URLSearchParams({node:e});return t&&i.set("fragment",t),Xd(i,n),`#${i}`}function yv(e,t,n,i){try{let a=new URL(e,t);if(a.origin!==t.origin||a.pathname!==t.pathname&&a.pathname!==`${t.pathname}index.html`)return;if(e.startsWith("#node=")&&t.protocol==="file:"){let{location:u,addressProblem:c}=$l(n,a);return c?void 0:u}if(e.startsWith("#"))return{id:i,fragment:Zd(a.hash)};if(!(a.searchParams.get("node")??a.searchParams.get("node-id")))return;let{location:l,addressProblem:r}=$l(n,a);return r?void 0:l}catch{return}}function Uo(e,t,n=t.id){let i=new URL(e);return i.protocol==="file:"?(i.hash=XE(n,t.fragment??"",t.canvas),i):(i.searchParams.delete("node-id"),i.searchParams.set("node",n),Xd(i.searchParams,t.canvas),i.hash=t.fragment?encodeURIComponent(t.fragment):"",i)}function bv(e,t,n){try{let i=new URL(e,t);if(i.protocol!==t.protocol||i.origin!==t.origin||i.username||i.password)return;let a=o=>o.endsWith("/")?o+"index.html":o;return a(i.pathname)!==a(t.pathname)||!(i.searchParams.has("node")||i.searchParams.has("node-id")||i.protocol==="file:"&&i.hash.startsWith("#node="))?void 0:$l(n,i)}catch{return}}function Qd(e,t){return!e||typeof e!="object"||!("kplexPublication"in e)||e.kplexPublication!==t||!("position"in e)||typeof e.position!="number"||!Number.isSafeInteger(e.position)||e.position<0||!("last"in e)||typeof e.last!="number"||!Number.isSafeInteger(e.last)||e.last<e.position?null:{position:e.position,last:e.last}}function vv(e,t,n){let i=(0,Ra.useRef)(n);i.current=n;let a=e.manifest?.id,[o,l]=(0,Ra.useState)(()=>{let y=t?$l(e,new URL(t.location.href)):{location:{id:e.entry},addressProblem:void 0},b=t&&a?Qd(t.history.state,a)??{position:0,last:0}:void 0;return{entries:[y.location],index:0,addressProblem:y.addressProblem,browser:b,visits:[y.location]}}),r=o.entries[o.index],u=(0,Ra.useRef)(o.browser?.last??0);(0,Ra.useEffect)(()=>{if(!t||!a)return;let y=t.history,b=h=>{let{location:d,addressProblem:g}=$l(e,new URL(t.location.href)),S=Qd(h.state,a),x=S?{...S,last:Math.max(S.position,u.current)}:{position:0,last:0};u.current=x.last,y.replaceState({kplexPublication:a,...x},""),i.current(d.id),l(N=>({entries:[d],index:0,addressProblem:g,browser:x,visits:ac(N.visits,d)}))},w=Qd(y.state,a)??{position:0,last:0};return y.replaceState({kplexPublication:a,...w},""),t.addEventListener("popstate",b),()=>t.removeEventListener("popstate",b)},[t,e,a]);function c(y){let b={...y,canvas:{...r.canvas,...y.canvas}};if(!e.nodes.has(b.id)||!o.addressProblem&&r.id===b.id&&r.fragment===b.fragment&&Kd(r.canvas,b.canvas))return!1;if(i.current(b.id),t&&a&&o.browser){let h=o.browser.position+1,d={position:h,last:h};return t.history.pushState({kplexPublication:a,...d},"",Uo(new URL(t.location.href),b)),u.current=h,l({entries:[b],index:0,browser:d,visits:ac(o.visits,b)}),!0}let w=o.index+1;return l({entries:[...o.entries.slice(0,w),b],index:w,visits:ac(o.visits,b)}),!0}function f(y){let b={...r.canvas,...y};if(Kd(r.canvas,b))return;let w={...r,canvas:b};t&&a&&o.browser&&t.history.replaceState(t.history.state,"",Uo(new URL(t.location.href),w));let h=[...o.entries];h[o.index]=w,l({...o,entries:h})}let p=o.browser?o.browser.position>0:o.index>0,s=o.browser?o.browser.position<o.browser.last:o.index+1<o.entries.length;function m(y){if(y===-1?p:s)if(t&&o.browser)t.history.go(y);else{let b=o.index+y,w=o.entries[b];i.current(w.id),l({...o,index:b,addressProblem:void 0,visits:ac(o.visits,w)})}}return{attention:r,activate:c,changeCanvas:f,move:m,visits:o.visits,addressProblem:o.addressProblem,canGoBack:p,canGoForward:s}}T();var Fi=K(tt(),1);T();var ko=K(tt(),1),Ev=K(hr(),1);T();var KE="button, input, select, textarea, a[href], [contenteditable='true'], [role='button'], [role='link'], [data-kplex-no-dialog-drag]";function QE(){}function ZE(e){return!e||typeof e!="object"||!("closest"in e)?null:e}function FE(e,t){let i=ZE(e)?.closest(KE)??null;return!!(i&&t.contains(i))}function Sv(e,t,n,i,a){let o=t+a,l=Math.max(o,t+n-i-a);return Math.min(l,Math.max(o,e))}function JE(e){let t=e.visualViewport;return{left:t?.offsetLeft??0,top:t?.offsetTop??0,width:t?.width??e.innerWidth,height:t?.height??e.innerHeight}}function wv({modalEl:e,handleEl:t,viewportMargin:n=8,onPositionChange:i}){let a=e.ownerDocument,o=a.defaultView;if(!o||t.ownerDocument!==a)return QE;let l=null,r=!1,u=!1,c=!1,f=o.visualViewport,p=(x,N)=>{let E=e.getBoundingClientRect(),M=JE(o),R=Sv(x,M.left,M.width,E.width,n),O=Sv(N,M.top,M.height,E.height,n);e.style.setProperty("--kplex-dialog-left",`${R}px`),e.style.setProperty("--kplex-dialog-top",`${O}px`),e.classList.add("is-positioned"),u=!0,i?.({left:R,top:O})},s=()=>{if(!u||c)return;let x=e.getBoundingClientRect();p(x.left,x.top)},m=()=>{a.removeEventListener("pointermove",b,!0),a.removeEventListener("pointerup",w,!0),a.removeEventListener("pointercancel",w,!0)},y=()=>{if(!l)return;let x=l.pointerId;l=null,r=!1,m(),t.hasPointerCapture(x)&&t.releasePointerCapture(x),e.classList.remove("is-dragging"),t.classList.remove("is-dragging")};function b(x){let N=l;if(!N||x.pointerId!==N.pointerId)return;x.preventDefault(),x.stopPropagation();let E=x.clientX-N.startClientX,M=x.clientY-N.startClientY;if(!r){if(Math.hypot(E,M)<3)return;r=!0,e.classList.add("is-dragging"),t.classList.add("is-dragging")}p(N.startLeft+E,N.startTop+M)}function w(x){!l||x.pointerId!==l.pointerId||(x.preventDefault(),x.stopPropagation(),y())}let h=x=>{l?.pointerId===x.pointerId&&y()},d=()=>{y()},g=x=>{if(c||l||x.button!==0||FE(x.target,t))return;let N=e.getBoundingClientRect();l={pointerId:x.pointerId,startClientX:x.clientX,startClientY:x.clientY,startLeft:N.left,startTop:N.top},a.addEventListener("pointermove",b,!0),a.addEventListener("pointerup",w,!0),a.addEventListener("pointercancel",w,!0);try{t.setPointerCapture(x.pointerId)}catch{}x.preventDefault(),x.stopPropagation()},S=()=>{c||(c=!0,y(),t.removeEventListener("pointerdown",g),t.removeEventListener("lostpointercapture",h),o.removeEventListener("blur",d),o.removeEventListener("resize",s),o.removeEventListener("pagehide",S),f?.removeEventListener("resize",s),f?.removeEventListener("scroll",s),e.classList.remove("kplex-draggable-dialog","is-positioned","is-dragging"),t.classList.remove("kplex-draggable-dialog-handle","is-dragging"),e.style.removeProperty("--kplex-dialog-left"),e.style.removeProperty("--kplex-dialog-top"))};return e.classList.add("kplex-draggable-dialog"),t.classList.add("kplex-draggable-dialog-handle"),t.addEventListener("pointerdown",g),t.addEventListener("lostpointercapture",h),o.addEventListener("blur",d),o.addEventListener("resize",s),o.addEventListener("pagehide",S),f?.addEventListener("resize",s),f?.addEventListener("scroll",s),S}function WE(e,t){let n=e.target,i=e.composedPath();return t.some(a=>a?i.includes(a)?!0:n?a.contains(n):!1:!1)}function oc({open:e,anchorRef:t,anchorPoint:n,panelRef:i,dragHandleRef:a,insideRoots:o,onDismiss:l,dismissWhenAnchorHidden:r=!1,handleEscape:u,portalTarget:c,positioning:f,children:p}){let[s,m]=(0,ko.useState)({}),y=(0,ko.useRef)({insideRoots:o,onDismiss:l,handleEscape:u});y.current={insideRoots:o,onDismiss:l,handleEscape:u};let b=t.current,w=b?.ownerDocument??null,h=b?.closest("[data-floating-layer-boundary]")??null,d=e&&w?h??c(w):null,g=n?.x,S=n?.y;return(0,ko.useLayoutEffect)(()=>{if(!e)return;let x=t.current;if(!x)return;let N=x.ownerDocument,E=N.defaultView;if(!E)return;let M=!1,R=null,O=()=>{if(M)return;let P=t.current;if(!P||P.ownerDocument!==N)return;let C=P.getBoundingClientRect();if(r&&(!P.getClientRects().length||!C.width||!C.height)){y.current.onDismiss("anchor-hidden");return}let G=E.visualViewport,H=h?.getBoundingClientRect(),X=H&&h?H.left+h.clientLeft-h.scrollLeft:0,ie=H&&h?H.top+h.clientTop-h.scrollTop:0,J=Math.max(G?.offsetLeft??0,H?.left??0),k=Math.max(G?.offsetTop??0,H?.top??0),Z=Math.min((G?.offsetLeft??0)+Math.min(E.innerWidth,G?.width??E.innerWidth),H?.right??1/0),fe=Math.min((G?.offsetTop??0)+Math.min(E.innerHeight,G?.height??E.innerHeight),H?.bottom??1/0),he=Math.min(f.viewportMargin,Math.max(0,(Z-J)/2)),nn=g??C.left,ze=S??C.top,Vt=S??C.bottom,ke=Math.max(0,Math.min(Math.max(f.minimumWidth,f.preferredWidth),Z-J-he*2)),Zn=Math.max(J+he,Math.min(R?.left??nn,Z-ke-he)),lt=fe-Vt-f.anchorGap-he,Ot=ze-k-f.anchorGap-he,St=lt<f.minimumMaxHeight&&Ot>lt?ze-f.anchorGap-Math.min(i.current?.scrollHeight||f.minimumMaxHeight,Ot):Vt+f.anchorGap,Lt=Math.max(k+he,Math.min(R?.top??St,fe-Math.min(f.minimumMaxHeight,Math.max(0,fe-k-he*2))-he));m({position:h?"absolute":"fixed",left:Zn-X,top:Lt-ie,width:ke,maxHeight:Math.max(0,fe-Lt-he)})},D=P=>{WE(P,y.current.insideRoots())||y.current.onDismiss("outside-pointer")},I=P=>{if(P.key!=="Escape"||y.current.handleEscape?.(P)===!1)return;P.preventDefault(),P.stopPropagation(),y.current.onDismiss("escape");let C=t.current;C?.ownerDocument===N&&C.isConnected&&C.focus({preventScroll:!0})},B=E.ResizeObserver,j=B?new B(O):null;j?.observe(x),h&&j?.observe(h),i.current&&j?.observe(i.current),E.addEventListener("resize",O),E.visualViewport?.addEventListener("resize",O),E.visualViewport?.addEventListener("scroll",O),N.addEventListener("scroll",O,!0),N.addEventListener("pointerdown",D,!0),N.addEventListener("keydown",I,!0);let q=i.current,le=a?.current,ne=q&&le?wv({modalEl:q,handleEl:le,viewportMargin:f.viewportMargin,onPositionChange:P=>{R=P,O()}}):void 0,de=()=>{M||(M=!0,ne?.(),j?.disconnect(),E.removeEventListener("resize",O),E.visualViewport?.removeEventListener("resize",O),E.visualViewport?.removeEventListener("scroll",O),N.removeEventListener("scroll",O,!0),N.removeEventListener("pointerdown",D,!0),N.removeEventListener("keydown",I,!0),E.removeEventListener("pagehide",de))};return E.addEventListener("pagehide",de),O(),de},[e,r,t,g,S,i,a,w,h,f.anchorGap,f.minimumMaxHeight,f.minimumWidth,f.preferredWidth,f.viewportMargin]),d?(0,Ev.createPortal)(p(s),d):null}var Tn=K(ye(),1),$E={preferredWidth:250,minimumWidth:160,viewportMargin:8,anchorGap:5,minimumMaxHeight:55};function xv({anchor:e,address:t,shortAddress:n,onDismiss:i,onCopied:a}){let o=(0,Fi.useRef)(e),l=(0,Fi.useRef)(null),r=(0,Fi.useRef)(!0),[u,c]=(0,Fi.useState)();o.current=e,(0,Fi.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]);async function f(s){try{let m=e.ownerDocument.defaultView?.navigator.clipboard;if(!m)throw new Error("Clipboard unavailable");await m.writeText(s),r.current&&(a(),i(!0))}catch{r.current&&c(s)}}function p(s){if(!n||u||!["ArrowDown","ArrowUp","Home","End"].includes(s.key))return;let[m,y]=Array.from(s.currentTarget.querySelectorAll("[role=menuitem]")),b=s.key==="Home"?m:s.key==="End"||s.target===m?y:m;s.preventDefault(),b?.focus()}return(0,Tn.jsx)(oc,{open:!0,anchorRef:o,panelRef:l,insideRoots:()=>[l.current],dismissWhenAnchorHidden:!0,onDismiss:s=>i(s==="escape"),portalTarget:()=>e.closest(".kplex-publication"),positioning:$E,children:s=>(0,Tn.jsx)("div",{ref:l,style:s,className:"kplex-publication-address-menu",role:u?"dialog":"menu","aria-label":L.copyAddress,onKeyDown:p,children:u?(0,Tn.jsx)("input",{autoFocus:!0,readOnly:!0,"aria-label":L.address,value:u,onFocus:m=>m.currentTarget.select()}):(0,Tn.jsxs)(Tn.Fragment,{children:[(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!!n,disabled:!n,onClick:()=>{n&&f(n)},children:L.copyShortAddress}),(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!n,onClick:()=>{f(t)},children:L.copyFullAddress}),!n&&(0,Tn.jsx)("p",{children:L.ambiguousAddress})]})})})}T();var Ji=K(tt(),1);var Nn=K(ye(),1),ex={preferredWidth:216,minimumWidth:160,viewportMargin:8,anchorGap:4,minimumMaxHeight:180};function Tv({anchor:e,point:t,choices:n,onDismiss:i}){let a=(0,Ji.useRef)(e),o=(0,Ji.useRef)(null),l=(0,Ji.useRef)(null),[r,u]=(0,Ji.useState)(null);a.current=e;function c(){let m=l.current;(m?.querySelector("[aria-checked=true]")??m?.querySelector("button"))?.focus()}(0,Ji.useLayoutEffect)(()=>{r&&c()},[r]);function f(){u(null),o.current?.querySelector("[aria-haspopup=menu][aria-expanded=true]")?.focus()}function p(m){if(m.key==="Tab"){i();return}let y=m.target,b=y.closest("[role=menu]");if(b){if(m.key==="ArrowRight"&&y.getAttribute("aria-haspopup")==="menu")r?c():y.click();else if(m.key==="ArrowLeft"&&b!==o.current)f();else if(["ArrowDown","ArrowUp","Home","End"].includes(m.key)){let w=Array.from(b.querySelectorAll("button")).filter(g=>g.closest("[role=menu]")===b),h=w.indexOf(y),d=m.key==="Home"?0:m.key==="End"?w.length-1:(h+(m.key==="ArrowDown"?1:-1)+w.length)%w.length;w[d]?.focus()}else return;m.preventDefault(),m.stopPropagation()}}function s({label:m,kind:y,checked:b,select:w},h,d=!1){return(0,Nn.jsxs)("button",{type:"button",role:y,"aria-checked":b,autoFocus:d&&h===0,onClick:()=>{w(),i(),e.focus({preventScroll:!0})},children:[(0,Nn.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true",children:b?"✓":""}),m]},m)}return(0,Nn.jsx)(oc,{open:!0,anchorRef:a,anchorPoint:t,panelRef:o,insideRoots:()=>[o.current,e],dismissWhenAnchorHidden:!0,onDismiss:i,portalTarget:()=>e.closest(".kplex-publication"),positioning:ex,handleEscape:m=>r?(m.preventDefault(),m.stopPropagation(),f(),!1):!0,children:m=>(0,Nn.jsx)("div",{ref:o,style:m,className:"kplex-publication-address-menu kplex-publication-canvas-menu",role:"menu","aria-label":L.graphOptions,onKeyDown:p,children:n.map((y,b)=>"choices"in y?(0,Nn.jsxs)("div",{role:"none",children:[(0,Nn.jsxs)("button",{type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":r===y.label,onClick:()=>r===y.label?f():u(y.label),children:[(0,Nn.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true"}),y.label,(0,Nn.jsx)("span",{className:"kplex-publication-submenu-arrow","aria-hidden":"true",children:"▸"})]}),r===y.label&&(0,Nn.jsx)("div",{ref:l,role:"menu","aria-label":y.label,children:y.choices.map((w,h)=>s(w,h))})]},y.label):s(y,b,!0))})})}T();var Nv=K(tt(),1),Mv=K(ye(),1);function Fd({icon:e,size:t,className:n}){function i(a,o){return(0,Nv.createElement)(a.tag,{...a.attrs,key:o},a.shapes.length?a.shapes.map(i):void 0)}return(0,Mv.jsx)("svg",{...e.attrs,width:t,height:t,viewBox:e.viewBox,className:n,"aria-hidden":"true",focusable:"false",children:e.shapes.map(i)})}T();var lc=K(tt(),1);var Qe=K(ye(),1);function Rv(){let e=(0,lc.useRef)(null),t=(0,lc.useId)(),n=typeof _>"u"?[]:_;return n.length?(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)("button",{className:"kplex-publication-brand",type:"button","aria-label":L.about,"aria-haspopup":"dialog",onClick:()=>e.current?.showModal(),children:(0,Qe.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,Qe.jsx)("path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"}),(0,Qe.jsx)("path",{d:"M9 13a4.5 4.5 0 0 0 3-4M6.003 5.125A3 3 0 0 0 6.401 6.5M3.477 10.896a4 4 0 0 1 .585-.396M6 18a4 4 0 0 1-1.967-.516M12 13h4M12 18h6a2 2 0 0 1 2 2v1M12 8h8M16 8V5a2 2 0 0 1 2-2"}),(0,Qe.jsx)("circle",{cx:"16",cy:"13",r:".5"}),(0,Qe.jsx)("circle",{cx:"18",cy:"3",r:".5"}),(0,Qe.jsx)("circle",{cx:"20",cy:"21",r:".5"}),(0,Qe.jsx)("circle",{cx:"20",cy:"8",r:".5"})]})}),(0,Qe.jsxs)("dialog",{className:"kplex-publication-license-dialog",ref:e,"aria-labelledby":t,onKeyDown:i=>i.stopPropagation(),children:[(0,Qe.jsxs)("div",{className:"kplex-publication-license-heading",children:[(0,Qe.jsx)("h2",{id:t,children:L.licenses}),(0,Qe.jsx)("button",{type:"button",autoFocus:!0,onClick:()=>e.current?.close(),children:L.close})]}),n.map(([i,a])=>(0,Qe.jsxs)("section",{children:[(0,Qe.jsx)("h3",{children:i}),(0,Qe.jsx)("pre",{children:a})]},i))]})]}):null}T();var tr=K(tt(),1);T();T();function Av(e,t){if(!e.length||!Number.isFinite(t))return null;let n=Math.max(0,Math.min(1,t));if(e.length===1)return e[0];for(let i=1;i<e.length;i++){let a=e[i],o=e[i-1];if(n>a.offset&&i<e.length-1)continue;let l=a.offset>o.offset?(n-o.offset)/(a.offset-o.offset):1,r=(u,c)=>u+(c-u)*l;return{offset:n,x:r(o.x,a.x),y:r(o.y,a.y),scaleX:r(o.scaleX,a.scaleX),scaleY:r(o.scaleY,a.scaleY),originX:r(o.originX,a.originX),originY:r(o.originY,a.originY)}}return null}var rc=class{constructor(){this.animations=new Map;this.poses=new Map}play(t,n,i,a){this.animations.get(t)?.cancel(),this.animations.delete(t),this.poses.delete(t);let o=t.animate(n,{...i,fill:"none"});if(!o)return null;this.animations.set(t,o),a&&this.poses.set(t,{animation:o,frames:a});let l=()=>{this.animations.get(t)===o&&(this.animations.delete(t),this.poses.delete(t))};return o.finished.then(l,l),o}isRunning(t){return t?this.animations.has(t):this.animations.size>0}sample(t){let n=this.poses.get(t);if(!n||this.animations.get(t)!==n.animation)return null;let i=n.animation.effect?.getComputedTiming().progress;return typeof i=="number"?Av(n.frames,i):null}cancelAll(){for(let t of this.animations.values())t.cancel();this.animations.clear(),this.poses.clear()}};T();function Cv(e,t,n,i){let a=Math.max(.01,n),o=(e.left-t.left)/a,l=(e.top-t.top)/a,r=t.width>0?e.width/t.width:1,u=t.height>0?e.height/t.height:1,c=Math.hypot(o,l),f=Math.min(24/a,c*.08),p=c?-l/c:0,s=c?o/c:0;return[0,.35,.65,.85,1].map(m=>{let y=m===0||m===1?0:Math.sin(Math.PI*m),b=o*(1-m)+p*f*y,w=l*(1-m)+s*f*y,h=1+.055*y;return i?.push({offset:m,x:b,y:w,scaleX:(r+(1-r)*m)*h,scaleY:(u+(1-u)*m)*h,originX:0,originY:0}),{offset:m,transformOrigin:"0 0",transform:`translate(${b}px, ${w}px) scale(${(r+(1-r)*m)*h}, ${(u+(1-u)*m)*h})`,opacity:1}})}T();var er=K(tt(),1),uc=K(ye(),1),Aa="[data-publication-strip-scroll]";function Ov({id:e,label:t,panel:n,start:i,onScroll:a,children:o}){let l=(0,er.useRef)(null),r=(0,er.useRef)(i);return(0,er.useLayoutEffect)(()=>{l.current&&(l.current.scrollTop=r.current)},[]),(0,uc.jsx)("div",{className:"kplex-zone-panel",style:{left:n.x,top:n.y,width:n.width,height:n.height},children:(0,uc.jsx)("div",{className:"kplex-zone-scroll kplex-publication-strip-scroll","data-publication-strip-scroll":e,ref:l,role:"region","aria-label":t,tabIndex:0,onScroll:u=>a(u.currentTarget.scrollTop),children:(0,uc.jsx)("div",{className:"kplex-zone-content",style:{height:n.contentHeight},children:o})})})}var cc={duration:320,easing:"cubic-bezier(.2,.72,.22,1)"};function Lv(e){let t=e.getBoundingClientRect(),n=new Map(Array.from(e.querySelectorAll(Aa),a=>[a,a.getBoundingClientRect()])),i=[];for(let a of Array.from(e.querySelectorAll("[data-publication-occurrence]"))){let o=a.getBoundingClientRect(),l=a.closest(Aa),r=l?n.get(l)??t:t;o.left>=Math.min(t.right,r.right)||o.right<=Math.max(t.left,r.left)||o.top>=Math.min(t.bottom,r.bottom)||o.bottom<=Math.max(t.top,r.top)||i.push({element:a,id:a.dataset.publicationNode,occurrence:a.dataset.publicationOccurrence,rect:o,clipped:r!==t&&(o.top<r.top||o.bottom>r.bottom)})}return i}function tx(e,t){let n=new Set(e),i=new Map(e.map(l=>[l.occurrence,l])),a=new Map;for(let l of e){let r=a.get(l.id);r?r.push(l):a.set(l.id,[l])}let o=new Map;for(let l of t){let r=i.get(l.occurrence);r?.id===l.id&&(o.set(l,r),n.delete(r))}for(let l of t){if(o.has(l))continue;let r,u=1/0;for(let c of a.get(l.id)??[]){if(!n.has(c))continue;let f=Math.hypot(l.rect.x-c.rect.x,l.rect.y-c.rect.y);f<u&&(r=c,u=f)}r&&(o.set(l,r),n.delete(r))}return{pairs:o,remaining:n}}function zv(e,t){let n=(0,tr.useRef)(new rc).current,i=(0,tr.useRef)(null);function a(){i.current=null,n.cancelAll(),t.current?.replaceChildren()}(0,tr.useEffect)(()=>{let r=e.current?.ownerDocument.defaultView?.matchMedia("(prefers-reduced-motion: reduce)");return r?.addEventListener("change",a),()=>{r?.removeEventListener("change",a),a()}},[]);function o(r){let u=e.current,c=u?.ownerDocument.defaultView;if(!(!u||!c)){if(u.querySelector("[data-publication-center]")?.dataset.publicationNode===r){i.current=null;return}if(u.ownerDocument.hidden||c.matchMedia("(prefers-reduced-motion: reduce)").matches||typeof u.animate!="function"){a();return}i.current={id:r,cards:Lv(u)}}}function l(r,u){let c=e.current,f=t.current,p=i.current;if(a(),!c||!f||p?.id!==r)return;let s=Lv(c),{pairs:m,remaining:y}=tx(p.cards,s);for(let h of s){let d=m.get(h)?.rect;d?(Math.abs(d.left-h.rect.left)>.5||Math.abs(d.top-h.rect.top)>.5||Math.abs(d.width-h.rect.width)>.5||Math.abs(d.height-h.rect.height)>.5)&&n.play(h.element,Cv(d,h.rect,u),cc):n.play(h.element,[{opacity:0,transform:"translateY(12px) scale(.94)"},{opacity:1,transform:"none"}],cc)}let b=f.getBoundingClientRect();for(let h of y){if(h.clipped||h.element.isConnected)continue;let d=h.element.cloneNode(!0);d.removeAttribute("role"),d.removeAttribute("tabindex"),d.removeAttribute("data-publication-node"),d.removeAttribute("data-publication-occurrence"),d.removeAttribute("data-publication-center"),d.style.left=`${h.rect.left-b.left}px`,d.style.top=`${h.rect.top-b.top}px`;let g=h.rect.width/parseFloat(d.style.width),S=h.rect.height/parseFloat(d.style.height);f.append(d);let x=n.play(d,[{opacity:1,transformOrigin:"0 0",transform:`scale(${g}, ${S})`},{opacity:0,transformOrigin:"0 0",transform:`translateY(-8px) scale(${g*.95}, ${S*.95})`}],{...cc,duration:200});x?x.finished.then(()=>d.remove(),()=>d.remove()):d.remove()}let w=c.querySelector(".kplex-links");w&&n.play(w,[{opacity:0,offset:0},{opacity:.12,offset:.45},{opacity:1,offset:1}],cc)}return{capture:o,play:l,cancel:a}}T();var At=K(tt(),1);T();var nr=K(ye(),1);function Dv({label:e,controlId:t,children:n,layout:i="stacked",actions:a,className:o=""}){return(0,nr.jsxs)("div",{className:`${i==="option"?"kplex-form-option":i==="inline"?"kplex-form-inline":"kplex-form-field kplex-react-field"}${a?" has-actions":""} ${o}`,children:[(0,nr.jsx)("label",{id:`${t}-label`,htmlFor:t,children:e}),n,a?(0,nr.jsx)("div",{className:"kplex-field-actions",children:a}):null]})}T();var sc=K(tt(),1);T();var Le=K(tt(),1),_v=K(hr(),1),vt=K(ye(),1);function nx(e,t){let n=t.trim().toLocaleLowerCase();if(!n)return new Set;let i=e.toLocaleLowerCase(),a=i.indexOf(n);if(a>=0)return new Set(Array.from({length:n.length},(r,u)=>a+u));let o=new Set,l=0;for(let r of n){let u=i.indexOf(r,l);if(u<0)return new Set;o.add(u),l=u+1}return o}function Hv(e,t){let n=nx(e,t);if(!n.size)return e;let i=[],a=0,o=n.has(0);for(let l=1;l<=e.length;l+=1){let r=l<e.length&&n.has(l);if(l<e.length&&r===o)continue;let u=e.slice(a,l);i.push(o?(0,vt.jsx)("mark",{className:"kplex-fuzzy-match",children:u},`${a}:m`):(0,vt.jsx)("span",{children:u},`${a}:t`)),a=l,o=r}return(0,vt.jsx)(vt.Fragment,{children:i})}function Uv({value:e,onChange:t,results:n,getResults:i,onChoose:a,getKey:o,getLabel:l,getDetail:r,placeholder:u,ariaLabel:c,inputId:f,labelledBy:p,icon:s,autoFocus:m=!1,disabled:y=!1,floating:b=!1,floatingMode:w="app",portalSelector:h,appTopbarSelector:d,maxFloatingHeight:g=440,minFloatingWidth:S=0,resultsClassName:x="",matchingQuery:N,resultsOwnerId:E,preferSuggestionOnModifiedEnter:M=!1,resultPrefix:R,onEnterWithoutResult:O,onCtrlEnter:D,openResultsOnFocus:I=!0,onFocusChange:B,onDismiss:j,focusRequest:q,inputTitle:le,inputKeyShortcuts:ne,className:de="",highlightMatches:P=!0,closeOnChoose:C=!0,closeOnBlur:G=!1,combobox:H=!1,advanceOnChoose:X=!1,disclosure:ie}){let J=(0,Le.useId)(),[k,Z]=(0,Le.useState)(!1),[fe,he]=(0,Le.useState)(!1),[nn,ze]=(0,Le.useState)(!1),[Vt,ke]=(0,Le.useState)(!1),[Zn,lt]=(0,Le.useState)(0),[Ot,St]=(0,Le.useState)(null),Lt=(0,Le.useRef)(null),Fn=(0,Le.useRef)(null),Rn=(0,Le.useRef)(null),An=k&&!nn&&(Vt||I||fe&&e.trim().length>0),ve=(0,Le.useMemo)(()=>An?i?.(e)??n??[]:[],[An,i,n,e]),et=ve.length?Math.max(0,Math.min(ve.length-1,Zn)):0,wt=Lt.current?.ownerDocument??null,De=wt?.defaultView??null,Cn=b?w==="viewport"?wt?.body??null:h?Lt.current?.closest(h)??null:null:null,Yt=k&&ve.length>0&&(!b||!!(Cn&&Ot)),mn=()=>{ke(!1),ze(!0),lt(0),j?.()},qt=()=>{ie&&(ie.onOpen(),Rn.current?.focus({preventScroll:!0}),Z(!0),ke(!0),ze(!1),lt(0))},Oa=U=>{ke(!1),Z(!U),he(!1),ze(!U),lt(0);let ae=Rn.current;U&&ae&&ae.ownerDocument.activeElement===ae&&ae.blur(),B?.(!1)},yi=()=>Oa(!0),pn=U=>{if(a(U),C){Oa(!H);return}X&&ve.length>0&&lt(ae=>(Math.max(0,Math.min(ve.length-1,ae))+1)%ve.length)};(0,Le.useEffect)(()=>{lt(0)},[e]);let Pe=(0,Le.useCallback)(()=>{let U=Rn.current;U&&(Z(!0),he(!1),ze(!1),U.focus({preventScroll:!0}),B?.(!0))},[B]);(0,Le.useEffect)(()=>{m&&Pe()},[m,Pe]),(0,Le.useEffect)(()=>{q&&Pe()},[q,Pe]),(0,Le.useEffect)(()=>{let U=Lt.current;if(!U)return;let ae=()=>mn();return U.addEventListener("kplex-dismiss-suggestions",ae),()=>U.removeEventListener("kplex-dismiss-suggestions",ae)},[j]),(0,Le.useEffect)(()=>{if(!k||!wt||!De)return;let U=Lt.current;if(!U)return;let ae=zt=>{let Dt=zt.target;Dt&&(U.contains(Dt)||Fn.current?.contains(Dt))||yi()},qe=()=>wt.removeEventListener("pointerdown",ae,!0);return wt.addEventListener("pointerdown",ae,!0),De.addEventListener("pagehide",qe,{once:!0}),()=>{qe(),De.removeEventListener("pagehide",qe)}},[k,wt,De]),(0,Le.useLayoutEffect)(()=>{if(!b||!k||!ve.length){St(null);return}let U=Lt.current;if(!U||!De)return;let ae=De.visualViewport,qe=()=>{let Wn=U.getBoundingClientRect(),Ht=8,Da=6;if(w==="viewport"){let On=ae?.offsetLeft??0,Bo=ae?.offsetTop??0,Vo=ae?.width??De.innerWidth,Yo=Bo+(ae?.height??De.innerHeight),qo=Math.min(Math.max(Wn.width,S),Math.max(0,Vo-Ht*2)),rr=Math.max(On+Ht,Math.min(Wn.left,On+Vo-Ht-qo)),jo=Math.max(Wn.bottom+Da,Bo+Ht),hh=Math.min(Wn.top-Da,Yo-Ht),xc=Math.max(0,Yo-Ht-jo),mh=Math.max(0,hh-Bo-Ht),ph=xc>=Math.min(180,g)||xc>=mh,K0=Math.max(0,Math.min(g,ph?xc:mh)),Tc={position:"fixed",left:rr,width:qo,maxHeight:K0,zIndex:1e4};ph?Tc.top=jo:Tc.bottom=De.innerHeight-hh,St(Tc);return}let Ha=h?U.closest(h)??null:null,lr=d?U.closest(d)??null:null;if(!Ha||!lr)return;let v=Ha.getBoundingClientRect(),z=lr.getBoundingClientRect(),Y=Math.max(0,v.width-Ht*2),$=Math.min(780,Math.max(Wn.width,Math.min(620,Y)),Y),ce=Ht,F=Math.max(ce,v.width-Ht-$),He=Math.min(F,Math.max(ce,Wn.left-v.left)),pt=Math.max(0,z.bottom-v.top+Da),Et=Math.max(0,Math.min(g,v.height-pt-Ht));St({left:He,top:pt,width:$,maxHeight:Et})};qe();let zt=De.ResizeObserver,Dt=zt?new zt(qe):null,$i=w==="app"&&h?U.closest(h):null,or=w==="app"&&d?U.closest(d):null;$i&&Dt?.observe($i),or&&Dt?.observe(or),Dt?.observe(U);let za=()=>{Dt?.disconnect(),De.removeEventListener("resize",qe),De.removeEventListener("scroll",qe,!0),ae?.removeEventListener("resize",qe),ae?.removeEventListener("scroll",qe)};return De.addEventListener("resize",qe),De.addEventListener("scroll",qe,!0),ae?.addEventListener("resize",qe),ae?.addEventListener("scroll",qe),De.addEventListener("pagehide",za,{once:!0}),()=>{za(),De.removeEventListener("pagehide",za)}},[d,b,w,k,ve.length,g,S,wt,De,h]),(0,Le.useEffect)(()=>{let U=Fn.current;!U||!ve.length||U.querySelector(`[data-kplex-fuzzy-index="${et}"]`)?.scrollIntoView({block:"nearest"})},[et,ve.length]);let Jn=U=>{if(!(U.nativeEvent.isComposing||U.key==="Dead"||U.getModifierState("AltGraph"))){if(U.key==="Tab"){mn(),Z(!1),B?.(!1);return}if(U.key==="Escape"){ve.length&&(U.preventDefault(),U.stopPropagation(),mn());return}if(H&&ie&&U.key==="ArrowDown"&&!ve.length){U.preventDefault(),qt();return}if(U.key==="ArrowDown"&&ve.length){U.preventDefault(),lt(ae=>Math.min(ve.length-1,ae+1));return}if(U.key==="ArrowUp"&&ve.length){U.preventDefault(),lt(ae=>Math.max(0,ae-1));return}if(U.key==="Enter"&&U.repeat){U.preventDefault(),U.stopPropagation();return}if(U.key==="Enter"&&ve.length&&(!(U.ctrlKey||U.metaKey)||M)){U.preventDefault(),U.stopPropagation();let ae=ve[et];ae&&pn(ae);return}if(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&D){U.preventDefault(),U.stopPropagation(),D();return}if(!(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&!D)&&U.key==="Enter"){U.preventDefault();let ae=ve[et];ae?pn(ae):O?.()}}},La=k&&ve.length>0?(0,vt.jsx)("div",{ref:Fn,id:H?J:void 0,role:H?"listbox":void 0,"aria-labelledby":H?p:void 0,"aria-label":H&&!p?c:void 0,"data-fuzzy-owner":E,"data-kplex-tooltip-scope":!0,className:`kplex-search-results${b?" kplex-fuzzy-floating-results":" kplex-fuzzy-inline-results"}${x?` ${x}`:""}`,style:b?Ot??void 0:void 0,children:ve.map((U,ae)=>{let qe=l(U),zt=r?.(U),Dt=P?N??e:"";return(0,vt.jsxs)("button",{id:H?`${J}-option-${ae}`:void 0,role:H?"option":void 0,"aria-selected":H?ae===et:void 0,tabIndex:H?-1:void 0,"data-kplex-fuzzy-index":ae,className:`kplex-search-result${R?" has-prefix":""}${ae===et?" is-selected":""}`,"aria-label":zt?`${qe}
768
+ ${zt}`:qe,onMouseDown:$i=>$i.preventDefault(),onMouseEnter:()=>lt(ae),onClick:()=>pn(U),children:[R?(0,vt.jsx)("span",{className:"kplex-search-result-prefix","aria-hidden":"true",children:R(U)}):null,(0,vt.jsx)("span",{children:Hv(qe,Dt)}),zt?(0,vt.jsx)("small",{children:Hv(zt,Dt)}):null]},o(U))})}):null,Ec=b&&Cn&&Ot&&La?(0,_v.createPortal)(La,Cn):b?null:La;return(0,vt.jsxs)("div",{ref:Lt,className:`kplex-search-shell kplex-fuzzy-search${de?` ${de}`:""}`,children:[s?(0,vt.jsx)("div",{className:"kplex-search-icon",children:s}):null,(0,vt.jsx)("input",{ref:Rn,type:"text",role:H?"combobox":void 0,id:f,className:"kplex-search",value:e,disabled:y,onChange:U=>{ke(!1),he(!0),ze(!1),t(U.currentTarget.value)},onFocus:()=>{Z(!0),he(!1),ze(!1),B?.(!0)},onBlur:G?yi:void 0,onKeyDown:Jn,placeholder:u,"aria-label":p?void 0:c,title:le,"aria-keyshortcuts":ne,"aria-labelledby":p,"aria-expanded":H?Yt:k&&ve.length>0,"aria-haspopup":H?"listbox":void 0,"aria-autocomplete":H?"list":void 0,"aria-controls":H&&Yt?J:void 0,"aria-activedescendant":H&&Yt?`${J}-option-${et}`:void 0,autoComplete:"off"}),ie?(0,vt.jsx)("button",{type:"button",className:"kplex-fuzzy-disclosure",tabIndex:H?-1:void 0,disabled:y,"aria-label":ie.label,"aria-expanded":H?Yt:k&&ve.length>0,"aria-haspopup":H?"listbox":void 0,"aria-controls":H&&Yt?J:void 0,onMouseDown:U=>U.preventDefault(),onClick:()=>{if(k&&Vt&&!nn){mn();return}qt()},children:ie.icon}):null,Ec]})}var Pv=K(ye(),1);function kv({graph:e,icon:t,portalSelector:n,appTopbarSelector:i,onActivate:a,revision:o,focusRequest:l,inputTitle:r,inputKeyShortcuts:u,placeholder:c,ariaLabel:f,clearOnActivate:p=!0,repeatFind:s=!1,resultIcon:m}){let[y,b]=(0,sc.useState)(""),w=(0,sc.useCallback)(h=>e.search(h,24),[e,o]);return(0,Pv.jsx)(Uv,{value:y,onChange:b,getResults:w,onChoose:h=>{a(h.node.id),p&&b("")},getKey:h=>h.node.id,getLabel:h=>h.label,getDetail:h=>h.detail,resultPrefix:m,placeholder:c,ariaLabel:f,floating:!0,icon:t,portalSelector:n,appTopbarSelector:i,focusRequest:l,inputTitle:r,inputKeyShortcuts:u,closeOnChoose:!s,advanceOnChoose:s})}T();T();var ix=1e5,ax=8*1024*1024,Iv=1e6,ox=/[\p{L}\p{N}]+/gu,lx=/^[\p{L}\p{N}]{1,128}$/u;function Gv(e){return[...new Set(e.normalize("NFC").toLowerCase().match(ox))].filter(t=>t.length<=128)}function rx(e,t){if(!Array.isArray(e)||e.length>Fu)throw new Error("Invalid publication search rows");let n=new Set,i=0;return e.map(a=>{if(!a||typeof a!="object"||!("id"in a)||!pi(a.id)||n.has(a.id)||t&&!t.has(a.id)||!("text"in a)||typeof a.text!="string"||a.text.length>ix)throw new Error("Invalid publication search row");if(n.add(a.id),i+=a.text.length,i>ax)throw new Error("Publication search exceeds its text budget");return{id:a.id,text:a.text}})}function Bv(e,t){if(!e||typeof e!="object"||!("version"in e)||e.version!==1||!("rows"in e)||!("terms"in e)||!Array.isArray(e.terms)||e.terms.length>Iv)throw new Error("Invalid publication search index");let n=rx(e.rows,t),i="";for(let{id:r}of n){if(i>=r)throw new Error("Unordered publication search rows");i=r}let a="",o=0,l=e.terms.map(r=>{if(!Array.isArray(r)||r.length!==2)throw new Error("Invalid publication search term");let[u,c]=r;if(typeof u!="string"||u.length>128||!lx.test(u)||u!==u.normalize("NFC").toLowerCase()||a>=u||!Array.isArray(c)||!c.length||c.length>n.length)throw new Error("Invalid publication search term");if(a=u,o+=c.length,o>Iv)throw new Error("Publication search exceeds its posting budget");let f=-1;for(let p of c){if(typeof p!="number"||!Number.isInteger(p)||p<=f||p>=n.length)throw new Error("Invalid publication search reference");f=p}return[u,c]});return{version:1,rows:n,terms:l}}function Ca(e){return e.trim().normalize("NFC").toLowerCase()}function Vv(e,t){let n=new Set([...t.published.values()].filter(a=>a.kind==="document"||a.kind==="drawing").map(a=>a.id)),i=Bv(e,n);return{rows:i.rows,positions:new Map(i.rows.map(({id:a},o)=>[a,o])),postings:new Map(i.terms)}}function ux(e,t){let n=Math.max(0,Ca(e).indexOf(t)-35);return`${n?"…":""}${e.slice(n,n+90)}${e.length>n+90?"…":""}`}function Yv(e,t){let n=new Map,i=[...e.nodes.values()].map(o=>{let l=Ca(o.name),r=o.aliases.map(Ca),u=Object.values(e.published.get(o.id)?.properties??{}).flatMap(c=>typeof c=="object"?[...c]:[String(c)]).map(Ca);for(let c of[l,...r]){let f=n.get(c);f||n.set(c,f=new Set),f.add(o.id)}return{node:o,title:l,aliases:r,properties:u}});return{graph:{search(o,l){let r=Ca(o.slice(0,128));if(!r)return[];let u=Gv(r),c=u[0],f=t&&u.length?u.map(p=>new Set(t.postings.get(p))):null;return i.flatMap(({node:p,title:s,aliases:m,properties:y})=>{let b=t?.positions.get(p.id),w=s===r?1:m.includes(r)?2:s.startsWith(r)?3:m.some(h=>h.startsWith(r))?4:s.includes(r)?5:m.some(h=>h.includes(r))||y.some(h=>h.includes(r))?6:b!==void 0&&f?.every(h=>h.has(b))?7:0;return w?[{score:w,node:p,position:b,title:s}]:[]}).sort((p,s)=>p.score-s.score||e.read.compare(p.node,s.node)).slice(0,l).map(({score:p,node:s,position:m,title:y})=>{let b=p===7&&m!==void 0?t?.rows[m]?.text:void 0,w=b&&c?ux(b,c):n.get(y).size>1?s.id:s.aliases.find(h=>Ca(h).includes(r))??"";return{node:s,label:s.name,detail:w}})}},address(o){let l=Ca(o),r=Wl(e,l);return r.length?r:[...n.get(l)??[]]}}}var We=K(ye(),1);function qv({publication:e,resources:t,page:n,searchFocus:i,onChoose:a}){let o=(0,At.useRef)(null),l=(0,At.useId)(),[r,u]=(0,At.useState)(""),[c,f]=(0,At.useState)([]),[p,s]=(0,At.useState)(!1),[m,y]=(0,At.useState)(!1),[b,w]=(0,At.useState)(null),[h,d]=(0,At.useState)(!1),g=(0,At.useMemo)(()=>Yv(e,m?b:null),[e,m,b]);(0,At.useEffect)(()=>{let x=o.current?.ownerDocument.defaultView;if(!m||!x||b)return;let N=new x.AbortController,E=N.signal;return d(!1),t.text(Ld,E).then(M=>{E.aborted||w(Vv(JSON.parse(M),e))}).catch(()=>{E.aborted||d(!0)}),()=>N.abort()},[m,e,t,b]);function S(x){x.preventDefault();let N=bv(r.trim(),n(),e),E=N?N.matches:g.address(r);if(E.length!==1){f(E),s(!E.length);return}f([]),s(!1),a(N?.location??{id:E[0]})}return(0,We.jsxs)("div",{className:"kplex-publication-tools",ref:o,children:[(0,We.jsx)(kv,{graph:g.graph,revision:b&&m?1:0,onActivate:x=>a({id:x}),portalSelector:".kplex-publication",appTopbarSelector:".kplex-publication-header",placeholder:L.find,ariaLabel:L.find,focusRequest:i,inputTitle:`${L.find} (${Ql.key})`,inputKeyShortcuts:Ql.key}),e.manifest?.fullText&&(0,We.jsxs)("div",{className:"kplex-publication-search-options",children:[(0,We.jsx)("button",{type:"button","aria-pressed":m,onClick:()=>y(x=>!x),children:L.fullText}),h&&m?(0,We.jsx)("span",{role:"status",children:L.searchUnavailable}):m&&!b?(0,We.jsx)("span",{role:"status",children:L.searchLoading}):null]}),(0,We.jsxs)("form",{className:"kplex-publication-address",onSubmit:S,children:[(0,We.jsx)(Dv,{label:L.address,layout:"inline",controlId:l,actions:(0,We.jsx)("button",{type:"submit",children:L.open}),children:(0,We.jsx)("input",{id:l,type:"text",autoComplete:"off",maxLength:512,value:r,onChange:x=>{u(x.currentTarget.value),f([]),s(!1)}})}),p&&(0,We.jsx)("span",{role:"status",children:L.nodeUnavailable}),c.length>1&&(0,We.jsxs)("div",{className:"kplex-publication-address-matches",children:[(0,We.jsx)("p",{children:L.chooseNote}),(0,We.jsx)("ul",{children:c.slice(0,24).map(x=>(0,We.jsx)("li",{children:(0,We.jsxs)("button",{type:"button",onClick:()=>{f([]),a({id:x})},children:[e.nodes.get(x)?.name," · ",x]})},x))}),c.length>24&&(0,We.jsx)("p",{children:L.chooseAddress})]})]})]})}T();var Ct=K(tt(),1);T();var cx="https://api.github.com",sx="https://github.com",fx=/^[a-z\d][a-z\d-]{0,38}$/i,dx=/^[a-z\d_.-]{1,100}$/i;function jv(e){return e.length<=256&&/^[a-z\d_.:/-]+$/i.test(e)&&!e.endsWith(".")&&!e.includes("..")&&e.split("/").every(t=>!!t&&!t.startsWith(".")&&!t.endsWith(".lock"))}function Xv(e){if(!Hd(e))return null;let t=/^(https?):\/\/(?:www\.)?github\.com(?::(\d{1,5}))?(\/[^?#]*)?(?:[?#]|$)/i.exec(e);if(!t)return null;let[,n,i,a="/"]=t;if(i&&Number(i)!==(n.toLowerCase()==="https"?443:80))return null;let o;try{o=a.slice(1).replace(/\/$/,"").split("/").map(m=>decodeURIComponent(m))}catch{return{}}let[l,r,u,...c]=o;if(!l||!r||!fx.test(l)||!dx.test(r)||r==="."||r==="..")return{};let f=`${l}/${r}`,p=`${cx}/repos/${f}`,s=c.join("/");if(!u)return{repository:f,preview:{api:p,caption:f,comparison:!1}};if((u==="pull"||u==="issues")&&/^[1-9]\d{0,14}$/.test(c[0]??""))return{repository:f,preview:{api:`${p}/${u==="pull"?"pulls":"issues"}/${c[0]}`,caption:`${f} #${c[0]}`,comparison:!1}};if(u==="compare"){let m=s.split("...");if(m.length===2&&m.every(jv))return{repository:f,preview:{api:`${p}/compare/${m.map(encodeURIComponent).join("...")}?per_page=20`,caption:s,comparison:!0}}}if(u==="releases"&&c[0]==="tag"){let m=c.slice(1).join("/");if(jv(m))return{repository:f,preview:{api:`${p}/releases/tags/${encodeURIComponent(m)}`,caption:m,comparison:!1}}}return{repository:f}}function Jd(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function Wd(e,t){return typeof e=="string"&&e.trim()?e.trim().slice(0,t):void 0}function Kv(e,t,n){let i=Jd(n);if(!t.comparison)return{title:Wd(i.title??i.name??i.full_name,240)??t.caption,description:Wd(i.body??i.description,16e3)};let a=Array.isArray(i.commits)?i.commits.slice(0,20).flatMap(o=>{let{sha:l,commit:r}=Jd(o);if(typeof l!="string"||!/^[a-f\d]{40}$/i.test(l))return[];let u=Wd(Jd(r).message,240);return[{sha:l.slice(0,7),title:u?.split(/\r?\n/,1)[0]??l.slice(0,7),href:`${sx}/${e}/commit/${l}`}]}):[];return{title:t.caption,commits:a,total:typeof i.total_commits=="number"&&Number.isSafeInteger(i.total_commits)&&i.total_commits>=a.length?i.total_commits:a.length}}T();var fc="http://www.w3.org/1999/xhtml",Po="http://www.w3.org/2000/svg",hx="http://www.w3.org/1999/xlink",Qv="http://www.w3.org/XML/1998/namespace",mx=new Set("a article aside audio b blockquote br caption code dd del div dl dt em figcaption figure h1 h2 h3 h4 h5 h6 hr i img li mark ol p pre s section span strong sub sup table tbody td th thead tr ul video".split(" ")),px=new Set("svg a circle clipPath defs ellipse g image line linearGradient marker mask path pattern polygon polyline radialGradient rect stop symbol text textPath tspan use".split(" ")),gx=new Set("x y x1 x2 y1 y2 cx cy r rx ry fx fy fr d points width height viewBox markerWidth markerHeight refX refY startOffset stroke-width stroke-dasharray stroke-dashoffset font-size letter-spacing textLength pathLength transform gradientTransform patternTransform opacity fill-opacity stroke-opacity offset stop-opacity stroke-miterlimit".split(" ")),yx=new Set("stroke-linecap stroke-linejoin text-anchor dominant-baseline alignment-baseline font-weight font-style font-family fill-rule clip-rule gradientUnits spreadMethod markerUnits marker-start marker-end marker-mid patternUnits patternContentUnits clipPathUnits maskUnits maskContentUnits preserveAspectRatio orient vector-effect visibility lengthAdjust".split(" ")),bx=new Set(["fill","stroke","stop-color","clip-path","mask","marker-start","marker-end","marker-mid"]),Zv=/^[-a-z0-9_]{1,96}$/i,vx=/^[\d\s+.,%()a-z-]+$/i,Sx=/^[a-z0-9][a-z0-9 .,%'"-]{0,191}$/i,wx=/^(?:#[\da-f]{3,8}|[a-z]{1,32}|rgba?\([\d., %]+\)|hsla?\([\d., %+-]+\))$/i,Ex=/^url\(#([a-z0-9_.:-]{1,160})\)$/i,xx=/^\.\/assets\/[a-f0-9]{64}\.[a-z0-9]{2,5}$/,Fv=/\.(?:png|jpe?g|gif|webp|avif|svg)$/,Jv=4*1024*1024;function dc(e){return/^[bh]-[\p{L}\p{N}_-]{1,80}$/u.test(e)}function Tx(e){if(e.length>2048||!/^https?:\/\//i.test(e)||/[\p{Cc}\s\\]/u.test(e))return null;try{let t=new URL(e);return t.hostname&&!t.username&&!t.password?t.href:null}catch{return null}}function Nx(e,t=""){if(!pi(e)||t&&!dc(t))throw new Error("Invalid public link");return`?node=${e}${t?`#${encodeURIComponent(t)}`:""}`}function Wv(e,t){if(e.startsWith("?node=")){let n=/^\?node=([^#]+)(?:#(.+))?$/.exec(e);if(!n||!t.nodeIds.has(n[1])||!pi(n[1]))return null;let i="";try{i=decodeURIComponent(n[2]??"")}catch{return null}if(i&&!dc(i))return null;if(t.nodeAddress)return t.nodeAddress(n[1],i);let a=Nx(n[1],i);return t.siteURL?new URL(a,t.siteURL).href:a}if(e.startsWith("#")){let n;try{n=decodeURIComponent(e.slice(1))}catch{return null}return dc(n)?`#${encodeURIComponent(t.idPrefix?`${t.idPrefix}-${n}`:n)}`:null}return $v(e,t)??(t.allowExternalLinks===!1?null:Tx(e))}function $v(e,t){let n=e.slice(2);return!xx.test(e)||!Ud(n)||!t.assetPaths.has(n)?null:t.siteURL?new URL(`./${n}`,t.siteURL).href:`./${n}`}function Mx(e,t){let n=new Map;for(let i of Array.from(e.querySelectorAll("[id]"))){let a=i.getAttribute("id");a&&/^[a-z0-9_.:-]{1,160}$/i.test(a)&&!n.has(a)&&n.set(a,`${t}-${n.size+1}`)}return n}function e0(e,t){t&&(e.setAttribute("href",t),e.setAttribute("rel","noopener noreferrer"))}function t0(e,t,n,i){let a=$v(n,i);a&&(i.deferMedia?e.setAttribute("data-publication-asset",n.slice(2)):e.setAttribute(t,a))}function Rx(e,t){if(e.getAttribute("data-publication-drawing")!=="true")return;t.setAttribute("data-publication-drawing","true");let n=e.getAttribute("data-publication-drawing-mode");(n==="light"||n==="dark")&&t.setAttribute("data-publication-drawing-mode",n);for(let i of["width","height"]){let a=`data-publication-${i}`,o=e.getAttribute(a)??"";/^(?:0|[1-9]\d{0,4}%?)$/.test(o)&&(t.setAttribute(a,o),t.style.setProperty(`--kplex-published-drawing-${i}`,o.endsWith("%")?o:`${o}px`))}}function Ax(e,t,n){let i=e.localName,a=e.getAttribute("id")??e.getAttribute("data-publication-fragment");if(a&&dc(a)&&(t.id=n.idPrefix?`${n.idPrefix}-${a}`:a,t.setAttribute("data-publication-fragment",a)),i==="a"&&e0(t,Wv(e.getAttribute("href")??"",n)),i==="figure"&&Rx(e,t),i==="img"||i==="audio"||i==="video"){let o=e.getAttribute("src")??"";(i==="img"?Fv:i==="audio"?/\.(?:mp3|ogg|wav)$/:/\.(?:mp4|webm)$/).test(o)&&t0(t,"src",o,n),i==="img"?(t.setAttribute("alt",(e.getAttribute("alt")??"").slice(0,512)),t.setAttribute("loading","lazy"),t.setAttribute("decoding","async")):(t.setAttribute("controls","controls"),t.setAttribute("preload","none"))}if(i==="aside"||i==="blockquote"){let o=e.getAttribute("data-callout");o&&Zv.test(o)&&t.setAttribute("data-callout",o)}if(i==="ol"){let o=e.getAttribute("start");o&&/^\d{1,7}$/.test(o)&&t.setAttribute("start",o)}}var Cx=/@font-face\s*\{\s*font-family:\s*(["']?)([a-z0-9][a-z0-9 _-]{0,95})\1\s*;\s*src:\s*url\(\s*(["']?)data:font\/(woff2|woff|ttf|otf);base64,([A-Za-z0-9+/]+={0,2})\3\s*\)\s*;([^{}]*)\}/gi,Ox=/^(?:normal|bold|[1-9]\d{0,2}|1000)(?: (?:[1-9]\d{0,2}|1000))?$/i,Lx=/^u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?(?:\s*,\s*u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?)*$/i,zx=new Set(["text","tspan","textPath"]),Dx={woff2:"wOF2",woff:"wOFF",ttf:"\0\0\0",otf:"OTTO"},Hx=512*1024;function _x(e,t){let n=new Map,i=[],a=0;for(let o of Array.from(e.children))if(!(o.namespaceURI!==Po||o.localName!=="defs"))for(let l of Array.from(o.children)){if(l.namespaceURI!==Po||l.localName!=="style"||l.childElementCount)continue;let r=l.textContent??"";if(a+=r.length,a>Hx)return{families:new Map,rules:[]};for(let u of r.matchAll(Cx)){let c=u[2].trim().toLowerCase(),f=u[4].toLowerCase(),p=u[5];if(!(f==="woff2"||f==="woff"||f==="ttf"||f==="otf")||p.length<8||p.length%4||!atob(p.slice(0,8)).startsWith(Dx[f]))continue;let s=n.get(c)??`${t}-font-${n.size+1}`;n.set(c,s);let m=new Map;for(let b of u[6].split(";")){let[w,h]=b.split(":").map(d=>d.trim().toLowerCase());h&&(w==="unicode-range"&&h.length<=8192&&Lx.test(h)||w==="font-weight"&&Ox.test(h)||w==="font-style"&&/^(?:normal|italic|oblique)$/.test(h))&&m.set(w,h)}let y=[...m].map(([b,w])=>`${b}:${w};`).join("");i.push(`@font-face{font-family:${s};src:url(data:font/${f};base64,${p});${y}}`)}}return{families:n,rules:i}}function Ux(e,t){return e.split(",").map(n=>t?.get(n.trim().replace(/^["']|["']$/g,"").toLowerCase())??n).join(",")}function kx(e,t,n,i,a){for(let o of Array.from(e.attributes)){let{localName:l,value:r}=o;if(!(r.length>65536)){if(zx.has(e.localName)&&(l==="style"&&!o.namespaceURI&&/(?:^|;)\s*white-space\s*:\s*pre\s*(?:;|$)/i.test(r)||l==="space"&&o.namespaceURI===Qv&&r==="preserve")){t.setAttributeNS(Qv,"xml:space","preserve");continue}if(l==="href"&&(o.namespaceURI===null||o.namespaceURI===hx)){if(e.localName==="a")e0(t,Wv(r,i));else if(e.localName==="image"&&Fv.test(r))t0(t,"href",r,i);else if((e.localName==="use"||e.localName==="textPath"||e.localName.endsWith("Gradient"))&&r.startsWith("#")){let u=n.get(r.slice(1));u&&t.setAttribute("href",`#${u}`)}continue}if(!o.namespaceURI)if(l==="id"){let u=n.get(r);u&&t.setAttribute(l,u)}else if(bx.has(l)){let u=Ex.exec(r),c=u&&n.get(u[1]);c?t.setAttribute(l,`url(#${c})`):wx.test(r)&&t.setAttribute(l,r)}else gx.has(l)&&vx.test(r)?t.setAttribute(l,r):yx.has(l)&&Sx.test(r)&&t.setAttribute(l,l==="font-family"?Ux(r,a?.families):r)}}}function Px(e,t,n){if(n.idPrefix&&!Zv.test(n.idPrefix))throw new Error("Invalid publication fragment scope");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let a=n.siteURL?t:t.implementation.createDocument(null,null),o=a.adoptNode(new i.DocumentFragment),l=0,r=0,u=0,c=new Set,f=(p,s,m,y,b)=>{if(++l>1e5||m>64)throw new Error("Publication content too complex");if(p.nodeType===3||p.nodeType===4){let h=p.nodeValue??"";if(u+=h.length,u>Jv)throw new Error("Publication content too large");s.appendChild(a.createTextNode(h));return}if(p.nodeType!==1)return;let w=p;if(w.namespaceURI===Po&&px.has(w.localName)){if(w.localName==="svg"){let g=`${n.idPrefix??"svg"}-s${++r}`;y=Mx(w,g),b=n.allowDrawingFonts?_x(w,g):void 0}if(!y)return;let h=a.createElementNS(Po,w.localName);kx(w,h,y,n,b);let d=h.getAttribute("id");if(d&&c.has(d)?h.removeAttribute("id"):d&&c.add(d),s.appendChild(h),w.localName==="svg"&&b?.rules.length){let g=a.createElementNS(Po,"defs"),S=a.createElementNS(Po,"style");S.textContent=b.rules.join(`
769
+ `),g.appendChild(S),h.appendChild(g)}for(let g of Array.from(w.childNodes))f(g,h,m+1,y,b)}else if(!y&&w.namespaceURI===fc&&mx.has(w.localName)){if(n.drawingMode&&w.localName==="figure"&&w.getAttribute("data-publication-drawing")==="true"){let d=w.getAttribute("data-publication-drawing-mode");if((d==="light"||d==="dark")&&d!==n.drawingMode)return}let h=a.createElementNS(fc,w.localName);Ax(w,h,n),s.appendChild(h);for(let d of Array.from(w.childNodes))f(d,h,m+1,null)}};for(let p of e)f(p,o,0,null);return o}function n0(e,t,n){if(e.length>Jv||/<!\s*(?:doctype|entity)|<\?[^>]*\?>/i.test(e))throw new Error("Invalid publication content");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let a=new i.DOMParser().parseFromString(`<article xmlns="${fc}">${e}</article>`,"application/xhtml+xml");if(a.documentElement.namespaceURI!==fc||a.querySelector("parsererror"))throw new Error("Invalid publication markup");return Px(Array.from(a.documentElement.childNodes),t,{...n,allowDrawingFonts:!0})}T();var Io=K(tt(),1);T();async function i0(e,t,n,i){let a=await e.fetch(t,{credentials:"omit",redirect:"error",referrerPolicy:"no-referrer",signal:i}),o=a.body?.getReader();if(!a.ok||!o||Number(a.headers.get("Content-Length"))>n)throw await o?.cancel(),new Error("Publication resource unavailable");let l=[],r=0;try{for(;;){let f=await o.read();if(f.done)break;if(r+=f.value.byteLength,r>n)throw new Error("Publication resource exceeds its declared size");l.push(f.value)}}catch(f){throw await o.cancel().catch(()=>{}),f}finally{o.releaseLock()}let u=new Uint8Array(r),c=0;for(let f of l)u.set(f,c),c+=f.byteLength;return u}async function $d(e,t,n,i){return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(await i0(e,t,n,i)))}async function a0(e,t,n){return $d(e,t,Yb,n)}function o0(e,t,n,i,a){let o=new URL("./",t),l=new Map(n.resources.map(c=>[c.path,c])),r=new Set([...l.keys()].filter(c=>c.startsWith("assets/")));async function u(c,f){let p=l.get(c),s=new URL(c,o);if(!p||s.origin!==o.origin||s.pathname!==`${o.pathname}${c}`||!e.crypto.subtle)throw new Error("Publication resource unavailable");let m=i?await i(c,p.bytes,f):await i0(e,s,p.bytes,f);if(m.byteLength!==p.bytes)throw new Error("Publication resource size mismatch");let y=await e.crypto.subtle.digest("SHA-256",m);if(f.throwIfAborted(),Array.from(new Uint8Array(y),w=>w.toString(16).padStart(2,"0")).join("")!==p.sha256)throw new Error("Publication resource checksum mismatch");return m}return{siteURL:o,assetPaths:r,bytes:u,nodeAddress:a,has:c=>l.has(c),async text(c,f){return new TextDecoder("utf-8",{fatal:!0}).decode(await u(c,f))}}}var $e=K(ye(),1);function l0({page:e}){let t=(0,Io.useRef)(null),[n,i]=(0,Io.useState)(),{repository:a,preview:o}=e;return(0,Io.useEffect)(()=>{let l=t.current?.ownerDocument.defaultView;if(!l||!a||!o)return;let r=new l.AbortController;return $d(l,new l.URL(o.api),8*1024*1024,r.signal).then(u=>{r.signal.aborted||i(Kv(a,o,u))}).catch(()=>{r.signal.aborted||i(null)}),()=>r.abort()},[a,o]),(0,$e.jsx)("div",{ref:t,className:"kplex-publication-github-preview",children:o?n===void 0?(0,$e.jsx)("p",{role:"status",children:L.githubLoading}):n===null?(0,$e.jsx)("p",{role:"status",children:L.githubPreviewUnavailable}):(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("h3",{children:n.title}),n.description&&(0,$e.jsx)("p",{className:"kplex-publication-github-description",children:n.description}),n.commits&&(n.commits.length?(0,$e.jsxs)($e.Fragment,{children:[n.total!==void 0&&n.total>n.commits.length&&(0,$e.jsx)("p",{children:L.githubCommitCount(n.commits.length,n.total)}),(0,$e.jsx)("ol",{children:n.commits.map(l=>(0,$e.jsx)("li",{children:(0,$e.jsxs)("a",{href:l.href,target:"_blank",rel:"noopener noreferrer",children:[(0,$e.jsx)("code",{children:l.sha})," ",l.title]})},l.href))})]}):(0,$e.jsx)("p",{children:L.githubNoCommits}))]}):(0,$e.jsx)("p",{children:L.githubOpenOriginal})})}var Me=K(ye(),1),r0="http://www.w3.org/2000/svg",Ix={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",avif:"image/avif",svg:"image/svg+xml",mp3:"audio/mpeg",ogg:"audio/ogg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",pdf:"application/pdf"};function eh(e,t){if(t)return Array.from(e.querySelectorAll("[data-publication-fragment]")).find(n=>n.id===t||n.getAttribute("data-publication-fragment")===t)}function u0({publication:e,resources:t,location:n,id:i,contentScope:a,colorMode:o,onClose:l,onNavigate:r,dock:u,onSwitchDock:c}){let f=(0,Ct.useRef)(null),p=(0,Ct.useRef)(null),s=(0,Ct.useRef)(!1),m=(0,Ct.useRef)(n.fragment);m.current=n.fragment;let[y,b]=(0,Ct.useState)(0),[w,h]=(0,Ct.useState)("loading"),[d,g]=(0,Ct.useState)(0),S=e.published.get(n.id),x=S.kind==="url"?S.url:void 0,N=(0,Ct.useMemo)(()=>Xv(x),[x]);(0,Ct.useEffect)(()=>{let M=f.current,R=M?.ownerDocument.defaultView;if(!M||!R||x)return;let O=new R.AbortController,D=O.signal,I=new Map;g(0),M.replaceChildren();let B=async q=>{let le=I.get(q);if(le)return le;let ne=Ix[q.slice(q.lastIndexOf(".")+1)];if(!ne)throw new Error("Unsupported publication media");let de=await t.bytes(q,D);D.throwIfAborted();let P=R.URL.createObjectURL(new R.Blob([de],{type:ne}));return I.set(q,P),P},j=async()=>{if(S.kind!=="document"&&S.kind!=="drawing"){if(!S.asset){h("unavailable");return}let P=await B(S.asset);D.throwIfAborted();let C=M.ownerDocument.createElement("a");C.href=P,C.download=S.asset.slice(7),C.textContent=L.downloadAsset,M.replaceChildren(C),h("ready");return}let q=await t.text(_d(S.id),D),le=n0(q,M.ownerDocument,{siteURL:t.siteURL,nodeAddress:t.nodeAddress,nodeIds:new Set(e.nodes.keys()),assetPaths:t.assetPaths,idPrefix:a,deferMedia:!0,drawingMode:o}),ne=Array.from(le.querySelectorAll("[data-publication-asset]"),P=>({element:P,path:P.getAttribute("data-publication-asset"),download:!1})),de=new URL("./assets/",t.siteURL);for(let P of Array.from(le.querySelectorAll("a[href]"))){let C=new URL(P.getAttribute("href"),t.siteURL);if(C.origin!==de.origin||!C.pathname.startsWith(de.pathname))continue;let G=C.pathname.slice(t.siteURL.pathname.length);P.removeAttribute("href"),P.namespaceURI!==r0&&t.assetPaths.has(G)&&ne.push({element:P,path:G,download:!0})}D.throwIfAborted(),M.replaceChildren(le),h("ready"),eh(M,m.current)?.scrollIntoView({block:"start"});for(let{element:P,path:C,download:G}of ne)try{let H=await B(C);D.throwIfAborted(),P.setAttribute(G||P.namespaceURI===r0?"href":"src",H),G&&P.setAttribute("download",C.slice(7)),P.removeAttribute("data-publication-asset")}catch{if(D.aborted)return;g(H=>H+1)}};return h("loading"),j().catch(()=>{D.aborted||h("failed")}),()=>{O.abort(),M.replaceChildren();for(let q of I.values())R.URL.revokeObjectURL(q)}},[y,S,e,t,a,o,x]),(0,Ct.useEffect)(()=>{f.current&&eh(f.current,n.fragment)?.scrollIntoView({block:"start"})},[n.fragment]),(0,Ct.useEffect)(()=>{s.current&&(s.current=!1,p.current?.focus({preventScroll:!0}))},[n.id]);function E(M){if(M.defaultPrevented||M.metaKey||M.ctrlKey||M.shiftKey||M.altKey)return;let R=M.target;if(!(R instanceof M.currentTarget.ownerDocument.defaultView.Element))return;let O=R.closest("a")?.getAttribute("href");if(!O)return;let D=yv(O,t.siteURL,e,n.id);if(!D)return;M.preventDefault();let I=O.startsWith("#")&&D.id===n.id&&f.current?eh(f.current,D.fragment):null;s.current=M.detail===0&&D.id!==n.id,r(I?{...D,fragment:I.getAttribute("data-publication-fragment")??void 0}:D)}return(0,Me.jsxs)("aside",{id:i,className:`kplex-publication-note${x?" kplex-publication-web-note":""}`,"aria-labelledby":`${i}-heading`,children:[(0,Me.jsxs)("header",{className:"kplex-publication-sidecar-heading",children:[(0,Me.jsx)("h2",{ref:p,id:`${i}-heading`,tabIndex:-1,children:S.title}),(0,Me.jsxs)("div",{className:"kplex-publication-sidecar-actions",children:[c&&(0,Me.jsx)("button",{type:"button",onClick:c,children:u==="bottom"?L.dockSidecarRight:L.dockSidecarBottom}),(0,Me.jsx)("button",{type:"button",onClick:l,"aria-label":L.closeSidecar,children:"×"})]})]}),x?(0,Me.jsxs)(Me.Fragment,{children:[(0,Me.jsxs)("div",{className:"kplex-publication-web-source",children:[(0,Me.jsx)("a",{href:x,target:"_blank",rel:"noopener noreferrer",children:L.openWebsite}),!N&&(0,Me.jsx)("p",{children:L.webFrameHelp})]}),N?(0,Me.jsx)(l0,{page:N},x):(0,Me.jsx)("iframe",{className:"kplex-publication-web-frame",title:S.title,src:x,sandbox:"allow-scripts",referrerPolicy:"no-referrer"},x)]}):(0,Me.jsxs)(Me.Fragment,{children:[w==="loading"&&(0,Me.jsx)("p",{role:"status",children:L.loadingNote}),w==="failed"&&(0,Me.jsxs)("div",{role:"alert",children:[(0,Me.jsx)("p",{children:L.noteUnavailable}),(0,Me.jsx)("button",{type:"button",onClick:()=>b(M=>M+1),children:L.retry})]}),w==="unavailable"&&(0,Me.jsx)("p",{children:L.noDocument}),(0,Me.jsx)("div",{ref:f,className:"kplex-publication-note-content","aria-busy":w==="loading",onClick:E}),d>0&&(0,Me.jsxs)("div",{role:"status",children:[(0,Me.jsx)("p",{children:L.mediaUnavailable}),(0,Me.jsx)("button",{type:"button",onClick:()=>b(M=>M+1),children:L.retry})]})]})]})}T();var Qn=K(tt(),1);var gi=K(ye(),1),Gx=736,c0=20;function Bx({dock:e,sidecarId:t,size:n,minimum:i,maximum:a,onSize:o}){let l=(0,Qn.useRef)(null),r=(0,Qn.useRef)(null),u=e!=="bottom",c=e==="left"?1:-1;function f(d){return u?d.clientX:d.clientY}function p(d){o(Math.max(i,Math.min(a,Math.round(d))))}function s(d,g){r.current?.pointer===g&&(r.current=null,d.hasPointerCapture(g)&&d.releasePointerCapture(g))}(0,Qn.useLayoutEffect)(()=>{let d=l.current;return()=>{d&&r.current&&s(d,r.current.pointer)}},[e]);function m(d){d.button!==0||r.current||(d.preventDefault(),d.currentTarget.focus({preventScroll:!0}),d.currentTarget.setPointerCapture(d.pointerId),r.current={pointer:d.pointerId,origin:f(d),size:n})}function y(d){let g=r.current;g?.pointer===d.pointerId&&p(g.size+c*(f(d)-g.origin))}function b(d){y(d),s(d.currentTarget,d.pointerId)}function w(d){s(d.currentTarget,d.pointerId)}function h(d){if(d.altKey||d.ctrlKey||d.metaKey)return;let[g,S]=u?e==="left"?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]:["ArrowUp","ArrowDown"],x=d.shiftKey?1:10,N;if(d.key==="Home")N=i;else if(d.key==="End")N=a;else if(d.key===g)N=n+x;else if(d.key===S)N=n-x;else return;d.preventDefault(),p(N)}return(0,gi.jsx)("div",{ref:l,className:"kplex-publication-divider",role:"separator",tabIndex:0,"aria-label":L.resizeSidecar,"aria-controls":t,"aria-orientation":u?"vertical":"horizontal","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":n,onPointerDown:m,onPointerMove:y,onPointerUp:b,onPointerCancel:w,onLostPointerCapture:w,onKeyDown:h})}function s0({canvas:e,sidecarId:t,sidecarOpen:n,preferredDock:i,onDock:a,renderSidecar:o}){let l=(0,Qn.useRef)(null),[r,u]=(0,Qn.useState)({width:0,height:0}),[c,f]=(0,Qn.useState)({}),p=r.width>=Gx,s=p?i:"bottom",m=s!=="bottom",y=m?r.width:r.height,b=Math.max(0,y-(m?260:160)-c0),w=Math.min(b,m?240:120),h=c[s]??Math.round(y*(m?.34:.43)),d=Math.max(w,Math.min(b,h)),g=n?{"--kplex-publication-sidecar-size":`${d}px`,"--kplex-publication-divider-size":`${c0}px`}:void 0;(0,Qn.useLayoutEffect)(()=>{let N=l.current,E=N?.ownerDocument.defaultView;if(!N||!E)return;let M=N;function R(){let D=M.clientWidth,I=M.clientHeight;u(B=>B.width===D&&B.height===I?B:{width:D,height:I})}let O=new E.ResizeObserver(R);return O.observe(N),R(),()=>O.disconnect()},[]);function S(N){f(E=>E[s]===N?E:{...E,[s]:N})}function x(){a(s==="bottom"?"right":"bottom")}return(0,gi.jsxs)("div",{ref:l,className:`kplex-publication-workspace${n?" is-sidecar-open":""}`,"data-sidecar-dock":n?s:void 0,style:g,children:[e,n?(0,gi.jsxs)(gi.Fragment,{children:[(0,gi.jsx)(Bx,{dock:s,sidecarId:t,size:d,minimum:w,maximum:b,onSize:S}),o(s,p?x:void 0)]}):(0,gi.jsx)("div",{id:t,hidden:!0})]})}T();T();function hc(e,t,n){let i=n/2;switch(t){case"top":return{x:e.x,y:e.y-e.height/2-3-i};case"bottom":return{x:e.x,y:e.y+e.height/2+3+i};case"left":return{x:e.x-e.width/2-3-i,y:e.y};case"right":return{x:e.x+e.width/2+3+i,y:e.y}}}function f0(e){switch(e){case"top":return{x:0,y:-1};case"bottom":return{x:0,y:1};case"left":return{x:-1,y:0};case"right":return{x:1,y:0}}}function Vx(e,t,n,i,a){let o=1-a,l=o*o,r=a*a;return{x:l*o*e.x+3*l*a*t.x+3*o*r*n.x+r*a*i.x,y:l*o*e.y+3*l*a*t.y+3*o*r*n.y+r*a*i.y}}function th(e,t,n,i,a){if(a==="straight")return{d:`M ${e.x} ${e.y} L ${t.x} ${t.y}`,midpoint:{x:(e.x+t.x)/2,y:(e.y+t.y)/2}};let o=Math.hypot(t.x-e.x,t.y-e.y),l=Math.max(20,Math.min(108,o*.2)),r=f0(n),u=f0(i),c={x:e.x+r.x*l,y:e.y+r.y*l},f={x:t.x+u.x*l,y:t.y+u.y*l};return{d:`M ${e.x} ${e.y} C ${c.x} ${c.y}, ${f.x} ${f.y}, ${t.x} ${t.y}`,midpoint:Vx(e,c,f,t,.5)}}T();T();var nh=["parent","child","left","right","previous","next"];function d0(e,t,n,i){let a=t.neighbours(e,"parent").slice(0,n),o=t.neighbours(e,"child").slice(0,n),l=[...t.neighbours(e,"left"),...t.neighbours(e,"previous")].slice(0,n),r=[...t.neighbours(e,"right"),...t.neighbours(e,"next")].slice(0,n),u=new Set([t.identity(e),...[...a,...o,...l,...r].map(p=>t.identity(p.page))]),c=new Map([...a,...o,...l,...r].map(p=>[t.identity(p.page),p.page])),f=new Map;if(i)for(let p of c.values())for(let s of nh)for(let m of t.neighbours(p,s)){let y=t.identity(m.page);if(u.has(y))continue;let b=f.get(y);(!b||b.relationType!==1)&&f.set(y,{...m,role:"sibling"})}return{center:e,parents:a,children:o,leftFriends:l,rightFriends:r,siblings:t.sort([...f.values()]).slice(0,n)}}T();var Wi=(e,t,n)=>Math.max(t,Math.min(n,e));function g0(e){return e.horizontalCompactingFactor??e.compactingFactor}function Yx(e){let t=e.compactView?.82:1;return{horizontal:Wi(1.35/g0(e),.38,1.35)*t,vertical:Wi(1.35/e.compactingFactor,.38,1.35)*t,spacing:Wi(e.minLinkLength/18,.72,1.7)}}function h0(e,t){return Math.max(1,Math.min(t==="parent"?3:7,Math.round(t==="parent"?e.parentColumns:e.childColumns)))}function gc(e){return Wi(e.siblingRelativeSize/100,.3,.85)}function m0(e,t){let n=Wi(g0(e),.75,4);return n>=3?-t*.05*(n-3):48*(3-n)*Wi(e.minLinkLength/18,.72,1.7)*(e.compactView?.82:1)}function mc(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2+24))}function pc(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2))}function Mn(e,t,n=!1){let i=[...e];for(let a of e){let o=t.mini(a,n);o&&i.push({...a,width:o.width,height:o.viewportHeight,y:a.y+a.height/2+o.topGap+o.viewportHeight/2})}return i}function p0(e,t,n,i,a,o,l){let r=e;if(!r.length)return r;let u=[];for(let s=0;s<r.length;s+=i){let m=r.slice(s,s+i);u.push({nodes:m,height:Math.max(...m.map(y=>y.height)),reserve:Math.max(0,...m.map(y=>l.reserve(y)))})}let c=t,f=u[0].height,p=u[0].reserve;return u.forEach((s,m)=>{let y;if(m===0){let d=Math.max(0,s.height-26)/2;y=n===-1?t-s.reserve-d:t+d}else n===1?y=c+f/2+p+o+s.height/2:y=c-f/2-o-s.reserve-s.height/2;let b=s.nodes.map(d=>l.width(d)),h=-(b.reduce((d,g)=>d+g,0)+a*Math.max(0,s.nodes.length-1))/2;s.nodes.forEach((d,g)=>{let S=b[g];d.x=h+S/2,d.y=y,h+=S+a}),c=y,f=s.height,p=s.reserve}),r}function ih(e,t,n,i){let a=e;return y0(a,t,n,i),a}function y0(e,t,n,i){if(!e.length)return;let a=e.map(c=>i.verticalReserve(c));e[0].x=t,e[0].y=0;for(let c=1;c<e.length;c+=1){let f=e[c-1],p=e[c];p.x=t,p.y=f.y+f.height/2+a[c-1]+n+p.height/2}let o=e[0].y-e[0].height/2,l=e.length-1,r=e[l].y+e[l].height/2+a[l],u=-(o+r)/2;for(let c of e)c.y+=u}function ah(e,t,n,i,a="center"){if(!e.length)return;let o=Math.min(...e.map(p=>p.y-p.height/2)),r=Math.max(...e.map(p=>p.y+p.height/2+i.verticalReserve(p)))-o,u=Math.max(1,n-t),f=(r>u?t:a==="midline"?Wi(o,t,n-r):a==="bottom"?n-r:a==="top"?t:t+(u-r)/2)-o;for(let p of e)p.y+=f}function ir(e,t,n,i,a,o,l){let c=a.centerX-a.width/2,f=a.centerX+a.width/2,p=a.fixedEdgeY,s=a.fixedEdgeY;t.length&&(c=Math.min(c,...t.map(b=>b.x-b.width/2-24)),f=Math.max(f,...t.map(b=>b.x+b.width/2+24)),p=Math.min(...t.map(b=>b.y-b.height/2)),s=Math.max(...t.map(b=>b.y+b.height/2)));let m=l!==void 0&&o!==void 0?Math.max(72,o-l):Math.max(72,n),y=l!==void 0&&o!==void 0?l:i==="top"?(t.length?s+16:a.fixedEdgeY)-m:t.length?p-16:a.fixedEdgeY;return{key:e,left:c,top:y,width:f-c,height:m,resizeEdge:i}}function ar(e,t,n,i,a,o){if(!t.length)return null;let l=24,r=16,u=Math.min(...t.map(g=>g.x-g.width/2)),c=Math.max(...t.map(g=>g.x+g.width/2)),f=Math.min(...t.map(g=>g.y-g.height/2)),p=Math.max(...t.map(g=>g.y+g.height/2)),s=f-r,m=p+r,y=m-s,b=o!==void 0&&a!==void 0?Math.max(72,a-o):a===void 0?Number.POSITIVE_INFINITY:Math.max(72,a-s),w=Math.min(y,Math.max(72,n),b);if(y<=w+.5)return null;let h=s,d=0;return o!==void 0&&a!==void 0?(h=o,d=Math.max(0,h-s)):a!==void 0?(h=a-w,d=Math.max(0,h-s)):(i==="bottom"?h=m-w:i==="center"&&(h=Wi(-w/2,s,m-w)),d=Math.max(0,h-s)),{key:e,left:u-l,top:h,width:c-u+l*2,height:w,contentTop:s,contentHeight:y,initialScrollTop:d}}function b0(e,t,n,i=!1){let a=Pe=>Math.max(0,...Pe.filter(Jn=>Jn.editor).map(Jn=>Jn.height+72));[...e.parents,...e.children,...e.leftFriends,...e.rightFriends,...e.siblings].some(Pe=>Pe.editor)&&(t={...t,parentMaxHeight:Math.max(t.parentMaxHeight,a(e.parents)),childMaxHeight:Math.max(t.childMaxHeight,a(e.children)),friendMaxHeight:Math.max(t.friendMaxHeight,a([...e.leftFriends,...e.rightFriends])),siblingMaxHeight:Math.max(t.siblingMaxHeight,a(e.siblings))});let o=e.center,{horizontal:l,vertical:r,spacing:u}=Yx(t),c=50*l*u,f=36*r*u,p=66*r*u,s=18*r*u,m=26,y=-(o.height/2+m/2+p),b=Math.max(42,52*r*u),w=o.height/2+m/2+p+b,h=p0(e.parents,y,-1,h0(t,"parent"),c,f,n),d=p0(e.children,w,1,h0(t,"child"),c,f,n),g=o.width/2,S=g+205*l*u,x=ih(e.leftFriends,-S,s,n),N=t.lateralArrangement==="left",E=ih(e.rightFriends,N?-S:S,s,n),M=N?[...x,...E]:x;N&&y0(M,-S,s,n);let R=!N&&E.length>0,O=R?Math.max(...E.map(Pe=>Pe.x+Pe.width/2)):g,D=R?285:205,I=R?190:120,B=Math.max(S+D*l*u,O+I*l*u),j=ih(e.siblings,B,s,n),q=d.length?Math.min(...d.map(Pe=>Pe.y-Pe.height/2)):o.height/2+p+b+12,le=Math.max(30,36*r*u),ne=Math.max(120,t.friendMaxHeight),de=Math.max(120,t.siblingMaxHeight),P=i?N?Math.min(ne/2,q-le):ne/2:q-le,C=P-ne,G=C,H=P,X=C,ie=P;ah(M,G,H,n,"midline"),N||ah(E,X,ie,n,"midline");let J=Math.max(58,72*r*u),k=t.alignSiblingsToFirstParent?h[0]:void 0,Z=i?de/2:k?k.y+k.height/2:P-J,fe=i?-de/2:Z-de;ah(j,fe,Z,n,i?"midline":"center");let he=Mn(h,n,!0),nn=Mn(j,n,!0),ze=h.length?mc(he,o.width/2+24):170,Vt=pc(he,o.width/2),ke=Math.max(mc(Mn(x,n,!0),115,-S),mc(Mn(E,n,!0),115,N?-S:S)),Zn=Math.max(pc(Mn(x,n,!0),0,-S),pc(Mn(E,n,!0),0,N?-S:S)),lt=mc(nn,110,B),Ot=pc(nn,0,B),St=N?Math.max(0,m0(t,ze*2)):m0(t,ze*2);h.length&&(S=ze+ke+St),S=Math.max(S,Vt+Zn+4);for(let Pe of x)Pe.x=-S;for(let Pe of E)Pe.x=N?-S:S;(h.length||R)&&(B=R?S+ke+lt+Math.max(0,St):ze+lt+St),B=Math.max(B,Vt+Ot+4,R?S+Zn+Ot+4:0);for(let Pe of j)Pe.x=B;let Lt=Mn(h,n),Fn=Mn(d,n),Rn=Mn(M,n),An=Mn(N?[]:E,n),ve=Mn(j,n),et={},wt=ar("parent",Lt,t.parentMaxHeight,"bottom"),De=ar("child",Fn,t.childMaxHeight,"top"),Cn=ar("left",Rn,t.friendMaxHeight,"top",H,G),Yt=ar("right",An,t.friendMaxHeight,"top",ie,X),mn=ar("sibling",ve,t.siblingMaxHeight,"top",Z,fe);wt&&(wt.left=-ze,wt.width=ze*2,et.parent=wt),De&&(et.child=De),Cn&&(et.left=Cn),Yt&&(et.right=Yt),mn&&(et.sibling=mn);let qt={},Oa=y+m/2+16,yi=w-m/2-16;qt.parent=ir("parent",Lt,t.parentMaxHeight,"top",{centerX:0,width:ze*2,fixedEdgeY:Oa}),qt.child=ir("child",Fn,t.childMaxHeight,"bottom",{centerX:0,width:440,fixedEdgeY:yi}),qt.left=ir("left",Rn,t.friendMaxHeight,"top",{centerX:-S,width:ke*2,fixedEdgeY:H},H,G),N||(qt.right=ir("right",An,t.friendMaxHeight,"top",{centerX:S,width:ke*2,fixedEdgeY:ie},ie,X)),qt.sibling=ir("sibling",ve,t.siblingMaxHeight,"top",{centerX:B,width:lt*2,fixedEdgeY:Z},Z,fe);let pn=[o,...h,...d,...x,...E,...j];return t.flipEastWest&&qx(pn,qt,et),{nodes:pn,zoneViewports:et,zoneAreas:qt}}function qx(e,t,n){for(let i of e)i.x=-i.x;for(let i of Object.values(t))i&&(i.left=-i.left-i.width);for(let i of Object.values(n))i&&(i.left=-i.left-i.width)}T();var v0={version:1,fields:{flipEastWest:{defaultValue:!1,validate:e=>typeof e=="boolean"}}};function yc(e){return e?.status!=="unavailable"&&e?.values.flipEastWest===!0}function bc(e){return{top:"parent",bottom:"child",left:e?"right":"left",right:e?"left":"right"}}function S0(e,t=!1){return e==="parent"?{source:"top",target:"bottom"}:e==="child"?{source:"bottom",target:"top"}:(e==="left"||e==="previous")!==t?{source:"left",target:"right"}:{source:"right",target:"left"}}var jx={parent:"graph.zoneParents",child:"graph.zoneChildren",left:"graph.zoneFriendsPrevious",right:"graph.zoneChallengersNext",sibling:"graph.zoneSiblings"};var Xx={parent:{key:"parentMaxHeight",min:140,max:800},child:{key:"childMaxHeight",min:160,max:900},left:{key:"friendMaxHeight",min:140,max:800},right:{key:"friendMaxHeight",min:140,max:800},sibling:{key:"siblingMaxHeight",min:120,max:700}};function Kx(e){if(!e||typeof e!="object"||!["compactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"].every(a=>{let o=Reflect.get(e,a);return typeof o=="number"&&Number.isFinite(o)}))return!1;let n=Reflect.get(e,"horizontalCompactingFactor"),i=Reflect.get(e,"lateralArrangement");return typeof Reflect.get(e,"compactView")=="boolean"&&(n===void 0||typeof n=="number"&&Number.isFinite(n))&&(i===void 0||i==="left"||i==="split")}var w0={sectionSource:"attention",editorHosting:"occurrence",id:"classic",version:1,labelKey:"view.classic",icon:"brain-circuit",configuration:v0,capabilities:{sections:!0,descendants:!0,editor:!0,compact:!1},defaultState:null,restoreState:()=>null,project(e){let t=e.read.node(e.attention);if(!t||!e.read.isCurrent())return null;let n=!1,i=new Map,a=(f,p)=>{let s=JSON.stringify([f.id,p]),m=i.get(s)??e.read.relations(f.id,p);return i.set(s,m),n||=m.truncated||m.coverage==="unavailable",m.items.map(y=>({page:y.node,role:y.role,relationType:y.relationType,value:y}))},o=d0(t,{identity:f=>f.id,neighbours:a,sort:f=>f.sort((p,s)=>e.read.compare(p.page,s.page))},e.maximum,!e.state||typeof e.state!="object"||Reflect.get(e.state,"renderSiblings")!==!1),l=yc(e.configuration),r=[{id:"attention",nodeId:t.id,representation:"thought",...l?{ports:bc(!0)}:{}}],u=[],c=(f,p)=>f.forEach((s,m)=>{let y=JSON.stringify([p,s.page.id,m]),b=S0(p,yc(e.configuration));r.push({id:y,nodeId:s.page.id,role:p,areaId:p,representation:"thought",relation:s.value,groupingPartition:p,...l?{ports:bc(!0)}:{}}),p!=="sibling"&&u.push({id:y,kind:"semantic",source:"attention",target:y,sourceNode:t.id,targetNode:s.page.id,sourcePort:b.source,targetPort:b.target,relation:s.value})});c(o.parents,"parent"),c(o.children,"child"),c(o.leftFriends,"left"),c(o.rightFriends,"right"),c(o.siblings,"sibling");for(let f of r.filter(p=>p.role&&p.role!=="sibling")){if(!f.nodeId)continue;let p=e.read.node(f.nodeId);if(!p)continue;let s=nh.flatMap(m=>a(p,m));for(let m of r.filter(y=>y.role==="sibling")){let y=s.find(w=>w.page.id===m.nodeId),b=y?S0(y.role,l):null;y&&b&&u.push({id:JSON.stringify([f.id,m.id]),kind:"semantic",source:f.id,target:m.id,sourceNode:f.nodeId,targetNode:y.page.id,sourcePort:b.source,targetPort:b.target,relation:y.value})}}return{attention:t.id,layoutRoot:t.id,entry:"attention",editor:"attention",frame:"attention",occurrences:r,edges:u,truncated:n||[o.parents,o.children,o.leftFriends,o.rightFriends,o.siblings].some(f=>f.length===e.maximum),coverage:e.read.coverage}},layout(e,t,n,i,a){if(!Kx(n))throw new Error("Missing Classic geometry preferences");let o={...n,flipEastWest:n.flipEastWest??yc(a?.configuration)},l=new Map(t.map(s=>[s.id,s])),r=e.occurrences.map(s=>{let m=l.get(s.id);if(!m)throw new Error("Missing occurrence measurement");return{...m,x:0,y:0,role:s.role??"center",areaId:s.areaId}}),u=r.find(s=>s.id===e.entry);if(!u)throw new Error("Missing Classic attention occurrence");let c=s=>r.filter(m=>m.areaId===s),f=b0({center:u,parents:c("parent"),children:c("child"),leftFriends:c("left"),rightFriends:c("right"),siblings:c("sibling")},o,{reserve:s=>s.expandedReserve,verticalReserve:s=>s.expandedReserve*(s.role==="sibling"?gc(o):1),width:s=>s.expandedWidth,mini:(s,m)=>s[m?"envelope":"mini"]},i),p=Object.values(f.zoneAreas).map(s=>{let m=Xx[s.key];return{id:s.key,labelKey:jx[s.key],bounds:{x:s.left,y:s.top,width:s.width,height:s.height},resizeEdge:s.resizeEdge,heightPreference:{key:m.key,minimum:m.min,maximum:m.max},...s.key==="sibling"?{}:{dropRole:s.key},...f.zoneViewports[s.key]?{viewport:{...f.zoneViewports[s.key],x:f.zoneViewports[s.key].left,y:f.zoneViewports[s.key].top}}:{}}});return{positions:new Map(f.nodes.map(s=>[s.id,{x:s.x,y:s.y,width:s.width,height:s.height}])),areas:p}}};T();var Qx={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous",sibling:"sibling"};function x0(e,t,n){let i=n==="previous"?"left":n==="next"?"right":n;return t&&(i==="left"||i==="right")?t:Object.entries(e??{}).find(([,a])=>a===i)?.[0]}function E0(e,t){return JSON.stringify(e<t?[e,t]:[t,e])}function T0(e,t,n,i,a,o){let l=new Set(e.keys()),r=new Set;for(let[f,p]of t)r.add(E0(f,p));let u=0,c=0;for(let[f,p]of e){if(++u>16384)return!0;for(let s of n(p[0],l)){if(++u>16384||c>=4096)return!0;let m=i(s),y=e.get(m);if(!y||m===f)continue;let b=E0(f,m);if(r.has(b))continue;let w,h=1/0;for(let d of p)for(let g of y){if(++u>16384)return!0;let S=a(d,s.role),x=a(g,Qx[s.role]);if(!S||!x)continue;let N=(d.x-g.x)**2+(d.y-g.y)**2;N<h&&(w={source:d,target:g,sourcePort:S,targetPort:x},h=N)}w&&(r.add(b),c++,o(w,s))}}return!1}T();T();T();function Go(e){let t=e.length===1?"root":JSON.stringify(e);return Ma(t)?t:null}function N0(e,t){let n=new Map;for(let i of(e.editors??[]).slice(0,1)){if(i.occurrenceId==="root"&&i.nodeId===t){n.set("root",[t]);continue}try{let a=JSON.parse(i.occurrenceId);if(!Array.isArray(a)||a.length<2||a.length>mt.depth+1||!a.every(Ma)||a[0]!==t||a[a.length-1]!==i.nodeId||Go(a.map(En))!==i.occurrenceId)continue;n.set(i.occurrenceId,a.map(En))}catch{}}return n}function M0(e){let t=$u(e.configuration),n=Zi(e.state),i=e.layoutRoot;if(!t||n.version!==1||!i||!Number.isInteger(e.maximum)||e.maximum<1||e.read.node(i)?.id!==i||!e.read.isCurrent())return null;let a=Zl(Kb(n,i,Math.min(t.initialGenerations,t.maximumDepth)));if(!a)return null;let o=a,l=Math.min(t.maximumOccurrences,mt.occurrences,Math.max(1,e.maximum*8+1)),r=new Set(o.expanded),u=new Set(o.collapsed),c=N0(e,i),f=new Set,p=new Map,s=new Set;for(let E of c.values())for(let M=1;M<=E.length;M++){let R=Go(E.slice(0,M));if(R&&(f.add(R),M<E.length)){let O=p.get(R)??new Set;O.add(E[M]),p.set(R,O),M>1&&s.add(E[M-1])}}let m=new Set([...(e.retainedScopes??[]).slice(0,16),...s].filter(E=>E!==i)),y=new Set,b=new Set,w=[],h=[],d=[{id:"root",lineage:[i],depth:0,side:1}],g=!1,S=(E,M,R)=>{let D=(R?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).map(B=>e.read.relations(E,B,M)),I=new Map;for(let B of D)for(let j of B.items)I.has(j.node.id)||I.set(j.node.id,j);return{items:[...I.values()],truncated:D.some(B=>B.truncated),coverage:D.some(B=>B.coverage==="unavailable")?"unavailable":D.every(B=>B.coverage==="local")?"local":"cached"}},x=E=>{if(E===i||y.has(E))return!0;if(y.size>=mt.scopes)return!1;let M=[...m].filter(R=>!y.has(R)&&R!==E).length;return!m.has(E)&&y.size+M>=mt.scopes?!1:(y.add(E),!0)};for(;d.length&&w.length<l;){let E=d.shift(),M=E.lineage[E.lineage.length-1];if(b.has(E.id))continue;b.add(E.id);let R=e.read.node(M);if(!R||R.id!==M||!e.read.isCurrent())return null;let O=E.lineage.slice(0,-1).includes(M),D=p.has(E.id)?Math.max(t.maximumDepth,E.depth+1):t.maximumDepth,I=e.read.scope?.(M)??{coverage:"unavailable",prepared:!1,complete:!1,pending:!1},B=O?{items:[],truncated:!1,coverage:"cached"}:S(M,1,E.depth===0),j=!O&&E.depth<D&&!u.has(E.id)&&(r.has(E.id)||E.depth<o.initialGenerations),q=!O&&E.depth<D&&!(I.complete&&B.coverage!=="unavailable"&&B.items.length===0&&!B.truncated),le=j&&q&&x(M),ne=le?S(M,Math.min(e.maximum,128),E.depth===0):B,de=O||!j?"ready":I.pending?"loading":ne.coverage==="unavailable"?"unavailable":I.complete?"ready":I.prepared||ne.items.length>0?"partial":"unavailable";(j&&q&&!le||le&&ne.truncated||!O&&E.depth>=D&&(ne.items.length>0||!I.complete))&&(de="limited",g=!0);let P=[];if(le){let X=new Map(ne.items.map(k=>[k.node.id,k]));for(let k of p.get(E.id)??[])if(!X.has(k)){let fe=(E.depth===0?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).flatMap(he=>e.read.relation?.(M,k,he)?.items??[]).find(he=>he.node.id===k);fe&&e.read.isCurrent()&&X.set(k,fe)}if(E.depth===0&&I.complete&&!ne.truncated&&ne.coverage!=="unavailable"){let k=new Set([...X.keys()].map(Z=>Go([i,Z])));o={...o,sides:Object.fromEntries(Object.entries(o.sides).filter(([Z])=>k.has(Z)))}}let ie=[...X.values()].map(k=>{let Z=[...E.lineage,k.node.id],fe=Go(Z);return fe?{id:fe,lineage:Z,relation:k}:(g=!0,de="limited",null)}).filter(k=>k!==null);ie.sort((k,Z)=>Number(f.has(Z.id))-Number(f.has(k.id))||e.read.compare(k.relation.node,Z.relation.node));let J=l-w.length-1-d.length;for(let k of ie){let Z=[...f].filter(fe=>fe!==E.id&&!b.has(fe)&&!d.some(he=>he.id===fe)&&!P.some(he=>he.id===fe)&&fe!==k.id).length;if(J<=0||!f.has(k.id)&&J<=Z){g=!0,de="limited";continue}if(E.depth===0&&k.relation.role==="child"&&o.sides[k.id]===void 0){let fe=[...X.keys()].flatMap(ze=>{let Vt=Go([i,ze]),ke=Vt?o.sides[Vt]:void 0;return ke===-1||ke===1?[ke]:[]}),he=fe.filter(ze=>ze===-1).length<fe.filter(ze=>ze===1).length?-1:1,nn=Zl({...o,sides:{...o.sides,[k.id]:he}});if(!nn){g=!0,de="limited";continue}o=nn}P.push(k),J--}P.sort((k,Z)=>e.read.compare(k.relation.node,Z.relation.node))}let C={parent:E.parent,depth:E.depth,side:E.side,expanded:le,canExpand:q,reference:O,status:de},G=E.depth===0||E.side===-1?"left":"right";w.push({id:E.id,nodeId:M,areaId:E.areaId,representation:"thought",role:E.relation?.role,relation:E.relation,branch:C,ports:E.depth===0?{top:"parent",bottom:"child",left:"left"}:E.side===1?{left:"parent",bottom:"child",right:"left"}:{left:"left",bottom:"child",right:"parent"},peerPort:{side:G,count:new Set(ne.items.filter(X=>["left","right","previous","next"].includes(X.role)).map(X=>X.node.id)).size,complete:I.complete&&ne.coverage!=="unavailable"&&!ne.truncated&&!O},...!le&&!O&&E.parent?{groupingPartition:JSON.stringify([E.parent,E.side])}:{}}),E.parent&&E.relation&&h.push({id:E.id,kind:"semantic",source:E.parent,target:E.id,sourceNode:E.lineage[E.lineage.length-2],targetNode:M,relation:E.relation,sourcePort:E.relation.role==="child"?"bottom":E.relation.role==="parent"?"top":E.side===1?"right":"left",targetPort:E.parent==="root"&&E.relation.role==="parent"?"bottom":E.side===1?"left":"right"});let H=0;for(let X of P){let ie=X.relation.role==="parent"&&t.parentColumns>1&&H++%t.parentColumns===0?-1:1,J=E.depth?E.side:X.relation.role==="parent"?ie:X.relation.role!=="child"||t.arrangement==="left"?-1:t.arrangement==="right"?1:o.sides[X.id],k=E.depth?E.areaId:X.relation.role==="parent"?"parent":X.relation.role==="child"?J===-1?"child-left":"child-right":"left";d.push({...X,parent:E.id,depth:E.depth+1,side:J,areaId:k})}}if(!e.read.isCurrent())return null;g||=d.length>0;let N=JSON.stringify(o)===JSON.stringify(n)?void 0:o;return{attention:e.attention,layoutRoot:i,root:"root",entry:"root",frame:"root",occurrences:w,edges:h,truncated:g,coverage:e.read.coverage,preparation:{parents:[...y]},stateSuggestion:N}}T();T();function Zx(e){if(e.length>2048)throw new Error("Invalid measured area size");let t=new Set,n=[];for(let i of e){if(typeof i.id!="string"||!i.id||t.has(i.id)||!Number.isFinite(i.width)||i.width<=0||!Number.isFinite(i.height)||i.height<=0)throw new Error("Invalid measured area item");let a=i.insets?.top??0,o=i.insets?.right??0,l=i.insets?.bottom??0,r=i.insets?.left??0;for(let u of[a,o,l,r])if(!Number.isFinite(u)||u<0||u>1e5)throw new Error("Invalid measured area inset");t.add(i.id),n.push({item:i,top:a,right:o,bottom:l,left:r,width:i.width+r+o,height:i.height+a+l})}return n}function Fx(e,t){let n=Array(t).fill(0);for(let i=0;i<e.length;i++)n[i%t]=Math.max(n[i%t],e[i].width);return n}function R0(e,t,n,i,a=24,o=42,l=16){if(!Number.isInteger(t)||t<1||t>32||e.length>2048||![n,i,a,o,l].every(w=>Number.isFinite(w)&&w>=0))throw new Error("Invalid area grid policy");if(!e.length)return{positions:new Map,width:0,height:0};let r=Zx(e),u=Math.min(t,e.length),c=Fx(r,u),f=Array(Math.ceil(e.length/u)).fill(0);for(let w=0;w<r.length;w++)f[Math.floor(w/u)]=Math.max(f[Math.floor(w/u)],r[w].height);let p=[],s=[],m=a,y=o;for(let w of c)p.push(m+w/2),m+=w+n;for(let w of f)s.push(y+w/2),y+=w+i;let b=new Map;for(let w=0;w<r.length;w++){let h=r[w];b.set(h.item.id,{x:p[w%u]+(h.left-h.right)/2,y:s[Math.floor(w/u)]+(h.top-h.bottom)/2,width:h.item.width,height:h.item.height})}return{positions:b,width:m-n+a,height:y-i+l}}function A0(e,t,n,i={}){let a=n.horizontalSpacing/n.horizontalDensity,o=n.verticalSpacing/n.verticalDensity,l=e.entry,r=e.occurrences.filter(C=>!C.section),u=e.occurrences.filter(C=>C.section),c=new Map(t.map(C=>[C.id,C])),f=(C,G)=>C?c.get(C)?.controlReserve?.[G]??0:0;if(r.length>mt.occurrences||new Set(r.map(C=>C.id)).size!==r.length)throw new Error("Invalid hierarchy identity");let p=new Map;for(let C of r){let G=c.get(C.id);if(!G||![G.width,G.height].every(ie=>Number.isFinite(ie)&&ie>0)||!C.branch)throw new Error("Invalid measured hierarchy");if(G.controlReserve&&![G.controlReserve.right,G.controlReserve.bottom].every(ie=>Number.isFinite(ie)&&ie>=0&&ie<=64))throw new Error("Invalid measured control reserve");if(C.id===l){if(C.branch.parent)throw new Error("Root cannot have a parent");continue}let H=C.branch.parent;if(!H||!c.has(H))throw new Error("Missing hierarchy parent");let X=p.get(H)??[];X.push(C),p.set(H,X)}let s=new Map,m=new Set,y=(C,G)=>{let H=s.get(C);if(H!==void 0)return H;if(G>mt.depth||m.has(C))throw new Error("Invalid hierarchy ancestry");m.add(C);let X=p.get(C)??[],ie=X.reduce((k,Z)=>k+y(Z.id,G+1),0)+Math.max(0,X.length-1)*o,J=Math.max(c.get(C).height+f(C,"bottom"),ie);return m.delete(C),s.set(C,J),J};for(let C of r)y(C.id,0);let b=c.get(l);if(!b)throw new Error("Missing hierarchy root");let w=new Map([[l,{x:0,y:0,width:b.width,height:b.height}]]),h=(C,G,H,X)=>{let ie=C.reduce((k,Z)=>k+s.get(Z.id),0)+Math.max(0,C.length-1)*o,J=G.y+f(X,"bottom")/2-ie/2;for(let k of C){let Z=c.get(k.id),fe=s.get(k.id),he={width:Z.width,height:Z.height,x:G.x+H*(G.width/2+a+Z.width/2+f(H===1?X:k.id,"right")),y:J+fe/2-f(k.id,"bottom")/2};if(w.has(k.id))throw new Error("Repeated hierarchy parent");w.set(k.id,he),h(p.get(k.id)??[],he,H,k.id),J+=fe+o}},d=p.get(l)??[],g=d.filter(C=>C.role==="parent"),S=d.filter(C=>C.role!=="parent"),x=C=>c.get(C).width+f(C,"right")+(p.get(C)?.length??0?a+Math.max(...p.get(C).map(G=>x(G.id))):0),N=g.filter(C=>C.branch.side===-1),E=g.filter(C=>C.branch.side===1),M=n.parentColumns,R=[];for(;N.length||E.length;)for(let C=0;C<M;C++)R.push(M>1&&C===0?N.shift():E.shift()??(M===1?N.shift():void 0));let O=R0(R.map((C,G)=>C?{id:C.id,width:x(C.id),height:s.get(C.id)}:{id:`empty-parent-cell-${G}`,width:1,height:1}),n.parentColumns,a,o),D=u.map(C=>{let G=c.get(C.id);if(!G)throw new Error("Missing measured section");return G}),I=Math.max(b.width+f(l,"right")*2,O.width,...D.map(C=>C.width)),B=Math.max(140,Math.min(800,i.parentHeight??300)),j=Math.max(B,O.height),q={x:-I/2,y:-b.height/2-o-j,width:I,height:j};if(!Number.isFinite(j))throw new Error("Invalid parent area height");for(let C of g){let G=O.positions.get(C.id),H=c.get(C.id),X=M===1?1:C.branch.side,ie={x:q.x+(I-O.width)/2+G.x+X*(-G.width/2+H.width/2)-(X===-1?f(C.id,"right"):0),y:q.y+j-O.height+G.y-f(C.id,"bottom")/2,width:H.width,height:H.height};w.set(C.id,ie),h(p.get(C.id)??[],ie,X,C.id)}let le={...w.get(l),width:I};for(let C of[-1,1]){let G=S.filter(H=>H.branch?.side===C);h([...G.filter(H=>H.role!=="child"),...G.filter(H=>H.role==="child")],le,C)}if(w.size!==r.length)throw new Error("Disconnected hierarchy");let ne=b.height/2+f(l,"bottom")+Math.min(24,o);for(let C of D)w.set(C.id,{x:0,y:ne+C.height/2,width:C.width,height:C.height}),ne+=C.height+Math.min(24,o);let de=[{id:"parent",labelKey:"graph.zoneParents",bounds:{...q,height:j},resizeEdge:"top",heightPreference:{key:"parentHeight",minimum:140,maximum:800,value:B},dropRole:"parent",viewport:{...q,height:j,contentTop:q.y,contentHeight:j,initialScrollTop:0,scrollable:!1},reflow:{columns:n.parentColumns,columnGap:a,rowGap:o,filterLayout:"keep"}}],P=Math.min(8,o/4,a/4);for(let[C,G]of[["child-left","child"],["child-right","child"],["left","left"]]){let H=r.filter(J=>J.areaId===C).map(J=>{let k=w.get(J.id),Z=f(J.id,"right"),fe=f(J.id,"bottom");return{...k,x:k.x+Z/2,y:k.y+fe/2,width:k.width+Z,height:k.height+fe}});if(!H.length)continue;let X=Math.min(...H.map(J=>J.x-J.width/2))-P,ie=Math.min(...H.map(J=>J.y-J.height/2))-P;de.push({id:C,labelKey:G==="child"?"graph.zoneChildren":"graph.zoneFriendsChallengers",dropRole:G,bounds:{x:X,y:ie,width:Math.max(...H.map(J=>J.x+J.width/2))+P-X,height:Math.max(...H.map(J=>J.y+J.height/2))+P-ie}})}return{positions:w,areas:de}}T();function Jx(e){if(!e.documentId||typeof e.path!="string"||!e.path||!e.revision||e.revision.length>256||e.rows.length>256||e.provenance.length>4096||e.visible.length>e.rows.length)return!1;let t=new Map(e.rows.map(n=>[n.id,n]));if(t.size!==e.rows.length||new Set(e.visible).size!==e.visible.length||e.visible.some(n=>!t.has(n)))return!1;for(let n of e.rows)if(!n.id||n.id.length>4096||typeof n.label!="string"||n.label.length>4096||!Number.isInteger(n.level)||n.level<1||n.level>6||!Number.isInteger(n.line)||n.line<1||!Number.isInteger(n.start)||!Number.isInteger(n.end)||n.start<0||n.end<n.start||n.parent!==null&&(!t.has(n.parent)||t.get(n.parent).level>=n.level)||new Set(n.children).size!==n.children.length||n.children.some(i=>t.get(i)?.parent!==n.id)||n.parent&&!t.get(n.parent).children.includes(n.id))return!1;return e.provenance.every(n=>(n.sectionId===null||t.has(n.sectionId))&&!!n.target&&["parent","child","left","right","previous","next","sibling"].includes(n.role))}function Wx(e,t,n){let i=e.provenance.filter(c=>c.target===t&&c.role===n);if(!i.length||i.some(c=>c.sectionId===null))return null;let a=new Map(e.rows.map(c=>[c.id,c])),o=new Set(e.visible),l=c=>{let f=[];for(let p=0;c&&p<256;p++)o.has(c)&&f.push(c),c=a.get(c)?.parent??"";return f},r=i.map(c=>l(c.sectionId)),u=r[0].find(c=>r.every(f=>f.includes(c)));return u?{documentId:e.documentId,revision:e.revision,sectionId:u}:null}function C0(e,t,n){let i=e.occurrences.find(r=>r.id===(e.root??e.entry));if(!i?.nodeId||i.nodeId!==t.documentId||!Jx(t)||!Number.isInteger(n)||n<e.occurrences.length||n>2048)throw new Error("Invalid central section projection");let a=new Set(t.visible),o=t.rows.filter(r=>a.has(r.id)),l=o.slice(0,n-e.occurrences.length).map(r=>({id:JSON.stringify(["section",r.id]),nodeId:t.documentId,representation:"thought",ports:{},section:{documentId:t.documentId,revision:t.revision,sectionId:r.id}}));return{...e,occurrences:[...e.occurrences,...l],truncated:e.truncated||l.length<o.length,edges:e.edges.map(r=>{if(r.kind!=="semantic"||r.source!==i.id)return r;let u=Wx(t,r.targetNode,r.relation.role);return u?{...r,sourceSection:u}:r})}}var O0={id:"mindmap",version:1,labelKey:"view.mindmap",icon:"network",navigation:"rooted",navigationEntry:"attention",editorHosting:"occurrence",capabilities:{sections:!0,descendants:!1,editor:!0,compact:!1},sectionSource:"layout-root",defaultState:kd,hierarchy:{maximumScopes:mt.scopes,maximumDepth:mt.depth,primary:"center",controls:"measured",relations:"child-and-peer",reduce:tc},configuration:Wu,restoreState:Zi,project(e){let t=M0(e);return t&&e.sections?.status==="available"?C0(t,e.sections.snapshot,Math.min(2048,e.maximum*8+1)):t},layout(e,t,n,i,a){let o=$u(a?.configuration);if(!o)throw new Error("Mind Map configuration unavailable");return A0(e,t,o,a?.areaHeights)}};var $x={compactingFactor:2,horizontalCompactingFactor:2,compactView:!1,minLinkLength:18,parentColumns:2,childColumns:5,siblingRelativeSize:85,parentMaxHeight:300,childMaxHeight:400,friendMaxHeight:350,siblingMaxHeight:250},oh={baseFontSize:12.4,wrapNodeLabels:!1,propertyFontSize:10};function L0(e){return e==="left"||e==="right"||e==="sibling"}function D0(e,t,n=!0,i="compass",a,o=!1){let{read:l}=e,r=e.manifest?.appearance,u=r?.flip??!1,c={...$x,...r?.geometry,flipEastWest:u};e.manifest&&(c.siblingMaxHeight+=72);let f={baseFontSize:r?.typography?.baseFontSize??oh.baseFontSize,wrapNodeLabels:r?.typography?.wrapNodeLabels??oh.wrapNodeLabels,propertyFontSize:r?.typography?.propertyFontSize??oh.propertyFontSize},p=bc(u),s=i==="mindmap",m=s?O0:w0,y=m.project({attention:t,read:l,maximum:r?.maximum??100,...s?{layoutRoot:t,state:a}:{state:{renderSiblings:n},configuration:{status:"available",values:{flipEastWest:u}}}});if(!y)throw new Error("Publication attention is unavailable");let b=y.occurrences.map(R=>{let O=R.nodeId&&l.node(R.nodeId);if(!O)throw new Error("Publication occurrence is unavailable");let D=R.id===y.entry,I=R.role==="sibling",B=I?gc(c):1,j=e.published.get(O.id),q=j?.roleStyles,le=R.relation?.relationType===2?q?.inferred:void 0,ne=D?q?.center:I?q?.sibling:void 0,de={...j?.style,...le,...ne},P=ne?.fontSize??le?.fontSize??j?.style?.fontSize??(D?30:I?15:20),C=ne?.gateRadius??le?.gateRadius??j?.style?.gateRadius??5,G=Jl(P*B,D,f.baseFontSize)*(I&&e.manifest?.7:1),H=Wb(O.name,P,f,D,O.maxLabelLength);de.icon!=null&&(H.width+=D?22:17);let X=$b(H,B,P*B,f);return{occurrence:R,node:O,center:D,fontSize:G,style:de,gateSize:Zb({gateRadius:C*B}),measurement:{id:R.id,...X,expandedWidth:X.width,expandedReserve:0,mini:null,envelope:null,controlReserve:R.branch?.canExpand?{right:0,bottom:23}:void 0}}}),w=m.layout(y,b.map(R=>R.measurement),{...c,alignSiblingsToFirstParent:!!e.manifest},!1),h=[],d=!1;if(o){let R=new Map;for(let{node:D,occurrence:I,center:B}of b){if(!s&&B)continue;let j=R.get(D.id)??[];j.push({...w.positions.get(I.id),node:D.id,occurrence:I}),R.set(D.id,j)}let O=y.edges.flatMap(D=>D.kind==="semantic"?[[D.sourceNode,D.targetNode]]:[]);d=T0(R,O,function*(D){for(let I of Dd)yield*l.relations(D.node,I).items},D=>D.node.id,(D,I)=>x0(s?D.occurrence.ports:p,D.occurrence.peerPort?.side,I),({source:D,target:I,sourcePort:B,targetPort:j},q)=>{h.push({id:JSON.stringify(["cross",D.occurrence.id,I.occurrence.id]),kind:"semantic",source:D.occurrence.id,target:I.occurrence.id,sourceNode:D.node,targetNode:I.node,sourcePort:B,targetPort:j,relation:q})})}let g=[...y.edges,...h],S=new Map;if(s){let R=(O,D)=>{let I=S.get(O)??new Map;I.set(D,(I.get(D)??0)+1),S.set(O,I)};for(let O of g)R(O.source,O.sourcePort),R(O.target,O.targetPort)}let x=new Map;if(!s)for(let{id:R,viewport:O}of w.areas)O&&L0(R)&&x.set(R,O);let N=b.map(({occurrence:R,node:O,center:D,fontSize:I,gateSize:B,style:j})=>{let q=R.areaId==="right"&&c.lateralArrangement==="left"?"left":R.areaId;return{id:R.id,node:O,center:D,fontSize:I,gateSize:B,style:j,role:R.role??"center",bounds:w.positions.get(R.id),branch:R.branch,strip:L0(q)&&x.has(q)?q:void 0,gates:s?[...S.get(R.id)??[]].map(([le,ne])=>({side:le,count:ne})):Object.keys(p).map(le=>{let ne=p[le],de=ne==="left"?"previous":ne==="right"?"next":null,P=l.relations(O.id,ne).items,C=de?new Set([...P,...l.relations(O.id,de).items].map(G=>G.node.id)).size:P.length;return{side:le,count:C}})}}),E=new Map(N.map(R=>[R.id,R])),M=g.map((R,O)=>{let D=E.get(R.source),I=E.get(R.target),B=th(hc(D.bounds,R.sourcePort,D.gateSize),hc(I.bounds,R.targetPort,I.gateSize),R.sourcePort,R.targetPort,"bezier"),j=R.kind==="semantic"?R.relation.direction:null,q=R.kind==="semantic"?e.linkStyle(R.sourceNode,R.targetNode,R.relation.role):void 0,le=R.kind==="semantic"?R.relation.definition??null:null;return{id:R.id,source:R.source,target:R.target,route:B,label:le,labelSize:q?.labelSize,labelColor:q?.labelColor,crossLink:O>=y.edges.length,sourcePort:R.sourcePort,targetPort:R.targetPort,stroke:q?.stroke,strokeWidth:q?.width,startHead:q?.startHead??(q?.arrowStart??(j===2||j===3)?"arrow":void 0),endHead:q?.endHead??(q?.arrowEnd??(j===1||j===3)?"arrow":void 0)}});return{cards:N,cardById:E,edges:M,strips:x,wrap:f.wrapNodeLabels,truncated:y.truncated||d,projection:y}}function vc(e,t,n){if(!t.strip)return t.bounds;let i=e.strips.get(t.strip);return{...t.bounds,y:t.bounds.y+i.y-i.contentTop-(n[t.strip]??i.initialScrollTop)}}function z0(e,t,n,i){let a=hc(vc(e,t,i),n,t.gateSize);if(!t.strip)return a;let{y:o,height:l}=e.strips.get(t.strip);return a.y>=o&&a.y<=o+l?a:null}function H0(e,t,n){let i=e.cardById.get(t.source),a=e.cardById.get(t.target);if(!i.strip&&!a.strip)return t.route;let o=z0(e,i,t.sourcePort,n),l=z0(e,a,t.targetPort,n);return o&&l?th(o,l,t.sourcePort,t.targetPort,"bezier"):null}T();T();function Sc(e,t){if(!/^(?:\d+(?:\.\d*)?|\.\d+)%?$/.test(e))return null;let n=Number(e.replace(/%$/,"")),i=e.endsWith("%")?100:t;return n>=0&&n<=i?n/i*t:null}function wc(e){if(typeof e!="string"||e.length>180)return null;let t=e.trim();if(t.toLowerCase()==="transparent")return{red:0,green:0,blue:0,alpha:0};if(/^#(?:[\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i.test(t)){let f=t.slice(1);return f.length<=4&&(f=[...f].map(p=>p+p).join("")),{red:parseInt(f.slice(0,2),16),green:parseInt(f.slice(2,4),16),blue:parseInt(f.slice(4,6),16),alpha:f.length===8?parseInt(f.slice(6),16)/255:1}}let n=/^rgba?\(\s*([^()]*)\s*\)$/i.exec(t);if(!n)return null;let i=n[1].trim(),a=i.includes(","),o=a?i.split(",").map(f=>f.trim()):i.split(/\s*\/\s*|\s+/);if(o.length<3||o.length>4||a&&i.includes("/")||!a&&o.length===4&&!i.includes("/"))return null;let l=Sc(o[0],255),r=Sc(o[1],255),u=Sc(o[2],255),c=o.length===4?Sc(o[3],1):1;return l===null||r===null||u===null||c===null?null:{red:l,green:r,blue:u,alpha:c}}T();function rh(e,t){let n=e.alpha+t.alpha*(1-e.alpha);if(n===0)return{red:0,green:0,blue:0,alpha:0};let i=(a,o)=>(a*e.alpha+o*t.alpha*(1-e.alpha))/n;return{red:i(e.red,t.red),green:i(e.green,t.green),blue:i(e.blue,t.blue),alpha:n}}function lh(e){let t=Math.max(0,Math.min(1,e/255));return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function _0(e,t){if(t.alpha<1||![e.red,e.green,e.blue,e.alpha,t.red,t.green,t.blue,t.alpha].every(Number.isFinite))return null;let n=rh(e,t),i=l=>.2126*lh(l.red)+.7152*lh(l.green)+.0722*lh(l.blue),a=i(n),o=i(t);return(Math.max(a,o)+.05)/(Math.min(a,o)+.05)}T();var eT=new Map([...["background-primary","background-secondary","background-modifier-border","background-modifier-hover","text-normal","text-muted","text-faint","interactive-accent","interactive-normal","interactive-hover","text-on-accent","kplex-publication-panel","kplex-publication-link","kplex-publication-canvas","link-color","link-color-hover","link-external-color","code-background","code-normal","blockquote-border-color","blockquote-color","table-border-color","table-header-background","text-highlight-bg","color-red","color-green","color-orange","color-blue","color-cyan","color-purple"].map(e=>[e,"color"]),...["font-interface","font-text","font-monospace","inline-title-font"].map(e=>[e,"font"]),...["font-ui-medium","font-text-size","p-spacing","heading-spacing","inline-title-size","input-radius","button-radius","callout-radius"].map(e=>[e,"length"]),["line-height-normal","line-height"],["inline-title-weight","weight"],["inline-title-color","color"],...[1,2,3,4,5,6].flatMap(e=>[["h"+e+"-color","color"],["h"+e+"-size","length"],["h"+e+"-weight","weight"],["h"+e+"-font","font"],["h"+e+"-line-height","line-height"],["h"+e+"-style","font-style"]])]),tT=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","-apple-system"]),nT=new Set(["inherit","initial","revert","revert-layer","unset","default"]);function iT(e){let t=e.split(",");if(!t.length||t.length>10)return;let n=[];for(let i of t){let a=i.trim(),o=/^(['"])(.*?)\1$/u.exec(a),l=o?.[2]??a;if(!/^[\p{L}\p{N}][\p{L}\p{M}\p{N} _.-]{0,79}$/u.test(l)&&l!=="-apple-system"||nT.has(l.toLowerCase()))return;n.push(!o&&tT.has(l.toLowerCase())?l.toLowerCase():JSON.stringify(l))}return n.join(", ")}function U0(e){if(e==="0")return e;let t=/^(\d{1,3}(?:\.\d{1,4})?|\.\d{1,4})(px|rem|em)$/.exec(e);if(!t)return;let n=Number(t[1]),i=t[2];return n<=(i==="px"?160:8)?String(n)+i:void 0}function k0(e,t){let n=t.trim();if(!(!n||n.length>320))switch(eT.get(e)){case"color":return/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(n)?n.toLowerCase():void 0;case"font":return iT(n);case"length":return U0(n);case"line-height":return/^(?:[1-3](?:\.\d{1,4})?|0\.[5-9]\d{0,3}|4(?:\.0{1,4})?)$/.test(n)?String(Number(n)):U0(n);case"weight":return n==="normal"||n==="bold"||/^(?:[1-9]\d{0,2}|1000)$/.test(n)?n:void 0;case"font-style":return/^(?:normal|italic|oblique)$/.test(n)?n:void 0;default:return}}var uh=/\s*(?:\.kplex-publication\s*\{([^{}]*)\}|@media\s*\(\s*prefers-color-scheme:\s*(light|dark)\s*\)\s*\{\s*\.kplex-publication\s*\{([^{}]*)\}\s*\})\s*/yu;function P0(e){if(!e.length||e.length>16*1024)throw new Error("Unsupported publication theme");let t={},n=new Set,i=0;for(;i<e.length;){uh.lastIndex=i;let a=uh.exec(e);if(!a)throw new Error("Unsupported publication theme");i=uh.lastIndex;let o=(a[1]??a[3]).split(";").map(u=>u.trim()).filter(Boolean),l=o.filter(u=>u.startsWith("color-scheme"));if(l.length){let u=/^color-scheme\s*:\s*(light|dark)$/.exec(l[0])?.[1];if(!u||l.length!==1||a[2]||n.has("author"))throw new Error("Unsupported publication mode");t.colorScheme=u}let r=l.length?"author":a[2]??"light";if(n.has(r))throw new Error("Duplicate publication theme mode");n.add(r);for(let u of o){if(u===l[0])continue;let c=/^--([a-z][a-z0-9-]*)\s*:\s*(.+)$/u.exec(u),f=c&&k0(c[1],c[2]);if(!c||f===void 0||f===null)throw new Error("Unsupported publication theme token");t["--kplex-published-"+r+"-"+c[1]]=f}}return t}function I0(e,t){let n=`--kplex-published-${t}-`,i=`--kplex-published-${t==="dark"?"light":"dark"}-`,a=e??{},o=wc(a[n+"text-normal"]),l=wc(a[n+"background-secondary"]??a[n+"background-primary"]),r={colorScheme:t};for(let[u,c]of Object.entries(a)){if(!u.startsWith(n)||typeof c!="string")continue;let f=u.slice(n.length);if(o&&(f==="interactive-normal"||f==="interactive-hover")&&c===a[i+f]){let p=wc(c),s=p&&_0(o,l?rh(p,l):p);if(s!==null&&s<3)continue}r["--kplex-published-author-"+f]=c}return r}var V=K(ye(),1),G0={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},ch={back:"Alt+ArrowLeft",forward:"Alt+ArrowRight",sidecar:"Alt+Shift+S"},aT={left:L.friends,right:L.challengers,sibling:L.siblings},oT=[["system",L.systemTheme],["light",L.lightMode],["dark",L.darkMode]],lT=[["right",L.sidecarRight],["left",L.sidecarLeft],["bottom",L.sidecarBottom]],B0={};function sh(e,t){let n=t.ownerDocument.defaultView?.Element;return!!(n&&e.target instanceof n&&e.target.closest(Aa))}function V0(e,t){return t?{x:(e.x+t.x)/2,y:(e.y+t.y)/2,distance:Math.max(1,Math.hypot(e.x-t.x,e.y-t.y))}:{...e,distance:1}}function Y0({publication:e,markerPrefix:t,resources:n,browser:i}){let a=(0,te.useRef)(null),o=(0,te.useRef)(null),l=zv(a,o),r=vv(e,i,l.capture),u=r.attention.id,c={...jd,crosslinks:e.manifest?.appearance?.showCrossLinks??jd.crosslinks,...r.attention.canvas},{view:f,siblings:p,crosslinks:s,ontology:m,sidecar:y}=c,[b,w]=(0,te.useState)(),[h,d]=(0,te.useState)(null),g=(0,te.useRef)(null),S=(0,te.useMemo)(()=>D0(e,u,p,f,b,s),[e,u,p,f,b,s]),x=f==="mindmap"?L.mindMap:L.view,N=S.cards.find(v=>v.center),[E,M]=(0,te.useState)(),R=E?.attention===u?E.offsets:B0,O=(0,te.useRef)(null),D=(0,te.useRef)({x:0,y:0,scale:1}),I=(0,te.useRef)(!1),B=(0,te.useRef)({points:new Map,origin:null,moved:!1}),j=(0,te.useRef)(!1),q=(0,te.useId)(),le=(0,te.useRef)(null),[ne,de]=(0,te.useState)(0),[P,C]=(0,te.useState)(null),[G,H]=(0,te.useState)(null),[X,ie]=(0,te.useState)(!1),J=(0,te.useRef)(()=>{}),k=(0,te.useRef)(null),[Z,fe]=(0,te.useState)(),[he,nn]=(0,te.useState)(!1),[ze,Vt]=(0,te.useState)("light"),ke=e.manifest?.colorMode,Zn=e.manifest?.pins,lt=Z?.colorScheme==="dark"?"dark":Z?.colorScheme==="light"?"light":void 0,Ot=ke==="both"?c.theme:ke??lt??"system",St=Ot==="system"?ze:Ot,Lt=()=>r.changeCanvas({theme:St==="dark"?"light":"dark"}),Fn=()=>r.changeCanvas({sidecar:!y}),Rn=(0,te.useMemo)(()=>S.edges.flatMap(v=>{let z=H0(S,v,R);return z?[{edge:v,route:z}]:[]}),[S,R]),An=new Set,ve=new Set;if(h)for(let{edge:v}of Rn)(v.source===h.occurrence&&(!h.port||v.sourcePort===h.port)||v.target===h.occurrence&&(!h.port||v.targetPort===h.port))&&(An.add(v.id),ve.add(v.source),ve.add(v.target));let et=v=>v?" is-highlighted":An.size?" is-dimmed":"";(0,te.useLayoutEffect)(()=>{let v=a.current,z=v?.ownerDocument.defaultView;if(!v||!z)return;let Y=new nc(z,!0,d);g.current=Y;let $=Qb(v,Y);return()=>{g.current=null,$()}},[]),(0,te.useLayoutEffect)(()=>{g.current?.clear()},[S]),(0,te.useEffect)(()=>{let v=a.current?.ownerDocument.defaultView;if(!X||!v)return;let z=v.setTimeout(()=>ie(!1),3500);return()=>v.clearTimeout(z)},[X]),J.current=v=>{if(v.defaultPrevented||v.isComposing||v.ctrlKey||v.metaKey)return;if(n&&v.key===Ql.key&&!v.altKey&&!v.shiftKey){v.preventDefault(),v.repeat||de(Y=>Y+1);return}let z=v.target;!v.altKey||z?.isContentEditable||z?.closest?.("input,textarea,select")||(n&&v.shiftKey&&(v.code==="KeyS"||v.key.toLowerCase()==="s")?(v.preventDefault(),v.repeat||Fn()):!v.shiftKey&&(v.key==="ArrowLeft"||v.key==="ArrowRight")&&(v.preventDefault(),v.repeat||r.move(v.key==="ArrowLeft"?-1:1)))},(0,te.useEffect)(()=>{if(!i)return;let v=z=>J.current(z);return i.addEventListener("keydown",v),()=>i.removeEventListener("keydown",v)},[i]),(0,te.useLayoutEffect)(()=>{let v=k.current;v&&(v.scrollLeft=v.scrollWidth)},[r.visits]),(0,te.useEffect)(()=>{let v=a.current?.ownerDocument.defaultView?.matchMedia("(prefers-color-scheme: dark)");if(!v)return;let z=()=>Vt(v.matches?"dark":"light");return z(),v.addEventListener("change",z),()=>v.removeEventListener("change",z)},[]),(0,te.useEffect)(()=>{let v=a.current?.ownerDocument.defaultView;if(!v||!n?.has(zd))return;let z=new v.AbortController,Y=z.signal;return n.text(zd,Y).then($=>{Y.aborted||fe(P0($))}).catch(()=>{Y.aborted||nn(!0)}),()=>z.abort()},[n]);function wt(v){D.current=v,O.current&&(O.current.style.transform=`translate(${v.x}px, ${v.y}px) scale(${v.scale})`)}function De(){let v=a.current;if(!v)return;let z=0,Y=0;for(let{bounds:ce,strip:F}of S.cards)F||(z=Math.max(z,Math.abs(ce.x-N.bounds.x)+ce.width/2),Y=Math.max(Y,Math.abs(ce.y-N.bounds.y)+ce.height/2));for(let{x:ce,y:F,width:He,height:pt}of S.strips.values())z=Math.max(z,Math.abs(ce+He/2-N.bounds.x)+He/2),Y=Math.max(Y,Math.abs(F+pt/2-N.bounds.y)+pt/2);let $=Math.max(.25,Math.min(1,(v.clientWidth/2-22)/z,(v.clientHeight/2-22)/Y));I.current=!1,wt({x:-N.bounds.x*$,y:-N.bounds.y*$,scale:$})}function Cn(v,z,Y){l.cancel(),g.current?.clear();let{x:$,y:ce,scale:F}=D.current,He=Math.max(.25,Math.min(3,F*Y));I.current=!0,wt({x:z.x-(v.x-$)*He/F,y:z.y-(v.y-ce)*He/F,scale:He})}function Yt(v){Cn({x:0,y:0},{x:0,y:0},v)}function mn(v,z,Y){let $=v.getBoundingClientRect();return{x:z-$.left-$.width/2,y:Y-$.top-$.height/2}}(0,te.useLayoutEffect)(()=>{let v=a.current;if(!v)return;De(),l.play(u,D.current.scale),j.current&&(v.querySelector("[data-publication-center]")?.focus({preventScroll:!0}),j.current=!1);let z=ce=>{if(sh(ce,v))return;ce.preventDefault();let F=mn(v,ce.clientX,ce.clientY),He=ce.deltaY*(ce.deltaMode===1?16:ce.deltaMode===2?v.clientHeight:1);Cn(F,F,Math.exp(-Math.max(-200,Math.min(200,He))/350))},Y=v.ownerDocument.defaultView,$=Y?new Y.ResizeObserver(()=>{I.current||De()}):null;return $?.observe(v),v.addEventListener("wheel",z,{passive:!1}),()=>{$?.disconnect(),v.removeEventListener("wheel",z)}},[e,u,f,p,b]);function qt(v,z){let Y=e.published.get(v)?.url?{sidecar:!0}:void 0;r.activate({id:v,canvas:Y})&&v!==u&&(j.current=z)}function Oa(){r.changeCanvas({sidecar:!1}),le.current?.focus()}function yi(v){r.activate(v)}function pn(){let v=i?.location.href??(n&&new URL("index.html",n.siteURL).href);if(!v)throw new Error("Publication address unavailable");let z=new URL(v);return z.search="",z.hash="",z}function Pe(v,z){H(null),ie(!1),C({id:v,anchor:z})}function Jn(v,z){C(null),g.current?.clear(),H({anchor:v,point:z})}function La(v,z,Y=!1){return(0,V.jsxs)("nav",{className:`kplex-publication-trail ${Y?"kplex-publication-history":"kplex-publication-pins"}`,"aria-label":z,children:[(0,V.jsx)("span",{children:z}),(0,V.jsx)("ol",{ref:Y?k:void 0,children:v.map($=>{let ce=e.published.get($.id),F=ce?.style,He=F?.icon??ce?.trailIcon,pt=He===void 0?void 0:e.manifest?.icons?.[He];return(0,V.jsx)("li",{children:(0,V.jsxs)("a",{href:Uo(pn(),{...$,canvas:{...r.attention.canvas,...$.canvas}}).href,"aria-current":$.id===u?"location":void 0,style:{backgroundColor:F?.fill,color:F?.color,"--kplex-publication-trail-border":F?.stroke},onClick:Et=>{Et.altKey||Et.ctrlKey||Et.metaKey||Et.shiftKey||(Et.preventDefault(),yi($))},children:[pt&&(0,V.jsx)(Fd,{icon:pt,size:12}),(0,V.jsx)("span",{children:e.nodes.get($.id)?.name})]})},$.id)})})]})}function Ec(v){if(!v.altKey){if(v.target===v.currentTarget&&(v.key==="ContextMenu"||v.shiftKey&&v.key==="F10")){v.preventDefault();let{left:z,top:Y}=v.currentTarget.getBoundingClientRect();Jn(v.currentTarget,{x:z+12,y:Y+12});return}if(!(v.target.matches?.(Aa)&&["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(v.key))){if(v.key==="Home"||v.key==="0")l.cancel(),De();else if(v.key==="+"||v.key==="=")Yt(1.25);else if(v.key==="-")Yt(.8);else if(Object.prototype.hasOwnProperty.call(G0,v.key)){let[z,Y]=G0[v.key],$=Array.from(v.currentTarget.querySelectorAll("[data-publication-node]")),ce=$.find(On=>On===v.target)?.dataset.publicationOccurrence,F=vc(S,ce?S.cardById.get(ce)??N:N,R),He=-1,pt=1/0;for(let[On,Bo]of $.entries()){let Vo=vc(S,S.cardById.get(Bo.dataset.publicationOccurrence),R),Yo=Vo.x-F.x,qo=Vo.y-F.y,rr=Yo*z+qo*Y,jo=rr+2*Math.abs(Yo*Y-qo*z);rr>0&&jo<pt&&(He=On,pt=jo)}let Et=$[He];Et?.focus({preventScroll:!Et.closest(Aa)})}else return;v.preventDefault()}}}function U(v){let z=v.currentTarget.ownerDocument.defaultView?.Element;if(!z||!(v.target instanceof z)||B.current.points.size)return;let Y=v.target.closest("[data-publication-occurrence]")?.getAttribute("data-publication-occurrence"),$=v.target.closest("[data-kplex-gate]")?.getAttribute("data-kplex-gate")??void 0;Y?g.current?.enter({occurrence:Y,port:$},v):g.current?.clear()}function ae(v){if(v.button!==0||(G&&H(null),P&&C(null),sh(v,v.currentTarget)))return;let z=B.current;if(z.points.size>=2)return;let Y={...mn(v.currentTarget,v.clientX,v.clientY),id:v.pointerId};z.points.size===0&&(z.origin=Y,z.moved=!1),z.points.set(v.pointerId,Y)}function qe(v){let z=B.current;if(!z.points.has(v.pointerId))return;let[Y,$]=z.points.values(),ce=V0(Y,$),F={...mn(v.currentTarget,v.clientX,v.clientY),id:v.pointerId};z.points.set(v.pointerId,F);let[He,pt]=z.points.values(),Et=V0(He,pt);if(!(!z.moved&&!pt&&z.origin&&Math.hypot(F.x-z.origin.x,F.y-z.origin.y)<5)){if(z.moved)v.currentTarget.hasPointerCapture(v.pointerId)||v.currentTarget.setPointerCapture(v.pointerId);else{z.moved=!0;for(let On of z.points.keys())v.currentTarget.setPointerCapture(On)}Cn(ce,Et,Et.distance/ce.distance)}}function zt(v){B.current.points.delete(v.pointerId)}let Dt=e.body(u),$i=()=>r.changeCanvas({siblings:!p}),or=(0,V.jsx)("button",{type:"button","data-publication-siblings-toggle":!0,"aria-pressed":p,onClick:$i,children:p?L.hideSiblings:L.showSiblings}),za=(0,V.jsxs)(V.Fragment,{children:[f==="compass"&&or,(0,V.jsx)("button",{type:"button",onClick:()=>Yt(.8),"aria-label":L.zoomOut,children:"−"}),(0,V.jsx)("button",{type:"button",onClick:()=>Yt(1.25),"aria-label":L.zoomIn,children:"+"}),(0,V.jsx)("button",{type:"button","aria-label":L.fit,onClick:()=>{l.cancel(),De()},children:L.fit}),(0,V.jsx)("button",{type:"button","aria-label":L.graphOptions,"aria-haspopup":"menu","aria-expanded":!!G,onClick:v=>Jn(v.currentTarget),children:"⋯"})]});function Wn(v,z){let Y=z?{...v.bounds,x:v.bounds.x-z.x,y:v.bounds.y-z.contentTop}:v.bounds,$=e.manifest?.icons,ce=v.style?.icon!=null?$?.[v.style.icon]:void 0;return(0,V.jsxs)(te.Fragment,{children:[(0,V.jsxs)(iv,{bounds:Y,semanticRole:v.role,className:et(ve.has(v.id)).trim(),"data-publication-node":v.node.id,"data-publication-occurrence":v.id,"data-publication-center":v.center||void 0,role:"button",tabIndex:0,"aria-label":v.node.name,"aria-current":v.center||void 0,style:{fontSize:v.fontSize,backgroundColor:v.style?.fill,borderColor:v.style?.stroke,color:v.style?.color,"--kplex-gate-size":`${v.gateSize}px`,"--kplex-gate-fill":v.style?.gate},onClick:F=>qt(v.node.id,F.detail===0),onContextMenu:F=>{n&&(F.preventDefault(),Pe(v.node.id,F.currentTarget))},onKeyDown:F=>{n&&(F.key==="ContextMenu"||F.shiftKey&&F.key==="F10")?(F.preventDefault(),Pe(v.node.id,F.currentTarget)):(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),qt(v.node.id,!0))},children:[(0,V.jsxs)(ov,{wrap:S.wrap,children:[ce&&(0,V.jsx)(Fd,{icon:ce,size:v.center?18:v.role==="sibling"?9:13,className:"kplex-publication-node-icon"}),(0,V.jsx)(av,{label:v.node.name,maximum:v.node.maxLabelLength,center:v.center})]}),v.gates.map(({side:F,count:He})=>(0,V.jsx)(lv,{side:F,connected:He>0,count:He?String(He):null,highlighted:An.size>0&&h?.occurrence===v.id&&h.port===F,"aria-hidden":"true"},F))]}),v.branch?.canExpand&&(0,V.jsx)("button",{type:"button",className:"kplex-publication-branch","aria-expanded":v.branch.expanded,"aria-label":`${v.branch.expanded?L.collapseBranch:L.expandBranch} · ${v.node.name}`,style:{left:Y.x+16,top:Y.y+Y.height/2+3},onClick:()=>w(F=>tc(F,S.projection,{kind:"toggle",occurrenceId:v.id})??F),children:v.branch.expanded?"−":"+"})]},`${v.id}:${v.node.id}`)}let Ht=(0,V.jsxs)("div",{ref:a,className:"kplex-publication-viewport",role:"group","aria-label":x,tabIndex:0,onKeyDown:Ec,onPointerOver:U,onPointerDown:ae,onPointerMove:qe,onPointerUp:zt,onPointerCancel:zt,onLostPointerCapture:zt,onContextMenu:v=>{v.defaultPrevented||(v.preventDefault(),Jn(v.currentTarget,{x:v.clientX,y:v.clientY}))},onPointerLeave:v=>{g.current?.clear(),v.currentTarget.hasPointerCapture(v.pointerId)||zt(v)},onClickCapture:v=>{v.detail&&B.current.moved&&!sh(v,v.currentTarget)&&(v.stopPropagation(),B.current.moved=!1)},children:[(0,V.jsxs)("div",{className:"kplex-camera",ref:O,children:[(0,V.jsxs)("svg",{className:"kplex-links",width:"3200",height:"2400",viewBox:"-1600 -1200 3200 2400","aria-hidden":"true",children:[(0,V.jsx)(cv,{prefix:t}),Rn.map(({edge:v,route:z})=>{let{id:Y,source:$,target:ce,label:F,stroke:He,strokeWidth:pt,startHead:Et,endHead:On}=v;return(0,V.jsxs)("g",{className:`kplex-edge${et(An.has(Y))}`,"data-publication-source":$,"data-publication-target":ce,"data-publication-crosslink":v.crossLink||void 0,children:[(0,V.jsx)(rv,{d:z.d,stroke:He??"var(--kplex-publication-link)",strokeWidth:pt??1.2,markerStart:Bd(Et,t),markerEnd:Bd(On,t)}),m&&(0,V.jsx)(uv,{label:F,midpoint:z.midpoint,fontSize:v.labelSize,color:v.labelColor??"var(--text-muted)",background:"var(--background-primary)"})]},Y)})]}),(0,V.jsx)("div",{className:"kplex-nodes",children:S.cards.map(v=>v.strip?null:Wn(v))}),[...S.strips].map(([v,z])=>(0,V.jsx)(Ov,{id:v,panel:z,start:R[v]??z.initialScrollTop,label:v==="left"&&e.manifest?.appearance?.geometry?.lateralArrangement==="left"?L.lateral:aT[v],onScroll:Y=>M($=>{let ce=$?.attention===u?$.offsets:B0;return ce[v]===Y?$:{attention:u,offsets:{...ce,[v]:Y}}}),children:S.cards.map(Y=>Y.strip===v?Wn(Y,z):null)},JSON.stringify([u,v])))]}),(0,V.jsx)("div",{className:"kplex-publication-exits",ref:o,"aria-hidden":"true"})]}),Da=P?fv(e,P.id):void 0,Ha=P&&{id:P.id,canvas:{...c,theme:Ot}},lr=ke==="both"?I0(Z,St):ke?{...Z,colorScheme:St}:Z;return(0,V.jsxs)("main",{className:`kplex-publication${n?" kplex-publication-production":""}`,style:lr,onKeyDown:i?void 0:v=>J.current(v.nativeEvent),children:[(0,V.jsxs)("header",{className:"kplex-publication-header",children:[(0,V.jsxs)("div",{className:"kplex-publication-heading",children:[(0,V.jsx)(Rv,{}),(0,V.jsx)("h1",{children:e.title})]}),(0,V.jsxs)("div",{className:"kplex-publication-controls",children:[(0,V.jsx)("button",{type:"button",onClick:()=>r.move(-1),disabled:!r.canGoBack,"aria-label":L.back,"aria-keyshortcuts":ch.back,title:L.backTooltip,children:"←"}),(0,V.jsx)("button",{type:"button",onClick:()=>r.move(1),disabled:!r.canGoForward,"aria-label":L.forward,"aria-keyshortcuts":ch.forward,title:L.forwardTooltip,children:"→"}),n?(0,V.jsx)("button",{type:"button",ref:le,"aria-expanded":y,"aria-controls":`sidecar-${q}`,"aria-keyshortcuts":ch.sidecar,title:y?L.hideSidecarTooltip:L.showSidecarTooltip,onClick:Fn,children:y?L.hideSidecar:L.showSidecar}):za,ke==="both"&&(0,V.jsx)("button",{type:"button","aria-pressed":St==="dark",onClick:Lt,children:L.darkMode})]}),n&&(0,V.jsx)(qv,{publication:e,resources:n,page:pn,searchFocus:ne,onChoose:yi}),n&&Zn?.length?La(Zn.map(v=>({id:En(v)})),L.pins):null]}),n?(0,V.jsx)(s0,{sidecarId:`sidecar-${q}`,sidecarOpen:y,preferredDock:c.dock,onDock:v=>r.changeCanvas({dock:v}),canvas:(0,V.jsxs)("div",{className:"kplex-publication-canvas",children:[Ht,(0,V.jsx)("div",{className:"kplex-publication-controls kplex-publication-camera-actions",children:za}),(0,V.jsxs)("div",{className:"kplex-publication-status","aria-live":"polite",children:[r.addressProblem&&(0,V.jsx)("p",{children:r.addressProblem==="ambiguous"?L.ambiguousAddress:L.nodeUnavailable}),S.truncated&&(0,V.jsx)("p",{children:L.sceneLimited}),he&&(0,V.jsx)("p",{children:L.themeUnavailable}),X&&(0,V.jsx)("p",{children:L.addressCopied})]})]}),renderSidecar:(v,z)=>(0,V.jsx)(u0,{publication:e,resources:n,id:`sidecar-${q}`,contentScope:`${t}-document`,location:r.attention,colorMode:St,onClose:Oa,onNavigate:yi,dock:v,onSwitchDock:z})}):(0,V.jsxs)(V.Fragment,{children:[Ht,(0,V.jsxs)("section",{className:"kplex-publication-note","aria-labelledby":q,"aria-live":"polite",children:[(0,V.jsx)("h2",{id:q,children:N.node.name}),Dt&&(0,V.jsx)("p",{children:Dt})]})]}),n&&r.visits.length>1&&La(r.visits,L.history,!0),G&&(0,V.jsx)(Tv,{anchor:G.anchor,point:G.point,onDismiss:()=>H(null),choices:[{label:L.view,kind:"menuitemradio",checked:f==="compass",select:()=>r.changeCanvas({view:"compass"})},{label:L.mindMap,kind:"menuitemradio",checked:f==="mindmap",select:()=>r.changeCanvas({view:"mindmap"})},{label:L.crossLinks,kind:"menuitemcheckbox",checked:s,select:()=>r.changeCanvas({crosslinks:!s})},...f==="compass"?[{label:L.showSiblings,kind:"menuitemcheckbox",checked:p,select:$i}]:[],{label:L.linkOntology,kind:"menuitemcheckbox",checked:m,select:()=>r.changeCanvas({ontology:!m})},...n?[{label:L.sidecar,choices:[{label:L.sidecarHide,kind:"menuitemradio",checked:!y,select:()=>r.changeCanvas({sidecar:!1})},...lT.map(([v,z])=>({label:z,kind:"menuitemradio",checked:y&&c.dock===v,select:()=>r.changeCanvas({dock:v,sidecar:!0})}))]}]:[],...ke==="both"?oT.map(([v,z])=>({label:z,kind:"menuitemradio",checked:Ot===v,select:()=>r.changeCanvas({theme:v})})):[]]}),n&&P&&Ha&&(0,V.jsx)(xv,{anchor:P.anchor,address:Uo(pn(),Ha).href,shortAddress:Da&&Uo(pn(),Ha,Da).href,onDismiss:v=>{C(null),v&&P.anchor.isConnected&&P.anchor.focus({preventScroll:!0})},onCopied:()=>ie(!0)},P.id)]})}var X0=K(ye(),1),fh=new WeakSet,rT=0;function j0(e,t,n){return uT(e,t,n,!0)}function uT(e,t,n,i=!1,a){let o=e.ownerDocument.defaultView,l=new URL(n??"./publication.json",e.ownerDocument.baseURI),r=y=>{let b=dv(y);if(b.manifest&&(!o?.crypto.subtle||!a&&l.origin!==o.location.origin))throw new Error("Secure publication context unavailable");let w=b.manifest&&o?a?.(b.manifest)??o0(o,l,b.manifest):void 0;return{publication:b,resources:w}},u=r(t);if(fh.has(e))throw new Error("A publication is already mounted in this element");let c=`kplex-publication-${++rT}`,f=(0,q0.createRoot)(e,{identifierPrefix:c});fh.add(e);let p=0,s=!1,m=({publication:y,resources:b})=>{i&&(e.ownerDocument.title=y.title),f.render((0,X0.jsx)(Y0,{publication:y,markerPrefix:c,resources:b,browser:i&&b&&o?o:void 0},p++))};return m(u),{update(y){if(s)throw new Error("Publication mount has been disposed");m(r(y))},dispose(){if(!s){s=!0;try{f.unmount()}finally{fh.delete(e)}}}}}var dh=document.querySelector("[data-kplex-demo]");if(dh){{let e=dh.ownerDocument,t=e.createElement("style");t.textContent=`@scope (.kplex-publication) {
13
770
  /* Native theme fallbacks are consumed at each surface. Public K-Plex variables are deliberately
14
771
  not declared on view roots: body and view-local theme/snippet overrides must both inherit. */
15
772
 
@@ -4425,8 +5182,30 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
4425
5182
  }
4426
5183
  .kplex-publication-header h1, .kplex-publication-note h2 { margin: 0; font-size: 1.05rem; }
4427
5184
  .kplex-publication-header span { font-size: .85rem; color: var(--text-muted); }
5185
+ .kplex-publication-heading { display: flex; align-items: center; gap: .375rem; }
5186
+ .kplex-publication-header .kplex-publication-brand {
5187
+ display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; padding: 0;
5188
+ border-radius: .4rem;
5189
+ background: transparent; border: 0; color: var(--interactive-accent); font: inherit; cursor: pointer;
5190
+ }
5191
+ .kplex-publication-brand:hover { background: var(--background-primary); }
5192
+ .kplex-publication-license-dialog {
5193
+ box-sizing: border-box; width: min(52rem, calc(100% - 2rem)); max-height: 85dvh;
5194
+ padding: 1rem; border: 1px solid var(--background-modifier-border); border-radius: .65rem;
5195
+ background: var(--kplex-publication-panel); color: var(--text-normal); box-shadow: var(--shadow-s);
5196
+ }
5197
+ .kplex-publication-license-dialog::backdrop { background: #0008; }
5198
+ .kplex-publication-license-heading {
5199
+ display: flex; align-items: center; justify-content: space-between; gap: 1rem;
5200
+ }
5201
+ .kplex-publication-license-heading h2 { margin: 0; font-size: 1.25rem; }
5202
+ .kplex-publication-license-heading button {
5203
+ padding: .35rem .65rem; border: 1px solid var(--background-modifier-border); border-radius: .45rem;
5204
+ background: var(--background-primary); color: inherit; font: inherit; cursor: pointer;
5205
+ }
5206
+ .kplex-publication-license-dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; }
4428
5207
  .kplex-publication-controls { display: flex; flex-wrap: wrap; gap: .35rem; }
4429
- .kplex-publication-controls button {
5208
+ .kplex-publication-controls :is(button, select) {
4430
5209
  min-width: 2.75rem;
4431
5210
  min-height: 2.75rem;
4432
5211
  padding: .35rem .6rem;
@@ -4453,8 +5232,8 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
4453
5232
  .kplex-publication-viewport:active { cursor: grabbing; }
4454
5233
  .kplex-publication .kplex-camera { left: 50%; top: 50%; }
4455
5234
  .kplex-publication-exits { position: absolute; inset: 0; pointer-events: none; }
4456
- .kplex-publication .kplex-publication-sibling-scroll { touch-action: pan-y; scrollbar-color: var(--background-modifier-border) transparent; }
4457
- .kplex-publication .kplex-publication-sibling-scroll:focus-visible { outline-offset: -2px; }
5235
+ .kplex-publication .kplex-publication-strip-scroll { touch-action: pan-y; scrollbar-color: var(--background-modifier-border) transparent; }
5236
+ .kplex-publication .kplex-publication-strip-scroll:focus-visible { outline-offset: -2px; }
4458
5237
  .kplex-publication .kplex-thought {
4459
5238
  background: var(--kplex-publication-card);
4460
5239
  color: var(--text-normal);
@@ -4468,7 +5247,14 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
4468
5247
  border-color: transparent;
4469
5248
  border-radius: 18px;
4470
5249
  }
4471
- .kplex-publication .kplex-gate { pointer-events: none; }
5250
+ .kplex-publication .kplex-gate { pointer-events: auto; }
5251
+ .kplex-publication .kplex-edge.is-highlighted .kplex-edge-visible { stroke-width: 2.5px; }
5252
+ .kplex-publication-branch {
5253
+ position: absolute; z-index: 15; width: 21px; height: 21px; padding: 0;
5254
+ border: 1px solid var(--background-modifier-border); border-radius: 50%;
5255
+ background: var(--kplex-publication-panel); color: var(--text-normal); font: 14px/1 system-ui, sans-serif;
5256
+ cursor: pointer;
5257
+ }
4472
5258
  .kplex-publication-note { border-top: 1px solid var(--background-modifier-border); }
4473
5259
  .kplex-publication-note p { color: var(--text-muted); margin: .3rem 0 0; max-width: 70ch; }
4474
5260
  .kplex-publication-opening { margin: 1.2rem; font: 1rem/1.5 system-ui, sans-serif; }
@@ -4531,10 +5317,12 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
4531
5317
  .kplex-publication-trail ol { display: flex; align-items: center; gap: .3rem; min-width: 0; margin: 0; padding: .15rem 0; overflow-x: auto; list-style: none; }
4532
5318
  .kplex-publication-trail li { flex: none; min-width: 0; }
4533
5319
  .kplex-publication-trail a {
4534
- display: block; max-width: min(18rem, 55vw); padding: .25rem .55rem;
4535
- border: 1px solid var(--background-modifier-border); border-radius: .35rem; color: inherit;
4536
- text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
5320
+ display: flex; align-items: center; gap: .3rem; max-width: min(18rem, 55vw); padding: .25rem .55rem;
5321
+ border: 1px solid var(--kplex-publication-trail-border, var(--background-modifier-border)); border-radius: .75rem; color: inherit;
5322
+ text-decoration: none;
4537
5323
  }
5324
+ .kplex-publication-trail a > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; }
5325
+ .kplex-publication-trail a > svg { flex: none; }
4538
5326
  .kplex-publication-trail a:hover, .kplex-publication-trail a[aria-current] { border-color: var(--interactive-accent); }
4539
5327
  .kplex-publication-address-menu {
4540
5328
  z-index: 90; box-sizing: border-box; padding: .3rem; overflow: auto;
@@ -4549,12 +5337,28 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
4549
5337
  .kplex-publication-address-menu button + button { margin-block-start: .25rem; }
4550
5338
  .kplex-publication-address-menu button:disabled { opacity: .6; cursor: default; }
4551
5339
  .kplex-publication-address-menu p { margin: .25rem .4rem; color: var(--text-muted); font-size: .9em; }
5340
+ .kplex-publication-canvas-menu { position: fixed; }
5341
+ .kplex-publication-canvas-menu button { display: flex; align-items: center; gap: .45rem; }
5342
+ .kplex-publication-canvas-menu [aria-haspopup="menu"] { margin-block: .25rem; }
5343
+ .kplex-publication-canvas-menu [role="menu"] { margin: 0 0 .25rem .75rem; }
5344
+ .kplex-publication-submenu-arrow { margin-inline-start: auto; }
5345
+ .kplex-publication-menu-check { flex: 0 0 1em; color: var(--interactive-accent); }
5346
+ .kplex-publication-canvas-menu button:hover { background: var(--interactive-hover, var(--background-modifier-hover)); }
5347
+ .kplex-publication-node-icon { flex: 0 0 auto; margin-inline-end: 4px; opacity: .88; }
5348
+ .kplex-publication [data-publication-crosslink]:not(.is-highlighted, .is-dimmed) { opacity: .5; }
4552
5349
  .kplex-publication-workspace {
4553
5350
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0;
4554
5351
  }
4555
5352
  .kplex-publication-workspace[data-sidecar-dock="right"] {
4556
5353
  grid-template-columns: minmax(0, 1fr) var(--kplex-publication-divider-size) var(--kplex-publication-sidecar-size);
4557
5354
  }
5355
+ .kplex-publication-workspace[data-sidecar-dock="left"] {
5356
+ grid-template-columns: var(--kplex-publication-sidecar-size) var(--kplex-publication-divider-size) minmax(0, 1fr);
5357
+ }
5358
+ .kplex-publication-workspace[data-sidecar-dock="left"] > * { grid-row: 1; }
5359
+ .kplex-publication-workspace[data-sidecar-dock="left"] > .kplex-publication-note { grid-column: 1; }
5360
+ .kplex-publication-workspace[data-sidecar-dock="left"] > .kplex-publication-divider { grid-column: 2; }
5361
+ .kplex-publication-workspace[data-sidecar-dock="left"] > .kplex-publication-canvas { grid-column: 3; }
4558
5362
  .kplex-publication-workspace[data-sidecar-dock="bottom"] {
4559
5363
  grid-template-rows: minmax(0, 1fr) var(--kplex-publication-divider-size) var(--kplex-publication-sidecar-size);
4560
5364
  }
@@ -4570,8 +5374,8 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
4570
5374
  .kplex-publication-divider[aria-orientation="horizontal"] { cursor: row-resize; }
4571
5375
  .kplex-publication-divider[aria-orientation="horizontal"]::before { width: 2rem; height: 2px; }
4572
5376
  .kplex-publication-canvas { position: relative; display: grid; min-width: 0; min-height: 0; }
4573
- .kplex-publication-camera-actions { position: absolute; bottom: .75rem; left: .75rem; }
4574
- .kplex-publication-status { position: absolute; top: .6rem; left: .75rem; right: .75rem; pointer-events: none; }
5377
+ .kplex-publication-camera-actions { position: absolute; z-index: 20; bottom: .75rem; left: .75rem; }
5378
+ .kplex-publication-status { position: absolute; top: .6rem; left: .75rem; right: 8rem; pointer-events: none; }
4575
5379
  .kplex-publication-status p { display: table; margin: 0 0 .3rem; padding: .2rem .45rem; border-radius: .3rem; background: var(--kplex-publication-panel); }
4576
5380
  .kplex-publication-production .kplex-publication-note {
4577
5381
  min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1rem; border: 0;
@@ -4582,6 +5386,15 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
4582
5386
  .kplex-publication-sidecar-heading h2 { flex: 1 1 9rem; min-width: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
4583
5387
  .kplex-publication-sidecar-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
4584
5388
  .kplex-publication-sidecar-actions button:last-child { min-width: 2.75rem; }
5389
+ .kplex-publication-web-note { display: flex; flex-direction: column; }
5390
+ .kplex-publication-web-source { margin-block-end: .6rem; }
5391
+ .kplex-publication-web-source a { color: var(--interactive-accent); }
5392
+ .kplex-publication-web-frame { flex: 1; width: 100%; min-height: 12rem; border: 1px solid var(--background-modifier-border); }
5393
+ .kplex-publication-github-preview { overflow-wrap: anywhere; }
5394
+ .kplex-publication-github-preview h3 { margin: .55rem 0; }
5395
+ .kplex-publication-github-preview .kplex-publication-github-description { white-space: pre-wrap; color: var(--text-normal); }
5396
+ .kplex-publication-github-preview li + li { margin-block-start: .45rem; }
5397
+ .kplex-publication-github-preview a { color: var(--interactive-accent); }
4585
5398
  .kplex-publication-note-content { min-width: 0; overflow-wrap: anywhere; }
4586
5399
  .kplex-publication-note-content :is(img, svg, audio, video) { max-width: 100%; }
4587
5400
  .kplex-publication-note-content :is(img, svg, video) { height: auto; }
@@ -4644,8 +5457,8 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
4644
5457
  --background-secondary: var(--kplex-published-author-background-secondary, var(--kplex-publication-panel));
4645
5458
  --background-modifier-hover: var(--kplex-published-author-background-modifier-hover, light-dark(#ebebeb, #353535));
4646
5459
  --text-faint: var(--kplex-published-author-text-faint, var(--text-muted));
4647
- --interactive-normal: var(--kplex-published-author-interactive-normal, var(--background-primary));
4648
- --interactive-hover: var(--kplex-published-author-interactive-hover, var(--background-modifier-hover));
5460
+ --interactive-normal: var(--kplex-published-author-interactive-normal, light-dark(#ffffff, #333333));
5461
+ --interactive-hover: var(--kplex-published-author-interactive-hover, light-dark(#fafafa, #3f3f3f));
4649
5462
  --text-on-accent: var(--kplex-published-author-text-on-accent, #ffffff);
4650
5463
  --kplex-publication-card: var(--background-primary);
4651
5464
  --kplex-publication-center: var(--interactive-accent);
@@ -4694,11 +5507,11 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
4694
5507
  border-radius: var(--kplex-published-author-input-radius, .35rem);
4695
5508
  background: var(--background-primary);
4696
5509
  }
4697
- .kplex-publication-production :is(.kplex-publication-tools, .kplex-publication-note, .kplex-publication-controls) button {
5510
+ .kplex-publication-production :is(.kplex-publication-tools, .kplex-publication-note, .kplex-publication-controls) :is(button, select) {
4698
5511
  border-radius: var(--kplex-published-author-button-radius, .35rem);
4699
5512
  background: var(--interactive-normal);
4700
5513
  }
4701
- .kplex-publication-production :is(.kplex-publication-tools, .kplex-publication-note, .kplex-publication-controls) button:hover:not(:disabled) {
5514
+ .kplex-publication-production :is(.kplex-publication-tools, .kplex-publication-note, .kplex-publication-controls) :is(button, select):hover:not(:disabled) {
4702
5515
  background: var(--interactive-hover);
4703
5516
  }
4704
5517
  .kplex-publication-production .kplex-publication-tools button[aria-pressed="true"] {
@@ -4814,7 +5627,7 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
4814
5627
  .kplex-publication-production .kplex-publication-note-content [data-callout="example"] {
4815
5628
  --kplex-reader-callout: var(--kplex-published-author-color-purple, #7852ee);
4816
5629
  }
4817
- `,t.head.append(e)}Mx(sd)}function Mx(t){let e=t.ownerDocument.defaultView;if(!e)return;let n=new URL("./publication.json",t.ownerDocument.baseURI),l=new e.AbortController,a,i=async()=>{let u=t.ownerDocument.createElement("p");u.className="kplex-publication-opening",u.setAttribute("role","status"),u.textContent=O.loading,t.replaceChildren(u);try{let o=await bb(e,n,l.signal);l.signal.throwIfAborted(),a=Eb(t,o,n)}catch{if(l.signal.aborted)return;u.setAttribute("role","alert"),u.textContent=e.crypto.subtle?O.loadFailed:O.insecure;let o=t.ownerDocument.createElement("button");o.type="button",o.textContent=O.retry,o.addEventListener("click",()=>{i()},{once:!0}),u.append(" ",o),o.focus()}};e.addEventListener("pagehide",u=>{u.persisted||(l.abort(),a?.dispose())}),i()}
5630
+ `,e.head.append(t)}cT(dh)}function cT(e){let t=e.ownerDocument.defaultView;if(!t)return;let n=new URL("./publication.json",e.ownerDocument.baseURI),i=new t.AbortController,a,o=async()=>{let l=e.ownerDocument.createElement("p");l.className="kplex-publication-opening",l.setAttribute("role","status"),l.textContent=L.loading,e.replaceChildren(l);try{let r=await a0(t,n,i.signal);i.signal.throwIfAborted(),a=j0(e,r,n)}catch{if(i.signal.aborted)return;l.setAttribute("role","alert"),l.textContent=t.crypto.subtle?L.loadFailed:L.insecure;let r=e.ownerDocument.createElement("button");r.type="button",r.textContent=L.retry,r.addEventListener("click",()=>{o()},{once:!0}),l.append(" ",r),r.focus()}};t.addEventListener("pagehide",l=>{l.persisted||(i.abort(),a?.dispose())}),o()}
4818
5631
  /*! Bundled license information:
4819
5632
 
4820
5633
  scheduler/cjs/scheduler.production.js: