@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/offline.js CHANGED
@@ -1,11 +1,768 @@
1
- (()=>{var Cb=Object.create;var Rd=Object.defineProperty;var Ob=Object.getOwnPropertyDescriptor;var Db=Object.getOwnPropertyNames;var _b=Object.getPrototypeOf,Hb=Object.prototype.hasOwnProperty;var mn=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Lb=(t,e,n,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Db(e))!Hb.call(t,i)&&i!==n&&Rd(t,i,{get:()=>e[i],enumerable:!(l=Ob(e,i))||l.enumerable});return t};var K=(t,e,n)=>(n=t!=null?Cb(_b(t)):{},Lb(e||!t||!t.__esModule?Rd(n,"default",{value:t,enumerable:!0}):n,t));var Xd=mn(yt=>{"use strict";function Kr(t,e){var n=t.length;t.push(e);t:for(;0<n;){var l=n-1>>>1,i=t[l];if(0<Lu(i,e))t[l]=e,t[n]=i,n=l;else break t}}function hn(t){return t.length===0?null:t[0]}function Bu(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,i=t.length,a=i>>>1;l<a;){var u=2*(l+1)-1,o=t[u],r=u+1,c=t[r];if(0>Lu(o,n))r<i&&0>Lu(c,o)?(t[l]=c,t[r]=n,l=r):(t[l]=o,t[u]=n,l=u);else if(r<i&&0>Lu(c,n))t[l]=c,t[r]=n,l=r;else break t}}return e}function Lu(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"?(_d=performance,yt.unstable_now=function(){return _d.now()}):(kr=Date,Hd=kr.now(),yt.unstable_now=function(){return kr.now()-Hd});var _d,kr,Hd,Un=[],el=[],Jb=1,Xe=null,te=3,Zr=!1,ba=!1,va=!1,Jr=!1,Bd=typeof setTimeout=="function"?setTimeout:null,Vd=typeof clearTimeout=="function"?clearTimeout:null,Ld=typeof setImmediate<"u"?setImmediate:null;function Uu(t){for(var e=hn(el);e!==null;){if(e.callback===null)Bu(el);else if(e.startTime<=t)Bu(el),e.sortIndex=e.expirationTime,Kr(Un,e);else break;e=hn(el)}}function Fr(t){if(va=!1,Uu(t),!ba)if(hn(Un)!==null)ba=!0,gi||(gi=!0,hi());else{var e=hn(el);e!==null&&Ir(Fr,e.startTime-t)}}var gi=!1,Sa=-1,Gd=5,Yd=-1;function qd(){return Jr?!0:!(yt.unstable_now()-Yd<Gd)}function Qr(){if(Jr=!1,gi){var t=yt.unstable_now();Yd=t;var e=!0;try{t:{ba=!1,va&&(va=!1,Vd(Sa),Sa=-1),Zr=!0;var n=te;try{e:{for(Uu(t),Xe=hn(Un);Xe!==null&&!(Xe.expirationTime>t&&qd());){var l=Xe.callback;if(typeof l=="function"){Xe.callback=null,te=Xe.priorityLevel;var i=l(Xe.expirationTime<=t);if(t=yt.unstable_now(),typeof i=="function"){Xe.callback=i,Uu(t),e=!0;break e}Xe===hn(Un)&&Bu(Un),Uu(t)}else Bu(Un);Xe=hn(Un)}if(Xe!==null)e=!0;else{var a=hn(el);a!==null&&Ir(Fr,a.startTime-t),e=!1}}break t}finally{Xe=null,te=n,Zr=!1}e=void 0}}finally{e?hi():gi=!1}}}var hi;typeof Ld=="function"?hi=function(){Ld(Qr)}:typeof MessageChannel<"u"?(Pr=new MessageChannel,Ud=Pr.port2,Pr.port1.onmessage=Qr,hi=function(){Ud.postMessage(null)}):hi=function(){Bd(Qr,0)};var Pr,Ud;function Ir(t,e){Sa=Bd(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"):Gd=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(){Jr=!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 i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,t={id:Jb++,callback:e,priorityLevel:t,startTime:n,expirationTime:i,sortIndex:-1},n>l?(t.sortIndex=n,Kr(el,t),hn(Un)===null&&t===hn(el)&&(va?(Vd(Sa),Sa=-1):va=!0,Ir(Fr,n-l))):(t.sortIndex=i,Kr(Un,t),ba||Zr||(ba=!0,gi||(gi=!0,hi()))),t};yt.unstable_shouldYield=qd;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 kd=mn((Hx,jd)=>{"use strict";jd.exports=Xd()});var lm=mn(U=>{"use strict";var tc=Symbol.for("react.transitional.element"),Fb=Symbol.for("react.portal"),Ib=Symbol.for("react.fragment"),$b=Symbol.for("react.strict_mode"),Wb=Symbol.for("react.profiler"),tv=Symbol.for("react.consumer"),ev=Symbol.for("react.context"),nv=Symbol.for("react.forward_ref"),lv=Symbol.for("react.suspense"),iv=Symbol.for("react.memo"),Jd=Symbol.for("react.lazy"),av=Symbol.for("react.activity"),uv=Symbol.for("react.view_transition"),Qd=Symbol.iterator;function ov(t){return t===null||typeof t!="object"?null:(t=Qd&&t[Qd]||t["@@iterator"],typeof t=="function"?t:null)}var Fd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Id=Object.assign,$d={};function yi(t,e,n){this.props=t,this.context=e,this.refs=$d,this.updater=n||Fd}yi.prototype.isReactComponent={};yi.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")};yi.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Wd(){}Wd.prototype=yi.prototype;function ec(t,e,n){this.props=t,this.context=e,this.refs=$d,this.updater=n||Fd}var nc=ec.prototype=new Wd;nc.constructor=ec;Id(nc,yi.prototype);nc.isPureReactComponent=!0;var Pd=Array.isArray;function Wr(){}var ft={H:null,A:null,T:null,S:null},tm=Object.prototype.hasOwnProperty;function lc(t,e,n){var l=n.ref;return{$$typeof:tc,type:t,key:e,ref:l!==void 0?l:null,props:n}}function rv(t,e){return lc(t.type,e,t.props)}function ic(t){return typeof t=="object"&&t!==null&&t.$$typeof===tc}function cv(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Kd=/\/+/g;function $r(t,e){return typeof t=="object"&&t!==null&&t.key!=null?cv(""+t.key):e.toString(36)}function sv(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Wr,Wr):(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 pi(t,e,n,l,i){var a=typeof t;(a==="undefined"||a==="boolean")&&(t=null);var u=!1;if(t===null)u=!0;else switch(a){case"bigint":case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case tc:case Fb:u=!0;break;case Jd:return u=t._init,pi(u(t._payload),e,n,l,i)}}if(u)return i=i(t),u=l===""?"."+$r(t,0):l,Pd(i)?(n="",u!=null&&(n=u.replace(Kd,"$&/")+"/"),pi(i,e,n,"",function(c){return c})):i!=null&&(ic(i)&&(i=rv(i,n+(i.key==null||t&&t.key===i.key?"":(""+i.key).replace(Kd,"$&/")+"/")+u)),e.push(i)),1;u=0;var o=l===""?".":l+":";if(Pd(t))for(var r=0;r<t.length;r++)l=t[r],a=o+$r(l,r),u+=pi(l,e,n,a,i);else if(r=ov(t),typeof r=="function")for(t=r.call(t),r=0;!(l=t.next()).done;)l=l.value,a=o+$r(l,r++),u+=pi(l,e,n,a,i);else if(a==="object"){if(typeof t.then=="function")return pi(sv(t),e,n,l,i);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 Vu(t,e,n){if(t==null)return t;var l=[],i=0;return pi(t,l,"","",function(a){return e.call(n,a,i++)}),l}function fv(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 Zd=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 em(t){var e=ft.T,n={};n.types=e!==null?e.types:null,ft.T=n;try{var l=t(),i=ft.S;i!==null&&i(n,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(Wr,Zd)}catch(a){Zd(a)}finally{e!==null&&n.types!==null&&(e.types=n.types),ft.T=e}}function nm(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 em(nm.bind(null,t))}var dv={map:Vu,forEach:function(t,e,n){Vu(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Vu(t,function(){e++}),e},toArray:function(t){return Vu(t,function(e){return e})||[]},only:function(t){if(!ic(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};U.Activity=av;U.Children=dv;U.Component=yi;U.Fragment=Ib;U.Profiler=Wb;U.PureComponent=ec;U.StrictMode=$b;U.Suspense=lv;U.ViewTransition=uv;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=nm;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=Id({},t.props),i=t.key;if(e!=null)for(a in e.key!==void 0&&(i=""+e.key),e)!tm.call(e,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&e.ref===void 0||(l[a]=e[a]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var u=Array(a),o=0;o<a;o++)u[o]=arguments[o+2];l.children=u}return lc(t.type,i,l)};U.createContext=function(t){return t={$$typeof:ev,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:tv,_context:t},t};U.createElement=function(t,e,n){var l,i={},a=null;if(e!=null)for(l in e.key!==void 0&&(a=""+e.key),e)tm.call(e,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(i[l]=e[l]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var o=Array(u),r=0;r<u;r++)o[r]=arguments[r+2];i.children=o}if(t&&t.defaultProps)for(l in u=t.defaultProps,u)i[l]===void 0&&(i[l]=u[l]);return lc(t,a,i)};U.createRef=function(){return{current:null}};U.forwardRef=function(t){return{$$typeof:nv,render:t}};U.isValidElement=ic;U.lazy=function(t){return{$$typeof:Jd,_payload:{_status:-1,_result:t},_init:fv}};U.memo=function(t,e){return{$$typeof:iv,type:t,compare:e===void 0?null:e}};U.startTransition=em;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 Ae=mn((Ux,im)=>{"use strict";im.exports=lm()});var om=mn(ee=>{"use strict";var mv=Ae();function um(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 nl(){}var oe={d:{f:nl,r:function(){throw Error(um(522))},D:nl,C:nl,L:nl,m:nl,X:nl,S:nl,M:nl},p:0,findDOMNode:null},hv=Symbol.for("react.portal"),gv=Symbol.for("react.recoverable"),am=Symbol.for("react.optimistic_key");function pv(t,e,n){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:hv,key:l==null?null:l===am?am:""+l,children:t,containerInfo:e,implementation:n}}var Ea=mv.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Gu(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:gv,_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(um(299));return pv(t,e,null,n)};ee.flushSync=function(t){var e=Ea.T,n=oe.p;try{if(Ea.T=null,oe.p=2,t)return t()}finally{Ea.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=Gu(n,e.crossOrigin),i=typeof e.integrity=="string"?e.integrity:void 0,a=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:i,fetchPriority:a}):n==="script"&&oe.d.X(t,{crossOrigin:l,integrity:i,fetchPriority:a,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=Gu(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=Gu(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=Gu(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 Ea.H.useFormState(t,e,n)};ee.useFormStatus=function(){return Ea.H.useHostTransitionStatus()};ee.version="19.3.0"});var Yu=mn((Vx,cm)=>{"use strict";function rm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rm)}catch(t){console.error(t)}}rm(),cm.exports=om()});var Jy=mn(xr=>{"use strict";var Ht=kd(),Zh=Ae(),yv=Yu();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 Jh(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ru(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 Fh(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 Ih(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 sm(t){if(ru(t)!==t)throw Error(N(188))}function bv(t){var e=t.alternate;if(!e){if(e=ru(t),e===null)throw Error(N(188));return e!==t?null:t}for(var n=t,l=e;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(l=i.return,l!==null){n=l;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return sm(i),t;if(a===l)return sm(i),e;a=a.sibling}throw Error(N(188))}if(n.return!==l.return)n=i,l=a;else{for(var u=!1,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){for(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)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 $h(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=$h(t),e!==null)return e;t=t.sibling}return null}function Me(t,e,n,l,i,a){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&n(t,l,i,a)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&Me(t.child,e,n,l,i,a))return!0;t=t.sibling}return!1}function ii(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 fm(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 Wh(t){var e=[null,null],n=ii(t);return n===null||tg(e,t,n.child,{foundSelf:!1}),e}function tg(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)&&tg(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 Mi=null,Uc=null;function vv(t,e,n){return t===n?!0:t===e?(Mi=t,!0):!1}function Sv(t,e,n){return t===n?(Uc=t,!1):t===e?(Uc!==null&&(Mi=t),!0):!1}function dm(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 Bc(t,e,n){for(var l=0,i=t;i;i=n(i))l++;i=0;for(var a=e;a;a=n(a))i++;for(;0<l-i;)t=n(t),l--;for(;0<i-l;)e=n(e),i--;for(;l--;){if(t===e||e!==null&&t===e.alternate)return t;t=n(t),e=n(e)}return null}var ct=Object.assign,Ev=Symbol.for("react.element"),qu=Symbol.for("react.transitional.element"),Ra=Symbol.for("react.portal"),Ni=Symbol.for("react.fragment"),eg=Symbol.for("react.strict_mode"),Vc=Symbol.for("react.profiler"),ng=Symbol.for("react.consumer"),Sn=Symbol.for("react.context"),Ks=Symbol.for("react.forward_ref"),Gc=Symbol.for("react.suspense"),Yc=Symbol.for("react.suspense_list"),Zs=Symbol.for("react.memo"),ul=Symbol.for("react.lazy");Symbol.for("react.scope");var qc=Symbol.for("react.activity"),xv=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var Tv=Symbol.for("react.memo_cache_sentinel"),Xc=Symbol.for("react.view_transition"),Mv=Symbol.for("react.recoverable"),mm=Symbol.iterator;function xa(t){return t===null||typeof t!="object"?null:(t=mm&&t[mm]||t["@@iterator"],typeof t=="function"?t:null)}var Nv=Symbol.for("react.client.reference");function jc(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Nv?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ni:return"Fragment";case Vc:return"Profiler";case eg:return"StrictMode";case Gc:return"Suspense";case Yc:return"SuspenseList";case qc:return"Activity";case Xc:return"ViewTransition"}if(typeof t=="object")switch(t.$$typeof){case Ra:return"Portal";case Sn:return t.displayName||"Context";case ng:return(t._context.displayName||"Context")+".Consumer";case Ks:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Zs:return e=t.displayName||null,e!==null?e:jc(t.type)||"Memo";case ul:e=t._payload,t=t._init;try{return jc(t(e))}catch{}}return null}var za=Array.isArray,H=Zh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,et=yv.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ql={pending:!1,data:null,method:null,action:null},kc=[],wi=-1;function An(t){return{current:t}}function Pt(t){0>wi||(t.current=kc[wi],kc[wi]=null,wi--)}function ht(t,e){wi++,kc[wi]=t.current,t.current=e}var Mn=An(null),Pa=An(null),gl=An(null),Ro=An(null);function zo(t,e){switch(ht(gl,e),ht(Pa,t),ht(Mn,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Ah(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Ah(e),t=My(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Pt(Mn),ht(Mn,t)}function Pi(){Pt(Mn),Pt(Pa),Pt(gl)}function Qc(t){var e=t.memoizedState;e!==null&&(na._currentValue=e.memoizedState,ht(Ro,t)),e=Mn.current;var n=My(e,t.type);e!==n&&(ht(Pa,t),ht(Mn,n))}function Co(t){Pa.current===t&&(Pt(Mn),Pt(Pa)),Ro.current===t&&(Pt(Ro),na._currentValue=Ql)}var ac,hm;function il(t){if(ac===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);ac=e&&e[1]||"",hm=-1<n.stack.indexOf(`
1
+ (()=>{var F0=Object.create;var bh=Object.defineProperty;var J0=Object.getOwnPropertyDescriptor;var W0=Object.getOwnPropertyNames;var $0=Object.getPrototypeOf,e1=Object.prototype.hasOwnProperty;var t1=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ln=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var n1=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of W0(t))!e1.call(e,a)&&a!==n&&bh(e,a,{get:()=>t[a],enumerable:!(i=J0(t,a))||i.enumerable});return e};var K=(e,t,n)=>(n=e!=null?F0($0(e)):{},n1(t||!e||!e.__esModule?bh(n,"default",{value:e,enumerable:!0}):n,e));var _,T=t1(()=>{_=[["K-Plex",` GNU AFFERO GENERAL PUBLIC LICENSE
2
+ Version 3, 19 November 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU Affero General Public License is a free, copyleft license for
11
+ software and other kinds of works, specifically designed to ensure
12
+ cooperation with the community in the case of network server software.
13
+
14
+ The licenses for most software and other practical works are designed
15
+ to take away your freedom to share and change the works. By contrast,
16
+ our General Public Licenses are intended to guarantee your freedom to
17
+ share and change all versions of a program--to make sure it remains free
18
+ software for all its users.
19
+
20
+ When we speak of free software, we are referring to freedom, not
21
+ price. Our General Public Licenses are designed to make sure that you
22
+ have the freedom to distribute copies of free software (and charge for
23
+ them if you wish), that you receive source code or can get it if you
24
+ want it, that you can change the software or use pieces of it in new
25
+ free programs, and that you know you can do these things.
26
+
27
+ Developers that use our General Public Licenses protect your rights
28
+ with two steps: (1) assert copyright on the software, and (2) offer
29
+ you this License which gives you legal permission to copy, distribute
30
+ and/or modify the software.
31
+
32
+ A secondary benefit of defending all users' freedom is that
33
+ improvements made in alternate versions of the program, if they
34
+ receive widespread use, become available for other developers to
35
+ incorporate. Many developers of free software are heartened and
36
+ encouraged by the resulting cooperation. However, in the case of
37
+ software used on network servers, this result may fail to come about.
38
+ The GNU General Public License permits making a modified version and
39
+ letting the public access it on a server without ever releasing its
40
+ source code to the public.
41
+
42
+ The GNU Affero General Public License is designed specifically to
43
+ ensure that, in such cases, the modified source code becomes available
44
+ to the community. It requires the operator of a network server to
45
+ provide the source code of the modified version running there to the
46
+ users of that server. Therefore, public use of a modified version, on
47
+ a publicly accessible server, gives the public access to the source
48
+ code of the modified version.
49
+
50
+ An older license, called the Affero General Public License and
51
+ published by Affero, was designed to accomplish similar goals. This is
52
+ a different license, not a version of the Affero GPL, but Affero has
53
+ released a new version of the Affero GPL which permits relicensing under
54
+ this license.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ TERMS AND CONDITIONS
60
+
61
+ 0. Definitions.
62
+
63
+ "This License" refers to version 3 of the GNU Affero General Public License.
64
+
65
+ "Copyright" also means copyright-like laws that apply to other kinds of
66
+ works, such as semiconductor masks.
67
+
68
+ "The Program" refers to any copyrightable work licensed under this
69
+ License. Each licensee is addressed as "you". "Licensees" and
70
+ "recipients" may be individuals or organizations.
71
+
72
+ To "modify" a work means to copy from or adapt all or part of the work
73
+ in a fashion requiring copyright permission, other than the making of an
74
+ exact copy. The resulting work is called a "modified version" of the
75
+ earlier work or a work "based on" the earlier work.
76
+
77
+ A "covered work" means either the unmodified Program or a work based
78
+ on the Program.
79
+
80
+ To "propagate" a work means to do anything with it that, without
81
+ permission, would make you directly or secondarily liable for
82
+ infringement under applicable copyright law, except executing it on a
83
+ computer or modifying a private copy. Propagation includes copying,
84
+ distribution (with or without modification), making available to the
85
+ public, and in some countries other activities as well.
86
+
87
+ To "convey" a work means any kind of propagation that enables other
88
+ parties to make or receive copies. Mere interaction with a user through
89
+ a computer network, with no transfer of a copy, is not conveying.
90
+
91
+ An interactive user interface displays "Appropriate Legal Notices"
92
+ to the extent that it includes a convenient and prominently visible
93
+ feature that (1) displays an appropriate copyright notice, and (2)
94
+ tells the user that there is no warranty for the work (except to the
95
+ extent that warranties are provided), that licensees may convey the
96
+ work under this License, and how to view a copy of this License. If
97
+ the interface presents a list of user commands or options, such as a
98
+ menu, a prominent item in the list meets this criterion.
99
+
100
+ 1. Source Code.
101
+
102
+ The "source code" for a work means the preferred form of the work
103
+ for making modifications to it. "Object code" means any non-source
104
+ form of a work.
105
+
106
+ A "Standard Interface" means an interface that either is an official
107
+ standard defined by a recognized standards body, or, in the case of
108
+ interfaces specified for a particular programming language, one that
109
+ is widely used among developers working in that language.
110
+
111
+ The "System Libraries" of an executable work include anything, other
112
+ than the work as a whole, that (a) is included in the normal form of
113
+ packaging a Major Component, but which is not part of that Major
114
+ Component, and (b) serves only to enable use of the work with that
115
+ Major Component, or to implement a Standard Interface for which an
116
+ implementation is available to the public in source code form. A
117
+ "Major Component", in this context, means a major essential component
118
+ (kernel, window system, and so on) of the specific operating system
119
+ (if any) on which the executable work runs, or a compiler used to
120
+ produce the work, or an object code interpreter used to run it.
121
+
122
+ The "Corresponding Source" for a work in object code form means all
123
+ the source code needed to generate, install, and (for an executable
124
+ work) run the object code and to modify the work, including scripts to
125
+ control those activities. However, it does not include the work's
126
+ System Libraries, or general-purpose tools or generally available free
127
+ programs which are used unmodified in performing those activities but
128
+ which are not part of the work. For example, Corresponding Source
129
+ includes interface definition files associated with source files for
130
+ the work, and the source code for shared libraries and dynamically
131
+ linked subprograms that the work is specifically designed to require,
132
+ such as by intimate data communication or control flow between those
133
+ subprograms and other parts of the work.
134
+
135
+ The Corresponding Source need not include anything that users
136
+ can regenerate automatically from other parts of the Corresponding
137
+ Source.
138
+
139
+ The Corresponding Source for a work in source code form is that
140
+ same work.
141
+
142
+ 2. Basic Permissions.
143
+
144
+ All rights granted under this License are granted for the term of
145
+ copyright on the Program, and are irrevocable provided the stated
146
+ conditions are met. This License explicitly affirms your unlimited
147
+ permission to run the unmodified Program. The output from running a
148
+ covered work is covered by this License only if the output, given its
149
+ content, constitutes a covered work. This License acknowledges your
150
+ rights of fair use or other equivalent, as provided by copyright law.
151
+
152
+ You may make, run and propagate covered works that you do not
153
+ convey, without conditions so long as your license otherwise remains
154
+ in force. You may convey covered works to others for the sole purpose
155
+ of having them make modifications exclusively for you, or provide you
156
+ with facilities for running those works, provided that you comply with
157
+ the terms of this License in conveying all material for which you do
158
+ not control copyright. Those thus making or running the covered works
159
+ for you must do so exclusively on your behalf, under your direction
160
+ and control, on terms that prohibit them from making any copies of
161
+ your copyrighted material outside their relationship with you.
162
+
163
+ Conveying under any other circumstances is permitted solely under
164
+ the conditions stated below. Sublicensing is not allowed; section 10
165
+ makes it unnecessary.
166
+
167
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168
+
169
+ No covered work shall be deemed part of an effective technological
170
+ measure under any applicable law fulfilling obligations under article
171
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172
+ similar laws prohibiting or restricting circumvention of such
173
+ measures.
174
+
175
+ When you convey a covered work, you waive any legal power to forbid
176
+ circumvention of technological measures to the extent such circumvention
177
+ is effected by exercising rights under this License with respect to
178
+ the covered work, and you disclaim any intention to limit operation or
179
+ modification of the work as a means of enforcing, against the work's
180
+ users, your or third parties' legal rights to forbid circumvention of
181
+ technological measures.
182
+
183
+ 4. Conveying Verbatim Copies.
184
+
185
+ You may convey verbatim copies of the Program's source code as you
186
+ receive it, in any medium, provided that you conspicuously and
187
+ appropriately publish on each copy an appropriate copyright notice;
188
+ keep intact all notices stating that this License and any
189
+ non-permissive terms added in accord with section 7 apply to the code;
190
+ keep intact all notices of the absence of any warranty; and give all
191
+ recipients a copy of this License along with the Program.
192
+
193
+ You may charge any price or no price for each copy that you convey,
194
+ and you may offer support or warranty protection for a fee.
195
+
196
+ 5. Conveying Modified Source Versions.
197
+
198
+ You may convey a work based on the Program, or the modifications to
199
+ produce it from the Program, in the form of source code under the
200
+ terms of section 4, provided that you also meet all of these conditions:
201
+
202
+ a) The work must carry prominent notices stating that you modified
203
+ it, and giving a relevant date.
204
+
205
+ b) The work must carry prominent notices stating that it is
206
+ released under this License and any conditions added under section
207
+ 7. This requirement modifies the requirement in section 4 to
208
+ "keep intact all notices".
209
+
210
+ c) You must license the entire work, as a whole, under this
211
+ License to anyone who comes into possession of a copy. This
212
+ License will therefore apply, along with any applicable section 7
213
+ additional terms, to the whole of the work, and all its parts,
214
+ regardless of how they are packaged. This License gives no
215
+ permission to license the work in any other way, but it does not
216
+ invalidate such permission if you have separately received it.
217
+
218
+ d) If the work has interactive user interfaces, each must display
219
+ Appropriate Legal Notices; however, if the Program has interactive
220
+ interfaces that do not display Appropriate Legal Notices, your
221
+ work need not make them do so.
222
+
223
+ A compilation of a covered work with other separate and independent
224
+ works, which are not by their nature extensions of the covered work,
225
+ and which are not combined with it such as to form a larger program,
226
+ in or on a volume of a storage or distribution medium, is called an
227
+ "aggregate" if the compilation and its resulting copyright are not
228
+ used to limit the access or legal rights of the compilation's users
229
+ beyond what the individual works permit. Inclusion of a covered work
230
+ in an aggregate does not cause this License to apply to the other
231
+ parts of the aggregate.
232
+
233
+ 6. Conveying Non-Source Forms.
234
+
235
+ You may convey a covered work in object code form under the terms
236
+ of sections 4 and 5, provided that you also convey the
237
+ machine-readable Corresponding Source under the terms of this License,
238
+ in one of these ways:
239
+
240
+ a) Convey the object code in, or embodied in, a physical product
241
+ (including a physical distribution medium), accompanied by the
242
+ Corresponding Source fixed on a durable physical medium
243
+ customarily used for software interchange.
244
+
245
+ b) Convey the object code in, or embodied in, a physical product
246
+ (including a physical distribution medium), accompanied by a
247
+ written offer, valid for at least three years and valid for as
248
+ long as you offer spare parts or customer support for that product
249
+ model, to give anyone who possesses the object code either (1) a
250
+ copy of the Corresponding Source for all the software in the
251
+ product that is covered by this License, on a durable physical
252
+ medium customarily used for software interchange, for a price no
253
+ more than your reasonable cost of physically performing this
254
+ conveying of source, or (2) access to copy the
255
+ Corresponding Source from a network server at no charge.
256
+
257
+ c) Convey individual copies of the object code with a copy of the
258
+ written offer to provide the Corresponding Source. This
259
+ alternative is allowed only occasionally and noncommercially, and
260
+ only if you received the object code with such an offer, in accord
261
+ with subsection 6b.
262
+
263
+ d) Convey the object code by offering access from a designated
264
+ place (gratis or for a charge), and offer equivalent access to the
265
+ Corresponding Source in the same way through the same place at no
266
+ further charge. You need not require recipients to copy the
267
+ Corresponding Source along with the object code. If the place to
268
+ copy the object code is a network server, the Corresponding Source
269
+ may be on a different server (operated by you or a third party)
270
+ that supports equivalent copying facilities, provided you maintain
271
+ clear directions next to the object code saying where to find the
272
+ Corresponding Source. Regardless of what server hosts the
273
+ Corresponding Source, you remain obligated to ensure that it is
274
+ available for as long as needed to satisfy these requirements.
275
+
276
+ e) Convey the object code using peer-to-peer transmission, provided
277
+ you inform other peers where the object code and Corresponding
278
+ Source of the work are being offered to the general public at no
279
+ charge under subsection 6d.
280
+
281
+ A separable portion of the object code, whose source code is excluded
282
+ from the Corresponding Source as a System Library, need not be
283
+ included in conveying the object code work.
284
+
285
+ A "User Product" is either (1) a "consumer product", which means any
286
+ tangible personal property which is normally used for personal, family,
287
+ or household purposes, or (2) anything designed or sold for incorporation
288
+ into a dwelling. In determining whether a product is a consumer product,
289
+ doubtful cases shall be resolved in favor of coverage. For a particular
290
+ product received by a particular user, "normally used" refers to a
291
+ typical or common use of that class of product, regardless of the status
292
+ of the particular user or of the way in which the particular user
293
+ actually uses, or expects or is expected to use, the product. A product
294
+ is a consumer product regardless of whether the product has substantial
295
+ commercial, industrial or non-consumer uses, unless such uses represent
296
+ the only significant mode of use of the product.
297
+
298
+ "Installation Information" for a User Product means any methods,
299
+ procedures, authorization keys, or other information required to install
300
+ and execute modified versions of a covered work in that User Product from
301
+ a modified version of its Corresponding Source. The information must
302
+ suffice to ensure that the continued functioning of the modified object
303
+ code is in no case prevented or interfered with solely because
304
+ modification has been made.
305
+
306
+ If you convey an object code work under this section in, or with, or
307
+ specifically for use in, a User Product, and the conveying occurs as
308
+ part of a transaction in which the right of possession and use of the
309
+ User Product is transferred to the recipient in perpetuity or for a
310
+ fixed term (regardless of how the transaction is characterized), the
311
+ Corresponding Source conveyed under this section must be accompanied
312
+ by the Installation Information. But this requirement does not apply
313
+ if neither you nor any third party retains the ability to install
314
+ modified object code on the User Product (for example, the work has
315
+ been installed in ROM).
316
+
317
+ The requirement to provide Installation Information does not include a
318
+ requirement to continue to provide support service, warranty, or updates
319
+ for a work that has been modified or installed by the recipient, or for
320
+ the User Product in which it has been modified or installed. Access to a
321
+ network may be denied when the modification itself materially and
322
+ adversely affects the operation of the network or violates the rules and
323
+ protocols for communication across the network.
324
+
325
+ Corresponding Source conveyed, and Installation Information provided,
326
+ in accord with this section must be in a format that is publicly
327
+ documented (and with an implementation available to the public in
328
+ source code form), and must require no special password or key for
329
+ unpacking, reading or copying.
330
+
331
+ 7. Additional Terms.
332
+
333
+ "Additional permissions" are terms that supplement the terms of this
334
+ License by making exceptions from one or more of its conditions.
335
+ Additional permissions that are applicable to the entire Program shall
336
+ be treated as though they were included in this License, to the extent
337
+ that they are valid under applicable law. If additional permissions
338
+ apply only to part of the Program, that part may be used separately
339
+ under those permissions, but the entire Program remains governed by
340
+ this License without regard to the additional permissions.
341
+
342
+ When you convey a copy of a covered work, you may at your option
343
+ remove any additional permissions from that copy, or from any part of
344
+ it. (Additional permissions may be written to require their own
345
+ removal in certain cases when you modify the work.) You may place
346
+ additional permissions on material, added by you to a covered work,
347
+ for which you have or can give appropriate copyright permission.
348
+
349
+ Notwithstanding any other provision of this License, for material you
350
+ add to a covered work, you may (if authorized by the copyright holders of
351
+ that material) supplement the terms of this License with terms:
352
+
353
+ a) Disclaiming warranty or limiting liability differently from the
354
+ terms of sections 15 and 16 of this License; or
355
+
356
+ b) Requiring preservation of specified reasonable legal notices or
357
+ author attributions in that material or in the Appropriate Legal
358
+ Notices displayed by works containing it; or
359
+
360
+ c) Prohibiting misrepresentation of the origin of that material, or
361
+ requiring that modified versions of such material be marked in
362
+ reasonable ways as different from the original version; or
363
+
364
+ d) Limiting the use for publicity purposes of names of licensors or
365
+ authors of the material; or
366
+
367
+ e) Declining to grant rights under trademark law for use of some
368
+ trade names, trademarks, or service marks; or
369
+
370
+ f) Requiring indemnification of licensors and authors of that
371
+ material by anyone who conveys the material (or modified versions of
372
+ it) with contractual assumptions of liability to the recipient, for
373
+ any liability that these contractual assumptions directly impose on
374
+ those licensors and authors.
375
+
376
+ All other non-permissive additional terms are considered "further
377
+ restrictions" within the meaning of section 10. If the Program as you
378
+ received it, or any part of it, contains a notice stating that it is
379
+ governed by this License along with a term that is a further
380
+ restriction, you may remove that term. If a license document contains
381
+ a further restriction but permits relicensing or conveying under this
382
+ License, you may add to a covered work material governed by the terms
383
+ of that license document, provided that the further restriction does
384
+ not survive such relicensing or conveying.
385
+
386
+ If you add terms to a covered work in accord with this section, you
387
+ must place, in the relevant source files, a statement of the
388
+ additional terms that apply to those files, or a notice indicating
389
+ where to find the applicable terms.
390
+
391
+ Additional terms, permissive or non-permissive, may be stated in the
392
+ form of a separately written license, or stated as exceptions;
393
+ the above requirements apply either way.
394
+
395
+ 8. Termination.
396
+
397
+ You may not propagate or modify a covered work except as expressly
398
+ provided under this License. Any attempt otherwise to propagate or
399
+ modify it is void, and will automatically terminate your rights under
400
+ this License (including any patent licenses granted under the third
401
+ paragraph of section 11).
402
+
403
+ However, if you cease all violation of this License, then your
404
+ license from a particular copyright holder is reinstated (a)
405
+ provisionally, unless and until the copyright holder explicitly and
406
+ finally terminates your license, and (b) permanently, if the copyright
407
+ holder fails to notify you of the violation by some reasonable means
408
+ prior to 60 days after the cessation.
409
+
410
+ Moreover, your license from a particular copyright holder is
411
+ reinstated permanently if the copyright holder notifies you of the
412
+ violation by some reasonable means, this is the first time you have
413
+ received notice of violation of this License (for any work) from that
414
+ copyright holder, and you cure the violation prior to 30 days after
415
+ your receipt of the notice.
416
+
417
+ Termination of your rights under this section does not terminate the
418
+ licenses of parties who have received copies or rights from you under
419
+ this License. If your rights have been terminated and not permanently
420
+ reinstated, you do not qualify to receive new licenses for the same
421
+ material under section 10.
422
+
423
+ 9. Acceptance Not Required for Having Copies.
424
+
425
+ You are not required to accept this License in order to receive or
426
+ run a copy of the Program. Ancillary propagation of a covered work
427
+ occurring solely as a consequence of using peer-to-peer transmission
428
+ to receive a copy likewise does not require acceptance. However,
429
+ nothing other than this License grants you permission to propagate or
430
+ modify any covered work. These actions infringe copyright if you do
431
+ not accept this License. Therefore, by modifying or propagating a
432
+ covered work, you indicate your acceptance of this License to do so.
433
+
434
+ 10. Automatic Licensing of Downstream Recipients.
435
+
436
+ Each time you convey a covered work, the recipient automatically
437
+ receives a license from the original licensors, to run, modify and
438
+ propagate that work, subject to this License. You are not responsible
439
+ for enforcing compliance by third parties with this License.
440
+
441
+ An "entity transaction" is a transaction transferring control of an
442
+ organization, or substantially all assets of one, or subdividing an
443
+ organization, or merging organizations. If propagation of a covered
444
+ work results from an entity transaction, each party to that
445
+ transaction who receives a copy of the work also receives whatever
446
+ licenses to the work the party's predecessor in interest had or could
447
+ give under the previous paragraph, plus a right to possession of the
448
+ Corresponding Source of the work from the predecessor in interest, if
449
+ the predecessor has it or can get it with reasonable efforts.
450
+
451
+ You may not impose any further restrictions on the exercise of the
452
+ rights granted or affirmed under this License. For example, you may
453
+ not impose a license fee, royalty, or other charge for exercise of
454
+ rights granted under this License, and you may not initiate litigation
455
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
456
+ any patent claim is infringed by making, using, selling, offering for
457
+ sale, or importing the Program or any portion of it.
458
+
459
+ 11. Patents.
460
+
461
+ A "contributor" is a copyright holder who authorizes use under this
462
+ License of the Program or a work on which the Program is based. The
463
+ work thus licensed is called the contributor's "contributor version".
464
+
465
+ A contributor's "essential patent claims" are all patent claims
466
+ owned or controlled by the contributor, whether already acquired or
467
+ hereafter acquired, that would be infringed by some manner, permitted
468
+ by this License, of making, using, or selling its contributor version,
469
+ but do not include claims that would be infringed only as a
470
+ consequence of further modification of the contributor version. For
471
+ purposes of this definition, "control" includes the right to grant
472
+ patent sublicenses in a manner consistent with the requirements of
473
+ this License.
474
+
475
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
476
+ patent license under the contributor's essential patent claims, to
477
+ make, use, sell, offer for sale, import and otherwise run, modify and
478
+ propagate the contents of its contributor version.
479
+
480
+ In the following three paragraphs, a "patent license" is any express
481
+ agreement or commitment, however denominated, not to enforce a patent
482
+ (such as an express permission to practice a patent or covenant not to
483
+ sue for patent infringement). To "grant" such a patent license to a
484
+ party means to make such an agreement or commitment not to enforce a
485
+ patent against the party.
486
+
487
+ If you convey a covered work, knowingly relying on a patent license,
488
+ and the Corresponding Source of the work is not available for anyone
489
+ to copy, free of charge and under the terms of this License, through a
490
+ publicly available network server or other readily accessible means,
491
+ then you must either (1) cause the Corresponding Source to be so
492
+ available, or (2) arrange to deprive yourself of the benefit of the
493
+ patent license for this particular work, or (3) arrange, in a manner
494
+ consistent with the requirements of this License, to extend the patent
495
+ license to downstream recipients. "Knowingly relying" means you have
496
+ actual knowledge that, but for the patent license, your conveying the
497
+ covered work in a country, or your recipient's use of the covered work
498
+ in a country, would infringe one or more identifiable patents in that
499
+ country that you have reason to believe are valid.
500
+
501
+ If, pursuant to or in connection with a single transaction or
502
+ arrangement, you convey, or propagate by procuring conveyance of, a
503
+ covered work, and grant a patent license to some of the parties
504
+ receiving the covered work authorizing them to use, propagate, modify
505
+ or convey a specific copy of the covered work, then the patent license
506
+ you grant is automatically extended to all recipients of the covered
507
+ work and works based on it.
508
+
509
+ A patent license is "discriminatory" if it does not include within
510
+ the scope of its coverage, prohibits the exercise of, or is
511
+ conditioned on the non-exercise of one or more of the rights that are
512
+ specifically granted under this License. You may not convey a covered
513
+ work if you are a party to an arrangement with a third party that is
514
+ in the business of distributing software, under which you make payment
515
+ to the third party based on the extent of your activity of conveying
516
+ the work, and under which the third party grants, to any of the
517
+ parties who would receive the covered work from you, a discriminatory
518
+ patent license (a) in connection with copies of the covered work
519
+ conveyed by you (or copies made from those copies), or (b) primarily
520
+ for and in connection with specific products or compilations that
521
+ contain the covered work, unless you entered into that arrangement,
522
+ or that patent license was granted, prior to 28 March 2007.
523
+
524
+ Nothing in this License shall be construed as excluding or limiting
525
+ any implied license or other defenses to infringement that may
526
+ otherwise be available to you under applicable patent law.
527
+
528
+ 12. No Surrender of Others' Freedom.
529
+
530
+ If conditions are imposed on you (whether by court order, agreement or
531
+ otherwise) that contradict the conditions of this License, they do not
532
+ excuse you from the conditions of this License. If you cannot convey a
533
+ covered work so as to satisfy simultaneously your obligations under this
534
+ License and any other pertinent obligations, then as a consequence you may
535
+ not convey it at all. For example, if you agree to terms that obligate you
536
+ to collect a royalty for further conveying from those to whom you convey
537
+ the Program, the only way you could satisfy both those terms and this
538
+ License would be to refrain entirely from conveying the Program.
539
+
540
+ 13. Remote Network Interaction; Use with the GNU General Public License.
541
+
542
+ Notwithstanding any other provision of this License, if you modify the
543
+ Program, your modified version must prominently offer all users
544
+ interacting with it remotely through a computer network (if your version
545
+ supports such interaction) an opportunity to receive the Corresponding
546
+ Source of your version by providing access to the Corresponding Source
547
+ from a network server at no charge, through some standard or customary
548
+ means of facilitating copying of software. This Corresponding Source
549
+ shall include the Corresponding Source for any work covered by version 3
550
+ of the GNU General Public License that is incorporated pursuant to the
551
+ following paragraph.
552
+
553
+ Notwithstanding any other provision of this License, you have
554
+ permission to link or combine any covered work with a work licensed
555
+ under version 3 of the GNU General Public License into a single
556
+ combined work, and to convey the resulting work. The terms of this
557
+ License will continue to apply to the part which is the covered work,
558
+ but the work with which it is combined will remain governed by version
559
+ 3 of the GNU General Public License.
560
+
561
+ 14. Revised Versions of this License.
562
+
563
+ The Free Software Foundation may publish revised and/or new versions of
564
+ the GNU Affero General Public License from time to time. Such new versions
565
+ will be similar in spirit to the present version, but may differ in detail to
566
+ address new problems or concerns.
567
+
568
+ Each version is given a distinguishing version number. If the
569
+ Program specifies that a certain numbered version of the GNU Affero General
570
+ Public License "or any later version" applies to it, you have the
571
+ option of following the terms and conditions either of that numbered
572
+ version or of any later version published by the Free Software
573
+ Foundation. If the Program does not specify a version number of the
574
+ GNU Affero General Public License, you may choose any version ever published
575
+ by the Free Software Foundation.
576
+
577
+ If the Program specifies that a proxy can decide which future
578
+ versions of the GNU Affero General Public License can be used, that proxy's
579
+ public statement of acceptance of a version permanently authorizes you
580
+ to choose that version for the Program.
581
+
582
+ Later license versions may give you additional or different
583
+ permissions. However, no additional obligations are imposed on any
584
+ author or copyright holder as a result of your choosing to follow a
585
+ later version.
586
+
587
+ 15. Disclaimer of Warranty.
588
+
589
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597
+
598
+ 16. Limitation of Liability.
599
+
600
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608
+ SUCH DAMAGES.
609
+
610
+ 17. Interpretation of Sections 15 and 16.
611
+
612
+ If the disclaimer of warranty and limitation of liability provided
613
+ above cannot be given local legal effect according to their terms,
614
+ reviewing courts shall apply local law that most closely approximates
615
+ an absolute waiver of all civil liability in connection with the
616
+ Program, unless a warranty or assumption of liability accompanies a
617
+ copy of the Program in return for a fee.
618
+
619
+ END OF TERMS AND CONDITIONS
620
+
621
+ How to Apply These Terms to Your New Programs
622
+
623
+ If you develop a new program, and you want it to be of the greatest
624
+ possible use to the public, the best way to achieve this is to make it
625
+ free software which everyone can redistribute and change under these terms.
626
+
627
+ To do so, attach the following notices to the program. It is safest
628
+ to attach them to the start of each source file to most effectively
629
+ state the exclusion of warranty; and each file should have at least
630
+ the "copyright" line and a pointer to where the full notice is found.
631
+
632
+ <one line to give the program's name and a brief idea of what it does.>
633
+ Copyright (C) <year> <name of author>
634
+
635
+ This program is free software: you can redistribute it and/or modify
636
+ it under the terms of the GNU Affero General Public License as published
637
+ by the Free Software Foundation, either version 3 of the License, or
638
+ (at your option) any later version.
639
+
640
+ This program is distributed in the hope that it will be useful,
641
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
642
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643
+ GNU Affero General Public License for more details.
644
+
645
+ You should have received a copy of the GNU Affero General Public License
646
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
647
+
648
+ Also add information on how to contact you by electronic and paper mail.
649
+
650
+ If your software can interact with users remotely through a computer
651
+ network, you should also make sure that it provides a way for users to
652
+ get its source. For example, if your program is a web application, its
653
+ interface could display a "Source" link that leads users to an archive
654
+ of the code. There are many ways you could offer source, and different
655
+ solutions will be better for different programs; see section 13 for the
656
+ specific requirements.
657
+
658
+ You should also get your employer (if you work as a programmer) or school,
659
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
660
+ For more information on this, and how to apply and follow the GNU AGPL, see
661
+ <https://www.gnu.org/licenses/>.
662
+ `],["React",`MIT License
663
+
664
+ Copyright (c) Meta Platforms, Inc. and affiliates.
665
+
666
+ Permission is hereby granted, free of charge, to any person obtaining a copy
667
+ of this software and associated documentation files (the "Software"), to deal
668
+ in the Software without restriction, including without limitation the rights
669
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
670
+ copies of the Software, and to permit persons to whom the Software is
671
+ furnished to do so, subject to the following conditions:
672
+
673
+ The above copyright notice and this permission notice shall be included in all
674
+ copies or substantial portions of the Software.
675
+
676
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
677
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
678
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
679
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
680
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
681
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
682
+ SOFTWARE.
683
+ `],["ReactDOM",`MIT License
684
+
685
+ Copyright (c) Meta Platforms, Inc. and affiliates.
686
+
687
+ Permission is hereby granted, free of charge, to any person obtaining a copy
688
+ of this software and associated documentation files (the "Software"), to deal
689
+ in the Software without restriction, including without limitation the rights
690
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
691
+ copies of the Software, and to permit persons to whom the Software is
692
+ furnished to do so, subject to the following conditions:
693
+
694
+ The above copyright notice and this permission notice shall be included in all
695
+ copies or substantial portions of the Software.
696
+
697
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
698
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
699
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
700
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
701
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
702
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
703
+ SOFTWARE.
704
+ `],["Scheduler",`MIT License
705
+
706
+ Copyright (c) Meta Platforms, Inc. and affiliates.
707
+
708
+ Permission is hereby granted, free of charge, to any person obtaining a copy
709
+ of this software and associated documentation files (the "Software"), to deal
710
+ in the Software without restriction, including without limitation the rights
711
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
712
+ copies of the Software, and to permit persons to whom the Software is
713
+ furnished to do so, subject to the following conditions:
714
+
715
+ The above copyright notice and this permission notice shall be included in all
716
+ copies or substantial portions of the Software.
717
+
718
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
719
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
720
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
721
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
722
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
723
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
724
+ SOFTWARE.
725
+ `],["Lucide",`ISC License
726
+
727
+ Copyright (c) 2026 Lucide Icons and Contributors
728
+
729
+ 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.
730
+
731
+ 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.
732
+
733
+ Feather icons incorporated in Lucide are distributed under the MIT License.
734
+
735
+ Copyright (c) 2013-present Cole Bemis
736
+
737
+ Permission is hereby granted, free of charge, to any person obtaining a copy
738
+ of this software and associated documentation files (the "Software"), to deal
739
+ in the Software without restriction, including without limitation the rights
740
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
741
+ copies of the Software, and to permit persons to whom the Software is
742
+ furnished to do so, subject to the following conditions:
743
+
744
+ The above copyright notice and this permission notice shall be included in all
745
+ copies or substantial portions of the Software.
746
+
747
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
748
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
749
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
750
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
751
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
752
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
753
+ SOFTWARE.
754
+ `],["Source",`K-Plex Web 0.0.3 (pack 0.4.6)
755
+ Copyright K-Plex contributors. Distributed under AGPL-3.0-only.
756
+ Corresponding source: https://github.com/zsviczian/kplex/tree/ed5441572f4cdb9d42045f70dadedc12c9afbc05
757
+ Use the source for the exact release that supplied this runtime. When redistributing a custom build, make its exact corresponding source available.
758
+ `]]});var kh=Ln(_e=>{"use strict";T();function Ic(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,a=e[i];if(0<mr(a,t))e[i]=t,e[n]=a,n=i;else break e}}function Dn(e){return e.length===0?null:e[0]}function gr(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>mr(r,n))u<a&&0>mr(c,r)?(e[i]=c,e[u]=n,i=u):(e[i]=r,e[l]=n,i=l);else if(u<a&&0>mr(c,n))e[i]=c,e[u]=n,i=u;else break e}}return t}function mr(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"?(Ah=performance,_e.unstable_now=function(){return Ah.now()}):(Uc=Date,Ch=Uc.now(),_e.unstable_now=function(){return Uc.now()-Ch});var Ah,Uc,Ch,ei=[],bi=[],v1=1,an=null,gt=3,Bc=!1,Ko=!1,Qo=!1,Gc=!1,zh=typeof setTimeout=="function"?setTimeout:null,Dh=typeof clearTimeout=="function"?clearTimeout:null,Oh=typeof setImmediate<"u"?setImmediate:null;function pr(e){for(var t=Dn(bi);t!==null;){if(t.callback===null)gr(bi);else if(t.startTime<=e)gr(bi),t.sortIndex=t.expirationTime,Ic(ei,t);else break;t=Dn(bi)}}function Vc(e){if(Qo=!1,pr(e),!Ko)if(Dn(ei)!==null)Ko=!0,ka||(ka=!0,Ua());else{var t=Dn(bi);t!==null&&Yc(Vc,t.startTime-e)}}var ka=!1,Zo=-1,Hh=5,_h=-1;function Uh(){return Gc?!0:!(_e.unstable_now()-_h<Hh)}function kc(){if(Gc=!1,ka){var e=_e.unstable_now();_h=e;var t=!0;try{e:{Ko=!1,Qo&&(Qo=!1,Dh(Zo),Zo=-1),Bc=!0;var n=gt;try{t:{for(pr(e),an=Dn(ei);an!==null&&!(an.expirationTime>e&&Uh());){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,pr(e),t=!0;break t}an===Dn(ei)&&gr(ei),pr(e)}else gr(ei);an=Dn(ei)}if(an!==null)t=!0;else{var o=Dn(bi);o!==null&&Yc(Vc,o.startTime-e),t=!1}}break e}finally{an=null,gt=n,Bc=!1}t=void 0}}finally{t?Ua():ka=!1}}}var Ua;typeof Oh=="function"?Ua=function(){Oh(kc)}:typeof MessageChannel<"u"?(Pc=new MessageChannel,Lh=Pc.port2,Pc.port1.onmessage=kc,Ua=function(){Lh.postMessage(null)}):Ua=function(){zh(kc,0)};var Pc,Lh;function Yc(e,t){Zo=zh(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"):Hh=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(){Gc=!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:v1++,callback:t,priorityLevel:e,startTime:n,expirationTime:a,sortIndex:-1},n>i?(e.sortIndex=n,Ic(bi,e),Dn(ei)===null&&e===Dn(bi)&&(Qo?(Dh(Zo),Zo=-1):Qo=!0,Yc(Vc,n-i))):(e.sortIndex=a,Ic(ei,e),Ko||Bc||(Ko=!0,ka||(ka=!0,Ua()))),e};_e.unstable_shouldYield=Uh;_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 Ih=Ln((RT,Ph)=>{"use strict";T();Ph.exports=kh()});var Wh=Ln(W=>{"use strict";T();var Xc=Symbol.for("react.transitional.element"),S1=Symbol.for("react.portal"),w1=Symbol.for("react.fragment"),E1=Symbol.for("react.strict_mode"),x1=Symbol.for("react.profiler"),T1=Symbol.for("react.consumer"),N1=Symbol.for("react.context"),M1=Symbol.for("react.forward_ref"),R1=Symbol.for("react.suspense"),A1=Symbol.for("react.memo"),qh=Symbol.for("react.lazy"),C1=Symbol.for("react.activity"),O1=Symbol.for("react.view_transition"),Bh=Symbol.iterator;function L1(e){return e===null||typeof e!="object"?null:(e=Bh&&e[Bh]||e["@@iterator"],typeof e=="function"?e:null)}var jh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xh=Object.assign,Kh={};function Ia(e,t,n){this.props=e,this.context=t,this.refs=Kh,this.updater=n||jh}Ia.prototype.isReactComponent={};Ia.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")};Ia.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qh(){}Qh.prototype=Ia.prototype;function Kc(e,t,n){this.props=e,this.context=t,this.refs=Kh,this.updater=n||jh}var Qc=Kc.prototype=new Qh;Qc.constructor=Kc;Xh(Qc,Ia.prototype);Qc.isPureReactComponent=!0;var Gh=Array.isArray;function jc(){}var Re={H:null,A:null,T:null,S:null},Zh=Object.prototype.hasOwnProperty;function Zc(e,t,n){var i=n.ref;return{$$typeof:Xc,type:e,key:t,ref:i!==void 0?i:null,props:n}}function z1(e,t){return Zc(e.type,t,e.props)}function Fc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xc}function D1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Vh=/\/+/g;function qc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?D1(""+e.key):t.toString(36)}function H1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(jc,jc):(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 Pa(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 Xc:case S1:l=!0;break;case qh:return l=e._init,Pa(l(e._payload),t,n,i,a)}}if(l)return a=a(e),l=i===""?"."+qc(e,0):i,Gh(a)?(n="",l!=null&&(n=l.replace(Vh,"$&/")+"/"),Pa(a,t,n,"",function(c){return c})):a!=null&&(Fc(a)&&(a=z1(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(Vh,"$&/")+"/")+l)),t.push(a)),1;l=0;var r=i===""?".":i+":";if(Gh(e))for(var u=0;u<e.length;u++)i=e[u],o=r+qc(i,u),l+=Pa(i,t,n,o,a);else if(u=L1(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,o=r+qc(i,u++),l+=Pa(i,t,n,o,a);else if(o==="object"){if(typeof e.then=="function")return Pa(H1(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 yr(e,t,n){if(e==null)return e;var i=[],a=0;return Pa(e,i,"","",function(o){return t.call(n,o,a++)}),i}function _1(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 Yh=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 Fh(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(jc,Yh)}catch(o){Yh(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),Re.T=t}}function Jh(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 Fh(Jh.bind(null,e))}var U1={map:yr,forEach:function(e,t,n){yr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return yr(e,function(){t++}),t},toArray:function(e){return yr(e,function(t){return t})||[]},only:function(e){if(!Fc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Activity=C1;W.Children=U1;W.Component=Ia;W.Fragment=w1;W.Profiler=x1;W.PureComponent=Kc;W.StrictMode=E1;W.Suspense=R1;W.ViewTransition=O1;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=Jh;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=Xh({},e.props),a=e.key;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)!Zh.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 Zc(e.type,a,i)};W.createContext=function(e){return e={$$typeof:N1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:T1,_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)Zh.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 Zc(e,o,a)};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:M1,render:e}};W.isValidElement=Fc;W.lazy=function(e){return{$$typeof:qh,_payload:{_status:-1,_result:e},_init:_1}};W.memo=function(e,t){return{$$typeof:A1,type:e,compare:t===void 0?null:t}};W.startTransition=Fh;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((LT,$h)=>{"use strict";T();$h.exports=Wh()});var nm=Ln(yt=>{"use strict";T();var k1=tt();function tm(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(tm(522))},D:vi,C:vi,L:vi,m:vi,X:vi,S:vi,M:vi},p:0,findDOMNode:null},P1=Symbol.for("react.portal"),I1=Symbol.for("react.recoverable"),em=Symbol.for("react.optimistic_key");function B1(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:P1,key:i==null?null:i===em?em:""+i,children:e,containerInfo:t,implementation:n}}var Fo=k1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function br(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:I1,_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(tm(299));return B1(e,t,null,n)};yt.flushSync=function(e){var t=Fo.T,n=xt.p;try{if(Fo.T=null,xt.p=2,e)return e()}finally{Fo.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=br(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=br(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=br(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=br(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 Fo.H.useFormState(e,t,n)};yt.useFormStatus=function(){return Fo.H.useHostTransitionStatus()};yt.version="19.3.0"});var vr=Ln((_T,am)=>{"use strict";T();function im(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(im)}catch(e){console.error(e)}}im(),am.exports=nm()});var qb=Ln(ec=>{"use strict";T();var Je=Ih(),Yp=tt(),G1=vr();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 qp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function kl(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 jp(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 Xp(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 om(e){if(kl(e)!==e)throw Error(A(188))}function V1(e){var t=e.alternate;if(!t){if(t=kl(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 om(a),e;if(o===i)return om(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 Kp(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Kp(e),t!==null)return t;e=e.sibling}return null}function Bt(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)&&Bt(e.child,t,n,i,a,o))return!0;e=e.sibling}return!1}function wa(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 lm(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 Qp(e){var t=[null,null],n=wa(e);return n===null||Zp(t,e,n.child,{foundSelf:!1}),t}function Zp(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)&&Zp(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 Xa=null,As=null;function Y1(e,t,n){return e===n?!0:e===t?(Xa=e,!0):!1}function q1(e,t,n){return e===n?(As=e,!1):e===t?(As!==null&&(Xa=e),!0):!1}function rm(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 Cs(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,j1=Symbol.for("react.element"),Sr=Symbol.for("react.transitional.element"),il=Symbol.for("react.portal"),Ka=Symbol.for("react.fragment"),Fp=Symbol.for("react.strict_mode"),Os=Symbol.for("react.profiler"),Jp=Symbol.for("react.consumer"),In=Symbol.for("react.context"),Bf=Symbol.for("react.forward_ref"),Ls=Symbol.for("react.suspense"),zs=Symbol.for("react.suspense_list"),Gf=Symbol.for("react.memo"),xi=Symbol.for("react.lazy");Symbol.for("react.scope");var Ds=Symbol.for("react.activity"),X1=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var K1=Symbol.for("react.memo_cache_sentinel"),Hs=Symbol.for("react.view_transition"),Q1=Symbol.for("react.recoverable"),um=Symbol.iterator;function Jo(e){return e===null||typeof e!="object"?null:(e=um&&e[um]||e["@@iterator"],typeof e=="function"?e:null)}var Z1=Symbol.for("react.client.reference");function _s(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 Ka:return"Fragment";case Os:return"Profiler";case Fp:return"StrictMode";case Ls:return"Suspense";case zs:return"SuspenseList";case Ds:return"Activity";case Hs:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case il:return"Portal";case In:return e.displayName||"Context";case Jp:return(e._context.displayName||"Context")+".Consumer";case Bf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gf:return t=e.displayName||null,t!==null?t:_s(e.type)||"Memo";case xi:t=e._payload,e=e._init;try{return _s(e(t))}catch{}}return null}var al=Array.isArray,Q=Yp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=G1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ua={pending:!1,data:null,method:null,action:null},Us=[],Qa=-1;function Xn(e){return{current:e}}function st(e){0>Qa||(e.current=Us[Qa],Us[Qa]=null,Qa--)}function Oe(e,t){Qa++,Us[Qa]=e.current,e.current=t}var Yn=Xn(null),wl=Xn(null),zi=Xn(null),lu=Xn(null);function ru(e,t){switch(Oe(zi,t),Oe(wl,e),Oe(Yn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ep(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ep(t),e=vb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}st(Yn),Oe(Yn,e)}function po(){st(Yn),st(wl),st(zi)}function ks(e){var t=e.memoizedState;t!==null&&(No._currentValue=t.memoizedState,Oe(lu,e)),t=Yn.current;var n=vb(t,e.type);t!==n&&(Oe(wl,e),Oe(Yn,n))}function uu(e){wl.current===e&&(st(Yn),st(wl)),lu.current===e&&(st(lu),No._currentValue=ua)}var Jc,cm;function wi(e){if(Jc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Jc=t&&t[1]||"",cm=-1<n.stack.indexOf(`
2
759
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+ac+t+hm}var uc=!1;function oc(t,e){if(!t||uc)return"";uc=!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 i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=l.DetermineComponentFrameRoot(),u=a[0],o=a[1];if(u&&o){var r=u.split(`
4
- `),c=o.split(`
5
- `);for(i=l=0;l<r.length&&!r[l].includes("DetermineComponentFrameRoot");)l++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(l===r.length||i===c.length)for(l=r.length-1,i=c.length-1;1<=l&&0<=i&&r[l]!==c[i];)i--;for(;1<=l&&0<=i;l--,i--)if(r[l]!==c[i]){if(l!==1||i!==1)do if(l--,i--,0>i||r[l]!==c[i]){var m=`
6
- `+r[l].replace(" at new "," at ");return t.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",t.displayName)),m}while(1<=l&&0<=i);break}}}finally{uc=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?il(n):""}function wv(t,e){switch(t.tag){case 26:case 27:case 5:return il(t.type);case 16:return il("Lazy");case 13:return t.child!==e&&e!==null?il("Suspense Fallback"):il("Suspense");case 19:return il("SuspenseList");case 0:case 15:return oc(t.type,!1);case 11:return oc(t.type.render,!1);case 1:return oc(t.type,!0);case 31:return il("Activity");case 30:return il("ViewTransition");default:return""}}function gm(t){try{var e="",n=null;do e+=wv(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
7
- Error generating stack: `+l.message+`
8
- `+l.stack}}var Pc=Object.prototype.hasOwnProperty,Js=Ht.unstable_scheduleCallback,rc=Ht.unstable_cancelCallback,Av=Ht.unstable_shouldYield,Rv=Ht.unstable_requestPaint,_e=Ht.unstable_now,zv=Ht.unstable_getCurrentPriorityLevel,lg=Ht.unstable_ImmediatePriority,ig=Ht.unstable_UserBlockingPriority,Oo=Ht.unstable_NormalPriority,Cv=Ht.unstable_LowPriority,ag=Ht.unstable_IdlePriority,Ov=Ht.log,Dv=Ht.unstable_setDisableYieldValue,cu=null,He=null;function cl(t){if(typeof Ov=="function"&&Dv(t),He&&typeof He.setStrictMode=="function")try{He.setStrictMode(cu,t)}catch{}}var Le=Math.clz32?Math.clz32:Lv,_v=Math.log,Hv=Math.LN2;function Lv(t){return t>>>=0,t===0?32:31-(_v(t)/Hv|0)|0}var Xu=256,ju=262144,ku=4194304;function Yl(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 lr(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var i=0,a=t.suspendedLanes,u=t.pingedLanes;t=t.warmLanes;var o=l&134217727;return o!==0?(l=o&~a,l!==0?i=Yl(l):(u&=o,u!==0?i=Yl(u):n||(n=o&~t,n!==0&&(i=Yl(n))))):(o=l&~a,o!==0?i=Yl(o):u!==0?i=Yl(u):n||(n=l&~t,n!==0&&(i=Yl(n)))),i===0?0:e!==0&&e!==i&&(e&a)===0&&(a=i&-i,n=e&-e,a>=n||a===32&&(n&4194048)!==0)?e:i}function su(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function ug(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),i=1<<l;e|=t[l],n&=~i}return e}function Uv(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 og(){var t=ku;return ku<<=1,(ku&62914560)===0&&(ku=4194304),t}function cc(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function fu(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Bv(t,e,n,l,i,a){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 m=31-Le(n),g=1<<m;o[m]=0,r[m]=-1;var s=c[m];if(s!==null)for(c[m]=null,m=0;m<s.length;m++){var f=s[m];f!==null&&(f.lane&=-536870913)}n&=~g}l!==0&&rg(t,l,0),a!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=a&~(u&~e))}function rg(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 cg(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-Le(n),i=1<<l;i&e|t[l]&e&&(t[l]|=e),n&=~i}}function sg(t,e){var n=e&-e;return n=(n&42)!==0?1:Fs(n),(n&(t.suspendedLanes|e))!==0?0:n}function Fs(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 Is(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function fg(){var t=et.p;return t!==0?t:(t=window.event,t===void 0?32:Py(t.type))}function pm(t,e){var n=et.p;try{return et.p=t,e()}finally{et.p=n}}var Jn=Math.random().toString(36).slice(2),kt="__reactFiber$"+Jn,Ne="__reactProps$"+Jn,aa="__reactContainer$"+Jn,ym="__reactEvents$"+Jn,Vv="__reactListeners$"+Jn,Gv="__reactHandles$"+Jn,bm="__reactResources$"+Jn,du="__reactMarker$"+Jn,Do="__reactLoad$"+Jn;function ir(t){delete t[kt],delete t[Ne],delete t[Vv],delete t[Gv]}function jl(t){var e;if(e=t[kt])return e;for(var n=t.parentNode;n;){if(e=n[aa]||n[kt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Lh(t);t!==null;){if(n=t[kt])return n;t=Lh(t)}return e}t=n,n=t.parentNode}return null}function ua(t){if(t=t[kt]||t[aa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ca(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(N(33))}function Ui(t){var e=t[bm];return e||(e=t[bm]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Gt(t){t[du]=!0}function dg(t){t[Do]=void 0}var mg=new Set,hg={};function ai(t,e){Ki(t,e),Ki(t+"Capture",e)}function Ki(t,e){for(hg[t]=e,t=0;t<e.length;t++)mg.add(e[t])}var Yv=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]*$"),vm={},Sm={};function qv(t){return Pc.call(Sm,t)?!0:Pc.call(vm,t)?!1:Yv.test(t)?Sm[t]=!0:(vm[t]=!0,!1)}var I=!1;function Em(){var t=I;return I=!1,t}function ro(t,e,n){if(qv(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 Qu(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 Bn(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 gg(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Xv(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 i=l.get,a=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(u){n=""+u,a.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 Kc(t){if(!t._valueTracker){var e=gg(t)?"checked":"value";t._valueTracker=Xv(t,e,""+t[e])}}function pg(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=gg(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}var jv=/[\n"\\]/g;function Ke(t){return t.replace(jv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Zc(t,e,n,l,i,a,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?sc(t,ze(t.value)):sc(t,ze(e)):n!=null?sc(t,ze(n)):l!=null&&t.removeAttribute("value"),i==null&&a!=null&&(t.defaultChecked=!!a),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+ze(o):t.removeAttribute("name")}function yg(t,e,n,l,i,a,u,o){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(t.type=a),e!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||e!=null)){Kc(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??i,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),Kc(t)}function sc(t,e){t.defaultValue!==""+e&&(t.defaultValue=""+e)}function Bi(t,e,n,l){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&l&&(t[n].defaultSelected=!0)}else{for(n=""+ze(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,l&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function bg(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 vg(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(N(92));if(za(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),Kc(t)}function Zi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var kv=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 xm(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||kv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Sg(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 i in e)l=e[i],e.hasOwnProperty(i)&&n[i]!==l&&(xm(t,i,l),I=!0)}else for(var a in e)e.hasOwnProperty(a)&&xm(t,a,e[a])}function $s(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 Qv=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"]]),Pv=/^[\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 co(t){return Pv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function En(){}var Jc=null;function Ws(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ai=null,Vi=null;function Tm(t){var e=ua(t);if(e&&(t=e.stateNode)){var n=t[Ne]||null;t:switch(t=e.stateNode,e.type){case"input":if(Zc(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="'+Ke(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var i=l[Ne]||null;if(!i)throw Error(N(90));Zc(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&pg(l)}break t;case"textarea":bg(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Bi(t,!!n.multiple,e,!1)}}}var fc=!1;function Eg(t,e,n){if(fc)return t(e,n);fc=!0;try{var l=t(e);return l}finally{if(fc=!1,(Ai!==null||Vi!==null)&&(br(),Ai&&(e=Ai,t=Vi,Vi=Ai=null,Tm(e),t)))for(e=0;e<t.length;e++)Tm(t[e])}}function Ka(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 jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fc=!1;if(jn)try{bi={},Object.defineProperty(bi,"passive",{get:function(){Fc=!0}}),window.addEventListener("test",bi,bi),window.removeEventListener("test",bi,bi)}catch{Fc=!1}var bi,sl=null,tf=null,so=null;function xg(){if(so)return so;var t,e=tf,n=e.length,l,i="value"in sl?sl.value:sl.textContent,a=i.length;for(t=0;t<n&&e[t]===i[t];t++);var u=n-t;for(l=1;l<=u&&e[n-l]===i[a-l];l++);return so=i.slice(t,1<l?1-l:void 0)}function fo(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 Pu(){return!0}function Mm(){return!1}function fe(t){function e(n,l,i,a,u){this._reactName=n,this._targetInst=i,this.type=l,this.nativeEvent=a,this.target=u,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(n=t[o],this[o]=n?n(a):a[o]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Pu:Mm,this.isPropagationStopped=Mm,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=Pu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Pu)},persist:function(){},isPersistent:Pu}),e}var Cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ar=fe(Cl),mu=ct({},Cl,{view:0,detail:0}),Kv=fe(mu),dc,mc,Ta,ur=ct({},mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ef,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!==Ta&&(Ta&&t.type==="mousemove"?(dc=t.screenX-Ta.screenX,mc=t.screenY-Ta.screenY):mc=dc=0,Ta=t),dc)},movementY:function(t){return"movementY"in t?t.movementY:mc}}),Nm=fe(ur),Zv=ct({},ur,{dataTransfer:0}),Jv=fe(Zv),Fv=ct({},mu,{relatedTarget:0}),hc=fe(Fv),Iv=ct({},Cl,{animationName:0,elapsedTime:0,pseudoElement:0}),$v=fe(Iv),Wv=ct({},Cl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),t1=fe(Wv),e1=ct({},Cl,{data:0}),wm=fe(e1),n1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},i1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function a1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=i1[t])?!!e[t]:!1}function ef(){return a1}var u1=ct({},mu,{key:function(t){if(t.key){var e=n1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=fo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?l1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ef,charCode:function(t){return t.type==="keypress"?fo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?fo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),o1=fe(u1),r1=ct({},ur,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Am=fe(r1),c1=ct({},Cl,{submitter:0}),s1=fe(c1),f1=ct({},mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ef}),d1=fe(f1),m1=ct({},Cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),h1=fe(m1),g1=ct({},ur,{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}),p1=fe(g1),y1=ct({},Cl,{newState:0,oldState:0,source:0}),b1=fe(y1),v1=[9,13,27,32],nf=jn&&"CompositionEvent"in window,_a=null;jn&&"documentMode"in document&&(_a=document.documentMode);var S1=jn&&"TextEvent"in window&&!_a,Tg=jn&&(!nf||_a&&8<_a&&11>=_a),Rm=" ",zm=!1;function Mg(t,e){switch(t){case"keyup":return v1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ng(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ri=!1;function E1(t,e){switch(t){case"compositionend":return Ng(e);case"keypress":return e.which!==32?null:(zm=!0,Rm);case"textInput":return t=e.data,t===Rm&&zm?null:t;default:return null}}function x1(t,e){if(Ri)return t==="compositionend"||!nf&&Mg(t,e)?(t=xg(),so=tf=sl=null,Ri=!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 Tg&&e.locale!=="ko"?null:e.data;default:return null}}var T1={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 Cm(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!T1[t.type]:e==="textarea"}function wg(t,e,n,l){Ai?Vi?Vi.push(l):Vi=[l]:Ai=l,e=tr(e,"onChange"),0<e.length&&(n=new ar("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Ha=null,Za=null;function M1(t){Ey(t,0)}function or(t){var e=Ca(t);if(pg(e))return t}function Om(t,e){if(t==="change")return e}var Ag=!1;jn&&(jn?(Zu="oninput"in document,Zu||(gc=document.createElement("div"),gc.setAttribute("oninput","return;"),Zu=typeof gc.oninput=="function"),Ku=Zu):Ku=!1,Ag=Ku&&(!document.documentMode||9<document.documentMode));var Ku,Zu,gc;function Dm(){Ha&&(Ha.detachEvent("onpropertychange",Rg),Za=Ha=null)}function Rg(t){if(t.propertyName==="value"&&or(Za)){var e=[];wg(e,Za,t,Ws(t)),Eg(M1,e)}}function N1(t,e,n){t==="focusin"?(Dm(),Ha=e,Za=n,Ha.attachEvent("onpropertychange",Rg)):t==="focusout"&&Dm()}function w1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return or(Za)}function A1(t,e){if(t==="click")return or(e)}function R1(t,e){if(t==="input"||t==="change")return or(e)}function z1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Be=typeof Object.is=="function"?Object.is:z1;function Ja(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 i=n[l];if(!Pc.call(e,i)||!Be(t[i],e[i]))return!1}return!0}function Ic(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 _m(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Hm(t,e){var n=_m(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=_m(n)}}function zg(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?zg(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Cg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ic(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=Ic(t.document)}return e}function lf(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 C1=jn&&"documentMode"in document&&11>=document.documentMode,zi=null,$c=null,La=null,Wc=!1;function Lm(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wc||zi==null||zi!==Ic(l)||(l=zi,"selectionStart"in l&&lf(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}),La&&Ja(La,l)||(La=l,l=tr($c,"onSelect"),0<l.length&&(e=new ar("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=zi)))}function Vl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ci={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},pc={},Og={};jn&&(Og=document.createElement("div").style,"AnimationEvent"in window||(delete Ci.animationend.animation,delete Ci.animationiteration.animation,delete Ci.animationstart.animation),"TransitionEvent"in window||delete Ci.transitionend.transition);function ui(t){if(pc[t])return pc[t];if(!Ci[t])return t;var e=Ci[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Og)return pc[t]=e[n];return t}var Dg=ui("animationend"),_g=ui("animationiteration"),Hg=ui("animationstart"),O1=ui("transitionrun"),D1=ui("transitionstart"),_1=ui("transitioncancel"),Lg=ui("transitionend"),Ug=new Map,ts="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(" ");ts.push("scrollEnd");function on(t,e){Ug.set(t,e),ai(e,[t])}var H1=0;function kn(t,e){if(t.name!=null&&t.name!=="auto")return t.name;if(e.autoName!==null)return e.autoName;t=un.identifierPrefix;var n=H1++;return t="_"+t+"t_"+n.toString(32)+"_",e.autoName=t}function Um(t){if(t==null||typeof t=="string")return t;var e=null,n=Qi;if(n!==null)for(var l=0;l<n.length;l++){var i=t[n[l]];if(i!=null){if(i==="none")return"none";e=e==null?i:e+(" "+i)}}return e??t.default}function Fn(t,e){return t=Um(t),e=Um(e),e==null?t==="auto"?null:t:e==="auto"?null:e}var _o=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=[],Oi=0,af=0;function rr(){for(var t=Oi,e=af=Oi=0;e<t;){var n=ke[e];ke[e++]=null;var l=ke[e];ke[e++]=null;var i=ke[e];ke[e++]=null;var a=ke[e];if(ke[e++]=null,l!==null&&i!==null){var u=l.pending;u===null?i.next=i:(i.next=u.next,u.next=i),l.pending=i}a!==0&&Bg(n,i,a)}}function cr(t,e,n,l){ke[Oi++]=t,ke[Oi++]=e,ke[Oi++]=n,ke[Oi++]=l,af|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function uf(t,e,n,l){return cr(t,e,n,l),Ho(t)}function oi(t,e){return cr(t,null,null,e),Ho(t)}function Bg(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var i=!1,a=t.return;a!==null;)a.childLanes|=n,l=a.alternate,l!==null&&(l.childLanes|=n),a.tag===22&&(t=a.stateNode,t===null||t._visibility&1||(i=!0)),t=a,a=a.return;return t.tag===3?(a=t.stateNode,i&&e!==null&&(i=31-Le(n),t=a.hiddenUpdates,l=t[i],l===null?t[i]=[e]:l.push(e),e.lane=n|536870912),a):null}function Ho(t){if(50<Qa)throw Qa=0,xo=null,Error(N(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Di={};function L1(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 L1(t,e,n,l)}function of(t){return t=t.prototype,!(!t||!t.isReactComponent)}function qn(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 Vg(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 mo(t,e,n,l,i,a){var u=0;if(l=t,typeof l=="function")of(l)&&(u=1);else if(typeof l=="string")u=oE(t,n,Mn.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(l){case qc:return t=xe(31,n,e,i),t.elementType=qc,t.lanes=a,t;case Ni:return Pl(n.children,i,a,e);case eg:u=8,i|=24;break;case Vc:return t=xe(12,n,e,i|2),t.elementType=Vc,t.lanes=a,t;case Gc:return t=xe(13,n,e,i),t.elementType=Gc,t.lanes=a,t;case Yc:return t=xe(19,n,e,i),t.elementType=Yc,t.lanes=a,t;case xv:case Xc:return t=i|32,t=xe(30,n,e,t),t.elementType=Xc,t.lanes=a,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 ng:u=9;break t;case Ks:u=11;break t;case Zs:u=14;break t;case ul: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,i),e.elementType=t,e.type=l,e.lanes=a,e}function Pl(t,e,n,l){return t=xe(7,t,l,e),t.lanes=n,t}function yc(t,e,n){return t=xe(6,t,null,e),t.lanes=n,t}function Gg(t){var e=xe(18,null,null,0);return e.stateNode=t,e}function bc(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 Bm=new WeakMap;function Ze(t,e){if(typeof t=="object"&&t!==null){var n=Bm.get(t);return n!==void 0?n:(e={value:t,source:e,stack:gm(e)},Bm.set(t,e),e)}return{value:t,source:e,stack:gm(e)}}var _i=[],Hi=0,Lo=null,Fa=0,Qe=[],Pe=0,Nl=null,xn=1,Tn="";function Gn(t,e){_i[Hi++]=Fa,_i[Hi++]=Lo,Lo=t,Fa=e}function Yg(t,e,n){Qe[Pe++]=xn,Qe[Pe++]=Tn,Qe[Pe++]=Nl,Nl=t;var l=xn;t=Tn;var i=32-Le(l)-1;l&=~(1<<i),n+=1;var a=32-Le(e)+i;if(30<a){var u=i-i%5;a=(l&(1<<u)-1).toString(32),l>>=u,i-=u,xn=1<<32-Le(e)+i|n<<i|l,Tn=a+t}else xn=1<<a|n<<i|l,Tn=t}function sr(t){t.return!==null&&(Gn(t,1),Yg(t,1,0))}function rf(t){for(;t===Lo;)Lo=_i[--Hi],_i[Hi]=null,Fa=_i[--Hi],_i[Hi]=null;for(;t===Nl;)Nl=Qe[--Pe],Qe[Pe]=null,Tn=Qe[--Pe],Qe[Pe]=null,xn=Qe[--Pe],Qe[Pe]=null}function qg(t,e){Qe[Pe++]=xn,Qe[Pe++]=Tn,Qe[Pe++]=Nl,xn=e.id,Tn=e.overflow,Nl=t}var Yt=null,mt=null,G=!1,pl=null,Je=!1,es=Error(N(519));function wl(t){var e=Error(N(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ia(Ze(e,t)),es}function Vm(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<eu.length;n++)q(eu[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),yg(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),vg(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||Ty(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||wl(t,!0)}function Uo(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 vi(t){if(t!==Yt)return!1;if(!G)return Uo(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")||Gs(t.type,t.memoizedProps)),n=!n),n&&mt&&wl(t),Uo(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(N(317));mt=Hh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(N(317));mt=Hh(t)}else e===27?(e=mt,Ol(t.type)?(t=js,js=null,mt=t):mt=e):mt=Yt?Fe(t.stateNode.nextSibling):null;return!0}function Fl(){mt=Yt=null,G=!1}function vc(){var t=pl;return t!==null&&(Se===null?Se=t:Se.push.apply(Se,t),pl=null),t}function Ia(t){pl===null?pl=[t]:pl.push(t)}var ns=An(null),ri=null,Yn=null;function fl(t,e,n){ht(ns,e._currentValue),e._currentValue=n}function Xn(t){t._currentValue=ns.current,Pt(ns)}function ho(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 ls(t,e,n,l){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){var u=i.child;a=a.firstContext;t:for(;a!==null;){var o=a;a=i;for(var r=0;r<e.length;r++)if(o.context===e[r]){a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),ho(a.return,n,t),l||(u=null);break t}a=o.next}}else if(i.tag===18){if(u=i.return,u===null)throw Error(N(341));u.lanes|=n,a=u.alternate,a!==null&&(a.lanes|=n),ho(u,n,t),u=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),ho(i.return,n,t),u=i.child,u=u!==null?u.sibling:null):u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===t){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}}function Il(t,e,n,l){t=null;for(var i=e,a=!1;i!==null;){if(!a){if((i.flags&524288)!==0)a=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var u=i.alternate;if(u===null)throw Error(N(387));if(u=u.memoizedProps,u!==null){var o=i.type;Be(i.pendingProps.value,u.value)||(t!==null?t.push(o):t=[o])}}else if(i===Ro.current){if(u=i.alternate,u===null)throw Error(N(387));u.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push(na):t=[na])}i=i.return}return t!==null&&ls(e,t,n,l),e.flags|=262144,t!==null}function Bo(t){for(t=t.firstContext;t!==null;){if(!Be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function $l(t){ri=t,Yn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Qt(t){return Xg(ri,t)}function Ju(t,e){return ri===null&&$l(t),Xg(t,e)}function Xg(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Yn===null){if(t===null)throw Error(N(308));Yn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Yn=Yn.next=e;return n}var U1=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()})}},B1=Ht.unstable_scheduleCallback,V1=Ht.unstable_NormalPriority,zt={$$typeof:Sn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cf(){return{controller:new U1,data:new Map,refCount:0}}function hu(t){t.refCount--,t.refCount===0&&B1(V1,function(){t.controller.abort()})}function Gm(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 Oa=null;function G1(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var Ua=null,is=0,Wl=0,Gi=null;function Y1(t,e){if(Ua===null){var n=Ua=[];is=0,Wl=Bf(),Gi={status:"pending",value:void 0,then:function(l){n.push(l)}}}return is++,e.then(Ym,Ym),e}function Ym(){if(--is===0&&(Oa=null,Ua!==null)){Gi!==null&&(Gi.status="fulfilled");var t=Ua;Ua=null,Wl=0,Gi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function q1(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var i=0;i<n.length;i++)(0,n[i])(e)},function(i){for(l.status="rejected",l.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),l}var qm=H.S;H.S=function(t,e){if(uy=_e(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Y1(t,e),Oa!==null)for(var n=Wi;n!==null;)Gm(n,Oa),n=n.next;if(n=t.types,n!==null){for(var l=Wi;l!==null;)Gm(l,n),l=l.next;if(Wl!==0){l=Oa,l===null&&(l=Oa=[]);for(var i=0;i<n.length;i++){var a=n[i];l.indexOf(a)===-1&&l.push(a)}}}qm!==null&&qm(t,e)};var Kl=An(null);function sf(){var t=Kl.current;return t!==null?t:rt.pooledCache}function go(t,e){e===null?ht(Kl,Kl.current):ht(Kl,e.pool)}function jg(){var t=sf();return t===null?null:{parent:zt._currentValue,pool:t}}var oa=Error(N(460)),ff=Error(N(474)),fr=Error(N(542)),Vo={then:function(){}};function Xm(t){return t=t.status,t==="fulfilled"||t==="rejected"}function kg(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,km(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 i=e;i.status="fulfilled",i.value=l}},function(l){if(e.status==="pending"){var i=e;i.status="rejected",i.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,km(t),t}throw Zl=e,oa}}function ql(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Zl=n,oa):n}}var Zl=null;function jm(){if(Zl===null)throw Error(N(459));var t=Zl;return Zl=null,t}function km(t){if(t===oa||t===fr)throw Error(N(483))}var Yi=null,$a=0;function Fu(t){var e=$a;return $a+=1,Yi===null&&(Yi=[]),kg(Yi,t,e)}function ll(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Iu(t,e){throw e.$$typeof===Ev?Error(N(525)):(t=Object.prototype.toString.call(e),Error(N(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Qg(t){function e(d,h){if(t){var p=d.deletions;p===null?(d.deletions=[h],d.flags|=16):p.push(h)}}function n(d,h){if(!t)return null;for(;h!==null;)e(d,h),h=h.sibling;return null}function l(d){for(var h=new Map;d!==null;)d.key===null?h.set(d.index,d):h.set(d.key,d),d=d.sibling;return h}function i(d,h){return d=qn(d,h),d.index=0,d.sibling=null,d}function a(d,h,p){return d.index=p,t?(p=d.alternate,p!==null?(p=p.index,p<h?(d.flags|=2,h):p):(d.flags|=134217730,h)):(d.flags|=1048576,h)}function u(d){return t&&d.alternate===null&&(d.flags|=134217730),d}function o(d,h,p,y){return h===null||h.tag!==6?(h=yc(p,d.mode,y),h.return=d,h):(h=i(h,p),h.return=d,h)}function r(d,h,p,y){var x=p.type;return x===Ni?(d=m(d,h,p.props.children,y,p.key),ll(d,p),d):h!==null&&(h.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ul&&ql(x)===h.type)?(h=i(h,p.props),ll(h,p),h.return=d,h):(h=mo(p.type,p.key,p.props,null,d.mode,y),ll(h,p),h.return=d,h)}function c(d,h,p,y){return h===null||h.tag!==4||h.stateNode.containerInfo!==p.containerInfo||h.stateNode.implementation!==p.implementation?(h=bc(p,d.mode,y),h.return=d,h):(h=i(h,p.children||[]),h.return=d,h)}function m(d,h,p,y,x){return h===null||h.tag!==7?(h=Pl(p,d.mode,y,x),h.return=d,h):(h=i(h,p),h.return=d,h)}function g(d,h,p){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=yc(""+h,d.mode,p),h.return=d,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case qu:return p=mo(h.type,h.key,h.props,null,d.mode,p),ll(p,h),p.return=d,p;case Ra:return h=bc(h,d.mode,p),h.return=d,h;case ul:return h=ql(h),g(d,h,p)}if(za(h)||xa(h))return h=Pl(h,d.mode,p,null),h.return=d,h;if(typeof h.then=="function")return g(d,Fu(h),p);if(h.$$typeof===Sn)return g(d,Ju(d,h),p);Iu(d,h)}return null}function s(d,h,p,y){var x=h!==null?h.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return x!==null?null:o(d,h,""+p,y);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case qu:return p.key===x?r(d,h,p,y):null;case Ra:return p.key===x?c(d,h,p,y):null;case ul:return p=ql(p),s(d,h,p,y)}if(za(p)||xa(p))return x!==null?null:m(d,h,p,y,null);if(typeof p.then=="function")return s(d,h,Fu(p),y);if(p.$$typeof===Sn)return s(d,h,Ju(d,p),y);Iu(d,p)}return null}function f(d,h,p,y,x){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return d=d.get(p)||null,o(h,d,""+y,x);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case qu:return d=d.get(y.key===null?p:y.key)||null,r(h,d,y,x);case Ra:return d=d.get(y.key===null?p:y.key)||null,c(h,d,y,x);case ul:return y=ql(y),f(d,h,p,y,x)}if(za(y)||xa(y))return d=d.get(p)||null,m(h,d,y,x,null);if(typeof y.then=="function")return f(d,h,p,Fu(y),x);if(y.$$typeof===Sn)return f(d,h,p,Ju(h,y),x);Iu(h,y)}return null}function b(d,h,p,y){for(var x=null,T=null,M=h,w=h=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),h=a(C,h,w),T===null?x=C:T.sibling=C,T=C,M=z}if(w===p.length)return n(d,M),G&&Gn(d,w),x;if(M===null){for(;w<p.length;w++)M=g(d,p[w],y),M!==null&&(h=a(M,h,w),T===null?x=M:T.sibling=M,T=M);return G&&Gn(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)),h=a(z,h,w),T===null?x=z:T.sibling=z,T=z);return t&&M.forEach(function($){return e(d,$)}),G&&Gn(d,w),x}function S(d,h,p,y){if(p==null)throw Error(N(151));for(var x=null,T=null,M=h,w=h=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),h=a($,h,w),T===null?x=$:T.sibling=$,T=$,M=z}if(C.done)return n(d,M),G&&Gn(d,w),x;if(M===null){for(;!C.done;w++,C=p.next())C=g(d,C.value,y),C!==null&&(h=a(C,h,w),T===null?x=C:T.sibling=C,T=C);return G&&Gn(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)),h=a(C,h,w),T===null?x=C:T.sibling=C,T=C);return t&&M.forEach(function(pt){return e(d,pt)}),G&&Gn(d,w),x}function v(d,h,p,y){if(typeof p=="object"&&p!==null&&p.type===Ni&&p.key===null&&p.props.ref===void 0&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case qu:t:{for(var x=p.key;h!==null;){if(h.key===x){if(x=p.type,x===Ni){if(h.tag===7){n(d,h.sibling),y=i(h,p.props.children),ll(y,p),y.return=d,d=y;break t}}else if(h.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ul&&ql(x)===h.type){n(d,h.sibling),y=i(h,p.props),ll(y,p),y.return=d,d=y;break t}n(d,h);break}else e(d,h);h=h.sibling}p.type===Ni?(y=Pl(p.props.children,d.mode,y,p.key),ll(y,p),y.return=d,d=y):(y=mo(p.type,p.key,p.props,null,d.mode,y),ll(y,p),y.return=d,d=y)}return u(d);case Ra:t:{for(x=p.key;h!==null;){if(h.key===x)if(h.tag===4&&h.stateNode.containerInfo===p.containerInfo&&h.stateNode.implementation===p.implementation){n(d,h.sibling),y=i(h,p.children||[]),y.return=d,d=y;break t}else{n(d,h);break}else e(d,h);h=h.sibling}y=bc(p,d.mode,y),y.return=d,d=y}return u(d);case ul:return p=ql(p),v(d,h,p,y)}if(za(p))return b(d,h,p,y);if(xa(p)){if(x=xa(p),typeof x!="function")throw Error(N(150));return p=x.call(p),S(d,h,p,y)}if(typeof p.then=="function")return v(d,h,Fu(p),y);if(p.$$typeof===Sn)return v(d,h,Ju(d,p),y);Iu(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,h!==null&&h.tag===6?(n(d,h.sibling),y=i(h,p),y.return=d,d=y):(n(d,h),y=yc(p,d.mode,y),y.return=d,d=y),u(d)):n(d,h)}return function(d,h,p,y){try{$a=0;var x=v(d,h,p,y);return Yi=null,x}catch(M){if(M===oa||M===fr)throw M;var T=xe(29,M,null,d.mode);return T.lanes=y,T.return=d,T}finally{}}}var ti=Qg(!0),Pg=Qg(!1),ol=!1;function df(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function as(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 yl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function bl(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(tt&2)!==0){var i=l.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),l.pending=e,e=Ho(t),Bg(t,null,n),e}return cr(t,l,e,n),Ho(t)}function Ba(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,cg(t,n)}}function Sc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var u={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=u:a=a.next=u,n=n.next}while(n!==null);a===null?i=a=e:a=a.next=e}else i=a=e;n={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:a,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 us=!1;function Va(){if(us){var t=Gi;if(t!==null)throw t}}function Ga(t,e,n,l){us=!1;var i=t.updateQueue;ol=!1;var a=i.firstBaseUpdate,u=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var r=o,c=r.next;r.next=null,u===null?a=c:u.next=c,u=r;var m=t.alternate;m!==null&&(m=m.updateQueue,o=m.lastBaseUpdate,o!==u&&(o===null?m.firstBaseUpdate=c:o.next=c,m.lastBaseUpdate=r))}if(a!==null){var g=i.baseState;u=0,m=c=r=null,o=a;do{var s=o.lane&-536870913,f=s!==o.lane;if(f?(Q&s)===s:(l&s)===s){s!==0&&s===Wl&&(us=!0),m!==null&&(m=m.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:ol=!0}}s=o.callback,s!==null&&(t.flags|=64,f&&(t.flags|=8192),f=i.callbacks,f===null?i.callbacks=[s]:f.push(s))}else f={lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},m===null?(c=m=f,r=g):m=m.next=f,u|=s;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;f=o,o=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);m===null&&(r=g),i.baseState=r,i.firstBaseUpdate=c,i.lastBaseUpdate=m,a===null&&(i.shared.lanes=0),zl|=u,t.lanes=u,t.memoizedState=g}}function Kg(t,e){if(typeof t!="function")throw Error(N(191,t));t.call(e)}function Zg(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Kg(n[t],e)}var Al=An(null),Go=An(0);function Qm(t,e){t=Zn,ht(Go,t),ht(Al,e),Zn=t|e.baseLanes}function os(){ht(Go,Zn),ht(Al,Al.current)}function mf(){Zn=Go.current,Pt(Al),Pt(Go)}var Jt=An(null),ne=null;function vl(t){var e=t.alternate;ht(Kt,Kt.current&1),ht(Jt,t),ne===null&&(e===null||Al.current!==null||e.memoizedState!==null)&&(ne=t)}function rs(t){ht(Kt,Kt.current),ht(Jt,t),ne===null&&(ne=t)}function Jg(t){t.tag===22?(ht(Kt,Kt.current),ht(Jt,t),ne===null&&(ne=t)):Sl()}function Sl(){ht(Kt,Kt.current),ht(Jt,Jt.current)}function Ce(t){Pt(Jt),ne===t&&(ne=null),Pt(Kt)}var Kt=An(0);function Wa(t,e){ht(Jt,Jt.current),ht(Kt,e)}function hf(t){Pt(Kt),Pt(Jt),ne===t&&(ne=null)}function Yo(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Xs(n)||qf(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 Qn=0,V=null,ut=null,Rt=null,qo=!1,qi=!1,ei=!1,Xo=0,tu=0,Xi=null,X1=0;function Tt(){throw Error(N(321))}function gf(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 pf(t,e,n,l,i,a){return Qn=a,V=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,H.H=t===null||t.memoizedState===null?wp:Ap,ei=!1,a=n(l,i),ei=!1,qi&&(a=Ig(e,n,l,i)),Fg(t),a}function Fg(t){H.H=jo;var e=ut!==null&&ut.next!==null;if(Qn=0,Rt=ut=V=null,qo=!1,tu=0,Xi=null,e)throw Error(N(300));t===null||Ct||(t=t.dependencies,t!==null&&Bo(t)&&(Ct=!0))}function Ig(t,e,n,l){V=t;var i=0;do{if(qi&&(Xi=null),tu=0,qi=!1,25<=i)throw Error(N(301));if(i+=1,Rt=ut=null,t.updateQueue!=null){var a=t.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}H.H=F1,a=e(n,l)}while(qi);return a}function j1(){var t=H.H,e=t.useState()[0];return e=typeof e.then=="function"?gu(e):e,t=t.useState()[0],(ut!==null?ut.memoizedState:null)!==t&&(V.flags|=1024),e}function yf(){var t=Xo!==0;return Xo=0,t}function bf(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function vf(t){if(qo){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}qo=!1}Qn=0,Rt=ut=V=null,qi=!1,tu=Xo=0,Xi=null}function se(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?V.memoizedState=Rt=t:Rt=Rt.next=t,Rt}function Nt(){if(ut===null){var t=V.alternate;t=t!==null?t.memoizedState:null}else t=ut.next;var e=Rt===null?V.memoizedState:Rt.next;if(e!==null)Rt=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},Rt===null?V.memoizedState=Rt=t:Rt=Rt.next=t}return Rt}function dr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gu(t){var e=tu;return tu+=1,Xi===null&&(Xi=[]),t=kg(Xi,t,e),e=V,(Rt===null?e.memoizedState:Rt.next)===null&&(e=e.alternate,H.H=e===null||e.memoizedState===null?wp:Ap),t}function mr(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return gu(t);if(t.$$typeof===Mv)return;if(t.$$typeof===Sn)return Qt(t)}throw Error(N(438,String(t)))}function Sf(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(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=dr(),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]=Tv;return e.index++,n}function Pn(t,e){return typeof e=="function"?e(t):e}function po(t){var e=Nt();return Ef(e,ut,t)}function Ef(t,e,n){var l=t.queue;if(l===null)throw Error(N(311));l.lastRenderedReducer=n;var i=t.baseQueue,a=l.pending;if(a!==null){if(i!==null){var u=i.next;i.next=a.next,a.next=u}e.baseQueue=i=a,l.pending=null}if(a=t.baseState,i===null)t.memoizedState=a;else{e=i.next;var o=u=null,r=null,c=e,m=!1;do{var g=c.lane&-536870913;if(g!==c.lane?(Q&g)===g:(Qn&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===Wl&&(m=!0);else if((Qn&s)===s){c=c.next,s===Wl&&(m=!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=a):r=r.next=g,V.lanes|=s,zl|=s;g=c.action,ei&&n(a,g),a=c.hasEagerState?c.eagerState:n(a,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=a):r=r.next=s,V.lanes|=g,zl|=g;c=c.next}while(c!==null&&c!==e);if(r===null?u=a:r.next=o,!Be(a,t.memoizedState)&&(Ct=!0,m&&(n=Gi,n!==null)))throw n;t.memoizedState=a,t.baseState=u,t.baseQueue=r,l.lastRenderedState=a}return i===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Ec(t){var e=Nt(),n=e.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=t;var l=n.dispatch,i=n.pending,a=e.memoizedState;if(i!==null){n.pending=null;var u=i=i.next;do a=t(a,u.action),u=u.next;while(u!==i);Be(a,e.memoizedState)||(Ct=!0),e.memoizedState=a,e.baseQueue===null&&(e.baseState=a),n.lastRenderedState=a}return[a,l]}function $g(t,e,n){var l=V,i=Nt(),a=G;if(a){if(n===void 0)throw Error(N(407));n=n()}else n=e();var u=!Be((ut||i).memoizedState,n);if(u&&(i.memoizedState=n,Ct=!0),i=i.queue,xf(ep.bind(null,l,i,t),[t]),t=i.getSnapshot!==e||u||Rt!==null&&(Rt.memoizedState.tag&1)!==0,Ji(t?9:8,{destroy:void 0},tp.bind(null,l,i,n,e),null),t){if(l.flags|=2048,rt===null)throw Error(N(349));a||(Qn&127)!==0||Wg(l,e,n)}return n}function Wg(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=V.updateQueue,e===null?(e=dr(),V.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function tp(t,e,n,l){e.value=n,e.getSnapshot=l,np(e)&&lp(t)}function ep(t,e,n){return n(function(){np(e)&&lp(t)})}function np(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Be(t,n)}catch{return!0}}function lp(t){var e=oi(t,2);e!==null&&Te(e,t,2)}function cs(t){var e=se();if(typeof t=="function"){var n=t;if(t=n(),ei){cl(!0);try{n()}finally{cl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:t},e}function ip(t,e,n,l){return t.baseState=n,Ef(t,ut,typeof l=="function"?l:Pn)}function k1(t,e,n,l,i){if(gr(t))throw Error(N(485));if(t=e.action,t!==null){var a={payload:i,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){a.listeners.push(u)}};H.T!==null?n(!0):a.isTransition=!1,l(a),n=e.pending,n===null?(a.next=e.pending=a,ap(e,a)):(a.next=n.next,e.pending=n.next=a)}}function ap(t,e){var n=e.action,l=e.payload,i=t.state;if(e.isTransition){var a=H.T,u={};u.types=a!==null?a.types:null,H.T=u;try{var o=n(i,l),r=H.S;r!==null&&r(u,o),Pm(t,e,o)}catch(c){ss(t,e,c)}finally{a!==null&&u.types!==null&&(a.types=u.types),H.T=a}}else try{a=n(i,l),Pm(t,e,a)}catch(c){ss(t,e,c)}}function Pm(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Km(t,e,l)},function(l){return ss(t,e,l)}):Km(t,e,n)}function Km(t,e,n){e.status="fulfilled",e.value=n,up(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,ap(t,n)))}function ss(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,up(e),e=e.next;while(e!==l)}t.action=null}function up(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function op(t,e){return e}function Zm(t,e){if(G){var n=rt.formState;if(n!==null){t:{var l=V;if(G){if(mt){e:{for(var i=mt,a=Je;i.nodeType!==8;){if(!a){i=null;break e}if(i=Fe(i.nextSibling),i===null){i=null;break e}}a=i.data,i=a==="F!"||a==="F"?i:null}if(i){mt=Fe(i.nextSibling),l=i.data==="F!";break t}}wl(l)}l=!1}l&&(e=n[0])}}return n=se(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:op,lastRenderedState:e},n.queue=l,n=Tp.bind(null,V,l),l.dispatch=n,l=cs(!1),a=wf.bind(null,V,!1,l.queue),l=se(),i={state:e,dispatch:null,action:t,pending:null},l.queue=i,n=k1.bind(null,V,i,a,n),i.dispatch=n,l.memoizedState=t,[e,n,!1]}function Jm(t){var e=Nt();return rp(e,ut,t)}function rp(t,e,n){if(e=Ef(t,e,op)[0],t=po(Pn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=gu(e)}catch(u){throw u===oa?fr:u}else l=e;e=Nt();var i=e.queue,a=i.dispatch;return n!==e.memoizedState&&(V.flags|=2048,Ji(9,{destroy:void 0},Q1.bind(null,i,n),null)),[l,a,t]}function Q1(t,e){t.action=e}function Fm(t){var e=Nt(),n=ut;if(n!==null)return rp(e,n,t);Nt(),e=e.memoizedState,n=Nt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Ji(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=V.updateQueue,e===null&&(e=dr(),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 cp(){return Nt().memoizedState}function yo(t,e,n,l){var i=se();V.flags|=t,i.memoizedState=Ji(1|e,{destroy:void 0},n,l===void 0?null:l)}function hr(t,e,n,l){var i=Nt();l=l===void 0?null:l;var a=i.memoizedState.inst;ut!==null&&l!==null&&gf(l,ut.memoizedState.deps)?i.memoizedState=Ji(e,a,n,l):(V.flags|=t,i.memoizedState=Ji(1|e,a,n,l))}function Im(t,e){yo(8390656,8,t,e)}function xf(t,e){hr(2048,8,t,e)}function P1(t){V.flags|=4;var e=V.updateQueue;if(e===null)e=dr(),V.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function sp(t){var e=Nt().memoizedState;return P1({ref:e,nextImpl:t}),function(){if((tt&2)!==0)throw Error(N(440));return e.impl.apply(void 0,arguments)}}function fp(t,e){return hr(4,2,t,e)}function dp(t,e){return hr(4,4,t,e)}function mp(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 hp(t,e,n){n=n!=null?n.concat([t]):null,hr(4,4,mp.bind(null,e,t),n)}function Tf(){}function gp(t,e){var n=Nt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&gf(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function pp(t,e){var n=Nt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&gf(e,l[1]))return l[0];if(l=t(),ei){cl(!0);try{t()}finally{cl(!1)}}return n.memoizedState=[l,e],l}function Mf(t,e,n){return n===void 0||(Qn&1073741824)!==0&&(Q&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=ry(),V.lanes|=t,zl|=t,n)}function yp(t,e,n,l){return Be(n,e)?n:Al.current!==null?(t=Mf(t,n,l),Be(t,e)||(Ct=!0),t):(Qn&106)===0||(Qn&1073741824)!==0&&(Q&261930)===0?(Ct=!0,t.memoizedState=n):(t=ry(),V.lanes|=t,zl|=t,e)}function bp(t,e,n,l,i){var a=et.p;et.p=a!==0&&8>a?a:8;var u=H.T,o={};o.types=u!==null?u.types:null,H.T=o,wf(t,!1,e,n);try{var r=i(),c=H.S;if(c!==null&&c(o,r),r!==null&&typeof r=="object"&&typeof r.then=="function"){var m=q1(r,l);Ya(t,e,m,Ue(t))}else Ya(t,e,l,Ue(t))}catch(g){Ya(t,e,{then:function(){},status:"rejected",reason:g},Ue())}finally{et.p=a,u!==null&&o.types!==null&&(u.types=o.types),H.T=u}}function K1(){}function fs(t,e,n,l){if(t.tag!==5)throw Error(N(476));var i=vp(t).queue;bp(t,i,e,Ql,n===null?K1:function(){return Sp(t),n(l)})}function vp(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Ql,baseState:Ql,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:Ql},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Sp(t){var e=vp(t);e.next===null&&(e=t.alternate.memoizedState),Ya(t,e.next.queue,{},Ue())}function Nf(){return Qt(na)}function Ep(){return Nt().memoizedState}function xp(){return Nt().memoizedState}function Z1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ue();t=yl(n);var l=bl(e,t,n);l!==null&&(Te(l,e,n),Ba(l,e,n)),e={cache:cf()},t.payload=e;return}e=e.return}}function J1(t,e,n){var l=Ue();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},gr(t)?Mp(e,n):(n=uf(t,e,n,l),n!==null&&(Te(n,t,l),Np(n,e,l)))}function Tp(t,e,n){var l=Ue();Ya(t,e,n,l)}function Ya(t,e,n,l){var i={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(gr(t))Mp(e,i);else{var a=t.alternate;if(t.lanes===0&&(a===null||a.lanes===0)&&(a=e.lastRenderedReducer,a!==null))try{var u=e.lastRenderedState,o=a(u,n);if(i.hasEagerState=!0,i.eagerState=o,Be(o,u))return cr(t,e,i,0),rt===null&&rr(),!1}catch{}finally{}if(n=uf(t,e,i,l),n!==null)return Te(n,t,l),Np(n,e,l),!0}return!1}function wf(t,e,n,l){if(l={lane:2,revertLane:Bf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},gr(t)){if(e)throw Error(N(479))}else e=uf(t,n,l,2),e!==null&&Te(e,t,2)}function gr(t){var e=t.alternate;return t===V||e!==null&&e===V}function Mp(t,e){qi=qo=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Np(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,cg(t,n)}}var jo={readContext:Qt,use:mr,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},wp={readContext:Qt,use:mr,useCallback:function(t,e){return se().memoizedState=[t,e===void 0?null:e],t},useContext:Qt,useEffect:Im,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,yo(4194308,4,mp.bind(null,e,t),n)},useLayoutEffect:function(t,e){return yo(4194308,4,t,e)},useInsertionEffect:function(t,e){yo(4,2,t,e)},useMemo:function(t,e){var n=se();e=e===void 0?null:e;var l=t();if(ei){cl(!0);try{t()}finally{cl(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=se();if(n!==void 0){var i=n(e);if(ei){cl(!0);try{n(e)}finally{cl(!1)}}}else i=e;return l.memoizedState=l.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},l.queue=t,t=t.dispatch=J1.bind(null,V,t),[l.memoizedState,t]},useRef:function(t){var e=se();return t={current:t},e.memoizedState=t},useState:function(t){t=cs(t);var e=t.queue,n=Tp.bind(null,V,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Tf,useDeferredValue:function(t,e){var n=se();return Mf(n,t,e)},useTransition:function(){var t=cs(!1);return t=bp.bind(null,V,t.queue,!0,!1),se().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=V,i=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||Wg(l,e,n)}i.memoizedState=n;var a={value:n,getSnapshot:e};return i.queue=a,Im(ep.bind(null,l,a,t),[t]),l.flags|=2048,Ji(9,{destroy:void 0},tp.bind(null,l,a,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=Xo++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=X1++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Nf,useFormState:Zm,useActionState:Zm,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=wf.bind(null,V,!0,n),n.dispatch=e,[t,e]},useMemoCache:Sf,useCacheRefresh:function(){return se().memoizedState=Z1.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)}}},Ap={readContext:Qt,use:mr,useCallback:gp,useContext:Qt,useEffect:xf,useImperativeHandle:hp,useInsertionEffect:fp,useLayoutEffect:dp,useMemo:pp,useReducer:po,useRef:cp,useState:function(){return po(Pn)},useDebugValue:Tf,useDeferredValue:function(t,e){var n=Nt();return yp(n,ut.memoizedState,t,e)},useTransition:function(){var t=po(Pn)[0],e=Nt().memoizedState;return[typeof t=="boolean"?t:gu(t),e]},useSyncExternalStore:$g,useId:Ep,useHostTransitionStatus:Nf,useFormState:Jm,useActionState:Jm,useOptimistic:function(t,e){var n=Nt();return ip(n,ut,t,e)},useMemoCache:Sf,useCacheRefresh:xp,useEffectEvent:sp},F1={readContext:Qt,use:mr,useCallback:gp,useContext:Qt,useEffect:xf,useImperativeHandle:hp,useInsertionEffect:fp,useLayoutEffect:dp,useMemo:pp,useReducer:Ec,useRef:cp,useState:function(){return Ec(Pn)},useDebugValue:Tf,useDeferredValue:function(t,e){var n=Nt();return ut===null?Mf(n,t,e):yp(n,ut.memoizedState,t,e)},useTransition:function(){var t=Ec(Pn)[0],e=Nt().memoizedState;return[typeof t=="boolean"?t:gu(t),e]},useSyncExternalStore:$g,useId:Ep,useHostTransitionStatus:Nf,useFormState:Fm,useActionState:Fm,useOptimistic:function(t,e){var n=Nt();return ut!==null?ip(n,ut,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Sf,useCacheRefresh:xp,useEffectEvent:sp};function xc(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 ds={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Ue(),i=yl(l);i.payload=e,n!=null&&(i.callback=n),e=bl(t,i,l),e!==null&&(Te(e,t,l),Ba(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Ue(),i=yl(l);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=bl(t,i,l),e!==null&&(Te(e,t,l),Ba(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ue(),l=yl(n);l.tag=2,e!=null&&(l.callback=e),e=bl(t,l,n),e!==null&&(Te(e,t,n),Ba(e,t,n))}};function $m(t,e,n,l,i,a,u){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,a,u):e.prototype&&e.prototype.isPureReactComponent?!Ja(n,l)||!Ja(i,a):!0}function Wm(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&&ds.enqueueReplaceState(e,e.state,null)}function ni(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 i in t)n[i]===void 0&&(n[i]=t[i])}return n}function Rp(t){_o(t)}function zp(t){console.error(t)}function Cp(t){_o(t)}function ko(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function th(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function ms(t,e,n){return n=yl(n),n.tag=3,n.payload={element:null},n.callback=function(){ko(t,e)},n}function Op(t){return t=yl(t),t.tag=3,t}function Dp(t,e,n,l){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var a=l.value;t.payload=function(){return i(a)},t.callback=function(){th(e,n,l)}}var u=n.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(t.callback=function(){th(e,n,l),typeof i!="function"&&(El===null?El=new Set([this]):El.add(this));var o=l.stack;this.componentDidCatch(l.value,{componentStack:o!==null?o:""})})}function I1(t,e,n,l,i){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Il(e,n,i,!0),n=Jt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return ne===null?$o():n.alternate===null&&Mt===0&&(Mt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,l===Vo?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),zc(t,l,i)),!1;case 22:return n.flags|=65536,l===Vo?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)),zc(t,l,i)),!1}throw Error(N(435,n.tag))}return zc(t,l,i),$o(),!1}if(G)return e=Jt.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,l!==es&&(t=Error(N(422),{cause:l}),Ia(Ze(t,n)))):(l!==es&&(e=Error(N(423),{cause:l}),Ia(Ze(e,n))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,l=Ze(l,n),i=ms(t.stateNode,l,i),Sc(t,i),Mt!==4&&(Mt=2)),!1;var a=Error(N(520),{cause:l});if(a=Ze(a,n),ka===null?ka=[a]:ka.push(a),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=i&-i,n.lanes|=t,t=ms(n.stateNode,l,t),Sc(n,t),!1;case 1:if(e=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(El===null||!El.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Op(i),Dp(i,t,n,l),Sc(n,i),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Af=Error(N(461)),Ct=!1;function Dt(t,e,n,l){e.child=t===null?Pg(e,null,n,l):ti(e,t.child,n,l)}function eh(t,e,n,l,i){n=n.render;var a=e.ref;if("ref"in l){var u={};for(var o in l)o!=="ref"&&(u[o]=l[o])}else u=l;return $l(e),l=pf(t,e,n,u,a,i),o=yf(),t!==null&&!Ct?(bf(t,e,i),Kn(t,e,i)):(G&&o&&sr(e),e.flags|=1,Dt(t,e,l,i),e.child)}function nh(t,e,n,l,i){if(t===null){var a=n.type;return typeof a=="function"&&!of(a)&&a.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=a,_p(t,e,a,l,i)):(t=mo(n.type,null,l,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(a=t.child,!zf(t,i)){var u=a.memoizedProps;if(n=n.compare,n=n!==null?n:Ja,n(u,l)&&t.ref===e.ref)return Kn(t,e,i)}return e.flags|=1,t=qn(a,l),t.ref=e.ref,t.return=e,e.child=t}function _p(t,e,n,l,i){if(t!==null){var a=t.memoizedProps;if(Ja(a,l)&&t.ref===e.ref)if(Ct=!1,e.pendingProps=l=a,zf(t,i))(t.flags&131072)!==0&&(Ct=!0);else return e.lanes=t.lanes,Kn(t,e,i)}return hs(t,e,n,l,i)}function Hp(t,e,n,l){var i=l.children,a=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(a=a!==null?a.baseLanes|n:n,t!==null){for(l=e.child=t.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~a}else l=0,e.child=null;return lh(t,e,a,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&go(e,a!==null?a.cachePool:null),a!==null?Qm(e,a):os(),Jg(e);else return l=e.lanes=536870912,lh(t,e,a!==null?a.baseLanes|n:n,n,l)}else a!==null?(go(e,a.cachePool),Qm(e,a),Sl(),e.memoizedState=null):(t!==null&&go(e,null),os(),Sl());return Dt(t,e,i,n),e.child}function qa(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function lh(t,e,n,l,i){var a=sf();return a=a===null?null:{parent:zt._currentValue,pool:a},e.memoizedState={baseLanes:n,cachePool:a},t!==null&&go(e,null),os(),Jg(e),t!==null&&Il(t,e,l,!0),e.childLanes=i,null}function bo(t,e){return e=pr({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function ih(t,e,n){return ti(e,t.child,null,n),t=bo(e,e.pendingProps),t.flags|=2,Ce(e),e.memoizedState=null,t}function $1(t,e,n){var l=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(G){if(l.mode==="hidden")return t=bo(e,l),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},qa(null,t);if(rs(e),(t=mt)?(t=Hy(t,Je),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Nl!==null?{id:xn,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},n=Gg(t),n.return=e,e.child=n,Yt=e,mt=null)):t=null,t===null)throw wl(e);return e.lanes=536870912,null}return bo(e,l)}var a=t.memoizedState;if(a!==null){var u=a.dehydrated;if(rs(e),i)if(e.flags&256)e.flags&=-257,e=ih(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||Il(t,e,n,!1),i=(n&t.childLanes)!==0,Ct||i){if(Al.current===null){if(l=rt,l!==null&&(u=sg(l,n),u!==0&&u!==a.retryLane))throw a.retryLane=u,oi(t,u),Te(l,t,u),Af;$o()}e=ih(t,e,n)}else t=a.treeContext,mt=Fe(u.nextSibling),Yt=e,G=!0,pl=null,Je=!1,t!==null&&qg(e,t),e=bo(e,l),e.flags|=134221824;return e}return t=qn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ei(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 hs(t,e,n,l,i){return $l(e),n=pf(t,e,n,l,void 0,i),l=yf(),t!==null&&!Ct?(bf(t,e,i),Kn(t,e,i)):(G&&l&&sr(e),e.flags|=1,Dt(t,e,n,i),e.child)}function ah(t,e,n,l,i,a){return $l(e),e.updateQueue=null,n=Ig(e,l,n,i),Fg(t),l=yf(),t!==null&&!Ct?(bf(t,e,a),Kn(t,e,a)):(G&&l&&sr(e),e.flags|=1,Dt(t,e,n,a),e.child)}function uh(t,e,n,l,i){if($l(e),e.stateNode===null){var a=Di,u=n.contextType;typeof u=="object"&&u!==null&&(a=Qt(u)),a=new n(l,a),e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=ds,e.stateNode=a,a._reactInternals=e,a=e.stateNode,a.props=l,a.state=e.memoizedState,a.refs={},df(e),u=n.contextType,a.context=typeof u=="object"&&u!==null?Qt(u):Di,a.state=e.memoizedState,u=n.getDerivedStateFromProps,typeof u=="function"&&(xc(e,n,u,l),a.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(u=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),u!==a.state&&ds.enqueueReplaceState(a,a.state,null),Ga(e,l,a,i),Va(),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){a=e.stateNode;var o=e.memoizedProps,r=ni(n,o);a.props=r;var c=a.context,m=n.contextType;u=Di,typeof m=="object"&&m!==null&&(u=Qt(m));var g=n.getDerivedStateFromProps;m=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,m||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o||c!==u)&&Wm(e,a,l,u),ol=!1;var s=e.memoizedState;a.state=s,Ga(e,l,a,i),Va(),c=e.memoizedState,o||s!==c||ol?(typeof g=="function"&&(xc(e,n,g,l),c=e.memoizedState),(r=ol||$m(e,n,r,l,s,c,u))?(m||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=c),a.props=l,a.state=c,a.context=u,l=r):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{a=e.stateNode,as(t,e),u=e.memoizedProps,m=ni(n,u),a.props=m,g=e.pendingProps,s=a.context,c=n.contextType,r=Di,typeof c=="object"&&c!==null&&(r=Qt(c)),o=n.getDerivedStateFromProps,(c=typeof o=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==g||s!==r)&&Wm(e,a,l,r),ol=!1,s=e.memoizedState,a.state=s,Ga(e,l,a,i),Va();var f=e.memoizedState;u!==g||s!==f||ol||t!==null&&t.dependencies!==null&&Bo(t.dependencies)?(typeof o=="function"&&(xc(e,n,o,l),f=e.memoizedState),(m=ol||$m(e,n,m,l,s,f,r)||t!==null&&t.dependencies!==null&&Bo(t.dependencies))?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(l,f,r),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(l,f,r)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||u===t.memoizedProps&&s===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&s===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=f),a.props=l,a.state=f,a.context=r,l=m):(typeof a.componentDidUpdate!="function"||u===t.memoizedProps&&s===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&s===t.memoizedState||(e.flags|=1024),l=!1)}return a=l,Ei(t,e),l=(e.flags&128)!==0,a||l?(a=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:a.render(),e.flags|=1,t!==null&&l?(e.child=ti(e,t.child,null,i),e.child=ti(e,null,n,i)):Dt(t,e,n,i),e.memoizedState=a.state,t=e.child):t=Kn(t,e,i),t}function oh(t,e,n,l){return Fl(),e.flags|=256,Dt(t,e,n,l),e.child}var gs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ps(t){return{baseLanes:t,cachePool:jg()}}function ys(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=De),t}function Lp(t,e,n){var l=e.pendingProps,i=!1,a=(e.flags&128)!==0,u;if((u=a)||(u=t!==null&&t.memoizedState===null?!1:(Kt.current&2)!==0),u&&(i=!0,e.flags&=-129),u=(e.flags&32)!==0,e.flags&=-33,t===null){if(G){if(i?vl(e):Sl(),(t=mt)?(t=Hy(t,Je),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Nl!==null?{id:xn,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},n=Gg(t),n.return=e,e.child=n,Yt=e,mt=null)):t=null,t===null)throw wl(e);return qf(t)?e.lanes=32:e.lanes=536870912,null}return a=l.children,l=l.fallback,i?(Sl(),i=e.mode,a=pr({mode:"hidden",children:a},i),l=Pl(l,i,n,null),a.return=e,l.return=e,a.sibling=l,e.child=a,l=e.child,l.memoizedState=ps(n),l.childLanes=ys(t,u,n),e.memoizedState=gs,qa(null,l)):(vl(e),Rf(e,a))}var o=t.memoizedState;if(o!==null){var r=o.dehydrated;if(r!==null)return W1(t,e,a,u,l,r,o,n)}return i?(Sl(),i=l.fallback,a=e.mode,o=t.child,r=o.sibling,l=qn(o,{mode:"hidden",children:l.children}),l.subtreeFlags=o.subtreeFlags&1206910976,r!==null?i=qn(r,i):(i=Pl(i,a,n,null),i.flags|=2),i.return=e,l.return=e,l.sibling=i,e.child=l,qa(null,l),l=e.child,i=t.child.memoizedState,i===null?i=ps(n):(a=i.cachePool,a!==null?(o=zt._currentValue,a=a.parent!==o?{parent:o,pool:o}:a):a=jg(),i={baseLanes:i.baseLanes|n,cachePool:a}),l.memoizedState=i,l.childLanes=ys(t,u,n),e.memoizedState=gs,qa(t.child,l)):(vl(e),n=t.child,t=n.sibling,n=qn(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 Rf(t,e){return e=pr({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function pr(t,e){return t=xe(22,t,null,e),t.lanes=0,t}function $u(t,e,n){return ti(e,t.child,null,n),t=Rf(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function W1(t,e,n,l,i,a,u,o){if(n)return e.flags&256?(vl(e),e.flags&=-257,$u(t,e,o)):e.memoizedState!==null?(Sl(),e.child=t.child,e.flags|=128,null):(Sl(),a=i.fallback,u=e.mode,i=pr({mode:"visible",children:i.children},u),a=Pl(a,u,o,null),a.flags|=2,i.return=e,a.return=e,i.sibling=a,e.child=i,ti(e,t.child,null,o),i=e.child,i.memoizedState=ps(o),i.childLanes=ys(t,l,o),e.memoizedState=gs,qa(null,i));if(vl(e),qf(a)){if(l=a.nextSibling&&a.nextSibling.dataset,l)var r=l.dgst;return l=r,l!==""&&(i=Error(N(419)),i.stack="",i.digest=l,Ia({value:i,source:null,stack:null})),$u(t,e,o)}if(Ct||Il(t,e,o,!1),l=(o&t.childLanes)!==0,Ct||l){if(Al.current!==null)return $u(t,e,o);if(l=rt,l!==null&&(i=sg(l,o),i!==0&&i!==u.retryLane))throw u.retryLane=i,oi(t,i),Te(l,t,i),Af;return Xs(a)||$o(),$u(t,e,o)}return Xs(a)?(e.flags|=192,e.child=t.child,null):(t=u.treeContext,mt=Fe(a.nextSibling),Yt=e,G=!0,pl=null,Je=!1,t!==null&&qg(e,t),e=Rf(e,i.children),e.flags|=134221824,e)}function rh(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),ho(t.return,e,n)}function ch(t){for(var e=null;t!==null;){var n=t.alternate;n!==null&&Yo(n)===null&&(e=t),t=t.sibling}return e}function Wu(t,e,n,l,i,a){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:i,treeForkCount:a}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=l,u.tail=n,u.tailMode=i,u.treeForkCount=a)}function Tc(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 bs(t,e,n){var l=e.pendingProps,i=l.revealOrder,a=l.tail;l=l.children;var u=Kt.current;if(e.flags&128)return Wa(e,u),null;var o=(u&2)!==0;if(o?(u=u&1|2,e.flags|=128):u&=1,Wa(e,u),i==="backwards"&&t!==null?(Tc(t),Dt(t,e,l,n),Tc(t)):Dt(t,e,l,n),l=G?Fa:0,!o&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&rh(t,n,e);else if(t.tag===19)rh(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(i){case"backwards":n=ch(e.child),n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null,Tc(e)),Wu(e,!0,i,null,a,l);break;case"unstable_legacy-backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Yo(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Wu(e,!0,n,null,a,l);break;case"together":Wu(e,!1,null,null,void 0,l);break;case"independent":e.memoizedState=null;break;default:n=ch(e.child),n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Wu(e,!1,i,n,a,l)}return e.child}function sh(t,e,n){var l=e.pendingProps;return fl(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),zl|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Il(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=qn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=qn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function zf(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Bo(t)))}function tS(t,e,n){switch(e.tag){case 3:zo(e,e.stateNode.containerInfo),fl(e,zt,t.memoizedState.cache),Fl();break;case 27:case 5:Qc(e);break;case 4:zo(e,e.stateNode.containerInfo);break;case 10:fl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,rs(e),null;break;case 13:var l=e.memoizedState;if(l!==null){if(l.dehydrated!==null)return vl(e),e.flags|=128,null;l=Il(t,e,n,!1);var i=e.child.childLanes;return l||(n&i)!==0?Lp(t,e,n):(vl(e),t=Kn(t,e,n),t!==null?t.sibling:null)}vl(e);break;case 19:if(e.flags&128)return bs(t,e,n);if(i=(t.flags&128)!==0,l=(n&e.childLanes)!==0,l||(Il(t,e,n,!1),l=(n&e.childLanes)!==0),i){if(l)return bs(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Wa(e,Kt.current),l)break;return null;case 22:return e.lanes=0,Hp(t,e,n,e.pendingProps);case 24:fl(e,zt,t.memoizedState.cache)}return Kn(t,e,n)}function Up(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ct=!0;else{if(!zf(t,n)&&(e.flags&128)===0)return Ct=!1,tS(t,e,n);Ct=(t.flags&131072)!==0}else Ct=!1,G&&(e.flags&1048576)!==0&&Yg(e,Fa,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=ql(e.elementType),e.type=t,typeof t=="function")of(t)?(l=ni(t,l),e.tag=1,e=uh(null,e,t,l,n)):(e.tag=0,e=hs(null,e,t,l,n));else{if(t!=null){var i=t.$$typeof;if(i===Ks){e.tag=11,e=eh(null,e,t,l,n);break t}else if(i===Zs){e.tag=14,e=nh(null,e,t,l,n);break t}else if(i===Sn){e.tag=10,e.type=t,e=sh(null,e,n);break t}}throw e=jc(t)||t,Error(N(306,e,""))}}return e;case 0:return hs(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,i=ni(l,e.pendingProps),uh(t,e,l,i,n);case 3:t:{if(zo(e,e.stateNode.containerInfo),t===null)throw Error(N(387));l=e.pendingProps;var a=e.memoizedState;i=a.element,as(t,e),Ga(e,l,null,n);var u=e.memoizedState;if(l=u.cache,fl(e,zt,l),l!==a.cache&&ls(e,[zt],n,!0),Va(),l=u.element,a.isDehydrated)if(a={element:l,isDehydrated:!1,cache:u.cache},e.updateQueue.baseState=a,e.memoizedState=a,e.flags&256){e=oh(t,e,l,n);break t}else if(l!==i){i=Ze(Error(N(424)),e),Ia(i),e=oh(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,pl=null,Je=!0,n=Pg(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Fl(),l===i){e=Kn(t,e,n);break t}Dt(t,e,l,n)}e=e.child}return e;case 26:return Ei(t,e),t===null?(n=Bh(e.type,null,e.pendingProps,null))?e.memoizedState=n:G||(e.stateNode=Ny(e.type,e.pendingProps,gl.current,e)):e.memoizedState=Bh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Qc(e),t===null&&G&&(l=e.stateNode=Ly(e.type,e.pendingProps,gl.current),Yt=e,Je=!0,i=mt,Ol(e.type)?(js=i,mt=Fe(l.firstChild)):mt=i),Dt(t,e,e.pendingProps.children,n),Ei(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&G&&((i=l=mt)&&(l=PS(l,e.type,e.pendingProps,Je),l!==null?(e.stateNode=l,Yt=e,mt=Fe(l.firstChild),Je=!1,i=!0):i=!1),i||wl(e)),Qc(e),i=e.type,a=e.pendingProps,u=t!==null?t.memoizedProps:null,l=a.children,Gs(i,a)?l=null:u!==null&&Gs(i,u)&&(e.flags|=32),e.memoizedState!==null&&(i=pf(t,e,j1,null,null,n),na._currentValue=i),Ei(t,e),Dt(t,e,l,n),e.child;case 6:return t===null&&G&&((t=n=mt)&&(n=KS(n,e.pendingProps,Je),n!==null?(e.stateNode=n,Yt=e,mt=null,t=!0):t=!1),t||wl(e)),null;case 13:return Lp(t,e,n);case 4:return zo(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=ti(e,null,l,n):Dt(t,e,l,n),e.child;case 11:return eh(t,e,e.type,e.pendingProps,n);case 7:return l=e.pendingProps,Ei(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 sh(t,e,n);case 9:return i=e.type._context,l=e.pendingProps.children,$l(e),i=Qt(i),l=l(i),e.flags|=1,Dt(t,e,l,n),e.child;case 14:return nh(t,e,e.type,e.pendingProps,n);case 15:return _p(t,e,e.type,e.pendingProps,n);case 19:return bs(t,e,n);case 31:return $1(t,e,n);case 22:return Hp(t,e,n,e.pendingProps);case 24:return $l(e),l=Qt(zt),t===null?(i=sf(),i===null&&(i=rt,a=cf(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),e.memoizedState={parent:l,cache:i},df(e),fl(e,zt,i)):((t.lanes&n)!==0&&(as(t,e),Ga(e,null,null,n),Va()),i=t.memoizedState,a=e.memoizedState,i.parent!==l?(i={parent:l,cache:l},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),fl(e,zt,l)):(l=a.cache,fl(e,zt,l),l!==i.cache&&ls(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&&sr(e),t!==null&&t.memoizedProps.name!==l.name?e.flags|=4194816:Ei(t,e),Dt(t,e,l.children,n),e.child;case 29:throw e.pendingProps}throw Error(N(156,e.tag))}function Vn(t){t.flags|=4}function Mc(t,e,n,l,i){var a;if((a=(t.mode&32)!==0)&&(a=n===null?Yh(e,l):Yh(e,l)&&(l.src!==n.src||l.srcSet!==n.srcSet)),a){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(fy())t.flags|=8192;else throw Zl=Vo,ff}else t.flags&=-16777217}function fh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Gy(e))if(fy())t.flags|=8192;else throw Zl=Vo,ff}function to(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?og():536870912,t.lanes|=e,Fi|=e)}function Ma(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 i=t.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags&1206910976,l|=i.flags&1206910976,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function eS(t,e,n){var l=e.pendingProps;switch(rf(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),Xn(zt),Pi(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(vi(e)?Vn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,vc())),dt(e),null;case 26:var i=e.type,a=e.memoizedState;return t===null?(Vn(e),a!==null?(dt(e),fh(e,a)):(dt(e),Mc(e,i,null,l,n))):a?a!==t.memoizedState?(Vn(e),dt(e),fh(e,a)):(dt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Vn(e),dt(e),Mc(e,i,t,l,n)),null;case 27:if(Co(e),n=gl.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Vn(e);else{if(!l){if(e.stateNode===null)throw Error(N(166));return dt(e),e.subtreeFlags&=-33554433,null}t=Mn.current,vi(e)?Vm(e,t):(t=Ly(i,l,n),e.stateNode=t,Vn(e))}return dt(e),e.subtreeFlags&=-33554433,null;case 5:if(Co(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Vn(e);else{if(!l){if(e.stateNode===null)throw Error(N(166));return dt(e),e.subtreeFlags&=-33554433,null}if(a=Mn.current,vi(e))Vm(e,a);else{var u=lu(gl.current);switch(a){case 1:a=u.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:a=u.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":a=u.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":a=u.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":a=u.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?a.multiple=!0:l.size&&(a.size=l.size);break;default:a=typeof l.is=="string"?u.createElement(i,{is:l.is}):u.createElement(i)}}a[kt]=e,a[Ne]=l;t:for(u=e.child;u!==null;){if(u.tag===5||u.tag===6)a.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=a;t:switch(Zt(a,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Vn(e)}}return dt(e),e.subtreeFlags&=-33554433,Mc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Vn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(N(166));if(t=gl.current,vi(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,i=Yt,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}t[kt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Ty(t.nodeValue,n)),t||wl(e,!0)}else t=lu(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=vi(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 Fl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;dt(e),t=!1}else n=vc(),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(i=vi(e),l!==null&&l.dehydrated!==null){if(t===null){if(!i)throw Error(N(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(N(317));i[kt]=e}else Fl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;dt(e),i=!1}else i=vc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)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,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==i&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),to(e,e.updateQueue),dt(e),null);case 4:return Pi(),t===null&&Vf(e.stateNode.containerInfo),e.flags|=67108864,dt(e),null;case 10:return Xn(e.type),dt(e),null;case 19:if(hf(e),l=e.memoizedState,l===null)return dt(e),null;if(i=(e.flags&128)!==0,a=l.rendering,a===null)if(i)Ma(l,!1);else{if(Mt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(a=Yo(t),a!==null){for(e.flags|=128,Ma(l,!1),t=a.updateQueue,e.updateQueue=t,to(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Vg(n,t),n=n.sibling;return Wa(e,Kt.current&1|2),G&&Gn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&_e()>Fo&&(e.flags|=128,i=!0,Ma(l,!1),e.lanes=4194304)}else{if(!i)if(t=Yo(a),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,to(e,t),Ma(l,!0),l.tail===null&&l.tailMode!=="collapsed"&&l.tailMode!=="visible"&&!a.alternate&&!G)return dt(e),null}else 2*_e()-l.renderingStartTime>Fo&&n!==536870912&&(e.flags|=128,i=!0,Ma(l,!1),e.lanes=4194304);l.isBackwards?(a.sibling=e.child,e.child=a):(t=l.last,t!==null?t.sibling=a:e.child=a,l.last=a)}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,a=Kt.current,a=i?a&1|2:a&1,l.tailMode==="visible"||l.tailMode==="collapsed"||!n||G?Wa(e,a):(n=a,ht(Jt,e),ht(Kt,n),ne===null&&(ne=e)),G&&Gn(e,l.treeForkCount),t}return dt(e),null;case 22:case 23:return Ce(e),mf(),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&&to(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&&Pt(Kl),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Xn(zt),dt(e),null;case 25:return null;case 30:return e.flags|=33554432,dt(e),null}throw Error(N(156,e.tag))}function nS(t,e){switch(rf(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Xn(zt),Pi(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Co(e),null;case 31:if(e.memoizedState!==null){if(Ce(e),e.alternate===null)throw Error(N(340));Fl()}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));Fl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return hf(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 Pi(),null;case 10:return Xn(e.type),null;case 22:case 23:return Ce(e),mf(),t!==null&&Pt(Kl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Xn(zt),null;case 25:return null;default:return null}}function Bp(t,e){switch(rf(e),e.tag){case 3:Xn(zt),Pi();break;case 26:case 27:case 5:Co(e);break;case 4:Pi();break;case 31:e.memoizedState!==null&&Ce(e);break;case 13:Ce(e);break;case 19:hf(e);break;case 10:Xn(e.type);break;case 22:case 23:Ce(e),mf(),t!==null&&Pt(Kl);break;case 24:Xn(zt)}}function pu(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var i=l.next;n=i;do{if((n.tag&t)===t){l=void 0;var a=n.create,u=n.inst;l=a(),u.destroy=l}n=n.next}while(n!==i)}}catch(o){at(e,e.return,o)}}function Rl(t,e,n){try{var l=e.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var a=i.next;l=a;do{if((l.tag&t)===t){var u=l.inst,o=u.destroy;if(o!==void 0){u.destroy=void 0,i=e;var r=n,c=o;try{c()}catch(m){at(i,r,m)}}}l=l.next}while(l!==a)}}catch(m){at(e,e.return,m)}}function Vp(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Zg(e,n)}catch(l){at(t,t.return,l)}}}function Gp(t,e,n){n.props=ni(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){at(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 i=t.stateNode,a=kn(t.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=zy(a)),l=i.ref;break;case 7:if(t.stateNode===null){var u=new Ve(t);Me(t.child,!1,kS,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){at(t,e,o)}}function jt(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){at(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){at(t,e,i)}else n.current=null}function Qo(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++)_y(t.stateNode,e[n])}function dh(t){for(var e=t.return;e!==null&&(Of(e)&&_y(t.stateNode,e.stateNode),!Cf(e));)e=e.return}function Xa(t){for(var e=t.return;e!==null&&(Of(e)&&QS(t.stateNode,e.stateNode),!Cf(e));)e=e.return}function Cf(t){return t.tag===5||t.tag===3||t.tag===27}function Of(t){return t&&t.tag===7&&t.stateNode!==null}function vs(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(i){at(t,t.return,i)}}function Nc(t,e,n){try{var l=t.stateNode;wS(l,t.type,n,e),l[Ne]=e}catch(i){at(t,t.return,i)}}function Yp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ol(t.type)||t.tag===4}function wc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Yp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ol(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 Ss(t,e,n,l){var i=t.tag;if(i===5||i===6)i=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(i,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(i),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=En)),Qo(t,l),I=!0;else if(i!==4&&(i===27&&(Qo(t,l),l=null,Ol(t.type)&&(n=t.stateNode,e=null)),t=t.child,t!==null))for(Ss(t,e,n,l),t=t.sibling;t!==null;)Ss(t,e,n,l),t=t.sibling}function Po(t,e,n,l){var i=t.tag;if(i===5||i===6)i=t.stateNode,e?n.insertBefore(i,e):n.appendChild(i),Qo(t,l),I=!0;else if(i!==4&&(i===27&&(Qo(t,l),l=null,Ol(t.type)&&(n=t.stateNode)),t=t.child,t!==null))for(Po(t,e,n,l),t=t.sibling;t!==null;)Po(t,e,n,l),t=t.sibling}function qp(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);Zt(e,l,n),e[kt]=t,e[Ne]=n}catch(a){at(t,t.return,a)}}var Ko=!1,Oe=null;function mh(t){(t.tag===30||(t.subtreeFlags&33554432)!==0)&&(Ko=!0)}var vn=null;function hh(){var t=vn;return vn=null,t}var Ee=0;function ra(t,e,n,l,i){return Ee=0,Xp(t.child,e,n,l,i)}function Xp(t,e,n,l,i){for(var a=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(l!==null){var o=Ys(u);l.push(o),o.view&&(a=!0)}else a||Ys(u).view&&(a=!0);Ko=!0,wy(u,Ee===0?e:e+"_"+Ee,n),Ee++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&i||Xp(t.child,e,n,l,i)&&(a=!0));t=t.sibling}return a}function wn(t,e){for(;t!==null;)t.tag===5?Ay(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&e||wn(t.child,e)),t=t.sibling}function vo(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if((t.tag!==22||t.memoizedState===null)&&(vo(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=Fn(e.default,e.share),e!=="none"&&(ra(t,n,e,null,!1)||wn(t.child,!1))}t=t.sibling}}function Es(t,e){if(t.tag===30){var n=t.stateNode,l=t.memoizedProps,i=kn(l,n),a=Fn(l.default,n.paired?l.share:l.enter);a!=="none"?ra(t,i,a,null,!1)?(vo(t),n.paired||e||Ii(t,l.onEnter)):wn(t.child,!1):vo(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Es(t,e),t=t.sibling;else vo(t)}function xs(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 i=e.get(l);if(i!==void 0){var a=Fn(n.default,n.share);if(a!=="none"&&(ra(t,l,a,null,!1)?(a=t.stateNode,i.paired=a,a.paired=i,Ii(t,n.onShare)):wn(t.child,!1)),e.delete(l),e.size===0)break}}}xs(t)}t=t.sibling}}}function Ts(t){if(t.tag===30){var e=t.memoizedProps,n=kn(e,t.stateNode),l=Oe!==null?Oe.get(n):void 0,i=Fn(e.default,l!==void 0?e.share:e.exit);i!=="none"&&(ra(t,n,i,null,!1)?l!==void 0?(i=t.stateNode,l.paired=i,i.paired=l,Oe.delete(n),Ii(t,e.onShare)):Ii(t,e.onExit):wn(t.child,!1)),Oe!==null&&xs(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Ts(t),t=t.sibling;else Oe!==null&&xs(t)}function jp(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,n=kn(e,t.stateNode);e=Fn(e.default,e.update),t.flags&=-5,e!=="none"&&ra(t,n,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&jp(t);t=t.sibling}}function Ms(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))}Ms(t)}t=t.sibling}}function So(t){if(t.tag===30)t.stateNode.paired=null,wn(t.child,!1),Ms(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)So(t),t=t.sibling;else Ms(t)}function kp(t){for(t=t.child;t!==null;)t.tag===30?wn(t.child,!1):(t.subtreeFlags&33554432)!==0&&kp(t),t=t.sibling}function Df(t,e,n,l,i,a,u){for(var o=!1;e!==null;){if(e.tag===5){var r=e.stateNode;if(a!==null&&Ee<a.length){var c=a[Ee],m=Ys(r);(c.view||m.view)&&(o=!0);var g;if(g=(t.flags&4)===0)if(m.clip)g=!0;else{g=c.rect;var s=m.rect;g=g.y!==s.y||g.x!==s.x||g.height!==s.height||g.width!==s.width}g&&(t.flags|=4),m.abs?m=!c.abs:(c=c.rect,m=m.rect,m=c.height!==m.height||c.width!==m.width),m&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&wy(r,Ee===0?n:n+"_"+Ee,i),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:Df(t,e.child,n,l,i,a,u)&&(o=!0));e=e.sibling}return o}function Qp(t,e){for(t=t.child;t!==null;){if(t.tag===30){var n=t.memoizedProps,l=t.stateNode,i=kn(n,l),a=Fn(n.default,n.update);if(e){l=l.clones;var u=l===null?null:l.map(DS)}else u=t.memoizedState,t.memoizedState=null;l=t;var o=t.child;Ee=0,i=Df(l,o,i,i,a,u,!1),(t.flags&4)!==0&&i&&(e||Ii(t,n.onUpdate))}else(t.subtreeFlags&33554432)!==0&&Qp(t,e);t=t.sibling}}var Bt=!1,nt=!1,gn=!1,Ac=!1,gh=typeof WeakSet=="function"?WeakSet:Set,Vt=null,pn=!1,Da=!1,Zo=!1,Ns=!1;function lS(t,e,n){if(t=t.containerInfo,Bs=la,t=Cg(t),lf(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var a=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var o=0,r=-1,c=-1,m=0,g=0,s=t,f=null;e:for(;;){for(var b;s!==l||a!==0&&s.nodeType!==3||(r=o+a),s!==u||i!==0&&s.nodeType!==3||(c=o+i),s.nodeType===3&&(o+=s.nodeValue.length),(b=s.firstChild)!==null;)f=s,s=b;for(;;){if(s===t)break e;if(f===l&&++m===a&&(r=o),f===u&&++g===i&&(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(Vs={focusedElem:t,selectionRange:l},la=!1,n=(n&335544064)===n,Vt=e,e=n?9270:1024;Vt!==null;){if(t=Vt,n&&(l=t.deletions,l!==null))for(a=0;a<l.length;a++)n&&Ts(l[a]);if(t.alternate===null&&(t.flags&2)!==0)n&&mh(t),eo(n);else{if(t.tag===22){if(l=t.alternate,t.memoizedState!==null){l!==null&&l.memoizedState===null&&n&&Ts(l),eo(n);continue}else if(l!==null&&l.memoizedState!==null){n&&mh(t),eo(n);continue}}l=t.child,(t.subtreeFlags&e)!==0&&l!==null?(l.return=t,Vt=l):(n&&jp(t),eo(n))}}Oe=null}function eo(t){for(;Vt!==null;){var e=Vt,n=t,l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if((i&1024)!==0&&l!==null){n=void 0,i=l.memoizedProps,l=l.memoizedState;var a=e.stateNode;try{var u=ni(e.type,i);n=a.getSnapshotBeforeUpdate(u,l),a.__reactInternalSnapshotBeforeUpdate=n}catch(o){at(e,e.return,o)}}break;case 3:if((i&1024)!==0){if(l=e.stateNode.containerInfo,n=l.nodeType,n===9)qs(l);else if(n===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":qs(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=kn(l.memoizedProps,l.stateNode),i=e.memoizedProps,i=Fn(i.default,i.update),i!=="none"&&ra(l,n,i,l.memoizedState=[],!0));break;default:if((i&1024)!==0)throw Error(N(163))}if(l=e.sibling,l!==null){l.return=e.return,Vt=l;break}Vt=e.return}}function Pp(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:yn(t,n),l&4&&pu(5,n);break;case 1:if(yn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(u){at(n,n.return,u)}else{var i=ni(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(u){at(n,n.return,u)}}l&64&&Vp(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{Zg(t,e)}catch(u){at(n,n.return,u)}}break;case 27:e===null&&l&4&&qp(n);case 26:case 5:yn(t,n),e===null&&l&4&&vs(n),l&512&&bn(n,n.return);break;case 12:yn(t,n);break;case 31:yn(t,n),l&4&&Fp(t,n);break;case 13:yn(t,n),l&4&&Ip(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=gS.bind(null,n),ZS(t,n))));break;case 22:if(l=n.memoizedState!==null||Bt,!l){var a=e!==null&&e.memoizedState!==null||nt;e=Bt,i=nt,Bt=l,(nt=a)&&!i?(l=2,(n.subtreeFlags&8772)!==0&&(l|=1),nn(t,n,l)):yn(t,n),Bt=e,nt=i}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 ws(t,e){for(t=t.child;t!==null;)Kp(t,e),t=t.sibling}function Kp(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 i=t.stateNode,a=t.memoizedProps.style,u=a!=null&&a.hasOwnProperty("display")?a.display:null;i.style.display=u==null||typeof u=="boolean"?"":(""+u).trim()}}catch(r){at(t,t.return,r)}As(t,e);break;case 6:try{t.stateNode.nodeValue=e?"":t.memoizedProps,I=!0}catch(r){at(t,t.return,r)}break;case 18:try{var o=t.stateNode;e?Oh(o,!0):Oh(t.stateNode,!1)}catch(r){at(t,t.return,r)}break;case 22:case 23:t.memoizedState===null&&ws(t,e);break;default:ws(t,e)}}function As(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){t:{var n=t,l=e;switch(n.tag){case 4:Kp(n,l);break t;case 22:n.memoizedState===null&&As(n,l);break t;default:As(n,l)}}t=t.sibling}}function Zp(t){var e=t.alternate;e!==null&&(t.alternate=null,Zp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ir(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 en(t,e,n){for(n=n.child;n!==null;)Jp(t,e,n),n=n.sibling}function Jp(t,e,n){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(cu,n)}catch{}switch(n.tag){case 26:nt||jt(n,e),en(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),Xa(n);var l=bt,i=ve;Ol(n.type)&&(bt=n.stateNode,ve=!1),en(t,e,n),Uy(n.stateNode,n.type,n.memoizedProps),bt=l,ve=i;break;case 5:nt||jt(n,e),Xa(n);case 6:if(n.tag===6&&Xa(n),l=bt,i=ve,bt=null,en(t,e,n),bt=l,ve=i,bt!==null)if(ve)try{(bt.nodeType===9?bt.body:bt.nodeName==="HTML"?bt.ownerDocument.body:bt).removeChild(n.stateNode),I=!0}catch(a){at(n,e,a)}else try{bt.removeChild(n.stateNode),I=!0}catch(a){at(n,e,a)}break;case 18:bt!==null&&(ve?(t=bt,Ch(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ia(t)):Ch(bt,n.stateNode));break;case 4:l=bt,i=ve,bt=n.stateNode.containerInfo,ve=!0,en(t,e,n),bt=l,ve=i;break;case 0:case 11:case 14:case 15:Rl(2,n,e),nt||Rl(4,n,e),en(t,e,n);break;case 1:nt||(jt(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Gp(n,e,l)),en(t,e,n);break;case 21:en(t,e,n);break;case 22:nt=(l=nt)||n.memoizedState!==null,en(t,e,n),nt=l;break;case 30:jt(n,e),en(t,e,n);break;case 7:nt||jt(n,e),en(t,e,n);break;default:en(t,e,n)}}function Fp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ia(t)}catch(n){at(e,e.return,n)}}}function Ip(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ia(t)}catch(n){at(e,e.return,n)}}function iS(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new gh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new gh),e;default:throw Error(N(435,t.tag))}}function no(t,e){var n=iS(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var i=pS.bind(null,t,l);l.then(i,i)}})}function re(t,e,n){var l=e.deletions;if(l!==null)for(var i=0;i<l.length;i++){var a=l[i],u=t,o=e,r=o;t:for(;r!==null;){switch(r.tag){case 27:if(Ol(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));Jp(u,o,a),bt=null,ve=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)$p(e,t,n),e=e.sibling}var ln=null;function $p(t,e,n){var l=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(i&4&&(l=t.updateQueue,l=l!==null?l.events:null,l!==null))for(var a=0;a<l.length;a++){var u=l[a];u.ref.impl=u.nextImpl}re(e,t,n),ce(t),i&4&&(Rl(3,t,t.return),pu(3,t),Rl(5,t,t.return));break;case 1:re(e,t,n),ce(t),i&512&&(nt||l===null||jt(l,l.return)),i&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(a=ln,re(e,t,n),ce(t),i&512&&(nt||l===null||jt(l,l.return)),i&4)if(i=l!==null?l.memoizedState:null,n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null)if(Bt)t.stateNode=Ny(t.type,t.memoizedProps,e.containerInfo,t);else{t:{e=t.type,n=t.memoizedProps,i=a.ownerDocument||a;e:switch(e){case"title":l=i.getElementsByTagName("title")[0],(!l||l[du]||l[kt]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=i.createElement(e),i.head.insertBefore(l,i.querySelector("head > title"))),Zt(l,e,n),l[kt]=t,Gt(l),e=l;break t;case"link":if(a=Gh("link","href",i).get(e+(n.href||""))){for(u=0;u<a.length;u++)if(l=a[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)){a.splice(u,1);break e}}l=i.createElement(e),Zt(l,e,n),i.head.appendChild(l);break;case"meta":if(a=Gh("meta","content",i).get(e+(n.content||""))){for(u=0;u<a.length;u++)if(l=a[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)){a.splice(u,1);break e}}l=i.createElement(e),Zt(l,e,n),i.head.appendChild(l);break;default:throw Error(N(468,e))}l[kt]=t,Gt(l),e=l}t.stateNode=e}else Bt||ks(a,t.type,t.stateNode);else t.stateNode=Vh(a,n,t.memoizedProps);else i!==n?(i===null?(e=l.stateNode,e===null||nt||e.parentNode.removeChild(e)):i.count--,n===null?Bt||ks(a,t.type,t.stateNode):Vh(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Nc(t,t.memoizedProps,l.memoizedProps);break;case 27:re(e,t,n),ce(t),i&512&&(nt||l===null||jt(l,l.return)),l!==null&&i&4&&Nc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(a=gn,gn=!1,re(e,t,n),gn=a,ce(t),i&512&&(nt||l===null||jt(l,l.return)),t.flags&32){e=t.stateNode;try{Zi(e,""),I=!0}catch(m){at(t,t.return,m)}}i&4&&t.stateNode!=null&&(e=t.memoizedProps,Nc(t,e,l!==null?l.memoizedProps:e)),i&1024&&(Ac=!0);break;case 6:if(re(e,t,n),ce(t),i&4){if(t.stateNode===null)throw Error(N(162));e=t.memoizedProps,n=t.stateNode;try{n.nodeValue=e,I=!0}catch(m){at(t,t.return,m)}}break;case 3:if(I=!1,Mo=null,a=ln,ln=iu(e.containerInfo),re(e,t,n),ln=a,ce(t),i&4&&l!==null&&l.memoizedState.isDehydrated)try{ia(e.containerInfo)}catch(m){at(t,t.return,m)}Ac&&(Ac=!1,Wp(t)),I=!1;break;case 4:i=gn,gn=Bt,l=Em(),a=ln,ln=iu(t.stateNode.containerInfo),re(e,t,n),ce(t),ln=a,I&&Da&&(Zo=!0),I=l,gn=i;break;case 12:re(e,t,n),ce(t);break;case 31:re(e,t,n),ce(t),i&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,no(t,e)));break;case 13:re(e,t,n),ce(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(yr=_e()),i&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,no(t,e)));break;case 22:a=t.memoizedState!==null,u=l!==null&&l.memoizedState!==null;var o=Bt,r=nt,c=gn;Bt=o||a,gn=c||a,nt=r||u,re(e,t,n),nt=r,gn=c,Bt=o,ce(t),i&8192&&(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,!a||l===null||u||Bt||nt||(e=u||nt,n=Bt,l=nt,Bt=a||Bt,nt=e,al(t,2),Bt=n,nt=l),!a&&gn||ws(t,a)),i&4&&(e=t.updateQueue,e!==null&&(n=e.retryQueue,n!==null&&(e.retryQueue=null,no(t,n))));break;case 19:re(e,t,n),ce(t),i&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,no(t,e)));break;case 30:i&512&&(nt||l===null||jt(l,l.return)),i=Em(),a=Da,u=(n&335544064)===n,o=t.memoizedProps,Da=u&&Fn(o.default,o.update)!=="none",re(e,t,n),ce(t),u&&l!==null&&I&&(t.flags|=4),Da=a,I=i;break;case 21:break;case 7:i&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(Yp(l)){n=l;break}l=l.return}l=null;for(var i=t.return;i!==null;){if(Of(i)){var a=i.stateNode;l===null?l=[a]:l.push(a)}if(Cf(i))break;i=i.return}var u=l;if(n==null)throw Error(N(160));switch(n.tag){case 27:var o=n.stateNode,r=wc(t);Po(t,r,o,u);break;case 5:var c=n.stateNode;n.flags&32&&(Zi(c,""),n.flags&=-33);var m=wc(t);Po(t,m,c,u);break;case 3:case 4:var g=n.stateNode.containerInfo,s=wc(t);Ss(t,s,g,u);break;default:throw Error(N(161))}}catch(f){at(t,t.return,f)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Wp(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Wp(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,la=!0,e.reset(),la=!1),t=t.sibling}}function Si(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)ty(e,t),e=e.sibling;else Qp(e,!1)}function ty(t,e){var n=t.alternate;if(n===null)Es(t,!1);else switch(t.tag){case 3:if(Ns=pn=!1,hh(),Si(e,t),!pn&&!Zo){if(t=vn,t!==null)for(var l=0;l<t.length;l+=3){n=t[l];var i=t[l+1];Ay(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("+i+")"})}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"})),Ns=!0}vn=null;break;case 5:Si(e,t);break;case 4:l=pn,pn=!1,Si(e,t),pn&&(Zo=!0),pn=l;break;case 22:t.memoizedState===null&&(n.memoizedState!==null?Es(t,!1):Si(e,t));break;case 30:l=pn,i=hh(),pn=!1,Si(e,t),pn&&(t.flags|=4);var a=t.memoizedProps,u=t.stateNode;e=kn(a,u),u=kn(n.memoizedProps,u);var o=Fn(a.default,a.update);o==="none"?e=!1:(a=n.memoizedState,n.memoizedState=null,n=t.child,Ee=0,e=Df(t,n,e,u,o,a,!0),Ee!==(a===null?0:a.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?(Ii(t,t.memoizedProps.onUpdate),vn=i):i!==null&&(i.push.apply(i,vn),vn=i),pn=(t.flags&32)!==0?!0:l;break;default:Si(e,t)}}function yn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Pp(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 i=n.stateNode;typeof i.componentWillUnmount=="function"&&Gp(n,n.return,i),al(n,l);break;case 27:(l&2)!==0&&Uy(n.stateNode,n.type,n.memoizedProps);case 5:jt(n,n.return),n.tag!==5&&n.tag!==27||Xa(n),al(n,l);break;case 6:Xa(n);break;case 26:jt(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||nt||i.parentNode.removeChild(i),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 nn(t,e,n){for(n=(e.subtreeFlags&8772)!==0?n:n&-2,e=e.child;e!==null;){var l=e.alternate,i=t,a=e,u=a.flags,o=(n&1)!==0;switch(a.tag){case 0:case 11:case 15:nn(i,a,n),pu(4,a);break;case 1:if(nn(i,a,n),l=a,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(m){at(l,l.return,m)}if(l=a,i=l.updateQueue,i!==null){var r=l.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Kg(c[i],r)}catch(m){at(l,l.return,m)}}o&&u&64&&Vp(a),bn(a,a.return);break;case 27:(n&2)!==0&&qp(a);case 5:a.tag!==5&&a.tag!==27||dh(a),nn(i,a,n),o&&l===null&&u&4&&vs(a),bn(a,a.return);break;case 6:dh(a);break;case 26:r=a.stateNode,a.memoizedState!==null||r===null||Bt||ks(iu(r.ownerDocument),a.type,r),nn(i,a,n),o&&l===null&&u&4&&vs(a),bn(a,a.return);break;case 12:nn(i,a,n);break;case 31:nn(i,a,n),o&&u&4&&Fp(i,a);break;case 13:nn(i,a,n),o&&u&4&&Ip(i,a);break;case 22:a.memoizedState===null&&nn(i,a,n),bn(a,a.return);break;case 30:nn(i,a,n),bn(a,a.return);break;case 7:bn(a,a.return);default:nn(i,a,n)}e=e.sibling}}function _f(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&&hu(n))}function Hf(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&hu(t))}function je(t,e,n,l){var i=(n&335544064)===n;if(e.subtreeFlags&(i?10262:10256))for(e=e.child;e!==null;)ey(t,e,n,l),e=e.sibling;else i&&kp(e)}function ey(t,e,n,l){var i=(n&335544064)===n;i&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&So(e);var a=e.flags;switch(e.tag){case 0:case 11:case 15:je(t,e,n,l),a&2048&&pu(9,e);break;case 1:je(t,e,n,l);break;case 3:je(t,e,n,l),i&&Ns&&(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="")),a&2048&&(a=null,e.alternate!==null&&(a=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==a&&(e.refCount++,a!=null&&hu(a)));break;case 12:if(a&2048){je(t,e,n,l),a=e.stateNode;try{var u=e.memoizedProps,o=u.id,r=u.onPostCommit;typeof r=="function"&&r(o,e.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(c){at(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?(i&&o!==null&&o.memoizedState===null&&So(o),u._visibility&2?je(t,e,n,l):ja(t,e)):(i&&o!==null&&o.memoizedState!==null&&So(e),u._visibility&2?je(t,e,n,l):(u._visibility|=2,xi(t,e,n,l,(e.subtreeFlags&10256)!==0||!1))),a&2048&&_f(o,e);break;case 24:je(t,e,n,l),a&2048&&Hf(e.alternate,e);break;case 30:i&&(a=e.alternate,a!==null&&(wn(a.child,!0),wn(e.child,!0))),je(t,e,n,l);break;default:je(t,e,n,l)}}function xi(t,e,n,l,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var a=t,u=e,o=n,r=l,c=u.flags;switch(u.tag){case 0:case 11:case 15:xi(a,u,o,r,i),pu(8,u);break;case 23:break;case 22:var m=u.stateNode;u.memoizedState!==null?m._visibility&2?xi(a,u,o,r,i):ja(a,u):(m._visibility|=2,xi(a,u,o,r,i)),i&&c&2048&&_f(u.alternate,u);break;case 24:xi(a,u,o,r,i),i&&c&2048&&Hf(u.alternate,u);break;default:xi(a,u,o,r,i)}e=e.sibling}}function ja(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,i=l.flags;switch(l.tag){case 22:ja(n,l),i&2048&&_f(l.alternate,l);break;case 24:ja(n,l),i&2048&&Hf(l.alternate,l);break;default:ja(n,l)}e=e.sibling}}var Xl=8192;function Gl(t,e,n){if(t.subtreeFlags&Xl)for(t=t.child;t!==null;)ny(t,e,n),t=t.sibling}function ny(t,e,n){switch(t.tag){case 26:Gl(t,e,n),t.flags&Xl&&(t.memoizedState!==null?rE(n,ln,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&qh(n,t)));break;case 5:Gl(t,e,n),t.flags&Xl&&(t=t.stateNode,(e&335544128)===e&&qh(n,t));break;case 3:case 4:var l=ln;ln=iu(t.stateNode.containerInfo),Gl(t,e,n),ln=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Xl,Xl=16777216,Gl(t,e,n),Xl=l):Gl(t,e,n));break;case 30:if((t.flags&Xl)!==0&&(l=t.memoizedProps.name,l!=null&&l!=="auto")){var i=t.stateNode;i.paired=null,Oe===null&&(Oe=new Map),Oe.set(l,i)}Gl(t,e,n);break;default:Gl(t,e,n)}}function ly(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 Na(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,ay(l,t)}ly(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)iy(t),t=t.sibling}function iy(t){switch(t.tag){case 0:case 11:case 15:Na(t),t.flags&2048&&Rl(9,t,t.return);break;case 3:Na(t);break;case 12:Na(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Eo(t)):Na(t);break;default:Na(t)}}function Eo(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,ay(l,t)}ly(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Rl(8,e,e.return),Eo(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Eo(e));break;default:Eo(e)}t=t.sibling}}function ay(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:hu(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Vt=l;else t:for(n=t;Vt!==null;){l=Vt;var i=l.sibling,a=l.return;if(Zp(l),l===n){Vt=null;break t}if(i!==null){i.return=a,Vt=i;break t}Vt=a}}}var aS={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}},uS=typeof WeakMap=="function"?WeakMap:Map,tt=0,rt=null,X=null,Q=0,lt=0,Re=null,dl=!1,ca=!1,Lf=!1,Zn=0,Mt=0,zl=0,Jl=0,Jo=0,De=0,Fi=0,ka=null,Se=null,Rs=!1,yr=0,uy=0,Fo=1/0,Io=null,El=null,Et=0,un=null,li=null,Nn=0,zs=0,Cs=null,oy=null,ji=null,ki=null,Qi=null,Qa=0,xo=null;function Ue(){return(tt&2)!==0&&Q!==0?Q&-Q:H.T!==null?Bf():fg()}function ry(){if(De===0)if((Q&536870912)===0||G){var t=ju;ju<<=1,(ju&3932160)===0&&(ju=262144),De=t}else De=536870912;return t=Jt.current,t!==null&&(t.flags|=32),De}function Ii(t,e){if(e!=null){var n=t.stateNode,l=n.ref;l===null&&(l=n.ref=zy(kn(t.memoizedProps,n))),ki===null&&(ki=[]),ki.push(e.bind(null,l))}}function Te(t,e,n){(t===rt&&(lt===2||lt===9)||t.cancelPendingCommit!==null)&&($i(t,0),ml(t,Q,De,!1)),fu(t,n),((tt&2)===0||t!==rt)&&(t===rt&&((tt&2)===0&&(Jl|=n),Mt===4&&ml(t,Q,De,!1)),Rn(t))}function cy(t,e,n){if((tt&6)!==0)throw Error(N(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||su(t,e),i=l?cS(t,e):Rc(t,e,!0),a=l;do{if(i===0){ca&&!l&&ml(t,e,0,!1);break}else{if(n=t.current.alternate,a&&!oS(n)){i=Rc(t,e,!1),a=!1;continue}if(i===2){if(a=e,t.errorRecoveryDisabledLanes&a)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;i=ka;var r=o.current.memoizedState.isDehydrated;if(r&&($i(o,u).flags|=256),u=Rc(o,u,!1),u!==2&&u!==6){if(Lf&&!r){o.errorRecoveryDisabledLanes|=a,Jl|=a,i=4;break t}a=Se,Se=i,a!==null&&(Se===null?Se=a:Se.push.apply(Se,a))}i=u}if(a=!1,i!==2)continue}}if(i===1){$i(t,0),ml(t,e,0,!0);break}t:{switch(l=t,a=i,a){case 0:case 1:throw Error(N(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:ml(l,e,De,!dl);break t;case 2:Se=null;break;case 3:case 5:break;default:throw Error(N(329))}if((e&62914560)===e&&(i=yr+300-_e(),10<i)){if(ml(l,e,De,!dl),lr(l,0,!0)!==0)break t;Nn=e,l.timeoutHandle=Gf(ph.bind(null,l,n,Se,Io,Rs,e,De,Jl,Fi,dl,a,"Throttled",-0,0),i);break t}ph(l,n,Se,Io,Rs,e,De,Jl,Fi,dl,a,null,-0,0)}}break}while(!0);Rn(t)}function ph(t,e,n,l,i,a,u,o,r,c,m,g,s,f){t.timeoutHandle=-1;var b=e.subtreeFlags,S=(a&335544064)===a;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,ny(e,a,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=(a&62914560)===a?yr-_e():(a&4194048)===a?uy-_e():0,b=cE(g,b),b!==null)){Nn=a,t.cancelPendingCommit=b(bh.bind(null,t,e,a,n,l,i,u,o,r,c,m,g,null,s,f)),ml(t,a,u,!c);return}bh(t,e,a,n,l,i,u,o,r,c,m,g)}function oS(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 i=n[l],a=i.getSnapshot;i=i.value;try{if(!Be(a(),i))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 ml(t,e,n,l){e=ug(t,e),e&=~Jo,e&=~Jl,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var i=e;0<i;){var a=31-Le(i),u=1<<a;l[a]=-1,i&=~u}n!==0&&rg(t,n,e)}function br(){return(tt&6)===0?(yu(0,!1),!1):!0}function Uf(){if(X!==null){if(lt===0)var t=X.return;else t=X,Yn=ri=null,vf(t),Yi=null,$a=0,t=X;for(;t!==null;)Bp(t.alternate,t),t=t.return;X=null}}function $i(t,e){var n=t.timeoutHandle;return n!==-1&&(t.timeoutHandle=-1,zS(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Nn=0,Uf(),rt=t,X=n=qn(t.current,null),Q=e,lt=0,Re=null,dl=!1,ca=su(t,e),Lf=!1,Fi=De=Jo=Jl=zl=Mt=0,Se=ka=null,Rs=!1,Zn=ug(t,e),rr(),n}function sy(t,e){V=null,H.H=jo,e===oa||e===fr?(e=jm(),lt=3):e===ff?(e=jm(),lt=4):lt=e===Af?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Re=e,X===null&&(Mt=1,ko(t,Ze(e,t.current)))}function fy(){var t=Jt.current;return t===null?!0:(Q&4194048)===Q?ne===null:(Q&62914560)===Q||(Q&536870912)!==0?t===ne:!1}function dy(){var t=H.H;return H.H=jo,t===null?jo:t}function my(){var t=H.A;return H.A=aS,t}function $o(){Mt=4,dl||(Q&4194048)!==Q&&Jt.current!==null||(ca=!0),(zl&134217727)===0&&(Jl&134217727)===0||rt===null||ml(rt,Q,De,!1)}function Rc(t,e,n){var l=tt;tt|=2;var i=dy(),a=my();(rt!==t||Q!==e)&&(Io=null,$i(t,e)),e=!1;var u=Mt;t:do try{if(lt!==0&&X!==null){var o=X,r=Re;switch(lt){case 8:Uf(),u=6;break t;case 3:case 2:case 9:case 6:Jt.current===null&&(e=!0);var c=lt;if(lt=0,Re=null,Li(t,o,r,c),n&&ca){u=0;break t}break;default:c=lt,lt=0,Re=null,Li(t,o,r,c)}}rS(),u=Mt;break}catch(m){sy(t,m)}while(!0);return e&&t.shellSuspendCounter++,Yn=ri=null,tt=l,H.H=i,H.A=a,X===null&&(rt=null,Q=0,rr()),u}function rS(){for(;X!==null;)hy(X)}function cS(t,e){var n=tt;tt|=2;var l=dy(),i=my();rt!==t||Q!==e?(Io=null,Fo=_e()+500,$i(t,e)):ca=su(t,e);t:do try{if(lt!==0&&X!==null){e=X;var a=Re;e:switch(lt){case 1:lt=0,Re=null,Li(t,e,a,1);break;case 2:case 9:if(Xm(a)){lt=0,Re=null,yh(e);break}e=function(){lt!==2&&lt!==9||rt!==t||(lt=7),Rn(t)},a.then(e,e);break t;case 3:lt=7;break t;case 4:lt=5;break t;case 7:Xm(a)?(lt=0,Re=null,yh(e)):(lt=0,Re=null,Li(t,e,a,7));break;case 5:var u=null;switch(X.tag){case 26:u=X.memoizedState;case 5:case 27:var o=X;if(u?Gy(u):o.stateNode.complete){lt=0,Re=null;var r=o.sibling;if(r!==null)X=r;else{var c=o.return;c!==null?(X=c,vr(c)):X=null}break e}}lt=0,Re=null,Li(t,e,a,5);break;case 6:lt=0,Re=null,Li(t,e,a,6);break;case 8:Uf(),Mt=6;break t;default:throw Error(N(462))}}sS();break}catch(m){sy(t,m)}while(!0);return Yn=ri=null,H.H=l,H.A=i,tt=n,X!==null?0:(rt=null,Q=0,rr(),Mt)}function sS(){for(;X!==null&&!Av();)hy(X)}function hy(t){var e=Up(t.alternate,t,Zn);t.memoizedProps=t.pendingProps,e===null?vr(t):X=e}function yh(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=ah(n,e,e.pendingProps,e.type,void 0,Q);break;case 11:e=ah(n,e,e.pendingProps,e.type.render,e.ref,Q);break;case 5:vf(e);var l=e;l===Yt&&(G?(Uo(l),l.tag===5&&l.stateNode!=null&&(mt=l.stateNode)):(Uo(l),G=!0));default:Bp(n,e),e=X=Vg(e,Zn),e=Up(n,e,Zn)}t.memoizedProps=t.pendingProps,e===null?vr(t):X=e}function Li(t,e,n,l){Yn=ri=null,vf(e),Yi=null,$a=0;var i=e.return;try{if(I1(t,i,e,n,Q)){Mt=1,ko(t,Ze(n,t.current)),X=null;return}}catch(a){if(i!==null)throw X=i,a;Mt=1,ko(t,Ze(n,t.current)),X=null;return}e.flags&32768?(G||l===1?t=!0:ca||(Q&536870912)!==0?t=!1:(dl=t=!0,(l===2||l===9||l===3||l===6)&&(l=Jt.current,l!==null&&l.tag===13&&(l.flags|=16384))),gy(e,t)):vr(e)}function vr(t){var e=t;do{if((e.flags&32768)!==0){gy(e,dl);return}t=e.return;var n=eS(e.alternate,e,Zn);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 gy(t,e){do{var n=nS(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 bh(t,e,n,l,i,a,u,o,r,c,m,g){t.cancelPendingCommit=null;do Sr();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),li=e,un=t,Nn=n,Cs=i,oy=l,fS(t,e,n,u,o,r,g)}}function fS(t,e,n,l,i,a,u){var o=e.lanes|e.childLanes;if(zs=o,o|=af,Bv(t,n,o,l,i,a),ki=null,(n&335544064)===n?(Qi=G1(t),l=10262):(Qi=null,l=10256),(e.subtreeFlags&l)!==0||(e.flags&l)!==0?(t.callbackNode=null,t.callbackPriority=0,yS(Oo,function(){return Hs(),null})):(t.callbackNode=null,t.callbackPriority=0),Ko=!1,l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=H.T,H.T=null,i=et.p,et.p=2,a=tt,tt|=4;try{lS(t,e,n)}finally{tt=a,et.p=i,H.T=l}}Et=1,Ko?ji=LS(u,t.containerInfo,Qi,Os,Ds,mS,_s,Hs,dS,null,null):(Os(),Ds(),_s())}function dS(t){if(Et!==0){var e=un.onRecoverableError;e(t,{componentStack:null})}}function mS(){Et===3&&(Et=0,ty(li,un),Et=4)}function Os(){if(Et===1){Et=0;var t=un,e=li,n=Nn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=H.T,H.T=null;var i=et.p;et.p=2;var a=tt;tt|=4;try{Da=Zo=!1,$p(e,t,n),n=Vs;var u=Cg(t.containerInfo),o=n.focusedElem,r=n.selectionRange;if(u!==o&&o&&o.ownerDocument&&zg(o.ownerDocument.documentElement,o)){if(r!==null&&lf(o)){var c=r.start,m=r.end;if(m===void 0&&(m=c),"selectionStart"in o)o.selectionStart=c,o.selectionEnd=Math.min(m,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=Hm(o,S),h=Hm(o,v);if(d&&h&&(f.rangeCount!==1||f.anchorNode!==d.node||f.anchorOffset!==d.offset||f.focusNode!==h.node||f.focusOffset!==h.offset)){var p=g.createRange();p.setStart(d.node,d.offset),f.removeAllRanges(),S>v?(f.addRange(p),f.extend(h.node,h.offset)):(p.setEnd(h.node,h.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}}la=!!Bs,Vs=Bs=null}finally{tt=a,et.p=i,H.T=l}}t.current=e,Et=2}}function Ds(){if(Et===2){Et=0;var t=un,e=li,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 i=tt;tt|=4;try{Pp(t,e.alternate,e)}finally{tt=i,et.p=l,H.T=n}}Et=3}}function _s(){if(Et===4||Et===3){Et=0;var t=ji;ji=null,Rv();var e=un,n=li,l=Nn,i=oy,a=(l&335544064)===l?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Et=5:(Et=0,li=un=null,py(e,e.pendingLanes)),a=e.pendingLanes,a===0&&(El=null),Is(l),n=n.stateNode,He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(cu,n,void 0,(n.current.flags&128)===128)}catch{}if(i!==null){n=H.T,a=et.p,et.p=2,H.T=null;try{for(var u=e.onRecoverableError,o=0;o<i.length;o++){var r=i[o];u(r.value,{componentStack:r.stack})}}finally{H.T=n,et.p=a}}if(i=ki,u=Qi,Qi=null,i!==null&&(ki=null,u===null&&(u=[]),t!==null))for(r=0;r<i.length;r++)n=(0,i[r])(u),n!==void 0&&t.finished.finally(n);(Nn&3)!==0&&Sr(),Rn(e),a=e.pendingLanes,(l&261930)!==0&&(a&42)!==0?e===xo?Qa++:(Qa=0,xo=e):(Qa=0,xo=null),yu(0,!1)}}function py(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,hu(e)))}function Sr(){return ji!==null&&(ji.skipTransition(),ji=null),Os(),Ds(),_s(),Hs()}function Hs(){if(Et!==5)return!1;var t=un,e=zs;zs=0;var n=Is(Nn),l=H.T,i=et.p;try{et.p=32>n?32:n,H.T=null,n=Cs,Cs=null;var a=un,u=Nn;if(Et=0,li=un=null,Nn=0,(tt&6)!==0)throw Error(N(331));var o=tt;if(tt|=4,iy(a.current),ey(a,a.current,u,n),tt=o,yu(0,!1),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(cu,a)}catch{}return!0}finally{et.p=i,H.T=l,py(t,e)}}function vh(t,e,n){e=Ze(n,e),e=ms(t.stateNode,e,2),t=bl(t,e,2),t!==null&&(fu(t,2),Rn(t))}function at(t,e,n){if(t.tag===3)vh(t,t,n);else for(;e!==null;){if(e.tag===3){vh(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(El===null||!El.has(l))){t=Ze(n,t),n=Op(2),l=bl(e,n,2),l!==null&&(Dp(n,l,e,t),fu(l,2),Rn(l));break}}e=e.return}}function zc(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new uS;var i=new Set;l.set(e,i)}else i=l.get(e),i===void 0&&(i=new Set,l.set(e,i));i.has(n)||(Lf=!0,i.add(n),t=hS.bind(null,t,e,n),e.then(t,t))}function hS(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()-yr)&&(tt&2)===0?$i(t,0):Jo|=n,Fi===Q&&(Fi=0)),Rn(t)}function yy(t,e){e===0&&(e=og()),t=oi(t,e),t!==null&&(fu(t,e),Rn(t))}function gS(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),yy(t,n)}function pS(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,i=t.memoizedState;i!==null&&(n=i.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),yy(t,n)}function yS(t,e){return Js(t,e)}var Wi=null,Ti=null,Ls=!1,Wo=!1,Cc=!1,hl=0;function Rn(t){t!==Ti&&t.next===null&&(Ti===null?Wi=Ti=t:Ti=Ti.next=t),Wo=!0,Ls||(Ls=!0,vS())}function yu(t,e){if(!Cc&&Wo){Cc=!0;do for(var n=!1,l=Wi;l!==null;){if(!e)if(t!==0){var i=l.pendingLanes;if(i===0)var a=0;else{var u=l.suspendedLanes,o=l.pingedLanes;a=(1<<31-Le(42|t)+1)-1,a&=i&~(u&~o),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Sh(l,a))}else a=Q,a=lr(l,l===rt?a:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(a&3)===0||su(l,a)||(n=!0,Sh(l,a));l=l.next}while(n);Cc=!1}}function bS(){by()}function by(){Wo=Ls=!1;var t=0;hl!==0&&RS()&&(t=hl);for(var e=_e(),n=null,l=Wi;l!==null;){var i=l.next,a=vy(l,e);a===0?(l.next=null,n===null?Wi=i:n.next=i,i===null&&(Ti=n)):(n=l,(t!==0||(a&3)!==0)&&(Wo=!0)),l=i}Et!==0&&Et!==5||yu(t,!1),hl!==0&&(hl=0)}function vy(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,i=t.expirationTimes,a=t.pendingLanes&-62914561;0<a;){var u=31-Le(a),o=1<<u,r=i[u];r===-1?((o&n)===0||(o&l)!==0)&&(i[u]=Uv(o,e)):r<=e&&(t.expiredLanes|=o),a&=~o}if(e=rt,n=Q,n=lr(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&&rc(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||su(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&rc(l),Is(n)){case 2:case 8:n=ig;break;case 32:n=Oo;break;case 268435456:n=ag;break;default:n=Oo}return l=Sy.bind(null,t),n=Js(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&rc(l),t.callbackPriority=2,t.callbackNode=null,2}function Sy(t,e){if(Et!==0&&Et!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Sr()&&t.callbackNode!==n)return null;var l=Q;return l=lr(t,t===rt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(cy(t,l,e),vy(t,_e()),t.callbackNode!=null&&t.callbackNode===n?Sy.bind(null,t):null)}function Sh(t,e){if(Sr())return null;cy(t,e,!0)}function vS(){CS(function(){(tt&6)!==0?Js(lg,bS):by()})}function Bf(){if(hl===0){var t=Wl;t===0&&(t=Xu,Xu<<=1,(Xu&261888)===0&&(Xu=256)),hl=t}return hl}function Eh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:co(t)}function SS(t,e,n,l,i){if(e==="submit"&&n&&n.stateNode===i){var a=Eh((i[Ne]||null).action),u=l.submitter;u&&(e=(e=u[Ne]||null)?Eh(e.formAction):u.getAttribute("formAction"),e!==null&&(a=e,u=null));var o=new ar("action","action",null,l,i);t.push({event:o,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(hl!==0){var r=new FormData(i,u);fs(n,{pending:!0,data:r,method:i.method,action:a},null,r)}}else typeof a=="function"&&(o.preventDefault(),r=new FormData(i,u),fs(n,{pending:!0,data:r,method:i.method,action:a},a,r))},currentTarget:i}]})}}for(lo=0;lo<ts.length;lo++)io=ts[lo],xh=io.toLowerCase(),Th=io[0].toUpperCase()+io.slice(1),on(xh,"on"+Th);var io,xh,Th,lo;on(Dg,"onAnimationEnd");on(_g,"onAnimationIteration");on(Hg,"onAnimationStart");on("dblclick","onDoubleClick");on("focusin","onFocus");on("focusout","onBlur");on(O1,"onTransitionRun");on(D1,"onTransitionStart");on(_1,"onTransitionCancel");on(Lg,"onTransitionEnd");Ki("onMouseEnter",["mouseout","mouseover"]);Ki("onMouseLeave",["mouseout","mouseover"]);Ki("onPointerEnter",["pointerout","pointerover"]);Ki("onPointerLeave",["pointerout","pointerover"]);ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ai("onBeforeInput",["compositionend","keypress","textInput","paste"]);ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var eu="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(" "),ES=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(eu));function Ey(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],i=l.event;l=l.listeners;t:{var a=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!==a&&i.isPropagationStopped())break t;a=o,i.currentTarget=c;try{a(i)}catch(m){_o(m)}i.currentTarget=null,a=r}else for(u=0;u<l.length;u++){if(o=l[u],r=o.instance,c=o.currentTarget,o=o.listener,r!==a&&i.isPropagationStopped())break t;a=o,i.currentTarget=c;try{a(i)}catch(m){_o(m)}i.currentTarget=null,a=r}}}}function q(t,e){var n=e[ym];n===void 0&&(n=e[ym]=new Set);var l=t+"__bubble";n.has(l)||(xy(e,t,2,!1),n.add(l))}function Oc(t,e,n){var l=0;e&&(l|=4),xy(n,t,l,e)}var ao="_reactListening"+Math.random().toString(36).slice(2);function Vf(t){if(!t[ao]){t[ao]=!0,mg.forEach(function(n){n!=="selectionchange"&&(ES.has(n)||Oc(n,!1,t),Oc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ao]||(e[ao]=!0,Oc("selectionchange",!1,e))}}function xy(t,e,n,l){switch(Py(e)){case 2:var i=mE;break;case 8:i=hE;break;default:i=Qf}n=i.bind(null,e,n,t),i=void 0,!Fc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),l?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function Dc(t,e,n,l,i){var a=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===i)break;if(u===4)for(u=l.return;u!==null;){var r=u.tag;if((r===3||r===4)&&u.stateNode.containerInfo===i)return;u=u.return}for(;o!==null;){if(u=jl(o),u===null)return;if(r=u.tag,r===5||r===6||r===26||r===27){l=a=u;continue t}o=o.parentNode}}l=l.return}Eg(function(){var c=a,m=Ws(n),g=[];t:{var s=Ug.get(t);if(s!==void 0){var f=ar,b=t;switch(t){case"keypress":if(fo(n)===0)break t;case"keydown":case"keyup":f=o1;break;case"focusin":b="focus",f=hc;break;case"focusout":b="blur",f=hc;break;case"beforeblur":case"afterblur":f=hc;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=Nm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Jv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=d1;break;case Dg:case _g:case Hg:f=$v;break;case Lg:f=h1;break;case"scroll":case"scrollend":f=Kv;break;case"wheel":f=p1;break;case"copy":case"cut":case"paste":f=t1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Am;break;case"submit":f=s1;break;case"toggle":case"beforetoggle":f=b1}var S=(e&4)!==0,v=!S&&(t==="scroll"||t==="scrollend"),d=S?s!==null?s+"Capture":null:s;S=[];for(var h=c,p;h!==null;){var y=h;if(p=y.stateNode,y=y.tag,y!==5&&y!==26&&y!==27||p===null||d===null||(y=Ka(h,d),y!=null&&S.push(nu(h,y,p))),v)break;h=h.return}0<S.length&&(s=new f(s,b,null,n,m),g.push({event:s,listeners:S}))}}if((e&7)===0){t:{if(f=t==="mouseover"||t==="pointerover",s=t==="mouseout"||t==="pointerout",f&&n!==Jc&&(b=n.relatedTarget||n.fromElement)&&(jl(b)||b[aa]))break t;(s||f)&&(b=m.window===m?m:(f=m.ownerDocument)?f.defaultView||f.parentWindow:window,s?(f=n.relatedTarget||n.toElement,s=c,f=f?jl(f):null,f!==null&&(v=ru(f),S=f.tag,f!==v||S!==5&&S!==27&&S!==6)&&(f=null)):(s=null,f=c),s!==f&&(S=Nm,y="onMouseLeave",d="onMouseEnter",h="mouse",(t==="pointerout"||t==="pointerover")&&(S=Am,y="onPointerLeave",d="onPointerEnter",h="pointer"),v=s==null?b:Ca(s),p=f==null?b:Ca(f),b=new S(y,h+"leave",s,n,m),b.target=v,b.relatedTarget=p,y=null,jl(m)===c&&(S=new S(d,h+"enter",f,n,m),S.target=p,S.relatedTarget=v,y=S),v=y,S=s&&f?Bc(s,f,xS):null,s!==null&&Mh(g,b,s,S,!1),f!==null&&v!==null&&Mh(g,v,f,S,!0)))}t:{if(s=c?Ca(c):window,f=s.nodeName&&s.nodeName.toLowerCase(),f==="select"||f==="input"&&s.type==="file")var x=Om;else if(Cm(s))if(Ag)x=R1;else{x=w1;var T=N1}else f=s.nodeName,!f||f.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&$s(c.elementType)&&(x=Om):x=A1;if(x&&(x=x(t,c))){wg(g,x,n,m);break t}T&&T(t,s,c)}switch(T=c?Ca(c):window,t){case"focusin":(Cm(T)||T.contentEditable==="true")&&(zi=T,$c=c,La=null);break;case"focusout":La=$c=zi=null;break;case"mousedown":Wc=!0;break;case"contextmenu":case"mouseup":case"dragend":Wc=!1,Lm(g,n,m);break;case"selectionchange":if(C1)break;case"keydown":case"keyup":Lm(g,n,m)}var M;if(nf)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 Ri?Mg(t,n)&&(w="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(w="onCompositionStart");w&&(Tg&&n.locale!=="ko"&&(Ri||w!=="onCompositionStart"?w==="onCompositionEnd"&&Ri&&(M=xg()):(sl=m,tf="value"in sl?sl.value:sl.textContent,Ri=!0)),T=tr(c,w),0<T.length&&(w=new wm(w,t,null,n,m),g.push({event:w,listeners:T}),M?w.data=M:(M=Ng(n),M!==null&&(w.data=M)))),(M=S1?E1(t,n):x1(t,n))&&(w=tr(c,"onBeforeInput"),0<w.length&&(T=new wm("onBeforeInput","beforeinput",null,n,m),g.push({event:T,listeners:w}),T.data=M)),SS(g,t,c,n,m)}Ey(g,e)})}function nu(t,e,n){return{instance:t,listener:e,currentTarget:n}}function tr(t,e){for(var n=e+"Capture",l=[];t!==null;){var i=t,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Ka(t,n),i!=null&&l.unshift(nu(t,i,a)),i=Ka(t,e),i!=null&&l.push(nu(t,i,a))),t.tag===3)return l;t=t.return}return[]}function xS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Mh(t,e,n,l,i){for(var a=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,i?(c=Ka(n,a),c!=null&&u.unshift(nu(n,c,r))):i||(c=Ka(n,a),c!=null&&u.push(nu(n,c,r)))),n=n.return}u.length!==0&&t.push({event:e,listeners:u})}var TS=/\r\n?/g,MS=/\u0000|\uFFFD/g;function Nh(t){return(typeof t=="string"?t:""+t).replace(TS,`
9
- `).replace(MS,"")}function Ty(t,e){return e=Nh(e),Nh(t)===e}function it(t,e,n,l,i,a){switch(n){case"children":if(typeof l=="string")e==="body"||e==="textarea"&&l===""||Zi(t,l);else if(typeof l=="number"||typeof l=="bigint")e!=="body"&&Zi(t,""+l);else return;break;case"className":Qu(t,"class",l);break;case"tabIndex":Qu(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Qu(t,n,l);break;case"style":Sg(t,l,a);return;case"data":if(e!=="object"){Qu(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=co(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 a=="function"&&(n==="formAction"?(e!=="input"&&it(t,e,"name",i.name,i,null),it(t,e,"formEncType",i.formEncType,i,null),it(t,e,"formMethod",i.formMethod,i,null),it(t,e,"formTarget",i.formTarget,i,null)):(it(t,e,"encType",i.encType,i,null),it(t,e,"method",i.method,i,null),it(t,e,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=co(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(i.children!=null)throw Error(N(60));a?.__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=co(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),ro(t,"popover",l);break;case"xlinkActuate":Bn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Bn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Bn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Bn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Bn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Bn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Bn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Bn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Bn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ro(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=Qv.get(n)||n,ro(t,n,l);else return}I=!0}function Us(t,e,n,l,i,a){switch(n){case"style":Sg(t,l,a);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(N(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(N(60));a?.__html!==n&&(t.innerHTML=n)}}break;case"children":if(typeof l=="string")Zi(t,l);else if(typeof l=="number"||typeof l=="bigint")Zi(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(!hg.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),a=n.slice(2,i?n.length-7:void 0),e=t[Ne]||null,e=e!=null?e[n]:null,typeof e=="function"&&t.removeEventListener(a,e,i),typeof l=="function")){typeof e!="function"&&e!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(a,l,i);break t}I=!0,n in t?t[n]=l:l===!0?t.setAttribute(n,""):ro(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,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var u=n[a];if(u!=null)switch(a){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(N(137,e));default:it(t,e,a,u,n,null)}}i&&it(t,e,"srcSet",n.srcSet,n,null),l&&it(t,e,"src",n.src,n,null);return;case"input":q("invalid",t);var o=a=u=i=null,r=null,c=null;for(l in n)if(n.hasOwnProperty(l)){var m=n[l];if(m!=null)switch(l){case"name":i=m;break;case"type":u=m;break;case"checked":r=m;break;case"defaultChecked":c=m;break;case"value":a=m;break;case"defaultValue":o=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(N(137,e));break;default:it(t,e,l,m,n,null)}}yg(t,a,o,r,c,u,i,!1);return;case"select":q("invalid",t),l=u=a=null;for(i in n)if(n.hasOwnProperty(i)&&(o=n[i],o!=null))switch(i){case"value":a=o;break;case"defaultValue":u=o;break;case"multiple":l=o;default:it(t,e,i,o,n,null)}e=a,n=u,t.multiple=!!l,e!=null?Bi(t,!!l,e,!1):n!=null&&Bi(t,!!l,n,!0);return;case"textarea":q("invalid",t),a=i=l=null;for(u in n)if(n.hasOwnProperty(u)&&(o=n[u],o!=null))switch(u){case"value":l=o;break;case"defaultValue":i=o;break;case"children":a=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(N(91));break;default:it(t,e,u,o,n,null)}vg(t,l,i,a);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:it(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<eu.length;l++)q(eu[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:it(t,e,c,l,n,null)}return;default:if($s(e)){for(m in n)n.hasOwnProperty(m)&&(l=n[m],l!==void 0&&Us(t,e,m,l,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(l=n[o],l!=null&&it(t,e,o,l,n,null))}var NS={};function wS(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 i=null,a=null,u=null,o=null,r=null,c=null,m=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)||it(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),a=f;break;case"name":f!==g&&(I=!0),i=f;break;case"checked":f!==g&&(I=!0),c=f;break;case"defaultChecked":f!==g&&(I=!0),m=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&&it(t,e,s,f,l,g)}}Zc(t,u,o,r,c,m,a,i);return;case"select":f=u=o=s=null;for(a in n)if(r=n[a],n.hasOwnProperty(a)&&r!=null)switch(a){case"value":break;case"multiple":f=r;default:l.hasOwnProperty(a)||it(t,e,a,null,l,r)}for(i in l)if(a=l[i],r=n[i],l.hasOwnProperty(i)&&(a!=null||r!=null))switch(i){case"value":a!==r&&(I=!0),s=a;break;case"defaultValue":a!==r&&(I=!0),o=a;break;case"multiple":a!==r&&(I=!0),u=a;default:a!==r&&it(t,e,i,a,l,r)}e=o,n=u,l=f,s!=null?Bi(t,!!n,s,!1):!!l!=!!n&&(e!=null?Bi(t,!!n,e,!0):Bi(t,!!n,n?[]:"",!1));return;case"textarea":f=s=null;for(o in n)if(i=n[o],n.hasOwnProperty(o)&&i!=null&&!l.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:it(t,e,o,null,l,i)}for(u in l)if(i=l[u],a=n[u],l.hasOwnProperty(u)&&(i!=null||a!=null))switch(u){case"value":i!==a&&(I=!0),s=i;break;case"defaultValue":i!==a&&(I=!0),f=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(N(91));break;default:i!==a&&it(t,e,u,i,l,a)}bg(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:it(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:it(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)&&it(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:it(t,e,c,s,l,f)}return;default:if($s(e)){for(var v in n)s=n[v],n.hasOwnProperty(v)&&s!==void 0&&!l.hasOwnProperty(v)&&Us(t,e,v,void 0,l,s);for(m in l)s=l[m],f=n[m],!l.hasOwnProperty(m)||s===f||s===void 0&&f===void 0||Us(t,e,m,s,l,f);return}}for(var d in n)s=n[d],n.hasOwnProperty(d)&&s!=null&&!l.hasOwnProperty(d)&&it(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||it(t,e,g,s,l,f)}function wh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function AS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var i=n[l],a=i.transferSize,u=i.initiatorType,o=i.duration;if(a&&o&&wh(u)){for(u=0,o=i.responseEnd,l+=1;l<n.length;l++){var r=n[l],c=r.startTime;if(c>o)break;var m=r.transferSize,g=r.initiatorType;m&&wh(g)&&(r=r.responseEnd,u+=m*(r<o?1:(o-c)/(r-c)))}if(--l,e+=8*(a+u)/(i.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 Bs=null,Vs=null;function lu(t){return t.nodeType===9?t:t.ownerDocument}function Ah(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 My(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 Ny(t,e,n,l){return n=lu(n).createElement(t),n[kt]=l,n[Ne]=e,Zt(n,t,e),Gt(n),n}function Gs(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 _c=null;function RS(){var t=window.event;return t&&t.type==="popstate"?t===_c?!1:(_c=t,!0):(_c=null,!1)}var Gf=typeof setTimeout=="function"?setTimeout:void 0,zS=typeof clearTimeout=="function"?clearTimeout:void 0,Rh=typeof Promise=="function"?Promise:void 0,zh=typeof requestAnimationFrame=="function"?requestAnimationFrame:Gf,CS=typeof queueMicrotask=="function"?queueMicrotask:typeof Rh<"u"?function(t){return Rh.resolve(null).then(t).catch(OS)}:Gf;function OS(t){setTimeout(function(){throw t})}function Ol(t){return t==="head"}function Ch(t,e){var n=e,l=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(i),ia(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Lc(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Lc(n);for(var a=n.firstChild;a;){var u=a.nextSibling,o=a.nodeName;a[du]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&a.rel.toLowerCase()==="stylesheet"||n.removeChild(a),a=u}}else n==="body"&&Lc(t.ownerDocument.body);n=i}while(n);ia(e)}function Oh(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 wy(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 i=l=0;i<e.length;i++){var a=e[i];0<a.width&&0<a.height&&l++}l===1&&(t=t.style,t.display=e.length===1?"inline-block":"block",t.marginTop="-"+n.paddingTop,t.marginBottom="-"+n.paddingBottom)}}function Ay(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 Ry(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 Ys(t){var e=t.getBoundingClientRect(),n=getComputedStyle(t);return Ry(e,n,t)}function DS(t){var e=t.getBoundingClientRect();e=new DOMRect(e.x+2e4,e.y+2e4,e.width,e.height);var n=getComputedStyle(t);return Ry(e,n,t)}function _S(t){return t.documentElement.clientHeight}function HS(t){this.addEventListener("load",t),this.addEventListener("error",t)}function LS(t,e,n,l,i,a,u,o,r){var c=e.nodeType===9?e:e.ownerDocument;try{var m=c.startViewTransition({update:function(){var s=c.defaultView,f=s.navigation&&s.navigation.transition,b=c.fonts.status;l();var S=[];if(b==="loaded"&&(_S(c),c.fonts.status==="loading"&&S.push(c.fonts.ready)),b=S.length,t!==null)for(var v=t.suspenseyImages,d=0,h=0;h<v.length;h++){var p=v[h];if(!p.complete){var y=p.getBoundingClientRect();if(0<y.bottom&&0<y.right&&y.top<s.innerHeight&&y.left<s.innerWidth){if(d+=Yy(p),d>No){S.length=b;break}p=new Promise(HS.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(i,i),(f?Promise.allSettled([f.finished,s]):s).then(a,a);if(i(),f)return f.finished.then(a,a);a()},types:n});c.__reactViewTransition=m;var g=[];return m.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,h=!0,p=0;p<b.length;p++){var y=b[p],x=y.width;if(v===void 0)v=x;else if(v!==x){h=!1;break}if(x=y.height,d===void 0)d=x;else if(d!==x){h=!1;break}delete y.width,delete y.height,y.transform==="none"&&delete y.transform}h&&v!==void 0&&d!==void 0&&(S.setKeyframes(b),h=getComputedStyle(S.target,S.pseudoElement),h.width!==v||h.height!==d)&&(h=b[0],h.width=v,h.height=d,h=b[b.length-1],h.width=v,h.height=d,S.setKeyframes(b))}}u()},function(s){c.__reactViewTransition===m&&(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(),i(),u()}}),m.finished.finally(function(){for(var s=0;s<g.length;s++)g[s].cancel();c.__reactViewTransition===m&&(c.__reactViewTransition=null),o()}),m}catch{return l(),i(),u(),null}}function kl(t,e){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+e+")"}kl.prototype.animate=function(t,e){return e=typeof e=="number"?{duration:e}:ct({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)};kl.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,n=t.getAnimations({subtree:!0}),l=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===t&&a.pseudoElement===e&&l.push(n[i])}return l};kl.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function zy(t){return{name:t,group:new kl("group",t),imagePair:new kl("image-pair",t),old:new kl("old",t),new:new kl("new",t)}}function Ve(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}Ve.prototype.addEventListener=function(t,e,n){var l=null,i=null;if(!(n!=null&&typeof n!="boolean"&&(l=n.signal||null,l!==null&&l.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Cy(a,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&&(i=u.removeEventListener.bind(u,t,e,n),l.addEventListener("abort",i,{once:!0}),i=l.removeEventListener.bind(l,"abort",i)),l=ta(n),a.push({type:t,listener:e,optionsOrUseCapture:n,attachedListener:o,cleanup:i}),Me(this._fragmentFiber.child,!1,US,t,o,l)}this._eventListeners=a}};function US(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=Cy(l,t,e,n),e!==-1)){var i=l[e];n=i.attachedListener;var a=i.cleanup;i=ta(i.optionsOrUseCapture),Me(this._fragmentFiber.child,!1,BS,t,n,i),l.splice(e,1),a!==null&&a()}};function BS(t,e,n,l){return _t(t).removeEventListener(e,n,l),!1}function ta(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function Dh(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function Cy(t,e,n,l){if(t.length===0)return-1;l=Dh(l);for(var i=0;i<t.length;i++){var a=t[i];if(a.type===e&&a.listener===n&&Dh(a.optionsOrUseCapture)===l)return i}return-1}Ve.prototype.dispatchEvent=function(t){var e=ii(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 i=0;i<n.length;i++){var a=n[i];l.addEventListener(a.type,a.attachedListener,ta(a.optionsOrUseCapture))}if(e.appendChild(l),t=l.dispatchEvent(t),n)for(i=0;i<n.length;i++)a=n[i],l.removeEventListener(a.type,a.attachedListener,ta(a.optionsOrUseCapture));return e.removeChild(l),t}return e.dispatchEvent(t)};Ve.prototype.focus=function(t){Me(this._fragmentFiber.child,!0,Oy,t,void 0,void 0)};function Oy(t,e){return t.tag===6?!1:(t=_t(t),JS(t,e))}Ve.prototype.focusLast=function(t){var e=[];Me(this._fragmentFiber.child,!0,Yf,e,void 0,void 0);for(var n=e.length-1;0<=n&&!Oy(e[n],t);n--);};function Yf(t,e){return e.push(t),!1}Ve.prototype.blur=function(){var t=ii(this._fragmentFiber);t!==null&&(t=_t(t),t=lu(t).activeElement,t!==null&&Me(this._fragmentFiber.child,!1,VS,t,void 0,void 0))};function VS(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,GS,t,void 0,void 0)};function GS(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,YS,t,void 0,void 0);for(var n=e=0;n<an.length;n++){var l=an[n];l.fragmentInstance===this&&l.observer===t?t.unobserve(l.instance):an[e++]=l}an.length=e}};function YS(t,e){return t.tag===6||(t=_t(t),e.unobserve(t)),!1}var an=[],Hc=!1;function qS(t,e,n){an.push({fragmentInstance:t,observer:e,instance:n}),Hc||(Hc=!0,FS(function(){Hc=!1;var l=an;an=[];for(var i=0;i<l.length;i++){var a=l[i];a.observer.unobserve(a.instance)}}))}Ve.prototype.getClientRects=function(){var t=[];return Me(this._fragmentFiber.child,!1,XS,t,void 0,void 0),t};function XS(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=ii(this._fragmentFiber);return e===null?this:_t(e).getRootNode(t)};Ve.prototype.compareDocumentPosition=function(t){var e=ii(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Me(this._fragmentFiber.child,!1,Yf,n,void 0,void 0);var l=_t(e);if(n.length===0){if(n=l,fm(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 i=l=n.compareDocumentPosition(t);return n===t?i=Node.DOCUMENT_POSITION_CONTAINS:l&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=Wh(e)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(t=_t(n).compareDocumentPosition(t),i=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=_t(n[0]),i=_t(n[n.length-1]);var a=fm(this._fragmentFiber)?e.parentElement:l;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;l=a.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var u=e.compareDocumentPosition(t),o=i.compareDocumentPosition(t),r=u&Node.DOCUMENT_POSITION_CONTAINED_BY||o&Node.DOCUMENT_POSITION_CONTAINED_BY;return o=l&&a&&u&Node.DOCUMENT_POSITION_FOLLOWING&&o&Node.DOCUMENT_POSITION_PRECEDING,e=l&&e===t||a&&i===t||r||o?Node.DOCUMENT_POSITION_CONTAINED_BY:!l&&e===t||!a&&i===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:u,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||jS(e,this._fragmentFiber,n[0],n[n.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function jS(t,e,n,l,i){var a=jl(i);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)t:{for(;a!==null;){if(a.tag===7&&(a===e||a.alternate===e)){n=!0;break t}a=a.return}n=!1}return n}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;t:{for(a=e,e=ii(e);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==e&&a.alternate!==e)){a=!0;break t}a=a.return}a=!1}return a}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!a)&&!(e=a===n)&&(e=Bc(n,a,dm),e===null?e=!1:(Me(e,!0,vv,a,n),a=Mi,Mi=null,e=a!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!a)&&!(e=a===l)&&(e=Bc(l,a,dm),e===null?e=!1:(Me(e,!0,Sv,a,l),a=Mi,Uc=Mi=null,e=a!==null)),e):!1}function _h(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,Yf,e,void 0,void 0);var n=t!==!1;if(e.length===0){var l=Wh(this._fragmentFiber);if(l=n?l[1]||l[0]||ii(this._fragmentFiber):l[0]||l[1],l===null)return;if(l.tag===6){t=_t(l),_h(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 i=e[l];i.tag===6?(i=_t(i),_h(i,n)):_t(i).scrollIntoView(t),l+=n?-1:1}};function kS(t,e){return t=_t(t),Dy(t,e),!1}function Dy(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function _y(t,e){var n=e._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];t.addEventListener(i.type,i.attachedListener,ta(i.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(a){for(var u=0,o=0;o<an.length;o++){var r=an[o];(r.fragmentInstance!==e||r.observer!==a||r.instance!==t)&&(an[u++]=r)}an.length=u,a.observe(t)}),Dy(t,e))}function QS(t,e){var n=e._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];t.removeEventListener(i.type,i.attachedListener,ta(i.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(a){typeof a.rootMargin=="string"?qS(e,a,t):a.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function qs(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":qs(n),ir(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function PS(t,e,n,l){for(;t.nodeType===1;){var i=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[du])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(a=t.getAttribute("rel"),a==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(a!==i.rel||t.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute("title")!==(i.title==null?null:i.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(a=t.getAttribute("src"),(a!==(i.src==null?null:i.src)||t.getAttribute("type")!==(i.type==null?null:i.type)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var a=i.name==null?null:""+i.name;if(i.type==="hidden"&&t.getAttribute("name")===a)return t}else return t;if(t=Fe(t.nextSibling),t===null)break}return null}function KS(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 Hy(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 Xs(t){return t.data==="$?"||t.data==="$~"}function qf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function ZS(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 js=null;function Hh(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 Lh(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 JS(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 FS(t){zh(function(){zh(function(e){return t(e)})})}function Ly(t,e,n){switch(e=lu(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 Uy(t,e,n){for(var l in n){var i=n[l];n.hasOwnProperty(l)&&i!=null&&it(t,e,l,null,NS,i)}n.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===En&&(t.onclick=null),ir(t)}function Lc(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ir(t)}var Ie=new Map,Uh=new Set;function iu(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 In=et.d;et.d={f:IS,r:$S,D:WS,C:tE,L:eE,m:nE,X:iE,S:lE,M:aE};function IS(){var t=In.f(),e=br();return t||e}function $S(t){var e=ua(t);e!==null&&e.tag===5&&e.type==="form"?Sp(e):In.r(t)}var sa=typeof document>"u"?null:document;function By(t,e,n){var l=sa;if(l&&typeof e=="string"&&e){var i=Ke(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Uh.has(i)||(Uh.add(i),t={rel:t,crossOrigin:n,href:e},l.querySelector(i)===null&&(e=l.createElement("link"),Zt(e,"link",t),Gt(e),l.head.appendChild(e)))}}function WS(t){In.D(t),By("dns-prefetch",t,null)}function tE(t,e){In.C(t,e),By("preconnect",t,e)}function eE(t,e,n){In.L(t,e,n);var l=sa;if(l&&t&&e){var i='link[rel="preload"][as="'+Ke(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Ke(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Ke(n.imageSizes)+'"]')):i+='[href="'+Ke(t)+'"]';var a=i;switch(e){case"style":a=ea(t);break;case"script":a=fa(t)}if(!(Ie.has(a)||(t=ct({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ie.set(a,t),l.querySelector(i)!==null||e==="style"&&l.querySelector(bu(a))||e==="script"&&l.querySelector(vu(a))))){var u=l.createElement("link");Zt(u,"link",t),e==="style"&&(u[Do]=!0,u.onload=u.onerror=function(){dg(u)}),Gt(u),l.head.appendChild(u)}}}function nE(t,e){In.m(t,e);var n=sa;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+Ke(l)+'"][href="'+Ke(t)+'"]',a=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=fa(t)}if(!Ie.has(a)&&(t=ct({rel:"modulepreload",href:t},e),Ie.set(a,t),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(vu(a)))return}l=n.createElement("link"),Zt(l,"link",t),Gt(l),n.head.appendChild(l)}}}function lE(t,e,n){In.S(t,e,n);var l=sa;if(l&&t){var i=Ui(l).hoistableStyles,a=ea(t);e=e||"default";var u=i.get(a);if(!u){var o={loading:0,preload:null};if(u=l.querySelector(bu(a)))o.loading=5;else{t=ct({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ie.get(a))&&Xf(t,n);var r=u=l.createElement("link");Gt(r),Zt(r,"link",t),r._p=new Promise(function(c,m){r.onload=c,r.onerror=m}),r.addEventListener("load",function(){o.loading|=1}),r.addEventListener("error",function(){o.loading|=2}),o.loading|=4,To(u,e,l)}u={type:"stylesheet",instance:u,count:1,state:o},i.set(a,u)}}}function iE(t,e){In.X(t,e);var n=sa;if(n&&t){var l=Ui(n).hoistableScripts,i=fa(t),a=l.get(i);a||(a=n.querySelector(vu(i)),a||(t=ct({src:t,async:!0},e),(e=Ie.get(i))&&jf(t,e),a=n.createElement("script"),Gt(a),Zt(a,"link",t),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},l.set(i,a))}}function aE(t,e){In.M(t,e);var n=sa;if(n&&t){var l=Ui(n).hoistableScripts,i=fa(t),a=l.get(i);a||(a=n.querySelector(vu(i)),a||(t=ct({src:t,async:!0,type:"module"},e),(e=Ie.get(i))&&jf(t,e),a=n.createElement("script"),Gt(a),Zt(a,"link",t),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},l.set(i,a))}}function Bh(t,e,n,l){var i=(i=gl.current)?iu(i):null;if(!i)throw Error(N(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=ea(n.href),e=Ui(i).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=ea(n.href);var a=Ui(i).hoistableStyles,u=a.get(t);if(u||(i=i.ownerDocument||i,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(t,u),(a=i.querySelector(bu(t)))?a._p||(u.instance=a,u.state.loading=5):(a=Ie.get(t),a||(a={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,a)),uE(i,t,a,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=fa(n),e=Ui(i).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 ea(t){return'href="'+Ke(t)+'"'}function bu(t){return'link[rel="stylesheet"]['+t+"]"}function Vy(t){return ct({},t,{"data-precedence":t.precedence,precedence:null})}function uE(t,e,n,l){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[Do]!==!0){l.loading=1;return}}else e=t.createElement("link"),e[Do]=!0,e.onload=e.onerror=dg.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 fa(t){return'[src="'+Ke(t)+'"]'}function vu(t){return"script[async]"+t}function Vh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ke(n.href)+'"]');if(l)return e.instance=l,Gt(l),l;var i=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",i),To(l,n.precedence,t),e.instance=l;case"stylesheet":i=ea(n.href);var a=t.querySelector(bu(i));if(a)return e.state.loading|=4,e.instance=a,Gt(a),a;l=Vy(n),(i=Ie.get(i))&&Xf(l,i),a=(t.ownerDocument||t).createElement("link"),Gt(a);var u=a;return u._p=new Promise(function(o,r){u.onload=o,u.onerror=r}),Zt(a,"link",l),e.state.loading|=4,To(a,n.precedence,t),e.instance=a;case"script":return a=fa(n.src),(i=t.querySelector(vu(a)))?(e.instance=i,Gt(i),i):(l=n,(i=Ie.get(a))&&(l=ct({},n),jf(l,i)),t=t.ownerDocument||t,i=t.createElement("script"),Gt(i),Zt(i,"link",l),t.head.appendChild(i),e.instance=i);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,To(l,n.precedence,t));return e.instance}function To(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,a=i,u=0;u<l.length;u++){var o=l[u];if(o.dataset.precedence===e)a=o;else if(a!==i)break}a?a.parentNode.insertBefore(t,a.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Xf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function jf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Mo=null;function Gh(t,e,n){if(Mo===null){var l=new Map,i=Mo=new Map;i.set(n,l)}else i=Mo,l=i.get(n),l||(l=new Map,i.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),i=0;i<n.length;i++){var a=n[i];if(!(a[du]||a[kt]||t==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var u=a.getAttribute(e)||"";u=t+u;var o=l.get(u);o?o.push(a):l.set(u,[a])}}return l}function ks(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function oE(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 Yh(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function Gy(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Yy(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function qh(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=Yy(e),t.suspenseyImages.push(e)),t=sE.bind(t),e.decode().then(t,t))}function rE(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 i=ea(l.href),a=e.querySelector(bu(i));if(a){e=a._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=a,Gt(a);return}a=e.ownerDocument||e,l=Vy(l),(i=Ie.get(i))&&Xf(l,i),a=a.createElement("link"),Gt(a);var u=a;u._p=new Promise(function(o,r){u.onload=o,u.onerror=r}),Zt(a,"link",l),n.instance=a}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 No=0;function cE(t,e){return t.stylesheets&&t.count===0&&wo(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&wo(t,t.stylesheets),t.unsuspend){var a=t.unsuspend;t.unsuspend=null,a()}},6e4+e);0<t.imgBytes&&No===0&&(No=62500*AS());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&wo(t,t.stylesheets),t.unsuspend)){var a=t.unsuspend;t.unsuspend=null,a()}},(t.imgBytes>No?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function qy(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)wo(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function au(){this.count--,qy(this)}function sE(){this.imgCount--,qy(this)}var er=null;function wo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,er=new Map,e.forEach(fE,t),er=null,au.call(t))}function fE(t,e){if(!(e.state.loading&4)){var n=er.get(t);if(n)var l=n.get(null);else{n=new Map,er.set(t,n);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<i.length;a++){var u=i[a];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(n.set(u.dataset.precedence,u),l=u)}l&&n.set(null,l)}i=e.instance,u=i.getAttribute("data-precedence"),a=n.get(u)||l,a===l&&n.set(null,i),n.set(u,i),this.count++,l=au.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),a?a.parentNode.insertBefore(i,a.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var na={$$typeof:Sn,Provider:null,Consumer:null,_currentValue:Ql,_currentValue2:Ql,_threadCount:0};function dE(t,e,n,l,i,a,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=cc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cc(0),this.hiddenUpdates=cc(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r,this.transitionTypes=null,this.incompleteTransitions=new Map}function Xy(t,e,n,l,i,a,u,o,r,c,m,g){return t=new dE(t,e,n,u,r,c,m,g,o),e=1,a===!0&&(e|=24),a=xe(3,null,null,e),t.current=a,a.stateNode=t,e=cf(),e.refCount++,t.pooledCache=e,e.refCount++,a.memoizedState={element:l,isDehydrated:n,cache:e},df(a),t}function jy(t){return t?(t=Di,t):Di}function ky(t,e,n,l,i,a){i=jy(i),l.context===null?l.context=i:l.pendingContext=i,l=yl(e),l.payload={element:n},a=a===void 0?null:a,a!==null&&(l.callback=a),n=bl(t,l,e),n!==null&&(Te(n,t,e),Ba(n,t,e))}function Xh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function kf(t,e){Xh(t,e),(t=t.alternate)&&Xh(t,e)}function Qy(t){if(t.tag===13||t.tag===31){var e=oi(t,67108864);e!==null&&Te(e,t,67108864),kf(t,67108864)}}function jh(t){if(t.tag===13||t.tag===31){var e=Ue();e=Fs(e);var n=oi(t,e);n!==null&&Te(n,t,e),kf(t,e)}}var la=!0;function mE(t,e,n,l){var i=H.T;H.T=null;var a=et.p;try{et.p=2,Qf(t,e,n,l)}finally{et.p=a,H.T=i}}function hE(t,e,n,l){var i=H.T;H.T=null;var a=et.p;try{et.p=8,Qf(t,e,n,l)}finally{et.p=a,H.T=i}}function Qf(t,e,n,l){if(la){var i=Qs(l);if(i===null)Dc(t,e,l,nr,n),kh(t,l);else if(pE(i,t,e,n,l))l.stopPropagation();else if(kh(t,l),e&4&&-1<gE.indexOf(t)){for(;i!==null;){var a=ua(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var u=Yl(a.pendingLanes);if(u!==0){var o=a;for(o.pendingLanes|=2,o.entangledLanes|=2;u;){var r=1<<31-Le(u);o.entanglements[1]|=r,u&=~r}Rn(a),(tt&6)===0&&(Fo=_e()+500,yu(0,!1))}}break;case 31:case 13:o=oi(a,2),o!==null&&Te(o,a,2),br(),kf(a,2)}if(a=Qs(l),a===null&&Dc(t,e,l,nr,n),a===i)break;i=a}i!==null&&l.stopPropagation()}else Dc(t,e,l,null,n)}}function Qs(t){return t=Ws(t),Pf(t)}var nr=null;function Pf(t){if(nr=null,t=jl(t),t!==null){var e=ru(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=Fh(e),t!==null)return t;t=null}else if(n===31){if(t=Ih(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 nr=t,null}function Py(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(zv()){case lg:return 2;case ig:return 8;case Oo:case Cv:return 32;case ag:return 268435456;default:return 32}default:return 32}}var Ps=!1,xl=null,Tl=null,Ml=null,uu=new Map,ou=new Map,rl=[],gE="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 kh(t,e){switch(t){case"focusin":case"focusout":xl=null;break;case"dragenter":case"dragleave":Tl=null;break;case"mouseover":case"mouseout":Ml=null;break;case"pointerover":case"pointerout":uu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ou.delete(e.pointerId)}}function wa(t,e,n,l,i,a){return t===null||t.nativeEvent!==a?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:a,targetContainers:[i]},e!==null&&(e=ua(e),e!==null&&Qy(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function pE(t,e,n,l,i){switch(e){case"focusin":return xl=wa(xl,t,e,n,l,i),!0;case"dragenter":return Tl=wa(Tl,t,e,n,l,i),!0;case"mouseover":return Ml=wa(Ml,t,e,n,l,i),!0;case"pointerover":var a=i.pointerId;return uu.set(a,wa(uu.get(a)||null,t,e,n,l,i)),!0;case"gotpointercapture":return a=i.pointerId,ou.set(a,wa(ou.get(a)||null,t,e,n,l,i)),!0}return!1}function Ky(t){var e=jl(t.target);if(e!==null){var n=ru(e);if(n!==null){if(e=n.tag,e===13){if(e=Fh(n),e!==null){t.blockedOn=e,pm(t.priority,function(){jh(n)});return}}else if(e===31){if(e=Ih(n),e!==null){t.blockedOn=e,pm(t.priority,function(){jh(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 Ao(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Qs(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Jc=l,n.target.dispatchEvent(l),Jc=null}else return e=ua(n),e!==null&&Qy(e),t.blockedOn=n,!1;e.shift()}return!0}function Qh(t,e,n){Ao(t)&&n.delete(e)}function yE(){Ps=!1,xl!==null&&Ao(xl)&&(xl=null),Tl!==null&&Ao(Tl)&&(Tl=null),Ml!==null&&Ao(Ml)&&(Ml=null),uu.forEach(Qh),ou.forEach(Qh)}function uo(t,e){t.blockedOn===e&&(t.blockedOn=null,Ps||(Ps=!0,Ht.unstable_scheduleCallback(Ht.unstable_NormalPriority,yE)))}var oo=null;function Ph(t){oo!==t&&(oo=t,Ht.unstable_scheduleCallback(Ht.unstable_NormalPriority,function(){oo===t&&(oo=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],i=t[e+2];if(typeof l!="function"){if(Pf(l||n)===null)continue;break}var a=ua(n);a!==null&&(t.splice(e,3),e-=3,fs(a,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function ia(t){function e(r){return uo(r,t)}xl!==null&&uo(xl,t),Tl!==null&&uo(Tl,t),Ml!==null&&uo(Ml,t),uu.forEach(e),ou.forEach(e);for(var n=0;n<rl.length;n++){var l=rl[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<rl.length&&(n=rl[0],n.blockedOn===null);)Ky(n),n.blockedOn===null&&rl.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var i=n[l],a=n[l+1],u=i[Ne]||null;if(typeof a=="function")u||Ph(n);else if(u){var o=null;if(a&&a.hasAttribute("formAction")){if(i=a,u=a[Ne]||null)o=u.formAction;else if(Pf(i)!==null)continue}else o=u.action;typeof o=="function"?n[l+1]=o:(n.splice(l,3),l-=3),Ph(n)}}}function Zy(){function t(a){a.canIntercept&&a.info==="react-transition"&&a.intercept({handler:function(){return new Promise(function(u){return i=u})},focusReset:"manual",scroll:"manual"})}function e(){i!==null&&(i(),i=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var a=navigation.currentEntry;a&&a.url!=null&&navigation.navigate(a.url,{state:a.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=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),i!==null&&(i(),i=null)}}}function Kf(t){this._internalRoot=t}Er.prototype.render=Kf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(N(409));var n=e.current,l=Ue();ky(n,l,t,e,null,null)};Er.prototype.unmount=Kf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;ky(t.current,2,null,t,null,null),br(),e[aa]=null}};function Er(t){this._internalRoot=t}Er.prototype.unstable_scheduleHydration=function(t){if(t){var e=fg();t={blockedOn:null,target:t,priority:e};for(var n=0;n<rl.length&&e!==0&&e<rl[n].priority;n++);rl.splice(n,0,t),n===0&&Ky(t)}};var Kh=Zh.version;if(Kh!=="19.3.0")throw Error(N(527,Kh,"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=bv(e),t=t!==null?$h(t):null,t=t===null?null:t.stateNode,t};var bE={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Aa=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Aa.isDisabled&&Aa.supportsFiber))try{cu=Aa.inject(bE),He=Aa}catch{}var Aa;xr.createRoot=function(t,e){if(!Jh(t))throw Error(N(299));var n=!1,l="",i=Rp,a=zp,u=Cp;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(a=e.onCaughtError),e.onRecoverableError!==void 0&&(u=e.onRecoverableError)),e=Xy(t,1,!1,null,null,n,l,null,i,a,u,Zy),t[aa]=e.current,Vf(t),new Kf(e)};xr.hydrateRoot=function(t,e,n){if(!Jh(t))throw Error(N(299));var l=!1,i="",a=Rp,u=zp,o=Cp,r=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(u=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(r=n.formState)),e=Xy(t,1,!0,e,n??null,l,i,r,a,u,o,Zy),e.context=jy(null),n=e.current,l=Ue(),l=Fs(l),i=yl(l),i.callback=null,bl(n,i,l),n=l,e.current.lanes=n,fu(e,n),Rn(e),t[aa]=e.current,Vf(t),new Er(e)};xr.version="19.3.0"});var $y=mn((Yx,Iy)=>{"use strict";function Fy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fy)}catch(t){console.error(t)}}Fy(),Iy.exports=Jy()});var a0=mn(Tr=>{"use strict";var SE=Symbol.for("react.transitional.element"),EE=Symbol.for("react.fragment");function i0(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 i in e)i!=="key"&&(n[i]=e[i])}else n=e;return e=n.ref,{$$typeof:SE,type:t,key:l,ref:e!==void 0?e:null,props:n}}Tr.Fragment=EE;Tr.jsx=i0;Tr.jsxs=i0});var wt=mn((Wx,u0)=>{"use strict";u0.exports=a0()});var Ou=1e4,Ub=25e4,Bb=256*1024*1024,Xr=24*1024*1024,Du="data/search.json",_u="theme/publication.css",Hu=48*1024,Vb=["parent","child","left","right","previous","next"],Gb=["document","drawing","attachment","folder","tag","url"],Yb=/^(?: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)$/,qb=/^[a-f0-9]{64}$/,zd=["none","arrow","triangle","bar","dot"],Xb=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,jb=/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/;function Ln(t){return typeof t=="string"&&jb.test(t)}function jr(t){if(!Ln(t))throw new Error("Invalid public note ID");return`notes/${t}.html`}function mi(t){return typeof t=="string"&&t.length<=180&&Yb.test(t)}function kb(t){return mi(t)&&(t.startsWith("notes/")||t.startsWith("assets/")||t===Du||t===_u)}function Od(t){if(!kb(t))throw new Error("Invalid offline publication resource");return`local/${t}.css`}function tn(t){if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Invalid publication record");return t}function Bl(t,e){return typeof t=="string"&&t.length<=e&&t.trim().length>0&&!/\p{Cc}/u.test(t)}function tl(t,e,n){return typeof t=="number"&&Number.isFinite(t)&&t>=e&&t<=n}function Cu(t){let e=tn(t),n={};for(let a of["fill","stroke","color","gate"]){let u=e[a];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[a]=u}}let{fontSize:l,gateRadius:i}=e;if(l!==void 0&&!tl(l,6,96))throw new Error("Invalid publication font size");if(i!==void 0&&!tl(i,0,40))throw new Error("Invalid publication gate radius");return{...n,fontSize:l,gateRadius:i}}function Qb(t){let{center:e,sibling:n,inferred:l}=tn(t);return{center:e===void 0?void 0:Cu(e),sibling:n===void 0?void 0:Cu(n),inferred:l===void 0?void 0:Cu(l)}}function Pb(t){let{stroke:e,width:n,arrowStart:l,arrowEnd:i,startHead:a,endHead:u}=tn(t);if(e!==void 0&&(typeof e!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(e))||n!==void 0&&!tl(n,.25,20)||l!==void 0&&typeof l!="boolean"||i!==void 0&&typeof i!="boolean")throw new Error("Invalid publication link style");let o=zd.find(c=>c===a),r=zd.find(c=>c===u);if(a!==void 0&&!o||u!==void 0&&!r)throw new Error("Invalid publication arrow type");return{stroke:e,width:n,arrowStart:l,arrowEnd:i,startHead:o,endHead:r}}function Kb(t){let e=tn(t),n={};if(e.maximum!==void 0){if(!tl(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=tn(e.geometry),i={},a=["compactingFactor","horizontalCompactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"];for(let u of a){let o=l[u];if(o!==void 0){if(!tl(o,.1,4e3))throw new Error("Invalid publication geometry");Object.assign(i,{[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={...i,...l.compactView===void 0?{}:{compactView:l.compactView},...l.lateralArrangement===void 0?{}:{lateralArrangement:l.lateralArrangement}}}if(e.typography!==void 0){let{baseFontSize:l,wrapNodeLabels:i,propertyFontSize:a}=tn(e.typography);if(l!==void 0&&!tl(l,6,48)||a!==void 0&&!tl(a,6,48)||i!==void 0&&typeof i!="boolean")throw new Error("Invalid publication typography");n.typography={baseFontSize:l,wrapNodeLabels:i,propertyFontSize:a}}return n}function Zb(t){let e=Object.entries(tn(t));if(e.length>64)throw new Error("Too many publication properties");let n=new Map;for(let[l,i]of e){if(!Bl(l,192)||["__proto__","constructor","prototype"].includes(l))throw new Error("Invalid publication property name");if(Bl(i,1e3)||typeof i=="boolean"||typeof i=="number"&&Number.isFinite(i))n.set(l,i);else if(Array.isArray(i)&&i.length<=48&&i.every(a=>Bl(a,1e3)))n.set(l,[...i]);else throw new Error("Invalid publication property value")}return Object.fromEntries(n)}function Dd(t){let e=tn(t);if(e.version!==2||typeof e.runtimeVersion!="string"||!Xb.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(!Ln(e.id)||!Ln(e.entry)||!Bl(e.title,240)||typeof e.fullText!="boolean"||!Array.isArray(e.nodes)||!e.nodes.length||e.nodes.length>Ou||!Array.isArray(e.relations)||e.relations.length>Ub||!Array.isArray(e.resources)||e.resources.length>Ou*4)throw new Error("Invalid publication manifest");let l=0,i=new Set,a=e.resources.map(s=>{let{path:f,bytes:b,sha256:S}=tn(s);if(!mi(f)||i.has(f)||!tl(b,0,32*1024*1024)||!Number.isInteger(b)||typeof S!="string"||!qb.test(S))throw new Error("Invalid publication resource");if(i.add(f),l+=b,l>Bb)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=tn(s),{id:b,title:S,aliases:v,asset:d}=f,h=Gb.find(p=>p===f.kind);if(!Ln(b)||u.has(b)||!Bl(S,512)||!h)throw new Error("Invalid publication node");if(u.add(b),h==="document"||h==="drawing"){let p=jr(b);if(!i.has(p))throw new Error("Missing publication note resource");o.add(p)}if(d!==void 0&&(typeof d!="string"||!d.startsWith("assets/")||!i.has(d)))throw new Error("Missing publication asset");if(v!==void 0&&(!Array.isArray(v)||v.length>64||!v.every(p=>Bl(p,512))))throw new Error("Invalid publication aliases");return{id:b,title:S,kind:h,...v===void 0?{}:{aliases:[...v]},...d===void 0?{}:{asset:d},...f.style===void 0?{}:{style:Cu(f.style)},...f.roleStyles===void 0?{}:{roleStyles:Qb(f.roleStyles)},...f.properties===void 0?{}:{properties:Zb(f.properties)}}});if(!u.has(e.entry)||[...i].some(s=>s.startsWith("notes/")&&!o.has(s))||e.fullText!==i.has(Du))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 m=new Set,g=e.relations.map(s=>{let{source:f,target:b,relationType:S,direction:v,definition:d,role:h,style:p}=tn(s),y=Vb.find(T=>T===h);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&&!Bl(d,192))throw new Error("Invalid publication relationship");let x=`${f}/${b}/${y}`;if(m.has(x))throw new Error("Duplicate publication relationship");return m.add(x),{source:f,target:b,role:y,relationType:S,direction:v,...d===void 0?{}:{definition:d},...p===void 0?{}:{style:Pb(p)}}});return{version:2,runtimeVersion:e.runtimeVersion,id:e.id,title:e.title,entry:e.entry,fullText:e.fullText,nodes:r,relations:g,resources:a,...n===void 0?{}:{colorMode:n},...c===void 0?{}:{pins:c},...e.appearance===void 0?{}:{appearance:Kb(e.appearance)}}}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 Sb=K($y(),1);var P=K(Ae(),1);var da=t=>t;var Su={key:"F4"};var Zf={min:8,max:20,step:1,default:12};function Jf(t){return typeof t=="number"&&Number.isFinite(t)?Math.max(Zf.min,Math.min(Zf.max,t)):Zf.default}var Eu=(t,e,n)=>Math.max(e,Math.min(n,t));function Wy(t){return Math.max(5,(t.gateRadius??5)*1.05)}function Ff(t=30,e=!1){let n=Math.round(Math.max(8,t));return Math.max(e?18:8,n+(e?8:0))}function xu(t,e,n=12.4){return(e?Eu(t*.72,13,24):Eu(t*.62,10,16))*Eu(Number.isFinite(n)?n:12.4,8,28)/12.4}function vE(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((i,a)=>i+(a.codePointAt(0)>11903?1:.55)*e,0);return n(t.text)+(t.label?n(`${t.label}:`)+4:0)+(t.icon?e+4:0)}function t0(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 e0(t,e){return t.reduce((n,l)=>Math.max(n,32+vE(l,e)),0)}function n0(t,e,n,l=!1,i=30,a,u=1,o=[]){let r=(n.baseFontSize??12.4)/12.4,c=Math.min(t.length,Ff(i,l)),m=l?180:112,s=Math.max(m,a??(l?370:286)),f=l?xu(e,!0,n.baseFontSize)*.55:e*r*.29,b=Eu(70+c*Math.max(4.8,f),m,s),S=(l?16:8)+2*Math.max(0,u),v=xu(e,l,n.baseFontSize),d=Math.max(l?48:26,Math.ceil(v*1.6+S)),h=Math.ceil(Math.max(e*r,v)*2.4+v*.4+S),p=n.wrapNodeLabels?Math.max(d,h):d,y=Jf(n.propertyFontSize),x=e0(o,y);return{width:o.length?Eu(Math.max(b,x),m,s):b,height:p+t0(o,y)}}function l0(t,e,n,l,i=1,a=[]){if(e===1)return t;let u=Jf(l.propertyFontSize),o=e0(a,u),r=xu(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,i))+t0(a,u))}}var At=K(wt(),1);function o0({bounds:t,semanticRole:e,className:n,style:l,...i}){return(0,At.jsx)("div",{...i,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 r0({label:t,maximum:e,center:n}){let l=Ff(e??30,n),i=t.length>l?`${t.slice(0,Math.max(1,l-1))}…`:t;return(0,At.jsx)("span",{className:"kplex-thought-text",title:t,children:i})}function c0({wrap:t,children:e}){return(0,At.jsx)("span",{className:`kplex-thought-label${t?" is-two-line":""}`,children:e})}function s0({side:t,connected:e,highlighted:n,disabled:l,count:i,...a}){return(0,At.jsxs)("span",{className:`kplex-gate-wrap gate-wrap-${t}${e?"":" is-empty"}`,children:[(0,At.jsx)("span",{...a,"data-kplex-gate":t,className:`kplex-gate gate-${t}${e?" has-connections":" is-empty"}${n?" is-highlighted":""}${l?" is-link-disabled":""}`}),i!==null&&(0,At.jsx)("span",{className:"kplex-gate-count",children:i})]})}function f0(t){return(0,At.jsx)("path",{className:"kplex-edge-visible",fill:"none",vectorEffect:"non-scaling-stroke",...t})}function d0({label:t,midpoint:e,fontSize:n,color:l,background:i,opacity:a}){if(!t)return null;let u=n??10,o=Math.max(20,t.length*u*.58+10),r=u+6;return(0,At.jsxs)("g",{className:"kplex-edge-label-wrap",pointerEvents:"none",opacity:a,children:[(0,At.jsx)("rect",{x:e.x-o/2,y:e.y-r/2,width:o,height:r,rx:3,fill:i}),(0,At.jsx)("text",{className:"kplex-edge-label",x:e.x,y:e.y,textAnchor:"middle",dominantBaseline:"central",fill:l,fontSize:u,children:t})]})}function If(t,e="kplex"){if(!(!t||t==="none"))return`url(#${e}-${t==="triangle"||t==="dot"||t==="bar"?t:"arrow"})`}function m0({prefix:t="kplex"}){return(0,At.jsxs)("defs",{children:[(0,At.jsx)("marker",{id:`${t}-arrow`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,At.jsx)("path",{d:"M1,1 L8,4.5 L1,8",fill:"none",stroke:"context-stroke",strokeWidth:"1.4"})}),(0,At.jsx)("marker",{id:`${t}-triangle`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,At.jsx)("path",{d:"M0,0 L9,4.5 L0,9 z",fill:"context-stroke"})}),(0,At.jsx)("marker",{id:`${t}-dot`,markerWidth:"8",markerHeight:"8",refX:"4",refY:"4",orient:"auto",markerUnits:"strokeWidth",children:(0,At.jsx)("circle",{cx:"4",cy:"4",r:"2.6",fill:"context-stroke"})}),(0,At.jsx)("marker",{id:`${t}-bar`,markerWidth:"8",markerHeight:"10",refX:"4",refY:"5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,At.jsx)("path",{d:"M4,1 L4,9",stroke:"context-stroke",strokeWidth:"1.8"})})]})}var h0={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous"};function Tu(t,e){let n=e.toLowerCase(),l=t.nodes.get(n);return l?[l.id]:t.shortIds.get(n)??[]}function g0(t,e){if(!t.manifest)return;let n=e.slice(0,8),l=Tu(t,n);return l.length===1&&l[0]===e?n:void 0}function $f(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function ma(t){return typeof t=="string"&&t.trim().length>0}function xE(t){return typeof t=="string"&&Object.getOwnPropertyDescriptor(h0,t)!==void 0}function p0(t){let e=$f(t);if(e?.version===2&&("runtimeVersion"in e||"resources"in e))return TE(Dd(t));if(e?.version!==1)throw new Error("Unsupported publication fixture version");if(!ma(e.title)||!ma(e.entry)||!Array.isArray(e.nodes)||!Array.isArray(e.relations))throw new Error("Invalid publication fixture");let n=new Map,l=new Map,i=Object.freeze([]);for(let r of e.nodes){let c=$f(r);if(!c||!ma(c.id)||!ma(c.title)||n.has(c.id)||c.text!==void 0&&typeof c.text!="string")throw new Error("Invalid or duplicate publication node");let m=da(c.id);n.set(m,Object.freeze({id:m,name:c.title,kind:"document",resolution:"resolved",url:null,aliases:i,tags:i,styleTags:i,noteType:null,primaryStyleTag:null,maxLabelLength:30})),typeof c.text=="string"&&l.set(m,c.text)}let a=n.get(e.entry)?.id;if(!a)throw new Error("Missing publication entry node");let u=new Map,o=new Set;for(let r of e.relations){let c=$f(r);if(!c||!ma(c.source)||!ma(c.target)||!xE(c.role)||c.label!==void 0&&typeof c.label!="string")throw new Error("Invalid publication relationship");let m=n.get(c.source),g=n.get(c.target);if(!m||!g)throw new Error("Missing publication relationship endpoint");let s=h0[c.role],f=JSON.stringify([m.id,c.role,g.id]);if(m===g||o.has(f))throw new Error("Invalid or duplicate publication relationship");o.add(f),o.add(JSON.stringify([g.id,s,m.id])),Wf(u,m,g,c.role,1,1,c.label),Wf(u,g,m,s,1,2,c.label)}return{title:e.title,entry:a,read:y0(n,u),nodes:n,shortIds:new Map,manifest:null,published:new Map,body:r=>l.get(r),linkStyle:()=>{}}}function Wf(t,e,n,l,i,a,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:i,direction:a,definition:u}))}function TE(t){let e=new Map,n=new Map,l=new Map,i=new Map,a=new Map;for(let u of t.nodes){let o=da(u.id),r=u.id.slice(0,8),c=i.get(r);c?c.push(o):i.set(r,[o]);let m=u.kind==="folder"?"container":u.kind==="drawing"?"document":u.kind;e.set(o,Object.freeze({id:o,name:u.title,kind:m,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)Wf(l,e.get(u.source),e.get(u.target),u.role,u.relationType,u.direction,u.definition),u.style&&a.set(`${u.source}/${u.target}/${u.role}`,u.style);return{title:t.title,entry:da(t.entry),read:y0(e,l),nodes:e,shortIds:i,manifest:t,published:n,body:()=>{},linkStyle:(u,o,r)=>a.get(`${u}/${o}/${r}`)}}function y0(t,e){let n=new Intl.Collator("en",{numeric:!0}),l=(a,u)=>n.compare(a.name,u.name)||(a.id<u.id?-1:a.id>u.id?1:0);for(let a of e.values())for(let u of a.values())Object.freeze(u.sort((o,r)=>l(o.node,r.node)));let i=Object.freeze([]);return{coverage:"local",isCurrent:()=>!0,node:a=>t.get(a)??null,relations(a,u,o){if(!t.has(a))return{items:i,coverage:"unavailable",truncated:!1};let r=e.get(a)?.get(u)??i,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 ci=K(Ae(),1);var ME=80;function Mr(t,e){return[...t.filter(n=>n.id!==e.id),e].slice(-ME)}function ed(t){try{let e=decodeURIComponent(t.replace(/^#/,""));return e.length<=200&&!/\p{Cc}/u.test(e)&&e||void 0}catch{return}}function Mu(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"),i=l===null?[]:Tu(t,l),a=i.length===1?i[0]:void 0,u=ed(n?encodeURIComponent(n.get("fragment")??""):e.hash);return{location:{id:a??t.entry,fragment:a||l===null?u:void 0},addressProblem:l===null||a?void 0:i.length?"ambiguous":"missing",matches:i}}function nd(t,e){let n=new URLSearchParams({node:t});return e&&n.set("fragment",e),`#${n}`}function b0(t,e,n,l){try{let i=new URL(t,e);if(i.origin!==e.origin||i.pathname!==e.pathname&&i.pathname!==`${e.pathname}index.html`)return;if(t.startsWith("#node=")&&e.protocol==="file:"){let{location:r,addressProblem:c}=Mu(n,i);return c?void 0:r}if(t.startsWith("#"))return{id:l,fragment:ed(i.hash)};if(!(i.searchParams.get("node")??i.searchParams.get("node-id")))return;let{location:u,addressProblem:o}=Mu(n,i);return o?void 0:u}catch{return}}function Nu(t,e,n=e.id){let l=new URL(t);return l.protocol==="file:"?(l.hash=nd(n,e.fragment??""),l):(l.searchParams.delete("node-id"),l.searchParams.set("node",n),l.hash=e.fragment?encodeURIComponent(e.fragment):"",l)}function v0(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 i=a=>a.endsWith("/")?a+"index.html":a;return i(l.pathname)!==i(e.pathname)||!(l.searchParams.has("node")||l.searchParams.has("node-id")||l.protocol==="file:"&&l.hash.startsWith("#node="))?void 0:Mu(n,l)}catch{return}}function td(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 S0(t,e,n){let l=(0,ci.useRef)(n);l.current=n;let i=t.manifest?.id,[a,u]=(0,ci.useState)(()=>{let f=e?Mu(t,new URL(e.location.href)):{location:{id:t.entry},addressProblem:void 0},b=e&&i?td(e.history.state,i)??{position:0,last:0}:void 0;return{entries:[f.location],index:0,addressProblem:f.addressProblem,browser:b,visits:[f.location]}}),o=a.entries[a.index],r=(0,ci.useRef)(a.browser?.last??0);(0,ci.useEffect)(()=>{if(!e||!i)return;let f=e.history,b=v=>{let{location:d,addressProblem:h}=Mu(t,new URL(e.location.href)),p=td(v.state,i),y=p?{...p,last:Math.max(p.position,r.current)}:{position:0,last:0};r.current=y.last,f.replaceState({kplexPublication:i,...y},""),l.current(d.id),u(x=>({entries:[d],index:0,addressProblem:h,browser:y,visits:Mr(x.visits,d)}))},S=td(f.state,i)??{position:0,last:0};return f.replaceState({kplexPublication:i,...S},""),e.addEventListener("popstate",b),()=>e.removeEventListener("popstate",b)},[e,t,i]);function c(f){if(!t.nodes.has(f.id)||!a.addressProblem&&o.id===f.id&&o.fragment===f.fragment)return!1;if(l.current(f.id),e&&i&&a.browser){let S=a.browser.position+1,v={position:S,last:S};return e.history.pushState({kplexPublication:i,...v},"",Nu(new URL(e.location.href),f)),r.current=S,u({entries:[f],index:0,browser:v,visits:Mr(a.visits,f)}),!0}let b=a.index+1;return u({entries:[...a.entries.slice(0,b),f],index:b,visits:Mr(a.visits,f)}),!0}let m=a.browser?a.browser.position>0:a.index>0,g=a.browser?a.browser.position<a.browser.last:a.index+1<a.entries.length;function s(f){if(f===-1?m:g)if(e&&a.browser)e.history.go(f);else{let b=a.index+f,S=a.entries[b];l.current(S.id),u({...a,index:b,addressProblem:void 0,visits:Mr(a.visits,S)})}}return{attention:o,activate:c,move:s,visits:a.visits,addressProblem:a.addressProblem,canGoBack:m,canGoForward:g}}var Dl=K(Ae(),1);var ha=K(Ae(),1),T0=K(Yu(),1);var NE="button, input, select, textarea, a[href], [contenteditable='true'], [role='button'], [role='link'], [data-kplex-no-dialog-drag]";function wE(){}function AE(t){return!t||typeof t!="object"||!("closest"in t)?null:t}function RE(t,e){let l=AE(t)?.closest(NE)??null;return!!(l&&e.contains(l))}function E0(t,e,n,l,i){let a=e+i,u=Math.max(a,e+n-l-i);return Math.min(u,Math.max(a,t))}function zE(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 x0({modalEl:t,handleEl:e,viewportMargin:n=8,onPositionChange:l}){let i=t.ownerDocument,a=i.defaultView;if(!a||e.ownerDocument!==i)return wE;let u=null,o=!1,r=!1,c=!1,m=a.visualViewport,g=(x,T)=>{let M=t.getBoundingClientRect(),w=zE(a),z=E0(x,w.left,w.width,M.width,n),C=E0(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=()=>{i.removeEventListener("pointermove",S,!0),i.removeEventListener("pointerup",v,!0),i.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()},h=()=>{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},i.addEventListener("pointermove",S,!0),i.addEventListener("pointerup",v,!0),i.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),a.removeEventListener("blur",h),a.removeEventListener("resize",s),a.removeEventListener("pagehide",y),m?.removeEventListener("resize",s),m?.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),a.addEventListener("blur",h),a.addEventListener("resize",s),a.addEventListener("pagehide",y),m?.addEventListener("resize",s),m?.addEventListener("scroll",s),y}function CE(t,e){let n=t.target,l=t.composedPath();return e.some(i=>i?l.includes(i)?!0:n?i.contains(n):!1:!1)}function M0({open:t,anchorRef:e,panelRef:n,dragHandleRef:l,insideRoots:i,onDismiss:a,dismissWhenAnchorHidden:u=!1,handleEscape:o,portalTarget:r,positioning:c,children:m}){let[g,s]=(0,ha.useState)({}),f=(0,ha.useRef)({insideRoots:i,onDismiss:a,handleEscape:o});f.current={insideRoots:i,onDismiss:a,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,ha.useLayoutEffect)(()=>{if(!t)return;let h=e.current;if(!h)return;let p=h.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)),ie=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-ie-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:ie,maxHeight:Math.max(0,me-he-J)})},w=ot=>{CE(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(h),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?x0({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,T0.createPortal)(m(g),d):null}var rn=K(wt(),1),OE={preferredWidth:250,minimumWidth:160,viewportMargin:8,anchorGap:5,minimumMaxHeight:55};function N0({anchor:t,address:e,shortAddress:n,onDismiss:l,onCopied:i}){let a=(0,Dl.useRef)(t),u=(0,Dl.useRef)(null),o=(0,Dl.useRef)(!0),[r,c]=(0,Dl.useState)();a.current=t,(0,Dl.useEffect)(()=>(o.current=!0,()=>{o.current=!1}),[]);async function m(s){try{let f=t.ownerDocument.defaultView?.navigator.clipboard;if(!f)throw new Error("Clipboard unavailable");await f.writeText(s),o.current&&(i(),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)(M0,{open:!0,anchorRef:a,panelRef:u,insideRoots:()=>[u.current],dismissWhenAnchorHidden:!0,onDismiss:s=>l(s==="escape"),portalTarget:()=>t.closest(".kplex-publication"),positioning:OE,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&&m(n)},children:O.copyShortAddress}),(0,rn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!n,onClick:()=>{m(e)},children:O.copyFullAddress}),!n&&(0,rn.jsx)("p",{children:O.ambiguousAddress})]})})})}var wu=K(Ae(),1);function w0(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 i=t[l],a=t[l-1];if(n>i.offset&&l<t.length-1)continue;let u=i.offset>a.offset?(n-a.offset)/(i.offset-a.offset):1,o=(r,c)=>r+(c-r)*u;return{offset:n,x:o(a.x,i.x),y:o(a.y,i.y),scaleX:o(a.scaleX,i.scaleX),scaleY:o(a.scaleY,i.scaleY),originX:o(a.originX,i.originX),originY:o(a.originY,i.originY)}}return null}var Nr=class{constructor(){this.animations=new Map;this.poses=new Map}play(e,n,l,i){this.animations.get(e)?.cancel(),this.animations.delete(e),this.poses.delete(e);let a=e.animate(n,{...l,fill:"none"});if(!a)return null;this.animations.set(e,a),i&&this.poses.set(e,{animation:a,frames:i});let u=()=>{this.animations.get(e)===a&&(this.animations.delete(e),this.poses.delete(e))};return a.finished.then(u,u),a}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"?w0(n.frames,l):null}cancelAll(){for(let e of this.animations.values())e.cancel();this.animations.clear(),this.poses.clear()}};function A0(t,e,n,l){let i=Math.max(.01,n),a=(t.left-e.left)/i,u=(t.top-e.top)/i,o=e.width>0?t.width/e.width:1,r=e.height>0?t.height/e.height:1,c=Math.hypot(a,u),m=Math.min(24/i,c*.08),g=c?-u/c:0,s=c?a/c:0;return[0,.35,.65,.85,1].map(f=>{let b=f===0||f===1?0:Math.sin(Math.PI*f),S=a*(1-f)+g*m*b,v=u*(1-f)+s*m*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 wr={duration:320,easing:"cubic-bezier(.2,.72,.22,1)"};function R0(t){let e=t.getBoundingClientRect(),n=t.querySelector("[data-publication-sibling-scroll]"),l=n?.getBoundingClientRect(),i=[];for(let a of Array.from(t.querySelectorAll("[data-publication-occurrence]"))){let u=a.getBoundingClientRect(),o=l&&n?.contains(a)?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)||i.push({element:a,id:a.dataset.publicationNode,occurrence:a.dataset.publicationOccurrence,rect:u,clipped:o!==e&&(u.top<o.top||u.bottom>o.bottom)})}return i}function DE(t,e){let n=new Set(t),l=new Map(t.map(u=>[u.occurrence,u])),i=new Map;for(let u of t){let o=i.get(u.id);o?o.push(u):i.set(u.id,[u])}let a=new Map;for(let u of e){let o=l.get(u.occurrence);o?.id===u.id&&(a.set(u,o),n.delete(o))}for(let u of e){if(a.has(u))continue;let o,r=1/0;for(let c of i.get(u.id)??[]){if(!n.has(c))continue;let m=Math.hypot(u.rect.x-c.rect.x,u.rect.y-c.rect.y);m<r&&(o=c,r=m)}o&&(a.set(u,o),n.delete(o))}return{pairs:a,remaining:n}}function z0(t,e){let n=(0,wu.useRef)(new Nr).current,l=(0,wu.useRef)(null);function i(){l.current=null,n.cancelAll(),e.current?.replaceChildren()}(0,wu.useEffect)(()=>{let o=t.current?.ownerDocument.defaultView?.matchMedia("(prefers-reduced-motion: reduce)");return o?.addEventListener("change",i),()=>{o?.removeEventListener("change",i),i()}},[]);function a(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"){i();return}l.current={id:o,cards:R0(r)}}}function u(o,r){let c=t.current,m=e.current,g=l.current;if(i(),!c||!m||g?.id!==o)return;let s=R0(c),{pairs:f,remaining:b}=DE(g.cards,s);for(let d of s){let h=f.get(d)?.rect;h?(Math.abs(h.left-d.rect.left)>.5||Math.abs(h.top-d.rect.top)>.5||Math.abs(h.width-d.rect.width)>.5||Math.abs(h.height-d.rect.height)>.5)&&n.play(d.element,A0(h,d.rect,r),wr):n.play(d.element,[{opacity:0,transform:"translateY(12px) scale(.94)"},{opacity:1,transform:"none"}],wr)}let S=m.getBoundingClientRect();for(let d of b){if(d.clipped||d.element.isConnected)continue;let h=d.element.cloneNode(!0);h.removeAttribute("role"),h.removeAttribute("tabindex"),h.removeAttribute("data-publication-node"),h.removeAttribute("data-publication-occurrence"),h.removeAttribute("data-publication-center"),h.style.left=`${d.rect.left-S.left}px`,h.style.top=`${d.rect.top-S.top}px`;let p=d.rect.width/parseFloat(h.style.width),y=d.rect.height/parseFloat(h.style.height);m.append(h);let x=n.play(h,[{opacity:1,transformOrigin:"0 0",transform:`scale(${p}, ${y})`},{opacity:0,transformOrigin:"0 0",transform:`translateY(-8px) scale(${p*.95}, ${y*.95})`}],{...wr,duration:200});x?x.finished.then(()=>h.remove(),()=>h.remove()):h.remove()}let v=c.querySelector(".kplex-links");v&&n.play(v,[{opacity:0,offset:0},{opacity:.12,offset:.45},{opacity:1,offset:1}],wr)}return{capture:a,play:u,cancel:i}}var de=K(Ae(),1);var Au=K(wt(),1);function C0({label:t,controlId:e,children:n,layout:l="stacked",actions:i,className:a=""}){return(0,Au.jsxs)("div",{className:`${l==="option"?"kplex-form-option":l==="inline"?"kplex-form-inline":"kplex-form-field kplex-react-field"}${i?" has-actions":""} ${a}`,children:[(0,Au.jsx)("label",{id:`${e}-label`,htmlFor:e,children:t}),n,i?(0,Au.jsx)("div",{className:"kplex-field-actions",children:i}):null]})}var Ar=K(Ae(),1);var gt=K(Ae(),1),D0=K(Yu(),1),le=K(wt(),1);function _E(t,e){let n=e.trim().toLocaleLowerCase();if(!n)return new Set;let l=t.toLocaleLowerCase(),i=l.indexOf(n);if(i>=0)return new Set(Array.from({length:n.length},(o,r)=>i+r));let a=new Set,u=0;for(let o of n){let r=l.indexOf(o,u);if(r<0)return new Set;a.add(r),u=r+1}return a}function O0(t,e){let n=_E(t,e);if(!n.size)return t;let l=[],i=0,a=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===a)continue;let r=t.slice(i,u);l.push(a?(0,le.jsx)("mark",{className:"kplex-fuzzy-match",children:r},`${i}:m`):(0,le.jsx)("span",{children:r},`${i}:t`)),i=u,a=o}return(0,le.jsx)(le.Fragment,{children:l})}function _0({value:t,onChange:e,results:n,getResults:l,onChoose:i,getKey:a,getLabel:u,getDetail:o,placeholder:r,ariaLabel:c,inputId:m,labelledBy:g,icon:s,autoFocus:f=!1,disabled:b=!1,floating:S=!1,floatingMode:v="app",portalSelector:d,appTopbarSelector:h,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,ie]=(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,ae=pe.current?.ownerDocument??null,St=ae?.defaultView??null,_n=S?v==="viewport"?ae?.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}),ie(!0),qe(!0),Wt(!1),ge(0))},fi=R=>{qe(!1),ie(!R),It(!1),Wt(!R),ge(0);let L=dn.current;R&&L&&L.ownerDocument.activeElement===L&&L.blur(),j?.(!1)},E=()=>fi(!0),A=R=>{if(i(R),Ye){fi(!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 R=dn.current;R&&(ie(!0),It(!1),Wt(!1),R.focus({preventScroll:!0}),j?.(!0))},[j]);(0,gt.useEffect)(()=>{f&&B()},[f,B]),(0,gt.useEffect)(()=>{Ut&&B()},[Ut,B]),(0,gt.useEffect)(()=>{let R=pe.current;if(!R)return;let L=()=>ue();return R.addEventListener("kplex-dismiss-suggestions",L),()=>R.removeEventListener("kplex-dismiss-suggestions",L)},[xt]),(0,gt.useEffect)(()=>{if(!J||!ae||!St)return;let R=pe.current;if(!R)return;let L=Xt=>{let we=Xt.target;we&&(R.contains(we)||Dn.current?.contains(we))||E()},st=()=>ae.removeEventListener("pointerdown",L,!0);return ae.addEventListener("pointerdown",L,!0),St.addEventListener("pagehide",st,{once:!0}),()=>{st(),St.removeEventListener("pagehide",st)}},[J,ae,St]),(0,gt.useLayoutEffect)(()=>{if(!S||!J||!F.length){fn(null);return}let R=pe.current;if(!R||!St)return;let L=St.visualViewport,st=()=>{let Hn=R.getBoundingClientRect(),be=8,Br=6;if(v==="viewport"){let Sd=L?.offsetLeft??0,Vr=L?.offsetTop??0,Ed=L?.width??St.innerWidth,xd=Vr+(L?.height??St.innerHeight),Td=Math.min(Math.max(Hn.width,y),Math.max(0,Ed-be*2)),Rb=Math.max(Sd+be,Math.min(Hn.left,Sd+Ed-be-Td)),Md=Math.max(Hn.bottom+Br,Vr+be),Nd=Math.min(Hn.top-Br,xd-be),Gr=Math.max(0,xd-be-Md),wd=Math.max(0,Nd-Vr-be),Ad=Gr>=Math.min(180,p)||Gr>=wd,zb=Math.max(0,Math.min(p,Ad?Gr:wd)),Yr={position:"fixed",left:Rb,width:Td,maxHeight:zb,zIndex:1e4};Ad?Yr.top=Md:Yr.bottom=St.innerHeight-Nd,fn(Yr);return}let hd=d?R.closest(d)??null:null,gd=h?R.closest(h)??null:null;if(!hd||!gd)return;let ya=hd.getBoundingClientRect(),Mb=gd.getBoundingClientRect(),pd=Math.max(0,ya.width-be*2),yd=Math.min(780,Math.max(Hn.width,Math.min(620,pd)),pd),bd=be,Nb=Math.max(bd,ya.width-be-yd),wb=Math.min(Nb,Math.max(bd,Hn.left-ya.left)),vd=Math.max(0,Mb.bottom-ya.top+Br),Ab=Math.max(0,Math.min(p,ya.height-vd-be));fn({left:wb,top:vd,width:yd,maxHeight:Ab})};st();let Xt=St.ResizeObserver,we=Xt?new Xt(st):null,Ul=v==="app"&&d?R.closest(d):null,pa=v==="app"&&h?R.closest(h):null;Ul&&we?.observe(Ul),pa&&we?.observe(pa),we?.observe(R);let di=()=>{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",di,{once:!0}),()=>{di(),St.removeEventListener("pagehide",di)}},[h,S,v,J,F.length,p,y,ae,St,d]),(0,gt.useEffect)(()=>{let R=Dn.current;!R||!F.length||R.querySelector(`[data-kplex-fuzzy-index="${ye}"]`)?.scrollIntoView({block:"nearest"})},[ye,F.length]);let _=R=>{if(!(R.nativeEvent.isComposing||R.key==="Dead"||R.getModifierState("AltGraph"))){if(R.key==="Tab"){ue(),ie(!1),j?.(!1);return}if(R.key==="Escape"){F.length&&(R.preventDefault(),R.stopPropagation(),ue());return}if(Z&&qt&&R.key==="ArrowDown"&&!F.length){R.preventDefault(),Ll();return}if(R.key==="ArrowDown"&&F.length){R.preventDefault(),ge(L=>Math.min(F.length-1,L+1));return}if(R.key==="ArrowUp"&&F.length){R.preventDefault(),ge(L=>Math.max(0,L-1));return}if(R.key==="Enter"&&R.repeat){R.preventDefault(),R.stopPropagation();return}if(R.key==="Enter"&&F.length&&(!(R.ctrlKey||R.metaKey)||w)){R.preventDefault(),R.stopPropagation();let L=F[ye];L&&A(L);return}if(R.key==="Enter"&&(R.ctrlKey||R.metaKey)&&$){R.preventDefault(),R.stopPropagation(),$();return}if(!(R.key==="Enter"&&(R.ctrlKey||R.metaKey)&&!$)&&R.key==="Enter"){R.preventDefault();let L=F[ye];L?A(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((R,L)=>{let st=u(R),Xt=o?.(R),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}
10
- ${Xt}`:st,onMouseDown:Ul=>Ul.preventDefault(),onMouseEnter:()=>ge(L),onClick:()=>A(R),children:[z?(0,le.jsx)("span",{className:"kplex-search-result-prefix","aria-hidden":"true",children:z(R)}):null,(0,le.jsx)("span",{children:O0(st,we)}),Xt?(0,le.jsx)("small",{children:O0(Xt,we)}):null]},a(R))})}):null,Ot=S&&_n&&On&&k?(0,D0.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:m,className:"kplex-search",value:t,disabled:b,onChange:R=>{qe(!1),It(!0),Wt(!1),e(R.currentTarget.value)},onFocus:()=>{ie(!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:R=>R.preventDefault(),onClick:()=>{if(J&&he&&!$t){ue();return}Ll()},children:qt.icon}):null,Ot]})}var L0=K(wt(),1);function H0({graph:t,icon:e,portalSelector:n,appTopbarSelector:l,onActivate:i,revision:a,focusRequest:u,inputTitle:o,inputKeyShortcuts:r,placeholder:c,ariaLabel:m,clearOnActivate:g=!0,repeatFind:s=!1,resultIcon:f}){let[b,S]=(0,Ar.useState)(""),v=(0,Ar.useCallback)(d=>t.search(d,24),[t,a]);return(0,L0.jsx)(_0,{value:b,onChange:S,getResults:v,onChoose:d=>{i(d.node.id),g&&S("")},getKey:d=>d.node.id,getLabel:d=>d.label,getDetail:d=>d.detail,resultPrefix:f,placeholder:c,ariaLabel:m,floating:!0,icon:e,portalSelector:n,appTopbarSelector:l,focusRequest:u,inputTitle:o,inputKeyShortcuts:r,closeOnChoose:!s,advanceOnChoose:s})}var HE=1e5,LE=8*1024*1024,U0=1e6,UE=/[\p{L}\p{N}]+/gu,BE=/^[\p{L}\p{N}]{1,128}$/u;function B0(t){return[...new Set(t.normalize("NFC").toLowerCase().match(UE))].filter(e=>e.length<=128)}function VE(t,e){if(!Array.isArray(t)||t.length>Ou)throw new Error("Invalid publication search rows");let n=new Set,l=0;return t.map(i=>{if(!i||typeof i!="object"||!("id"in i)||!Ln(i.id)||n.has(i.id)||e&&!e.has(i.id)||!("text"in i)||typeof i.text!="string"||i.text.length>HE)throw new Error("Invalid publication search row");if(n.add(i.id),l+=i.text.length,l>LE)throw new Error("Publication search exceeds its text budget");return{id:i.id,text:i.text}})}function V0(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>U0)throw new Error("Invalid publication search index");let n=VE(t.rows,e),l="";for(let{id:o}of n){if(l>=o)throw new Error("Unordered publication search rows");l=o}let i="",a=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||!BE.test(r)||r!==r.normalize("NFC").toLowerCase()||i>=r||!Array.isArray(c)||!c.length||c.length>n.length)throw new Error("Invalid publication search term");if(i=r,a+=c.length,a>U0)throw new Error("Publication search exceeds its posting budget");let m=-1;for(let g of c){if(typeof g!="number"||!Number.isInteger(g)||g<=m||g>=n.length)throw new Error("Invalid publication search reference");m=g}return[r,c]});return{version:1,rows:n,terms:u}}function si(t){return t.trim().normalize("NFC").toLowerCase()}function G0(t,e){let n=new Set([...e.published.values()].filter(i=>i.kind==="document"||i.kind==="drawing").map(i=>i.id)),l=V0(t,n);return{rows:l.rows,positions:new Map(l.rows.map(({id:i},a)=>[i,a])),postings:new Map(l.terms)}}function GE(t,e){let n=Math.max(0,si(t).indexOf(e)-35);return`${n?"…":""}${t.slice(n,n+90)}${t.length>n+90?"…":""}`}function Y0(t,e){let n=new Map,l=[...t.nodes.values()].map(a=>{let u=si(a.name),o=a.aliases.map(si),r=Object.values(t.published.get(a.id)?.properties??{}).flatMap(c=>typeof c=="object"?[...c]:[String(c)]).map(si);for(let c of[u,...o]){let m=n.get(c);m||n.set(c,m=new Set),m.add(a.id)}return{node:a,title:u,aliases:o,properties:r}});return{graph:{search(a,u){let o=si(a.slice(0,128));if(!o)return[];let r=B0(o),c=r[0],m=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&&m?.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?GE(S,c):n.get(b).size>1?s.id:s.aliases.find(d=>si(d).includes(o))??"";return{node:s,label:s.name,detail:v}})}},address(a){let u=si(a),o=Tu(t,u);return o.length?o:[...n.get(u)??[]]}}}var Lt=K(wt(),1);function q0({publication:t,resources:e,page:n,searchFocus:l,onChoose:i}){let a=(0,de.useRef)(null),u=(0,de.useId)(),[o,r]=(0,de.useState)(""),[c,m]=(0,de.useState)([]),[g,s]=(0,de.useState)(!1),[f,b]=(0,de.useState)(!1),[S,v]=(0,de.useState)(null),[d,h]=(0,de.useState)(!1),p=(0,de.useMemo)(()=>Y0(t,f?S:null),[t,f,S]);(0,de.useEffect)(()=>{let x=a.current?.ownerDocument.defaultView;if(!f||!x||S)return;let T=new x.AbortController,M=T.signal;return h(!1),e.text(Du,M).then(w=>{M.aborted||v(G0(JSON.parse(w),t))}).catch(()=>{M.aborted||h(!0)}),()=>T.abort()},[f,t,e,S]);function y(x){x.preventDefault();let T=v0(o.trim(),n(),t),M=T?T.matches:p.address(o);if(M.length!==1){m(M),s(!M.length);return}m([]),s(!1),i(T?.location??{id:M[0]})}return(0,Lt.jsxs)("div",{className:"kplex-publication-tools",ref:a,children:[(0,Lt.jsx)(H0,{graph:p.graph,revision:S&&f?1:0,onActivate:x=>i({id:x}),portalSelector:".kplex-publication",appTopbarSelector:".kplex-publication-header",placeholder:O.find,ariaLabel:O.find,focusRequest:l,inputTitle:`${O.find} (${Su.key})`,inputKeyShortcuts:Su.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)(C0,{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),m([]),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:()=>{m([]),i({id:x})},children:[t.nodes.get(x)?.name," · ",x]})},x))}),c.length>24&&(0,Lt.jsx)("p",{children:O.chooseAddress})]})]})]})}var Ge=K(Ae(),1);var Rr="http://www.w3.org/1999/xhtml",ga="http://www.w3.org/2000/svg",YE="http://www.w3.org/1999/xlink",qE=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(" ")),XE=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(" ")),jE=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(" ")),kE=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(" ")),QE=new Set(["fill","stroke","stop-color","clip-path","mask","marker-start","marker-end","marker-mid"]),X0=/^[-a-z0-9_]{1,96}$/i,PE=/^[\d\s+.,%()a-z-]+$/i,KE=/^[a-z0-9][a-z0-9 .,%'"-]{0,191}$/i,ZE=/^(?:#[\da-f]{3,8}|[a-z]{1,32}|rgba?\([\d., %]+\)|hsla?\([\d., %+-]+\))$/i,JE=/^url\(#([a-z0-9_.:-]{1,160})\)$/i,FE=/^\.\/assets\/[a-f0-9]{64}\.[a-z0-9]{2,5}$/,j0=/\.(?:png|jpe?g|gif|webp|avif|svg)$/,k0=4*1024*1024;function zr(t){return/^[bh]-[\p{L}\p{N}_-]{1,80}$/u.test(t)}function IE(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 $E(t,e=""){if(!Ln(t)||e&&!zr(e))throw new Error("Invalid public link");return`?node=${t}${e?`#${encodeURIComponent(e)}`:""}`}function Q0(t,e){if(t.startsWith("?node=")){let n=/^\?node=([^#]+)(?:#(.+))?$/.exec(t);if(!n||!e.nodeIds.has(n[1])||!Ln(n[1]))return null;let l="";try{l=decodeURIComponent(n[2]??"")}catch{return null}if(l&&!zr(l))return null;if(e.nodeAddress)return e.nodeAddress(n[1],l);let i=$E(n[1],l);return e.siteURL?new URL(i,e.siteURL).href:i}if(t.startsWith("#")){let n;try{n=decodeURIComponent(t.slice(1))}catch{return null}return zr(n)?`#${encodeURIComponent(e.idPrefix?`${e.idPrefix}-${n}`:n)}`:null}return P0(t,e)??(e.allowExternalLinks===!1?null:IE(t))}function P0(t,e){let n=t.slice(2);return!FE.test(t)||!mi(n)||!e.assetPaths.has(n)?null:e.siteURL?new URL(`./${n}`,e.siteURL).href:`./${n}`}function WE(t,e){let n=new Map;for(let l of Array.from(t.querySelectorAll("[id]"))){let i=l.getAttribute("id");i&&/^[a-z0-9_.:-]{1,160}$/i.test(i)&&!n.has(i)&&n.set(i,`${e}-${n.size+1}`)}return n}function K0(t,e){e&&(t.setAttribute("href",e),t.setAttribute("rel","noopener noreferrer"))}function Z0(t,e,n,l){let i=P0(n,l);i&&(l.deferMedia?t.setAttribute("data-publication-asset",n.slice(2)):t.setAttribute(e,i))}function tx(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 i=`data-publication-${l}`,a=t.getAttribute(i)??"";/^(?:0|[1-9]\d{0,4}%?)$/.test(a)&&(e.setAttribute(i,a),e.style.setProperty(`--kplex-published-drawing-${l}`,a.endsWith("%")?a:`${a}px`))}}function ex(t,e,n){let l=t.localName,i=t.getAttribute("id")??t.getAttribute("data-publication-fragment");if(i&&zr(i)&&(e.id=n.idPrefix?`${n.idPrefix}-${i}`:i,e.setAttribute("data-publication-fragment",i)),l==="a"&&K0(e,Q0(t.getAttribute("href")??"",n)),l==="figure"&&tx(t,e),l==="img"||l==="audio"||l==="video"){let a=t.getAttribute("src")??"";(l==="img"?j0:l==="audio"?/\.(?:mp3|ogg|wav)$/:/\.(?:mp4|webm)$/).test(a)&&Z0(e,"src",a,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 a=t.getAttribute("data-callout");a&&X0.test(a)&&e.setAttribute("data-callout",a)}if(l==="ol"){let a=t.getAttribute("start");a&&/^\d{1,7}$/.test(a)&&e.setAttribute("start",a)}}var nx=/@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,lx={woff2:"wOF2",woff:"wOFF",ttf:"\0\0\0",otf:"OTTO"},ix=512*1024;function ax(t,e){let n=new Map,l=[],i=0;for(let a of Array.from(t.children))if(!(a.namespaceURI!==ga||a.localName!=="defs"))for(let u of Array.from(a.children)){if(u.namespaceURI!==ga||u.localName!=="style"||u.childElementCount)continue;let o=u.textContent??"";if(i+=o.length,i>ix)return{families:new Map,rules:[]};for(let r of o.matchAll(nx)){let c=r[2].trim().toLowerCase(),m=r[4],g=r[5];if(!(m==="woff2"||m==="woff"||m==="ttf"||m==="otf")||g.length<8||g.length%4||!atob(g.slice(0,8)).startsWith(lx[m]))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/${m};base64,${g});}`)}}return{families:n,rules:l}}function ux(t,e){return t.split(",").map(n=>e?.get(n.trim().replace(/^["']|["']$/g,"").toLowerCase())??n).join(",")}function ox(t,e,n,l,i){for(let a of Array.from(t.attributes)){let{localName:u,value:o}=a;if(!(o.length>65536)){if(u==="href"&&(a.namespaceURI===null||a.namespaceURI===YE)){if(t.localName==="a")K0(e,Q0(o,l));else if(t.localName==="image"&&j0.test(o))Z0(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(!a.namespaceURI)if(u==="id"){let r=n.get(o);r&&e.setAttribute(u,r)}else if(QE.has(u)){let r=JE.exec(o),c=r&&n.get(r[1]);c?e.setAttribute(u,`url(#${c})`):ZE.test(o)&&e.setAttribute(u,o)}else jE.has(u)&&PE.test(o)?e.setAttribute(u,o):kE.has(u)&&KE.test(o)&&e.setAttribute(u,u==="font-family"?ux(o,i?.families):o)}}}function rx(t,e,n){if(n.idPrefix&&!X0.test(n.idPrefix))throw new Error("Invalid publication fragment scope");let l=e.defaultView;if(!l)throw new Error("Publication document unavailable");let i=n.siteURL?e:e.implementation.createDocument(null,null),a=i.adoptNode(new l.DocumentFragment),u=0,o=0,r=0,c=new Set,m=(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>k0)throw new Error("Publication content too large");s.appendChild(i.createTextNode(d));return}if(g.nodeType!==1)return;let v=g;if(v.namespaceURI===ga&&XE.has(v.localName)){if(v.localName==="svg"){let p=`${n.idPrefix??"svg"}-s${++o}`;b=WE(v,p),S=n.allowDrawingFonts?ax(v,p):void 0}if(!b)return;let d=i.createElementNS(ga,v.localName);ox(v,d,b,n,S);let h=d.getAttribute("id");if(h&&c.has(h)?d.removeAttribute("id"):h&&c.add(h),s.appendChild(d),v.localName==="svg"&&S?.rules.length){let p=i.createElementNS(ga,"defs"),y=i.createElementNS(ga,"style");y.textContent=S.rules.join(`
11
- `),p.appendChild(y),d.appendChild(p)}for(let p of Array.from(v.childNodes))m(p,d,f+1,b,S)}else if(!b&&v.namespaceURI===Rr&&qE.has(v.localName)){if(n.drawingMode&&v.localName==="figure"&&v.getAttribute("data-publication-drawing")==="true"){let h=v.getAttribute("data-publication-drawing-mode");if((h==="light"||h==="dark")&&h!==n.drawingMode)return}let d=i.createElementNS(Rr,v.localName);ex(v,d,n),s.appendChild(d);for(let h of Array.from(v.childNodes))m(h,d,f+1,null)}};for(let g of t)m(g,a,0,null);return a}function J0(t,e,n){if(t.length>k0||/<!\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 i=new l.DOMParser().parseFromString(`<article xmlns="${Rr}">${t}</article>`,"application/xhtml+xml");if(i.documentElement.namespaceURI!==Rr||i.querySelector("parsererror"))throw new Error("Invalid publication markup");return rx(Array.from(i.documentElement.childNodes),e,{...n,allowDrawingFonts:!0})}var Ft=K(wt(),1),F0="http://www.w3.org/2000/svg",cx={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 ld(t,e){if(e)return Array.from(t.querySelectorAll("[data-publication-fragment]")).find(n=>n.id===e||n.getAttribute("data-publication-fragment")===e)}function I0({publication:t,resources:e,location:n,id:l,contentScope:i,colorMode:a,onClose:u,onNavigate:o,dock:r,onSwitchDock:c}){let m=(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"),[h,p]=(0,Ge.useState)(0),y=t.published.get(n.id);(0,Ge.useEffect)(()=>{let T=m.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=cx[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(jr(y.id),z),xt=J0(j,T.ownerDocument,{siteURL:e.siteURL,nodeAddress:e.nodeAddress,nodeIds:new Set(t.nodes.keys()),assetPaths:e.assetPaths,idPrefix:i,deferMedia:!0,drawingMode:a}),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!==F0&&e.assetPaths.has(vt)&&Ut.push({element:Y,path:vt,download:!0})}z.throwIfAborted(),T.replaceChildren(xt),d("ready"),ld(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===F0?"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,i,a]),(0,Ge.useEffect)(()=>{m.current&&ld(m.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=b0(w,e.siteURL,t,n.id);if(!z)return;T.preventDefault();let C=w.startsWith("#")&&z.id===n.id&&m.current?ld(m.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:m,className:"kplex-publication-note-content","aria-busy":v==="loading",onClick:x}),h>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=K(Ae(),1);var $n=K(wt(),1),sx=736,$0=20;function fx({dock:t,sidecarId:e,size:n,minimum:l,maximum:i,onSize:a}){let u=(0,cn.useRef)(null),o=(0,cn.useRef)(null),r=t==="right";function c(d){return r?d.clientX:d.clientY}function m(d){a(Math.max(l,Math.min(i,Math.round(d))))}function g(d,h){o.current?.pointer===h&&(o.current=null,d.hasPointerCapture(h)&&d.releasePointerCapture(h))}(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 h=o.current;h?.pointer===d.pointerId&&m(h.size+h.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 h=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=i;else if(d.key===h)x=n+y;else if(d.key===p)x=n-y;else return;d.preventDefault(),m(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":i,"aria-valuenow":n,onPointerDown:s,onPointerMove:f,onPointerUp:b,onPointerCancel:S,onLostPointerCapture:S,onKeyDown:v})}function W0({canvas:t,sidecarId:e,sidecarOpen:n,renderSidecar:l}){let i=(0,cn.useRef)(null),[a,u]=(0,cn.useState)({width:0,height:0}),[o,r]=(0,cn.useState)("right"),[c,m]=(0,cn.useState)({}),g=a.width>=sx,s=g?o:"bottom",f=s==="right",b=f?a.width:a.height,S=Math.max(0,b-(f?260:160)-$0),v=Math.min(S,f?240:120),d=c[s]??Math.round(b*(f?.34:.43)),h=Math.max(v,Math.min(S,d)),p=n?{"--kplex-publication-sidecar-size":`${h}px`,"--kplex-publication-divider-size":`${$0}px`}:void 0;(0,cn.useLayoutEffect)(()=>{let T=i.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){m(M=>M[s]===T?M:{...M,[s]:T})}function x(){r(s==="right"?"bottom":"right")}return(0,$n.jsxs)("div",{ref:i,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)(fx,{dock:s,sidecarId:e,size:h,minimum:v,maximum:S,onSize:y}),l(s,g?x:void 0)]}):(0,$n.jsx)("div",{id:e,hidden:!0})]})}function Cr(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 tb(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 dx(t,e,n,l,i){let a=1-i,u=a*a,o=i*i;return{x:u*a*t.x+3*u*i*e.x+3*a*o*n.x+o*i*l.x,y:u*a*t.y+3*u*i*e.y+3*a*o*n.y+o*i*l.y}}function id(t,e,n,l,i){if(i==="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 a=Math.hypot(e.x-t.x,e.y-t.y),u=Math.max(20,Math.min(108,a*.2)),o=tb(n),r=tb(l),c={x:t.x+o.x*u,y:t.y+o.y*u},m={x:e.x+r.x*u,y:e.y+r.y*u};return{d:`M ${t.x} ${t.y} C ${c.x} ${c.y}, ${m.x} ${m.y}, ${e.x} ${e.y}`,midpoint:dx(t,c,m,e,.5)}}var ad=["parent","child","left","right","previous","next"];function eb(t,e,n,l){let i=e.neighbours(t,"parent").slice(0,n),a=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),...[...i,...a,...u,...o].map(g=>e.identity(g.page))]),c=new Map([...i,...a,...u,...o].map(g=>[e.identity(g.page),g.page])),m=new Map;if(l)for(let g of c.values())for(let s of ad)for(let f of e.neighbours(g,s)){let b=e.identity(f.page);if(r.has(b))continue;let S=m.get(b);(!S||S.relationType!==1)&&m.set(b,{...f,role:"sibling"})}return{center:t,parents:i,children:a,leftFriends:u,rightFriends:o,siblings:e.sort([...m.values()]).slice(0,n)}}var _l=(t,e,n)=>Math.max(e,Math.min(n,t));function ab(t){return t.horizontalCompactingFactor??t.compactingFactor}function mx(t){let e=t.compactView?.82:1;return{horizontal:_l(1.35/ab(t),.38,1.35)*e,vertical:_l(1.35/t.compactingFactor,.38,1.35)*e,spacing:_l(t.minLinkLength/18,.72,1.7)}}function nb(t,e){return Math.max(1,Math.min(e==="parent"?3:7,Math.round(e==="parent"?t.parentColumns:t.childColumns)))}function _r(t){return _l(t.siblingRelativeSize/100,.3,.85)}function lb(t,e){let n=_l(ab(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 Or(t,e,n=0){return Math.max(e,...t.map(l=>Math.abs(l.x-n)+l.width/2+24))}function Dr(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 i of t){let a=e.mini(i,n);a&&l.push({...i,width:a.width,height:a.viewportHeight,y:i.y+i.height/2+a.topGap+a.viewportHeight/2})}return l}function ib(t,e,n,l,i,a,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,m=r[0].height,g=r[0].reserve;return r.forEach((s,f)=>{let b;if(f===0){let h=Math.max(0,s.height-26)/2;b=n===-1?e-s.reserve-h:e+h}else n===1?b=c+m/2+g+a+s.height/2:b=c-m/2-a-s.reserve-s.height/2;let S=s.nodes.map(h=>u.width(h)),d=-(S.reduce((h,p)=>h+p,0)+i*Math.max(0,s.nodes.length-1))/2;s.nodes.forEach((h,p)=>{let y=S[p];h.x=d+y/2,h.y=b,d+=y+i}),c=b,m=s.height,g=s.reserve}),o}function ud(t,e,n,l){let i=t;return ub(i,e,n,l),i}function ub(t,e,n,l){if(!t.length)return;let i=t.map(c=>l.verticalReserve(c));t[0].x=e,t[0].y=0;for(let c=1;c<t.length;c+=1){let m=t[c-1],g=t[c];g.x=e,g.y=m.y+m.height/2+i[c-1]+n+g.height/2}let a=t[0].y-t[0].height/2,u=t.length-1,o=t[u].y+t[u].height/2+i[u],r=-(a+o)/2;for(let c of t)c.y+=r}function od(t,e,n,l,i="center"){if(!t.length)return;let a=Math.min(...t.map(g=>g.y-g.height/2)),o=Math.max(...t.map(g=>g.y+g.height/2+l.verticalReserve(g)))-a,r=Math.max(1,n-e),m=(o>r?e:i==="midline"?_l(a,e,n-o):i==="bottom"?n-o:i==="top"?e:e+(r-o)/2)-a;for(let g of t)g.y+=m}function Ru(t,e,n,l,i,a,u){let c=i.centerX-i.width/2,m=i.centerX+i.width/2,g=i.fixedEdgeY,s=i.fixedEdgeY;e.length&&(c=Math.min(c,...e.map(S=>S.x-S.width/2-24)),m=Math.max(m,...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&&a!==void 0?Math.max(72,a-u):Math.max(72,n),b=u!==void 0&&a!==void 0?u:l==="top"?(e.length?s+16:i.fixedEdgeY)-f:e.length?g-16:i.fixedEdgeY;return{key:t,left:c,top:b,width:m-c,height:f,resizeEdge:l}}function zu(t,e,n,l,i,a){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)),m=Math.min(...e.map(p=>p.y-p.height/2)),g=Math.max(...e.map(p=>p.y+p.height/2)),s=m-o,f=g+o,b=f-s,S=a!==void 0&&i!==void 0?Math.max(72,i-a):i===void 0?Number.POSITIVE_INFINITY:Math.max(72,i-s),v=Math.min(b,Math.max(72,n),S);if(b<=v+.5)return null;let d=s,h=0;return a!==void 0&&i!==void 0?(d=a,h=Math.max(0,d-s)):i!==void 0?(d=i-v,h=Math.max(0,d-s)):(l==="bottom"?d=f-v:l==="center"&&(d=_l(-v/2,s,f-v)),h=Math.max(0,d-s)),{key:t,left:r-u,top:d,width:c-r+u*2,height:v,contentTop:s,contentHeight:b,initialScrollTop:h}}function ob(t,e,n,l=!1){let i=A=>Math.max(0,...A.filter(B=>B.editor).map(B=>B.height+72));[...t.parents,...t.children,...t.leftFriends,...t.rightFriends,...t.siblings].some(A=>A.editor)&&(e={...e,parentMaxHeight:Math.max(e.parentMaxHeight,i(t.parents)),childMaxHeight:Math.max(e.childMaxHeight,i(t.children)),friendMaxHeight:Math.max(e.friendMaxHeight,i([...t.leftFriends,...t.rightFriends])),siblingMaxHeight:Math.max(e.siblingMaxHeight,i(t.siblings))});let a=t.center,{horizontal:u,vertical:o,spacing:r}=mx(e),c=50*u*r,m=36*o*r,g=66*o*r,s=18*o*r,f=26,b=-(a.height/2+f/2+g),S=Math.max(42,52*o*r),v=a.height/2+f/2+g+S,d=ib(t.parents,b,-1,nb(e,"parent"),c,m,n),h=ib(t.children,v,1,nb(e,"child"),c,m,n),p=a.width/2,y=p+205*u*r,x=ud(t.leftFriends,-y,s,n),T=e.lateralArrangement==="left",M=ud(t.rightFriends,T?-y:y,s,n),w=T?[...x,...M]:x;T&&ub(w,-y,s,n);let z=!T&&M.length>0,C=z?Math.max(...M.map(A=>A.x+A.width/2)):p,$=z?285:205,pt=z?190:120,j=Math.max(y+$*u*r,C+pt*u*r),xt=ud(t.siblings,j,s,n),Ut=h.length?Math.min(...h.map(A=>A.y-A.height/2)):a.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;od(w,zn,Z,n,"midline"),T||od(M,$e,qt,n,"midline");let me=Math.max(58,72*o*r),J=l?W/2:vt-me,ie=l?-W/2:J-W;od(xt,ie,J,n,l?"midline":"center");let Wn=sn(d,n,!0),It=sn(xt,n,!0),$t=d.length?Or(Wn,a.width/2+24):170,Wt=Dr(Wn,a.width/2),he=Math.max(Or(sn(x,n,!0),115,-y),Or(sn(M,n,!0),115,T?-y:y)),qe=Math.max(Dr(sn(x,n,!0),0,-y),Dr(sn(M,n,!0),0,T?-y:y)),Cn=Or(It,110,j),ge=Dr(It,0,j),On=T?Math.max(0,lb(e,$t*2)):lb(e,$t*2);d.length&&(y=$t+he+On),y=Math.max(y,Wt+qe+4);for(let A of x)A.x=-y;for(let A of M)A.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 A of xt)A.x=j;let fn=sn(d,n),pe=sn(h,n),Dn=sn(w,n),dn=sn(T?[]:M,n),Hl=sn(xt,n),F={},ye=zu("parent",fn,e.parentMaxHeight,"bottom"),ae=zu("child",pe,e.childMaxHeight,"top"),St=zu("left",Dn,e.friendMaxHeight,"top",Z,zn),_n=zu("right",dn,e.friendMaxHeight,"top",qt,$e),We=zu("sibling",Hl,e.siblingMaxHeight,"top",J,ie);ye&&(ye.left=-$t,ye.width=$t*2,F.parent=ye),ae&&(F.child=ae),St&&(F.left=St),_n&&(F.right=_n),We&&(F.sibling=We);let ue={},Ll=b+f/2+16,fi=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:fi}),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,ie);let E=[a,...d,...h,...x,...M,...xt];return e.flipEastWest&&hx(E,ue,F),{nodes:E,zoneViewports:F,zoneAreas:ue}}function hx(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 rb={version:1,fields:{flipEastWest:{defaultValue:!1,validate:t=>typeof t=="boolean"}}};function Hr(t){return t?.status!=="unavailable"&&t?.values.flipEastWest===!0}function Lr(t){return{top:"parent",bottom:"child",left:t?"right":"left",right:t?"left":"right"}}function cb(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 gx={parent:"graph.zoneParents",child:"graph.zoneChildren",left:"graph.zoneFriendsPrevious",right:"graph.zoneChallengersNext",sibling:"graph.zoneSiblings"};var px={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 yx(t){if(!t||typeof t!="object"||!["compactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"].every(i=>{let a=Reflect.get(t,i);return typeof a=="number"&&Number.isFinite(a)}))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 rd={sectionSource:"attention",editorHosting:"occurrence",id:"classic",version:1,labelKey:"view.classic",icon:"brain-circuit",configuration:rb,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,i=(m,g)=>{let s=JSON.stringify([m.id,g]),f=l.get(s)??t.read.relations(m.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}))},a=eb(e,{identity:m=>m.id,neighbours:i,sort:m=>m.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=Hr(t.configuration),o=[{id:"attention",nodeId:e.id,representation:"thought",...u?{ports:Lr(!0)}:{}}],r=[],c=(m,g)=>m.forEach((s,f)=>{let b=JSON.stringify([g,s.page.id,f]),S=cb(g,Hr(t.configuration));o.push({id:b,nodeId:s.page.id,role:g,areaId:g,representation:"thought",relation:s.value,groupingPartition:g,...u?{ports:Lr(!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(a.parents,"parent"),c(a.children,"child"),c(a.leftFriends,"left"),c(a.rightFriends,"right"),c(a.siblings,"sibling");for(let m of o.filter(g=>g.role&&g.role!=="sibling")){if(!m.nodeId)continue;let g=t.read.node(m.nodeId);if(!g)continue;let s=ad.flatMap(f=>i(g,f));for(let f of o.filter(b=>b.role==="sibling")){let b=s.find(v=>v.page.id===f.nodeId),S=b?cb(b.role,u):null;b&&S&&r.push({id:JSON.stringify([m.id,f.id]),kind:"semantic",source:m.id,target:f.id,sourceNode:m.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||[a.parents,a.children,a.leftFriends,a.rightFriends,a.siblings].some(m=>m.length===t.maximum),coverage:t.read.coverage}},layout(t,e,n,l,i){if(!yx(n))throw new Error("Missing Classic geometry preferences");let a={...n,flipEastWest:n.flipEastWest??Hr(i?.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),m=ob({center:r,parents:c("parent"),children:c("child"),leftFriends:c("left"),rightFriends:c("right"),siblings:c("sibling")},a,{reserve:s=>s.expandedReserve,verticalReserve:s=>s.expandedReserve*(s.role==="sibling"?_r(a):1),width:s=>s.expandedWidth,mini:(s,f)=>s[f?"envelope":"mini"]},l),g=Object.values(m.zoneAreas).map(s=>{let f=px[s.key];return{id:s.key,labelKey:gx[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},...m.zoneViewports[s.key]?{viewport:{...m.zoneViewports[s.key],x:m.zoneViewports[s.key].left,y:m.zoneViewports[s.key].top}}:{}}});return{positions:new Map(m.nodes.map(s=>[s.id,{x:s.x,y:s.y,width:s.width,height:s.height}])),areas:g}}};var bx={compactingFactor:2,horizontalCompactingFactor:2,compactView:!1,minLinkLength:18,parentColumns:2,childColumns:5,siblingRelativeSize:85,parentMaxHeight:300,childMaxHeight:400,friendMaxHeight:350,siblingMaxHeight:250},cd={baseFontSize:12.4,wrapNodeLabels:!1,propertyFontSize:10};function fb(t,e,n=!0){let{read:l}=t,i=t.manifest?.appearance,a=i?.flip??!1,u={...bx,...i?.geometry,flipEastWest:a},o={baseFontSize:i?.typography?.baseFontSize??cd.baseFontSize,wrapNodeLabels:i?.typography?.wrapNodeLabels??cd.wrapNodeLabels,propertyFontSize:i?.typography?.propertyFontSize??cd.propertyFontSize},r=Lr(a),c=rd.project({attention:e,read:l,maximum:i?.maximum??100,state:{renderSiblings:n},configuration:{status:"available",values:{flipEastWest:a}}});if(!c)throw new Error("Publication attention is unavailable");let m=c.occurrences.map(v=>{let d=v.nodeId&&l.node(v.nodeId);if(!d)throw new Error("Publication occurrence is unavailable");let h=v.id===c.entry,p=v.role==="sibling",y=p?_r(u):1,x=t.published.get(d.id),T=x?.roleStyles,M=v.relation?.relationType===2?T?.inferred:void 0,w=h?T?.center:p?T?.sibling:void 0,z={...x?.style,...M,...w},C=w?.fontSize??M?.fontSize??x?.style?.fontSize??(h?30:p?15:20),$=w?.gateRadius??M?.gateRadius??x?.style?.gateRadius??5,pt=xu(C*y,h,o.baseFontSize),j=n0(d.name,C,o,h,d.maxLabelLength),xt=l0(j,y,C*y,o);return{occurrence:v,node:d,center:h,fontSize:pt,style:z,gateSize:Wy({gateRadius:$*y}),measurement:{id:v.id,...xt,expandedWidth:xt.width,expandedReserve:0,mini:null,envelope:null}}}),g=rd.layout(c,m.map(v=>v.measurement),u,!1),s=m.map(({occurrence:v,node:d,center:h,fontSize:p,gateSize:y,style:x})=>({id:v.id,node:d,center:h,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),h=f.get(v.target),p=id(Cr(d.bounds,v.sourcePort,d.gateSize),Cr(h.bounds,v.targetPort,h.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 sb(t,e,n,l){let i=Cr(t.bounds,e,t.gateSize);if(t.role!=="sibling")return i;let a=i.y+n.y-n.contentTop-l;return a>=n.y&&a<=n.y+n.height?{...i,y:a}:null}function db(t,e,n){let l=t.siblingViewport;if(!l)return e.route;let i=t.cardById.get(e.source),a=t.cardById.get(e.target);if(i.role!=="sibling"&&a.role!=="sibling")return e.route;let u=sb(i,e.sourcePort,l,n),o=sb(a,e.targetPort,l,n);return u&&o?id(u,o,e.sourcePort,e.targetPort,"bezier"):null}var vx=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"]])]),Sx=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","-apple-system"]),Ex=new Set(["inherit","initial","revert","revert-layer","unset","default"]);function xx(t){let e=t.split(",");if(!e.length||e.length>10)return;let n=[];for(let l of e){let i=l.trim(),a=/^(['"])(.*?)\1$/u.exec(i),u=a?.[2]??i;if(!/^[\p{L}\p{N}][\p{L}\p{M}\p{N} _.-]{0,79}$/u.test(u)&&u!=="-apple-system"||Ex.has(u.toLowerCase()))return;n.push(!a&&Sx.has(u.toLowerCase())?u.toLowerCase():JSON.stringify(u))}return n.join(", ")}function mb(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 hb(t,e){let n=e.trim();if(!(!n||n.length>320))switch(vx.get(t)){case"color":return/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(n)?n.toLowerCase():void 0;case"font":return xx(n);case"length":return mb(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)):mb(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 sd=/\s*(?:\.kplex-publication\s*\{([^{}]*)\}|@media\s*\(\s*prefers-color-scheme:\s*(light|dark)\s*\)\s*\{\s*\.kplex-publication\s*\{([^{}]*)\}\s*\})\s*/yu;function gb(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;){sd.lastIndex=l;let i=sd.exec(t);if(!i)throw new Error("Unsupported publication theme");l=sd.lastIndex;let a=(i[1]??i[3]).split(";").map(r=>r.trim()).filter(Boolean),u=a.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||i[2]||n.has("author"))throw new Error("Unsupported publication mode");e.colorScheme=r}let o=u.length?"author":i[2]??"light";if(n.has(o))throw new Error("Duplicate publication theme mode");n.add(o);for(let r of a){if(r===u[0])continue;let c=/^--([a-z][a-z0-9-]*)\s*:\s*(.+)$/u.exec(r),m=c&&hb(c[1],c[2]);if(!c||m===void 0||m===null)throw new Error("Unsupported publication theme token");e["--kplex-published-"+o+"-"+c[1]]=m}}return e}function pb(t,e){let n=`--kplex-published-${e}-`,l={colorScheme:e};for(let[i,a]of Object.entries(t??{}))i.startsWith(n)&&typeof a=="string"&&(l["--kplex-published-author-"+i.slice(n.length)]=a);return l}var D=K(wt(),1),yb={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},fd={back:"Alt+ArrowLeft",forward:"Alt+ArrowRight",sidecar:"Alt+Shift+S"};function dd(t,e){let n=e.ownerDocument.defaultView?.Element;return!!(n&&t.target instanceof n&&t.target.closest("[data-publication-sibling-scroll]"))}function bb(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 vb({publication:t,markerPrefix:e,resources:n,browser:l}){let i=(0,P.useRef)(null),a=(0,P.useRef)(null),u=z0(i,a),o=S0(t,l,u.capture),r=o.attention.id,[c,m]=(0,P.useState)(!0),g=(0,P.useMemo)(()=>fb(t,r,c),[t,r,c]),s=g.cards.find(E=>E.center),f=g.siblingViewport,b=(0,P.useRef)(null),[S,v]=(0,P.useState)(0),d=(0,P.useRef)(null),h=(0,P.useRef)({x:0,y:0,scale:1}),p=(0,P.useRef)(!1),y=(0,P.useRef)({points:new Map,origin:null,moved:!1}),x=(0,P.useRef)(!1),T=(0,P.useId)(),M=(0,P.useRef)(null),[w,z]=(0,P.useState)(!0),[C,$]=(0,P.useState)(0),[pt,j]=(0,P.useState)(null),[xt,Ut]=(0,P.useState)(!1),ot=(0,P.useRef)(()=>{}),Y=(0,P.useRef)(null),[W,vt]=(0,P.useState)(),[Ye,zn]=(0,P.useState)(!1),[Z,$e]=(0,P.useState)("light"),[qt,me]=(0,P.useState)(),J=t.manifest?.colorMode,ie=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===Su.key&&!E.altKey&&!E.shiftKey){E.preventDefault(),E.repeat||$(B=>B+1);return}let A=E.target;!E.altKey||A?.isContentEditable||A?.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,P.useEffect)(()=>{if(!l)return;let E=A=>ot.current(A);return l.addEventListener("keydown",E),()=>l.removeEventListener("keydown",E)},[l]),(0,P.useLayoutEffect)(()=>{let E=Y.current;E&&(E.scrollLeft=E.scrollWidth)},[o.visits]),(0,P.useEffect)(()=>{let E=i.current?.ownerDocument.defaultView?.matchMedia("(prefers-color-scheme: dark)");if(!E)return;let A=()=>$e(E.matches?"dark":"light");return A(),E.addEventListener("change",A),()=>E.removeEventListener("change",A)},[]),(0,P.useLayoutEffect)(()=>{let E=b.current;!E||!f||(E.scrollTop=f.initialScrollTop,v(E.scrollTop))},[f]),(0,P.useEffect)(()=>{let E=i.current?.ownerDocument.defaultView;if(!E||!n?.has(_u))return;let A=new E.AbortController,B=A.signal;return n.text(_u,B).then(_=>{B.aborted||vt(gb(_))}).catch(()=>{B.aborted||zn(!0)}),()=>A.abort()},[n]);function $t(E){h.current=E,d.current&&(d.current.style.transform=`translate(${E.x}px, ${E.y}px) scale(${E.scale})`)}function Wt(){let E=i.current;if(!E)return;let A=0,B=0;for(let{bounds:k,role:Ot}of g.cards)Ot==="sibling"&&f||(A=Math.max(A,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&&(A=Math.max(A,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)/A,(E.clientHeight/2-22)/B));p.current=!1,$t({x:-s.bounds.x*_,y:-s.bounds.y*_,scale:_})}function he(E,A,B){u.cancel();let{x:_,y:k,scale:Ot}=h.current,R=Math.max(.25,Math.min(3,Ot*B));p.current=!0,$t({x:A.x-(E.x-_)*R/Ot,y:A.y-(E.y-k)*R/Ot,scale:R})}function qe(E){he({x:0,y:0},{x:0,y:0},E)}function Cn(E,A,B){let _=E.getBoundingClientRect();return{x:A-_.left-_.width/2,y:B-_.top-_.height/2}}(0,P.useLayoutEffect)(()=>{let E=i.current;if(!E)return;Wt(),u.play(r,h.current.scale),x.current&&(E.querySelector("[data-publication-center]")?.focus({preventScroll:!0}),x.current=!1);let A=k=>{if(dd(k,E))return;k.preventDefault();let Ot=Cn(E,k.clientX,k.clientY),R=k.deltaY*(k.deltaMode===1?16:k.deltaMode===2?E.clientHeight:1);he(Ot,Ot,Math.exp(-Math.max(-200,Math.min(200,R))/350))},B=E.ownerDocument.defaultView,_=B?new B.ResizeObserver(()=>{p.current||Wt()}):null;return _?.observe(E),E.addEventListener("wheel",A,{passive:!1}),()=>{_?.disconnect(),E.removeEventListener("wheel",A)}},[g]);function ge(E,A){o.activate({id:E})&&E!==r&&(x.current=A)}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 A=new URL(E);return A.search="",A.hash="",A}function Dn(E,A){Ut(!1),j({id:E,anchor:A})}function dn(E,A,B=!1){return(0,D.jsxs)("nav",{className:`kplex-publication-trail ${B?"kplex-publication-history":"kplex-publication-pins"}`,"aria-label":A,children:[(0,D.jsx)("span",{children:A}),(0,D.jsx)("ol",{ref:B?Y:void 0,children:E.map(_=>(0,D.jsx)("li",{children:(0,D.jsx)("a",{href:Nu(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(yb,E.key)){let[A,B]=yb[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,R=-1,L=1/0;for(let[Xt,we]of _.entries()){let Ul=g.cardById.get(we.dataset.publicationOccurrence).bounds,pa=Ul.x-Ot.bounds.x,di=Ul.y-Ot.bounds.y,Hn=pa*A+di*B,be=Hn+2*Math.abs(pa*B-di*A);Hn>0&&be<L&&(R=Xt,L=be)}let st=_[R];st?.focus({preventScroll:!b.current?.contains(st)})}else return;E.preventDefault()}}function F(E){if(E.button!==0||dd(E,E.currentTarget))return;let A=y.current;if(A.points.size>=2)return;let B={...Cn(E.currentTarget,E.clientX,E.clientY),id:E.pointerId};A.points.size===0&&(A.origin=B,A.moved=!1),A.points.set(E.pointerId,B)}function ye(E){let A=y.current;if(!A.points.has(E.pointerId))return;let[B,_]=A.points.values(),k=bb(B,_),Ot={...Cn(E.currentTarget,E.clientX,E.clientY),id:E.pointerId};A.points.set(E.pointerId,Ot);let[R,L]=A.points.values(),st=bb(R,L);if(!(!A.moved&&!L&&A.origin&&Math.hypot(Ot.x-A.origin.x,Ot.y-A.origin.y)<5)){if(A.moved)E.currentTarget.hasPointerCapture(E.pointerId)||E.currentTarget.setPointerCapture(E.pointerId);else{A.moved=!0;for(let Xt of A.points.keys())E.currentTarget.setPointerCapture(Xt)}he(k,st,st.distance/k.distance)}}function ae(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:()=>m(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,A=!1){let B=A&&f?{...E.bounds,x:E.bounds.x-f.x,y:E.bounds.y-f.contentTop}:E.bounds;return(0,D.jsxs)(o0,{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)(c0,{wrap:g.wrap,children:(0,D.jsx)(r0,{label:E.node.name,maximum:E.node.maxLabelLength,center:E.center})}),E.gates.map(({side:_,count:k})=>(0,D.jsx)(s0,{side:_,connected:k>0,count:k?String(k):null,"aria-hidden":"true"},_))]},`${E.id}:${E.node.id}`)}let ue=(0,D.jsxs)("div",{ref:i,className:"kplex-publication-viewport",role:"group","aria-label":O.view,tabIndex:0,onKeyDown:Hl,onPointerDown:F,onPointerMove:ye,onPointerUp:ae,onPointerCancel:ae,onLostPointerCapture:ae,onPointerLeave:E=>{E.currentTarget.hasPointerCapture(E.pointerId)||ae(E)},onClickCapture:E=>{E.detail&&y.current.moved&&!dd(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)(m0,{prefix:e}),g.edges.map(E=>{let A=db(g,E,S);if(!A)return null;let{id:B,source:_,target:k,label:Ot,stroke:R,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)(f0,{d:A.d,stroke:R??"var(--kplex-publication-link)",strokeWidth:L??1.2,markerStart:If(st,e),markerEnd:If(Xt,e)}),(0,D.jsx)(d0,{label:Ot,midpoint:A.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:a,"aria-hidden":"true"})]}),Ll=pt?g0(t,pt.id):void 0,fi=J==="both"?pb(W,It):J?{...W,colorScheme:It}:W;return(0,D.jsxs)("main",{className:`kplex-publication${n?" kplex-publication-production":""}`,style:fi,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":fd.back,title:O.backTooltip,children:"←"}),(0,D.jsx)("button",{type:"button",onClick:()=>o.move(1),disabled:!o.canGoForward,"aria-label":O.forward,"aria-keyshortcuts":fd.forward,title:O.forwardTooltip,children:"→"}),n?(0,D.jsx)("button",{type:"button",ref:M,"aria-expanded":w,"aria-controls":`sidecar-${T}`,"aria-keyshortcuts":fd.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)(q0,{publication:t,resources:n,page:pe,searchFocus:C,onChoose:fn}),n&&ie?.length?dn(ie.map(E=>({id:da(E)})),O.pins):null]}),n?(0,D.jsx)(W0,{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,A)=>(0,D.jsx)(I0,{publication:t,resources:n,id:`sidecar-${T}`,contentScope:`${e}-document`,location:o.attention,colorMode:It,onClose:On,onNavigate:fn,dock:E,onSwitchDock:A})}):(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)(N0,{anchor:pt.anchor,address:Nu(pe(),{id:pt.id}).href,shortAddress:Ll&&Nu(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 Tx(t,e,n,l){let i=await t.fetch(e,{credentials:"omit",redirect:"error",signal:l}),a=i.body?.getReader();if(!i.ok||!a||Number(i.headers.get("Content-Length"))>n)throw await a?.cancel(),new Error("Publication resource unavailable");let u=[],o=0;try{for(;;){let m=await a.read();if(m.done)break;if(o+=m.value.byteLength,o>n)throw new Error("Publication resource exceeds its declared size");u.push(m.value)}}catch(m){throw await a.cancel().catch(()=>{}),m}finally{a.releaseLock()}let r=new Uint8Array(o),c=0;for(let m of u)r.set(m,c),c+=m.byteLength;return r}function Ur(t,e,n,l,i){let a=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,m){let g=u.get(c),s=new URL(c,a);if(!g||s.origin!==a.origin||s.pathname!==`${a.pathname}${c}`||!t.crypto.subtle)throw new Error("Publication resource unavailable");let f=l?await l(c,g.bytes,m):await Tx(t,s,g.bytes,m);if(f.byteLength!==g.bytes)throw new Error("Publication resource size mismatch");let b=await t.crypto.subtle.digest("SHA-256",f);if(m.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:a,assetPaths:o,bytes:r,nodeAddress:i,has:c=>u.has(c),async text(c,m){return new TextDecoder("utf-8",{fatal:!0}).decode(await r(c,m))}}}var xb=K(wt(),1),md=new WeakSet,Mx=0;function Eb(t,e,n){return Nx(t,e,void 0,!0,n)}function Nx(t,e,n,l=!1,i){let a=t.ownerDocument.defaultView,u=new URL(n??"./publication.json",t.ownerDocument.baseURI),o=b=>{let S=p0(b);if(S.manifest&&(!a?.crypto.subtle||!i&&u.origin!==a.location.origin))throw new Error("Secure publication context unavailable");let v=S.manifest&&a?i?.(S.manifest)??Ur(a,u,S.manifest):void 0;return{publication:S,resources:v}},r=o(e);if(md.has(t))throw new Error("A publication is already mounted in this element");let c=`kplex-publication-${++Mx}`,m=(0,Sb.createRoot)(t,{identifierPrefix:c});md.add(t);let g=0,s=!1,f=({publication:b,resources:S})=>{l&&(t.ownerDocument.title=b.title),m.render((0,xb.jsx)(vb,{publication:b,markerPrefix:c,resources:S,browser:l&&S&&a?a: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{m.unmount()}finally{md.delete(t)}}}}}var Tb=document.querySelector("[data-kplex-demo]");Tb&&wx(Tb);function wx(t){let e=t.ownerDocument,n=e.defaultView;if(n)try{let l=t.hasAttribute("data-kplex-local-folder"),i=new Map;for(let r of Array.from(e.querySelectorAll('script[type="application/octet-stream"][data-kplex-resource]'))){let c=r.dataset.kplexResource;if(!mi(c)&&c!=="publication.json"||i.has(c)||i.size>=4e4)throw new Error("Invalid offline publication resource");i.set(c,r)}let a=(r,c)=>{let m=i.get(r)?.textContent;if(m==null||m.length>Math.ceil(c/3)*4)throw new Error("Offline resource unavailable");let g=n.atob(m);if(g.length>c)throw new Error("Offline resource exceeds its declared size");let s=new Uint8Array(g.length);for(let f=0;f<g.length;f++)s[f]=g.charCodeAt(f);return s},u=JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(a("publication.json",Xr))),o=Eb(t,u,r=>Ur(n,new URL(n.location.href),r,async(c,m,g)=>(g.throwIfAborted(),l?Ax(e,c,m,g):a(c,m)),n.location.protocol==="file:"?nd:void 0));n.addEventListener("pagehide",function r(c){c.persisted||(n.removeEventListener("pagehide",r),o.dispose())})}catch{let l=e.createElement("p");l.className="kplex-publication-opening",l.setAttribute("role","alert"),l.textContent=O.loadFailed,t.replaceChildren(l)}}async function Ax(t,e,n,l){let i=t.defaultView;if(!i)throw new Error("Offline publication window is unavailable");l.throwIfAborted();let a=t.createElement("div"),u=t.createElement("div"),o=t.createElement("span");a.hidden=!0;let r=u.attachShadow({mode:"closed"}),c=t.createElement("link");o.setAttribute("data-kplex-local-bytes",e),c.rel="stylesheet",c.href=new URL(Od(e),i.location.href).href,r.append(o,c),a.append(u);let m=()=>new Promise((g,s)=>{let f=v=>{i.clearTimeout(S),l.removeEventListener("abort",b),c.onload=c.onerror=null,v?s(v):g()},b=()=>f(new Error("Offline resource load cancelled")),S=i.setTimeout(()=>f(new Error("Offline resource did not load")),3e4);l.addEventListener("abort",b,{once:!0}),c.onload=()=>f(),c.onerror=()=>f(new Error("Offline resource unavailable")),t.body.append(a)});try{await m(),l.throwIfAborted();let g=i.getComputedStyle(o),s=new Uint8Array(n);for(let f=0;f<n;f+=Hu){let b=Math.min(Hu,n-f),S=g.getPropertyValue(`--kplex-file-${f/Hu}`).trim();if(!S.startsWith('"')||!S.endsWith('"')||S.length!==Math.ceil(b/3)*4+2)throw new Error("Invalid offline resource data block");let v=i.atob(S.slice(1,-1));if(v.length!==b)throw new Error("Offline resource data block size mismatch");for(let d=0;d<b;d++)s[f+d]=v.charCodeAt(d)}return s}finally{a.remove()}}})();
760
+ `+Jc+e+cm}var Wc=!1;function $c(e,t){if(!e||Wc)return"";Wc=!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(g){var s=g}Reflect.construct(e,[],p)}else{try{p.call()}catch(g){s=g}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(g){s=g}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(g){if(g&&s&&typeof g.stack=="string")return[g.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(`
761
+ `),c=r.split(`
762
+ `);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=`
763
+ `+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{Wc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?wi(n):""}function F1(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 $c(e.type,!1);case 11:return $c(e.type.render,!1);case 1:return $c(e.type,!0);case 31:return wi("Activity");case 30:return wi("ViewTransition");default:return""}}function sm(e){try{var t="",n=null;do t+=F1(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
764
+ Error generating stack: `+i.message+`
765
+ `+i.stack}}var Ps=Object.prototype.hasOwnProperty,Vf=Je.unstable_scheduleCallback,es=Je.unstable_cancelCallback,J1=Je.unstable_shouldYield,W1=Je.unstable_requestPaint,Ft=Je.unstable_now,$1=Je.unstable_getCurrentPriorityLevel,Wp=Je.unstable_ImmediatePriority,$p=Je.unstable_UserBlockingPriority,cu=Je.unstable_NormalPriority,eS=Je.unstable_LowPriority,eg=Je.unstable_IdlePriority,tS=Je.log,nS=Je.unstable_setDisableYieldValue,Pl=null,Jt=null;function Mi(e){if(typeof tS=="function"&&nS(e),Jt&&typeof Jt.setStrictMode=="function")try{Jt.setStrictMode(Pl,e)}catch{}}var Wt=Math.clz32?Math.clz32:oS,iS=Math.log,aS=Math.LN2;function oS(e){return e>>>=0,e===0?32:31-(iS(e)/aS|0)|0}var wr=256,Er=262144,xr=4194304;function ia(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 _u(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=ia(i):(l&=r,l!==0?a=ia(l):n||(n=r&~e,n!==0&&(a=ia(n))))):(r=i&~o,r!==0?a=ia(r):l!==0?a=ia(l):n||(n=i&~e,n!==0&&(a=ia(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 Il(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tg(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 lS(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 ng(){var e=xr;return xr<<=1,(xr&62914560)===0&&(xr=4194304),e}function ts(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rS(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&&ig(e,i,0),o!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=o&~(l&~t))}function ig(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 ag(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 og(e,t){var n=t&-t;return n=(n&42)!==0?1:Yf(n),(n&(e.suspendedLanes|t))!==0?0:n}function Yf(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 qf(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function lg(){var e=ge.p;return e!==0?e:(e=window.event,e===void 0?32:Gb(e.type))}function fm(e,t){var n=ge.p;try{return ge.p=e,t()}finally{ge.p=n}}var hi=Math.random().toString(36).slice(2),ut="__reactFiber$"+hi,Gt="__reactProps$"+hi,Ao="__reactContainer$"+hi,dm="__reactEvents$"+hi,uS="__reactListeners$"+hi,cS="__reactHandles$"+hi,hm="__reactResources$"+hi,Gl="__reactMarker$"+hi,su="__reactLoad$"+hi;function Uu(e){delete e[ut],delete e[Gt],delete e[uS],delete e[cS]}function la(e){var t;if(t=e[ut])return t;for(var n=e.parentNode;n;){if(t=n[Ao]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Op(e);e!==null;){if(n=e[ut])return n;e=Op(e)}return t}e=n,n=e.parentNode}return null}function Co(e){if(e=e[ut]||e[Ao]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ol(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(A(33))}function ao(e){var t=e[hm];return t||(t=e[hm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Gl]=!0}function rg(e){e[su]=void 0}var ug=new Set,cg={};function Ea(e,t){go(e,t),go(e+"Capture",t)}function go(e,t){for(cg[e]=t,e=0;e<t.length;e++)ug.add(t[e])}var sS=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]*$"),mm={},pm={};function fS(e){return Ps.call(pm,e)?!0:Ps.call(mm,e)?!1:sS.test(e)?pm[e]=!0:(mm[e]=!0,!1)}var me=!1;function gm(){var e=me;return me=!1,e}function Gr(e,t,n){if(fS(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 Tr(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 ti(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 sg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dS(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 Is(e){if(!e._valueTracker){var t=sg(e)?"checked":"value";e._valueTracker=dS(e,t,""+e[t])}}function fg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=sg(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}var hS=/[\n"\\]/g;function cn(e){return e.replace(hS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Bs(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?ns(e,Xt(e.value)):ns(e,Xt(t)):n!=null?ns(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 dg(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)){Is(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),Is(e)}function ns(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function oo(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 hg(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 mg(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(A(92));if(al(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),Is(e)}function yo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mS=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 ym(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||mS.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function pg(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&&(ym(e,a,i),me=!0)}else for(var o in t)t.hasOwnProperty(o)&&ym(e,o,t[o])}function jf(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 pS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["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"]]),gS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Vr(e){return gS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Bn(){}var Gs=null;function Xf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Za=null,lo=null;function bm(e){var t=Co(e);if(t&&(e=t.stateNode)){var n=e[Gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Bs(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[Gt]||null;if(!a)throw Error(A(90));Bs(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&&fg(i)}break e;case"textarea":hg(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&oo(e,!!n.multiple,t,!1)}}}var is=!1;function gg(e,t,n){if(is)return e(t,n);is=!0;try{var i=e(t);return i}finally{if(is=!1,(Za!==null||lo!==null)&&(Fu(),Za&&(t=Za,e=lo,lo=Za=null,bm(t),e)))for(t=0;t<e.length;t++)bm(e[t])}}function El(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Gt]||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 ri=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vs=!1;if(ri)try{Ba={},Object.defineProperty(Ba,"passive",{get:function(){Vs=!0}}),window.addEventListener("test",Ba,Ba),window.removeEventListener("test",Ba,Ba)}catch{Vs=!1}var Ba,Ri=null,Kf=null,Yr=null;function yg(){if(Yr)return Yr;var e,t=Kf,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 Yr=a.slice(e,1<i?1-i:void 0)}function qr(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 Nr(){return!0}function vm(){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)?Nr:vm,this.isPropagationStopped=vm,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=Nr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Nr)},persist:function(){},isPersistent:Nr}),t}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ku=Rt(Ki),Vl=Ne({},Ki,{view:0,detail:0}),yS=Rt(Vl),as,os,Wo,Pu=Ne({},Vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qf,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!==Wo&&(Wo&&e.type==="mousemove"?(as=e.screenX-Wo.screenX,os=e.screenY-Wo.screenY):os=as=0,Wo=e),as)},movementY:function(e){return"movementY"in e?e.movementY:os}}),Sm=Rt(Pu),bS=Ne({},Pu,{dataTransfer:0}),vS=Rt(bS),SS=Ne({},Vl,{relatedTarget:0}),ls=Rt(SS),wS=Ne({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),ES=Rt(wS),xS=Ne({},Ki,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),TS=Rt(xS),NS=Ne({},Ki,{data:0}),wm=Rt(NS),MS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RS={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"},AS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=AS[e])?!!t[e]:!1}function Qf(){return CS}var OS=Ne({},Vl,{key:function(e){if(e.key){var t=MS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?RS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qf,charCode:function(e){return e.type==="keypress"?qr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),LS=Rt(OS),zS=Ne({},Pu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Em=Rt(zS),DS=Ne({},Ki,{submitter:0}),HS=Rt(DS),_S=Ne({},Vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qf}),US=Rt(_S),kS=Ne({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),PS=Rt(kS),IS=Ne({},Pu,{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}),BS=Rt(IS),GS=Ne({},Ki,{newState:0,oldState:0,source:0}),VS=Rt(GS),YS=[9,13,27,32],Zf=ri&&"CompositionEvent"in window,ul=null;ri&&"documentMode"in document&&(ul=document.documentMode);var qS=ri&&"TextEvent"in window&&!ul,bg=ri&&(!Zf||ul&&8<ul&&11>=ul),xm=" ",Tm=!1;function vg(e,t){switch(e){case"keyup":return YS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function jS(e,t){switch(e){case"compositionend":return Sg(t);case"keypress":return t.which!==32?null:(Tm=!0,xm);case"textInput":return e=t.data,e===xm&&Tm?null:e;default:return null}}function XS(e,t){if(Fa)return e==="compositionend"||!Zf&&vg(e,t)?(e=yg(),Yr=Kf=Ri=null,Fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return bg&&t.locale!=="ko"?null:t.data;default:return null}}var KS={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 Nm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!KS[e.type]:t==="textarea"}function wg(e,t,n,i){Za?lo?lo.push(i):lo=[i]:Za=i,t=zu(t,"onChange"),0<t.length&&(n=new ku("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var cl=null,xl=null;function QS(e){gb(e,0)}function Iu(e){var t=ol(e);if(fg(t))return e}function Mm(e,t){if(e==="change")return t}var Eg=!1;ri&&(ri?(Rr="oninput"in document,Rr||(rs=document.createElement("div"),rs.setAttribute("oninput","return;"),Rr=typeof rs.oninput=="function"),Mr=Rr):Mr=!1,Eg=Mr&&(!document.documentMode||9<document.documentMode));var Mr,Rr,rs;function Rm(){cl&&(cl.detachEvent("onpropertychange",xg),xl=cl=null)}function xg(e){if(e.propertyName==="value"&&Iu(xl)){var t=[];wg(t,xl,e,Xf(e)),gg(QS,t)}}function ZS(e,t,n){e==="focusin"?(Rm(),cl=t,xl=n,cl.attachEvent("onpropertychange",xg)):e==="focusout"&&Rm()}function FS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Iu(xl)}function JS(e,t){if(e==="click")return Iu(t)}function WS(e,t){if(e==="input"||e==="change")return Iu(t)}function $S(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var en=typeof Object.is=="function"?Object.is:$S;function Tl(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(!Ps.call(t,a)||!en(e[a],t[a]))return!1}return!0}function Ys(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 Am(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cm(e,t){var n=Am(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=Am(n)}}function Tg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ng(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ys(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=Ys(e.document)}return t}function Ff(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 ew=ri&&"documentMode"in document&&11>=document.documentMode,Ja=null,qs=null,sl=null,js=!1;function Om(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;js||Ja==null||Ja!==Ys(i)||(i=Ja,"selectionStart"in i&&Ff(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}),sl&&Tl(sl,i)||(sl=i,i=zu(qs,"onSelect"),0<i.length&&(t=new ku("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Ja)))}function ta(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wa={animationend:ta("Animation","AnimationEnd"),animationiteration:ta("Animation","AnimationIteration"),animationstart:ta("Animation","AnimationStart"),transitionrun:ta("Transition","TransitionRun"),transitionstart:ta("Transition","TransitionStart"),transitioncancel:ta("Transition","TransitionCancel"),transitionend:ta("Transition","TransitionEnd")},us={},Mg={};ri&&(Mg=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);function xa(e){if(us[e])return us[e];if(!Wa[e])return e;var t=Wa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Mg)return us[e]=t[n];return e}var Rg=xa("animationend"),Ag=xa("animationiteration"),Cg=xa("animationstart"),tw=xa("transitionrun"),nw=xa("transitionstart"),iw=xa("transitioncancel"),Og=xa("transitionend"),Lg=new Map,Xs="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(" ");Xs.push("scrollEnd");function En(e,t){Lg.set(e,t),Ea(t,[e])}var aw=0;function ui(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=wn.identifierPrefix;var n=aw++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Lm(e){if(e==null||typeof e=="string")return e;var t=null,n=mo;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 mi(e,t){return e=Lm(e),t=Lm(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var fu=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=[],$a=0,Jf=0;function Bu(){for(var e=$a,t=Jf=$a=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&&zg(n,a,o)}}function Gu(e,t,n,i){ln[$a++]=e,ln[$a++]=t,ln[$a++]=n,ln[$a++]=i,Jf|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Wf(e,t,n,i){return Gu(e,t,n,i),du(e)}function Ta(e,t){return Gu(e,null,null,t),du(e)}function zg(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 du(e){if(50<Sl)throw Sl=0,eu=null,Error(A(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var eo={};function ow(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 ow(e,t,n,i)}function $f(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oi(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 Dg(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 jr(e,t,n,i,a,o){var l=0;if(i=e,typeof i=="function")$f(i)&&(l=1);else if(typeof i=="string")l=LE(e,n,Yn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case Ds:return e=Pt(31,n,t,a),e.elementType=Ds,e.lanes=o,e;case Ka:return ca(n.children,a,o,t);case Fp:l=8,a|=24;break;case Os:return e=Pt(12,n,t,a|2),e.elementType=Os,e.lanes=o,e;case Ls:return e=Pt(13,n,t,a),e.elementType=Ls,e.lanes=o,e;case zs:return e=Pt(19,n,t,a),e.elementType=zs,e.lanes=o,e;case X1:case Hs:return e=a|32,e=Pt(30,n,t,e),e.elementType=Hs,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 In:l=10;break e;case Jp:l=9;break e;case Bf:l=11;break e;case Gf: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 ca(e,t,n,i){return e=Pt(7,e,i,t),e.lanes=n,e}function cs(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function Hg(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function ss(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 zm=new WeakMap;function sn(e,t){if(typeof e=="object"&&e!==null){var n=zm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:sm(t)},zm.set(e,t),t)}return{value:e,source:t,stack:sm(t)}}var to=[],no=0,hu=null,Nl=0,rn=[],un=0,Vi=null,Gn=1,Vn="";function ii(e,t){to[no++]=Nl,to[no++]=hu,hu=e,Nl=t}function _g(e,t,n){rn[un++]=Gn,rn[un++]=Vn,rn[un++]=Vi,Vi=e;var i=Gn;e=Vn;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,Vn=o+e}else Gn=1<<o|n<<a|i,Vn=e}function Vu(e){e.return!==null&&(ii(e,1),_g(e,1,0))}function ed(e){for(;e===hu;)hu=to[--no],to[no]=null,Nl=to[--no],to[no]=null;for(;e===Vi;)Vi=rn[--un],rn[un]=null,Vn=rn[--un],rn[un]=null,Gn=rn[--un],rn[un]=null}function Ug(e,t){rn[un++]=Gn,rn[un++]=Vn,rn[un++]=Vi,Gn=t.id,Vn=t.overflow,Vi=e}var ot=null,Ce=null,oe=!1,Di=null,fn=!1,Ks=Error(A(519));function Yi(e){var t=Error(A(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ml(sn(t,e)),Ks}function Dm(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[ut]=e,t[Gt]=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<Ol.length;n++)re(Ol[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),dg(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),mg(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||bb(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=Bn),t=!0):t=!1,t||Yi(e,!0)}function mu(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 mu(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")||zf(e.type,e.memoizedProps)),n=!n),n&&Ce&&Yi(e),mu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));Ce=Cp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));Ce=Cp(e)}else t===27?(t=Ce,Qi(e.type)?(e=Uf,Uf=null,Ce=e):Ce=t):Ce=ot?dn(e.stateNode.nextSibling):null;return!0}function ha(){Ce=ot=null,oe=!1}function fs(){var e=Di;return e!==null&&(Ut===null?Ut=e:Ut.push.apply(Ut,e),Di=null),e}function Ml(e){Di===null?Di=[e]:Di.push(e)}var Qs=Xn(null),Na=null,ai=null;function Ai(e,t,n){Oe(Qs,t._currentValue),t._currentValue=n}function li(e){e._currentValue=Qs.current,st(Qs)}function Xr(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 Zs(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),Xr(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),Xr(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),Xr(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 ma(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===lu.current){if(l=a.alternate,l===null)throw Error(A(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(No):e=[No])}a=a.return}return e!==null&&Zs(t,e,n,i),t.flags|=262144,e!==null}function pu(e){for(e=e.firstContext;e!==null;){if(!en(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pa(e){Na=e,ai=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return kg(Na,e)}function Ar(e,t){return Na===null&&pa(e),kg(e,t)}function kg(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ai===null){if(e===null)throw Error(A(308));ai=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ai=ai.next=t;return n}var lw=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()})}},rw=Je.unstable_scheduleCallback,uw=Je.unstable_NormalPriority,Xe={$$typeof:In,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function td(){return{controller:new lw,data:new Map,refCount:0}}function Yl(e){e.refCount--,e.refCount===0&&rw(uw,function(){e.controller.abort()})}function Hm(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 ll=null;function cw(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var fl=null,Fs=0,ga=0,ro=null;function sw(e,t){if(fl===null){var n=fl=[];Fs=0,ga=Cd(),ro={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Fs++,t.then(_m,_m),t}function _m(){if(--Fs===0&&(ll=null,fl!==null)){ro!==null&&(ro.status="fulfilled");var e=fl;fl=null,ga=0,ro=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function fw(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 Um=Q.S;Q.S=function(e,t){if(tb=Ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&sw(e,t),ll!==null)for(var n=Eo;n!==null;)Hm(n,ll),n=n.next;if(n=e.types,n!==null){for(var i=Eo;i!==null;)Hm(i,n),i=i.next;if(ga!==0){i=ll,i===null&&(i=ll=[]);for(var a=0;a<n.length;a++){var o=n[a];i.indexOf(o)===-1&&i.push(o)}}}Um!==null&&Um(e,t)};var sa=Xn(null);function nd(){var e=sa.current;return e!==null?e:Te.pooledCache}function Kr(e,t){t===null?Oe(sa,sa.current):Oe(sa,t.pool)}function Pg(){var e=nd();return e===null?null:{parent:Xe._currentValue,pool:e}}var Oo=Error(A(460)),id=Error(A(474)),Yu=Error(A(542)),gu={then:function(){}};function km(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ig(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Bn,Bn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Im(e),e===void 0&&!("reason"in t)?Error(A(600)):e;default:if(typeof t.status=="string")t.then(Bn,Bn);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,Im(e),e}throw fa=t,Oo}}function aa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(fa=n,Oo):n}}var fa=null;function Pm(){if(fa===null)throw Error(A(459));var e=fa;return fa=null,e}function Im(e){if(e===Oo||e===Yu)throw Error(A(483))}var uo=null,Rl=0;function Cr(e){var t=Rl;return Rl+=1,uo===null&&(uo=[]),Ig(uo,e,t)}function Si(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Or(e,t){throw t.$$typeof===j1?Error(A(525)):(e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Bg(e){function t(h,d){if(e){var y=h.deletions;y===null?(h.deletions=[d],h.flags|=16):y.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=oi(h,d),h.index=0,h.sibling=null,h}function o(h,d,y){return h.index=y,e?(y=h.alternate,y!==null?(y=y.index,y<d?(h.flags|=2,d):y):(h.flags|=134217730,d)):(h.flags|=1048576,d)}function l(h){return e&&h.alternate===null&&(h.flags|=134217730),h}function r(h,d,y,S){return d===null||d.tag!==6?(d=cs(y,h.mode,S),d.return=h,d):(d=a(d,y),d.return=h,d)}function u(h,d,y,S){var x=y.type;return x===Ka?(h=f(h,d,y.props.children,S,y.key),Si(h,y),h):d!==null&&(d.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===xi&&aa(x)===d.type)?(d=a(d,y.props),Si(d,y),d.return=h,d):(d=jr(y.type,y.key,y.props,null,h.mode,S),Si(d,y),d.return=h,d)}function c(h,d,y,S){return d===null||d.tag!==4||d.stateNode.containerInfo!==y.containerInfo||d.stateNode.implementation!==y.implementation?(d=ss(y,h.mode,S),d.return=h,d):(d=a(d,y.children||[]),d.return=h,d)}function f(h,d,y,S,x){return d===null||d.tag!==7?(d=ca(y,h.mode,S,x),d.return=h,d):(d=a(d,y),d.return=h,d)}function p(h,d,y){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=cs(""+d,h.mode,y),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Sr:return y=jr(d.type,d.key,d.props,null,h.mode,y),Si(y,d),y.return=h,y;case il:return d=ss(d,h.mode,y),d.return=h,d;case xi:return d=aa(d),p(h,d,y)}if(al(d)||Jo(d))return d=ca(d,h.mode,y,null),d.return=h,d;if(typeof d.then=="function")return p(h,Cr(d),y);if(d.$$typeof===In)return p(h,Ar(h,d),y);Or(h,d)}return null}function s(h,d,y,S){var x=d!==null?d.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return x!==null?null:r(h,d,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Sr:return y.key===x?u(h,d,y,S):null;case il:return y.key===x?c(h,d,y,S):null;case xi:return y=aa(y),s(h,d,y,S)}if(al(y)||Jo(y))return x!==null?null:f(h,d,y,S,null);if(typeof y.then=="function")return s(h,d,Cr(y),S);if(y.$$typeof===In)return s(h,d,Ar(h,y),S);Or(h,y)}return null}function m(h,d,y,S,x){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return h=h.get(y)||null,r(d,h,""+S,x);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Sr:return h=h.get(S.key===null?y:S.key)||null,u(d,h,S,x);case il:return h=h.get(S.key===null?y:S.key)||null,c(d,h,S,x);case xi:return S=aa(S),m(h,d,y,S,x)}if(al(S)||Jo(S))return h=h.get(y)||null,f(d,h,S,x,null);if(typeof S.then=="function")return m(h,d,y,Cr(S),x);if(S.$$typeof===In)return m(h,d,y,Ar(d,S),x);Or(d,S)}return null}function g(h,d,y,S){for(var x=null,N=null,E=d,M=d=0,R=null;E!==null&&M<y.length;M++){E.index>M?(R=E,E=null):R=E.sibling;var O=s(h,E,y[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===y.length)return n(h,E),oe&&ii(h,M),x;if(E===null){for(;M<y.length;M++)E=p(h,y[M],S),E!==null&&(d=o(E,d,M),N===null?x=E:N.sibling=E,N=E);return oe&&ii(h,M),x}for(E=i(E);M<y.length;M++)R=m(E,h,M,y[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&&ii(h,M),x}function b(h,d,y,S){if(y==null)throw Error(A(151));for(var x=null,N=null,E=d,M=d=0,R=null,O=y.next();E!==null&&!O.done;M++,O=y.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&&ii(h,M),x;if(E===null){for(;!O.done;M++,O=y.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&&ii(h,M),x}for(E=i(E);!O.done;M++,O=y.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&&ii(h,M),x}function w(h,d,y,S){if(typeof y=="object"&&y!==null&&y.type===Ka&&y.key===null&&y.props.ref===void 0&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Sr:e:{for(var x=y.key;d!==null;){if(d.key===x){if(x=y.type,x===Ka){if(d.tag===7){n(h,d.sibling),S=a(d,y.props.children),Si(S,y),S.return=h,h=S;break e}}else if(d.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===xi&&aa(x)===d.type){n(h,d.sibling),S=a(d,y.props),Si(S,y),S.return=h,h=S;break e}n(h,d);break}else t(h,d);d=d.sibling}y.type===Ka?(S=ca(y.props.children,h.mode,S,y.key),Si(S,y),S.return=h,h=S):(S=jr(y.type,y.key,y.props,null,h.mode,S),Si(S,y),S.return=h,h=S)}return l(h);case il:e:{for(x=y.key;d!==null;){if(d.key===x)if(d.tag===4&&d.stateNode.containerInfo===y.containerInfo&&d.stateNode.implementation===y.implementation){n(h,d.sibling),S=a(d,y.children||[]),S.return=h,h=S;break e}else{n(h,d);break}else t(h,d);d=d.sibling}S=ss(y,h.mode,S),S.return=h,h=S}return l(h);case xi:return y=aa(y),w(h,d,y,S)}if(al(y))return g(h,d,y,S);if(Jo(y)){if(x=Jo(y),typeof x!="function")throw Error(A(150));return y=x.call(y),b(h,d,y,S)}if(typeof y.then=="function")return w(h,d,Cr(y),S);if(y.$$typeof===In)return w(h,d,Ar(h,y),S);Or(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,d!==null&&d.tag===6?(n(h,d.sibling),S=a(d,y),S.return=h,h=S):(n(h,d),S=cs(y,h.mode,S),S.return=h,h=S),l(h)):n(h,d)}return function(h,d,y,S){try{Rl=0;var x=w(h,d,y,S);return uo=null,x}catch(E){if(E===Oo||E===Yu)throw E;var N=Pt(29,E,null,h.mode);return N.lanes=S,N.return=h,N}finally{}}}var ya=Bg(!0),Gg=Bg(!1),Ti=!1;function ad(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Js(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=du(e),zg(e,null,n),t}return Gu(e,i,t,n),du(e)}function dl(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,ag(e,n)}}function ds(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 Ws=!1;function hl(){if(Ws){var e=ro;if(e!==null)throw e}}function ml(e,t,n,i){Ws=!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===ga&&(Ws=!0),f!==null&&(f=f.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var g=e,b=r;s=t;var w=n;switch(b.tag){case 1:if(g=b.payload,typeof g=="function"){p=g.call(w,p,s);break e}p=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,s=typeof g=="function"?g.call(w,p,s):g,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 Vg(e,t){if(typeof e!="function")throw Error(A(191,e));e.call(t)}function Yg(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Vg(n[e],t)}var qi=Xn(null),yu=Xn(0);function Bm(e,t){e=di,Oe(yu,e),Oe(qi,t),di=e|t.baseLanes}function $s(){Oe(yu,di),Oe(qi,qi.current)}function od(){di=yu.current,st(qi),st(yu)}var ht=Xn(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 ef(e){Oe(ft,ft.current),Oe(ht,e),bt===null&&(bt=e)}function qg(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=Xn(0);function Al(e,t){Oe(ht,ht.current),Oe(ft,t)}function ld(e){st(ft),st(ht),bt===e&&(bt=null)}function bu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||_f(n)||Dd(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 ci=0,ee=null,xe=null,je=null,vu=!1,co=!1,ba=!1,Su=0,Cl=0,so=null,dw=0;function Be(){throw Error(A(321))}function rd(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 ud(e,t,n,i,a,o){return ci=o,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Q.H=e===null||e.memoizedState===null?wy:Ey,ba=!1,o=n(i,a),ba=!1,co&&(o=Xg(t,n,i,a)),jg(e),o}function jg(e){Q.H=wu;var t=xe!==null&&xe.next!==null;if(ci=0,je=xe=ee=null,vu=!1,Cl=0,so=null,t)throw Error(A(300));e===null||Ke||(e=e.dependencies,e!==null&&pu(e)&&(Ke=!0))}function Xg(e,t,n,i){ee=e;var a=0;do{if(co&&(so=null),Cl=0,co=!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=Sw,o=t(n,i)}while(co);return o}function hw(){var e=Q.H,t=e.useState()[0];return t=typeof t.then=="function"?ql(t):t,e=e.useState()[0],(xe!==null?xe.memoizedState:null)!==e&&(ee.flags|=1024),t}function cd(){var e=Su!==0;return Su=0,e}function sd(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function fd(e){if(vu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vu=!1}ci=0,je=xe=ee=null,co=!1,Cl=Su=0,so=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 qu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ql(e){var t=Cl;return Cl+=1,so===null&&(so=[]),e=Ig(so,e,t),t=ee,(je===null?t.memoizedState:je.next)===null&&(t=t.alternate,Q.H=t===null||t.memoizedState===null?wy:Ey),e}function ju(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ql(e);if(e.$$typeof===Q1)return;if(e.$$typeof===In)return ct(e)}throw Error(A(438,String(e)))}function dd(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=qu(),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]=K1;return t.index++,n}function si(e,t){return typeof t=="function"?t(e):t}function Qr(e){var t=Ve();return hd(t,xe,e)}function hd(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:(ci&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===ga&&(f=!0);else if((ci&s)===s){c=c.next,s===ga&&(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,ba&&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=ro,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 hs(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 Kg(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,md(Fg.bind(null,i,a,e),[e]),e=a.getSnapshot!==t||l||je!==null&&(je.memoizedState.tag&1)!==0,bo(e?9:8,{destroy:void 0},Zg.bind(null,i,a,n,t),null),e){if(i.flags|=2048,Te===null)throw Error(A(349));o||(ci&127)!==0||Qg(i,t,n)}return n}function Qg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ee.updateQueue,t===null?(t=qu(),ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Zg(e,t,n,i){t.value=n,t.getSnapshot=i,Jg(t)&&Wg(e)}function Fg(e,t,n){return n(function(){Jg(t)&&Wg(e)})}function Jg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!en(e,n)}catch{return!0}}function Wg(e){var t=Ta(e,2);t!==null&&It(t,e,2)}function tf(e){var t=Mt();if(typeof e=="function"){var n=e;if(e=n(),ba){Mi(!0);try{n()}finally{Mi(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:e},t}function $g(e,t,n,i){return e.baseState=n,hd(e,xe,typeof i=="function"?i:si)}function mw(e,t,n,i,a){if(Ku(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,ey(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ey(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),Gm(e,t,r)}catch(c){nf(e,t,c)}finally{o!==null&&l.types!==null&&(o.types=l.types),Q.T=o}}else try{o=n(a,i),Gm(e,t,o)}catch(c){nf(e,t,c)}}function Gm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Vm(e,t,i)},function(i){return nf(e,t,i)}):Vm(e,t,n)}function Vm(e,t,n){t.status="fulfilled",t.value=n,ty(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ey(e,n)))}function nf(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,ty(t),t=t.next;while(t!==i)}e.action=null}function ty(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ny(e,t){return t}function Ym(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:ny,lastRenderedState:t},n.queue=i,n=by.bind(null,ee,i),i.dispatch=n,i=tf(!1),o=bd.bind(null,ee,!1,i.queue),i=Mt(),a={state:t,dispatch:null,action:e,pending:null},i.queue=a,n=mw.bind(null,ee,a,o,n),a.dispatch=n,i.memoizedState=e,[t,n,!1]}function qm(e){var t=Ve();return iy(t,xe,e)}function iy(e,t,n){if(t=hd(e,t,ny)[0],e=Qr(si)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=ql(t)}catch(l){throw l===Oo?Yu:l}else i=t;t=Ve();var a=t.queue,o=a.dispatch;return n!==t.memoizedState&&(ee.flags|=2048,bo(9,{destroy:void 0},pw.bind(null,a,n),null)),[i,o,e]}function pw(e,t){e.action=t}function jm(e){var t=Ve(),n=xe;if(n!==null)return iy(t,n,e);Ve(),t=t.memoizedState,n=Ve();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function bo(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=ee.updateQueue,t===null&&(t=qu(),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 ay(){return Ve().memoizedState}function Zr(e,t,n,i){var a=Mt();ee.flags|=e,a.memoizedState=bo(1|t,{destroy:void 0},n,i===void 0?null:i)}function Xu(e,t,n,i){var a=Ve();i=i===void 0?null:i;var o=a.memoizedState.inst;xe!==null&&i!==null&&rd(i,xe.memoizedState.deps)?a.memoizedState=bo(t,o,n,i):(ee.flags|=e,a.memoizedState=bo(1|t,o,n,i))}function Xm(e,t){Zr(8390656,8,e,t)}function md(e,t){Xu(2048,8,e,t)}function gw(e){ee.flags|=4;var t=ee.updateQueue;if(t===null)t=qu(),ee.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function oy(e){var t=Ve().memoizedState;return gw({ref:t,nextImpl:e}),function(){if((pe&2)!==0)throw Error(A(440));return t.impl.apply(void 0,arguments)}}function ly(e,t){return Xu(4,2,e,t)}function ry(e,t){return Xu(4,4,e,t)}function uy(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 cy(e,t,n){n=n!=null?n.concat([e]):null,Xu(4,4,uy.bind(null,t,e),n)}function pd(){}function sy(e,t){var n=Ve();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&rd(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function fy(e,t){var n=Ve();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&rd(t,i[1]))return i[0];if(i=e(),ba){Mi(!0);try{e()}finally{Mi(!1)}}return n.memoizedState=[i,t],i}function gd(e,t,n){return n===void 0||(ci&1073741824)!==0&&(se&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ib(),ee.lanes|=e,Xi|=e,n)}function dy(e,t,n,i){return en(n,t)?n:qi.current!==null?(e=gd(e,n,i),en(e,t)||(Ke=!0),e):(ci&106)===0||(ci&1073741824)!==0&&(se&261930)===0?(Ke=!0,e.memoizedState=n):(e=ib(),ee.lanes|=e,Xi|=e,t)}function hy(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,bd(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=fw(u,i);pl(e,t,f,$t(e))}else pl(e,t,i,$t(e))}catch(p){pl(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 yw(){}function af(e,t,n,i){if(e.tag!==5)throw Error(A(476));var a=my(e).queue;hy(e,a,t,ua,n===null?yw:function(){return py(e),n(i)})}function my(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ua,baseState:ua,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:ua},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function py(e){var t=my(e);t.next===null&&(t=e.alternate.memoizedState),pl(e,t.next.queue,{},$t())}function yd(){return ct(No)}function gy(){return Ve().memoizedState}function yy(){return Ve().memoizedState}function bw(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),dl(i,t,n)),t={cache:td()},e.payload=t;return}t=t.return}}function vw(e,t,n){var i=$t();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ku(e)?vy(t,n):(n=Wf(e,t,n,i),n!==null&&(It(n,e,i),Sy(n,t,i)))}function by(e,t,n){var i=$t();pl(e,t,n,i)}function pl(e,t,n,i){var a={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ku(e))vy(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 Gu(e,t,a,0),Te===null&&Bu(),!1}catch{}finally{}if(n=Wf(e,t,a,i),n!==null)return It(n,e,i),Sy(n,t,i),!0}return!1}function bd(e,t,n,i){if(i={lane:2,revertLane:Cd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ku(e)){if(t)throw Error(A(479))}else t=Wf(e,n,i,2),t!==null&&It(t,e,2)}function Ku(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function vy(e,t){co=vu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sy(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,ag(e,n)}}var wu={readContext:ct,use:ju,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useLayoutEffect:Be,useInsertionEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useSyncExternalStore:Be,useId:Be,useHostTransitionStatus:Be,useFormState:Be,useActionState:Be,useOptimistic:Be,useMemoCache:Be,useCacheRefresh:Be,useEffectEvent:Be},wy={readContext:ct,use:ju,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:Xm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Zr(4194308,4,uy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zr(4194308,4,e,t)},useInsertionEffect:function(e,t){Zr(4,2,e,t)},useMemo:function(e,t){var n=Mt();t=t===void 0?null:t;var i=e();if(ba){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(ba){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=vw.bind(null,ee,e),[i.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:function(e){e=tf(e);var t=e.queue,n=by.bind(null,ee,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:pd,useDeferredValue:function(e,t){var n=Mt();return gd(n,e,t)},useTransition:function(){var e=tf(!1);return e=hy.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||Qg(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Xm(Fg.bind(null,i,o,e),[e]),i.flags|=2048,bo(9,{destroy:void 0},Zg.bind(null,i,o,n,t),null),n},useId:function(){var e=Mt(),t=Te.identifierPrefix;if(oe){var n=Vn,i=Gn;n=(i&~(1<<32-Wt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Su++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=dw++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:yd,useFormState:Ym,useActionState:Ym,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=bd.bind(null,ee,!0,n),n.dispatch=t,[e,t]},useMemoCache:dd,useCacheRefresh:function(){return Mt().memoizedState=bw.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)}}},Ey={readContext:ct,use:ju,useCallback:sy,useContext:ct,useEffect:md,useImperativeHandle:cy,useInsertionEffect:ly,useLayoutEffect:ry,useMemo:fy,useReducer:Qr,useRef:ay,useState:function(){return Qr(si)},useDebugValue:pd,useDeferredValue:function(e,t){var n=Ve();return dy(n,xe.memoizedState,e,t)},useTransition:function(){var e=Qr(si)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:ql(e),t]},useSyncExternalStore:Kg,useId:gy,useHostTransitionStatus:yd,useFormState:qm,useActionState:qm,useOptimistic:function(e,t){var n=Ve();return $g(n,xe,e,t)},useMemoCache:dd,useCacheRefresh:yy,useEffectEvent:oy},Sw={readContext:ct,use:ju,useCallback:sy,useContext:ct,useEffect:md,useImperativeHandle:cy,useInsertionEffect:ly,useLayoutEffect:ry,useMemo:fy,useReducer:hs,useRef:ay,useState:function(){return hs(si)},useDebugValue:pd,useDeferredValue:function(e,t){var n=Ve();return xe===null?gd(n,e,t):dy(n,xe.memoizedState,e,t)},useTransition:function(){var e=hs(si)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:ql(e),t]},useSyncExternalStore:Kg,useId:gy,useHostTransitionStatus:yd,useFormState:jm,useActionState:jm,useOptimistic:function(e,t){var n=Ve();return xe!==null?$g(n,xe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:dd,useCacheRefresh:yy,useEffectEvent:oy};function ms(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 of={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),dl(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),dl(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),dl(t,e,n))}};function Km(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?!Tl(n,i)||!Tl(a,o):!0}function Qm(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&&of.enqueueReplaceState(t,t.state,null)}function va(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 xy(e){fu(e)}function Ty(e){console.error(e)}function Ny(e){fu(e)}function Eu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Zm(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 lf(e,t,n){return n=Hi(n),n.tag=3,n.payload={element:null},n.callback=function(){Eu(e,t)},n}function My(e){return e=Hi(e),e.tag=3,e}function Ry(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(){Zm(t,n,i)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){Zm(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 ww(e,t,n,i,a){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&ma(t,n,a,!0),n=ht.current,n!==null){switch(n.tag){case 31:case 13:case 19:return bt===null?Ou():n.alternate===null&&Ge===0&&(Ge=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===gu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),ws(e,i,a)),!1;case 22:return n.flags|=65536,i===gu?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)),ws(e,i,a)),!1}throw Error(A(435,n.tag))}return ws(e,i,a),Ou(),!1}if(oe)return t=ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==Ks&&(e=Error(A(422),{cause:i}),Ml(sn(e,n)))):(i!==Ks&&(t=Error(A(423),{cause:i}),Ml(sn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=sn(i,n),a=lf(e.stateNode,i,a),ds(e,a),Ge!==4&&(Ge=2)),!1;var o=Error(A(520),{cause:i});if(o=sn(o,n),vl===null?vl=[o]:vl.push(o),Ge!==4&&(Ge=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=lf(n.stateNode,i,e),ds(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=My(a),Ry(a,e,n,i),ds(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var vd=Error(A(461)),Ke=!1;function Ze(e,t,n,i){t.child=e===null?Gg(t,null,n,i):ya(t,e.child,n,i)}function Fm(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 pa(t),i=ud(e,t,n,l,o,a),r=cd(),e!==null&&!Ke?(sd(e,t,a),fi(e,t,a)):(oe&&r&&Vu(t),t.flags|=1,Ze(e,t,i,a),t.child)}function Jm(e,t,n,i,a){if(e===null){var o=n.type;return typeof o=="function"&&!$f(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,Ay(e,t,o,i,a)):(e=jr(n.type,null,i,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!wd(e,a)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Tl,n(l,i)&&e.ref===t.ref)return fi(e,t,a)}return t.flags|=1,e=oi(o,i),e.ref=t.ref,e.return=t,t.child=e}function Ay(e,t,n,i,a){if(e!==null){var o=e.memoizedProps;if(Tl(o,i)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=i=o,wd(e,a))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,fi(e,t,a)}return rf(e,t,n,i,a)}function Cy(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 Wm(e,t,o,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Kr(t,o!==null?o.cachePool:null),o!==null?Bm(t,o):$s(),qg(t);else return i=t.lanes=536870912,Wm(e,t,o!==null?o.baseLanes|n:n,n,i)}else o!==null?(Kr(t,o.cachePool),Bm(t,o),ki(),t.memoizedState=null):(e!==null&&Kr(t,null),$s(),ki());return Ze(e,t,a,n),t.child}function gl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wm(e,t,n,i,a){var o=nd();return o=o===null?null:{parent:Xe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Kr(t,null),$s(),qg(t),e!==null&&ma(e,t,i,!0),t.childLanes=a,null}function Fr(e,t){return t=Qu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function $m(e,t,n){return ya(t,e.child,null,n),e=Fr(t,t.pendingProps),e.flags|=2,Kt(t),t.memoizedState=null,e}function Ew(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=Fr(t,i),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},gl(null,e);if(ef(t),(e=Ce)?(e=Cb(e,fn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vi!==null?{id:Gn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},n=Hg(e),n.return=t,t.child=n,ot=t,Ce=null)):e=null,e===null)throw Yi(t);return t.lanes=536870912,null}return Fr(t,i)}var o=e.memoizedState;if(o!==null){var l=o.dehydrated;if(ef(t),a)if(t.flags&256)t.flags&=-257,t=$m(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||ma(e,t,n,!1),a=(n&e.childLanes)!==0,Ke||a){if(qi.current===null){if(i=Te,i!==null&&(l=og(i,n),l!==0&&l!==o.retryLane))throw o.retryLane=l,Ta(e,l),It(i,e,l),vd;Ou()}t=$m(e,t,n)}else e=o.treeContext,Ce=dn(l.nextSibling),ot=t,oe=!0,Di=null,fn=!1,e!==null&&Ug(t,e),t=Fr(t,i),t.flags|=134221824;return t}return e=oi(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ya(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 rf(e,t,n,i,a){return pa(t),n=ud(e,t,n,i,void 0,a),i=cd(),e!==null&&!Ke?(sd(e,t,a),fi(e,t,a)):(oe&&i&&Vu(t),t.flags|=1,Ze(e,t,n,a),t.child)}function ep(e,t,n,i,a,o){return pa(t),t.updateQueue=null,n=Xg(t,i,n,a),jg(e),i=cd(),e!==null&&!Ke?(sd(e,t,o),fi(e,t,o)):(oe&&i&&Vu(t),t.flags|=1,Ze(e,t,n,o),t.child)}function tp(e,t,n,i,a){if(pa(t),t.stateNode===null){var o=eo,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=of,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},ad(t),l=n.contextType,o.context=typeof l=="object"&&l!==null?ct(l):eo,o.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(ms(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&&of.enqueueReplaceState(o,o.state,null),ml(t,i,o,a),hl(),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=va(n,r);o.props=u;var c=o.context,f=n.contextType;l=eo,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)&&Qm(t,o,i,l),Ti=!1;var s=t.memoizedState;o.state=s,ml(t,i,o,a),hl(),c=t.memoizedState,r||s!==c||Ti?(typeof p=="function"&&(ms(t,n,p,i),c=t.memoizedState),(u=Ti||Km(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,Js(e,t),l=t.memoizedProps,f=va(n,l),o.props=f,p=t.pendingProps,s=o.context,c=n.contextType,u=eo,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)&&Qm(t,o,i,u),Ti=!1,s=t.memoizedState,o.state=s,ml(t,i,o,a),hl();var m=t.memoizedState;l!==p||s!==m||Ti||e!==null&&e.dependencies!==null&&pu(e.dependencies)?(typeof r=="function"&&(ms(t,n,r,i),m=t.memoizedState),(f=Ti||Km(t,n,f,i,s,m,u)||e!==null&&e.dependencies!==null&&pu(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,Ya(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=ya(t,e.child,null,a),t.child=ya(t,null,n,a)):Ze(e,t,n,a),t.memoizedState=o.state,e=t.child):e=fi(e,t,a),e}function np(e,t,n,i){return ha(),t.flags|=256,Ze(e,t,n,i),t.child}var uf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cf(e){return{baseLanes:e,cachePool:Pg()}}function sf(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function Oy(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=Cb(e,fn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vi!==null?{id:Gn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},n=Hg(e),n.return=t,t.child=n,ot=t,Ce=null)):e=null,e===null)throw Yi(t);return Dd(e)?t.lanes=32:t.lanes=536870912,null}return o=i.children,i=i.fallback,a?(ki(),a=t.mode,o=Qu({mode:"hidden",children:o},a),i=ca(i,a,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,i=t.child,i.memoizedState=cf(n),i.childLanes=sf(e,l,n),t.memoizedState=uf,gl(null,i)):(Ui(t),Sd(t,o))}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(u!==null)return xw(e,t,o,l,i,u,r,n)}return a?(ki(),a=i.fallback,o=t.mode,r=e.child,u=r.sibling,i=oi(r,{mode:"hidden",children:i.children}),i.subtreeFlags=r.subtreeFlags&1206910976,u!==null?a=oi(u,a):(a=ca(a,o,n,null),a.flags|=2),a.return=t,i.return=t,i.sibling=a,t.child=i,gl(null,i),i=t.child,a=e.child.memoizedState,a===null?a=cf(n):(o=a.cachePool,o!==null?(r=Xe._currentValue,o=o.parent!==r?{parent:r,pool:r}:o):o=Pg(),a={baseLanes:a.baseLanes|n,cachePool:o}),i.memoizedState=a,i.childLanes=sf(e,l,n),t.memoizedState=uf,gl(e.child,i)):(Ui(t),n=e.child,e=n.sibling,n=oi(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 Sd(e,t){return t=Qu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qu(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Lr(e,t,n){return ya(t,e.child,null,n),e=Sd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xw(e,t,n,i,a,o,l,r){if(n)return t.flags&256?(Ui(t),t.flags&=-257,Lr(e,t,r)):t.memoizedState!==null?(ki(),t.child=e.child,t.flags|=128,null):(ki(),o=a.fallback,l=t.mode,a=Qu({mode:"visible",children:a.children},l),o=ca(o,l,r,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,ya(t,e.child,null,r),a=t.child,a.memoizedState=cf(r),a.childLanes=sf(e,i,r),t.memoizedState=uf,gl(null,a));if(Ui(t),Dd(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,Ml({value:a,source:null,stack:null})),Lr(e,t,r)}if(Ke||ma(e,t,r,!1),i=(r&e.childLanes)!==0,Ke||i){if(qi.current!==null)return Lr(e,t,r);if(i=Te,i!==null&&(a=og(i,r),a!==0&&a!==l.retryLane))throw l.retryLane=a,Ta(e,a),It(i,e,a),vd;return _f(o)||Ou(),Lr(e,t,r)}return _f(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&&Ug(t,e),t=Sd(t,a.children),t.flags|=134221824,t)}function ip(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Xr(e.return,t,n)}function ap(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&bu(n)===null&&(t=e),e=e.sibling}return t}function zr(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 ps(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 ff(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 Al(t,l),null;var r=(l&2)!==0;if(r?(l=l&1|2,t.flags|=128):l&=1,Al(t,l),a==="backwards"&&e!==null?(ps(e),Ze(e,t,i,n),ps(e)):Ze(e,t,i,n),i=oe?Nl:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ip(e,n,t);else if(e.tag===19)ip(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=ap(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null,ps(t)),zr(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&&bu(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}zr(t,!0,n,null,o,i);break;case"together":zr(t,!1,null,null,void 0,i);break;case"independent":t.memoizedState=null;break;default:n=ap(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),zr(t,!1,a,n,o,i)}return t.child}function op(e,t,n){var i=t.pendingProps;return Ai(t,t.type,i.value),Ze(e,t,i.children,n),t.child}function fi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ma(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=oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&pu(e)))}function Tw(e,t,n){switch(t.tag){case 3:ru(t,t.stateNode.containerInfo),Ai(t,Xe,e.memoizedState.cache),ha();break;case 27:case 5:ks(t);break;case 4:ru(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,ef(t),null;break;case 13:var i=t.memoizedState;if(i!==null){if(i.dehydrated!==null)return Ui(t),t.flags|=128,null;i=ma(e,t,n,!1);var a=t.child.childLanes;return i||(n&a)!==0?Oy(e,t,n):(Ui(t),e=fi(e,t,n),e!==null?e.sibling:null)}Ui(t);break;case 19:if(t.flags&128)return ff(e,t,n);if(a=(e.flags&128)!==0,i=(n&t.childLanes)!==0,i||(ma(e,t,n,!1),i=(n&t.childLanes)!==0),a){if(i)return ff(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Al(t,ft.current),i)break;return null;case 22:return t.lanes=0,Cy(e,t,n,t.pendingProps);case 24:Ai(t,Xe,e.memoizedState.cache)}return fi(e,t,n)}function Ly(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!wd(e,n)&&(t.flags&128)===0)return Ke=!1,Tw(e,t,n);Ke=(e.flags&131072)!==0}else Ke=!1,oe&&(t.flags&1048576)!==0&&_g(t,Nl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=aa(t.elementType),t.type=e,typeof e=="function")$f(e)?(i=va(e,i),t.tag=1,t=tp(null,t,e,i,n)):(t.tag=0,t=rf(null,t,e,i,n));else{if(e!=null){var a=e.$$typeof;if(a===Bf){t.tag=11,t=Fm(null,t,e,i,n);break e}else if(a===Gf){t.tag=14,t=Jm(null,t,e,i,n);break e}else if(a===In){t.tag=10,t.type=e,t=op(null,t,n);break e}}throw t=_s(e)||e,Error(A(306,t,""))}}return t;case 0:return rf(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=va(i,t.pendingProps),tp(e,t,i,a,n);case 3:e:{if(ru(t,t.stateNode.containerInfo),e===null)throw Error(A(387));i=t.pendingProps;var o=t.memoizedState;a=o.element,Js(e,t),ml(t,i,null,n);var l=t.memoizedState;if(i=l.cache,Ai(t,Xe,i),i!==o.cache&&Zs(t,[Xe],n,!0),hl(),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=np(e,t,i,n);break e}else if(i!==a){a=sn(Error(A(424)),t),Ml(a),t=np(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=Gg(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ha(),i===a){t=fi(e,t,n);break e}Ze(e,t,i,n)}t=t.child}return t;case 26:return Ya(e,t),e===null?(n=zp(t.type,null,t.pendingProps,null))?t.memoizedState=n:oe||(t.stateNode=Sb(t.type,t.pendingProps,zi.current,t)):t.memoizedState=zp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ks(t),e===null&&oe&&(i=t.stateNode=Ob(t.type,t.pendingProps,zi.current),ot=t,fn=!0,a=Ce,Qi(t.type)?(Uf=a,Ce=dn(i.firstChild)):Ce=a),Ze(e,t,t.pendingProps.children,n),Ya(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((a=i=Ce)&&(i=gE(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)),ks(t),a=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,zf(a,o)?i=null:l!==null&&zf(a,l)&&(t.flags|=32),t.memoizedState!==null&&(a=ud(e,t,hw,null,null,n),No._currentValue=a),Ya(e,t),Ze(e,t,i,n),t.child;case 6:return e===null&&oe&&((e=n=Ce)&&(n=yE(n,t.pendingProps,fn),n!==null?(t.stateNode=n,ot=t,Ce=null,e=!0):e=!1),e||Yi(t)),null;case 13:return Oy(e,t,n);case 4:return ru(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ya(t,null,i,n):Ze(e,t,i,n),t.child;case 11:return Fm(e,t,t.type,t.pendingProps,n);case 7:return i=t.pendingProps,Ya(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 op(e,t,n);case 9:return a=t.type._context,i=t.pendingProps.children,pa(t),a=ct(a),i=i(a),t.flags|=1,Ze(e,t,i,n),t.child;case 14:return Jm(e,t,t.type,t.pendingProps,n);case 15:return Ay(e,t,t.type,t.pendingProps,n);case 19:return ff(e,t,n);case 31:return Ew(e,t,n);case 22:return Cy(e,t,n,t.pendingProps);case 24:return pa(t),i=ct(Xe),e===null?(a=nd(),a===null&&(a=Te,o=td(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:i,cache:a},ad(t),Ai(t,Xe,a)):((e.lanes&n)!==0&&(Js(e,t),ml(t,null,null,n),hl()),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&&Zs(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&&Vu(t),e!==null&&e.memoizedProps.name!==i.name?t.flags|=4194816:Ya(e,t),Ze(e,t,i.children,n),t.child;case 29:throw t.pendingProps}throw Error(A(156,t.tag))}function ni(e){e.flags|=4}function gs(e,t,n,i,a){var o;if((o=(e.mode&32)!==0)&&(o=n===null?_p(t,i):_p(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(lb())e.flags|=8192;else throw fa=gu,id}else e.flags&=-16777217}function lp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hb(t))if(lb())e.flags|=8192;else throw fa=gu,id}function Dr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ng():536870912,e.lanes|=t,vo|=t)}function $o(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 Nw(e,t,n){var i=t.pendingProps;switch(ed(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),li(Xe),po(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ga(t)?ni(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fs())),Ae(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(ni(t),o!==null?(Ae(t),lp(t,o)):(Ae(t),gs(t,a,null,i,n))):o?o!==e.memoizedState?(ni(t),Ae(t),lp(t,o)):(Ae(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ni(t),Ae(t),gs(t,a,e,i,n)),null;case 27:if(uu(t),n=zi.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ni(t);else{if(!i){if(t.stateNode===null)throw Error(A(166));return Ae(t),t.subtreeFlags&=-33554433,null}e=Yn.current,Ga(t)?Dm(t,e):(e=Ob(a,i,n),t.stateNode=e,ni(t))}return Ae(t),t.subtreeFlags&=-33554433,null;case 5:if(uu(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ni(t);else{if(!i){if(t.stateNode===null)throw Error(A(166));return Ae(t),t.subtreeFlags&=-33554433,null}if(o=Yn.current,Ga(t))Dm(t,o);else{var l=zl(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[Gt]=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&&ni(t)}}return Ae(t),t.subtreeFlags&=-33554433,gs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ni(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||bb(e.nodeValue,n)),e||Yi(t,!0)}else e=zl(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 ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),e=!1}else n=fs(),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 ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),a=!1}else a=fs(),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),Dr(t,t.updateQueue),Ae(t),null);case 4:return po(),e===null&&Od(t.stateNode.containerInfo),t.flags|=67108864,Ae(t),null;case 10:return li(t.type),Ae(t),null;case 19:if(ld(t),i=t.memoizedState,i===null)return Ae(t),null;if(a=(t.flags&128)!==0,o=i.rendering,o===null)if(a)$o(i,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=bu(e),o!==null){for(t.flags|=128,$o(i,!1),e=o.updateQueue,t.updateQueue=e,Dr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Dg(n,e),n=n.sibling;return Al(t,ft.current&1|2),oe&&ii(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ft()>Au&&(t.flags|=128,a=!0,$o(i,!1),t.lanes=4194304)}else{if(!a)if(e=bu(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Dr(t,e),$o(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!o.alternate&&!oe)return Ae(t),null}else 2*Ft()-i.renderingStartTime>Au&&n!==536870912&&(t.flags|=128,a=!0,$o(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?Al(t,o):(n=o,Oe(ht,t),Oe(ft,n),bt===null&&(bt=t)),oe&&ii(t,i.treeForkCount),e}return Ae(t),null;case 22:case 23:return Kt(t),od(),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&&Dr(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(sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),li(Xe),Ae(t),null;case 25:return null;case 30:return t.flags|=33554432,Ae(t),null}throw Error(A(156,t.tag))}function Mw(e,t){switch(ed(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return li(Xe),po(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return uu(t),null;case 31:if(t.memoizedState!==null){if(Kt(t),t.alternate===null)throw Error(A(340));ha()}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));ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ld(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 po(),null;case 10:return li(t.type),null;case 22:case 23:return Kt(t),od(),e!==null&&st(sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return li(Xe),null;case 25:return null;default:return null}}function zy(e,t){switch(ed(t),t.tag){case 3:li(Xe),po();break;case 26:case 27:case 5:uu(t);break;case 4:po();break;case 31:t.memoizedState!==null&&Kt(t);break;case 13:Kt(t);break;case 19:ld(t);break;case 10:li(t.type);break;case 22:case 23:Kt(t),od(),e!==null&&st(sa);break;case 24:li(Xe)}}function jl(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 Dy(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Yg(t,n)}catch(i){Ee(e,e.return,i)}}}function Hy(e,t,n){n.props=va(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Ee(e,t,i)}}function kn(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=ui(e.memoizedProps,a);(a.ref===null||a.ref.name!==o)&&(a.ref=Tb(o)),i=a.ref;break;case 7:if(e.stateNode===null){var l=new tn(e);Bt(e.child,!1,mE,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 xu(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++)Ab(e.stateNode,t[n])}function rp(e){for(var t=e.return;t!==null&&(xd(t)&&Ab(e.stateNode,t.stateNode),!Ed(t));)t=t.return}function yl(e){for(var t=e.return;t!==null&&(xd(t)&&pE(e.stateNode,t.stateNode),!Ed(t));)t=t.return}function Ed(e){return e.tag===5||e.tag===3||e.tag===27}function xd(e){return e&&e.tag===7&&e.stateNode!==null}function df(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 ys(e,t,n){try{var i=e.stateNode;Fw(i,e.type,n,t),i[Gt]=t}catch(a){Ee(e,e.return,a)}}function _y(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qi(e.type)||e.tag===4}function bs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_y(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 hf(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=Bn)),xu(e,i),me=!0;else if(a!==4&&(a===27&&(xu(e,i),i=null,Qi(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(hf(e,t,n,i),e=e.sibling;e!==null;)hf(e,t,n,i),e=e.sibling}function Tu(e,t,n,i){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?n.insertBefore(a,t):n.appendChild(a),xu(e,i),me=!0;else if(a!==4&&(a===27&&(xu(e,i),i=null,Qi(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Tu(e,t,n,i),e=e.sibling;e!==null;)Tu(e,t,n,i),e=e.sibling}function Uy(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[Gt]=n}catch(o){Ee(e,e.return,o)}}var Nu=!1,Qt=null;function up(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Nu=!0)}var Pn=null;function cp(){var e=Pn;return Pn=null,e}var kt=0;function Lo(e,t,n,i,a){return kt=0,ky(e.child,t,n,i,a)}function ky(e,t,n,i,a){for(var o=!1;e!==null;){if(e.tag===5){var l=e.stateNode;if(i!==null){var r=Df(l);i.push(r),r.view&&(o=!0)}else o||Df(l).view&&(o=!0);Nu=!0,wb(l,kt===0?t:t+"_"+kt,n),kt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a||ky(e.child,t,n,i,a)&&(o=!0));e=e.sibling}return o}function jn(e,t){for(;e!==null;)e.tag===5?Eb(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||jn(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=mi(t.default,t.share),t!=="none"&&(Lo(e,n,t,null,!1)||jn(e.child,!1))}e=e.sibling}}function mf(e,t){if(e.tag===30){var n=e.stateNode,i=e.memoizedProps,a=ui(i,n),o=mi(i.default,n.paired?i.share:i.enter);o!=="none"?Lo(e,a,o,null,!1)?(Jr(e),n.paired||t||So(e,i.onEnter)):jn(e.child,!1):Jr(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)mf(e,t),e=e.sibling;else Jr(e)}function pf(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=mi(n.default,n.share);if(o!=="none"&&(Lo(e,i,o,null,!1)?(o=e.stateNode,a.paired=o,o.paired=a,So(e,n.onShare)):jn(e.child,!1)),t.delete(i),t.size===0)break}}}pf(e)}e=e.sibling}}}function gf(e){if(e.tag===30){var t=e.memoizedProps,n=ui(t,e.stateNode),i=Qt!==null?Qt.get(n):void 0,a=mi(t.default,i!==void 0?t.share:t.exit);a!=="none"&&(Lo(e,n,a,null,!1)?i!==void 0?(a=e.stateNode,i.paired=a,a.paired=i,Qt.delete(n),So(e,t.onShare)):So(e,t.onExit):jn(e.child,!1)),Qt!==null&&pf(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)gf(e),e=e.sibling;else Qt!==null&&pf(e)}function Py(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=ui(t,e.stateNode);t=mi(t.default,t.update),e.flags&=-5,t!=="none"&&Lo(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Py(e);e=e.sibling}}function yf(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,jn(e.child,!1))}yf(e)}e=e.sibling}}function Wr(e){if(e.tag===30)e.stateNode.paired=null,jn(e.child,!1),yf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Wr(e),e=e.sibling;else yf(e)}function Iy(e){for(e=e.child;e!==null;)e.tag===30?jn(e.child,!1):(e.subtreeFlags&33554432)!==0&&Iy(e),e=e.sibling}function Td(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=Df(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&&wb(u,kt===0?n:n+"_"+kt,a),r&&(e.flags&4)!==0||(Pn===null&&(Pn=[]),Pn.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:Td(e,t.child,n,i,a,o,l)&&(r=!0));t=t.sibling}return r}function By(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,i=e.stateNode,a=ui(n,i),o=mi(n.default,n.update);if(t){i=i.clones;var l=i===null?null:i.map(nE)}else l=e.memoizedState,e.memoizedState=null;i=e;var r=e.child;kt=0,a=Td(i,r,a,a,o,l,!1),(e.flags&4)!==0&&a&&(t||So(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&By(e,t);e=e.sibling}}var nt=!1,be=!1,Hn=!1,vs=!1,sp=typeof WeakSet=="function"?WeakSet:Set,it=null,_n=!1,rl=!1,Mu=!1,bf=!1;function Rw(e,t,n){if(e=e.containerInfo,Of=Mo,e=Ng(e),Ff(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 g;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),(g=s.firstChild)!==null;)m=s,s=g;for(;;){if(s===e)break t;if(m===i&&++f===o&&(u=r),m===l&&++p===a&&(c=r),(g=s.nextSibling)!==null)break;s=m,m=s.parentNode}s=g}i=u===-1||c===-1?null:{start:u,end:c}}else i=null}i=i||{start:0,end:0}}else i=null;for(Lf={focusedElem:e,selectionRange:i},Mo=!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&&gf(i[o]);if(e.alternate===null&&(e.flags&2)!==0)n&&up(e),Hr(n);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&gf(i),Hr(n);continue}else if(i!==null&&i.memoizedState!==null){n&&up(e),Hr(n);continue}}i=e.child,(e.subtreeFlags&t)!==0&&i!==null?(i.return=e,it=i):(n&&Py(e),Hr(n))}}Qt=null}function Hr(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=va(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)Hf(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Hf(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=ui(i.memoizedProps,i.stateNode),a=t.memoizedProps,a=mi(a.default,a.update),a!=="none"&&Lo(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 Gy(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n),i&4&&jl(5,n);break;case 1:if(Un(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){Ee(n,n.return,l)}else{var a=va(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){Ee(n,n.return,l)}}i&64&&Dy(n),i&512&&kn(n,n.return);break;case 3:if(Un(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{Yg(e,t)}catch(l){Ee(n,n.return,l)}}break;case 27:t===null&&i&4&&Uy(n);case 26:case 5:Un(e,n),t===null&&i&4&&df(n),i&512&&kn(n,n.return);break;case 12:Un(e,n);break;case 31:Un(e,n),i&4&&jy(e,n);break;case 13:Un(e,n),i&4&&Xy(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Iw.bind(null,n),bE(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),bn(e,n,i)):Un(e,n),nt=t,be=a}break;case 30:Un(e,n),i&512&&kn(n,n.return);break;case 7:i&512&&kn(n,n.return);default:Un(e,n)}}function vf(e,t){for(e=e.child;e!==null;)Vy(e,t),e=e.sibling}function Vy(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)}Sf(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?Mp(r,!0):Mp(e.stateNode,!1)}catch(u){Ee(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&vf(e,t);break;default:vf(e,t)}}function Sf(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,i=t;switch(n.tag){case 4:Vy(n,i);break e;case 22:n.memoizedState===null&&Sf(n,i);break e;default:Sf(n,i)}}e=e.sibling}}function Yy(e){var t=e.alternate;t!==null&&(e.alternate=null,Yy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Uu(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 yn(e,t,n){for(n=n.child;n!==null;)qy(e,t,n),n=n.sibling}function qy(e,t,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(Pl,n)}catch{}switch(n.tag){case 26:be||rt(n,t),yn(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),yl(n);var i=Ue,a=_t;Qi(n.type)&&(Ue=n.stateNode,_t=!1),yn(e,t,n),Lb(n.stateNode,n.type,n.memoizedProps),Ue=i,_t=a;break;case 5:be||rt(n,t),yl(n);case 6:if(n.tag===6&&yl(n),i=Ue,a=_t,Ue=null,yn(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,Np(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ro(e)):Np(Ue,n.stateNode));break;case 4:i=Ue,a=_t,Ue=n.stateNode.containerInfo,_t=!0,yn(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),yn(e,t,n);break;case 1:be||(rt(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Hy(n,t,i)),yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:be=(i=be)||n.memoizedState!==null,yn(e,t,n),be=i;break;case 30:rt(n,t),yn(e,t,n);break;case 7:be||rt(n,t),yn(e,t,n);break;default:yn(e,t,n)}}function jy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ro(e)}catch(n){Ee(t,t.return,n)}}}function Xy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ro(e)}catch(n){Ee(t,t.return,n)}}function Aw(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sp),t;default:throw Error(A(435,e.tag))}}function _r(e,t){var n=Aw(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var a=Bw.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));qy(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;)Ky(t,e,n),t=t.sibling}var vn=null;function Ky(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),jl(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=vn,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=Sb(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=Hp("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=Hp("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||kf(o,e.type,e.stateNode);else e.stateNode=Dp(o,n,e.memoizedProps);else a!==n?(a===null?(t=i.stateNode,t===null||be||t.parentNode.removeChild(t)):a.count--,n===null?nt||kf(o,e.type,e.stateNode):Dp(o,n,e.memoizedProps)):n===null&&e.stateNode!==null&&ys(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&&ys(e,e.memoizedProps,i.memoizedProps);break;case 5:if(o=Hn,Hn=!1,Tt(t,e,n),Hn=o,Nt(e),a&512&&(be||i===null||rt(i,i.return)),e.flags&32){t=e.stateNode;try{yo(t,""),me=!0}catch(f){Ee(e,e.return,f)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,ys(e,t,i!==null?i.memoizedProps:t)),a&1024&&(vs=!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,nu=null,o=vn,vn=Dl(t.containerInfo),Tt(t,e,n),vn=o,Nt(e),a&4&&i!==null&&i.memoizedState.isDehydrated)try{Ro(t.containerInfo)}catch(f){Ee(e,e.return,f)}vs&&(vs=!1,Qy(e)),me=!1;break;case 4:a=Hn,Hn=nt,i=gm(),o=vn,vn=Dl(e.stateNode.containerInfo),Tt(t,e,n),Nt(e),vn=o,me&&rl&&(Mu=!0),me=i,Hn=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,_r(e,t)));break;case 13:Tt(t,e,n),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Zu=Ft()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,_r(e,t)));break;case 22:o=e.memoizedState!==null,l=i!==null&&i.memoizedState!==null;var r=nt,u=be,c=Hn;nt=r||o,Hn=c||o,be=u||l,Tt(t,e,n),be=u,Hn=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&&Hn||vf(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,_r(e,n))));break;case 19:Tt(t,e,n),Nt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,_r(e,t)));break;case 30:a&512&&(be||i===null||rt(i,i.return)),a=gm(),o=rl,l=(n&335544064)===n,r=e.memoizedProps,rl=l&&mi(r.default,r.update)!=="none",Tt(t,e,n),Nt(e),l&&i!==null&&me&&(e.flags|=4),rl=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(_y(i)){n=i;break}i=i.return}i=null;for(var a=e.return;a!==null;){if(xd(a)){var o=a.stateNode;i===null?i=[o]:i.push(o)}if(Ed(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=bs(e);Tu(e,u,r,l);break;case 5:var c=n.stateNode;n.flags&32&&(yo(c,""),n.flags&=-33);var f=bs(e);Tu(e,f,c,l);break;case 3:case 4:var p=n.stateNode.containerInfo,s=bs(e);hf(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 Qy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Qy(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Mo=!0,t.reset(),Mo=!1),e=e.sibling}}function Va(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Zy(t,e),t=t.sibling;else By(t,!1)}function Zy(e,t){var n=e.alternate;if(n===null)mf(e,!1);else switch(e.tag){case 3:if(bf=_n=!1,cp(),Va(t,e),!_n&&!Mu){if(e=Pn,e!==null)for(var i=0;i<e.length;i+=3){n=e[i];var a=e[i+1];Eb(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"})),bf=!0}Pn=null;break;case 5:Va(t,e);break;case 4:i=_n,_n=!1,Va(t,e),_n&&(Mu=!0),_n=i;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?mf(e,!1):Va(t,e));break;case 30:i=_n,a=cp(),_n=!1,Va(t,e),_n&&(e.flags|=4);var o=e.memoizedProps,l=e.stateNode;t=ui(o,l),l=ui(n.memoizedProps,l);var r=mi(o.default,o.update);r==="none"?t=!1:(o=n.memoizedState,n.memoizedState=null,n=e.child,kt=0,t=Td(e,n,t,l,r,o,!0),kt!==(o===null?0:o.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(So(e,e.memoizedProps.onUpdate),Pn=a):a!==null&&(a.push.apply(a,Pn),Pn=a),_n=(e.flags&32)!==0?!0:i;break;default:Va(t,e)}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Gy(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"&&Hy(n,n.return,a),Ei(n,i);break;case 27:(i&2)!==0&&Lb(n.stateNode,n.type,n.memoizedProps);case 5:rt(n,n.return),n.tag!==5&&n.tag!==27||yl(n),Ei(n,i);break;case 6:yl(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 bn(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:bn(a,o,n),jl(4,o);break;case 1:if(bn(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++)Vg(c[a],u)}catch(f){Ee(i,i.return,f)}}r&&l&64&&Dy(o),kn(o,o.return);break;case 27:(n&2)!==0&&Uy(o);case 5:o.tag!==5&&o.tag!==27||rp(o),bn(a,o,n),r&&i===null&&l&4&&df(o),kn(o,o.return);break;case 6:rp(o);break;case 26:u=o.stateNode,o.memoizedState!==null||u===null||nt||kf(Dl(u.ownerDocument),o.type,u),bn(a,o,n),r&&i===null&&l&4&&df(o),kn(o,o.return);break;case 12:bn(a,o,n);break;case 31:bn(a,o,n),r&&l&4&&jy(a,o);break;case 13:bn(a,o,n),r&&l&4&&Xy(a,o);break;case 22:o.memoizedState===null&&bn(a,o,n),kn(o,o.return);break;case 30:bn(a,o,n),kn(o,o.return);break;case 7:kn(o,o.return);default:bn(a,o,n)}t=t.sibling}}function Nd(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&&Yl(n))}function Md(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yl(e))}function on(e,t,n,i){var a=(n&335544064)===n;if(t.subtreeFlags&(a?10262:10256))for(t=t.child;t!==null;)Fy(e,t,n,i),t=t.sibling;else a&&Iy(t)}function Fy(e,t,n,i){var a=(n&335544064)===n;a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Wr(t);var o=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,n,i),o&2048&&jl(9,t);break;case 1:on(e,t,n,i);break;case 3:on(e,t,n,i),a&&bf&&(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&&Yl(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&&Wr(r),l._visibility&2?on(e,t,n,i):bl(e,t)):(a&&r!==null&&r.memoizedState!==null&&Wr(t),l._visibility&2?on(e,t,n,i):(l._visibility|=2,qa(e,t,n,i,(t.subtreeFlags&10256)!==0||!1))),o&2048&&Nd(r,t);break;case 24:on(e,t,n,i),o&2048&&Md(t.alternate,t);break;case 30:a&&(o=t.alternate,o!==null&&(jn(o.child,!0),jn(t.child,!0))),on(e,t,n,i);break;default:on(e,t,n,i)}}function qa(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:qa(o,l,r,u,a),jl(8,l);break;case 23:break;case 22:var f=l.stateNode;l.memoizedState!==null?f._visibility&2?qa(o,l,r,u,a):bl(o,l):(f._visibility|=2,qa(o,l,r,u,a)),a&&c&2048&&Nd(l.alternate,l);break;case 24:qa(o,l,r,u,a),a&&c&2048&&Md(l.alternate,l);break;default:qa(o,l,r,u,a)}t=t.sibling}}function bl(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:bl(n,i),a&2048&&Nd(i.alternate,i);break;case 24:bl(n,i),a&2048&&Md(i.alternate,i);break;default:bl(n,i)}t=t.sibling}}var oa=8192;function na(e,t,n){if(e.subtreeFlags&oa)for(e=e.child;e!==null;)Jy(e,t,n),e=e.sibling}function Jy(e,t,n){switch(e.tag){case 26:na(e,t,n),e.flags&oa&&(e.memoizedState!==null?zE(n,vn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Up(n,e)));break;case 5:na(e,t,n),e.flags&oa&&(e=e.stateNode,(t&335544128)===t&&Up(n,e));break;case 3:case 4:var i=vn;vn=Dl(e.stateNode.containerInfo),na(e,t,n),vn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=oa,oa=16777216,na(e,t,n),oa=i):na(e,t,n));break;case 30:if((e.flags&oa)!==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)}na(e,t,n);break;default:na(e,t,n)}}function Wy(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 el(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,eb(i,e)}Wy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$y(e),e=e.sibling}function $y(e){switch(e.tag){case 0:case 11:case 15:el(e),e.flags&2048&&ji(9,e,e.return);break;case 3:el(e);break;case 12:el(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,$r(e)):el(e);break;default:el(e)}}function $r(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,eb(i,e)}Wy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ji(8,t,t.return),$r(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,$r(t));break;default:$r(t)}e=e.sibling}}function eb(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:Yl(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(Yy(i),i===n){it=null;break e}if(a!==null){a.return=o,it=a;break e}it=o}}}var Cw={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}},Ow=typeof WeakMap=="function"?WeakMap:Map,pe=0,Te=null,ue=null,se=0,Se=0,jt=null,Ci=!1,zo=!1,Rd=!1,di=0,Ge=0,Xi=0,da=0,Ru=0,Zt=0,vo=0,vl=null,Ut=null,wf=!1,Zu=0,tb=0,Au=1/0,Cu=null,Pi=null,Ie=0,wn=null,Sa=null,qn=0,Ef=0,xf=null,nb=null,fo=null,ho=null,mo=null,Sl=0,eu=null;function $t(){return(pe&2)!==0&&se!==0?se&-se:Q.T!==null?Cd():lg()}function ib(){if(Zt===0)if((se&536870912)===0||oe){var e=Er;Er<<=1,(Er&3932160)===0&&(Er=262144),Zt=e}else Zt=536870912;return e=ht.current,e!==null&&(e.flags|=32),Zt}function So(e,t){if(t!=null){var n=e.stateNode,i=n.ref;i===null&&(i=n.ref=Tb(ui(e.memoizedProps,n))),ho===null&&(ho=[]),ho.push(t.bind(null,i))}}function It(e,t,n){(e===Te&&(Se===2||Se===9)||e.cancelPendingCommit!==null)&&(wo(e,0),Oi(e,se,Zt,!1)),Bl(e,n),((pe&2)===0||e!==Te)&&(e===Te&&((pe&2)===0&&(da|=n),Ge===4&&Oi(e,se,Zt,!1)),Kn(e))}function ab(e,t,n){if((pe&6)!==0)throw Error(A(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Il(e,t),a=i?Dw(e,t):Ss(e,t,!0),o=i;do{if(a===0){zo&&!i&&Oi(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Lw(n)){a=Ss(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=vl;var u=r.current.memoizedState.isDehydrated;if(u&&(wo(r,l).flags|=256),l=Ss(r,l,!1),l!==2&&l!==6){if(Rd&&!u){r.errorRecoveryDisabledLanes|=o,da|=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){wo(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=Zu+300-Ft(),10<a)){if(Oi(i,t,Zt,!Ci),_u(i,0,!0)!==0)break e;qn=t,i.timeoutHandle=Ld(fp.bind(null,i,n,Ut,Cu,wf,t,Zt,da,vo,Ci,o,"Throttled",-0,0),a);break e}fp(i,n,Ut,Cu,wf,t,Zt,da,vo,Ci,o,null,-0,0)}}break}while(!0);Kn(e)}function fp(e,t,n,i,a,o,l,r,u,c,f,p,s,m){e.timeoutHandle=-1;var g=t.subtreeFlags,b=(o&335544064)===o;if(p=null,(b||g&8192||(g&16785408)===16785408)&&(p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bn},Qt=null,Jy(t,o,p),b&&(g=p,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(g.count++,g.waitingForViewTransition=!0,g=Hl.bind(g),b.finished.then(g,g))),g=(o&62914560)===o?Zu-Ft():(o&4194048)===o?tb-Ft():0,g=DE(p,g),g!==null)){qn=o,e.cancelPendingCommit=g(hp.bind(null,e,t,o,n,i,a,l,r,u,c,f,p,null,s,m)),Oi(e,o,l,!c);return}hp(e,t,o,n,i,a,l,r,u,c,f,p)}function Lw(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=tg(e,t),t&=~Ru,t&=~da,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&&ig(e,n,t)}function Fu(){return(pe&6)===0?(Xl(0,!1),!1):!0}function Ad(){if(ue!==null){if(Se===0)var e=ue.return;else e=ue,ai=Na=null,fd(e),uo=null,Rl=0,e=ue;for(;e!==null;)zy(e.alternate,e),e=e.return;ue=null}}function wo(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,$w(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),qn=0,Ad(),Te=e,ue=n=oi(e.current,null),se=t,Se=0,jt=null,Ci=!1,zo=Il(e,t),Rd=!1,vo=Zt=Ru=da=Xi=Ge=0,Ut=vl=null,wf=!1,di=tg(e,t),Bu(),n}function ob(e,t){ee=null,Q.H=wu,t===Oo||t===Yu?(t=Pm(),Se=3):t===id?(t=Pm(),Se=4):Se=t===vd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,ue===null&&(Ge=1,Eu(e,sn(t,e.current)))}function lb(){var e=ht.current;return e===null?!0:(se&4194048)===se?bt===null:(se&62914560)===se||(se&536870912)!==0?e===bt:!1}function rb(){var e=Q.H;return Q.H=wu,e===null?wu:e}function ub(){var e=Q.A;return Q.A=Cw,e}function Ou(){Ge=4,Ci||(se&4194048)!==se&&ht.current!==null||(zo=!0),(Xi&134217727)===0&&(da&134217727)===0||Te===null||Oi(Te,se,Zt,!1)}function Ss(e,t,n){var i=pe;pe|=2;var a=rb(),o=ub();(Te!==e||se!==t)&&(Cu=null,wo(e,t)),t=!1;var l=Ge;e:do try{if(Se!==0&&ue!==null){var r=ue,u=jt;switch(Se){case 8:Ad(),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,io(e,r,u,c),n&&zo){l=0;break e}break;default:c=Se,Se=0,jt=null,io(e,r,u,c)}}zw(),l=Ge;break}catch(f){ob(e,f)}while(!0);return t&&e.shellSuspendCounter++,ai=Na=null,pe=i,Q.H=a,Q.A=o,ue===null&&(Te=null,se=0,Bu()),l}function zw(){for(;ue!==null;)cb(ue)}function Dw(e,t){var n=pe;pe|=2;var i=rb(),a=ub();Te!==e||se!==t?(Cu=null,Au=Ft()+500,wo(e,t)):zo=Il(e,t);e:do try{if(Se!==0&&ue!==null){t=ue;var o=jt;t:switch(Se){case 1:Se=0,jt=null,io(e,t,o,1);break;case 2:case 9:if(km(o)){Se=0,jt=null,dp(t);break}t=function(){Se!==2&&Se!==9||Te!==e||(Se=7),Kn(e)},o.then(t,t);break e;case 3:Se=7;break e;case 4:Se=5;break e;case 7:km(o)?(Se=0,jt=null,dp(t)):(Se=0,jt=null,io(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?Hb(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,io(e,t,o,5);break;case 6:Se=0,jt=null,io(e,t,o,6);break;case 8:Ad(),Ge=6;break e;default:throw Error(A(462))}}Hw();break}catch(f){ob(e,f)}while(!0);return ai=Na=null,Q.H=i,Q.A=a,pe=n,ue!==null?0:(Te=null,se=0,Bu(),Ge)}function Hw(){for(;ue!==null&&!J1();)cb(ue)}function cb(e){var t=Ly(e.alternate,e,di);e.memoizedProps=e.pendingProps,t===null?Ju(e):ue=t}function dp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ep(n,t,t.pendingProps,t.type,void 0,se);break;case 11:t=ep(n,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:fd(t);var i=t;i===ot&&(oe?(mu(i),i.tag===5&&i.stateNode!=null&&(Ce=i.stateNode)):(mu(i),oe=!0));default:zy(n,t),t=ue=Dg(t,di),t=Ly(n,t,di)}e.memoizedProps=e.pendingProps,t===null?Ju(e):ue=t}function io(e,t,n,i){ai=Na=null,fd(t),uo=null,Rl=0;var a=t.return;try{if(ww(e,a,t,n,se)){Ge=1,Eu(e,sn(n,e.current)),ue=null;return}}catch(o){if(a!==null)throw ue=a,o;Ge=1,Eu(e,sn(n,e.current)),ue=null;return}t.flags&32768?(oe||i===1?e=!0:zo||(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))),sb(t,e)):Ju(t)}function Ju(e){var t=e;do{if((t.flags&32768)!==0){sb(t,Ci);return}e=t.return;var n=Nw(t.alternate,t,di);if(n!==null){ue=n;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);Ge===0&&(Ge=5)}function sb(e,t){do{var n=Mw(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);Ge=6,ue=null}function hp(e,t,n,i,a,o,l,r,u,c,f,p){e.cancelPendingCommit=null;do Wu();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),Sa=t,wn=e,qn=n,xf=a,nb=i,_w(e,t,n,l,r,u,p)}}function _w(e,t,n,i,a,o,l){var r=t.lanes|t.childLanes;if(Ef=r,r|=Jf,rS(e,n,r,i,a,o),ho=null,(n&335544064)===n?(mo=cw(e),i=10262):(mo=null,i=10256),(t.subtreeFlags&i)!==0||(t.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,Gw(cu,function(){return Rf(),null})):(e.callbackNode=null,e.callbackPriority=0),Nu=!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{Rw(e,t,n)}finally{pe=o,ge.p=a,Q.T=i}}Ie=1,Nu?fo=oE(l,e.containerInfo,mo,Tf,Nf,kw,Mf,Rf,Uw,null,null):(Tf(),Nf(),Mf())}function Uw(e){if(Ie!==0){var t=wn.onRecoverableError;t(e,{componentStack:null})}}function kw(){Ie===3&&(Ie=0,Zy(Sa,wn),Ie=4)}function Tf(){if(Ie===1){Ie=0;var e=wn,t=Sa,n=qn,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{rl=Mu=!1,Ky(t,e,n),n=Lf;var l=Ng(e.containerInfo),r=n.focusedElem,u=n.selectionRange;if(l!==r&&r&&r.ownerDocument&&Tg(r.ownerDocument.documentElement,r)){if(u!==null&&Ff(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(),g=r.textContent.length,b=Math.min(u.start,g),w=u.end===void 0?b:Math.min(u.end,g);!m.extend&&b>w&&(l=w,w=b,b=l);var h=Cm(r,b),d=Cm(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 y=p.createRange();y.setStart(h.node,h.offset),m.removeAllRanges(),b>w?(m.addRange(y),m.extend(d.node,d.offset)):(y.setEnd(d.node,d.offset),m.addRange(y))}}}}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}}Mo=!!Of,Lf=Of=null}finally{pe=o,ge.p=a,Q.T=i}}e.current=t,Ie=2}}function Nf(){if(Ie===2){Ie=0;var e=wn,t=Sa,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{Gy(e,t.alternate,t)}finally{pe=a,ge.p=i,Q.T=n}}Ie=3}}function Mf(){if(Ie===4||Ie===3){Ie=0;var e=fo;fo=null,W1();var t=wn,n=Sa,i=qn,a=nb,o=(i&335544064)===i?10262:10256;if((n.subtreeFlags&o)!==0||(n.flags&o)!==0?Ie=5:(Ie=0,Sa=wn=null,fb(t,t.pendingLanes)),o=t.pendingLanes,o===0&&(Pi=null),qf(i),n=n.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(Pl,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=ho,l=mo,mo=null,a!==null&&(ho=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);(qn&3)!==0&&Wu(),Kn(t),o=t.pendingLanes,(i&261930)!==0&&(o&42)!==0?t===eu?Sl++:(Sl=0,eu=t):(Sl=0,eu=null),Xl(0,!1)}}function fb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yl(t)))}function Wu(){return fo!==null&&(fo.skipTransition(),fo=null),Tf(),Nf(),Mf(),Rf()}function Rf(){if(Ie!==5)return!1;var e=wn,t=Ef;Ef=0;var n=qf(qn),i=Q.T,a=ge.p;try{ge.p=32>n?32:n,Q.T=null,n=xf,xf=null;var o=wn,l=qn;if(Ie=0,Sa=wn=null,qn=0,(pe&6)!==0)throw Error(A(331));var r=pe;if(pe|=4,$y(o.current),Fy(o,o.current,l,n),pe=r,Xl(0,!1),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(Pl,o)}catch{}return!0}finally{ge.p=a,Q.T=i,fb(e,t)}}function mp(e,t,n){t=sn(n,t),t=lf(e.stateNode,t,2),e=_i(e,t,2),e!==null&&(Bl(e,2),Kn(e))}function Ee(e,t,n){if(e.tag===3)mp(e,e,n);else for(;t!==null;){if(t.tag===3){mp(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=My(2),i=_i(t,n,2),i!==null&&(Ry(n,i,t,e),Bl(i,2),Kn(i));break}}t=t.return}}function ws(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Ow;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)||(Rd=!0,a.add(n),e=Pw.bind(null,e,t,n),t.then(e,e))}function Pw(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&&((Ge===4||Ge===3&&(se&62914560)===se&&300>Ft()-Zu)&&(pe&2)===0?wo(e,0):Ru|=n,vo===se&&(vo=0)),Kn(e)}function db(e,t){t===0&&(t=ng()),e=Ta(e,t),e!==null&&(Bl(e,t),Kn(e))}function Iw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),db(e,n)}function Bw(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),db(e,n)}function Gw(e,t){return Vf(e,t)}var Eo=null,ja=null,Af=!1,Lu=!1,Es=!1,Li=0;function Kn(e){e!==ja&&e.next===null&&(ja===null?Eo=ja=e:ja=ja.next=e),Lu=!0,Af||(Af=!0,Yw())}function Xl(e,t){if(!Es&&Lu){Es=!0;do for(var n=!1,i=Eo;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,pp(i,o))}else o=se,o=_u(i,i===Te?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Il(i,o)||(n=!0,pp(i,o));i=i.next}while(n);Es=!1}}function Vw(){hb()}function hb(){Lu=Af=!1;var e=0;Li!==0&&Ww()&&(e=Li);for(var t=Ft(),n=null,i=Eo;i!==null;){var a=i.next,o=mb(i,t);o===0?(i.next=null,n===null?Eo=a:n.next=a,a===null&&(ja=n)):(n=i,(e!==0||(o&3)!==0)&&(Lu=!0)),i=a}Ie!==0&&Ie!==5||Xl(e,!1),Li!==0&&(Li=0)}function mb(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]=lS(r,t)):u<=t&&(e.expiredLanes|=r),o&=~r}if(t=Te,n=se,n=_u(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&&es(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Il(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&es(i),qf(n)){case 2:case 8:n=$p;break;case 32:n=cu;break;case 268435456:n=eg;break;default:n=cu}return i=pb.bind(null,e),n=Vf(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&es(i),e.callbackPriority=2,e.callbackNode=null,2}function pb(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Wu()&&e.callbackNode!==n)return null;var i=se;return i=_u(e,e===Te?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(ab(e,i,t),mb(e,Ft()),e.callbackNode!=null&&e.callbackNode===n?pb.bind(null,e):null)}function pp(e,t){if(Wu())return null;ab(e,t,!0)}function Yw(){eE(function(){(pe&6)!==0?Vf(Wp,Vw):hb()})}function Cd(){if(Li===0){var e=ga;e===0&&(e=wr,wr<<=1,(wr&261888)===0&&(wr=256)),Li=e}return Li}function gp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Vr(e)}function qw(e,t,n,i,a){if(t==="submit"&&n&&n.stateNode===a){var o=gp((a[Gt]||null).action),l=i.submitter;l&&(t=(t=l[Gt]||null)?gp(t.formAction):l.getAttribute("formAction"),t!==null&&(o=t,l=null));var r=new ku("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);af(n,{pending:!0,data:u,method:a.method,action:o},null,u)}}else typeof o=="function"&&(r.preventDefault(),u=new FormData(a,l),af(n,{pending:!0,data:u,method:a.method,action:o},o,u))},currentTarget:a}]})}}for(Ur=0;Ur<Xs.length;Ur++)kr=Xs[Ur],yp=kr.toLowerCase(),bp=kr[0].toUpperCase()+kr.slice(1),En(yp,"on"+bp);var kr,yp,bp,Ur;En(Rg,"onAnimationEnd");En(Ag,"onAnimationIteration");En(Cg,"onAnimationStart");En("dblclick","onDoubleClick");En("focusin","onFocus");En("focusout","onBlur");En(tw,"onTransitionRun");En(nw,"onTransitionStart");En(iw,"onTransitionCancel");En(Og,"onTransitionEnd");go("onMouseEnter",["mouseout","mouseover"]);go("onMouseLeave",["mouseout","mouseover"]);go("onPointerEnter",["pointerout","pointerover"]);go("onPointerLeave",["pointerout","pointerover"]);Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ol="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(" "),jw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ol));function gb(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){fu(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){fu(f)}a.currentTarget=null,o=u}}}}function re(e,t){var n=t[dm];n===void 0&&(n=t[dm]=new Set);var i=e+"__bubble";n.has(i)||(yb(t,e,2,!1),n.add(i))}function xs(e,t,n){var i=0;t&&(i|=4),yb(n,e,i,t)}var Pr="_reactListening"+Math.random().toString(36).slice(2);function Od(e){if(!e[Pr]){e[Pr]=!0,ug.forEach(function(n){n!=="selectionchange"&&(jw.has(n)||xs(n,!1,e),xs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pr]||(t[Pr]=!0,xs("selectionchange",!1,t))}}function yb(e,t,n,i){switch(Gb(t)){case 2:var a=kE;break;case 8:a=PE;break;default:a=kd}n=a.bind(null,t,n,e),a=void 0,!Vs||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 Ts(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=la(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}gg(function(){var c=o,f=Xf(n),p=[];e:{var s=Lg.get(e);if(s!==void 0){var m=ku,g=e;switch(e){case"keypress":if(qr(n)===0)break e;case"keydown":case"keyup":m=LS;break;case"focusin":g="focus",m=ls;break;case"focusout":g="blur",m=ls;break;case"beforeblur":case"afterblur":m=ls;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=Sm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=vS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=US;break;case Rg:case Ag:case Cg:m=ES;break;case Og:m=PS;break;case"scroll":case"scrollend":m=yS;break;case"wheel":m=BS;break;case"copy":case"cut":case"paste":m=TS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Em;break;case"submit":m=HS;break;case"toggle":case"beforetoggle":m=VS}var b=(t&4)!==0,w=!b&&(e==="scroll"||e==="scrollend"),h=b?s!==null?s+"Capture":null:s;b=[];for(var d=c,y;d!==null;){var S=d;if(y=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||y===null||h===null||(S=El(d,h),S!=null&&b.push(Ll(d,S,y))),w)break;d=d.return}0<b.length&&(s=new m(s,g,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!==Gs&&(g=n.relatedTarget||n.fromElement)&&(la(g)||g[Ao]))break e;(s||m)&&(g=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,s?(m=n.relatedTarget||n.toElement,s=c,m=m?la(m):null,m!==null&&(w=kl(m),b=m.tag,m!==w||b!==5&&b!==27&&b!==6)&&(m=null)):(s=null,m=c),s!==m&&(b=Sm,S="onMouseLeave",h="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(b=Em,S="onPointerLeave",h="onPointerEnter",d="pointer"),w=s==null?g:ol(s),y=m==null?g:ol(m),g=new b(S,d+"leave",s,n,f),g.target=w,g.relatedTarget=y,S=null,la(f)===c&&(b=new b(h,d+"enter",m,n,f),b.target=y,b.relatedTarget=w,S=b),w=S,b=s&&m?Cs(s,m,Xw):null,s!==null&&vp(p,g,s,b,!1),m!==null&&w!==null&&vp(p,w,m,b,!0)))}e:{if(s=c?ol(c):window,m=s.nodeName&&s.nodeName.toLowerCase(),m==="select"||m==="input"&&s.type==="file")var x=Mm;else if(Nm(s))if(Eg)x=WS;else{x=FS;var N=ZS}else m=s.nodeName,!m||m.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&jf(c.elementType)&&(x=Mm):x=JS;if(x&&(x=x(e,c))){wg(p,x,n,f);break e}N&&N(e,s,c)}switch(N=c?ol(c):window,e){case"focusin":(Nm(N)||N.contentEditable==="true")&&(Ja=N,qs=c,sl=null);break;case"focusout":sl=qs=Ja=null;break;case"mousedown":js=!0;break;case"contextmenu":case"mouseup":case"dragend":js=!1,Om(p,n,f);break;case"selectionchange":if(ew)break;case"keydown":case"keyup":Om(p,n,f)}var E;if(Zf)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 Fa?vg(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(bg&&n.locale!=="ko"&&(Fa||M!=="onCompositionStart"?M==="onCompositionEnd"&&Fa&&(E=yg()):(Ri=f,Kf="value"in Ri?Ri.value:Ri.textContent,Fa=!0)),N=zu(c,M),0<N.length&&(M=new wm(M,e,null,n,f),p.push({event:M,listeners:N}),E?M.data=E:(E=Sg(n),E!==null&&(M.data=E)))),(E=qS?jS(e,n):XS(e,n))&&(M=zu(c,"onBeforeInput"),0<M.length&&(N=new wm("onBeforeInput","beforeinput",null,n,f),p.push({event:N,listeners:M}),N.data=E)),qw(p,e,c,n,f)}gb(p,t)})}function Ll(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zu(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=El(e,n),a!=null&&i.unshift(Ll(e,a,o)),a=El(e,t),a!=null&&i.push(Ll(e,a,o))),e.tag===3)return i;e=e.return}return[]}function Xw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vp(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=El(n,o),c!=null&&l.unshift(Ll(n,c,u))):a||(c=El(n,o),c!=null&&l.push(Ll(n,c,u)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Kw=/\r\n?/g,Qw=/\u0000|\uFFFD/g;function Sp(e){return(typeof e=="string"?e:""+e).replace(Kw,`
766
+ `).replace(Qw,"")}function bb(e,t){return t=Sp(t),Sp(e)===t}function we(e,t,n,i,a,o){switch(n){case"children":if(typeof i=="string")t==="body"||t==="textarea"&&i===""||yo(e,i);else if(typeof i=="number"||typeof i=="bigint")t!=="body"&&yo(e,""+i);else return;break;case"className":Tr(e,"class",i);break;case"tabIndex":Tr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Tr(e,n,i);break;case"style":pg(e,i,o);return;case"data":if(t!=="object"){Tr(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=Vr(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=Vr(i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Bn);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=Vr(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),Gr(e,"popover",i);break;case"xlinkActuate":ti(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ti(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ti(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ti(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ti(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ti(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ti(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ti(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ti(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Gr(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=pS.get(n)||n,Gr(e,n,i);else return}me=!0}function Cf(e,t,n,i,a,o){switch(n){case"style":pg(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")yo(e,i);else if(typeof i=="number"||typeof i=="bigint")yo(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=Bn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!cg.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[Gt]||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,""):Gr(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)}}dg(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?oo(e,!!i,t,!1):n!=null&&oo(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)}mg(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<Ol.length;i++)re(Ol[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(jf(t)){for(f in n)n.hasOwnProperty(f)&&(i=n[f],i!==void 0&&Cf(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 Fw(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)}}Bs(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?oo(e,!!n,s,!1):!!i!=!!n&&(t!=null?oo(e,!!n,t,!0):oo(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)}hg(e,s,m);return;case"option":for(var g in n)if(s=n[g],n.hasOwnProperty(g)&&s!=null&&!i.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:we(e,t,g,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(jf(t)){for(var w in n)s=n[w],n.hasOwnProperty(w)&&s!==void 0&&!i.hasOwnProperty(w)&&Cf(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||Cf(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 wp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jw(){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&&wp(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&&wp(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 Of=null,Lf=null;function zl(e){return e.nodeType===9?e:e.ownerDocument}function Ep(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 vb(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 Sb(e,t,n,i){return n=zl(n).createElement(e),n[ut]=i,n[Gt]=t,dt(n,e,t),at(n),n}function zf(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 Ns=null;function Ww(){var e=window.event;return e&&e.type==="popstate"?e===Ns?!1:(Ns=e,!0):(Ns=null,!1)}var Ld=typeof setTimeout=="function"?setTimeout:void 0,$w=typeof clearTimeout=="function"?clearTimeout:void 0,xp=typeof Promise=="function"?Promise:void 0,Tp=typeof requestAnimationFrame=="function"?requestAnimationFrame:Ld,eE=typeof queueMicrotask=="function"?queueMicrotask:typeof xp<"u"?function(e){return xp.resolve(null).then(e).catch(tE)}:Ld;function tE(e){setTimeout(function(){throw e})}function Qi(e){return e==="head"}function Np(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),Ro(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Rs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Rs(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"&&Rs(e.ownerDocument.body);n=a}while(n);Ro(t)}function Mp(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 wb(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 Eb(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 xb(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 Df(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return xb(t,n,e)}function nE(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return xb(t,n,e)}function iE(e){return e.documentElement.clientHeight}function aE(e){this.addEventListener("load",e),this.addEventListener("error",e)}function oE(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,g=c.fonts.status;i();var b=[];if(g==="loaded"&&(iE(c),c.fonts.status==="loading"&&b.push(c.fonts.ready)),g=b.length,e!==null)for(var w=e.suspenseyImages,h=0,d=0;d<w.length;d++){var y=w[d];if(!y.complete){var S=y.getBoundingClientRect();if(0<S.bottom&&0<S.right&&S.top<s.innerHeight&&S.left<s.innerWidth){if(h+=_b(y),h>iu){b.length=g;break}y=new Promise(aE.bind(y)),b.push(y)}}}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 g=s[m],b=g.effect,w=b.pseudoElement;if(w!=null&&w.startsWith("::view-transition")){p.push(g),g=b.getKeyframes();for(var h=w=void 0,d=!0,y=0;y<g.length;y++){var S=g[y],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(g),d=getComputedStyle(b.target,b.pseudoElement),d.width!==w||d.height!==h)&&(d=g[0],d.width=w,d.height=h,d=g[g.length-1],d.width=w,d.height=h,b.setKeyframes(g))}}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 ra(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}ra.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Ne({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};ra.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};ra.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Tb(e){return{name:e,group:new ra("group",e),imagePair:new ra("image-pair",e),old:new ra("old",e),new:new ra("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(Nb(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=xo(n),o.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:r,cleanup:a}),Bt(this._fragmentFiber.child,!1,lE,e,r,i)}this._eventListeners=o}};function lE(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=Nb(i,e,t,n),t!==-1)){var a=i[t];n=a.attachedListener;var o=a.cleanup;a=xo(a.optionsOrUseCapture),Bt(this._fragmentFiber.child,!1,rE,e,n,a),i.splice(t,1),o!==null&&o()}};function rE(e,t,n,i){return Fe(e).removeEventListener(t,n,i),!1}function xo(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Rp(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Nb(e,t,n,i){if(e.length===0)return-1;i=Rp(i);for(var a=0;a<e.length;a++){var o=e[a];if(o.type===t&&o.listener===n&&Rp(o.optionsOrUseCapture)===i)return a}return-1}tn.prototype.dispatchEvent=function(e){var t=wa(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,xo(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,xo(o.optionsOrUseCapture));return t.removeChild(i),e}return t.dispatchEvent(e)};tn.prototype.focus=function(e){Bt(this._fragmentFiber.child,!0,Mb,e,void 0,void 0)};function Mb(e,t){return e.tag===6?!1:(e=Fe(e),vE(e,t))}tn.prototype.focusLast=function(e){var t=[];Bt(this._fragmentFiber.child,!0,zd,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Mb(t[n],e);n--);};function zd(e,t){return t.push(e),!1}tn.prototype.blur=function(){var e=wa(this._fragmentFiber);e!==null&&(e=Fe(e),e=zl(e).activeElement,e!==null&&Bt(this._fragmentFiber.child,!1,uE,e,void 0,void 0))};function uE(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),Bt(this._fragmentFiber.child,!1,cE,e,void 0,void 0)};function cE(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),Bt(this._fragmentFiber.child,!1,sE,e,void 0,void 0);for(var n=t=0;n<Sn.length;n++){var i=Sn[n];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):Sn[t++]=i}Sn.length=t}};function sE(e,t){return e.tag===6||(e=Fe(e),t.unobserve(e)),!1}var Sn=[],Ms=!1;function fE(e,t,n){Sn.push({fragmentInstance:e,observer:t,instance:n}),Ms||(Ms=!0,SE(function(){Ms=!1;var i=Sn;Sn=[];for(var a=0;a<i.length;a++){var o=i[a];o.observer.unobserve(o.instance)}}))}tn.prototype.getClientRects=function(){var e=[];return Bt(this._fragmentFiber.child,!1,dE,e,void 0,void 0),e};function dE(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=wa(this._fragmentFiber);return t===null?this:Fe(t).getRootNode(e)};tn.prototype.compareDocumentPosition=function(e){var t=wa(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Bt(this._fragmentFiber.child,!1,zd,n,void 0,void 0);var i=Fe(t);if(n.length===0){if(n=i,lm(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=Qp(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=lm(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||hE(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function hE(e,t,n,i,a){var o=la(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=wa(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=Cs(n,o,rm),t===null?t=!1:(Bt(t,!0,Y1,o,n),o=Xa,Xa=null,t=o!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!o)&&!(t=o===i)&&(t=Cs(i,o,rm),t===null?t=!1:(Bt(t,!0,q1,o,i),o=Xa,As=Xa=null,t=o!==null)),t):!1}function Ap(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=[];Bt(this._fragmentFiber.child,!1,zd,t,void 0,void 0);var n=e!==!1;if(t.length===0){var i=Qp(this._fragmentFiber);if(i=n?i[1]||i[0]||wa(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=Fe(i),Ap(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),Ap(a,n)):Fe(a).scrollIntoView(e),i+=n?-1:1}};function mE(e,t){return e=Fe(e),Rb(e,t),!1}function Rb(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Ab(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,xo(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){for(var l=0,r=0;r<Sn.length;r++){var u=Sn[r];(u.fragmentInstance!==t||u.observer!==o||u.instance!==e)&&(Sn[l++]=u)}Sn.length=l,o.observe(e)}),Rb(e,t))}function pE(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,xo(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){typeof o.rootMargin=="string"?fE(t,o,e):o.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Hf(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":Hf(n),Uu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function gE(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 yE(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 Cb(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 _f(e){return e.data==="$?"||e.data==="$~"}function Dd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function bE(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 Uf=null;function Cp(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 Op(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 vE(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 SE(e){Tp(function(){Tp(function(t){return e(t)})})}function Ob(e,t,n){switch(t=zl(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 Lb(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===Bn&&(e.onclick=null),Uu(e)}function Rs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Uu(e)}var hn=new Map,Lp=new Set;function Dl(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 pi=ge.d;ge.d={f:wE,r:EE,D:xE,C:TE,L:NE,m:ME,X:AE,S:RE,M:CE};function wE(){var e=pi.f(),t=Fu();return e||t}function EE(e){var t=Co(e);t!==null&&t.tag===5&&t.type==="form"?py(t):pi.r(e)}var Do=typeof document>"u"?null:document;function zb(e,t,n){var i=Do;if(i&&typeof t=="string"&&t){var a=cn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Lp.has(a)||(Lp.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 xE(e){pi.D(e),zb("dns-prefetch",e,null)}function TE(e,t){pi.C(e,t),zb("preconnect",e,t)}function NE(e,t,n){pi.L(e,t,n);var i=Do;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=To(e);break;case"script":o=Ho(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(Kl(o))||t==="script"&&i.querySelector(Ql(o))))){var l=i.createElement("link");dt(l,"link",e),t==="style"&&(l[su]=!0,l.onload=l.onerror=function(){rg(l)}),at(l),i.head.appendChild(l)}}}function ME(e,t){pi.m(e,t);var n=Do;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=Ho(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(Ql(o)))return}i=n.createElement("link"),dt(i,"link",e),at(i),n.head.appendChild(i)}}}function RE(e,t,n){pi.S(e,t,n);var i=Do;if(i&&e){var a=ao(i).hoistableStyles,o=To(e);t=t||"default";var l=a.get(o);if(!l){var r={loading:0,preload:null};if(l=i.querySelector(Kl(o)))r.loading=5;else{e=Ne({rel:"stylesheet",href:e,"data-precedence":t},n),(n=hn.get(o))&&Hd(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,tu(l,t,i)}l={type:"stylesheet",instance:l,count:1,state:r},a.set(o,l)}}}function AE(e,t){pi.X(e,t);var n=Do;if(n&&e){var i=ao(n).hoistableScripts,a=Ho(e),o=i.get(a);o||(o=n.querySelector(Ql(a)),o||(e=Ne({src:e,async:!0},t),(t=hn.get(a))&&_d(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 CE(e,t){pi.M(e,t);var n=Do;if(n&&e){var i=ao(n).hoistableScripts,a=Ho(e),o=i.get(a);o||(o=n.querySelector(Ql(a)),o||(e=Ne({src:e,async:!0,type:"module"},t),(t=hn.get(a))&&_d(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 zp(e,t,n,i){var a=(a=zi.current)?Dl(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=To(n.href),t=ao(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=To(n.href);var o=ao(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(Kl(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)),OE(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=Ho(n),t=ao(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 To(e){return'href="'+cn(e)+'"'}function Kl(e){return'link[rel="stylesheet"]['+e+"]"}function Db(e){return Ne({},e,{"data-precedence":e.precedence,precedence:null})}function OE(e,t,n,i){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[su]!==!0){i.loading=1;return}}else t=e.createElement("link"),t[su]=!0,t.onload=t.onerror=rg.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 Ho(e){return'[src="'+cn(e)+'"]'}function Ql(e){return"script[async]"+e}function Dp(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),tu(i,n.precedence,e),t.instance=i;case"stylesheet":a=To(n.href);var o=e.querySelector(Kl(a));if(o)return t.state.loading|=4,t.instance=o,at(o),o;i=Db(n),(a=hn.get(a))&&Hd(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,tu(o,n.precedence,e),t.instance=o;case"script":return o=Ho(n.src),(a=e.querySelector(Ql(o)))?(t.instance=a,at(a),a):(i=n,(a=hn.get(o))&&(i=Ne({},n),_d(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,tu(i,n.precedence,e));return t.instance}function tu(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 Hd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function _d(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var nu=null;function Hp(e,t,n){if(nu===null){var i=new Map,a=nu=new Map;a.set(n,i)}else a=nu,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 kf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function LE(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 _p(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Hb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function _b(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Up(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=_b(t),e.suspenseyImages.push(t)),e=HE.bind(e),t.decode().then(e,e))}function zE(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=To(i.href),o=t.querySelector(Kl(a));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Hl.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,at(o);return}o=t.ownerDocument||t,i=Db(i),(a=hn.get(a))&&Hd(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=Hl.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var iu=0;function DE(e,t){return e.stylesheets&&e.count===0&&au(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&au(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&iu===0&&(iu=62500*Jw());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&au(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>iu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(a)}}:null}function Ub(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)au(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Hl(){this.count--,Ub(this)}function HE(){this.imgCount--,Ub(this)}var Du=null;function au(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Du=new Map,t.forEach(_E,e),Du=null,Hl.call(e))}function _E(e,t){if(!(t.state.loading&4)){var n=Du.get(e);if(n)var i=n.get(null);else{n=new Map,Du.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=Hl.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 No={$$typeof:In,Provider:null,Consumer:null,_currentValue:ua,_currentValue2:ua,_threadCount:0};function UE(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=ts(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ts(0),this.hiddenUpdates=ts(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 kb(e,t,n,i,a,o,l,r,u,c,f,p){return e=new UE(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=td(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:n,cache:t},ad(o),e}function Pb(e){return e?(e=eo,e):eo}function Ib(e,t,n,i,a,o){a=Pb(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),dl(n,e,t))}function kp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ud(e,t){kp(e,t),(e=e.alternate)&&kp(e,t)}function Bb(e){if(e.tag===13||e.tag===31){var t=Ta(e,67108864);t!==null&&It(t,e,67108864),Ud(e,67108864)}}function Pp(e){if(e.tag===13||e.tag===31){var t=$t();t=Yf(t);var n=Ta(e,t);n!==null&&It(n,e,t),Ud(e,t)}}var Mo=!0;function kE(e,t,n,i){var a=Q.T;Q.T=null;var o=ge.p;try{ge.p=2,kd(e,t,n,i)}finally{ge.p=o,Q.T=a}}function PE(e,t,n,i){var a=Q.T;Q.T=null;var o=ge.p;try{ge.p=8,kd(e,t,n,i)}finally{ge.p=o,Q.T=a}}function kd(e,t,n,i){if(Mo){var a=Pf(i);if(a===null)Ts(e,t,i,Hu,n),Ip(e,i);else if(BE(a,e,t,n,i))i.stopPropagation();else if(Ip(e,i),t&4&&-1<IE.indexOf(e)){for(;a!==null;){var o=Co(a);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var l=ia(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}Kn(o),(pe&6)===0&&(Au=Ft()+500,Xl(0,!1))}}break;case 31:case 13:r=Ta(o,2),r!==null&&It(r,o,2),Fu(),Ud(o,2)}if(o=Pf(i),o===null&&Ts(e,t,i,Hu,n),o===a)break;a=o}a!==null&&i.stopPropagation()}else Ts(e,t,i,null,n)}}function Pf(e){return e=Xf(e),Pd(e)}var Hu=null;function Pd(e){if(Hu=null,e=la(e),e!==null){var t=kl(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=jp(t),e!==null)return e;e=null}else if(n===31){if(e=Xp(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 Hu=e,null}function Gb(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($1()){case Wp:return 2;case $p:return 8;case cu:case eS:return 32;case eg:return 268435456;default:return 32}default:return 32}}var If=!1,Ii=null,Bi=null,Gi=null,_l=new Map,Ul=new Map,Ni=[],IE="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 Ip(e,t){switch(e){case"focusin":case"focusout":Ii=null;break;case"dragenter":case"dragleave":Bi=null;break;case"mouseover":case"mouseout":Gi=null;break;case"pointerover":case"pointerout":_l.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ul.delete(t.pointerId)}}function tl(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=Co(t),t!==null&&Bb(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function BE(e,t,n,i,a){switch(t){case"focusin":return Ii=tl(Ii,e,t,n,i,a),!0;case"dragenter":return Bi=tl(Bi,e,t,n,i,a),!0;case"mouseover":return Gi=tl(Gi,e,t,n,i,a),!0;case"pointerover":var o=a.pointerId;return _l.set(o,tl(_l.get(o)||null,e,t,n,i,a)),!0;case"gotpointercapture":return o=a.pointerId,Ul.set(o,tl(Ul.get(o)||null,e,t,n,i,a)),!0}return!1}function Vb(e){var t=la(e.target);if(t!==null){var n=kl(t);if(n!==null){if(t=n.tag,t===13){if(t=jp(n),t!==null){e.blockedOn=t,fm(e.priority,function(){Pp(n)});return}}else if(t===31){if(t=Xp(n),t!==null){e.blockedOn=t,fm(e.priority,function(){Pp(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 ou(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pf(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Gs=i,n.target.dispatchEvent(i),Gs=null}else return t=Co(n),t!==null&&Bb(t),e.blockedOn=n,!1;t.shift()}return!0}function Bp(e,t,n){ou(e)&&n.delete(t)}function GE(){If=!1,Ii!==null&&ou(Ii)&&(Ii=null),Bi!==null&&ou(Bi)&&(Bi=null),Gi!==null&&ou(Gi)&&(Gi=null),_l.forEach(Bp),Ul.forEach(Bp)}function Ir(e,t){e.blockedOn===t&&(e.blockedOn=null,If||(If=!0,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,GE)))}var Br=null;function Gp(e){Br!==e&&(Br=e,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,function(){Br===e&&(Br=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(Pd(i||n)===null)continue;break}var o=Co(n);o!==null&&(e.splice(t,3),t-=3,af(o,{pending:!0,data:a,method:n.method,action:i},i,a))}}))}function Ro(e){function t(u){return Ir(u,e)}Ii!==null&&Ir(Ii,e),Bi!==null&&Ir(Bi,e),Gi!==null&&Ir(Gi,e),_l.forEach(t),Ul.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);)Vb(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[Gt]||null;if(typeof o=="function")l||Gp(n);else if(l){var r=null;if(o&&o.hasAttribute("formAction")){if(a=o,l=o[Gt]||null)r=l.formAction;else if(Pd(a)!==null)continue}else r=l.action;typeof r=="function"?n[i+1]=r:(n.splice(i,3),i-=3),Gp(n)}}}function Yb(){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 Id(e){this._internalRoot=e}$u.prototype.render=Id.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));var n=t.current,i=$t();Ib(n,i,e,t,null,null)};$u.prototype.unmount=Id.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ib(e.current,2,null,e,null,null),Fu(),t[Ao]=null}};function $u(e){this._internalRoot=e}$u.prototype.unstable_scheduleHydration=function(e){if(e){var t=lg();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&&Vb(e)}};var Vp=Yp.version;if(Vp!=="19.3.0")throw Error(A(527,Vp,"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=V1(t),e=e!==null?Kp(e):null,e=e===null?null:e.stateNode,e};var VE={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(nl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!nl.isDisabled&&nl.supportsFiber))try{Pl=nl.inject(VE),Jt=nl}catch{}var nl;ec.createRoot=function(e,t){if(!qp(e))throw Error(A(299));var n=!1,i="",a=xy,o=Ty,l=Ny;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=kb(e,1,!1,null,null,n,i,null,a,o,l,Yb),e[Ao]=t.current,Od(e),new Id(t)};ec.hydrateRoot=function(e,t,n){if(!qp(e))throw Error(A(299));var i=!1,a="",o=xy,l=Ty,r=Ny,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=kb(e,1,!0,t,n??null,i,a,u,o,l,r,Yb),t.context=Pb(null),n=t.current,i=$t(),i=Yf(i),a=Hi(i),a.callback=null,_i(n,a,i),n=i,t.current.lanes=n,Bl(t,n),Kn(t),e[Ao]=t.current,Od(e),new $u(t)};ec.version="19.3.0"});var Kb=Ln((IT,Xb)=>{"use strict";T();function jb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(jb)}catch(e){console.error(e)}}jb(),Xb.exports=qb()});var iv=Ln(rc=>{"use strict";T();var qE=Symbol.for("react.transitional.element"),jE=Symbol.for("react.fragment");function nv(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:qE,type:e,key:i,ref:t!==void 0?t:null,props:n}}rc.Fragment=jE;rc.jsx=nv;rc.jsxs=nv});var ye=Ln((SN,av)=>{"use strict";T();av.exports=iv()});T();T();T();T();var a1=["path","circle","ellipse","line","polyline","polygon","rect","g"],o1={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-]+$/},l1=["x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","width","height"],Sh=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,wh=1024;function Oc(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function vh(e){let t=Oc(e),n={};for(let[i,a]of Object.entries(o1)){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 l1){let a=t[i];typeof a=="string"&&a.length<=32&&Sh.test(a)&&Math.abs(Number(a))<=1e5&&(n[i]=a)}return n}function Eh(e){let{viewBox:t,attrs:n,shapes:i}=Oc(e);if(typeof t!="string"||t.length>100)return;let a=t.trim().split(/[\s,]+/);if(a.length!==4||!a.every(u=>Sh.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:g}=Oc(p),b=a1.find(w=>w===s);b&&f.push({tag:b,attrs:vh(m),shapes:b==="g"?l(g,c+1):[]})}return f}let r=l(i,0);return r.length?{viewBox:a.join(" "),attrs:vh(n),shapes:r}:void 0}var sr=1e4,r1=25e4,u1=256*1024*1024,zc=24*1024*1024,fr="data/search.json",dr="theme/publication.css",hr=48*1024,Dc=["parent","child","left","right","previous","next"],c1=["document","drawing","attachment","folder","tag","url"],s1=/^(?: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)$/,f1=/^[a-f0-9]{64}$/,xh=["none","arrow","triangle","bar","dot"],d1=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,h1=/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/;function Hc(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 $n(e){return typeof e=="string"&&h1.test(e)}function _c(e){if(!$n(e))throw new Error("Invalid public note ID");return`notes/${e}.html`}function _a(e){return typeof e=="string"&&e.length<=180&&s1.test(e)}function m1(e){return _a(e)&&(e.startsWith("notes/")||e.startsWith("assets/")||e===fr||e===dr)}function Nh(e){if(!m1(e))throw new Error("Invalid offline publication resource");return`local/${e}.css`}function gn(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Invalid publication record");return e}function ea(e,t){return typeof e=="string"&&e.length<=t&&e.trim().length>0&&!/\p{Cc}/u.test(e)}function zn(e,t,n){return typeof e=="number"&&Number.isFinite(e)&&e>=t&&e<=n}function Mh(e,t){return zn(e,0,t-1)&&Number.isInteger(e)}function cr(e,t){let n=gn(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&&!zn(a,6,96))throw new Error("Invalid publication font size");if(o!==void 0&&!zn(o,0,40))throw new Error("Invalid publication gate radius");if(l!=null&&!Mh(l,t))throw new Error("Invalid publication icon reference");return{...i,fontSize:a,gateRadius:o,...l===void 0?{}:{icon:l}}}function p1(e,t){let{center:n,sibling:i,inferred:a}=gn(e);return{center:n===void 0?void 0:cr(n,t),sibling:i===void 0?void 0:cr(i,t),inferred:a===void 0?void 0:cr(a,t)}}function g1(e){let{stroke:t,width:n,arrowStart:i,arrowEnd:a,startHead:o,endHead:l,labelColor:r,labelSize:u}=gn(e);if(t!==void 0&&(typeof t!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(t))||n!==void 0&&!zn(n,.25,20)||i!==void 0&&typeof i!="boolean"||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication link style");let c=xh.find(p=>p===o),f=xh.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&&!zn(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 y1(e){let t=gn(e),n={};if(t.maximum!==void 0){if(!zn(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=gn(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(!zn(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}=gn(t.typography);if(i!==void 0&&!zn(i,6,48)||o!==void 0&&!zn(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 b1(e){let t=Object.entries(gn(e));if(t.length>64)throw new Error("Too many publication properties");let n=new Map;for(let[i,a]of t){if(!ea(i,192)||["__proto__","constructor","prototype"].includes(i))throw new Error("Invalid publication property name");if(ea(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=>ea(o,1e3)))n.set(i,[...a]);else throw new Error("Invalid publication property value")}return Object.fromEntries(n)}function Rh(e){let t=gn(e);if(t.version!==2||typeof t.runtimeVersion!="string"||!d1.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(!$n(t.id)||!$n(t.entry)||!ea(t.title,240)||typeof t.fullText!="boolean"||!Array.isArray(t.nodes)||!t.nodes.length||t.nodes.length>sr||!Array.isArray(t.relations)||t.relations.length>r1||!Array.isArray(t.resources)||t.resources.length>sr*4)throw new Error("Invalid publication manifest");let i=0,a=new Set,o=t.resources.map(g=>{let{path:b,bytes:w,sha256:h}=gn(g);if(!_a(b)||a.has(b)||!zn(w,0,32*1024*1024)||!Number.isInteger(w)||typeof h!="string"||!f1.test(h))throw new Error("Invalid publication resource");if(a.add(b),i+=w,i>u1)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>wh)throw new Error("Invalid publication icons");l=t.icons.map(g=>{let b=Eh(g);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(g=>{let b=gn(g),{id:w,title:h,aliases:d,asset:y,url:S,trailIcon:x}=b,N=c1.find(E=>E===b.kind);if(!$n(w)||u.has(w)||!ea(h,512)||!N)throw new Error("Invalid publication node");if(u.add(w),N==="document"||N==="drawing"){let E=_c(w);if(!a.has(E))throw new Error("Missing publication note resource");c.add(E)}if(y!==void 0&&(typeof y!="string"||!y.startsWith("assets/")||!a.has(y)))throw new Error("Missing publication asset");if(S!==void 0&&(N!=="url"||!Hc(S)))throw new Error("Invalid publication web link");if(x!==void 0&&!Mh(x,r))throw new Error("Invalid publication trail icon");if(d!==void 0&&(!Array.isArray(d)||d.length>64||!d.every(E=>ea(E,512))))throw new Error("Invalid publication aliases");return{id:w,title:h,kind:N,...d===void 0?{}:{aliases:[...d]},...y===void 0?{}:{asset:y},...S===void 0?{}:{url:S},...x===void 0?{}:{trailIcon:x},...b.style===void 0?{}:{style:cr(b.style,r)},...b.roleStyles===void 0?{}:{roleStyles:p1(b.roleStyles,r)},...b.properties===void 0?{}:{properties:b1(b.properties)}}});if(!u.has(t.entry)||[...a].some(g=>g.startsWith("notes/")&&!c.has(g))||t.fullText!==a.has(fr))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 g=t.pins;if(new Set(g).size!==g.length||!g.every(b=>typeof b=="string"&&u.has(b)))throw new Error("Invalid publication pins");p=g.slice()}let s=new Set,m=t.relations.map(g=>{let{source:b,target:w,relationType:h,direction:d,definition:y,role:S,style:x}=gn(g),N=Dc.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||y!==void 0&&!ea(y,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,...y===void 0?{}:{definition:y},...x===void 0?{}:{style:g1(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:y1(t.appearance)}}}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 j0=K(Kb(),1);T();var te=K(tt(),1);T();var xn=e=>e;T();var Zl={key:"F4"};T();T();T();function Qb(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},tc={min:.1,max:4,step:.05};function _o(e,t,n){return{defaultValue:e,validate:i=>typeof i=="number"&&Number.isInteger(i)&&i>=t&&i<=n}}var nc={version:1,fields:{arrangement:{defaultValue:"right",validate:e=>e==="balanced"||e==="left"||e==="right"},horizontalSpacing:_o(96,40,240),verticalSpacing:_o(24,12,80),parentColumns:_o(2,1,3),initialGenerations:_o(1,1,3),horizontalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=tc.min&&e<=tc.max},verticalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=tc.min&&e<=tc.max},maximumDepth:_o(10,1,mt.depth),maximumOccurrences:_o(500,16,mt.occurrences)}};function ic(e){if(e?.status==="unavailable")return null;let t=e?.values??{},n=a=>Object.prototype.hasOwnProperty.call(t,a)?t[a]:nc.fields[a].defaultValue;for(let[a,o]of Object.entries(nc.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 Bd={version:1,scope:null,initialGenerations:null,expanded:[],collapsed:[],sides:{}},ac={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{...Bd,expanded:[],collapsed:[],sides:{}};let t=Qb(e);if(!t||typeof t!="object"||Array.isArray(t)||Reflect.get(t,"version")!==1)return ac;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 ac;let r=[];for(let[c,f]of Object.entries(l)){let p=f;if(!Ma(c)||p!==-1&&p!==1)return ac;r.push([c,p])}r.sort(([c],[f])=>c<f?-1:c>f?1:0);let u={...t,version:1,scope:n===null?null:xn(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:ac}function Zb(e,t,n){return e.scope===t?e:{...e,scope:t,initialGenerations:n,expanded:[],collapsed:[],sides:{}}}function Fl(e){let t=Zi(e);return t.version===1?t:null}function oc(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 Fl({...a,expanded:[...o],collapsed:[...l]})}T();var lc=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 Fb(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 Gd={min:8,max:20,step:1,default:12};function Vd(e){return typeof e=="number"&&Number.isFinite(e)?Math.max(Gd.min,Math.min(Gd.max,e)):Gd.default}var Jl=(e,t,n)=>Math.max(t,Math.min(n,e));function Jb(e){return Math.max(5,(e.gateRadius??5)*1.05)}function Yd(e=30,t=!1){let n=Math.round(Math.max(8,e));return Math.max(t?18:8,n+(t?8:0))}function Wl(e,t,n=12.4){return(t?Jl(e*.72,13,24):Jl(e*.62,10,16))*Jl(Number.isFinite(n)?n:12.4,8,28)/12.4}function YE(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 Wb(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 $b(e,t){return e.reduce((n,i)=>Math.max(n,32+YE(i,t)),0)}function ev(e,t,n,i=!1,a=30,o,l=1,r=[]){let u=(n.baseFontSize??12.4)/12.4,c=Math.min(e.length,Yd(a,i)),f=i?180:112,s=Math.max(f,o??(i?370:286)),m=i?Wl(t,!0,n.baseFontSize)*.55:t*u*.29,g=Jl(70+c*Math.max(4.8,m),f,s),b=(i?16:8)+2*Math.max(0,l),w=Wl(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),y=n.wrapNodeLabels?Math.max(h,d):h,S=Vd(n.propertyFontSize),x=$b(r,S);return{width:r.length?Jl(Math.max(g,x),f,s):g,height:y+Wb(r,S)}}function tv(e,t,n,i,a=1,o=[]){if(t===1)return e;let l=Vd(i.propertyFontSize),r=$b(o,l),u=Wl(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))+Wb(o,l))}}var Ye=K(ye(),1);function ov({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 lv({label:e,maximum:t,center:n}){let i=Yd(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 rv({wrap:e,children:t}){return(0,Ye.jsx)("span",{className:`kplex-thought-label${e?" is-two-line":""}`,children:t})}function uv({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 cv(e){return(0,Ye.jsx)("path",{className:"kplex-edge-visible",fill:"none",vectorEffect:"non-scaling-stroke",...e})}function sv({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 qd(e,t="kplex"){if(!(!e||e==="none"))return`url(#${t}-${e==="triangle"||e==="dot"||e==="bar"?e:"arrow"})`}function fv({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 dv={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous"};function $l(e,t){let n=t.toLowerCase(),i=e.nodes.get(n);return i?[i.id]:e.shortIds.get(n)??[]}function hv(e,t){if(!e.manifest)return;let n=t.slice(0,8),i=$l(e,n);return i.length===1&&i[0]===t?n:void 0}function jd(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}function Uo(e){return typeof e=="string"&&e.trim().length>0}function XE(e){return typeof e=="string"&&Object.getOwnPropertyDescriptor(dv,e)!==void 0}function mv(e){let t=jd(e);if(t?.version===2&&("runtimeVersion"in t||"resources"in t))return KE(Rh(e));if(t?.version!==1)throw new Error("Unsupported publication fixture version");if(!Uo(t.title)||!Uo(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=jd(u);if(!c||!Uo(c.id)||!Uo(c.title)||n.has(c.id)||c.text!==void 0&&typeof c.text!="string")throw new Error("Invalid or duplicate publication node");let f=xn(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=jd(u);if(!c||!Uo(c.source)||!Uo(c.target)||!XE(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=dv[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])),Xd(l,f,p,c.role,1,1,c.label),Xd(l,p,f,s,1,2,c.label)}return{title:t.title,entry:o,read:pv(n,l),nodes:n,shortIds:new Map,manifest:null,published:new Map,body:u=>i.get(u),linkStyle:()=>{}}}function Xd(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 KE(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=xn(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)Xd(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:xn(e.entry),read:pv(t,i),nodes:t,shortIds:a,manifest:e,published:n,body:()=>{},linkStyle:(l,r,u)=>o.get(`${l}/${r}/${u}`)}}function pv(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 gv=["siblings","ontology","crosslinks","sidecar"],Kd={view:["compass","mindmap"],dock:["left","right","bottom"],theme:["system","light","dark"]},yv=["view",...gv,"dock","theme"],Qd={view:"compass",siblings:!0,ontology:!0,crosslinks:!1,sidecar:!0,dock:"right",theme:"system"};function bv(e,t){let n=r=>t?.get(r)??e.get(r),i={},a=Kd.view.find(r=>r===n("view")),o=Kd.dock.find(r=>r===n("dock")),l=Kd.theme.find(r=>r===n("theme"));a&&(i.view=a),o&&(i.dock=o),l&&(i.theme=l);for(let r of gv){let u=n(r);(u==="1"||u==="0")&&(i[r]=u==="1")}return i}function Zd(e,t){for(let n of yv){let i=t?.[n];i===void 0?e.delete(n):e.set(n,typeof i=="boolean"?i?"1":"0":i)}}function Fd(e,t){return yv.every(n=>e?.[n]===t?.[n])}var QE=80;function uc(e,t){return[...e.filter(n=>n.id!==t.id),t].slice(-QE)}function Wd(e){try{let t=decodeURIComponent(e.replace(/^#/,""));return t.length<=200&&!/\p{Cc}/u.test(t)&&t||void 0}catch{return}}function er(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?[]:$l(e,i),o=a.length===1?a[0]:void 0,l=Wd(n?encodeURIComponent(n.get("fragment")??""):t.hash),r=bv(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 $d(e,t,n){let i=new URLSearchParams({node:e});return t&&i.set("fragment",t),Zd(i,n),`#${i}`}function vv(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}=er(n,a);return c?void 0:u}if(e.startsWith("#"))return{id:i,fragment:Wd(a.hash)};if(!(a.searchParams.get("node")??a.searchParams.get("node-id")))return;let{location:l,addressProblem:r}=er(n,a);return r?void 0:l}catch{return}}function ko(e,t,n=t.id){let i=new URL(e);return i.protocol==="file:"?(i.hash=$d(n,t.fragment??"",t.canvas),i):(i.searchParams.delete("node-id"),i.searchParams.set("node",n),Zd(i.searchParams,t.canvas),i.hash=t.fragment?encodeURIComponent(t.fragment):"",i)}function Sv(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:er(n,i)}catch{return}}function Jd(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 wv(e,t,n){let i=(0,Ra.useRef)(n);i.current=n;let a=e.manifest?.id,[o,l]=(0,Ra.useState)(()=>{let g=t?er(e,new URL(t.location.href)):{location:{id:e.entry},addressProblem:void 0},b=t&&a?Jd(t.history.state,a)??{position:0,last:0}:void 0;return{entries:[g.location],index:0,addressProblem:g.addressProblem,browser:b,visits:[g.location]}}),r=o.entries[o.index],u=(0,Ra.useRef)(o.browser?.last??0);(0,Ra.useEffect)(()=>{if(!t||!a)return;let g=t.history,b=h=>{let{location:d,addressProblem:y}=er(e,new URL(t.location.href)),S=Jd(h.state,a),x=S?{...S,last:Math.max(S.position,u.current)}:{position:0,last:0};u.current=x.last,g.replaceState({kplexPublication:a,...x},""),i.current(d.id),l(N=>({entries:[d],index:0,addressProblem:y,browser:x,visits:uc(N.visits,d)}))},w=Jd(g.state,a)??{position:0,last:0};return g.replaceState({kplexPublication:a,...w},""),t.addEventListener("popstate",b),()=>t.removeEventListener("popstate",b)},[t,e,a]);function c(g){let b={...g,canvas:{...r.canvas,...g.canvas}};if(!e.nodes.has(b.id)||!o.addressProblem&&r.id===b.id&&r.fragment===b.fragment&&Fd(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},"",ko(new URL(t.location.href),b)),u.current=h,l({entries:[b],index:0,browser:d,visits:uc(o.visits,b)}),!0}let w=o.index+1;return l({entries:[...o.entries.slice(0,w),b],index:w,visits:uc(o.visits,b)}),!0}function f(g){let b={...r.canvas,...g};if(Fd(r.canvas,b))return;let w={...r,canvas:b};t&&a&&o.browser&&t.history.replaceState(t.history.state,"",ko(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(g){if(g===-1?p:s)if(t&&o.browser)t.history.go(g);else{let b=o.index+g,w=o.entries[b];i.current(w.id),l({...o,index:b,addressProblem:void 0,visits:uc(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 Po=K(tt(),1),Tv=K(vr(),1);T();var ZE="button, input, select, textarea, a[href], [contenteditable='true'], [role='button'], [role='link'], [data-kplex-no-dialog-drag]";function FE(){}function JE(e){return!e||typeof e!="object"||!("closest"in e)?null:e}function WE(e,t){let i=JE(e)?.closest(ZE)??null;return!!(i&&t.contains(i))}function Ev(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 $E(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 xv({modalEl:e,handleEl:t,viewportMargin:n=8,onPositionChange:i}){let a=e.ownerDocument,o=a.defaultView;if(!o||t.ownerDocument!==a)return FE;let l=null,r=!1,u=!1,c=!1,f=o.visualViewport,p=(x,N)=>{let E=e.getBoundingClientRect(),M=$E(o),R=Ev(x,M.left,M.width,E.width,n),O=Ev(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)},g=()=>{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(),g())}let h=x=>{l?.pointerId===x.pointerId&&g()},d=()=>{g()},y=x=>{if(c||l||x.button!==0||WE(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,g(),t.removeEventListener("pointerdown",y),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",y),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 ex(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 cc({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,Po.useState)({}),g=(0,Po.useRef)({insideRoots:o,onDismiss:l,handleEscape:u});g.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,y=n?.x,S=n?.y;return(0,Po.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)){g.current.onDismiss("anchor-hidden");return}let B=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(B?.offsetLeft??0,H?.left??0),k=Math.max(B?.offsetTop??0,H?.top??0),Z=Math.min((B?.offsetLeft??0)+Math.min(E.innerWidth,B?.width??E.innerWidth),H?.right??1/0),fe=Math.min((B?.offsetTop??0)+Math.min(E.innerHeight,B?.height??E.innerHeight),H?.bottom??1/0),he=Math.min(f.viewportMargin,Math.max(0,(Z-J)/2)),nn=y??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=>{ex(P,g.current.insideRoots())||g.current.onDismiss("outside-pointer")},I=P=>{if(P.key!=="Escape"||g.current.handleEscape?.(P)===!1)return;P.preventDefault(),P.stopPropagation(),g.current.onDismiss("escape");let C=t.current;C?.ownerDocument===N&&C.isConnected&&C.focus({preventScroll:!0})},G=E.ResizeObserver,j=G?new G(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?xv({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,y,S,i,a,w,h,f.anchorGap,f.minimumMaxHeight,f.minimumWidth,f.preferredWidth,f.viewportMargin]),d?(0,Tv.createPortal)(p(s),d):null}var Tn=K(ye(),1),tx={preferredWidth:250,minimumWidth:160,viewportMargin:8,anchorGap:5,minimumMaxHeight:55};function Nv({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,g]=Array.from(s.currentTarget.querySelectorAll("[role=menuitem]")),b=s.key==="Home"?m:s.key==="End"||s.target===m?g:m;s.preventDefault(),b?.focus()}return(0,Tn.jsx)(cc,{open:!0,anchorRef:o,panelRef:l,insideRoots:()=>[l.current],dismissWhenAnchorHidden:!0,onDismiss:s=>i(s==="escape"),portalTarget:()=>e.closest(".kplex-publication"),positioning:tx,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),nx={preferredWidth:216,minimumWidth:160,viewportMargin:8,anchorGap:4,minimumMaxHeight:180};function Mv({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 g=m.target,b=g.closest("[role=menu]");if(b){if(m.key==="ArrowRight"&&g.getAttribute("aria-haspopup")==="menu")r?c():g.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(y=>y.closest("[role=menu]")===b),h=w.indexOf(g),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:g,checked:b,select:w},h,d=!1){return(0,Nn.jsxs)("button",{type:"button",role:g,"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)(cc,{open:!0,anchorRef:a,anchorPoint:t,panelRef:o,insideRoots:()=>[o.current,e],dismissWhenAnchorHidden:!0,onDismiss:i,portalTarget:()=>e.closest(".kplex-publication"),positioning:nx,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((g,b)=>"choices"in g?(0,Nn.jsxs)("div",{role:"none",children:[(0,Nn.jsxs)("button",{type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":r===g.label,onClick:()=>r===g.label?f():u(g.label),children:[(0,Nn.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true"}),g.label,(0,Nn.jsx)("span",{className:"kplex-publication-submenu-arrow","aria-hidden":"true",children:"▸"})]}),r===g.label&&(0,Nn.jsx)("div",{ref:l,role:"menu","aria-label":g.label,children:g.choices.map((w,h)=>s(w,h))})]},g.label):s(g,b,!0))})})}T();var Rv=K(tt(),1),Av=K(ye(),1);function eh({icon:e,size:t,className:n}){function i(a,o){return(0,Rv.createElement)(a.tag,{...a.attrs,key:o},a.shapes.length?a.shapes.map(i):void 0)}return(0,Av.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 sc=K(tt(),1);var Qe=K(ye(),1);function Cv(){let e=(0,sc.useRef)(null),t=(0,sc.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 nr=K(tt(),1);T();T();function Ov(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 fc=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"?Ov(n.frames,i):null}cancelAll(){for(let t of this.animations.values())t.cancel();this.animations.clear(),this.poses.clear()}};T();function Lv(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 g=m===0||m===1?0:Math.sin(Math.PI*m),b=o*(1-m)+p*f*g,w=l*(1-m)+s*f*g,h=1+.055*g;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 tr=K(tt(),1),dc=K(ye(),1),Aa="[data-publication-strip-scroll]";function zv({id:e,label:t,panel:n,start:i,onScroll:a,children:o}){let l=(0,tr.useRef)(null),r=(0,tr.useRef)(i);return(0,tr.useLayoutEffect)(()=>{l.current&&(l.current.scrollTop=r.current)},[]),(0,dc.jsx)("div",{className:"kplex-zone-panel",style:{left:n.x,top:n.y,width:n.width,height:n.height},children:(0,dc.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,dc.jsx)("div",{className:"kplex-zone-content",style:{height:n.contentHeight},children:o})})})}var hc={duration:320,easing:"cubic-bezier(.2,.72,.22,1)"};function Dv(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 ix(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 Hv(e,t){let n=(0,nr.useRef)(new fc).current,i=(0,nr.useRef)(null);function a(){i.current=null,n.cancelAll(),t.current?.replaceChildren()}(0,nr.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:Dv(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=Dv(c),{pairs:m,remaining:g}=ix(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,Lv(d,h.rect,u),hc):n.play(h.element,[{opacity:0,transform:"translateY(12px) scale(.94)"},{opacity:1,transform:"none"}],hc)}let b=f.getBoundingClientRect();for(let h of g){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 y=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(${y}, ${S})`},{opacity:0,transformOrigin:"0 0",transform:`translateY(-8px) scale(${y*.95}, ${S*.95})`}],{...hc,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}],hc)}return{capture:o,play:l,cancel:a}}T();var At=K(tt(),1);T();var ir=K(ye(),1);function _v({label:e,controlId:t,children:n,layout:i="stacked",actions:a,className:o=""}){return(0,ir.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,ir.jsx)("label",{id:`${t}-label`,htmlFor:t,children:e}),n,a?(0,ir.jsx)("div",{className:"kplex-field-actions",children:a}):null]})}T();var mc=K(tt(),1);T();var Le=K(tt(),1),kv=K(vr(),1),vt=K(ye(),1);function ax(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 Uv(e,t){let n=ax(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 Pv({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:g=!1,floating:b=!1,floatingMode:w="app",portalSelector:h,appTopbarSelector:d,maxFloatingHeight:y=440,minFloatingWidth:S=0,resultsClassName:x="",matchingQuery:N,resultsOwnerId:E,preferSuggestionOnModifiedEnter:M=!1,resultPrefix:R,onEnterWithoutResult:O,onCtrlEnter:D,openResultsOnFocus:I=!0,onFocusChange:G,onDismiss:j,focusRequest:q,inputTitle:le,inputKeyShortcuts:ne,className:de="",highlightMatches:P=!0,closeOnChoose:C=!0,closeOnBlur:B=!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(),G?.(!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}),G?.(!0))},[G]);(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,Vo=ae?.offsetTop??0,Yo=ae?.width??De.innerWidth,qo=Vo+(ae?.height??De.innerHeight),jo=Math.min(Math.max(Wn.width,S),Math.max(0,Yo-Ht*2)),ur=Math.max(On+Ht,Math.min(Wn.left,On+Yo-Ht-jo)),Xo=Math.max(Wn.bottom+Da,Vo+Ht),ph=Math.min(Wn.top-Da,qo-Ht),Ac=Math.max(0,qo-Ht-Xo),gh=Math.max(0,ph-Vo-Ht),yh=Ac>=Math.min(180,y)||Ac>=gh,Z0=Math.max(0,Math.min(y,yh?Ac:gh)),Cc={position:"fixed",left:ur,width:jo,maxHeight:Z0,zIndex:1e4};yh?Cc.top=Xo:Cc.bottom=De.innerHeight-ph,St(Cc);return}let Ha=h?U.closest(h)??null:null,rr=d?U.closest(d)??null:null;if(!Ha||!rr)return;let v=Ha.getBoundingClientRect(),z=rr.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(y,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,lr=w==="app"&&d?U.closest(d):null;$i&&Dt?.observe($i),lr&&Dt?.observe(lr),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,y,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),G?.(!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}
767
+ ${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:Uv(qe,Dt)}),zt?(0,vt.jsx)("small",{children:Uv(zt,Dt)}):null]},o(U))})}):null,Rc=b&&Cn&&Ot&&La?(0,kv.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:g,onChange:U=>{ke(!1),he(!0),ze(!1),t(U.currentTarget.value)},onFocus:()=>{Z(!0),he(!1),ze(!1),G?.(!0)},onBlur:B?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:g,"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,Rc]})}var Bv=K(ye(),1);function Iv({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[g,b]=(0,mc.useState)(""),w=(0,mc.useCallback)(h=>e.search(h,24),[e,o]);return(0,Bv.jsx)(Pv,{value:g,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 ox=1e5,lx=8*1024*1024,Gv=1e6,rx=/[\p{L}\p{N}]+/gu,ux=/^[\p{L}\p{N}]{1,128}$/u;function Vv(e){return[...new Set(e.normalize("NFC").toLowerCase().match(rx))].filter(t=>t.length<=128)}function cx(e,t){if(!Array.isArray(e)||e.length>sr)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)||!$n(a.id)||n.has(a.id)||t&&!t.has(a.id)||!("text"in a)||typeof a.text!="string"||a.text.length>ox)throw new Error("Invalid publication search row");if(n.add(a.id),i+=a.text.length,i>lx)throw new Error("Publication search exceeds its text budget");return{id:a.id,text:a.text}})}function Yv(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>Gv)throw new Error("Invalid publication search index");let n=cx(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||!ux.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>Gv)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 qv(e,t){let n=new Set([...t.published.values()].filter(a=>a.kind==="document"||a.kind==="drawing").map(a=>a.id)),i=Yv(e,n);return{rows:i.rows,positions:new Map(i.rows.map(({id:a},o)=>[a,o])),postings:new Map(i.terms)}}function sx(e,t){let n=Math.max(0,Ca(e).indexOf(t)-35);return`${n?"…":""}${e.slice(n,n+90)}${e.length>n+90?"…":""}`}function jv(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=Vv(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:g})=>{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))||g.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:g})=>{let b=p===7&&m!==void 0?t?.rows[m]?.text:void 0,w=b&&c?sx(b,c):n.get(g).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=$l(e,l);return r.length?r:[...n.get(l)??[]]}}}var We=K(ye(),1);function Xv({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,g]=(0,At.useState)(!1),[b,w]=(0,At.useState)(null),[h,d]=(0,At.useState)(!1),y=(0,At.useMemo)(()=>jv(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(fr,E).then(M=>{E.aborted||w(qv(JSON.parse(M),e))}).catch(()=>{E.aborted||d(!0)}),()=>N.abort()},[m,e,t,b]);function S(x){x.preventDefault();let N=Sv(r.trim(),n(),e),E=N?N.matches:y.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)(Iv,{graph:y.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} (${Zl.key})`,inputKeyShortcuts:Zl.key}),e.manifest?.fullText&&(0,We.jsxs)("div",{className:"kplex-publication-search-options",children:[(0,We.jsx)("button",{type:"button","aria-pressed":m,onClick:()=>g(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)(_v,{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 fx="https://api.github.com",dx="https://github.com",hx=/^[a-z\d][a-z\d-]{0,38}$/i,mx=/^[a-z\d_.-]{1,100}$/i;function Kv(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 Qv(e){if(!Hc(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||!hx.test(l)||!mx.test(r)||r==="."||r==="..")return{};let f=`${l}/${r}`,p=`${fx}/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(Kv))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(Kv(m))return{repository:f,preview:{api:`${p}/releases/tags/${encodeURIComponent(m)}`,caption:m,comparison:!1}}}return{repository:f}}function th(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function nh(e,t){return typeof e=="string"&&e.trim()?e.trim().slice(0,t):void 0}function Zv(e,t,n){let i=th(n);if(!t.comparison)return{title:nh(i.title??i.name??i.full_name,240)??t.caption,description:nh(i.body??i.description,16e3)};let a=Array.isArray(i.commits)?i.commits.slice(0,20).flatMap(o=>{let{sha:l,commit:r}=th(o);if(typeof l!="string"||!/^[a-f\d]{40}$/i.test(l))return[];let u=nh(th(r).message,240);return[{sha:l.slice(0,7),title:u?.split(/\r?\n/,1)[0]??l.slice(0,7),href:`${dx}/${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 pc="http://www.w3.org/1999/xhtml",Io="http://www.w3.org/2000/svg",px="http://www.w3.org/1999/xlink",Fv="http://www.w3.org/XML/1998/namespace",gx=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(" ")),yx=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(" ")),bx=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(" ")),vx=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(" ")),Sx=new Set(["fill","stroke","stop-color","clip-path","mask","marker-start","marker-end","marker-mid"]),Jv=/^[-a-z0-9_]{1,96}$/i,wx=/^[\d\s+.,%()a-z-]+$/i,Ex=/^[a-z0-9][a-z0-9 .,%'"-]{0,191}$/i,xx=/^(?:#[\da-f]{3,8}|[a-z]{1,32}|rgba?\([\d., %]+\)|hsla?\([\d., %+-]+\))$/i,Tx=/^url\(#([a-z0-9_.:-]{1,160})\)$/i,Nx=/^\.\/assets\/[a-f0-9]{64}\.[a-z0-9]{2,5}$/,Wv=/\.(?:png|jpe?g|gif|webp|avif|svg)$/,$v=4*1024*1024;function gc(e){return/^[bh]-[\p{L}\p{N}_-]{1,80}$/u.test(e)}function Mx(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 Rx(e,t=""){if(!$n(e)||t&&!gc(t))throw new Error("Invalid public link");return`?node=${e}${t?`#${encodeURIComponent(t)}`:""}`}function e0(e,t){if(e.startsWith("?node=")){let n=/^\?node=([^#]+)(?:#(.+))?$/.exec(e);if(!n||!t.nodeIds.has(n[1])||!$n(n[1]))return null;let i="";try{i=decodeURIComponent(n[2]??"")}catch{return null}if(i&&!gc(i))return null;if(t.nodeAddress)return t.nodeAddress(n[1],i);let a=Rx(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 gc(n)?`#${encodeURIComponent(t.idPrefix?`${t.idPrefix}-${n}`:n)}`:null}return t0(e,t)??(t.allowExternalLinks===!1?null:Mx(e))}function t0(e,t){let n=e.slice(2);return!Nx.test(e)||!_a(n)||!t.assetPaths.has(n)?null:t.siteURL?new URL(`./${n}`,t.siteURL).href:`./${n}`}function Ax(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 n0(e,t){t&&(e.setAttribute("href",t),e.setAttribute("rel","noopener noreferrer"))}function i0(e,t,n,i){let a=t0(n,i);a&&(i.deferMedia?e.setAttribute("data-publication-asset",n.slice(2)):e.setAttribute(t,a))}function Cx(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 Ox(e,t,n){let i=e.localName,a=e.getAttribute("id")??e.getAttribute("data-publication-fragment");if(a&&gc(a)&&(t.id=n.idPrefix?`${n.idPrefix}-${a}`:a,t.setAttribute("data-publication-fragment",a)),i==="a"&&n0(t,e0(e.getAttribute("href")??"",n)),i==="figure"&&Cx(e,t),i==="img"||i==="audio"||i==="video"){let o=e.getAttribute("src")??"";(i==="img"?Wv:i==="audio"?/\.(?:mp3|ogg|wav)$/:/\.(?:mp4|webm)$/).test(o)&&i0(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&&Jv.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 Lx=/@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,zx=/^(?:normal|bold|[1-9]\d{0,2}|1000)(?: (?:[1-9]\d{0,2}|1000))?$/i,Dx=/^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,Hx=new Set(["text","tspan","textPath"]),_x={woff2:"wOF2",woff:"wOFF",ttf:"\0\0\0",otf:"OTTO"},Ux=512*1024;function kx(e,t){let n=new Map,i=[],a=0;for(let o of Array.from(e.children))if(!(o.namespaceURI!==Io||o.localName!=="defs"))for(let l of Array.from(o.children)){if(l.namespaceURI!==Io||l.localName!=="style"||l.childElementCount)continue;let r=l.textContent??"";if(a+=r.length,a>Ux)return{families:new Map,rules:[]};for(let u of r.matchAll(Lx)){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(_x[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&&Dx.test(h)||w==="font-weight"&&zx.test(h)||w==="font-style"&&/^(?:normal|italic|oblique)$/.test(h))&&m.set(w,h)}let g=[...m].map(([b,w])=>`${b}:${w};`).join("");i.push(`@font-face{font-family:${s};src:url(data:font/${f};base64,${p});${g}}`)}}return{families:n,rules:i}}function Px(e,t){return e.split(",").map(n=>t?.get(n.trim().replace(/^["']|["']$/g,"").toLowerCase())??n).join(",")}function Ix(e,t,n,i,a){for(let o of Array.from(e.attributes)){let{localName:l,value:r}=o;if(!(r.length>65536)){if(Hx.has(e.localName)&&(l==="style"&&!o.namespaceURI&&/(?:^|;)\s*white-space\s*:\s*pre\s*(?:;|$)/i.test(r)||l==="space"&&o.namespaceURI===Fv&&r==="preserve")){t.setAttributeNS(Fv,"xml:space","preserve");continue}if(l==="href"&&(o.namespaceURI===null||o.namespaceURI===px)){if(e.localName==="a")n0(t,e0(r,i));else if(e.localName==="image"&&Wv.test(r))i0(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(Sx.has(l)){let u=Tx.exec(r),c=u&&n.get(u[1]);c?t.setAttribute(l,`url(#${c})`):xx.test(r)&&t.setAttribute(l,r)}else bx.has(l)&&wx.test(r)?t.setAttribute(l,r):vx.has(l)&&Ex.test(r)&&t.setAttribute(l,l==="font-family"?Px(r,a?.families):r)}}}function Bx(e,t,n){if(n.idPrefix&&!Jv.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,g,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>$v)throw new Error("Publication content too large");s.appendChild(a.createTextNode(h));return}if(p.nodeType!==1)return;let w=p;if(w.namespaceURI===Io&&yx.has(w.localName)){if(w.localName==="svg"){let y=`${n.idPrefix??"svg"}-s${++r}`;g=Ax(w,y),b=n.allowDrawingFonts?kx(w,y):void 0}if(!g)return;let h=a.createElementNS(Io,w.localName);Ix(w,h,g,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 y=a.createElementNS(Io,"defs"),S=a.createElementNS(Io,"style");S.textContent=b.rules.join(`
768
+ `),y.appendChild(S),h.appendChild(y)}for(let y of Array.from(w.childNodes))f(y,h,m+1,g,b)}else if(!g&&w.namespaceURI===pc&&gx.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(pc,w.localName);Ox(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 a0(e,t,n){if(e.length>$v||/<!\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="${pc}">${e}</article>`,"application/xhtml+xml");if(a.documentElement.namespaceURI!==pc||a.querySelector("parsererror"))throw new Error("Invalid publication markup");return Bx(Array.from(a.documentElement.childNodes),t,{...n,allowDrawingFonts:!0})}T();var Bo=K(tt(),1);T();async function o0(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 l0(e,t,n,i){return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(await o0(e,t,n,i)))}function yc(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 o0(e,s,p.bytes,f);if(m.byteLength!==p.bytes)throw new Error("Publication resource size mismatch");let g=await e.crypto.subtle.digest("SHA-256",m);if(f.throwIfAborted(),Array.from(new Uint8Array(g),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 r0({page:e}){let t=(0,Bo.useRef)(null),[n,i]=(0,Bo.useState)(),{repository:a,preview:o}=e;return(0,Bo.useEffect)(()=>{let l=t.current?.ownerDocument.defaultView;if(!l||!a||!o)return;let r=new l.AbortController;return l0(l,new l.URL(o.api),8*1024*1024,r.signal).then(u=>{r.signal.aborted||i(Zv(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),u0="http://www.w3.org/2000/svg",Gx={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 ih(e,t){if(t)return Array.from(e.querySelectorAll("[data-publication-fragment]")).find(n=>n.id===t||n.getAttribute("data-publication-fragment")===t)}function c0({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[g,b]=(0,Ct.useState)(0),[w,h]=(0,Ct.useState)("loading"),[d,y]=(0,Ct.useState)(0),S=e.published.get(n.id),x=S.kind==="url"?S.url:void 0,N=(0,Ct.useMemo)(()=>Qv(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;y(0),M.replaceChildren();let G=async q=>{let le=I.get(q);if(le)return le;let ne=Gx[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 G(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(_c(S.id),D),le=a0(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 B=C.pathname.slice(t.siteURL.pathname.length);P.removeAttribute("href"),P.namespaceURI!==u0&&t.assetPaths.has(B)&&ne.push({element:P,path:B,download:!0})}D.throwIfAborted(),M.replaceChildren(le),h("ready"),ih(M,m.current)?.scrollIntoView({block:"start"});for(let{element:P,path:C,download:B}of ne)try{let H=await G(C);D.throwIfAborted(),P.setAttribute(B||P.namespaceURI===u0?"href":"src",H),B&&P.setAttribute("download",C.slice(7)),P.removeAttribute("data-publication-asset")}catch{if(D.aborted)return;y(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)}},[g,S,e,t,a,o,x]),(0,Ct.useEffect)(()=>{f.current&&ih(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=vv(O,t.siteURL,e,n.id);if(!D)return;M.preventDefault();let I=O.startsWith("#")&&D.id===n.id&&f.current?ih(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)(r0,{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),Vx=736,s0=20;function Yx({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,y){r.current?.pointer===y&&(r.current=null,d.hasPointerCapture(y)&&d.releasePointerCapture(y))}(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 g(d){let y=r.current;y?.pointer===d.pointerId&&p(y.size+c*(f(d)-y.origin))}function b(d){g(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[y,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===y)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:g,onPointerUp:b,onPointerCancel:w,onLostPointerCapture:w,onKeyDown:h})}function f0({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>=Vx,s=p?i:"bottom",m=s!=="bottom",g=m?r.width:r.height,b=Math.max(0,g-(m?260:160)-s0),w=Math.min(b,m?240:120),h=c[s]??Math.round(g*(m?.34:.43)),d=Math.max(w,Math.min(b,h)),y=n?{"--kplex-publication-sidecar-size":`${d}px`,"--kplex-publication-divider-size":`${s0}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(G=>G.width===D&&G.height===I?G:{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:y,children:[e,n?(0,gi.jsxs)(gi.Fragment,{children:[(0,gi.jsx)(Yx,{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 bc(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 d0(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 qx(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 ah(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=d0(n),u=d0(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:qx(e,c,f,t,.5)}}T();T();var oh=["parent","child","left","right","previous","next"];function h0(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 oh)for(let m of t.neighbours(p,s)){let g=t.identity(m.page);if(u.has(g))continue;let b=f.get(g);(!b||b.relationType!==1)&&f.set(g,{...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 y0(e){return e.horizontalCompactingFactor??e.compactingFactor}function jx(e){let t=e.compactView?.82:1;return{horizontal:Wi(1.35/y0(e),.38,1.35)*t,vertical:Wi(1.35/e.compactingFactor,.38,1.35)*t,spacing:Wi(e.minLinkLength/18,.72,1.7)}}function m0(e,t){return Math.max(1,Math.min(t==="parent"?3:7,Math.round(t==="parent"?e.parentColumns:e.childColumns)))}function wc(e){return Wi(e.siblingRelativeSize/100,.3,.85)}function p0(e,t){let n=Wi(y0(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 vc(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2+24))}function Sc(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 g0(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(g=>g.height)),reserve:Math.max(0,...m.map(g=>l.reserve(g)))})}let c=t,f=u[0].height,p=u[0].reserve;return u.forEach((s,m)=>{let g;if(m===0){let d=Math.max(0,s.height-26)/2;g=n===-1?t-s.reserve-d:t+d}else n===1?g=c+f/2+p+o+s.height/2:g=c-f/2-o-s.reserve-s.height/2;let b=s.nodes.map(d=>l.width(d)),h=-(b.reduce((d,y)=>d+y,0)+a*Math.max(0,s.nodes.length-1))/2;s.nodes.forEach((d,y)=>{let S=b[y];d.x=h+S/2,d.y=g,h+=S+a}),c=g,f=s.height,p=s.reserve}),r}function lh(e,t,n,i){let a=e;return b0(a,t,n,i),a}function b0(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 rh(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 ar(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),g=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:g,width:f-c,height:m,resizeEdge:i}}function or(e,t,n,i,a,o){if(!t.length)return null;let l=24,r=16,u=Math.min(...t.map(y=>y.x-y.width/2)),c=Math.max(...t.map(y=>y.x+y.width/2)),f=Math.min(...t.map(y=>y.y-y.height/2)),p=Math.max(...t.map(y=>y.y+y.height/2)),s=f-r,m=p+r,g=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(g,Math.max(72,n),b);if(g<=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:g,initialScrollTop:d}}function v0(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}=jx(t),c=50*l*u,f=36*r*u,p=66*r*u,s=18*r*u,m=26,g=-(o.height/2+m/2+p),b=Math.max(42,52*r*u),w=o.height/2+m/2+p+b,h=g0(e.parents,g,-1,m0(t,"parent"),c,f,n),d=g0(e.children,w,1,m0(t,"child"),c,f,n),y=o.width/2,S=y+205*l*u,x=lh(e.leftFriends,-S,s,n),N=t.lateralArrangement==="left",E=lh(e.rightFriends,N?-S:S,s,n),M=N?[...x,...E]:x;N&&b0(M,-S,s,n);let R=!N&&E.length>0,O=R?Math.max(...E.map(Pe=>Pe.x+Pe.width/2)):y,D=R?285:205,I=R?190:120,G=Math.max(S+D*l*u,O+I*l*u),j=lh(e.siblings,G,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,B=C,H=P,X=C,ie=P;rh(M,B,H,n,"midline"),N||rh(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;rh(j,fe,Z,n,i?"midline":"center");let he=Mn(h,n,!0),nn=Mn(j,n,!0),ze=h.length?vc(he,o.width/2+24):170,Vt=Sc(he,o.width/2),ke=Math.max(vc(Mn(x,n,!0),115,-S),vc(Mn(E,n,!0),115,N?-S:S)),Zn=Math.max(Sc(Mn(x,n,!0),0,-S),Sc(Mn(E,n,!0),0,N?-S:S)),lt=vc(nn,110,G),Ot=Sc(nn,0,G),St=N?Math.max(0,p0(t,ze*2)):p0(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)&&(G=R?S+ke+lt+Math.max(0,St):ze+lt+St),G=Math.max(G,Vt+Ot+4,R?S+Zn+Ot+4:0);for(let Pe of j)Pe.x=G;let Lt=Mn(h,n),Fn=Mn(d,n),Rn=Mn(M,n),An=Mn(N?[]:E,n),ve=Mn(j,n),et={},wt=or("parent",Lt,t.parentMaxHeight,"bottom"),De=or("child",Fn,t.childMaxHeight,"top"),Cn=or("left",Rn,t.friendMaxHeight,"top",H,B),Yt=or("right",An,t.friendMaxHeight,"top",ie,X),mn=or("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=g+m/2+16,yi=w-m/2-16;qt.parent=ar("parent",Lt,t.parentMaxHeight,"top",{centerX:0,width:ze*2,fixedEdgeY:Oa}),qt.child=ar("child",Fn,t.childMaxHeight,"bottom",{centerX:0,width:440,fixedEdgeY:yi}),qt.left=ar("left",Rn,t.friendMaxHeight,"top",{centerX:-S,width:ke*2,fixedEdgeY:H},H,B),N||(qt.right=ar("right",An,t.friendMaxHeight,"top",{centerX:S,width:ke*2,fixedEdgeY:ie},ie,X)),qt.sibling=ar("sibling",ve,t.siblingMaxHeight,"top",{centerX:G,width:lt*2,fixedEdgeY:Z},Z,fe);let pn=[o,...h,...d,...x,...E,...j];return t.flipEastWest&&Xx(pn,qt,et),{nodes:pn,zoneViewports:et,zoneAreas:qt}}function Xx(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 S0={version:1,fields:{flipEastWest:{defaultValue:!1,validate:e=>typeof e=="boolean"}}};function Ec(e){return e?.status!=="unavailable"&&e?.values.flipEastWest===!0}function xc(e){return{top:"parent",bottom:"child",left:e?"right":"left",right:e?"left":"right"}}function w0(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 Kx={parent:"graph.zoneParents",child:"graph.zoneChildren",left:"graph.zoneFriendsPrevious",right:"graph.zoneChallengersNext",sibling:"graph.zoneSiblings"};var Qx={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 Zx(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 E0={sectionSource:"attention",editorHosting:"occurrence",id:"classic",version:1,labelKey:"view.classic",icon:"brain-circuit",configuration:S0,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(g=>({page:g.node,role:g.role,relationType:g.relationType,value:g}))},o=h0(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=Ec(e.configuration),r=[{id:"attention",nodeId:t.id,representation:"thought",...l?{ports:xc(!0)}:{}}],u=[],c=(f,p)=>f.forEach((s,m)=>{let g=JSON.stringify([p,s.page.id,m]),b=w0(p,Ec(e.configuration));r.push({id:g,nodeId:s.page.id,role:p,areaId:p,representation:"thought",relation:s.value,groupingPartition:p,...l?{ports:xc(!0)}:{}}),p!=="sibling"&&u.push({id:g,kind:"semantic",source:"attention",target:g,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=oh.flatMap(m=>a(p,m));for(let m of r.filter(g=>g.role==="sibling")){let g=s.find(w=>w.page.id===m.nodeId),b=g?w0(g.role,l):null;g&&b&&u.push({id:JSON.stringify([f.id,m.id]),kind:"semantic",source:f.id,target:m.id,sourceNode:f.nodeId,targetNode:g.page.id,sourcePort:b.source,targetPort:b.target,relation:g.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(!Zx(n))throw new Error("Missing Classic geometry preferences");let o={...n,flipEastWest:n.flipEastWest??Ec(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=v0({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"?wc(o):1),width:s=>s.expandedWidth,mini:(s,m)=>s[m?"envelope":"mini"]},i),p=Object.values(f.zoneAreas).map(s=>{let m=Qx[s.key];return{id:s.key,labelKey:Kx[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 Fx={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous",sibling:"sibling"};function T0(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 x0(e,t){return JSON.stringify(e<t?[e,t]:[t,e])}function N0(e,t,n,i,a,o){let l=new Set(e.keys()),r=new Set;for(let[f,p]of t)r.add(x0(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),g=e.get(m);if(!g||m===f)continue;let b=x0(f,m);if(r.has(b))continue;let w,h=1/0;for(let d of p)for(let y of g){if(++u>16384)return!0;let S=a(d,s.role),x=a(y,Fx[s.role]);if(!S||!x)continue;let N=(d.x-y.x)**2+(d.y-y.y)**2;N<h&&(w={source:d,target:y,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 M0(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(xn))!==i.occurrenceId)continue;n.set(i.occurrenceId,a.map(xn))}catch{}}return n}function R0(e){let t=ic(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=Fl(Zb(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=M0(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)),g=new Set,b=new Set,w=[],h=[],d=[{id:"root",lineage:[i],depth:0,side:1}],y=!1,S=(E,M,R)=>{let D=(R?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).map(G=>e.read.relations(E,G,M)),I=new Map;for(let G of D)for(let j of G.items)I.has(j.node.id)||I.set(j.node.id,j);return{items:[...I.values()],truncated:D.some(G=>G.truncated),coverage:D.some(G=>G.coverage==="unavailable")?"unavailable":D.every(G=>G.coverage==="local")?"local":"cached"}},x=E=>{if(E===i||g.has(E))return!0;if(g.size>=mt.scopes)return!1;let M=[...m].filter(R=>!g.has(R)&&R!==E).length;return!m.has(E)&&g.size+M>=mt.scopes?!1:(g.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},G=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&&G.coverage!=="unavailable"&&G.items.length===0&&!G.truncated),le=j&&q&&x(M),ne=le?S(M,Math.min(e.maximum,128),E.depth===0):G,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",y=!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}:(y=!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){y=!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=Fl({...o,sides:{...o.sides,[k.id]:he}});if(!nn){y=!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},B=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:B,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;y||=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:y,coverage:e.read.coverage,preparation:{parents:[...g]},stateSuggestion:N}}T();T();function Jx(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 Wx(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 A0(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=Jx(e),u=Math.min(t,e.length),c=Wx(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,g=o;for(let w of c)p.push(m+w/2),m+=w+n;for(let w of f)s.push(g+w/2),g+=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:g-i+l}}function C0(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,B)=>C?c.get(C)?.controlReserve?.[B]??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 B=c.get(C.id);if(!B||![B.width,B.height].every(ie=>Number.isFinite(ie)&&ie>0)||!C.branch)throw new Error("Invalid measured hierarchy");if(B.controlReserve&&![B.controlReserve.right,B.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,g=(C,B)=>{let H=s.get(C);if(H!==void 0)return H;if(B>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+g(Z.id,B+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)g(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,B,H,X)=>{let ie=C.reduce((k,Z)=>k+s.get(Z.id),0)+Math.max(0,C.length-1)*o,J=B.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:B.x+H*(B.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)??[],y=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(B=>x(B.id))):0),N=y.filter(C=>C.branch.side===-1),E=y.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=A0(R.map((C,B)=>C?{id:C.id,width:x(C.id),height:s.get(C.id)}:{id:`empty-parent-cell-${B}`,width:1,height:1}),n.parentColumns,a,o),D=u.map(C=>{let B=c.get(C.id);if(!B)throw new Error("Missing measured section");return B}),I=Math.max(b.width+f(l,"right")*2,O.width,...D.map(C=>C.width)),G=Math.max(140,Math.min(800,i.parentHeight??300)),j=Math.max(G,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 y){let B=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+B.x+X*(-B.width/2+H.width/2)-(X===-1?f(C.id,"right"):0),y:q.y+j-O.height+B.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 B=S.filter(H=>H.branch?.side===C);h([...B.filter(H=>H.role!=="child"),...B.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:G},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,B]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:B==="child"?"graph.zoneChildren":"graph.zoneFriendsChallengers",dropRole:B,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 $x(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 eT(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 O0(e,t,n){let i=e.occurrences.find(r=>r.id===(e.root??e.entry));if(!i?.nodeId||i.nodeId!==t.documentId||!$x(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=eT(t,r.targetNode,r.relation.role);return u?{...r,sourceSection:u}:r})}}var L0={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:Bd,hierarchy:{maximumScopes:mt.scopes,maximumDepth:mt.depth,primary:"center",controls:"measured",relations:"child-and-peer",reduce:oc},configuration:nc,restoreState:Zi,project(e){let t=R0(e);return t&&e.sections?.status==="available"?O0(t,e.sections.snapshot,Math.min(2048,e.maximum*8+1)):t},layout(e,t,n,i,a){let o=ic(a?.configuration);if(!o)throw new Error("Mind Map configuration unavailable");return C0(e,t,o,a?.areaHeights)}};var tT={compactingFactor:2,horizontalCompactingFactor:2,compactView:!1,minLinkLength:18,parentColumns:2,childColumns:5,siblingRelativeSize:85,parentMaxHeight:300,childMaxHeight:400,friendMaxHeight:350,siblingMaxHeight:250},uh={baseFontSize:12.4,wrapNodeLabels:!1,propertyFontSize:10};function z0(e){return e==="left"||e==="right"||e==="sibling"}function H0(e,t,n=!0,i="compass",a,o=!1){let{read:l}=e,r=e.manifest?.appearance,u=r?.flip??!1,c={...tT,...r?.geometry,flipEastWest:u};e.manifest&&(c.siblingMaxHeight+=72);let f={baseFontSize:r?.typography?.baseFontSize??uh.baseFontSize,wrapNodeLabels:r?.typography?.wrapNodeLabels??uh.wrapNodeLabels,propertyFontSize:r?.typography?.propertyFontSize??uh.propertyFontSize},p=xc(u),s=i==="mindmap",m=s?L0:E0,g=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(!g)throw new Error("Publication attention is unavailable");let b=g.occurrences.map(R=>{let O=R.nodeId&&l.node(R.nodeId);if(!O)throw new Error("Publication occurrence is unavailable");let D=R.id===g.entry,I=R.role==="sibling",G=I?wc(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,B=Wl(P*G,D,f.baseFontSize)*(I&&e.manifest?.7:1),H=ev(O.name,P,f,D,O.maxLabelLength);de.icon!=null&&(H.width+=D?22:17);let X=tv(H,G,P*G,f);return{occurrence:R,node:O,center:D,fontSize:B,style:de,gateSize:Jb({gateRadius:C*G}),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(g,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:G}of b){if(!s&&G)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=g.edges.flatMap(D=>D.kind==="semantic"?[[D.sourceNode,D.targetNode]]:[]);d=N0(R,O,function*(D){for(let I of Dc)yield*l.relations(D.node,I).items},D=>D.node.id,(D,I)=>T0(s?D.occurrence.ports:p,D.occurrence.peerPort?.side,I),({source:D,target:I,sourcePort:G,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:G,targetPort:j,relation:q})})}let y=[...g.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 y)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&&z0(R)&&x.set(R,O);let N=b.map(({occurrence:R,node:O,center:D,fontSize:I,gateSize:G,style:j})=>{let q=R.areaId==="right"&&c.lateralArrangement==="left"?"left":R.areaId;return{id:R.id,node:O,center:D,fontSize:I,gateSize:G,style:j,role:R.role??"center",bounds:w.positions.get(R.id),branch:R.branch,strip:z0(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(B=>B.node.id)).size:P.length;return{side:le,count:C}})}}),E=new Map(N.map(R=>[R.id,R])),M=y.map((R,O)=>{let D=E.get(R.source),I=E.get(R.target),G=ah(bc(D.bounds,R.sourcePort,D.gateSize),bc(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:G,label:le,labelSize:q?.labelSize,labelColor:q?.labelColor,crossLink:O>=g.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:g.truncated||d,projection:g}}function Tc(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 D0(e,t,n,i){let a=bc(Tc(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 _0(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=D0(e,i,t.sourcePort,n),l=D0(e,a,t.targetPort,n);return o&&l?ah(o,l,t.sourcePort,t.targetPort,"bezier"):null}T();T();function Nc(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 Mc(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=Nc(o[0],255),r=Nc(o[1],255),u=Nc(o[2],255),c=o.length===4?Nc(o[3],1):1;return l===null||r===null||u===null||c===null?null:{red:l,green:r,blue:u,alpha:c}}T();function sh(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 ch(e){let t=Math.max(0,Math.min(1,e/255));return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function U0(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=sh(e,t),i=l=>.2126*ch(l.red)+.7152*ch(l.green)+.0722*ch(l.blue),a=i(n),o=i(t);return(Math.max(a,o)+.05)/(Math.min(a,o)+.05)}T();var nT=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"]])]),iT=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","-apple-system"]),aT=new Set(["inherit","initial","revert","revert-layer","unset","default"]);function oT(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"||aT.has(l.toLowerCase()))return;n.push(!o&&iT.has(l.toLowerCase())?l.toLowerCase():JSON.stringify(l))}return n.join(", ")}function k0(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 P0(e,t){let n=t.trim();if(!(!n||n.length>320))switch(nT.get(e)){case"color":return/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(n)?n.toLowerCase():void 0;case"font":return oT(n);case"length":return k0(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)):k0(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 fh=/\s*(?:\.kplex-publication\s*\{([^{}]*)\}|@media\s*\(\s*prefers-color-scheme:\s*(light|dark)\s*\)\s*\{\s*\.kplex-publication\s*\{([^{}]*)\}\s*\})\s*/yu;function I0(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;){fh.lastIndex=i;let a=fh.exec(e);if(!a)throw new Error("Unsupported publication theme");i=fh.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&&P0(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 B0(e,t){let n=`--kplex-published-${t}-`,i=`--kplex-published-${t==="dark"?"light":"dark"}-`,a=e??{},o=Mc(a[n+"text-normal"]),l=Mc(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=Mc(c),s=p&&U0(o,l?sh(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]},dh={back:"Alt+ArrowLeft",forward:"Alt+ArrowRight",sidecar:"Alt+Shift+S"},lT={left:L.friends,right:L.challengers,sibling:L.siblings},rT=[["system",L.systemTheme],["light",L.lightMode],["dark",L.darkMode]],uT=[["right",L.sidecarRight],["left",L.sidecarLeft],["bottom",L.sidecarBottom]],V0={};function hh(e,t){let n=t.ownerDocument.defaultView?.Element;return!!(n&&e.target instanceof n&&e.target.closest(Aa))}function Y0(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 q0({publication:e,markerPrefix:t,resources:n,browser:i}){let a=(0,te.useRef)(null),o=(0,te.useRef)(null),l=Hv(a,o),r=wv(e,i,l.capture),u=r.attention.id,c={...Qd,crosslinks:e.manifest?.appearance?.showCrossLinks??Qd.crosslinks,...r.attention.canvas},{view:f,siblings:p,crosslinks:s,ontology:m,sidecar:g}=c,[b,w]=(0,te.useState)(),[h,d]=(0,te.useState)(null),y=(0,te.useRef)(null),S=(0,te.useMemo)(()=>H0(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:V0,O=(0,te.useRef)(null),D=(0,te.useRef)({x:0,y:0,scale:1}),I=(0,te.useRef)(!1),G=(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),[B,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:!g}),Rn=(0,te.useMemo)(()=>S.edges.flatMap(v=>{let z=_0(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 lc(z,!0,d);y.current=Y;let $=Fb(v,Y);return()=>{y.current=null,$()}},[]),(0,te.useLayoutEffect)(()=>{y.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===Zl.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(dr))return;let z=new v.AbortController,Y=z.signal;return n.text(dr,Y).then($=>{Y.aborted||fe(I0($))}).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(),y.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(hh(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),y.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:ko(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)(eh,{icon:pt,size:12}),(0,V.jsx)("span",{children:e.nodes.get($.id)?.name})]})},$.id)})})]})}function Rc(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=Tc(S,ce?S.cardById.get(ce)??N:N,R),He=-1,pt=1/0;for(let[On,Vo]of $.entries()){let Yo=Tc(S,S.cardById.get(Vo.dataset.publicationOccurrence),R),qo=Yo.x-F.x,jo=Yo.y-F.y,ur=qo*z+jo*Y,Xo=ur+2*Math.abs(qo*Y-jo*z);ur>0&&Xo<pt&&(He=On,pt=Xo)}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)||G.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?y.current?.enter({occurrence:Y,port:$},v):y.current?.clear()}function ae(v){if(v.button!==0||(B&&H(null),P&&C(null),hh(v,v.currentTarget)))return;let z=G.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=G.current;if(!z.points.has(v.pointerId))return;let[Y,$]=z.points.values(),ce=Y0(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=Y0(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){G.current.points.delete(v.pointerId)}let Dt=e.body(u),$i=()=>r.changeCanvas({siblings:!p}),lr=(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"&&lr,(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":!!B,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)(ov,{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)(rv,{wrap:S.wrap,children:[ce&&(0,V.jsx)(eh,{icon:ce,size:v.center?18:v.role==="sibling"?9:13,className:"kplex-publication-node-icon"}),(0,V.jsx)(lv,{label:v.node.name,maximum:v.node.maxLabelLength,center:v.center})]}),v.gates.map(({side:F,count:He})=>(0,V.jsx)(uv,{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=>oc(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:Rc,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=>{y.current?.clear(),v.currentTarget.hasPointerCapture(v.pointerId)||zt(v)},onClickCapture:v=>{v.detail&&G.current.moved&&!hh(v,v.currentTarget)&&(v.stopPropagation(),G.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)(fv,{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)(cv,{d:z.d,stroke:He??"var(--kplex-publication-link)",strokeWidth:pt??1.2,markerStart:qd(Et,t),markerEnd:qd(On,t)}),m&&(0,V.jsx)(sv,{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)(zv,{id:v,panel:z,start:R[v]??z.initialScrollTop,label:v==="left"&&e.manifest?.appearance?.geometry?.lateralArrangement==="left"?L.lateral:lT[v],onScroll:Y=>M($=>{let ce=$?.attention===u?$.offsets:V0;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?hv(e,P.id):void 0,Ha=P&&{id:P.id,canvas:{...c,theme:Ot}},rr=ke==="both"?B0(Z,St):ke?{...Z,colorScheme:St}:Z;return(0,V.jsxs)("main",{className:`kplex-publication${n?" kplex-publication-production":""}`,style:rr,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)(Cv,{}),(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":dh.back,title:L.backTooltip,children:"←"}),(0,V.jsx)("button",{type:"button",onClick:()=>r.move(1),disabled:!r.canGoForward,"aria-label":L.forward,"aria-keyshortcuts":dh.forward,title:L.forwardTooltip,children:"→"}),n?(0,V.jsx)("button",{type:"button",ref:le,"aria-expanded":g,"aria-controls":`sidecar-${q}`,"aria-keyshortcuts":dh.sidecar,title:g?L.hideSidecarTooltip:L.showSidecarTooltip,onClick:Fn,children:g?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)(Xv,{publication:e,resources:n,page:pn,searchFocus:ne,onChoose:yi}),n&&Zn?.length?La(Zn.map(v=>({id:xn(v)})),L.pins):null]}),n?(0,V.jsx)(f0,{sidecarId:`sidecar-${q}`,sidecarOpen:g,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)(c0,{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),B&&(0,V.jsx)(Mv,{anchor:B.anchor,point:B.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:!g,select:()=>r.changeCanvas({sidecar:!1})},...uT.map(([v,z])=>({label:z,kind:"menuitemradio",checked:g&&c.dock===v,select:()=>r.changeCanvas({dock:v,sidecar:!0})}))]}]:[],...ke==="both"?rT.map(([v,z])=>({label:z,kind:"menuitemradio",checked:Ot===v,select:()=>r.changeCanvas({theme:v})})):[]]}),n&&P&&Ha&&(0,V.jsx)(Nv,{anchor:P.anchor,address:ko(pn(),Ha).href,shortAddress:Da&&ko(pn(),Ha,Da).href,onDismiss:v=>{C(null),v&&P.anchor.isConnected&&P.anchor.focus({preventScroll:!0})},onCopied:()=>ie(!0)},P.id)]})}var K0=K(ye(),1),mh=new WeakSet,cT=0;function X0(e,t,n){return sT(e,t,void 0,!0,n)}function sT(e,t,n,i=!1,a){let o=e.ownerDocument.defaultView,l=new URL(n??"./publication.json",e.ownerDocument.baseURI),r=g=>{let b=mv(g);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)??yc(o,l,b.manifest):void 0;return{publication:b,resources:w}},u=r(t);if(mh.has(e))throw new Error("A publication is already mounted in this element");let c=`kplex-publication-${++cT}`,f=(0,j0.createRoot)(e,{identifierPrefix:c});mh.add(e);let p=0,s=!1,m=({publication:g,resources:b})=>{i&&(e.ownerDocument.title=g.title),f.render((0,K0.jsx)(q0,{publication:g,markerPrefix:c,resources:b,browser:i&&b&&o?o:void 0},p++))};return m(u),{update(g){if(s)throw new Error("Publication mount has been disposed");m(r(g))},dispose(){if(!s){s=!0;try{f.unmount()}finally{mh.delete(e)}}}}}var Q0=document.querySelector("[data-kplex-demo]");Q0&&fT(Q0);function fT(e){let t=e.ownerDocument,n=t.defaultView;if(n)try{let i=e.hasAttribute("data-kplex-local-folder"),a=new Map;for(let u of Array.from(t.querySelectorAll('script[type="application/octet-stream"][data-kplex-resource]'))){let c=u.dataset.kplexResource;if(!_a(c)&&c!=="publication.json"||a.has(c)||a.size>=4e4)throw new Error("Invalid offline publication resource");a.set(c,u)}let o=(u,c)=>{let f=a.get(u)?.textContent;if(f==null||f.length>Math.ceil(c/3)*4)throw new Error("Offline resource unavailable");let p=n.atob(f);if(p.length>c)throw new Error("Offline resource exceeds its declared size");let s=new Uint8Array(p.length);for(let m=0;m<p.length;m++)s[m]=p.charCodeAt(m);return s},l=JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(o("publication.json",zc))),r=X0(e,l,u=>yc(n,new URL(n.location.href),u,async(c,f,p)=>(p.throwIfAborted(),i?dT(t,c,f,p):o(c,f)),n.location.protocol==="file:"?$d:void 0));n.addEventListener("pagehide",function u(c){c.persisted||(n.removeEventListener("pagehide",u),r.dispose())})}catch{let i=t.createElement("p");i.className="kplex-publication-opening",i.setAttribute("role","alert"),i.textContent=L.loadFailed,e.replaceChildren(i)}}async function dT(e,t,n,i){let a=e.defaultView;if(!a)throw new Error("Offline publication window is unavailable");i.throwIfAborted();let o=e.createElement("div"),l=e.createElement("div"),r=e.createElement("span");o.hidden=!0;let u=l.attachShadow({mode:"closed"}),c=e.createElement("link");r.setAttribute("data-kplex-local-bytes",t),c.rel="stylesheet",c.href=new URL(Nh(t),a.location.href).href,u.append(r,c),o.append(l);let f=()=>new Promise((p,s)=>{let m=w=>{a.clearTimeout(b),i.removeEventListener("abort",g),c.onload=c.onerror=null,w?s(w):p()},g=()=>m(new Error("Offline resource load cancelled")),b=a.setTimeout(()=>m(new Error("Offline resource did not load")),3e4);i.addEventListener("abort",g,{once:!0}),c.onload=()=>m(),c.onerror=()=>m(new Error("Offline resource unavailable")),e.body.append(o)});try{await f(),i.throwIfAborted();let p=a.getComputedStyle(r),s=new Uint8Array(n);for(let m=0;m<n;m+=hr){let g=Math.min(hr,n-m),b=p.getPropertyValue(`--kplex-file-${m/hr}`).trim();if(!b.startsWith('"')||!b.endsWith('"')||b.length!==Math.ceil(g/3)*4+2)throw new Error("Invalid offline resource data block");let w=a.atob(b.slice(1,-1));if(w.length!==g)throw new Error("Offline resource data block size mismatch");for(let h=0;h<g;h++)s[m+h]=w.charCodeAt(h)}return s}finally{o.remove()}}})();