kanna-code 0.35.2 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/index-DEXZB-Si.js +2613 -0
- package/dist/client/index.html +2 -7
- package/dist/export-viewer/assets/index-C-FkZjXM.js +400 -0
- package/dist/export-viewer/index.html +1 -1
- package/package.json +1 -1
- package/src/server/analytics.ts +9 -4
- package/src/server/app-settings.test.ts +87 -15
- package/src/server/app-settings.ts +304 -73
- package/src/server/ws-router.test.ts +151 -0
- package/src/server/ws-router.ts +133 -13
- package/src/shared/protocol.ts +5 -1
- package/src/shared/types.ts +45 -0
- package/dist/client/assets/index-BfaPrPZL.js +0 -2613
- package/dist/export-viewer/assets/index-Cl-AwKng.js +0 -400
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
function ek(e,n){for(var l=0;l<n.length;l++){const r=n[l];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const u=Object.getOwnPropertyDescriptor(r,o);u&&Object.defineProperty(e,o,u.get?u:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function l(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(o){if(o.ep)return;o.ep=!0;const u=l(o);fetch(o.href,u)}})();function yu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qf={exports:{}},Ja={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Ry;function tk(){if(Ry)return Ja;Ry=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function l(r,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var f in o)f!=="key"&&(u[f]=o[f])}else u=o;return o=u.ref,{$$typeof:e,type:r,key:c,ref:o!==void 0?o:null,props:u}}return Ja.Fragment=n,Ja.jsx=l,Ja.jsxs=l,Ja}var Dy;function nk(){return Dy||(Dy=1,Qf.exports=tk()),Qf.exports}var x=nk(),Xf={exports:{}},Ne={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Ly;function ik(){if(Ly)return Ne;Ly=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function b(z){return z===null||typeof z!="object"?null:(z=v&&z[v]||z["@@iterator"],typeof z=="function"?z:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,T={};function _(z,U,N){this.props=z,this.context=U,this.refs=T,this.updater=N||w}_.prototype.isReactComponent={},_.prototype.setState=function(z,U){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,U,"setState")},_.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function j(){}j.prototype=_.prototype;function M(z,U,N){this.props=z,this.context=U,this.refs=T,this.updater=N||w}var P=M.prototype=new j;P.constructor=M,k(P,_.prototype),P.isPureReactComponent=!0;var F=Array.isArray;function R(){}var H={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function te(z,U,N){var W=N.ref;return{$$typeof:e,type:z,key:U,ref:W!==void 0?W:null,props:N}}function I(z,U){return te(z.type,U,z.props)}function J(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function ae(z){var U={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(N){return U[N]})}var me=/\/+/g;function oe(z,U){return typeof z=="object"&&z!==null&&z.key!=null?ae(""+z.key):U.toString(36)}function le(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(R,R):(z.status="pending",z.then(function(U){z.status==="pending"&&(z.status="fulfilled",z.value=U)},function(U){z.status==="pending"&&(z.status="rejected",z.reason=U)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function L(z,U,N,W,se){var re=typeof z;(re==="undefined"||re==="boolean")&&(z=null);var ce=!1;if(z===null)ce=!0;else switch(re){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(z.$$typeof){case e:case n:ce=!0;break;case y:return ce=z._init,L(ce(z._payload),U,N,W,se)}}if(ce)return se=se(z),ce=W===""?"."+oe(z,0):W,F(se)?(N="",ce!=null&&(N=ce.replace(me,"$&/")+"/"),L(se,U,N,"",function(Ge){return Ge})):se!=null&&(J(se)&&(se=I(se,N+(se.key==null||z&&z.key===se.key?"":(""+se.key).replace(me,"$&/")+"/")+ce)),U.push(se)),1;ce=0;var be=W===""?".":W+":";if(F(z))for(var he=0;he<z.length;he++)W=z[he],re=be+oe(W,he),ce+=L(W,U,N,re,se);else if(he=b(z),typeof he=="function")for(z=he.call(z),he=0;!(W=z.next()).done;)W=W.value,re=be+oe(W,he++),ce+=L(W,U,N,re,se);else if(re==="object"){if(typeof z.then=="function")return L(le(z),U,N,W,se);throw U=String(z),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ce}function X(z,U,N){if(z==null)return z;var W=[],se=0;return L(z,W,"","",function(re){return U.call(N,re,se++)}),W}function ne(z){if(z._status===-1){var U=z._result;U=U(),U.then(function(N){(z._status===0||z._status===-1)&&(z._status=1,z._result=N)},function(N){(z._status===0||z._status===-1)&&(z._status=2,z._result=N)}),z._status===-1&&(z._status=0,z._result=U)}if(z._status===1)return z._result.default;throw z._result}var $=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},C={map:X,forEach:function(z,U,N){X(z,function(){U.apply(this,arguments)},N)},count:function(z){var U=0;return X(z,function(){U++}),U},toArray:function(z){return X(z,function(U){return U})||[]},only:function(z){if(!J(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Ne.Activity=g,Ne.Children=C,Ne.Component=_,Ne.Fragment=l,Ne.Profiler=o,Ne.PureComponent=M,Ne.StrictMode=r,Ne.Suspense=h,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(z){return H.H.useMemoCache(z)}},Ne.cache=function(z){return function(){return z.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(z,U,N){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var W=k({},z.props),se=z.key;if(U!=null)for(re in U.key!==void 0&&(se=""+U.key),U)!V.call(U,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&U.ref===void 0||(W[re]=U[re]);var re=arguments.length-2;if(re===1)W.children=N;else if(1<re){for(var ce=Array(re),be=0;be<re;be++)ce[be]=arguments[be+2];W.children=ce}return te(z.type,se,W)},Ne.createContext=function(z){return z={$$typeof:c,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:u,_context:z},z},Ne.createElement=function(z,U,N){var W,se={},re=null;if(U!=null)for(W in U.key!==void 0&&(re=""+U.key),U)V.call(U,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(se[W]=U[W]);var ce=arguments.length-2;if(ce===1)se.children=N;else if(1<ce){for(var be=Array(ce),he=0;he<ce;he++)be[he]=arguments[he+2];se.children=be}if(z&&z.defaultProps)for(W in ce=z.defaultProps,ce)se[W]===void 0&&(se[W]=ce[W]);return te(z,re,se)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(z){return{$$typeof:f,render:z}},Ne.isValidElement=J,Ne.lazy=function(z){return{$$typeof:y,_payload:{_status:-1,_result:z},_init:ne}},Ne.memo=function(z,U){return{$$typeof:m,type:z,compare:U===void 0?null:U}},Ne.startTransition=function(z){var U=H.T,N={};H.T=N;try{var W=z(),se=H.S;se!==null&&se(N,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(R,$)}catch(re){$(re)}finally{U!==null&&N.types!==null&&(U.types=N.types),H.T=U}},Ne.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Ne.use=function(z){return H.H.use(z)},Ne.useActionState=function(z,U,N){return H.H.useActionState(z,U,N)},Ne.useCallback=function(z,U){return H.H.useCallback(z,U)},Ne.useContext=function(z){return H.H.useContext(z)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(z,U){return H.H.useDeferredValue(z,U)},Ne.useEffect=function(z,U){return H.H.useEffect(z,U)},Ne.useEffectEvent=function(z){return H.H.useEffectEvent(z)},Ne.useId=function(){return H.H.useId()},Ne.useImperativeHandle=function(z,U,N){return H.H.useImperativeHandle(z,U,N)},Ne.useInsertionEffect=function(z,U){return H.H.useInsertionEffect(z,U)},Ne.useLayoutEffect=function(z,U){return H.H.useLayoutEffect(z,U)},Ne.useMemo=function(z,U){return H.H.useMemo(z,U)},Ne.useOptimistic=function(z,U){return H.H.useOptimistic(z,U)},Ne.useReducer=function(z,U,N){return H.H.useReducer(z,U,N)},Ne.useRef=function(z){return H.H.useRef(z)},Ne.useState=function(z){return H.H.useState(z)},Ne.useSyncExternalStore=function(z,U,N){return H.H.useSyncExternalStore(z,U,N)},Ne.useTransition=function(){return H.H.useTransition()},Ne.version="19.2.1",Ne}var Iy;function vu(){return Iy||(Iy=1,Xf.exports=ik()),Xf.exports}var E=vu();const Yr=yu(E),Gv=ek({__proto__:null,default:Yr},[E]);var Kf={exports:{}},Wa={},Zf={exports:{}},$f={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var By;function lk(){return By||(By=1,(function(e){function n(L,X){var ne=L.length;L.push(X);e:for(;0<ne;){var $=ne-1>>>1,C=L[$];if(0<o(C,X))L[$]=X,L[ne]=C,ne=$;else break e}}function l(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var X=L[0],ne=L.pop();if(ne!==X){L[0]=ne;e:for(var $=0,C=L.length,z=C>>>1;$<z;){var U=2*($+1)-1,N=L[U],W=U+1,se=L[W];if(0>o(N,ne))W<C&&0>o(se,N)?(L[$]=se,L[W]=ne,$=W):(L[$]=N,L[U]=ne,$=U);else if(W<C&&0>o(se,ne))L[$]=se,L[W]=ne,$=W;else break e}}return X}function o(L,X){var ne=L.sortIndex-X.sortIndex;return ne!==0?ne:L.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],m=[],y=1,g=null,v=3,b=!1,w=!1,k=!1,T=!1,_=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function P(L){for(var X=l(m);X!==null;){if(X.callback===null)r(m);else if(X.startTime<=L)r(m),X.sortIndex=X.expirationTime,n(h,X);else break;X=l(m)}}function F(L){if(k=!1,P(L),!w)if(l(h)!==null)w=!0,R||(R=!0,ae());else{var X=l(m);X!==null&&le(F,X.startTime-L)}}var R=!1,H=-1,V=5,te=-1;function I(){return T?!0:!(e.unstable_now()-te<V)}function J(){if(T=!1,R){var L=e.unstable_now();te=L;var X=!0;try{e:{w=!1,k&&(k=!1,j(H),H=-1),b=!0;var ne=v;try{t:{for(P(L),g=l(h);g!==null&&!(g.expirationTime>L&&I());){var $=g.callback;if(typeof $=="function"){g.callback=null,v=g.priorityLevel;var C=$(g.expirationTime<=L);if(L=e.unstable_now(),typeof C=="function"){g.callback=C,P(L),X=!0;break t}g===l(h)&&r(h),P(L)}else r(h);g=l(h)}if(g!==null)X=!0;else{var z=l(m);z!==null&&le(F,z.startTime-L),X=!1}}break e}finally{g=null,v=ne,b=!1}X=void 0}}finally{X?ae():R=!1}}}var ae;if(typeof M=="function")ae=function(){M(J)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,oe=me.port2;me.port1.onmessage=J,ae=function(){oe.postMessage(null)}}else ae=function(){_(J,0)};function le(L,X){H=_(function(){L(e.unstable_now())},X)}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(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(L){switch(v){case 1:case 2:case 3:var X=3;break;default:X=v}var ne=v;v=X;try{return L()}finally{v=ne}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(L,X){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ne=v;v=L;try{return X()}finally{v=ne}},e.unstable_scheduleCallback=function(L,X,ne){var $=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?$+ne:$):ne=$,L){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=ne+C,L={id:y++,callback:X,priorityLevel:L,startTime:ne,expirationTime:C,sortIndex:-1},ne>$?(L.sortIndex=ne,n(m,L),l(h)===null&&L===l(m)&&(k?(j(H),H=-1):k=!0,le(F,ne-$))):(L.sortIndex=C,n(h,L),w||b||(w=!0,R||(R=!0,ae()))),L},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(L){var X=v;return function(){var ne=v;v=X;try{return L.apply(this,arguments)}finally{v=ne}}}})($f)),$f}var Uy;function rk(){return Uy||(Uy=1,Zf.exports=lk()),Zf.exports}var Jf={exports:{}},Jt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Vy;function ak(){if(Vy)return Jt;Vy=1;var e=vu();function n(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var r={d:{f:l,r:function(){throw Error(n(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(h,m,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:h,containerInfo:m,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Jt.createPortal=function(h,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(n(299));return u(h,m,null,y)},Jt.flushSync=function(h){var m=c.T,y=r.p;try{if(c.T=null,r.p=2,h)return h()}finally{c.T=m,r.p=y,r.d.f()}},Jt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(h,m))},Jt.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},Jt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var y=m.as,g=f(y,m.crossOrigin),v=typeof m.integrity=="string"?m.integrity:void 0,b=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?r.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:b}):y==="script"&&r.d.X(h,{crossOrigin:g,integrity:v,fetchPriority:b,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Jt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=f(m.as,m.crossOrigin);r.d.M(h,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(h)},Jt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,g=f(y,m.crossOrigin);r.d.L(h,y,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Jt.preloadModule=function(h,m){if(typeof h=="string")if(m){var y=f(m.as,m.crossOrigin);r.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(h)},Jt.requestFormReset=function(h){r.d.r(h)},Jt.unstable_batchedUpdates=function(h,m){return h(m)},Jt.useFormState=function(h,m,y){return c.H.useFormState(h,m,y)},Jt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Jt.version="19.2.1",Jt}var Fy;function Yv(){if(Fy)return Jf.exports;Fy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Jf.exports=ak(),Jf.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Hy;function ok(){if(Hy)return Wa;Hy=1;var e=rk(),n=vu(),l=Yv();function r(t){var i="https://react.dev/errors/"+t;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var i=t,a=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(a=i.return),t=i.return;while(t)}return i.tag===3?a:null}function c(t){if(t.tag===13){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function f(t){if(t.tag===31){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function h(t){if(u(t)!==t)throw Error(r(188))}function m(t){var i=t.alternate;if(!i){if(i=u(t),i===null)throw Error(r(188));return i!==t?null:t}for(var a=t,s=i;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(s=d.return,s!==null){a=s;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return h(d),t;if(p===s)return h(d),i;p=p.sibling}throw Error(r(188))}if(a.return!==s.return)a=d,s=p;else{for(var S=!1,A=d.child;A;){if(A===a){S=!0,a=d,s=p;break}if(A===s){S=!0,s=d,a=p;break}A=A.sibling}if(!S){for(A=p.child;A;){if(A===a){S=!0,a=p,s=d;break}if(A===s){S=!0,s=p,a=d;break}A=A.sibling}if(!S)throw Error(r(189))}}if(a.alternate!==s)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:i}function y(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t;for(t=t.child;t!==null;){if(i=y(t),i!==null)return i;t=t.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),M=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function ae(t){return t===null||typeof t!="object"?null:(t=J&&t[J]||t["@@iterator"],typeof t=="function"?t:null)}var me=Symbol.for("react.client.reference");function oe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===me?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case k:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case F:return"Suspense";case R:return"SuspenseList";case te:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case M:return t.displayName||"Context";case j:return(t._context.displayName||"Context")+".Consumer";case P:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case H:return i=t.displayName||null,i!==null?i:oe(t.type)||"Memo";case V:i=t._payload,t=t._init;try{return oe(t(i))}catch{}}return null}var le=Array.isArray,L=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},$=[],C=-1;function z(t){return{current:t}}function U(t){0>C||(t.current=$[C],$[C]=null,C--)}function N(t,i){C++,$[C]=t.current,t.current=i}var W=z(null),se=z(null),re=z(null),ce=z(null);function be(t,i){switch(N(re,i),N(se,t),N(W,null),i.nodeType){case 9:case 11:t=(t=i.documentElement)&&(t=t.namespaceURI)?iy(t):0;break;default:if(t=i.tagName,i=i.namespaceURI)i=iy(i),t=ly(i,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(W),N(W,t)}function he(){U(W),U(se),U(re)}function Ge(t){t.memoizedState!==null&&N(ce,t);var i=W.current,a=ly(i,t.type);i!==a&&(N(se,t),N(W,a))}function We(t){se.current===t&&(U(W),U(se)),ce.current===t&&(U(ce),Xa._currentValue=ne)}var ot,tn;function St(t){if(ot===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);ot=i&&i[1]||"",tn=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+ot+t+tn}var nn=!1;function Xn(t,i){if(!t||nn)return"";nn=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(i){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(Q){var Y=Q}Reflect.construct(t,[],ie)}else{try{ie.call()}catch(Q){Y=Q}t.call(ie.prototype)}}else{try{throw Error()}catch(Q){Y=Q}(ie=t())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(Q){if(Q&&Y&&typeof Q.stack=="string")return[Q.stack,Y.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=s.DetermineComponentFrameRoot(),S=p[0],A=p[1];if(S&&A){var O=S.split(`
|
|
44
|
+
`),G=A.split(`
|
|
45
|
+
`);for(d=s=0;s<O.length&&!O[s].includes("DetermineComponentFrameRoot");)s++;for(;d<G.length&&!G[d].includes("DetermineComponentFrameRoot");)d++;if(s===O.length||d===G.length)for(s=O.length-1,d=G.length-1;1<=s&&0<=d&&O[s]!==G[d];)d--;for(;1<=s&&0<=d;s--,d--)if(O[s]!==G[d]){if(s!==1||d!==1)do if(s--,d--,0>d||O[s]!==G[d]){var Z=`
|
|
46
|
+
`+O[s].replace(" at new "," at ");return t.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",t.displayName)),Z}while(1<=s&&0<=d);break}}}finally{nn=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?St(a):""}function pi(t,i){switch(t.tag){case 26:case 27:case 5:return St(t.type);case 16:return St("Lazy");case 13:return t.child!==i&&i!==null?St("Suspense Fallback"):St("Suspense");case 19:return St("SuspenseList");case 0:case 15:return Xn(t.type,!1);case 11:return Xn(t.type.render,!1);case 1:return Xn(t.type,!0);case 31:return St("Activity");default:return""}}function gi(t){try{var i="",a=null;do i+=pi(t,a),a=t,t=t.return;while(t);return i}catch(s){return`
|
|
47
|
+
Error generating stack: `+s.message+`
|
|
48
|
+
`+s.stack}}var Kn=Object.prototype.hasOwnProperty,ai=e.unstable_scheduleCallback,zt=e.unstable_cancelCallback,Zn=e.unstable_shouldYield,$n=e.unstable_requestPaint,pt=e.unstable_now,bn=e.unstable_getCurrentPriorityLevel,K=e.unstable_ImmediatePriority,fe=e.unstable_UserBlockingPriority,we=e.unstable_NormalPriority,_e=e.unstable_LowPriority,He=e.unstable_IdlePriority,Vt=e.log,Mt=e.unstable_setDisableYieldValue,ft=null,gt=null;function xt(t){if(typeof Vt=="function"&&Mt(t),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(ft,t)}catch{}}var Be=Math.clz32?Math.clz32:Pi,Pt=Math.log,Zt=Math.LN2;function Pi(t){return t>>>=0,t===0?32:31-(Pt(t)/Zt|0)|0}var zn=256,un=262144,Mn=4194304;function qt(t){var i=t&42;if(i!==0)return i;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Jn(t,i,a){var s=t.pendingLanes;if(s===0)return 0;var d=0,p=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var A=s&134217727;return A!==0?(s=A&~p,s!==0?d=qt(s):(S&=A,S!==0?d=qt(S):a||(a=A&~t,a!==0&&(d=qt(a))))):(A=s&~p,A!==0?d=qt(A):S!==0?d=qt(S):a||(a=s&~t,a!==0&&(d=qt(a)))),d===0?0:i!==0&&i!==d&&(i&p)===0&&(p=d&-d,a=i&-i,p>=a||p===32&&(a&4194048)!==0)?i:d}function Gt(t,i){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&i)===0}function Ot(t,i){switch(t){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 yi(){var t=Mn;return Mn<<=1,(Mn&62914560)===0&&(Mn=4194304),t}function oi(t){for(var i=[],a=0;31>a;a++)i.push(t);return i}function de(t,i){t.pendingLanes|=i,i!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ze(t,i,a,s,d,p){var S=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var A=t.entanglements,O=t.expirationTimes,G=t.hiddenUpdates;for(a=S&~a;0<a;){var Z=31-Be(a),ie=1<<Z;A[Z]=0,O[Z]=-1;var Y=G[Z];if(Y!==null)for(G[Z]=null,Z=0;Z<Y.length;Z++){var Q=Y[Z];Q!==null&&(Q.lane&=-536870913)}a&=~ie}s!==0&&ze(t,s,0),p!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=p&~(S&~i))}function ze(t,i,a){t.pendingLanes|=i,t.suspendedLanes&=~i;var s=31-Be(i);t.entangledLanes|=i,t.entanglements[s]=t.entanglements[s]|1073741824|a&261930}function Le(t,i){var a=t.entangledLanes|=i;for(t=t.entanglements;a;){var s=31-Be(a),d=1<<s;d&i|t[s]&i&&(t[s]|=i),a&=~d}}function Et(t,i){var a=i&-i;return a=(a&42)!==0?1:Ft(a),(a&(t.suspendedLanes|i))!==0?0:a}function Ft(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 wt(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ae(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:Ty(t.type))}function On(t,i){var a=X.p;try{return X.p=t,i()}finally{X.p=a}}var $t=Math.random().toString(36).slice(2),dt="__reactFiber$"+$t,nt="__reactProps$"+$t,vi="__reactContainer$"+$t,lr="__reactEvents$"+$t,Wn="__reactListeners$"+$t,El="__reactHandles$"+$t,sa="__reactResources$"+$t,$e="__reactMarker$"+$t;function Al(t){delete t[dt],delete t[nt],delete t[lr],delete t[Wn],delete t[El]}function qi(t){var i=t[dt];if(i)return i;for(var a=t.parentNode;a;){if(i=a[vi]||a[dt]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(t=fy(t);t!==null;){if(a=t[dt])return a;t=fy(t)}return i}t=a,a=t.parentNode}return null}function Tl(t){if(t=t[dt]||t[vi]){var i=t.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return t}return null}function ei(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t.stateNode;throw Error(r(33))}function Gi(t){var i=t[sa];return i||(i=t[sa]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function At(t){t[$e]=!0}var ua=new Set,ca={};function bi(t,i){Yi(t,i),Yi(t+"Capture",i)}function Yi(t,i){for(ca[t]=i,t=0;t<i.length;t++)ua.add(i[t])}var Iu=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]*$"),_l={},Eo={};function rr(t){return Kn.call(Eo,t)?!0:Kn.call(_l,t)?!1:Iu.test(t)?Eo[t]=!0:(_l[t]=!0,!1)}function je(t,i,a){if(rr(i))if(a===null)t.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(i);return;case"boolean":var s=i.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(i);return}}t.setAttribute(i,""+a)}}function it(t,i,a){if(a===null)t.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttribute(i,""+a)}}function Tt(t,i,a,s){if(s===null)t.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(i,a,""+s)}}function yt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Bu(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Qx(t,i,a){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,i);if(!t.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,p=s.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return d.call(this)},set:function(S){a=""+S,p.call(this,S)}}),Object.defineProperty(t,i,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(S){a=""+S},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function Uu(t){if(!t._valueTracker){var i=Bu(t)?"checked":"value";t._valueTracker=Qx(t,i,""+t[i])}}function Zm(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var a=i.getValue(),s="";return t&&(s=Bu(t)?t.checked?"true":"false":t.value),t=s,t!==a?(i.setValue(t),!0):!1}function Ao(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Xx=/[\n"\\]/g;function jn(t){return t.replace(Xx,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Vu(t,i,a,s,d,p,S,A){t.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.type=S:t.removeAttribute("type"),i!=null?S==="number"?(i===0&&t.value===""||t.value!=i)&&(t.value=""+yt(i)):t.value!==""+yt(i)&&(t.value=""+yt(i)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),i!=null?Fu(t,S,yt(i)):a!=null?Fu(t,S,yt(a)):s!=null&&t.removeAttribute("value"),d==null&&p!=null&&(t.defaultChecked=!!p),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?t.name=""+yt(A):t.removeAttribute("name")}function $m(t,i,a,s,d,p,S,A){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),i!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||i!=null)){Uu(t);return}a=a!=null?""+yt(a):"",i=i!=null?""+yt(i):a,A||i===t.value||(t.value=i),t.defaultValue=i}s=s??d,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=A?t.checked:!!s,t.defaultChecked=!!s,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S),Uu(t)}function Fu(t,i,a){i==="number"&&Ao(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function ar(t,i,a,s){if(t=t.options,i){i={};for(var d=0;d<a.length;d++)i["$"+a[d]]=!0;for(a=0;a<t.length;a++)d=i.hasOwnProperty("$"+t[a].value),t[a].selected!==d&&(t[a].selected=d),d&&s&&(t[a].defaultSelected=!0)}else{for(a=""+yt(a),i=null,d=0;d<t.length;d++){if(t[d].value===a){t[d].selected=!0,s&&(t[d].defaultSelected=!0);return}i!==null||t[d].disabled||(i=t[d])}i!==null&&(i.selected=!0)}}function Jm(t,i,a){if(i!=null&&(i=""+yt(i),i!==t.value&&(t.value=i),a==null)){t.defaultValue!==i&&(t.defaultValue=i);return}t.defaultValue=a!=null?""+yt(a):""}function Wm(t,i,a,s){if(i==null){if(s!=null){if(a!=null)throw Error(r(92));if(le(s)){if(1<s.length)throw Error(r(93));s=s[0]}a=s}a==null&&(a=""),i=a}a=yt(i),t.defaultValue=a,s=t.textContent,s===a&&s!==""&&s!==null&&(t.value=s),Uu(t)}function or(t,i){if(i){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=i;return}}t.textContent=i}var Kx=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 eh(t,i,a){var s=i.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="":s?t.setProperty(i,a):typeof a!="number"||a===0||Kx.has(i)?i==="float"?t.cssFloat=a:t[i]=(""+a).trim():t[i]=a+"px"}function th(t,i,a){if(i!=null&&typeof i!="object")throw Error(r(62));if(t=t.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||i!=null&&i.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var d in i)s=i[d],i.hasOwnProperty(d)&&a[d]!==s&&eh(t,d,s)}else for(var p in i)i.hasOwnProperty(p)&&eh(t,p,i[p])}function Hu(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 Zx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$x=/^[\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 To(t){return $x.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function xi(){}var Pu=null;function qu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var sr=null,ur=null;function nh(t){var i=Tl(t);if(i&&(t=i.stateNode)){var a=t[nt]||null;e:switch(t=i.stateNode,i.type){case"input":if(Vu(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),i=a.name,a.type==="radio"&&i!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+jn(""+i)+'"][type="radio"]'),i=0;i<a.length;i++){var s=a[i];if(s!==t&&s.form===t.form){var d=s[nt]||null;if(!d)throw Error(r(90));Vu(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(i=0;i<a.length;i++)s=a[i],s.form===t.form&&Zm(s)}break e;case"textarea":Jm(t,a.value,a.defaultValue);break e;case"select":i=a.value,i!=null&&ar(t,!!a.multiple,i,!1)}}}var Gu=!1;function ih(t,i,a){if(Gu)return t(i,a);Gu=!0;try{var s=t(i);return s}finally{if(Gu=!1,(sr!==null||ur!==null)&&(hs(),sr&&(i=sr,t=ur,ur=sr=null,nh(i),t)))for(i=0;i<t.length;i++)nh(t[i])}}function fa(t,i){var a=t.stateNode;if(a===null)return null;var s=a[nt]||null;if(s===null)return null;a=s[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,i,typeof a));return a}var Si=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yu=!1;if(Si)try{var da={};Object.defineProperty(da,"passive",{get:function(){Yu=!0}}),window.addEventListener("test",da,da),window.removeEventListener("test",da,da)}catch{Yu=!1}var Qi=null,Qu=null,_o=null;function lh(){if(_o)return _o;var t,i=Qu,a=i.length,s,d="value"in Qi?Qi.value:Qi.textContent,p=d.length;for(t=0;t<a&&i[t]===d[t];t++);var S=a-t;for(s=1;s<=S&&i[a-s]===d[p-s];s++);return _o=d.slice(t,1<s?1-s:void 0)}function No(t){var i=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),32<=t||t===13?t:0}function zo(){return!0}function rh(){return!1}function cn(t){function i(a,s,d,p,S){this._reactName=a,this._targetInst=d,this.type=s,this.nativeEvent=p,this.target=S,this.currentTarget=null;for(var A in t)t.hasOwnProperty(A)&&(a=t[A],this[A]=a?a(p):p[A]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?zo:rh,this.isPropagationStopped=rh,this}return g(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=zo)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=zo)},persist:function(){},isPersistent:zo}),i}var Nl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mo=cn(Nl),ma=g({},Nl,{view:0,detail:0}),Jx=cn(ma),Xu,Ku,ha,Oo=g({},ma,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$u,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!==ha&&(ha&&t.type==="mousemove"?(Xu=t.screenX-ha.screenX,Ku=t.screenY-ha.screenY):Ku=Xu=0,ha=t),Xu)},movementY:function(t){return"movementY"in t?t.movementY:Ku}}),ah=cn(Oo),Wx=g({},Oo,{dataTransfer:0}),eS=cn(Wx),tS=g({},ma,{relatedTarget:0}),Zu=cn(tS),nS=g({},Nl,{animationName:0,elapsedTime:0,pseudoElement:0}),iS=cn(nS),lS=g({},Nl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),rS=cn(lS),aS=g({},Nl,{data:0}),oh=cn(aS),oS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},uS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cS(t){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(t):(t=uS[t])?!!i[t]:!1}function $u(){return cS}var fS=g({},ma,{key:function(t){if(t.key){var i=oS[t.key]||t.key;if(i!=="Unidentified")return i}return t.type==="keypress"?(t=No(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?sS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$u,charCode:function(t){return t.type==="keypress"?No(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?No(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),dS=cn(fS),mS=g({},Oo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sh=cn(mS),hS=g({},ma,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$u}),pS=cn(hS),gS=g({},Nl,{propertyName:0,elapsedTime:0,pseudoElement:0}),yS=cn(gS),vS=g({},Oo,{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}),bS=cn(vS),xS=g({},Nl,{newState:0,oldState:0}),SS=cn(xS),wS=[9,13,27,32],Ju=Si&&"CompositionEvent"in window,pa=null;Si&&"documentMode"in document&&(pa=document.documentMode);var kS=Si&&"TextEvent"in window&&!pa,uh=Si&&(!Ju||pa&&8<pa&&11>=pa),ch=" ",fh=!1;function dh(t,i){switch(t){case"keyup":return wS.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var cr=!1;function CS(t,i){switch(t){case"compositionend":return mh(i);case"keypress":return i.which!==32?null:(fh=!0,ch);case"textInput":return t=i.data,t===ch&&fh?null:t;default:return null}}function ES(t,i){if(cr)return t==="compositionend"||!Ju&&dh(t,i)?(t=lh(),_o=Qu=Qi=null,cr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return uh&&i.locale!=="ko"?null:i.data;default:return null}}var AS={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 hh(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!AS[t.type]:i==="textarea"}function ph(t,i,a,s){sr?ur?ur.push(s):ur=[s]:sr=s,i=Ss(i,"onChange"),0<i.length&&(a=new Mo("onChange","change",null,a,s),t.push({event:a,listeners:i}))}var ga=null,ya=null;function TS(t){$g(t,0)}function jo(t){var i=ei(t);if(Zm(i))return t}function gh(t,i){if(t==="change")return i}var yh=!1;if(Si){var Wu;if(Si){var ec="oninput"in document;if(!ec){var vh=document.createElement("div");vh.setAttribute("oninput","return;"),ec=typeof vh.oninput=="function"}Wu=ec}else Wu=!1;yh=Wu&&(!document.documentMode||9<document.documentMode)}function bh(){ga&&(ga.detachEvent("onpropertychange",xh),ya=ga=null)}function xh(t){if(t.propertyName==="value"&&jo(ya)){var i=[];ph(i,ya,t,qu(t)),ih(TS,i)}}function _S(t,i,a){t==="focusin"?(bh(),ga=i,ya=a,ga.attachEvent("onpropertychange",xh)):t==="focusout"&&bh()}function NS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return jo(ya)}function zS(t,i){if(t==="click")return jo(i)}function MS(t,i){if(t==="input"||t==="change")return jo(i)}function OS(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var xn=typeof Object.is=="function"?Object.is:OS;function va(t,i){if(xn(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var a=Object.keys(t),s=Object.keys(i);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var d=a[s];if(!Kn.call(i,d)||!xn(t[d],i[d]))return!1}return!0}function Sh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function wh(t,i){var a=Sh(t);t=0;for(var s;a;){if(a.nodeType===3){if(s=t+a.textContent.length,t<=i&&s>=i)return{node:a,offset:i-t};t=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Sh(a)}}function kh(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?kh(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function Ch(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var i=Ao(t.document);i instanceof t.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)t=i.contentWindow;else break;i=Ao(t.document)}return i}function tc(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}var jS=Si&&"documentMode"in document&&11>=document.documentMode,fr=null,nc=null,ba=null,ic=!1;function Eh(t,i,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ic||fr==null||fr!==Ao(s)||(s=fr,"selectionStart"in s&&tc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ba&&va(ba,s)||(ba=s,s=Ss(nc,"onSelect"),0<s.length&&(i=new Mo("onSelect","select",null,i,a),t.push({event:i,listeners:s}),i.target=fr)))}function zl(t,i){var a={};return a[t.toLowerCase()]=i.toLowerCase(),a["Webkit"+t]="webkit"+i,a["Moz"+t]="moz"+i,a}var dr={animationend:zl("Animation","AnimationEnd"),animationiteration:zl("Animation","AnimationIteration"),animationstart:zl("Animation","AnimationStart"),transitionrun:zl("Transition","TransitionRun"),transitionstart:zl("Transition","TransitionStart"),transitioncancel:zl("Transition","TransitionCancel"),transitionend:zl("Transition","TransitionEnd")},lc={},Ah={};Si&&(Ah=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);function Ml(t){if(lc[t])return lc[t];if(!dr[t])return t;var i=dr[t],a;for(a in i)if(i.hasOwnProperty(a)&&a in Ah)return lc[t]=i[a];return t}var Th=Ml("animationend"),_h=Ml("animationiteration"),Nh=Ml("animationstart"),RS=Ml("transitionrun"),DS=Ml("transitionstart"),LS=Ml("transitioncancel"),zh=Ml("transitionend"),Mh=new Map,rc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");rc.push("scrollEnd");function ti(t,i){Mh.set(t,i),bi(i,[t])}var Ro=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=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(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Rn=[],mr=0,ac=0;function Do(){for(var t=mr,i=ac=mr=0;i<t;){var a=Rn[i];Rn[i++]=null;var s=Rn[i];Rn[i++]=null;var d=Rn[i];Rn[i++]=null;var p=Rn[i];if(Rn[i++]=null,s!==null&&d!==null){var S=s.pending;S===null?d.next=d:(d.next=S.next,S.next=d),s.pending=d}p!==0&&Oh(a,d,p)}}function Lo(t,i,a,s){Rn[mr++]=t,Rn[mr++]=i,Rn[mr++]=a,Rn[mr++]=s,ac|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function oc(t,i,a,s){return Lo(t,i,a,s),Io(t)}function Ol(t,i){return Lo(t,null,null,i),Io(t)}function Oh(t,i,a){t.lanes|=a;var s=t.alternate;s!==null&&(s.lanes|=a);for(var d=!1,p=t.return;p!==null;)p.childLanes|=a,s=p.alternate,s!==null&&(s.childLanes|=a),p.tag===22&&(t=p.stateNode,t===null||t._visibility&1||(d=!0)),t=p,p=p.return;return t.tag===3?(p=t.stateNode,d&&i!==null&&(d=31-Be(a),t=p.hiddenUpdates,s=t[d],s===null?t[d]=[i]:s.push(i),i.lane=a|536870912),p):null}function Io(t){if(50<Fa)throw Fa=0,yf=null,Error(r(185));for(var i=t.return;i!==null;)t=i,i=t.return;return t.tag===3?t.stateNode:null}var hr={};function IS(t,i,a,s){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sn(t,i,a,s){return new IS(t,i,a,s)}function sc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function wi(t,i){var a=t.alternate;return a===null?(a=Sn(t.tag,i,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=i,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,i=t.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function jh(t,i){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=i,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,i=a.dependencies,t.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),t}function Bo(t,i,a,s,d,p){var S=0;if(s=t,typeof t=="function")sc(t)&&(S=1);else if(typeof t=="string")S=Hw(t,a,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case te:return t=Sn(31,a,i,d),t.elementType=te,t.lanes=p,t;case k:return jl(a.children,d,p,i);case T:S=8,d|=24;break;case _:return t=Sn(12,a,i,d|2),t.elementType=_,t.lanes=p,t;case F:return t=Sn(13,a,i,d),t.elementType=F,t.lanes=p,t;case R:return t=Sn(19,a,i,d),t.elementType=R,t.lanes=p,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case M:S=10;break e;case j:S=9;break e;case P:S=11;break e;case H:S=14;break e;case V:S=16,s=null;break e}S=29,a=Error(r(130,t===null?"null":typeof t,"")),s=null}return i=Sn(S,a,i,d),i.elementType=t,i.type=s,i.lanes=p,i}function jl(t,i,a,s){return t=Sn(7,t,s,i),t.lanes=a,t}function uc(t,i,a){return t=Sn(6,t,null,i),t.lanes=a,t}function Rh(t){var i=Sn(18,null,null,0);return i.stateNode=t,i}function cc(t,i,a){return i=Sn(4,t.children!==null?t.children:[],t.key,i),i.lanes=a,i.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},i}var Dh=new WeakMap;function Dn(t,i){if(typeof t=="object"&&t!==null){var a=Dh.get(t);return a!==void 0?a:(i={value:t,source:i,stack:gi(i)},Dh.set(t,i),i)}return{value:t,source:i,stack:gi(i)}}var pr=[],gr=0,Uo=null,xa=0,Ln=[],In=0,Xi=null,si=1,ui="";function ki(t,i){pr[gr++]=xa,pr[gr++]=Uo,Uo=t,xa=i}function Lh(t,i,a){Ln[In++]=si,Ln[In++]=ui,Ln[In++]=Xi,Xi=t;var s=si;t=ui;var d=32-Be(s)-1;s&=~(1<<d),a+=1;var p=32-Be(i)+d;if(30<p){var S=d-d%5;p=(s&(1<<S)-1).toString(32),s>>=S,d-=S,si=1<<32-Be(i)+d|a<<d|s,ui=p+t}else si=1<<p|a<<d|s,ui=t}function fc(t){t.return!==null&&(ki(t,1),Lh(t,1,0))}function dc(t){for(;t===Uo;)Uo=pr[--gr],pr[gr]=null,xa=pr[--gr],pr[gr]=null;for(;t===Xi;)Xi=Ln[--In],Ln[In]=null,ui=Ln[--In],Ln[In]=null,si=Ln[--In],Ln[In]=null}function Ih(t,i){Ln[In++]=si,Ln[In++]=ui,Ln[In++]=Xi,si=i.id,ui=i.overflow,Xi=t}var Yt=null,mt=null,Ye=!1,Ki=null,Bn=!1,mc=Error(r(519));function Zi(t){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Sa(Dn(i,t)),mc}function Bh(t){var i=t.stateNode,a=t.type,s=t.memoizedProps;switch(i[dt]=t,i[nt]=s,a){case"dialog":Ve("cancel",i),Ve("close",i);break;case"iframe":case"object":case"embed":Ve("load",i);break;case"video":case"audio":for(a=0;a<Pa.length;a++)Ve(Pa[a],i);break;case"source":Ve("error",i);break;case"img":case"image":case"link":Ve("error",i),Ve("load",i);break;case"details":Ve("toggle",i);break;case"input":Ve("invalid",i),$m(i,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ve("invalid",i);break;case"textarea":Ve("invalid",i),Wm(i,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||i.textContent===""+a||s.suppressHydrationWarning===!0||ty(i.textContent,a)?(s.popover!=null&&(Ve("beforetoggle",i),Ve("toggle",i)),s.onScroll!=null&&Ve("scroll",i),s.onScrollEnd!=null&&Ve("scrollend",i),s.onClick!=null&&(i.onclick=xi),i=!0):i=!1,i||Zi(t,!0)}function Uh(t){for(Yt=t.return;Yt;)switch(Yt.tag){case 5:case 31:case 13:Bn=!1;return;case 27:case 3:Bn=!0;return;default:Yt=Yt.return}}function yr(t){if(t!==Yt)return!1;if(!Ye)return Uh(t),Ye=!0,!1;var i=t.tag,a;if((a=i!==3&&i!==27)&&((a=i===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Of(t.type,t.memoizedProps)),a=!a),a&&mt&&Zi(t),Uh(t),i===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));mt=cy(t)}else if(i===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));mt=cy(t)}else i===27?(i=mt,cl(t.type)?(t=If,If=null,mt=t):mt=i):mt=Yt?Vn(t.stateNode.nextSibling):null;return!0}function Rl(){mt=Yt=null,Ye=!1}function hc(){var t=Ki;return t!==null&&(hn===null?hn=t:hn.push.apply(hn,t),Ki=null),t}function Sa(t){Ki===null?Ki=[t]:Ki.push(t)}var pc=z(null),Dl=null,Ci=null;function $i(t,i,a){N(pc,i._currentValue),i._currentValue=a}function Ei(t){t._currentValue=pc.current,U(pc)}function gc(t,i,a){for(;t!==null;){var s=t.alternate;if((t.childLanes&i)!==i?(t.childLanes|=i,s!==null&&(s.childLanes|=i)):s!==null&&(s.childLanes&i)!==i&&(s.childLanes|=i),t===a)break;t=t.return}}function yc(t,i,a,s){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var p=d.dependencies;if(p!==null){var S=d.child;p=p.firstContext;e:for(;p!==null;){var A=p;p=d;for(var O=0;O<i.length;O++)if(A.context===i[O]){p.lanes|=a,A=p.alternate,A!==null&&(A.lanes|=a),gc(p.return,a,t),s||(S=null);break e}p=A.next}}else if(d.tag===18){if(S=d.return,S===null)throw Error(r(341));S.lanes|=a,p=S.alternate,p!==null&&(p.lanes|=a),gc(S,a,t),S=null}else S=d.child;if(S!==null)S.return=d;else for(S=d;S!==null;){if(S===t){S=null;break}if(d=S.sibling,d!==null){d.return=S.return,S=d;break}S=S.return}d=S}}function vr(t,i,a,s){t=null;for(var d=i,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var S=d.alternate;if(S===null)throw Error(r(387));if(S=S.memoizedProps,S!==null){var A=d.type;xn(d.pendingProps.value,S.value)||(t!==null?t.push(A):t=[A])}}else if(d===ce.current){if(S=d.alternate,S===null)throw Error(r(387));S.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(Xa):t=[Xa])}d=d.return}t!==null&&yc(i,t,a,s),i.flags|=262144}function Vo(t){for(t=t.firstContext;t!==null;){if(!xn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ll(t){Dl=t,Ci=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Qt(t){return Vh(Dl,t)}function Fo(t,i){return Dl===null&&Ll(t),Vh(t,i)}function Vh(t,i){var a=i._currentValue;if(i={context:i,memoizedValue:a,next:null},Ci===null){if(t===null)throw Error(r(308));Ci=i,t.dependencies={lanes:0,firstContext:i},t.flags|=524288}else Ci=Ci.next=i;return a}var BS=typeof AbortController<"u"?AbortController:function(){var t=[],i=this.signal={aborted:!1,addEventListener:function(a,s){t.push(s)}};this.abort=function(){i.aborted=!0,t.forEach(function(a){return a()})}},US=e.unstable_scheduleCallback,VS=e.unstable_NormalPriority,jt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vc(){return{controller:new BS,data:new Map,refCount:0}}function wa(t){t.refCount--,t.refCount===0&&US(VS,function(){t.controller.abort()})}var ka=null,bc=0,br=0,xr=null;function FS(t,i){if(ka===null){var a=ka=[];bc=0,br=kf(),xr={status:"pending",value:void 0,then:function(s){a.push(s)}}}return bc++,i.then(Fh,Fh),i}function Fh(){if(--bc===0&&ka!==null){xr!==null&&(xr.status="fulfilled");var t=ka;ka=null,br=0,xr=null;for(var i=0;i<t.length;i++)(0,t[i])()}}function HS(t,i){var a=[],s={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return t.then(function(){s.status="fulfilled",s.value=i;for(var d=0;d<a.length;d++)(0,a[d])(i)},function(d){for(s.status="rejected",s.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),s}var Hh=L.S;L.S=function(t,i){Eg=pt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&FS(t,i),Hh!==null&&Hh(t,i)};var Il=z(null);function xc(){var t=Il.current;return t!==null?t:st.pooledCache}function Ho(t,i){i===null?N(Il,Il.current):N(Il,i.pool)}function Ph(){var t=xc();return t===null?null:{parent:jt._currentValue,pool:t}}var Sr=Error(r(460)),Sc=Error(r(474)),Po=Error(r(542)),qo={then:function(){}};function qh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Gh(t,i,a){switch(a=t[a],a===void 0?t.push(i):a!==i&&(i.then(xi,xi),i=a),i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,Qh(t),t;default:if(typeof i.status=="string")i.then(xi,xi);else{if(t=st,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=i,t.status="pending",t.then(function(s){if(i.status==="pending"){var d=i;d.status="fulfilled",d.value=s}},function(s){if(i.status==="pending"){var d=i;d.status="rejected",d.reason=s}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,Qh(t),t}throw Ul=i,Sr}}function Bl(t){try{var i=t._init;return i(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ul=a,Sr):a}}var Ul=null;function Yh(){if(Ul===null)throw Error(r(459));var t=Ul;return Ul=null,t}function Qh(t){if(t===Sr||t===Po)throw Error(r(483))}var wr=null,Ca=0;function Go(t){var i=Ca;return Ca+=1,wr===null&&(wr=[]),Gh(wr,t,i)}function Ea(t,i){i=i.props.ref,t.ref=i!==void 0?i:null}function Yo(t,i){throw i.$$typeof===v?Error(r(525)):(t=Object.prototype.toString.call(i),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":t)))}function Xh(t){function i(B,D){if(t){var q=B.deletions;q===null?(B.deletions=[D],B.flags|=16):q.push(D)}}function a(B,D){if(!t)return null;for(;D!==null;)i(B,D),D=D.sibling;return null}function s(B){for(var D=new Map;B!==null;)B.key!==null?D.set(B.key,B):D.set(B.index,B),B=B.sibling;return D}function d(B,D){return B=wi(B,D),B.index=0,B.sibling=null,B}function p(B,D,q){return B.index=q,t?(q=B.alternate,q!==null?(q=q.index,q<D?(B.flags|=67108866,D):q):(B.flags|=67108866,D)):(B.flags|=1048576,D)}function S(B){return t&&B.alternate===null&&(B.flags|=67108866),B}function A(B,D,q,ee){return D===null||D.tag!==6?(D=uc(q,B.mode,ee),D.return=B,D):(D=d(D,q),D.return=B,D)}function O(B,D,q,ee){var Se=q.type;return Se===k?Z(B,D,q.props.children,ee,q.key):D!==null&&(D.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===V&&Bl(Se)===D.type)?(D=d(D,q.props),Ea(D,q),D.return=B,D):(D=Bo(q.type,q.key,q.props,null,B.mode,ee),Ea(D,q),D.return=B,D)}function G(B,D,q,ee){return D===null||D.tag!==4||D.stateNode.containerInfo!==q.containerInfo||D.stateNode.implementation!==q.implementation?(D=cc(q,B.mode,ee),D.return=B,D):(D=d(D,q.children||[]),D.return=B,D)}function Z(B,D,q,ee,Se){return D===null||D.tag!==7?(D=jl(q,B.mode,ee,Se),D.return=B,D):(D=d(D,q),D.return=B,D)}function ie(B,D,q){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=uc(""+D,B.mode,q),D.return=B,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case b:return q=Bo(D.type,D.key,D.props,null,B.mode,q),Ea(q,D),q.return=B,q;case w:return D=cc(D,B.mode,q),D.return=B,D;case V:return D=Bl(D),ie(B,D,q)}if(le(D)||ae(D))return D=jl(D,B.mode,q,null),D.return=B,D;if(typeof D.then=="function")return ie(B,Go(D),q);if(D.$$typeof===M)return ie(B,Fo(B,D),q);Yo(B,D)}return null}function Y(B,D,q,ee){var Se=D!==null?D.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Se!==null?null:A(B,D,""+q,ee);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case b:return q.key===Se?O(B,D,q,ee):null;case w:return q.key===Se?G(B,D,q,ee):null;case V:return q=Bl(q),Y(B,D,q,ee)}if(le(q)||ae(q))return Se!==null?null:Z(B,D,q,ee,null);if(typeof q.then=="function")return Y(B,D,Go(q),ee);if(q.$$typeof===M)return Y(B,D,Fo(B,q),ee);Yo(B,q)}return null}function Q(B,D,q,ee,Se){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return B=B.get(q)||null,A(D,B,""+ee,Se);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case b:return B=B.get(ee.key===null?q:ee.key)||null,O(D,B,ee,Se);case w:return B=B.get(ee.key===null?q:ee.key)||null,G(D,B,ee,Se);case V:return ee=Bl(ee),Q(B,D,q,ee,Se)}if(le(ee)||ae(ee))return B=B.get(q)||null,Z(D,B,ee,Se,null);if(typeof ee.then=="function")return Q(B,D,q,Go(ee),Se);if(ee.$$typeof===M)return Q(B,D,q,Fo(D,ee),Se);Yo(D,ee)}return null}function pe(B,D,q,ee){for(var Se=null,Xe=null,ve=D,Re=D=0,qe=null;ve!==null&&Re<q.length;Re++){ve.index>Re?(qe=ve,ve=null):qe=ve.sibling;var Ke=Y(B,ve,q[Re],ee);if(Ke===null){ve===null&&(ve=qe);break}t&&ve&&Ke.alternate===null&&i(B,ve),D=p(Ke,D,Re),Xe===null?Se=Ke:Xe.sibling=Ke,Xe=Ke,ve=qe}if(Re===q.length)return a(B,ve),Ye&&ki(B,Re),Se;if(ve===null){for(;Re<q.length;Re++)ve=ie(B,q[Re],ee),ve!==null&&(D=p(ve,D,Re),Xe===null?Se=ve:Xe.sibling=ve,Xe=ve);return Ye&&ki(B,Re),Se}for(ve=s(ve);Re<q.length;Re++)qe=Q(ve,B,Re,q[Re],ee),qe!==null&&(t&&qe.alternate!==null&&ve.delete(qe.key===null?Re:qe.key),D=p(qe,D,Re),Xe===null?Se=qe:Xe.sibling=qe,Xe=qe);return t&&ve.forEach(function(pl){return i(B,pl)}),Ye&&ki(B,Re),Se}function Ce(B,D,q,ee){if(q==null)throw Error(r(151));for(var Se=null,Xe=null,ve=D,Re=D=0,qe=null,Ke=q.next();ve!==null&&!Ke.done;Re++,Ke=q.next()){ve.index>Re?(qe=ve,ve=null):qe=ve.sibling;var pl=Y(B,ve,Ke.value,ee);if(pl===null){ve===null&&(ve=qe);break}t&&ve&&pl.alternate===null&&i(B,ve),D=p(pl,D,Re),Xe===null?Se=pl:Xe.sibling=pl,Xe=pl,ve=qe}if(Ke.done)return a(B,ve),Ye&&ki(B,Re),Se;if(ve===null){for(;!Ke.done;Re++,Ke=q.next())Ke=ie(B,Ke.value,ee),Ke!==null&&(D=p(Ke,D,Re),Xe===null?Se=Ke:Xe.sibling=Ke,Xe=Ke);return Ye&&ki(B,Re),Se}for(ve=s(ve);!Ke.done;Re++,Ke=q.next())Ke=Q(ve,B,Re,Ke.value,ee),Ke!==null&&(t&&Ke.alternate!==null&&ve.delete(Ke.key===null?Re:Ke.key),D=p(Ke,D,Re),Xe===null?Se=Ke:Xe.sibling=Ke,Xe=Ke);return t&&ve.forEach(function(Ww){return i(B,Ww)}),Ye&&ki(B,Re),Se}function at(B,D,q,ee){if(typeof q=="object"&&q!==null&&q.type===k&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case b:e:{for(var Se=q.key;D!==null;){if(D.key===Se){if(Se=q.type,Se===k){if(D.tag===7){a(B,D.sibling),ee=d(D,q.props.children),ee.return=B,B=ee;break e}}else if(D.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===V&&Bl(Se)===D.type){a(B,D.sibling),ee=d(D,q.props),Ea(ee,q),ee.return=B,B=ee;break e}a(B,D);break}else i(B,D);D=D.sibling}q.type===k?(ee=jl(q.props.children,B.mode,ee,q.key),ee.return=B,B=ee):(ee=Bo(q.type,q.key,q.props,null,B.mode,ee),Ea(ee,q),ee.return=B,B=ee)}return S(B);case w:e:{for(Se=q.key;D!==null;){if(D.key===Se)if(D.tag===4&&D.stateNode.containerInfo===q.containerInfo&&D.stateNode.implementation===q.implementation){a(B,D.sibling),ee=d(D,q.children||[]),ee.return=B,B=ee;break e}else{a(B,D);break}else i(B,D);D=D.sibling}ee=cc(q,B.mode,ee),ee.return=B,B=ee}return S(B);case V:return q=Bl(q),at(B,D,q,ee)}if(le(q))return pe(B,D,q,ee);if(ae(q)){if(Se=ae(q),typeof Se!="function")throw Error(r(150));return q=Se.call(q),Ce(B,D,q,ee)}if(typeof q.then=="function")return at(B,D,Go(q),ee);if(q.$$typeof===M)return at(B,D,Fo(B,q),ee);Yo(B,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,D!==null&&D.tag===6?(a(B,D.sibling),ee=d(D,q),ee.return=B,B=ee):(a(B,D),ee=uc(q,B.mode,ee),ee.return=B,B=ee),S(B)):a(B,D)}return function(B,D,q,ee){try{Ca=0;var Se=at(B,D,q,ee);return wr=null,Se}catch(ve){if(ve===Sr||ve===Po)throw ve;var Xe=Sn(29,ve,null,B.mode);return Xe.lanes=ee,Xe.return=B,Xe}finally{}}}var Vl=Xh(!0),Kh=Xh(!1),Ji=!1;function wc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function kc(t,i){t=t.updateQueue,i.updateQueue===t&&(i.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Wi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function el(t,i,a){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Je&2)!==0){var d=s.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),s.pending=i,i=Io(t),Oh(t,null,a),i}return Lo(t,s,i,a),Io(t)}function Aa(t,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194048)!==0)){var s=i.lanes;s&=t.pendingLanes,a|=s,i.lanes=a,Le(t,a)}}function Cc(t,i){var a=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var S={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?d=p=S:p=p.next=S,a=a.next}while(a!==null);p===null?d=p=i:p=p.next=i}else d=p=i;a={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:s.shared,callbacks:s.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=i:t.next=i,a.lastBaseUpdate=i}var Ec=!1;function Ta(){if(Ec){var t=xr;if(t!==null)throw t}}function _a(t,i,a,s){Ec=!1;var d=t.updateQueue;Ji=!1;var p=d.firstBaseUpdate,S=d.lastBaseUpdate,A=d.shared.pending;if(A!==null){d.shared.pending=null;var O=A,G=O.next;O.next=null,S===null?p=G:S.next=G,S=O;var Z=t.alternate;Z!==null&&(Z=Z.updateQueue,A=Z.lastBaseUpdate,A!==S&&(A===null?Z.firstBaseUpdate=G:A.next=G,Z.lastBaseUpdate=O))}if(p!==null){var ie=d.baseState;S=0,Z=G=O=null,A=p;do{var Y=A.lane&-536870913,Q=Y!==A.lane;if(Q?(Pe&Y)===Y:(s&Y)===Y){Y!==0&&Y===br&&(Ec=!0),Z!==null&&(Z=Z.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var pe=t,Ce=A;Y=i;var at=a;switch(Ce.tag){case 1:if(pe=Ce.payload,typeof pe=="function"){ie=pe.call(at,ie,Y);break e}ie=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Ce.payload,Y=typeof pe=="function"?pe.call(at,ie,Y):pe,Y==null)break e;ie=g({},ie,Y);break e;case 2:Ji=!0}}Y=A.callback,Y!==null&&(t.flags|=64,Q&&(t.flags|=8192),Q=d.callbacks,Q===null?d.callbacks=[Y]:Q.push(Y))}else Q={lane:Y,tag:A.tag,payload:A.payload,callback:A.callback,next:null},Z===null?(G=Z=Q,O=ie):Z=Z.next=Q,S|=Y;if(A=A.next,A===null){if(A=d.shared.pending,A===null)break;Q=A,A=Q.next,Q.next=null,d.lastBaseUpdate=Q,d.shared.pending=null}}while(!0);Z===null&&(O=ie),d.baseState=O,d.firstBaseUpdate=G,d.lastBaseUpdate=Z,p===null&&(d.shared.lanes=0),rl|=S,t.lanes=S,t.memoizedState=ie}}function Zh(t,i){if(typeof t!="function")throw Error(r(191,t));t.call(i)}function $h(t,i){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Zh(a[t],i)}var kr=z(null),Qo=z(0);function Jh(t,i){t=Ri,N(Qo,t),N(kr,i),Ri=t|i.baseLanes}function Ac(){N(Qo,Ri),N(kr,kr.current)}function Tc(){Ri=Qo.current,U(kr),U(Qo)}var wn=z(null),Un=null;function tl(t){var i=t.alternate;N(_t,_t.current&1),N(wn,t),Un===null&&(i===null||kr.current!==null||i.memoizedState!==null)&&(Un=t)}function _c(t){N(_t,_t.current),N(wn,t),Un===null&&(Un=t)}function Wh(t){t.tag===22?(N(_t,_t.current),N(wn,t),Un===null&&(Un=t)):nl()}function nl(){N(_t,_t.current),N(wn,wn.current)}function kn(t){U(wn),Un===t&&(Un=null),U(_t)}var _t=z(0);function Xo(t){for(var i=t;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Df(a)||Lf(a)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Ai=0,Oe=null,lt=null,Rt=null,Ko=!1,Cr=!1,Fl=!1,Zo=0,Na=0,Er=null,PS=0;function kt(){throw Error(r(321))}function Nc(t,i){if(i===null)return!1;for(var a=0;a<i.length&&a<t.length;a++)if(!xn(t[a],i[a]))return!1;return!0}function zc(t,i,a,s,d,p){return Ai=p,Oe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,L.H=t===null||t.memoizedState===null?Lp:Gc,Fl=!1,p=a(s,d),Fl=!1,Cr&&(p=tp(i,a,s,d)),ep(t),p}function ep(t){L.H=Oa;var i=lt!==null&<.next!==null;if(Ai=0,Rt=lt=Oe=null,Ko=!1,Na=0,Er=null,i)throw Error(r(300));t===null||Dt||(t=t.dependencies,t!==null&&Vo(t)&&(Dt=!0))}function tp(t,i,a,s){Oe=t;var d=0;do{if(Cr&&(Er=null),Na=0,Cr=!1,25<=d)throw Error(r(301));if(d+=1,Rt=lt=null,t.updateQueue!=null){var p=t.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}L.H=Ip,p=i(a,s)}while(Cr);return p}function qS(){var t=L.H,i=t.useState()[0];return i=typeof i.then=="function"?za(i):i,t=t.useState()[0],(lt!==null?lt.memoizedState:null)!==t&&(Oe.flags|=1024),i}function Mc(){var t=Zo!==0;return Zo=0,t}function Oc(t,i,a){i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~a}function jc(t){if(Ko){for(t=t.memoizedState;t!==null;){var i=t.queue;i!==null&&(i.pending=null),t=t.next}Ko=!1}Ai=0,Rt=lt=Oe=null,Cr=!1,Na=Zo=0,Er=null}function ln(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?Oe.memoizedState=Rt=t:Rt=Rt.next=t,Rt}function Nt(){if(lt===null){var t=Oe.alternate;t=t!==null?t.memoizedState:null}else t=lt.next;var i=Rt===null?Oe.memoizedState:Rt.next;if(i!==null)Rt=i,lt=t;else{if(t===null)throw Oe.alternate===null?Error(r(467)):Error(r(310));lt=t,t={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},Rt===null?Oe.memoizedState=Rt=t:Rt=Rt.next=t}return Rt}function $o(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function za(t){var i=Na;return Na+=1,Er===null&&(Er=[]),t=Gh(Er,t,i),i=Oe,(Rt===null?i.memoizedState:Rt.next)===null&&(i=i.alternate,L.H=i===null||i.memoizedState===null?Lp:Gc),t}function Jo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return za(t);if(t.$$typeof===M)return Qt(t)}throw Error(r(438,String(t)))}function Rc(t){var i=null,a=Oe.updateQueue;if(a!==null&&(i=a.memoCache),i==null){var s=Oe.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(i={data:s.data.map(function(d){return d.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),a===null&&(a=$o(),Oe.updateQueue=a),a.memoCache=i,a=i.data[i.index],a===void 0)for(a=i.data[i.index]=Array(t),s=0;s<t;s++)a[s]=I;return i.index++,a}function Ti(t,i){return typeof i=="function"?i(t):i}function Wo(t){var i=Nt();return Dc(i,lt,t)}function Dc(t,i,a){var s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=a;var d=t.baseQueue,p=s.pending;if(p!==null){if(d!==null){var S=d.next;d.next=p.next,p.next=S}i.baseQueue=d=p,s.pending=null}if(p=t.baseState,d===null)t.memoizedState=p;else{i=d.next;var A=S=null,O=null,G=i,Z=!1;do{var ie=G.lane&-536870913;if(ie!==G.lane?(Pe&ie)===ie:(Ai&ie)===ie){var Y=G.revertLane;if(Y===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),ie===br&&(Z=!0);else if((Ai&Y)===Y){G=G.next,Y===br&&(Z=!0);continue}else ie={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},O===null?(A=O=ie,S=p):O=O.next=ie,Oe.lanes|=Y,rl|=Y;ie=G.action,Fl&&a(p,ie),p=G.hasEagerState?G.eagerState:a(p,ie)}else Y={lane:ie,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},O===null?(A=O=Y,S=p):O=O.next=Y,Oe.lanes|=ie,rl|=ie;G=G.next}while(G!==null&&G!==i);if(O===null?S=p:O.next=A,!xn(p,t.memoizedState)&&(Dt=!0,Z&&(a=xr,a!==null)))throw a;t.memoizedState=p,t.baseState=S,t.baseQueue=O,s.lastRenderedState=p}return d===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function Lc(t){var i=Nt(),a=i.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var s=a.dispatch,d=a.pending,p=i.memoizedState;if(d!==null){a.pending=null;var S=d=d.next;do p=t(p,S.action),S=S.next;while(S!==d);xn(p,i.memoizedState)||(Dt=!0),i.memoizedState=p,i.baseQueue===null&&(i.baseState=p),a.lastRenderedState=p}return[p,s]}function np(t,i,a){var s=Oe,d=Nt(),p=Ye;if(p){if(a===void 0)throw Error(r(407));a=a()}else a=i();var S=!xn((lt||d).memoizedState,a);if(S&&(d.memoizedState=a,Dt=!0),d=d.queue,Uc(rp.bind(null,s,d,t),[t]),d.getSnapshot!==i||S||Rt!==null&&Rt.memoizedState.tag&1){if(s.flags|=2048,Ar(9,{destroy:void 0},lp.bind(null,s,d,a,i),null),st===null)throw Error(r(349));p||(Ai&127)!==0||ip(s,i,a)}return a}function ip(t,i,a){t.flags|=16384,t={getSnapshot:i,value:a},i=Oe.updateQueue,i===null?(i=$o(),Oe.updateQueue=i,i.stores=[t]):(a=i.stores,a===null?i.stores=[t]:a.push(t))}function lp(t,i,a,s){i.value=a,i.getSnapshot=s,ap(i)&&op(t)}function rp(t,i,a){return a(function(){ap(i)&&op(t)})}function ap(t){var i=t.getSnapshot;t=t.value;try{var a=i();return!xn(t,a)}catch{return!0}}function op(t){var i=Ol(t,2);i!==null&&pn(i,t,2)}function Ic(t){var i=ln();if(typeof t=="function"){var a=t;if(t=a(),Fl){xt(!0);try{a()}finally{xt(!1)}}}return i.memoizedState=i.baseState=t,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:t},i}function sp(t,i,a,s){return t.baseState=a,Dc(t,lt,typeof s=="function"?s:Ti)}function GS(t,i,a,s,d){if(ns(t))throw Error(r(485));if(t=i.action,t!==null){var p={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){p.listeners.push(S)}};L.T!==null?a(!0):p.isTransition=!1,s(p),a=i.pending,a===null?(p.next=i.pending=p,up(i,p)):(p.next=a.next,i.pending=a.next=p)}}function up(t,i){var a=i.action,s=i.payload,d=t.state;if(i.isTransition){var p=L.T,S={};L.T=S;try{var A=a(d,s),O=L.S;O!==null&&O(S,A),cp(t,i,A)}catch(G){Bc(t,i,G)}finally{p!==null&&S.types!==null&&(p.types=S.types),L.T=p}}else try{p=a(d,s),cp(t,i,p)}catch(G){Bc(t,i,G)}}function cp(t,i,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){fp(t,i,s)},function(s){return Bc(t,i,s)}):fp(t,i,a)}function fp(t,i,a){i.status="fulfilled",i.value=a,dp(i),t.state=a,i=t.pending,i!==null&&(a=i.next,a===i?t.pending=null:(a=a.next,i.next=a,up(t,a)))}function Bc(t,i,a){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do i.status="rejected",i.reason=a,dp(i),i=i.next;while(i!==s)}t.action=null}function dp(t){t=t.listeners;for(var i=0;i<t.length;i++)(0,t[i])()}function mp(t,i){return i}function hp(t,i){if(Ye){var a=st.formState;if(a!==null){e:{var s=Oe;if(Ye){if(mt){t:{for(var d=mt,p=Bn;d.nodeType!==8;){if(!p){d=null;break t}if(d=Vn(d.nextSibling),d===null){d=null;break t}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){mt=Vn(d.nextSibling),s=d.data==="F!";break e}}Zi(s)}s=!1}s&&(i=a[0])}}return a=ln(),a.memoizedState=a.baseState=i,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mp,lastRenderedState:i},a.queue=s,a=jp.bind(null,Oe,s),s.dispatch=a,s=Ic(!1),p=qc.bind(null,Oe,!1,s.queue),s=ln(),d={state:i,dispatch:null,action:t,pending:null},s.queue=d,a=GS.bind(null,Oe,d,p,a),d.dispatch=a,s.memoizedState=t,[i,a,!1]}function pp(t){var i=Nt();return gp(i,lt,t)}function gp(t,i,a){if(i=Dc(t,i,mp)[0],t=Wo(Ti)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var s=za(i)}catch(S){throw S===Sr?Po:S}else s=i;i=Nt();var d=i.queue,p=d.dispatch;return a!==i.memoizedState&&(Oe.flags|=2048,Ar(9,{destroy:void 0},YS.bind(null,d,a),null)),[s,p,t]}function YS(t,i){t.action=i}function yp(t){var i=Nt(),a=lt;if(a!==null)return gp(i,a,t);Nt(),i=i.memoizedState,a=Nt();var s=a.queue.dispatch;return a.memoizedState=t,[i,s,!1]}function Ar(t,i,a,s){return t={tag:t,create:a,deps:s,inst:i,next:null},i=Oe.updateQueue,i===null&&(i=$o(),Oe.updateQueue=i),a=i.lastEffect,a===null?i.lastEffect=t.next=t:(s=a.next,a.next=t,t.next=s,i.lastEffect=t),t}function vp(){return Nt().memoizedState}function es(t,i,a,s){var d=ln();Oe.flags|=t,d.memoizedState=Ar(1|i,{destroy:void 0},a,s===void 0?null:s)}function ts(t,i,a,s){var d=Nt();s=s===void 0?null:s;var p=d.memoizedState.inst;lt!==null&&s!==null&&Nc(s,lt.memoizedState.deps)?d.memoizedState=Ar(i,p,a,s):(Oe.flags|=t,d.memoizedState=Ar(1|i,p,a,s))}function bp(t,i){es(8390656,8,t,i)}function Uc(t,i){ts(2048,8,t,i)}function QS(t){Oe.flags|=4;var i=Oe.updateQueue;if(i===null)i=$o(),Oe.updateQueue=i,i.events=[t];else{var a=i.events;a===null?i.events=[t]:a.push(t)}}function xp(t){var i=Nt().memoizedState;return QS({ref:i,nextImpl:t}),function(){if((Je&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function Sp(t,i){return ts(4,2,t,i)}function wp(t,i){return ts(4,4,t,i)}function kp(t,i){if(typeof i=="function"){t=t();var a=i(t);return function(){typeof a=="function"?a():i(null)}}if(i!=null)return t=t(),i.current=t,function(){i.current=null}}function Cp(t,i,a){a=a!=null?a.concat([t]):null,ts(4,4,kp.bind(null,i,t),a)}function Vc(){}function Ep(t,i){var a=Nt();i=i===void 0?null:i;var s=a.memoizedState;return i!==null&&Nc(i,s[1])?s[0]:(a.memoizedState=[t,i],t)}function Ap(t,i){var a=Nt();i=i===void 0?null:i;var s=a.memoizedState;if(i!==null&&Nc(i,s[1]))return s[0];if(s=t(),Fl){xt(!0);try{t()}finally{xt(!1)}}return a.memoizedState=[s,i],s}function Fc(t,i,a){return a===void 0||(Ai&1073741824)!==0&&(Pe&261930)===0?t.memoizedState=i:(t.memoizedState=a,t=Tg(),Oe.lanes|=t,rl|=t,a)}function Tp(t,i,a,s){return xn(a,i)?a:kr.current!==null?(t=Fc(t,a,s),xn(t,i)||(Dt=!0),t):(Ai&42)===0||(Ai&1073741824)!==0&&(Pe&261930)===0?(Dt=!0,t.memoizedState=a):(t=Tg(),Oe.lanes|=t,rl|=t,i)}function _p(t,i,a,s,d){var p=X.p;X.p=p!==0&&8>p?p:8;var S=L.T,A={};L.T=A,qc(t,!1,i,a);try{var O=d(),G=L.S;if(G!==null&&G(A,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var Z=HS(O,s);Ma(t,i,Z,An(t))}else Ma(t,i,s,An(t))}catch(ie){Ma(t,i,{then:function(){},status:"rejected",reason:ie},An())}finally{X.p=p,S!==null&&A.types!==null&&(S.types=A.types),L.T=S}}function XS(){}function Hc(t,i,a,s){if(t.tag!==5)throw Error(r(476));var d=Np(t).queue;_p(t,d,i,ne,a===null?XS:function(){return zp(t),a(s)})}function Np(t){var i=t.memoizedState;if(i!==null)return i;i={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:ne},next:null};var a={};return i.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:a},next:null},t.memoizedState=i,t=t.alternate,t!==null&&(t.memoizedState=i),i}function zp(t){var i=Np(t);i.next===null&&(i=t.alternate.memoizedState),Ma(t,i.next.queue,{},An())}function Pc(){return Qt(Xa)}function Mp(){return Nt().memoizedState}function Op(){return Nt().memoizedState}function KS(t){for(var i=t.return;i!==null;){switch(i.tag){case 24:case 3:var a=An();t=Wi(a);var s=el(i,t,a);s!==null&&(pn(s,i,a),Aa(s,i,a)),i={cache:vc()},t.payload=i;return}i=i.return}}function ZS(t,i,a){var s=An();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ns(t)?Rp(i,a):(a=oc(t,i,a,s),a!==null&&(pn(a,t,s),Dp(a,i,s)))}function jp(t,i,a){var s=An();Ma(t,i,a,s)}function Ma(t,i,a,s){var d={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ns(t))Rp(i,d);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=i.lastRenderedReducer,p!==null))try{var S=i.lastRenderedState,A=p(S,a);if(d.hasEagerState=!0,d.eagerState=A,xn(A,S))return Lo(t,i,d,0),st===null&&Do(),!1}catch{}finally{}if(a=oc(t,i,d,s),a!==null)return pn(a,t,s),Dp(a,i,s),!0}return!1}function qc(t,i,a,s){if(s={lane:2,revertLane:kf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},ns(t)){if(i)throw Error(r(479))}else i=oc(t,a,s,2),i!==null&&pn(i,t,2)}function ns(t){var i=t.alternate;return t===Oe||i!==null&&i===Oe}function Rp(t,i){Cr=Ko=!0;var a=t.pending;a===null?i.next=i:(i.next=a.next,a.next=i),t.pending=i}function Dp(t,i,a){if((a&4194048)!==0){var s=i.lanes;s&=t.pendingLanes,a|=s,i.lanes=a,Le(t,a)}}var Oa={readContext:Qt,use:Jo,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt};Oa.useEffectEvent=kt;var Lp={readContext:Qt,use:Jo,useCallback:function(t,i){return ln().memoizedState=[t,i===void 0?null:i],t},useContext:Qt,useEffect:bp,useImperativeHandle:function(t,i,a){a=a!=null?a.concat([t]):null,es(4194308,4,kp.bind(null,i,t),a)},useLayoutEffect:function(t,i){return es(4194308,4,t,i)},useInsertionEffect:function(t,i){es(4,2,t,i)},useMemo:function(t,i){var a=ln();i=i===void 0?null:i;var s=t();if(Fl){xt(!0);try{t()}finally{xt(!1)}}return a.memoizedState=[s,i],s},useReducer:function(t,i,a){var s=ln();if(a!==void 0){var d=a(i);if(Fl){xt(!0);try{a(i)}finally{xt(!1)}}}else d=i;return s.memoizedState=s.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},s.queue=t,t=t.dispatch=ZS.bind(null,Oe,t),[s.memoizedState,t]},useRef:function(t){var i=ln();return t={current:t},i.memoizedState=t},useState:function(t){t=Ic(t);var i=t.queue,a=jp.bind(null,Oe,i);return i.dispatch=a,[t.memoizedState,a]},useDebugValue:Vc,useDeferredValue:function(t,i){var a=ln();return Fc(a,t,i)},useTransition:function(){var t=Ic(!1);return t=_p.bind(null,Oe,t.queue,!0,!1),ln().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,i,a){var s=Oe,d=ln();if(Ye){if(a===void 0)throw Error(r(407));a=a()}else{if(a=i(),st===null)throw Error(r(349));(Pe&127)!==0||ip(s,i,a)}d.memoizedState=a;var p={value:a,getSnapshot:i};return d.queue=p,bp(rp.bind(null,s,p,t),[t]),s.flags|=2048,Ar(9,{destroy:void 0},lp.bind(null,s,p,a,i),null),a},useId:function(){var t=ln(),i=st.identifierPrefix;if(Ye){var a=ui,s=si;a=(s&~(1<<32-Be(s)-1)).toString(32)+a,i="_"+i+"R_"+a,a=Zo++,0<a&&(i+="H"+a.toString(32)),i+="_"}else a=PS++,i="_"+i+"r_"+a.toString(32)+"_";return t.memoizedState=i},useHostTransitionStatus:Pc,useFormState:hp,useActionState:hp,useOptimistic:function(t){var i=ln();i.memoizedState=i.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=a,i=qc.bind(null,Oe,!0,a),a.dispatch=i,[t,i]},useMemoCache:Rc,useCacheRefresh:function(){return ln().memoizedState=KS.bind(null,Oe)},useEffectEvent:function(t){var i=ln(),a={impl:t};return i.memoizedState=a,function(){if((Je&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Gc={readContext:Qt,use:Jo,useCallback:Ep,useContext:Qt,useEffect:Uc,useImperativeHandle:Cp,useInsertionEffect:Sp,useLayoutEffect:wp,useMemo:Ap,useReducer:Wo,useRef:vp,useState:function(){return Wo(Ti)},useDebugValue:Vc,useDeferredValue:function(t,i){var a=Nt();return Tp(a,lt.memoizedState,t,i)},useTransition:function(){var t=Wo(Ti)[0],i=Nt().memoizedState;return[typeof t=="boolean"?t:za(t),i]},useSyncExternalStore:np,useId:Mp,useHostTransitionStatus:Pc,useFormState:pp,useActionState:pp,useOptimistic:function(t,i){var a=Nt();return sp(a,lt,t,i)},useMemoCache:Rc,useCacheRefresh:Op};Gc.useEffectEvent=xp;var Ip={readContext:Qt,use:Jo,useCallback:Ep,useContext:Qt,useEffect:Uc,useImperativeHandle:Cp,useInsertionEffect:Sp,useLayoutEffect:wp,useMemo:Ap,useReducer:Lc,useRef:vp,useState:function(){return Lc(Ti)},useDebugValue:Vc,useDeferredValue:function(t,i){var a=Nt();return lt===null?Fc(a,t,i):Tp(a,lt.memoizedState,t,i)},useTransition:function(){var t=Lc(Ti)[0],i=Nt().memoizedState;return[typeof t=="boolean"?t:za(t),i]},useSyncExternalStore:np,useId:Mp,useHostTransitionStatus:Pc,useFormState:yp,useActionState:yp,useOptimistic:function(t,i){var a=Nt();return lt!==null?sp(a,lt,t,i):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Rc,useCacheRefresh:Op};Ip.useEffectEvent=xp;function Yc(t,i,a,s){i=t.memoizedState,a=a(s,i),a=a==null?i:g({},i,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Qc={enqueueSetState:function(t,i,a){t=t._reactInternals;var s=An(),d=Wi(s);d.payload=i,a!=null&&(d.callback=a),i=el(t,d,s),i!==null&&(pn(i,t,s),Aa(i,t,s))},enqueueReplaceState:function(t,i,a){t=t._reactInternals;var s=An(),d=Wi(s);d.tag=1,d.payload=i,a!=null&&(d.callback=a),i=el(t,d,s),i!==null&&(pn(i,t,s),Aa(i,t,s))},enqueueForceUpdate:function(t,i){t=t._reactInternals;var a=An(),s=Wi(a);s.tag=2,i!=null&&(s.callback=i),i=el(t,s,a),i!==null&&(pn(i,t,a),Aa(i,t,a))}};function Bp(t,i,a,s,d,p,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,p,S):i.prototype&&i.prototype.isPureReactComponent?!va(a,s)||!va(d,p):!0}function Up(t,i,a,s){t=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,s),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,s),i.state!==t&&Qc.enqueueReplaceState(i,i.state,null)}function Hl(t,i){var a=i;if("ref"in i){a={};for(var s in i)s!=="ref"&&(a[s]=i[s])}if(t=t.defaultProps){a===i&&(a=g({},a));for(var d in t)a[d]===void 0&&(a[d]=t[d])}return a}function Vp(t){Ro(t)}function Fp(t){console.error(t)}function Hp(t){Ro(t)}function is(t,i){try{var a=t.onUncaughtError;a(i.value,{componentStack:i.stack})}catch(s){setTimeout(function(){throw s})}}function Pp(t,i,a){try{var s=t.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Xc(t,i,a){return a=Wi(a),a.tag=3,a.payload={element:null},a.callback=function(){is(t,i)},a}function qp(t){return t=Wi(t),t.tag=3,t}function Gp(t,i,a,s){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var p=s.value;t.payload=function(){return d(p)},t.callback=function(){Pp(i,a,s)}}var S=a.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){Pp(i,a,s),typeof d!="function"&&(al===null?al=new Set([this]):al.add(this));var A=s.stack;this.componentDidCatch(s.value,{componentStack:A!==null?A:""})})}function $S(t,i,a,s,d){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(i=a.alternate,i!==null&&vr(i,a,d,!0),a=wn.current,a!==null){switch(a.tag){case 31:case 13:return Un===null?ps():a.alternate===null&&Ct===0&&(Ct=3),a.flags&=-257,a.flags|=65536,a.lanes=d,s===qo?a.flags|=16384:(i=a.updateQueue,i===null?a.updateQueue=new Set([s]):i.add(s),xf(t,s,d)),!1;case 22:return a.flags|=65536,s===qo?a.flags|=16384:(i=a.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=i):(a=i.retryQueue,a===null?i.retryQueue=new Set([s]):a.add(s)),xf(t,s,d)),!1}throw Error(r(435,a.tag))}return xf(t,s,d),ps(),!1}if(Ye)return i=wn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=d,s!==mc&&(t=Error(r(422),{cause:s}),Sa(Dn(t,a)))):(s!==mc&&(i=Error(r(423),{cause:s}),Sa(Dn(i,a))),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,s=Dn(s,a),d=Xc(t.stateNode,s,d),Cc(t,d),Ct!==4&&(Ct=2)),!1;var p=Error(r(520),{cause:s});if(p=Dn(p,a),Va===null?Va=[p]:Va.push(p),Ct!==4&&(Ct=2),i===null)return!0;s=Dn(s,a),a=i;do{switch(a.tag){case 3:return a.flags|=65536,t=d&-d,a.lanes|=t,t=Xc(a.stateNode,s,t),Cc(a,t),!1;case 1:if(i=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(al===null||!al.has(p))))return a.flags|=65536,d&=-d,a.lanes|=d,d=qp(d),Gp(d,t,a,s),Cc(a,d),!1}a=a.return}while(a!==null);return!1}var Kc=Error(r(461)),Dt=!1;function Xt(t,i,a,s){i.child=t===null?Kh(i,null,a,s):Vl(i,t.child,a,s)}function Yp(t,i,a,s,d){a=a.render;var p=i.ref;if("ref"in s){var S={};for(var A in s)A!=="ref"&&(S[A]=s[A])}else S=s;return Ll(i),s=zc(t,i,a,S,p,d),A=Mc(),t!==null&&!Dt?(Oc(t,i,d),_i(t,i,d)):(Ye&&A&&fc(i),i.flags|=1,Xt(t,i,s,d),i.child)}function Qp(t,i,a,s,d){if(t===null){var p=a.type;return typeof p=="function"&&!sc(p)&&p.defaultProps===void 0&&a.compare===null?(i.tag=15,i.type=p,Xp(t,i,p,s,d)):(t=Bo(a.type,null,s,i,i.mode,d),t.ref=i.ref,t.return=i,i.child=t)}if(p=t.child,!lf(t,d)){var S=p.memoizedProps;if(a=a.compare,a=a!==null?a:va,a(S,s)&&t.ref===i.ref)return _i(t,i,d)}return i.flags|=1,t=wi(p,s),t.ref=i.ref,t.return=i,i.child=t}function Xp(t,i,a,s,d){if(t!==null){var p=t.memoizedProps;if(va(p,s)&&t.ref===i.ref)if(Dt=!1,i.pendingProps=s=p,lf(t,d))(t.flags&131072)!==0&&(Dt=!0);else return i.lanes=t.lanes,_i(t,i,d)}return Zc(t,i,a,s,d)}function Kp(t,i,a,s){var d=s.children,p=t!==null?t.memoizedState:null;if(t===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((i.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,t!==null){for(s=i.child=t.child,d=0;s!==null;)d=d|s.lanes|s.childLanes,s=s.sibling;s=d&~p}else s=0,i.child=null;return Zp(t,i,p,a,s)}if((a&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ho(i,p!==null?p.cachePool:null),p!==null?Jh(i,p):Ac(),Wh(i);else return s=i.lanes=536870912,Zp(t,i,p!==null?p.baseLanes|a:a,a,s)}else p!==null?(Ho(i,p.cachePool),Jh(i,p),nl(),i.memoizedState=null):(t!==null&&Ho(i,null),Ac(),nl());return Xt(t,i,d,a),i.child}function ja(t,i){return t!==null&&t.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Zp(t,i,a,s,d){var p=xc();return p=p===null?null:{parent:jt._currentValue,pool:p},i.memoizedState={baseLanes:a,cachePool:p},t!==null&&Ho(i,null),Ac(),Wh(i),t!==null&&vr(t,i,s,!0),i.childLanes=d,null}function ls(t,i){return i=as({mode:i.mode,children:i.children},t.mode),i.ref=t.ref,t.child=i,i.return=t,i}function $p(t,i,a){return Vl(i,t.child,null,a),t=ls(i,i.pendingProps),t.flags|=2,kn(i),i.memoizedState=null,t}function JS(t,i,a){var s=i.pendingProps,d=(i.flags&128)!==0;if(i.flags&=-129,t===null){if(Ye){if(s.mode==="hidden")return t=ls(i,s),i.lanes=536870912,ja(null,t);if(_c(i),(t=mt)?(t=uy(t,Bn),t=t!==null&&t.data==="&"?t:null,t!==null&&(i.memoizedState={dehydrated:t,treeContext:Xi!==null?{id:si,overflow:ui}:null,retryLane:536870912,hydrationErrors:null},a=Rh(t),a.return=i,i.child=a,Yt=i,mt=null)):t=null,t===null)throw Zi(i);return i.lanes=536870912,null}return ls(i,s)}var p=t.memoizedState;if(p!==null){var S=p.dehydrated;if(_c(i),d)if(i.flags&256)i.flags&=-257,i=$p(t,i,a);else if(i.memoizedState!==null)i.child=t.child,i.flags|=128,i=null;else throw Error(r(558));else if(Dt||vr(t,i,a,!1),d=(a&t.childLanes)!==0,Dt||d){if(s=st,s!==null&&(S=Et(s,a),S!==0&&S!==p.retryLane))throw p.retryLane=S,Ol(t,S),pn(s,t,S),Kc;ps(),i=$p(t,i,a)}else t=p.treeContext,mt=Vn(S.nextSibling),Yt=i,Ye=!0,Ki=null,Bn=!1,t!==null&&Ih(i,t),i=ls(i,s),i.flags|=4096;return i}return t=wi(t.child,{mode:s.mode,children:s.children}),t.ref=i.ref,i.child=t,t.return=i,t}function rs(t,i){var a=i.ref;if(a===null)t!==null&&t.ref!==null&&(i.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(i.flags|=4194816)}}function Zc(t,i,a,s,d){return Ll(i),a=zc(t,i,a,s,void 0,d),s=Mc(),t!==null&&!Dt?(Oc(t,i,d),_i(t,i,d)):(Ye&&s&&fc(i),i.flags|=1,Xt(t,i,a,d),i.child)}function Jp(t,i,a,s,d,p){return Ll(i),i.updateQueue=null,a=tp(i,s,a,d),ep(t),s=Mc(),t!==null&&!Dt?(Oc(t,i,p),_i(t,i,p)):(Ye&&s&&fc(i),i.flags|=1,Xt(t,i,a,p),i.child)}function Wp(t,i,a,s,d){if(Ll(i),i.stateNode===null){var p=hr,S=a.contextType;typeof S=="object"&&S!==null&&(p=Qt(S)),p=new a(s,p),i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Qc,i.stateNode=p,p._reactInternals=i,p=i.stateNode,p.props=s,p.state=i.memoizedState,p.refs={},wc(i),S=a.contextType,p.context=typeof S=="object"&&S!==null?Qt(S):hr,p.state=i.memoizedState,S=a.getDerivedStateFromProps,typeof S=="function"&&(Yc(i,a,S,s),p.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(S=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),S!==p.state&&Qc.enqueueReplaceState(p,p.state,null),_a(i,s,p,d),Ta(),p.state=i.memoizedState),typeof p.componentDidMount=="function"&&(i.flags|=4194308),s=!0}else if(t===null){p=i.stateNode;var A=i.memoizedProps,O=Hl(a,A);p.props=O;var G=p.context,Z=a.contextType;S=hr,typeof Z=="object"&&Z!==null&&(S=Qt(Z));var ie=a.getDerivedStateFromProps;Z=typeof ie=="function"||typeof p.getSnapshotBeforeUpdate=="function",A=i.pendingProps!==A,Z||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(A||G!==S)&&Up(i,p,s,S),Ji=!1;var Y=i.memoizedState;p.state=Y,_a(i,s,p,d),Ta(),G=i.memoizedState,A||Y!==G||Ji?(typeof ie=="function"&&(Yc(i,a,ie,s),G=i.memoizedState),(O=Ji||Bp(i,a,O,s,Y,G,S))?(Z||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(i.flags|=4194308)):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=s,i.memoizedState=G),p.props=s,p.state=G,p.context=S,s=O):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),s=!1)}else{p=i.stateNode,kc(t,i),S=i.memoizedProps,Z=Hl(a,S),p.props=Z,ie=i.pendingProps,Y=p.context,G=a.contextType,O=hr,typeof G=="object"&&G!==null&&(O=Qt(G)),A=a.getDerivedStateFromProps,(G=typeof A=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S!==ie||Y!==O)&&Up(i,p,s,O),Ji=!1,Y=i.memoizedState,p.state=Y,_a(i,s,p,d),Ta();var Q=i.memoizedState;S!==ie||Y!==Q||Ji||t!==null&&t.dependencies!==null&&Vo(t.dependencies)?(typeof A=="function"&&(Yc(i,a,A,s),Q=i.memoizedState),(Z=Ji||Bp(i,a,Z,s,Y,Q,O)||t!==null&&t.dependencies!==null&&Vo(t.dependencies))?(G||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,Q,O),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,Q,O)),typeof p.componentDidUpdate=="function"&&(i.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof p.componentDidUpdate!="function"||S===t.memoizedProps&&Y===t.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&Y===t.memoizedState||(i.flags|=1024),i.memoizedProps=s,i.memoizedState=Q),p.props=s,p.state=Q,p.context=O,s=Z):(typeof p.componentDidUpdate!="function"||S===t.memoizedProps&&Y===t.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&Y===t.memoizedState||(i.flags|=1024),s=!1)}return p=s,rs(t,i),s=(i.flags&128)!==0,p||s?(p=i.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:p.render(),i.flags|=1,t!==null&&s?(i.child=Vl(i,t.child,null,d),i.child=Vl(i,null,a,d)):Xt(t,i,a,d),i.memoizedState=p.state,t=i.child):t=_i(t,i,d),t}function eg(t,i,a,s){return Rl(),i.flags|=256,Xt(t,i,a,s),i.child}var $c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jc(t){return{baseLanes:t,cachePool:Ph()}}function Wc(t,i,a){return t=t!==null?t.childLanes&~a:0,i&&(t|=En),t}function tg(t,i,a){var s=i.pendingProps,d=!1,p=(i.flags&128)!==0,S;if((S=p)||(S=t!==null&&t.memoizedState===null?!1:(_t.current&2)!==0),S&&(d=!0,i.flags&=-129),S=(i.flags&32)!==0,i.flags&=-33,t===null){if(Ye){if(d?tl(i):nl(),(t=mt)?(t=uy(t,Bn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(i.memoizedState={dehydrated:t,treeContext:Xi!==null?{id:si,overflow:ui}:null,retryLane:536870912,hydrationErrors:null},a=Rh(t),a.return=i,i.child=a,Yt=i,mt=null)):t=null,t===null)throw Zi(i);return Lf(t)?i.lanes=32:i.lanes=536870912,null}var A=s.children;return s=s.fallback,d?(nl(),d=i.mode,A=as({mode:"hidden",children:A},d),s=jl(s,d,a,null),A.return=i,s.return=i,A.sibling=s,i.child=A,s=i.child,s.memoizedState=Jc(a),s.childLanes=Wc(t,S,a),i.memoizedState=$c,ja(null,s)):(tl(i),ef(i,A))}var O=t.memoizedState;if(O!==null&&(A=O.dehydrated,A!==null)){if(p)i.flags&256?(tl(i),i.flags&=-257,i=tf(t,i,a)):i.memoizedState!==null?(nl(),i.child=t.child,i.flags|=128,i=null):(nl(),A=s.fallback,d=i.mode,s=as({mode:"visible",children:s.children},d),A=jl(A,d,a,null),A.flags|=2,s.return=i,A.return=i,s.sibling=A,i.child=s,Vl(i,t.child,null,a),s=i.child,s.memoizedState=Jc(a),s.childLanes=Wc(t,S,a),i.memoizedState=$c,i=ja(null,s));else if(tl(i),Lf(A)){if(S=A.nextSibling&&A.nextSibling.dataset,S)var G=S.dgst;S=G,s=Error(r(419)),s.stack="",s.digest=S,Sa({value:s,source:null,stack:null}),i=tf(t,i,a)}else if(Dt||vr(t,i,a,!1),S=(a&t.childLanes)!==0,Dt||S){if(S=st,S!==null&&(s=Et(S,a),s!==0&&s!==O.retryLane))throw O.retryLane=s,Ol(t,s),pn(S,t,s),Kc;Df(A)||ps(),i=tf(t,i,a)}else Df(A)?(i.flags|=192,i.child=t.child,i=null):(t=O.treeContext,mt=Vn(A.nextSibling),Yt=i,Ye=!0,Ki=null,Bn=!1,t!==null&&Ih(i,t),i=ef(i,s.children),i.flags|=4096);return i}return d?(nl(),A=s.fallback,d=i.mode,O=t.child,G=O.sibling,s=wi(O,{mode:"hidden",children:s.children}),s.subtreeFlags=O.subtreeFlags&65011712,G!==null?A=wi(G,A):(A=jl(A,d,a,null),A.flags|=2),A.return=i,s.return=i,s.sibling=A,i.child=s,ja(null,s),s=i.child,A=t.child.memoizedState,A===null?A=Jc(a):(d=A.cachePool,d!==null?(O=jt._currentValue,d=d.parent!==O?{parent:O,pool:O}:d):d=Ph(),A={baseLanes:A.baseLanes|a,cachePool:d}),s.memoizedState=A,s.childLanes=Wc(t,S,a),i.memoizedState=$c,ja(t.child,s)):(tl(i),a=t.child,t=a.sibling,a=wi(a,{mode:"visible",children:s.children}),a.return=i,a.sibling=null,t!==null&&(S=i.deletions,S===null?(i.deletions=[t],i.flags|=16):S.push(t)),i.child=a,i.memoizedState=null,a)}function ef(t,i){return i=as({mode:"visible",children:i},t.mode),i.return=t,t.child=i}function as(t,i){return t=Sn(22,t,null,i),t.lanes=0,t}function tf(t,i,a){return Vl(i,t.child,null,a),t=ef(i,i.pendingProps.children),t.flags|=2,i.memoizedState=null,t}function ng(t,i,a){t.lanes|=i;var s=t.alternate;s!==null&&(s.lanes|=i),gc(t.return,i,a)}function nf(t,i,a,s,d,p){var S=t.memoizedState;S===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:d,treeForkCount:p}:(S.isBackwards=i,S.rendering=null,S.renderingStartTime=0,S.last=s,S.tail=a,S.tailMode=d,S.treeForkCount=p)}function ig(t,i,a){var s=i.pendingProps,d=s.revealOrder,p=s.tail;s=s.children;var S=_t.current,A=(S&2)!==0;if(A?(S=S&1|2,i.flags|=128):S&=1,N(_t,S),Xt(t,i,s,a),s=Ye?xa:0,!A&&t!==null&&(t.flags&128)!==0)e:for(t=i.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ng(t,a,i);else if(t.tag===19)ng(t,a,i);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===i)break e;for(;t.sibling===null;){if(t.return===null||t.return===i)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(d){case"forwards":for(a=i.child,d=null;a!==null;)t=a.alternate,t!==null&&Xo(t)===null&&(d=a),a=a.sibling;a=d,a===null?(d=i.child,i.child=null):(d=a.sibling,a.sibling=null),nf(i,!1,d,a,p,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=i.child,i.child=null;d!==null;){if(t=d.alternate,t!==null&&Xo(t)===null){i.child=d;break}t=d.sibling,d.sibling=a,a=d,d=t}nf(i,!0,a,null,p,s);break;case"together":nf(i,!1,null,null,void 0,s);break;default:i.memoizedState=null}return i.child}function _i(t,i,a){if(t!==null&&(i.dependencies=t.dependencies),rl|=i.lanes,(a&i.childLanes)===0)if(t!==null){if(vr(t,i,a,!1),(a&i.childLanes)===0)return null}else return null;if(t!==null&&i.child!==t.child)throw Error(r(153));if(i.child!==null){for(t=i.child,a=wi(t,t.pendingProps),i.child=a,a.return=i;t.sibling!==null;)t=t.sibling,a=a.sibling=wi(t,t.pendingProps),a.return=i;a.sibling=null}return i.child}function lf(t,i){return(t.lanes&i)!==0?!0:(t=t.dependencies,!!(t!==null&&Vo(t)))}function WS(t,i,a){switch(i.tag){case 3:be(i,i.stateNode.containerInfo),$i(i,jt,t.memoizedState.cache),Rl();break;case 27:case 5:Ge(i);break;case 4:be(i,i.stateNode.containerInfo);break;case 10:$i(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,_c(i),null;break;case 13:var s=i.memoizedState;if(s!==null)return s.dehydrated!==null?(tl(i),i.flags|=128,null):(a&i.child.childLanes)!==0?tg(t,i,a):(tl(i),t=_i(t,i,a),t!==null?t.sibling:null);tl(i);break;case 19:var d=(t.flags&128)!==0;if(s=(a&i.childLanes)!==0,s||(vr(t,i,a,!1),s=(a&i.childLanes)!==0),d){if(s)return ig(t,i,a);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),N(_t,_t.current),s)break;return null;case 22:return i.lanes=0,Kp(t,i,a,i.pendingProps);case 24:$i(i,jt,t.memoizedState.cache)}return _i(t,i,a)}function lg(t,i,a){if(t!==null)if(t.memoizedProps!==i.pendingProps)Dt=!0;else{if(!lf(t,a)&&(i.flags&128)===0)return Dt=!1,WS(t,i,a);Dt=(t.flags&131072)!==0}else Dt=!1,Ye&&(i.flags&1048576)!==0&&Lh(i,xa,i.index);switch(i.lanes=0,i.tag){case 16:e:{var s=i.pendingProps;if(t=Bl(i.elementType),i.type=t,typeof t=="function")sc(t)?(s=Hl(t,s),i.tag=1,i=Wp(null,i,t,s,a)):(i.tag=0,i=Zc(null,i,t,s,a));else{if(t!=null){var d=t.$$typeof;if(d===P){i.tag=11,i=Yp(null,i,t,s,a);break e}else if(d===H){i.tag=14,i=Qp(null,i,t,s,a);break e}}throw i=oe(t)||t,Error(r(306,i,""))}}return i;case 0:return Zc(t,i,i.type,i.pendingProps,a);case 1:return s=i.type,d=Hl(s,i.pendingProps),Wp(t,i,s,d,a);case 3:e:{if(be(i,i.stateNode.containerInfo),t===null)throw Error(r(387));s=i.pendingProps;var p=i.memoizedState;d=p.element,kc(t,i),_a(i,s,null,a);var S=i.memoizedState;if(s=S.cache,$i(i,jt,s),s!==p.cache&&yc(i,[jt],a,!0),Ta(),s=S.element,p.isDehydrated)if(p={element:s,isDehydrated:!1,cache:S.cache},i.updateQueue.baseState=p,i.memoizedState=p,i.flags&256){i=eg(t,i,s,a);break e}else if(s!==d){d=Dn(Error(r(424)),i),Sa(d),i=eg(t,i,s,a);break e}else{switch(t=i.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(mt=Vn(t.firstChild),Yt=i,Ye=!0,Ki=null,Bn=!0,a=Kh(i,null,s,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Rl(),s===d){i=_i(t,i,a);break e}Xt(t,i,s,a)}i=i.child}return i;case 26:return rs(t,i),t===null?(a=py(i.type,null,i.pendingProps,null))?i.memoizedState=a:Ye||(a=i.type,t=i.pendingProps,s=ws(re.current).createElement(a),s[dt]=i,s[nt]=t,Kt(s,a,t),At(s),i.stateNode=s):i.memoizedState=py(i.type,t.memoizedProps,i.pendingProps,t.memoizedState),null;case 27:return Ge(i),t===null&&Ye&&(s=i.stateNode=dy(i.type,i.pendingProps,re.current),Yt=i,Bn=!0,d=mt,cl(i.type)?(If=d,mt=Vn(s.firstChild)):mt=d),Xt(t,i,i.pendingProps.children,a),rs(t,i),t===null&&(i.flags|=4194304),i.child;case 5:return t===null&&Ye&&((d=s=mt)&&(s=Nw(s,i.type,i.pendingProps,Bn),s!==null?(i.stateNode=s,Yt=i,mt=Vn(s.firstChild),Bn=!1,d=!0):d=!1),d||Zi(i)),Ge(i),d=i.type,p=i.pendingProps,S=t!==null?t.memoizedProps:null,s=p.children,Of(d,p)?s=null:S!==null&&Of(d,S)&&(i.flags|=32),i.memoizedState!==null&&(d=zc(t,i,qS,null,null,a),Xa._currentValue=d),rs(t,i),Xt(t,i,s,a),i.child;case 6:return t===null&&Ye&&((t=a=mt)&&(a=zw(a,i.pendingProps,Bn),a!==null?(i.stateNode=a,Yt=i,mt=null,t=!0):t=!1),t||Zi(i)),null;case 13:return tg(t,i,a);case 4:return be(i,i.stateNode.containerInfo),s=i.pendingProps,t===null?i.child=Vl(i,null,s,a):Xt(t,i,s,a),i.child;case 11:return Yp(t,i,i.type,i.pendingProps,a);case 7:return Xt(t,i,i.pendingProps,a),i.child;case 8:return Xt(t,i,i.pendingProps.children,a),i.child;case 12:return Xt(t,i,i.pendingProps.children,a),i.child;case 10:return s=i.pendingProps,$i(i,i.type,s.value),Xt(t,i,s.children,a),i.child;case 9:return d=i.type._context,s=i.pendingProps.children,Ll(i),d=Qt(d),s=s(d),i.flags|=1,Xt(t,i,s,a),i.child;case 14:return Qp(t,i,i.type,i.pendingProps,a);case 15:return Xp(t,i,i.type,i.pendingProps,a);case 19:return ig(t,i,a);case 31:return JS(t,i,a);case 22:return Kp(t,i,a,i.pendingProps);case 24:return Ll(i),s=Qt(jt),t===null?(d=xc(),d===null&&(d=st,p=vc(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=a),d=p),i.memoizedState={parent:s,cache:d},wc(i),$i(i,jt,d)):((t.lanes&a)!==0&&(kc(t,i),_a(i,null,null,a),Ta()),d=t.memoizedState,p=i.memoizedState,d.parent!==s?(d={parent:s,cache:s},i.memoizedState=d,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=d),$i(i,jt,s)):(s=p.cache,$i(i,jt,s),s!==d.cache&&yc(i,[jt],a,!0))),Xt(t,i,i.pendingProps.children,a),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Ni(t){t.flags|=4}function rf(t,i,a,s,d){if((i=(t.mode&32)!==0)&&(i=!1),i){if(t.flags|=16777216,(d&335544128)===d)if(t.stateNode.complete)t.flags|=8192;else if(Mg())t.flags|=8192;else throw Ul=qo,Sc}else t.flags&=-16777217}function rg(t,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!xy(i))if(Mg())t.flags|=8192;else throw Ul=qo,Sc}function os(t,i){i!==null&&(t.flags|=4),t.flags&16384&&(i=t.tag!==22?yi():536870912,t.lanes|=i,zr|=i)}function Ra(t,i){if(!Ye)switch(t.tailMode){case"hidden":i=t.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?i||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function ht(t){var i=t.alternate!==null&&t.alternate.child===t.child,a=0,s=0;if(i)for(var d=t.child;d!==null;)a|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)a|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=s,t.childLanes=a,i}function ew(t,i,a){var s=i.pendingProps;switch(dc(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(i),null;case 1:return ht(i),null;case 3:return a=i.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),Ei(jt),he(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(yr(i)?Ni(i):t===null||t.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,hc())),ht(i),null;case 26:var d=i.type,p=i.memoizedState;return t===null?(Ni(i),p!==null?(ht(i),rg(i,p)):(ht(i),rf(i,d,null,s,a))):p?p!==t.memoizedState?(Ni(i),ht(i),rg(i,p)):(ht(i),i.flags&=-16777217):(t=t.memoizedProps,t!==s&&Ni(i),ht(i),rf(i,d,t,s,a)),null;case 27:if(We(i),a=re.current,d=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==s&&Ni(i);else{if(!s){if(i.stateNode===null)throw Error(r(166));return ht(i),null}t=W.current,yr(i)?Bh(i):(t=dy(d,s,a),i.stateNode=t,Ni(i))}return ht(i),null;case 5:if(We(i),d=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==s&&Ni(i);else{if(!s){if(i.stateNode===null)throw Error(r(166));return ht(i),null}if(p=W.current,yr(i))Bh(i);else{var S=ws(re.current);switch(p){case 1:p=S.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=S.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=S.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=S.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=S.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof s.is=="string"?S.createElement("select",{is:s.is}):S.createElement("select"),s.multiple?p.multiple=!0:s.size&&(p.size=s.size);break;default:p=typeof s.is=="string"?S.createElement(d,{is:s.is}):S.createElement(d)}}p[dt]=i,p[nt]=s;e:for(S=i.child;S!==null;){if(S.tag===5||S.tag===6)p.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===i)break e;for(;S.sibling===null;){if(S.return===null||S.return===i)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}i.stateNode=p;e:switch(Kt(p,d,s),d){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Ni(i)}}return ht(i),rf(i,i.type,t===null?null:t.memoizedProps,i.pendingProps,a),null;case 6:if(t&&i.stateNode!=null)t.memoizedProps!==s&&Ni(i);else{if(typeof s!="string"&&i.stateNode===null)throw Error(r(166));if(t=re.current,yr(i)){if(t=i.stateNode,a=i.memoizedProps,s=null,d=Yt,d!==null)switch(d.tag){case 27:case 5:s=d.memoizedProps}t[dt]=i,t=!!(t.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||ty(t.nodeValue,a)),t||Zi(i,!0)}else t=ws(t).createTextNode(s),t[dt]=i,i.stateNode=t}return ht(i),null;case 31:if(a=i.memoizedState,t===null||t.memoizedState!==null){if(s=yr(i),a!==null){if(t===null){if(!s)throw Error(r(318));if(t=i.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[dt]=i}else Rl(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ht(i),t=!1}else a=hc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return i.flags&256?(kn(i),i):(kn(i),null);if((i.flags&128)!==0)throw Error(r(558))}return ht(i),null;case 13:if(s=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=yr(i),s!==null&&s.dehydrated!==null){if(t===null){if(!d)throw Error(r(318));if(d=i.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[dt]=i}else Rl(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ht(i),d=!1}else d=hc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return i.flags&256?(kn(i),i):(kn(i),null)}return kn(i),(i.flags&128)!==0?(i.lanes=a,i):(a=s!==null,t=t!==null&&t.memoizedState!==null,a&&(s=i.child,d=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(d=s.alternate.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==d&&(s.flags|=2048)),a!==t&&a&&(i.child.flags|=8192),os(i,i.updateQueue),ht(i),null);case 4:return he(),t===null&&Tf(i.stateNode.containerInfo),ht(i),null;case 10:return Ei(i.type),ht(i),null;case 19:if(U(_t),s=i.memoizedState,s===null)return ht(i),null;if(d=(i.flags&128)!==0,p=s.rendering,p===null)if(d)Ra(s,!1);else{if(Ct!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(p=Xo(t),p!==null){for(i.flags|=128,Ra(s,!1),t=p.updateQueue,i.updateQueue=t,os(i,t),i.subtreeFlags=0,t=a,a=i.child;a!==null;)jh(a,t),a=a.sibling;return N(_t,_t.current&1|2),Ye&&ki(i,s.treeForkCount),i.child}t=t.sibling}s.tail!==null&&pt()>ds&&(i.flags|=128,d=!0,Ra(s,!1),i.lanes=4194304)}else{if(!d)if(t=Xo(p),t!==null){if(i.flags|=128,d=!0,t=t.updateQueue,i.updateQueue=t,os(i,t),Ra(s,!0),s.tail===null&&s.tailMode==="hidden"&&!p.alternate&&!Ye)return ht(i),null}else 2*pt()-s.renderingStartTime>ds&&a!==536870912&&(i.flags|=128,d=!0,Ra(s,!1),i.lanes=4194304);s.isBackwards?(p.sibling=i.child,i.child=p):(t=s.last,t!==null?t.sibling=p:i.child=p,s.last=p)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=pt(),t.sibling=null,a=_t.current,N(_t,d?a&1|2:a&1),Ye&&ki(i,s.treeForkCount),t):(ht(i),null);case 22:case 23:return kn(i),Tc(),s=i.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(i.flags|=8192):s&&(i.flags|=8192),s?(a&536870912)!==0&&(i.flags&128)===0&&(ht(i),i.subtreeFlags&6&&(i.flags|=8192)):ht(i),a=i.updateQueue,a!==null&&os(i,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),s=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==a&&(i.flags|=2048),t!==null&&U(Il),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),i.memoizedState.cache!==a&&(i.flags|=2048),Ei(jt),ht(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function tw(t,i){switch(dc(i),i.tag){case 1:return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return Ei(jt),he(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 26:case 27:case 5:return We(i),null;case 31:if(i.memoizedState!==null){if(kn(i),i.alternate===null)throw Error(r(340));Rl()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 13:if(kn(i),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Rl()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return U(_t),null;case 4:return he(),null;case 10:return Ei(i.type),null;case 22:case 23:return kn(i),Tc(),t!==null&&U(Il),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 24:return Ei(jt),null;case 25:return null;default:return null}}function ag(t,i){switch(dc(i),i.tag){case 3:Ei(jt),he();break;case 26:case 27:case 5:We(i);break;case 4:he();break;case 31:i.memoizedState!==null&&kn(i);break;case 13:kn(i);break;case 19:U(_t);break;case 10:Ei(i.type);break;case 22:case 23:kn(i),Tc(),t!==null&&U(Il);break;case 24:Ei(jt)}}function Da(t,i){try{var a=i.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var d=s.next;a=d;do{if((a.tag&t)===t){s=void 0;var p=a.create,S=a.inst;s=p(),S.destroy=s}a=a.next}while(a!==d)}}catch(A){tt(i,i.return,A)}}function il(t,i,a){try{var s=i.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var p=d.next;s=p;do{if((s.tag&t)===t){var S=s.inst,A=S.destroy;if(A!==void 0){S.destroy=void 0,d=i;var O=a,G=A;try{G()}catch(Z){tt(d,O,Z)}}}s=s.next}while(s!==p)}}catch(Z){tt(i,i.return,Z)}}function og(t){var i=t.updateQueue;if(i!==null){var a=t.stateNode;try{$h(i,a)}catch(s){tt(t,t.return,s)}}}function sg(t,i,a){a.props=Hl(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(s){tt(t,i,s)}}function La(t,i){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof a=="function"?t.refCleanup=a(s):a.current=s}}catch(d){tt(t,i,d)}}function ci(t,i){var a=t.ref,s=t.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(d){tt(t,i,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){tt(t,i,d)}else a.current=null}function ug(t){var i=t.type,a=t.memoizedProps,s=t.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(d){tt(t,t.return,d)}}function af(t,i,a){try{var s=t.stateNode;kw(s,t.type,a,i),s[nt]=i}catch(d){tt(t,t.return,d)}}function cg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&cl(t.type)||t.tag===4}function of(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||cg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&cl(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function sf(t,i,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,i?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,i):(i=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,i.appendChild(t),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=xi));else if(s!==4&&(s===27&&cl(t.type)&&(a=t.stateNode,i=null),t=t.child,t!==null))for(sf(t,i,a),t=t.sibling;t!==null;)sf(t,i,a),t=t.sibling}function ss(t,i,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,i?a.insertBefore(t,i):a.appendChild(t);else if(s!==4&&(s===27&&cl(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(ss(t,i,a),t=t.sibling;t!==null;)ss(t,i,a),t=t.sibling}function fg(t){var i=t.stateNode,a=t.memoizedProps;try{for(var s=t.type,d=i.attributes;d.length;)i.removeAttributeNode(d[0]);Kt(i,s,a),i[dt]=t,i[nt]=a}catch(p){tt(t,t.return,p)}}var zi=!1,Lt=!1,uf=!1,dg=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function nw(t,i){if(t=t.containerInfo,zf=Ns,t=Ch(t),tc(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var d=s.anchorOffset,p=s.focusNode;s=s.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var S=0,A=-1,O=-1,G=0,Z=0,ie=t,Y=null;t:for(;;){for(var Q;ie!==a||d!==0&&ie.nodeType!==3||(A=S+d),ie!==p||s!==0&&ie.nodeType!==3||(O=S+s),ie.nodeType===3&&(S+=ie.nodeValue.length),(Q=ie.firstChild)!==null;)Y=ie,ie=Q;for(;;){if(ie===t)break t;if(Y===a&&++G===d&&(A=S),Y===p&&++Z===s&&(O=S),(Q=ie.nextSibling)!==null)break;ie=Y,Y=ie.parentNode}ie=Q}a=A===-1||O===-1?null:{start:A,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(Mf={focusedElem:t,selectionRange:a},Ns=!1,Ht=i;Ht!==null;)if(i=Ht,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,Ht=t;else for(;Ht!==null;){switch(i=Ht,p=i.alternate,t=i.flags,i.tag){case 0:if((t&4)!==0&&(t=i.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)d=t[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&p!==null){t=void 0,a=i,d=p.memoizedProps,p=p.memoizedState,s=a.stateNode;try{var pe=Hl(a.type,d);t=s.getSnapshotBeforeUpdate(pe,p),s.__reactInternalSnapshotBeforeUpdate=t}catch(Ce){tt(a,a.return,Ce)}}break;case 3:if((t&1024)!==0){if(t=i.stateNode.containerInfo,a=t.nodeType,a===9)Rf(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Rf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=i.sibling,t!==null){t.return=i.return,Ht=t;break}Ht=i.return}}function mg(t,i,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:Oi(t,a),s&4&&Da(5,a);break;case 1:if(Oi(t,a),s&4)if(t=a.stateNode,i===null)try{t.componentDidMount()}catch(S){tt(a,a.return,S)}else{var d=Hl(a.type,i.memoizedProps);i=i.memoizedState;try{t.componentDidUpdate(d,i,t.__reactInternalSnapshotBeforeUpdate)}catch(S){tt(a,a.return,S)}}s&64&&og(a),s&512&&La(a,a.return);break;case 3:if(Oi(t,a),s&64&&(t=a.updateQueue,t!==null)){if(i=null,a.child!==null)switch(a.child.tag){case 27:case 5:i=a.child.stateNode;break;case 1:i=a.child.stateNode}try{$h(t,i)}catch(S){tt(a,a.return,S)}}break;case 27:i===null&&s&4&&fg(a);case 26:case 5:Oi(t,a),i===null&&s&4&&ug(a),s&512&&La(a,a.return);break;case 12:Oi(t,a);break;case 31:Oi(t,a),s&4&&gg(t,a);break;case 13:Oi(t,a),s&4&&yg(t,a),s&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=fw.bind(null,a),Mw(t,a))));break;case 22:if(s=a.memoizedState!==null||zi,!s){i=i!==null&&i.memoizedState!==null||Lt,d=zi;var p=Lt;zi=s,(Lt=i)&&!p?ji(t,a,(a.subtreeFlags&8772)!==0):Oi(t,a),zi=d,Lt=p}break;case 30:break;default:Oi(t,a)}}function hg(t){var i=t.alternate;i!==null&&(t.alternate=null,hg(i)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(i=t.stateNode,i!==null&&Al(i)),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 vt=null,fn=!1;function Mi(t,i,a){for(a=a.child;a!==null;)pg(t,i,a),a=a.sibling}function pg(t,i,a){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(ft,a)}catch{}switch(a.tag){case 26:Lt||ci(a,i),Mi(t,i,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Lt||ci(a,i);var s=vt,d=fn;cl(a.type)&&(vt=a.stateNode,fn=!1),Mi(t,i,a),Ga(a.stateNode),vt=s,fn=d;break;case 5:Lt||ci(a,i);case 6:if(s=vt,d=fn,vt=null,Mi(t,i,a),vt=s,fn=d,vt!==null)if(fn)try{(vt.nodeType===9?vt.body:vt.nodeName==="HTML"?vt.ownerDocument.body:vt).removeChild(a.stateNode)}catch(p){tt(a,i,p)}else try{vt.removeChild(a.stateNode)}catch(p){tt(a,i,p)}break;case 18:vt!==null&&(fn?(t=vt,oy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),Br(t)):oy(vt,a.stateNode));break;case 4:s=vt,d=fn,vt=a.stateNode.containerInfo,fn=!0,Mi(t,i,a),vt=s,fn=d;break;case 0:case 11:case 14:case 15:il(2,a,i),Lt||il(4,a,i),Mi(t,i,a);break;case 1:Lt||(ci(a,i),s=a.stateNode,typeof s.componentWillUnmount=="function"&&sg(a,i,s)),Mi(t,i,a);break;case 21:Mi(t,i,a);break;case 22:Lt=(s=Lt)||a.memoizedState!==null,Mi(t,i,a),Lt=s;break;default:Mi(t,i,a)}}function gg(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Br(t)}catch(a){tt(i,i.return,a)}}}function yg(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Br(t)}catch(a){tt(i,i.return,a)}}function iw(t){switch(t.tag){case 31:case 13:case 19:var i=t.stateNode;return i===null&&(i=t.stateNode=new dg),i;case 22:return t=t.stateNode,i=t._retryCache,i===null&&(i=t._retryCache=new dg),i;default:throw Error(r(435,t.tag))}}function us(t,i){var a=iw(t);i.forEach(function(s){if(!a.has(s)){a.add(s);var d=dw.bind(null,t,s);s.then(d,d)}})}function dn(t,i){var a=i.deletions;if(a!==null)for(var s=0;s<a.length;s++){var d=a[s],p=t,S=i,A=S;e:for(;A!==null;){switch(A.tag){case 27:if(cl(A.type)){vt=A.stateNode,fn=!1;break e}break;case 5:vt=A.stateNode,fn=!1;break e;case 3:case 4:vt=A.stateNode.containerInfo,fn=!0;break e}A=A.return}if(vt===null)throw Error(r(160));pg(p,S,d),vt=null,fn=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)vg(i,t),i=i.sibling}var ni=null;function vg(t,i){var a=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:dn(i,t),mn(t),s&4&&(il(3,t,t.return),Da(3,t),il(5,t,t.return));break;case 1:dn(i,t),mn(t),s&512&&(Lt||a===null||ci(a,a.return)),s&64&&zi&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var d=ni;if(dn(i,t),mn(t),s&512&&(Lt||a===null||ci(a,a.return)),s&4){var p=a!==null?a.memoizedState:null;if(s=t.memoizedState,a===null)if(s===null)if(t.stateNode===null){e:{s=t.type,a=t.memoizedProps,d=d.ownerDocument||d;t:switch(s){case"title":p=d.getElementsByTagName("title")[0],(!p||p[$e]||p[dt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(s),d.head.insertBefore(p,d.querySelector("head > title"))),Kt(p,s,a),p[dt]=t,At(p),s=p;break e;case"link":var S=vy("link","href",d).get(s+(a.href||""));if(S){for(var A=0;A<S.length;A++)if(p=S[A],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){S.splice(A,1);break t}}p=d.createElement(s),Kt(p,s,a),d.head.appendChild(p);break;case"meta":if(S=vy("meta","content",d).get(s+(a.content||""))){for(A=0;A<S.length;A++)if(p=S[A],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){S.splice(A,1);break t}}p=d.createElement(s),Kt(p,s,a),d.head.appendChild(p);break;default:throw Error(r(468,s))}p[dt]=t,At(p),s=p}t.stateNode=s}else by(d,t.type,t.stateNode);else t.stateNode=yy(d,s,t.memoizedProps);else p!==s?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,s===null?by(d,t.type,t.stateNode):yy(d,s,t.memoizedProps)):s===null&&t.stateNode!==null&&af(t,t.memoizedProps,a.memoizedProps)}break;case 27:dn(i,t),mn(t),s&512&&(Lt||a===null||ci(a,a.return)),a!==null&&s&4&&af(t,t.memoizedProps,a.memoizedProps);break;case 5:if(dn(i,t),mn(t),s&512&&(Lt||a===null||ci(a,a.return)),t.flags&32){d=t.stateNode;try{or(d,"")}catch(pe){tt(t,t.return,pe)}}s&4&&t.stateNode!=null&&(d=t.memoizedProps,af(t,d,a!==null?a.memoizedProps:d)),s&1024&&(uf=!0);break;case 6:if(dn(i,t),mn(t),s&4){if(t.stateNode===null)throw Error(r(162));s=t.memoizedProps,a=t.stateNode;try{a.nodeValue=s}catch(pe){tt(t,t.return,pe)}}break;case 3:if(Es=null,d=ni,ni=ks(i.containerInfo),dn(i,t),ni=d,mn(t),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Br(i.containerInfo)}catch(pe){tt(t,t.return,pe)}uf&&(uf=!1,bg(t));break;case 4:s=ni,ni=ks(t.stateNode.containerInfo),dn(i,t),mn(t),ni=s;break;case 12:dn(i,t),mn(t);break;case 31:dn(i,t),mn(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,us(t,s)));break;case 13:dn(i,t),mn(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(fs=pt()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,us(t,s)));break;case 22:d=t.memoizedState!==null;var O=a!==null&&a.memoizedState!==null,G=zi,Z=Lt;if(zi=G||d,Lt=Z||O,dn(i,t),Lt=Z,zi=G,mn(t),s&8192)e:for(i=t.stateNode,i._visibility=d?i._visibility&-2:i._visibility|1,d&&(a===null||O||zi||Lt||Pl(t)),a=null,i=t;;){if(i.tag===5||i.tag===26){if(a===null){O=a=i;try{if(p=O.stateNode,d)S=p.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{A=O.stateNode;var ie=O.memoizedProps.style,Y=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;A.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(pe){tt(O,O.return,pe)}}}else if(i.tag===6){if(a===null){O=i;try{O.stateNode.nodeValue=d?"":O.memoizedProps}catch(pe){tt(O,O.return,pe)}}}else if(i.tag===18){if(a===null){O=i;try{var Q=O.stateNode;d?sy(Q,!0):sy(O.stateNode,!1)}catch(pe){tt(O,O.return,pe)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===t)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;a===i&&(a=null),i=i.return}a===i&&(a=null),i.sibling.return=i.return,i=i.sibling}s&4&&(s=t.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,us(t,a))));break;case 19:dn(i,t),mn(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,us(t,s)));break;case 30:break;case 21:break;default:dn(i,t),mn(t)}}function mn(t){var i=t.flags;if(i&2){try{for(var a,s=t.return;s!==null;){if(cg(s)){a=s;break}s=s.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var d=a.stateNode,p=of(t);ss(t,p,d);break;case 5:var S=a.stateNode;a.flags&32&&(or(S,""),a.flags&=-33);var A=of(t);ss(t,A,S);break;case 3:case 4:var O=a.stateNode.containerInfo,G=of(t);sf(t,G,O);break;default:throw Error(r(161))}}catch(Z){tt(t,t.return,Z)}t.flags&=-3}i&4096&&(t.flags&=-4097)}function bg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var i=t;bg(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),t=t.sibling}}function Oi(t,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)mg(t,i.alternate,i),i=i.sibling}function Pl(t){for(t=t.child;t!==null;){var i=t;switch(i.tag){case 0:case 11:case 14:case 15:il(4,i,i.return),Pl(i);break;case 1:ci(i,i.return);var a=i.stateNode;typeof a.componentWillUnmount=="function"&&sg(i,i.return,a),Pl(i);break;case 27:Ga(i.stateNode);case 26:case 5:ci(i,i.return),Pl(i);break;case 22:i.memoizedState===null&&Pl(i);break;case 30:Pl(i);break;default:Pl(i)}t=t.sibling}}function ji(t,i,a){for(a=a&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var s=i.alternate,d=t,p=i,S=p.flags;switch(p.tag){case 0:case 11:case 15:ji(d,p,a),Da(4,p);break;case 1:if(ji(d,p,a),s=p,d=s.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(G){tt(s,s.return,G)}if(s=p,d=s.updateQueue,d!==null){var A=s.stateNode;try{var O=d.shared.hiddenCallbacks;if(O!==null)for(d.shared.hiddenCallbacks=null,d=0;d<O.length;d++)Zh(O[d],A)}catch(G){tt(s,s.return,G)}}a&&S&64&&og(p),La(p,p.return);break;case 27:fg(p);case 26:case 5:ji(d,p,a),a&&s===null&&S&4&&ug(p),La(p,p.return);break;case 12:ji(d,p,a);break;case 31:ji(d,p,a),a&&S&4&&gg(d,p);break;case 13:ji(d,p,a),a&&S&4&&yg(d,p);break;case 22:p.memoizedState===null&&ji(d,p,a),La(p,p.return);break;case 30:break;default:ji(d,p,a)}i=i.sibling}}function cf(t,i){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(t=i.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&wa(a))}function ff(t,i){t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&wa(t))}function ii(t,i,a,s){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)xg(t,i,a,s),i=i.sibling}function xg(t,i,a,s){var d=i.flags;switch(i.tag){case 0:case 11:case 15:ii(t,i,a,s),d&2048&&Da(9,i);break;case 1:ii(t,i,a,s);break;case 3:ii(t,i,a,s),d&2048&&(t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&wa(t)));break;case 12:if(d&2048){ii(t,i,a,s),t=i.stateNode;try{var p=i.memoizedProps,S=p.id,A=p.onPostCommit;typeof A=="function"&&A(S,i.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(O){tt(i,i.return,O)}}else ii(t,i,a,s);break;case 31:ii(t,i,a,s);break;case 13:ii(t,i,a,s);break;case 23:break;case 22:p=i.stateNode,S=i.alternate,i.memoizedState!==null?p._visibility&2?ii(t,i,a,s):Ia(t,i):p._visibility&2?ii(t,i,a,s):(p._visibility|=2,Tr(t,i,a,s,(i.subtreeFlags&10256)!==0||!1)),d&2048&&cf(S,i);break;case 24:ii(t,i,a,s),d&2048&&ff(i.alternate,i);break;default:ii(t,i,a,s)}}function Tr(t,i,a,s,d){for(d=d&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var p=t,S=i,A=a,O=s,G=S.flags;switch(S.tag){case 0:case 11:case 15:Tr(p,S,A,O,d),Da(8,S);break;case 23:break;case 22:var Z=S.stateNode;S.memoizedState!==null?Z._visibility&2?Tr(p,S,A,O,d):Ia(p,S):(Z._visibility|=2,Tr(p,S,A,O,d)),d&&G&2048&&cf(S.alternate,S);break;case 24:Tr(p,S,A,O,d),d&&G&2048&&ff(S.alternate,S);break;default:Tr(p,S,A,O,d)}i=i.sibling}}function Ia(t,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var a=t,s=i,d=s.flags;switch(s.tag){case 22:Ia(a,s),d&2048&&cf(s.alternate,s);break;case 24:Ia(a,s),d&2048&&ff(s.alternate,s);break;default:Ia(a,s)}i=i.sibling}}var Ba=8192;function _r(t,i,a){if(t.subtreeFlags&Ba)for(t=t.child;t!==null;)Sg(t,i,a),t=t.sibling}function Sg(t,i,a){switch(t.tag){case 26:_r(t,i,a),t.flags&Ba&&t.memoizedState!==null&&Pw(a,ni,t.memoizedState,t.memoizedProps);break;case 5:_r(t,i,a);break;case 3:case 4:var s=ni;ni=ks(t.stateNode.containerInfo),_r(t,i,a),ni=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=Ba,Ba=16777216,_r(t,i,a),Ba=s):_r(t,i,a));break;default:_r(t,i,a)}}function wg(t){var i=t.alternate;if(i!==null&&(t=i.child,t!==null)){i.child=null;do i=t.sibling,t.sibling=null,t=i;while(t!==null)}}function Ua(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var s=i[a];Ht=s,Cg(s,t)}wg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kg(t),t=t.sibling}function kg(t){switch(t.tag){case 0:case 11:case 15:Ua(t),t.flags&2048&&il(9,t,t.return);break;case 3:Ua(t);break;case 12:Ua(t);break;case 22:var i=t.stateNode;t.memoizedState!==null&&i._visibility&2&&(t.return===null||t.return.tag!==13)?(i._visibility&=-3,cs(t)):Ua(t);break;default:Ua(t)}}function cs(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var s=i[a];Ht=s,Cg(s,t)}wg(t)}for(t=t.child;t!==null;){switch(i=t,i.tag){case 0:case 11:case 15:il(8,i,i.return),cs(i);break;case 22:a=i.stateNode,a._visibility&2&&(a._visibility&=-3,cs(i));break;default:cs(i)}t=t.sibling}}function Cg(t,i){for(;Ht!==null;){var a=Ht;switch(a.tag){case 0:case 11:case 15:il(8,a,i);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:wa(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,Ht=s;else e:for(a=t;Ht!==null;){s=Ht;var d=s.sibling,p=s.return;if(hg(s),s===a){Ht=null;break e}if(d!==null){d.return=p,Ht=d;break e}Ht=p}}}var lw={getCacheForType:function(t){var i=Qt(jt),a=i.data.get(t);return a===void 0&&(a=t(),i.data.set(t,a)),a},cacheSignal:function(){return Qt(jt).controller.signal}},rw=typeof WeakMap=="function"?WeakMap:Map,Je=0,st=null,Ue=null,Pe=0,et=0,Cn=null,ll=!1,Nr=!1,df=!1,Ri=0,Ct=0,rl=0,ql=0,mf=0,En=0,zr=0,Va=null,hn=null,hf=!1,fs=0,Eg=0,ds=1/0,ms=null,al=null,Bt=0,ol=null,Mr=null,Di=0,pf=0,gf=null,Ag=null,Fa=0,yf=null;function An(){return(Je&2)!==0&&Pe!==0?Pe&-Pe:L.T!==null?kf():Ae()}function Tg(){if(En===0)if((Pe&536870912)===0||Ye){var t=un;un<<=1,(un&3932160)===0&&(un=262144),En=t}else En=536870912;return t=wn.current,t!==null&&(t.flags|=32),En}function pn(t,i,a){(t===st&&(et===2||et===9)||t.cancelPendingCommit!==null)&&(Or(t,0),sl(t,Pe,En,!1)),de(t,a),((Je&2)===0||t!==st)&&(t===st&&((Je&2)===0&&(ql|=a),Ct===4&&sl(t,Pe,En,!1)),fi(t))}function _g(t,i,a){if((Je&6)!==0)throw Error(r(327));var s=!a&&(i&127)===0&&(i&t.expiredLanes)===0||Gt(t,i),d=s?sw(t,i):bf(t,i,!0),p=s;do{if(d===0){Nr&&!s&&sl(t,i,0,!1);break}else{if(a=t.current.alternate,p&&!aw(a)){d=bf(t,i,!1),p=!1;continue}if(d===2){if(p=i,t.errorRecoveryDisabledLanes&p)var S=0;else S=t.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){i=S;e:{var A=t;d=Va;var O=A.current.memoizedState.isDehydrated;if(O&&(Or(A,S).flags|=256),S=bf(A,S,!1),S!==2){if(df&&!O){A.errorRecoveryDisabledLanes|=p,ql|=p,d=4;break e}p=hn,hn=d,p!==null&&(hn===null?hn=p:hn.push.apply(hn,p))}d=S}if(p=!1,d!==2)continue}}if(d===1){Or(t,0),sl(t,i,0,!0);break}e:{switch(s=t,p=d,p){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:sl(s,i,En,!ll);break e;case 2:hn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(d=fs+300-pt(),10<d)){if(sl(s,i,En,!ll),Jn(s,0,!0)!==0)break e;Di=i,s.timeoutHandle=ry(Ng.bind(null,s,a,hn,ms,hf,i,En,ql,zr,ll,p,"Throttled",-0,0),d);break e}Ng(s,a,hn,ms,hf,i,En,ql,zr,ll,p,null,-0,0)}}break}while(!0);fi(t)}function Ng(t,i,a,s,d,p,S,A,O,G,Z,ie,Y,Q){if(t.timeoutHandle=-1,ie=i.subtreeFlags,ie&8192||(ie&16785408)===16785408){ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xi},Sg(i,p,ie);var pe=(p&62914560)===p?fs-pt():(p&4194048)===p?Eg-pt():0;if(pe=qw(ie,pe),pe!==null){Di=p,t.cancelPendingCommit=pe(Ig.bind(null,t,i,p,a,s,d,S,A,O,Z,ie,null,Y,Q)),sl(t,p,S,!G);return}}Ig(t,i,p,a,s,d,S,A,O)}function aw(t){for(var i=t;;){var a=i.tag;if((a===0||a===11||a===15)&&i.flags&16384&&(a=i.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var d=a[s],p=d.getSnapshot;d=d.value;try{if(!xn(p(),d))return!1}catch{return!1}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function sl(t,i,a,s){i&=~mf,i&=~ql,t.suspendedLanes|=i,t.pingedLanes&=~i,s&&(t.warmLanes|=i),s=t.expirationTimes;for(var d=i;0<d;){var p=31-Be(d),S=1<<p;s[p]=-1,d&=~S}a!==0&&ze(t,a,i)}function hs(){return(Je&6)===0?(Ha(0),!1):!0}function vf(){if(Ue!==null){if(et===0)var t=Ue.return;else t=Ue,Ci=Dl=null,jc(t),wr=null,Ca=0,t=Ue;for(;t!==null;)ag(t.alternate,t),t=t.return;Ue=null}}function Or(t,i){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,Aw(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Di=0,vf(),st=t,Ue=a=wi(t.current,null),Pe=i,et=0,Cn=null,ll=!1,Nr=Gt(t,i),df=!1,zr=En=mf=ql=rl=Ct=0,hn=Va=null,hf=!1,(i&8)!==0&&(i|=i&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=i;0<s;){var d=31-Be(s),p=1<<d;i|=t[d],s&=~p}return Ri=i,Do(),a}function zg(t,i){Oe=null,L.H=Oa,i===Sr||i===Po?(i=Yh(),et=3):i===Sc?(i=Yh(),et=4):et=i===Kc?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Cn=i,Ue===null&&(Ct=1,is(t,Dn(i,t.current)))}function Mg(){var t=wn.current;return t===null?!0:(Pe&4194048)===Pe?Un===null:(Pe&62914560)===Pe||(Pe&536870912)!==0?t===Un:!1}function Og(){var t=L.H;return L.H=Oa,t===null?Oa:t}function jg(){var t=L.A;return L.A=lw,t}function ps(){Ct=4,ll||(Pe&4194048)!==Pe&&wn.current!==null||(Nr=!0),(rl&134217727)===0&&(ql&134217727)===0||st===null||sl(st,Pe,En,!1)}function bf(t,i,a){var s=Je;Je|=2;var d=Og(),p=jg();(st!==t||Pe!==i)&&(ms=null,Or(t,i)),i=!1;var S=Ct;e:do try{if(et!==0&&Ue!==null){var A=Ue,O=Cn;switch(et){case 8:vf(),S=6;break e;case 3:case 2:case 9:case 6:wn.current===null&&(i=!0);var G=et;if(et=0,Cn=null,jr(t,A,O,G),a&&Nr){S=0;break e}break;default:G=et,et=0,Cn=null,jr(t,A,O,G)}}ow(),S=Ct;break}catch(Z){zg(t,Z)}while(!0);return i&&t.shellSuspendCounter++,Ci=Dl=null,Je=s,L.H=d,L.A=p,Ue===null&&(st=null,Pe=0,Do()),S}function ow(){for(;Ue!==null;)Rg(Ue)}function sw(t,i){var a=Je;Je|=2;var s=Og(),d=jg();st!==t||Pe!==i?(ms=null,ds=pt()+500,Or(t,i)):Nr=Gt(t,i);e:do try{if(et!==0&&Ue!==null){i=Ue;var p=Cn;t:switch(et){case 1:et=0,Cn=null,jr(t,i,p,1);break;case 2:case 9:if(qh(p)){et=0,Cn=null,Dg(i);break}i=function(){et!==2&&et!==9||st!==t||(et=7),fi(t)},p.then(i,i);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:qh(p)?(et=0,Cn=null,Dg(i)):(et=0,Cn=null,jr(t,i,p,7));break;case 5:var S=null;switch(Ue.tag){case 26:S=Ue.memoizedState;case 5:case 27:var A=Ue;if(S?xy(S):A.stateNode.complete){et=0,Cn=null;var O=A.sibling;if(O!==null)Ue=O;else{var G=A.return;G!==null?(Ue=G,gs(G)):Ue=null}break t}}et=0,Cn=null,jr(t,i,p,5);break;case 6:et=0,Cn=null,jr(t,i,p,6);break;case 8:vf(),Ct=6;break e;default:throw Error(r(462))}}uw();break}catch(Z){zg(t,Z)}while(!0);return Ci=Dl=null,L.H=s,L.A=d,Je=a,Ue!==null?0:(st=null,Pe=0,Do(),Ct)}function uw(){for(;Ue!==null&&!Zn();)Rg(Ue)}function Rg(t){var i=lg(t.alternate,t,Ri);t.memoizedProps=t.pendingProps,i===null?gs(t):Ue=i}function Dg(t){var i=t,a=i.alternate;switch(i.tag){case 15:case 0:i=Jp(a,i,i.pendingProps,i.type,void 0,Pe);break;case 11:i=Jp(a,i,i.pendingProps,i.type.render,i.ref,Pe);break;case 5:jc(i);default:ag(a,i),i=Ue=jh(i,Ri),i=lg(a,i,Ri)}t.memoizedProps=t.pendingProps,i===null?gs(t):Ue=i}function jr(t,i,a,s){Ci=Dl=null,jc(i),wr=null,Ca=0;var d=i.return;try{if($S(t,d,i,a,Pe)){Ct=1,is(t,Dn(a,t.current)),Ue=null;return}}catch(p){if(d!==null)throw Ue=d,p;Ct=1,is(t,Dn(a,t.current)),Ue=null;return}i.flags&32768?(Ye||s===1?t=!0:Nr||(Pe&536870912)!==0?t=!1:(ll=t=!0,(s===2||s===9||s===3||s===6)&&(s=wn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Lg(i,t)):gs(i)}function gs(t){var i=t;do{if((i.flags&32768)!==0){Lg(i,ll);return}t=i.return;var a=ew(i.alternate,i,Ri);if(a!==null){Ue=a;return}if(i=i.sibling,i!==null){Ue=i;return}Ue=i=t}while(i!==null);Ct===0&&(Ct=5)}function Lg(t,i){do{var a=tw(t.alternate,t);if(a!==null){a.flags&=32767,Ue=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!i&&(t=t.sibling,t!==null)){Ue=t;return}Ue=t=a}while(t!==null);Ct=6,Ue=null}function Ig(t,i,a,s,d,p,S,A,O){t.cancelPendingCommit=null;do ys();while(Bt!==0);if((Je&6)!==0)throw Error(r(327));if(i!==null){if(i===t.current)throw Error(r(177));if(p=i.lanes|i.childLanes,p|=ac,Ze(t,a,p,S,A,O),t===st&&(Ue=st=null,Pe=0),Mr=i,ol=t,Di=a,pf=p,gf=d,Ag=s,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,mw(we,function(){return Hg(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||s){s=L.T,L.T=null,d=X.p,X.p=2,S=Je,Je|=4;try{nw(t,i,a)}finally{Je=S,X.p=d,L.T=s}}Bt=1,Bg(),Ug(),Vg()}}function Bg(){if(Bt===1){Bt=0;var t=ol,i=Mr,a=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||a){a=L.T,L.T=null;var s=X.p;X.p=2;var d=Je;Je|=4;try{vg(i,t);var p=Mf,S=Ch(t.containerInfo),A=p.focusedElem,O=p.selectionRange;if(S!==A&&A&&A.ownerDocument&&kh(A.ownerDocument.documentElement,A)){if(O!==null&&tc(A)){var G=O.start,Z=O.end;if(Z===void 0&&(Z=G),"selectionStart"in A)A.selectionStart=G,A.selectionEnd=Math.min(Z,A.value.length);else{var ie=A.ownerDocument||document,Y=ie&&ie.defaultView||window;if(Y.getSelection){var Q=Y.getSelection(),pe=A.textContent.length,Ce=Math.min(O.start,pe),at=O.end===void 0?Ce:Math.min(O.end,pe);!Q.extend&&Ce>at&&(S=at,at=Ce,Ce=S);var B=wh(A,Ce),D=wh(A,at);if(B&&D&&(Q.rangeCount!==1||Q.anchorNode!==B.node||Q.anchorOffset!==B.offset||Q.focusNode!==D.node||Q.focusOffset!==D.offset)){var q=ie.createRange();q.setStart(B.node,B.offset),Q.removeAllRanges(),Ce>at?(Q.addRange(q),Q.extend(D.node,D.offset)):(q.setEnd(D.node,D.offset),Q.addRange(q))}}}}for(ie=[],Q=A;Q=Q.parentNode;)Q.nodeType===1&&ie.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<ie.length;A++){var ee=ie[A];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}Ns=!!zf,Mf=zf=null}finally{Je=d,X.p=s,L.T=a}}t.current=i,Bt=2}}function Ug(){if(Bt===2){Bt=0;var t=ol,i=Mr,a=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||a){a=L.T,L.T=null;var s=X.p;X.p=2;var d=Je;Je|=4;try{mg(t,i.alternate,i)}finally{Je=d,X.p=s,L.T=a}}Bt=3}}function Vg(){if(Bt===4||Bt===3){Bt=0,$n();var t=ol,i=Mr,a=Di,s=Ag;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Bt=5:(Bt=0,Mr=ol=null,Fg(t,t.pendingLanes));var d=t.pendingLanes;if(d===0&&(al=null),wt(a),i=i.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(ft,i,void 0,(i.current.flags&128)===128)}catch{}if(s!==null){i=L.T,d=X.p,X.p=2,L.T=null;try{for(var p=t.onRecoverableError,S=0;S<s.length;S++){var A=s[S];p(A.value,{componentStack:A.stack})}}finally{L.T=i,X.p=d}}(Di&3)!==0&&ys(),fi(t),d=t.pendingLanes,(a&261930)!==0&&(d&42)!==0?t===yf?Fa++:(Fa=0,yf=t):Fa=0,Ha(0)}}function Fg(t,i){(t.pooledCacheLanes&=i)===0&&(i=t.pooledCache,i!=null&&(t.pooledCache=null,wa(i)))}function ys(){return Bg(),Ug(),Vg(),Hg()}function Hg(){if(Bt!==5)return!1;var t=ol,i=pf;pf=0;var a=wt(Di),s=L.T,d=X.p;try{X.p=32>a?32:a,L.T=null,a=gf,gf=null;var p=ol,S=Di;if(Bt=0,Mr=ol=null,Di=0,(Je&6)!==0)throw Error(r(331));var A=Je;if(Je|=4,kg(p.current),xg(p,p.current,S,a),Je=A,Ha(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(ft,p)}catch{}return!0}finally{X.p=d,L.T=s,Fg(t,i)}}function Pg(t,i,a){i=Dn(a,i),i=Xc(t.stateNode,i,2),t=el(t,i,2),t!==null&&(de(t,2),fi(t))}function tt(t,i,a){if(t.tag===3)Pg(t,t,a);else for(;i!==null;){if(i.tag===3){Pg(i,t,a);break}else if(i.tag===1){var s=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(al===null||!al.has(s))){t=Dn(a,t),a=qp(2),s=el(i,a,2),s!==null&&(Gp(a,s,i,t),de(s,2),fi(s));break}}i=i.return}}function xf(t,i,a){var s=t.pingCache;if(s===null){s=t.pingCache=new rw;var d=new Set;s.set(i,d)}else d=s.get(i),d===void 0&&(d=new Set,s.set(i,d));d.has(a)||(df=!0,d.add(a),t=cw.bind(null,t,i,a),i.then(t,t))}function cw(t,i,a){var s=t.pingCache;s!==null&&s.delete(i),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,st===t&&(Pe&a)===a&&(Ct===4||Ct===3&&(Pe&62914560)===Pe&&300>pt()-fs?(Je&2)===0&&Or(t,0):mf|=a,zr===Pe&&(zr=0)),fi(t)}function qg(t,i){i===0&&(i=yi()),t=Ol(t,i),t!==null&&(de(t,i),fi(t))}function fw(t){var i=t.memoizedState,a=0;i!==null&&(a=i.retryLane),qg(t,a)}function dw(t,i){var a=0;switch(t.tag){case 31:case 13:var s=t.stateNode,d=t.memoizedState;d!==null&&(a=d.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(i),qg(t,a)}function mw(t,i){return ai(t,i)}var vs=null,Rr=null,Sf=!1,bs=!1,wf=!1,ul=0;function fi(t){t!==Rr&&t.next===null&&(Rr===null?vs=Rr=t:Rr=Rr.next=t),bs=!0,Sf||(Sf=!0,pw())}function Ha(t,i){if(!wf&&bs){wf=!0;do for(var a=!1,s=vs;s!==null;){if(t!==0){var d=s.pendingLanes;if(d===0)var p=0;else{var S=s.suspendedLanes,A=s.pingedLanes;p=(1<<31-Be(42|t)+1)-1,p&=d&~(S&~A),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,Xg(s,p))}else p=Pe,p=Jn(s,s===st?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(p&3)===0||Gt(s,p)||(a=!0,Xg(s,p));s=s.next}while(a);wf=!1}}function hw(){Gg()}function Gg(){bs=Sf=!1;var t=0;ul!==0&&Ew()&&(t=ul);for(var i=pt(),a=null,s=vs;s!==null;){var d=s.next,p=Yg(s,i);p===0?(s.next=null,a===null?vs=d:a.next=d,d===null&&(Rr=a)):(a=s,(t!==0||(p&3)!==0)&&(bs=!0)),s=d}Bt!==0&&Bt!==5||Ha(t),ul!==0&&(ul=0)}function Yg(t,i){for(var a=t.suspendedLanes,s=t.pingedLanes,d=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var S=31-Be(p),A=1<<S,O=d[S];O===-1?((A&a)===0||(A&s)!==0)&&(d[S]=Ot(A,i)):O<=i&&(t.expiredLanes|=A),p&=~A}if(i=st,a=Pe,a=Jn(t,t===i?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,a===0||t===i&&(et===2||et===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&zt(s),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Gt(t,a)){if(i=a&-a,i===t.callbackPriority)return i;switch(s!==null&&zt(s),wt(a)){case 2:case 8:a=fe;break;case 32:a=we;break;case 268435456:a=He;break;default:a=we}return s=Qg.bind(null,t),a=ai(a,s),t.callbackPriority=i,t.callbackNode=a,i}return s!==null&&s!==null&&zt(s),t.callbackPriority=2,t.callbackNode=null,2}function Qg(t,i){if(Bt!==0&&Bt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(ys()&&t.callbackNode!==a)return null;var s=Pe;return s=Jn(t,t===st?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(_g(t,s,i),Yg(t,pt()),t.callbackNode!=null&&t.callbackNode===a?Qg.bind(null,t):null)}function Xg(t,i){if(ys())return null;_g(t,i,!0)}function pw(){Tw(function(){(Je&6)!==0?ai(K,hw):Gg()})}function kf(){if(ul===0){var t=br;t===0&&(t=zn,zn<<=1,(zn&261888)===0&&(zn=256)),ul=t}return ul}function Kg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:To(""+t)}function Zg(t,i){var a=i.ownerDocument.createElement("input");return a.name=i.name,a.value=i.value,t.id&&a.setAttribute("form",t.id),i.parentNode.insertBefore(a,i),t=new FormData(t),a.parentNode.removeChild(a),t}function gw(t,i,a,s,d){if(i==="submit"&&a&&a.stateNode===d){var p=Kg((d[nt]||null).action),S=s.submitter;S&&(i=(i=S[nt]||null)?Kg(i.formAction):S.getAttribute("formAction"),i!==null&&(p=i,S=null));var A=new Mo("action","action",null,s,d);t.push({event:A,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ul!==0){var O=S?Zg(d,S):new FormData(d);Hc(a,{pending:!0,data:O,method:d.method,action:p},null,O)}}else typeof p=="function"&&(A.preventDefault(),O=S?Zg(d,S):new FormData(d),Hc(a,{pending:!0,data:O,method:d.method,action:p},p,O))},currentTarget:d}]})}}for(var Cf=0;Cf<rc.length;Cf++){var Ef=rc[Cf],yw=Ef.toLowerCase(),vw=Ef[0].toUpperCase()+Ef.slice(1);ti(yw,"on"+vw)}ti(Th,"onAnimationEnd"),ti(_h,"onAnimationIteration"),ti(Nh,"onAnimationStart"),ti("dblclick","onDoubleClick"),ti("focusin","onFocus"),ti("focusout","onBlur"),ti(RS,"onTransitionRun"),ti(DS,"onTransitionStart"),ti(LS,"onTransitionCancel"),ti(zh,"onTransitionEnd"),Yi("onMouseEnter",["mouseout","mouseover"]),Yi("onMouseLeave",["mouseout","mouseover"]),Yi("onPointerEnter",["pointerout","pointerover"]),Yi("onPointerLeave",["pointerout","pointerover"]),bi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),bi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),bi("onBeforeInput",["compositionend","keypress","textInput","paste"]),bi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),bi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),bi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pa="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(" "),bw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pa));function $g(t,i){i=(i&4)!==0;for(var a=0;a<t.length;a++){var s=t[a],d=s.event;s=s.listeners;e:{var p=void 0;if(i)for(var S=s.length-1;0<=S;S--){var A=s[S],O=A.instance,G=A.currentTarget;if(A=A.listener,O!==p&&d.isPropagationStopped())break e;p=A,d.currentTarget=G;try{p(d)}catch(Z){Ro(Z)}d.currentTarget=null,p=O}else for(S=0;S<s.length;S++){if(A=s[S],O=A.instance,G=A.currentTarget,A=A.listener,O!==p&&d.isPropagationStopped())break e;p=A,d.currentTarget=G;try{p(d)}catch(Z){Ro(Z)}d.currentTarget=null,p=O}}}}function Ve(t,i){var a=i[lr];a===void 0&&(a=i[lr]=new Set);var s=t+"__bubble";a.has(s)||(Jg(i,t,2,!1),a.add(s))}function Af(t,i,a){var s=0;i&&(s|=4),Jg(a,t,s,i)}var xs="_reactListening"+Math.random().toString(36).slice(2);function Tf(t){if(!t[xs]){t[xs]=!0,ua.forEach(function(a){a!=="selectionchange"&&(bw.has(a)||Af(a,!1,t),Af(a,!0,t))});var i=t.nodeType===9?t:t.ownerDocument;i===null||i[xs]||(i[xs]=!0,Af("selectionchange",!1,i))}}function Jg(t,i,a,s){switch(Ty(i)){case 2:var d=Qw;break;case 8:d=Xw;break;default:d=Hf}a=d.bind(null,i,a,t),d=void 0,!Yu||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(d=!0),s?d!==void 0?t.addEventListener(i,a,{capture:!0,passive:d}):t.addEventListener(i,a,!0):d!==void 0?t.addEventListener(i,a,{passive:d}):t.addEventListener(i,a,!1)}function _f(t,i,a,s,d){var p=s;if((i&1)===0&&(i&2)===0&&s!==null)e:for(;;){if(s===null)return;var S=s.tag;if(S===3||S===4){var A=s.stateNode.containerInfo;if(A===d)break;if(S===4)for(S=s.return;S!==null;){var O=S.tag;if((O===3||O===4)&&S.stateNode.containerInfo===d)return;S=S.return}for(;A!==null;){if(S=qi(A),S===null)return;if(O=S.tag,O===5||O===6||O===26||O===27){s=p=S;continue e}A=A.parentNode}}s=s.return}ih(function(){var G=p,Z=qu(a),ie=[];e:{var Y=Mh.get(t);if(Y!==void 0){var Q=Mo,pe=t;switch(t){case"keypress":if(No(a)===0)break e;case"keydown":case"keyup":Q=dS;break;case"focusin":pe="focus",Q=Zu;break;case"focusout":pe="blur",Q=Zu;break;case"beforeblur":case"afterblur":Q=Zu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=ah;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=eS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=pS;break;case Th:case _h:case Nh:Q=iS;break;case zh:Q=yS;break;case"scroll":case"scrollend":Q=Jx;break;case"wheel":Q=bS;break;case"copy":case"cut":case"paste":Q=rS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=sh;break;case"toggle":case"beforetoggle":Q=SS}var Ce=(i&4)!==0,at=!Ce&&(t==="scroll"||t==="scrollend"),B=Ce?Y!==null?Y+"Capture":null:Y;Ce=[];for(var D=G,q;D!==null;){var ee=D;if(q=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||q===null||B===null||(ee=fa(D,B),ee!=null&&Ce.push(qa(D,ee,q))),at)break;D=D.return}0<Ce.length&&(Y=new Q(Y,pe,null,a,Z),ie.push({event:Y,listeners:Ce}))}}if((i&7)===0){e:{if(Y=t==="mouseover"||t==="pointerover",Q=t==="mouseout"||t==="pointerout",Y&&a!==Pu&&(pe=a.relatedTarget||a.fromElement)&&(qi(pe)||pe[vi]))break e;if((Q||Y)&&(Y=Z.window===Z?Z:(Y=Z.ownerDocument)?Y.defaultView||Y.parentWindow:window,Q?(pe=a.relatedTarget||a.toElement,Q=G,pe=pe?qi(pe):null,pe!==null&&(at=u(pe),Ce=pe.tag,pe!==at||Ce!==5&&Ce!==27&&Ce!==6)&&(pe=null)):(Q=null,pe=G),Q!==pe)){if(Ce=ah,ee="onMouseLeave",B="onMouseEnter",D="mouse",(t==="pointerout"||t==="pointerover")&&(Ce=sh,ee="onPointerLeave",B="onPointerEnter",D="pointer"),at=Q==null?Y:ei(Q),q=pe==null?Y:ei(pe),Y=new Ce(ee,D+"leave",Q,a,Z),Y.target=at,Y.relatedTarget=q,ee=null,qi(Z)===G&&(Ce=new Ce(B,D+"enter",pe,a,Z),Ce.target=q,Ce.relatedTarget=at,ee=Ce),at=ee,Q&&pe)t:{for(Ce=xw,B=Q,D=pe,q=0,ee=B;ee;ee=Ce(ee))q++;ee=0;for(var Se=D;Se;Se=Ce(Se))ee++;for(;0<q-ee;)B=Ce(B),q--;for(;0<ee-q;)D=Ce(D),ee--;for(;q--;){if(B===D||D!==null&&B===D.alternate){Ce=B;break t}B=Ce(B),D=Ce(D)}Ce=null}else Ce=null;Q!==null&&Wg(ie,Y,Q,Ce,!1),pe!==null&&at!==null&&Wg(ie,at,pe,Ce,!0)}}e:{if(Y=G?ei(G):window,Q=Y.nodeName&&Y.nodeName.toLowerCase(),Q==="select"||Q==="input"&&Y.type==="file")var Xe=gh;else if(hh(Y))if(yh)Xe=MS;else{Xe=NS;var ve=_S}else Q=Y.nodeName,!Q||Q.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?G&&Hu(G.elementType)&&(Xe=gh):Xe=zS;if(Xe&&(Xe=Xe(t,G))){ph(ie,Xe,a,Z);break e}ve&&ve(t,Y,G),t==="focusout"&&G&&Y.type==="number"&&G.memoizedProps.value!=null&&Fu(Y,"number",Y.value)}switch(ve=G?ei(G):window,t){case"focusin":(hh(ve)||ve.contentEditable==="true")&&(fr=ve,nc=G,ba=null);break;case"focusout":ba=nc=fr=null;break;case"mousedown":ic=!0;break;case"contextmenu":case"mouseup":case"dragend":ic=!1,Eh(ie,a,Z);break;case"selectionchange":if(jS)break;case"keydown":case"keyup":Eh(ie,a,Z)}var Re;if(Ju)e:{switch(t){case"compositionstart":var qe="onCompositionStart";break e;case"compositionend":qe="onCompositionEnd";break e;case"compositionupdate":qe="onCompositionUpdate";break e}qe=void 0}else cr?dh(t,a)&&(qe="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(qe="onCompositionStart");qe&&(uh&&a.locale!=="ko"&&(cr||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&cr&&(Re=lh()):(Qi=Z,Qu="value"in Qi?Qi.value:Qi.textContent,cr=!0)),ve=Ss(G,qe),0<ve.length&&(qe=new oh(qe,t,null,a,Z),ie.push({event:qe,listeners:ve}),Re?qe.data=Re:(Re=mh(a),Re!==null&&(qe.data=Re)))),(Re=kS?CS(t,a):ES(t,a))&&(qe=Ss(G,"onBeforeInput"),0<qe.length&&(ve=new oh("onBeforeInput","beforeinput",null,a,Z),ie.push({event:ve,listeners:qe}),ve.data=Re)),gw(ie,t,G,a,Z)}$g(ie,i)})}function qa(t,i,a){return{instance:t,listener:i,currentTarget:a}}function Ss(t,i){for(var a=i+"Capture",s=[];t!==null;){var d=t,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=fa(t,a),d!=null&&s.unshift(qa(t,d,p)),d=fa(t,i),d!=null&&s.push(qa(t,d,p))),t.tag===3)return s;t=t.return}return[]}function xw(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Wg(t,i,a,s,d){for(var p=i._reactName,S=[];a!==null&&a!==s;){var A=a,O=A.alternate,G=A.stateNode;if(A=A.tag,O!==null&&O===s)break;A!==5&&A!==26&&A!==27||G===null||(O=G,d?(G=fa(a,p),G!=null&&S.unshift(qa(a,G,O))):d||(G=fa(a,p),G!=null&&S.push(qa(a,G,O)))),a=a.return}S.length!==0&&t.push({event:i,listeners:S})}var Sw=/\r\n?/g,ww=/\u0000|\uFFFD/g;function ey(t){return(typeof t=="string"?t:""+t).replace(Sw,`
|
|
49
|
+
`).replace(ww,"")}function ty(t,i){return i=ey(i),ey(t)===i}function rt(t,i,a,s,d,p){switch(a){case"children":typeof s=="string"?i==="body"||i==="textarea"&&s===""||or(t,s):(typeof s=="number"||typeof s=="bigint")&&i!=="body"&&or(t,""+s);break;case"className":it(t,"class",s);break;case"tabIndex":it(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":it(t,a,s);break;case"style":th(t,s,p);break;case"data":if(i!=="object"){it(t,"data",s);break}case"src":case"href":if(s===""&&(i!=="a"||a!=="href")){t.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=To(""+s),t.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(a==="formAction"?(i!=="input"&&rt(t,i,"name",d.name,d,null),rt(t,i,"formEncType",d.formEncType,d,null),rt(t,i,"formMethod",d.formMethod,d,null),rt(t,i,"formTarget",d.formTarget,d,null)):(rt(t,i,"encType",d.encType,d,null),rt(t,i,"method",d.method,d,null),rt(t,i,"target",d.target,d,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=To(""+s),t.setAttribute(a,s);break;case"onClick":s!=null&&(t.onclick=xi);break;case"onScroll":s!=null&&Ve("scroll",t);break;case"onScrollEnd":s!=null&&Ve("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(d.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}a=To(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,""+s):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":s===!0?t.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,s):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(a,s):t.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(a):t.setAttribute(a,s);break;case"popover":Ve("beforetoggle",t),Ve("toggle",t),je(t,"popover",s);break;case"xlinkActuate":Tt(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Tt(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Tt(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Tt(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Tt(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Tt(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Tt(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Tt(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Tt(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":je(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Zx.get(a)||a,je(t,a,s))}}function Nf(t,i,a,s,d,p){switch(a){case"style":th(t,s,p);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(d.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof s=="string"?or(t,s):(typeof s=="number"||typeof s=="bigint")&&or(t,""+s);break;case"onScroll":s!=null&&Ve("scroll",t);break;case"onScrollEnd":s!=null&&Ve("scrollend",t);break;case"onClick":s!=null&&(t.onclick=xi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ca.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),i=a.slice(2,d?a.length-7:void 0),p=t[nt]||null,p=p!=null?p[a]:null,typeof p=="function"&&t.removeEventListener(i,p,d),typeof s=="function")){typeof p!="function"&&p!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(i,s,d);break e}a in t?t[a]=s:s===!0?t.setAttribute(a,""):je(t,a,s)}}}function Kt(t,i,a){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ve("error",t),Ve("load",t);var s=!1,d=!1,p;for(p in a)if(a.hasOwnProperty(p)){var S=a[p];if(S!=null)switch(p){case"src":s=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:rt(t,i,p,S,a,null)}}d&&rt(t,i,"srcSet",a.srcSet,a,null),s&&rt(t,i,"src",a.src,a,null);return;case"input":Ve("invalid",t);var A=p=S=d=null,O=null,G=null;for(s in a)if(a.hasOwnProperty(s)){var Z=a[s];if(Z!=null)switch(s){case"name":d=Z;break;case"type":S=Z;break;case"checked":O=Z;break;case"defaultChecked":G=Z;break;case"value":p=Z;break;case"defaultValue":A=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(r(137,i));break;default:rt(t,i,s,Z,a,null)}}$m(t,p,A,O,G,S,d,!1);return;case"select":Ve("invalid",t),s=S=p=null;for(d in a)if(a.hasOwnProperty(d)&&(A=a[d],A!=null))switch(d){case"value":p=A;break;case"defaultValue":S=A;break;case"multiple":s=A;default:rt(t,i,d,A,a,null)}i=p,a=S,t.multiple=!!s,i!=null?ar(t,!!s,i,!1):a!=null&&ar(t,!!s,a,!0);return;case"textarea":Ve("invalid",t),p=d=s=null;for(S in a)if(a.hasOwnProperty(S)&&(A=a[S],A!=null))switch(S){case"value":s=A;break;case"defaultValue":d=A;break;case"children":p=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(91));break;default:rt(t,i,S,A,a,null)}Wm(t,s,d,p);return;case"option":for(O in a)if(a.hasOwnProperty(O)&&(s=a[O],s!=null))switch(O){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:rt(t,i,O,s,a,null)}return;case"dialog":Ve("beforetoggle",t),Ve("toggle",t),Ve("cancel",t),Ve("close",t);break;case"iframe":case"object":Ve("load",t);break;case"video":case"audio":for(s=0;s<Pa.length;s++)Ve(Pa[s],t);break;case"image":Ve("error",t),Ve("load",t);break;case"details":Ve("toggle",t);break;case"embed":case"source":case"link":Ve("error",t),Ve("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(G in a)if(a.hasOwnProperty(G)&&(s=a[G],s!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:rt(t,i,G,s,a,null)}return;default:if(Hu(i)){for(Z in a)a.hasOwnProperty(Z)&&(s=a[Z],s!==void 0&&Nf(t,i,Z,s,a,void 0));return}}for(A in a)a.hasOwnProperty(A)&&(s=a[A],s!=null&&rt(t,i,A,s,a,null))}function kw(t,i,a,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,S=null,A=null,O=null,G=null,Z=null;for(Q in a){var ie=a[Q];if(a.hasOwnProperty(Q)&&ie!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":O=ie;default:s.hasOwnProperty(Q)||rt(t,i,Q,null,s,ie)}}for(var Y in s){var Q=s[Y];if(ie=a[Y],s.hasOwnProperty(Y)&&(Q!=null||ie!=null))switch(Y){case"type":p=Q;break;case"name":d=Q;break;case"checked":G=Q;break;case"defaultChecked":Z=Q;break;case"value":S=Q;break;case"defaultValue":A=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,i));break;default:Q!==ie&&rt(t,i,Y,Q,s,ie)}}Vu(t,S,A,O,G,Z,p,d);return;case"select":Q=S=A=Y=null;for(p in a)if(O=a[p],a.hasOwnProperty(p)&&O!=null)switch(p){case"value":break;case"multiple":Q=O;default:s.hasOwnProperty(p)||rt(t,i,p,null,s,O)}for(d in s)if(p=s[d],O=a[d],s.hasOwnProperty(d)&&(p!=null||O!=null))switch(d){case"value":Y=p;break;case"defaultValue":A=p;break;case"multiple":S=p;default:p!==O&&rt(t,i,d,p,s,O)}i=A,a=S,s=Q,Y!=null?ar(t,!!a,Y,!1):!!s!=!!a&&(i!=null?ar(t,!!a,i,!0):ar(t,!!a,a?[]:"",!1));return;case"textarea":Q=Y=null;for(A in a)if(d=a[A],a.hasOwnProperty(A)&&d!=null&&!s.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:rt(t,i,A,null,s,d)}for(S in s)if(d=s[S],p=a[S],s.hasOwnProperty(S)&&(d!=null||p!=null))switch(S){case"value":Y=d;break;case"defaultValue":Q=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==p&&rt(t,i,S,d,s,p)}Jm(t,Y,Q);return;case"option":for(var pe in a)if(Y=a[pe],a.hasOwnProperty(pe)&&Y!=null&&!s.hasOwnProperty(pe))switch(pe){case"selected":t.selected=!1;break;default:rt(t,i,pe,null,s,Y)}for(O in s)if(Y=s[O],Q=a[O],s.hasOwnProperty(O)&&Y!==Q&&(Y!=null||Q!=null))switch(O){case"selected":t.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:rt(t,i,O,Y,s,Q)}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 Ce in a)Y=a[Ce],a.hasOwnProperty(Ce)&&Y!=null&&!s.hasOwnProperty(Ce)&&rt(t,i,Ce,null,s,Y);for(G in s)if(Y=s[G],Q=a[G],s.hasOwnProperty(G)&&Y!==Q&&(Y!=null||Q!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,i));break;default:rt(t,i,G,Y,s,Q)}return;default:if(Hu(i)){for(var at in a)Y=a[at],a.hasOwnProperty(at)&&Y!==void 0&&!s.hasOwnProperty(at)&&Nf(t,i,at,void 0,s,Y);for(Z in s)Y=s[Z],Q=a[Z],!s.hasOwnProperty(Z)||Y===Q||Y===void 0&&Q===void 0||Nf(t,i,Z,Y,s,Q);return}}for(var B in a)Y=a[B],a.hasOwnProperty(B)&&Y!=null&&!s.hasOwnProperty(B)&&rt(t,i,B,null,s,Y);for(ie in s)Y=s[ie],Q=a[ie],!s.hasOwnProperty(ie)||Y===Q||Y==null&&Q==null||rt(t,i,ie,Y,s,Q)}function ny(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Cw(){if(typeof performance.getEntriesByType=="function"){for(var t=0,i=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var d=a[s],p=d.transferSize,S=d.initiatorType,A=d.duration;if(p&&A&&ny(S)){for(S=0,A=d.responseEnd,s+=1;s<a.length;s++){var O=a[s],G=O.startTime;if(G>A)break;var Z=O.transferSize,ie=O.initiatorType;Z&&ny(ie)&&(O=O.responseEnd,S+=Z*(O<A?1:(A-G)/(O-G)))}if(--s,i+=8*(p+S)/(d.duration/1e3),t++,10<t)break}}if(0<t)return i/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var zf=null,Mf=null;function ws(t){return t.nodeType===9?t:t.ownerDocument}function iy(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 ly(t,i){if(t===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&i==="foreignObject"?0:t}function Of(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var jf=null;function Ew(){var t=window.event;return t&&t.type==="popstate"?t===jf?!1:(jf=t,!0):(jf=null,!1)}var ry=typeof setTimeout=="function"?setTimeout:void 0,Aw=typeof clearTimeout=="function"?clearTimeout:void 0,ay=typeof Promise=="function"?Promise:void 0,Tw=typeof queueMicrotask=="function"?queueMicrotask:typeof ay<"u"?function(t){return ay.resolve(null).then(t).catch(_w)}:ry;function _w(t){setTimeout(function(){throw t})}function cl(t){return t==="head"}function oy(t,i){var a=i,s=0;do{var d=a.nextSibling;if(t.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(s===0){t.removeChild(d),Br(i);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")Ga(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,Ga(a);for(var p=a.firstChild;p;){var S=p.nextSibling,A=p.nodeName;p[$e]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=S}}else a==="body"&&Ga(t.ownerDocument.body);a=d}while(a);Br(i)}function sy(t,i){var a=t;t=0;do{var s=a.nextSibling;if(a.nodeType===1?i?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(i?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=s}while(a)}function Rf(t){var i=t.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var a=i;switch(i=i.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Rf(a),Al(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function Nw(t,i,a,s){for(;t.nodeType===1;){var d=a;if(t.nodeName.toLowerCase()!==i.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[$e])switch(i){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==d.rel||t.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(p=t.getAttribute("src"),(p!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(i==="input"&&t.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=Vn(t.nextSibling),t===null)break}return null}function zw(t,i,a){if(i==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Vn(t.nextSibling),t===null))return null;return t}function uy(t,i){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Vn(t.nextSibling),t===null))return null;return t}function Df(t){return t.data==="$?"||t.data==="$~"}function Lf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Mw(t,i){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=i;else if(t.data!=="$?"||a.readyState!=="loading")i();else{var s=function(){i(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function Vn(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===1||i===3)break;if(i===8){if(i=t.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return t}var If=null;function cy(t){t=t.nextSibling;for(var i=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(i===0)return Vn(t.nextSibling);i--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||i++}t=t.nextSibling}return null}function fy(t){t=t.previousSibling;for(var i=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(i===0)return t;i--}else a!=="/$"&&a!=="/&"||i++}t=t.previousSibling}return null}function dy(t,i,a){switch(i=ws(a),t){case"html":if(t=i.documentElement,!t)throw Error(r(452));return t;case"head":if(t=i.head,!t)throw Error(r(453));return t;case"body":if(t=i.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Ga(t){for(var i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Al(t)}var Fn=new Map,my=new Set;function ks(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Li=X.d;X.d={f:Ow,r:jw,D:Rw,C:Dw,L:Lw,m:Iw,X:Uw,S:Bw,M:Vw};function Ow(){var t=Li.f(),i=hs();return t||i}function jw(t){var i=Tl(t);i!==null&&i.tag===5&&i.type==="form"?zp(i):Li.r(t)}var Dr=typeof document>"u"?null:document;function hy(t,i,a){var s=Dr;if(s&&typeof i=="string"&&i){var d=jn(i);d='link[rel="'+t+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),my.has(d)||(my.add(d),t={rel:t,crossOrigin:a,href:i},s.querySelector(d)===null&&(i=s.createElement("link"),Kt(i,"link",t),At(i),s.head.appendChild(i)))}}function Rw(t){Li.D(t),hy("dns-prefetch",t,null)}function Dw(t,i){Li.C(t,i),hy("preconnect",t,i)}function Lw(t,i,a){Li.L(t,i,a);var s=Dr;if(s&&t&&i){var d='link[rel="preload"][as="'+jn(i)+'"]';i==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+jn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+jn(a.imageSizes)+'"]')):d+='[href="'+jn(t)+'"]';var p=d;switch(i){case"style":p=Lr(t);break;case"script":p=Ir(t)}Fn.has(p)||(t=g({rel:"preload",href:i==="image"&&a&&a.imageSrcSet?void 0:t,as:i},a),Fn.set(p,t),s.querySelector(d)!==null||i==="style"&&s.querySelector(Ya(p))||i==="script"&&s.querySelector(Qa(p))||(i=s.createElement("link"),Kt(i,"link",t),At(i),s.head.appendChild(i)))}}function Iw(t,i){Li.m(t,i);var a=Dr;if(a&&t){var s=i&&typeof i.as=="string"?i.as:"script",d='link[rel="modulepreload"][as="'+jn(s)+'"][href="'+jn(t)+'"]',p=d;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Ir(t)}if(!Fn.has(p)&&(t=g({rel:"modulepreload",href:t},i),Fn.set(p,t),a.querySelector(d)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Qa(p)))return}s=a.createElement("link"),Kt(s,"link",t),At(s),a.head.appendChild(s)}}}function Bw(t,i,a){Li.S(t,i,a);var s=Dr;if(s&&t){var d=Gi(s).hoistableStyles,p=Lr(t);i=i||"default";var S=d.get(p);if(!S){var A={loading:0,preload:null};if(S=s.querySelector(Ya(p)))A.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":i},a),(a=Fn.get(p))&&Bf(t,a);var O=S=s.createElement("link");At(O),Kt(O,"link",t),O._p=new Promise(function(G,Z){O.onload=G,O.onerror=Z}),O.addEventListener("load",function(){A.loading|=1}),O.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Cs(S,i,s)}S={type:"stylesheet",instance:S,count:1,state:A},d.set(p,S)}}}function Uw(t,i){Li.X(t,i);var a=Dr;if(a&&t){var s=Gi(a).hoistableScripts,d=Ir(t),p=s.get(d);p||(p=a.querySelector(Qa(d)),p||(t=g({src:t,async:!0},i),(i=Fn.get(d))&&Uf(t,i),p=a.createElement("script"),At(p),Kt(p,"link",t),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(d,p))}}function Vw(t,i){Li.M(t,i);var a=Dr;if(a&&t){var s=Gi(a).hoistableScripts,d=Ir(t),p=s.get(d);p||(p=a.querySelector(Qa(d)),p||(t=g({src:t,async:!0,type:"module"},i),(i=Fn.get(d))&&Uf(t,i),p=a.createElement("script"),At(p),Kt(p,"link",t),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(d,p))}}function py(t,i,a,s){var d=(d=re.current)?ks(d):null;if(!d)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(i=Lr(a.href),a=Gi(d).hoistableStyles,s=a.get(i),s||(s={type:"style",instance:null,count:0,state:null},a.set(i,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=Lr(a.href);var p=Gi(d).hoistableStyles,S=p.get(t);if(S||(d=d.ownerDocument||d,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,S),(p=d.querySelector(Ya(t)))&&!p._p&&(S.instance=p,S.state.loading=5),Fn.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Fn.set(t,a),p||Fw(d,t,a,S.state))),i&&s===null)throw Error(r(528,""));return S}if(i&&s!==null)throw Error(r(529,""));return null;case"script":return i=a.async,a=a.src,typeof a=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Ir(a),a=Gi(d).hoistableScripts,s=a.get(i),s||(s={type:"script",instance:null,count:0,state:null},a.set(i,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Lr(t){return'href="'+jn(t)+'"'}function Ya(t){return'link[rel="stylesheet"]['+t+"]"}function gy(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function Fw(t,i,a,s){t.querySelector('link[rel="preload"][as="style"]['+i+"]")?s.loading=1:(i=t.createElement("link"),s.preload=i,i.addEventListener("load",function(){return s.loading|=1}),i.addEventListener("error",function(){return s.loading|=2}),Kt(i,"link",a),At(i),t.head.appendChild(i))}function Ir(t){return'[src="'+jn(t)+'"]'}function Qa(t){return"script[async]"+t}function yy(t,i,a){if(i.count++,i.instance===null)switch(i.type){case"style":var s=t.querySelector('style[data-href~="'+jn(a.href)+'"]');if(s)return i.instance=s,At(s),s;var d=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),At(s),Kt(s,"style",d),Cs(s,a.precedence,t),i.instance=s;case"stylesheet":d=Lr(a.href);var p=t.querySelector(Ya(d));if(p)return i.state.loading|=4,i.instance=p,At(p),p;s=gy(a),(d=Fn.get(d))&&Bf(s,d),p=(t.ownerDocument||t).createElement("link"),At(p);var S=p;return S._p=new Promise(function(A,O){S.onload=A,S.onerror=O}),Kt(p,"link",s),i.state.loading|=4,Cs(p,a.precedence,t),i.instance=p;case"script":return p=Ir(a.src),(d=t.querySelector(Qa(p)))?(i.instance=d,At(d),d):(s=a,(d=Fn.get(p))&&(s=g({},a),Uf(s,d)),t=t.ownerDocument||t,d=t.createElement("script"),At(d),Kt(d,"link",s),t.head.appendChild(d),i.instance=d);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(s=i.instance,i.state.loading|=4,Cs(s,a.precedence,t));return i.instance}function Cs(t,i,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=s.length?s[s.length-1]:null,p=d,S=0;S<s.length;S++){var A=s[S];if(A.dataset.precedence===i)p=A;else if(p!==d)break}p?p.parentNode.insertBefore(t,p.nextSibling):(i=a.nodeType===9?a.head:a,i.insertBefore(t,i.firstChild))}function Bf(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.title==null&&(t.title=i.title)}function Uf(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.integrity==null&&(t.integrity=i.integrity)}var Es=null;function vy(t,i,a){if(Es===null){var s=new Map,d=Es=new Map;d.set(a,s)}else d=Es,s=d.get(a),s||(s=new Map,d.set(a,s));if(s.has(t))return s;for(s.set(t,null),a=a.getElementsByTagName(t),d=0;d<a.length;d++){var p=a[d];if(!(p[$e]||p[dt]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var S=p.getAttribute(i)||"";S=t+S;var A=s.get(S);A?A.push(p):s.set(S,[p])}}return s}function by(t,i,a){t=t.ownerDocument||t,t.head.insertBefore(a,i==="title"?t.querySelector("head > title"):null)}function Hw(t,i,a){if(a===1||i.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return t=i.disabled,typeof i.precedence=="string"&&t==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function xy(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Pw(t,i,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Lr(s.href),p=i.querySelector(Ya(d));if(p){i=p._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(t.count++,t=As.bind(t),i.then(t,t)),a.state.loading|=4,a.instance=p,At(p);return}p=i.ownerDocument||i,s=gy(s),(d=Fn.get(d))&&Bf(s,d),p=p.createElement("link"),At(p);var S=p;S._p=new Promise(function(A,O){S.onload=A,S.onerror=O}),Kt(p,"link",s),a.instance=p}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,i),(i=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=As.bind(t),i.addEventListener("load",a),i.addEventListener("error",a))}}var Vf=0;function qw(t,i){return t.stylesheets&&t.count===0&&_s(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var s=setTimeout(function(){if(t.stylesheets&&_s(t,t.stylesheets),t.unsuspend){var p=t.unsuspend;t.unsuspend=null,p()}},6e4+i);0<t.imgBytes&&Vf===0&&(Vf=62500*Cw());var d=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&_s(t,t.stylesheets),t.unsuspend)){var p=t.unsuspend;t.unsuspend=null,p()}},(t.imgBytes>Vf?50:800)+i);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(d)}}:null}function As(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_s(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ts=null;function _s(t,i){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ts=new Map,i.forEach(Gw,t),Ts=null,As.call(t))}function Gw(t,i){if(!(i.state.loading&4)){var a=Ts.get(t);if(a)var s=a.get(null);else{a=new Map,Ts.set(t,a);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var S=d[p];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(a.set(S.dataset.precedence,S),s=S)}s&&a.set(null,s)}d=i.instance,S=d.getAttribute("data-precedence"),p=a.get(S)||s,p===s&&a.set(null,d),a.set(S,d),this.count++,s=As.bind(this),d.addEventListener("load",s),d.addEventListener("error",s),p?p.parentNode.insertBefore(d,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),i.state.loading|=4}}var Xa={$$typeof:M,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function Yw(t,i,a,s,d,p,S,A,O){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=oi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.hiddenUpdates=oi(null),this.identifierPrefix=s,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Sy(t,i,a,s,d,p,S,A,O,G,Z,ie){return t=new Yw(t,i,a,S,O,G,Z,ie,A),i=1,p===!0&&(i|=24),p=Sn(3,null,null,i),t.current=p,p.stateNode=t,i=vc(),i.refCount++,t.pooledCache=i,i.refCount++,p.memoizedState={element:s,isDehydrated:a,cache:i},wc(p),t}function wy(t){return t?(t=hr,t):hr}function ky(t,i,a,s,d,p){d=wy(d),s.context===null?s.context=d:s.pendingContext=d,s=Wi(i),s.payload={element:a},p=p===void 0?null:p,p!==null&&(s.callback=p),a=el(t,s,i),a!==null&&(pn(a,t,i),Aa(a,t,i))}function Cy(t,i){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<i?a:i}}function Ff(t,i){Cy(t,i),(t=t.alternate)&&Cy(t,i)}function Ey(t){if(t.tag===13||t.tag===31){var i=Ol(t,67108864);i!==null&&pn(i,t,67108864),Ff(t,67108864)}}function Ay(t){if(t.tag===13||t.tag===31){var i=An();i=Ft(i);var a=Ol(t,i);a!==null&&pn(a,t,i),Ff(t,i)}}var Ns=!0;function Qw(t,i,a,s){var d=L.T;L.T=null;var p=X.p;try{X.p=2,Hf(t,i,a,s)}finally{X.p=p,L.T=d}}function Xw(t,i,a,s){var d=L.T;L.T=null;var p=X.p;try{X.p=8,Hf(t,i,a,s)}finally{X.p=p,L.T=d}}function Hf(t,i,a,s){if(Ns){var d=Pf(s);if(d===null)_f(t,i,s,zs,a),_y(t,s);else if(Zw(d,t,i,a,s))s.stopPropagation();else if(_y(t,s),i&4&&-1<Kw.indexOf(t)){for(;d!==null;){var p=Tl(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var S=qt(p.pendingLanes);if(S!==0){var A=p;for(A.pendingLanes|=2,A.entangledLanes|=2;S;){var O=1<<31-Be(S);A.entanglements[1]|=O,S&=~O}fi(p),(Je&6)===0&&(ds=pt()+500,Ha(0))}}break;case 31:case 13:A=Ol(p,2),A!==null&&pn(A,p,2),hs(),Ff(p,2)}if(p=Pf(s),p===null&&_f(t,i,s,zs,a),p===d)break;d=p}d!==null&&s.stopPropagation()}else _f(t,i,s,null,a)}}function Pf(t){return t=qu(t),qf(t)}var zs=null;function qf(t){if(zs=null,t=qi(t),t!==null){var i=u(t);if(i===null)t=null;else{var a=i.tag;if(a===13){if(t=c(i),t!==null)return t;t=null}else if(a===31){if(t=f(i),t!==null)return t;t=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;t=null}else i!==t&&(t=null)}}return zs=t,null}function Ty(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(bn()){case K:return 2;case fe:return 8;case we:case _e:return 32;case He:return 268435456;default:return 32}default:return 32}}var Gf=!1,fl=null,dl=null,ml=null,Ka=new Map,Za=new Map,hl=[],Kw="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 _y(t,i){switch(t){case"focusin":case"focusout":fl=null;break;case"dragenter":case"dragleave":dl=null;break;case"mouseover":case"mouseout":ml=null;break;case"pointerover":case"pointerout":Ka.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Za.delete(i.pointerId)}}function $a(t,i,a,s,d,p){return t===null||t.nativeEvent!==p?(t={blockedOn:i,domEventName:a,eventSystemFlags:s,nativeEvent:p,targetContainers:[d]},i!==null&&(i=Tl(i),i!==null&&Ey(i)),t):(t.eventSystemFlags|=s,i=t.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),t)}function Zw(t,i,a,s,d){switch(i){case"focusin":return fl=$a(fl,t,i,a,s,d),!0;case"dragenter":return dl=$a(dl,t,i,a,s,d),!0;case"mouseover":return ml=$a(ml,t,i,a,s,d),!0;case"pointerover":var p=d.pointerId;return Ka.set(p,$a(Ka.get(p)||null,t,i,a,s,d)),!0;case"gotpointercapture":return p=d.pointerId,Za.set(p,$a(Za.get(p)||null,t,i,a,s,d)),!0}return!1}function Ny(t){var i=qi(t.target);if(i!==null){var a=u(i);if(a!==null){if(i=a.tag,i===13){if(i=c(a),i!==null){t.blockedOn=i,On(t.priority,function(){Ay(a)});return}}else if(i===31){if(i=f(a),i!==null){t.blockedOn=i,On(t.priority,function(){Ay(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ms(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;0<i.length;){var a=Pf(t.nativeEvent);if(a===null){a=t.nativeEvent;var s=new a.constructor(a.type,a);Pu=s,a.target.dispatchEvent(s),Pu=null}else return i=Tl(a),i!==null&&Ey(i),t.blockedOn=a,!1;i.shift()}return!0}function zy(t,i,a){Ms(t)&&a.delete(i)}function $w(){Gf=!1,fl!==null&&Ms(fl)&&(fl=null),dl!==null&&Ms(dl)&&(dl=null),ml!==null&&Ms(ml)&&(ml=null),Ka.forEach(zy),Za.forEach(zy)}function Os(t,i){t.blockedOn===i&&(t.blockedOn=null,Gf||(Gf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,$w)))}var js=null;function My(t){js!==t&&(js=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){js===t&&(js=null);for(var i=0;i<t.length;i+=3){var a=t[i],s=t[i+1],d=t[i+2];if(typeof s!="function"){if(qf(s||a)===null)continue;break}var p=Tl(a);p!==null&&(t.splice(i,3),i-=3,Hc(p,{pending:!0,data:d,method:a.method,action:s},s,d))}}))}function Br(t){function i(O){return Os(O,t)}fl!==null&&Os(fl,t),dl!==null&&Os(dl,t),ml!==null&&Os(ml,t),Ka.forEach(i),Za.forEach(i);for(var a=0;a<hl.length;a++){var s=hl[a];s.blockedOn===t&&(s.blockedOn=null)}for(;0<hl.length&&(a=hl[0],a.blockedOn===null);)Ny(a),a.blockedOn===null&&hl.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var d=a[s],p=a[s+1],S=d[nt]||null;if(typeof p=="function")S||My(a);else if(S){var A=null;if(p&&p.hasAttribute("formAction")){if(d=p,S=p[nt]||null)A=S.formAction;else if(qf(d)!==null)continue}else A=S.action;typeof A=="function"?a[s+1]=A:(a.splice(s,3),s-=3),My(a)}}}function Oy(){function t(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(S){return d=S})},focusReset:"manual",scroll:"manual"})}function i(){d!==null&&(d(),d=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,d=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),d!==null&&(d(),d=null)}}}function Yf(t){this._internalRoot=t}Rs.prototype.render=Yf.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw Error(r(409));var a=i.current,s=An();ky(a,s,t,i,null,null)},Rs.prototype.unmount=Yf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;ky(t.current,2,null,t,null,null),hs(),i[vi]=null}};function Rs(t){this._internalRoot=t}Rs.prototype.unstable_scheduleHydration=function(t){if(t){var i=Ae();t={blockedOn:null,target:t,priority:i};for(var a=0;a<hl.length&&i!==0&&i<hl[a].priority;a++);hl.splice(a,0,t),a===0&&Ny(t)}};var jy=n.version;if(jy!=="19.2.1")throw Error(r(527,jy,"19.2.1"));X.findDOMNode=function(t){var i=t._reactInternals;if(i===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=m(i),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var Jw={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ds=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ds.isDisabled&&Ds.supportsFiber)try{ft=Ds.inject(Jw),gt=Ds}catch{}}return Wa.createRoot=function(t,i){if(!o(t))throw Error(r(299));var a=!1,s="",d=Vp,p=Fp,S=Hp;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(s=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(p=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError)),i=Sy(t,1,!1,null,null,a,s,null,d,p,S,Oy),t[vi]=i.current,Tf(t),new Yf(i)},Wa.hydrateRoot=function(t,i,a){if(!o(t))throw Error(r(299));var s=!1,d="",p=Vp,S=Fp,A=Hp,O=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(S=a.onCaughtError),a.onRecoverableError!==void 0&&(A=a.onRecoverableError),a.formState!==void 0&&(O=a.formState)),i=Sy(t,1,!0,i,a??null,s,d,O,p,S,A,Oy),i.context=wy(null),a=i.current,s=An(),s=Ft(s),d=Wi(s),d.callback=null,el(a,d,s),a=s,i.current.lanes=a,de(i,a),fi(i),t[vi]=i.current,Tf(t),new Rs(i)},Wa.version="19.2.1",Wa}var Py;function sk(){if(Py)return Kf.exports;Py=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Kf.exports=ok(),Kf.exports}var uk=sk();/**
|
|
50
|
+
* @license lucide-react v0.562.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const ck=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,l,r)=>r?r.toUpperCase():l.toLowerCase()),qy=e=>{const n=fk(e);return n.charAt(0).toUpperCase()+n.slice(1)},Qv=(...e)=>e.filter((n,l,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===l).join(" ").trim(),dk=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
|
|
55
|
+
* @license lucide-react v0.562.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/var mk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
60
|
+
* @license lucide-react v0.562.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const hk=E.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:r,className:o="",children:u,iconNode:c,...f},h)=>E.createElement("svg",{ref:h,...mk,width:n,height:n,stroke:e,strokeWidth:r?Number(l)*24/Number(n):l,className:Qv("lucide",o),...!u&&!dk(f)&&{"aria-hidden":"true"},...f},[...c.map(([m,y])=>E.createElement(m,y)),...Array.isArray(u)?u:[u]]));/**
|
|
65
|
+
* @license lucide-react v0.562.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const Te=(e,n)=>{const l=E.forwardRef(({className:r,...o},u)=>E.createElement(hk,{ref:u,iconNode:n,className:Qv(`lucide-${ck(qy(e))}`,`lucide-${e}`,r),...o}));return l.displayName=qy(e),l};/**
|
|
70
|
+
* @license lucide-react v0.562.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const pk=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],gk=Te("arrow-down-to-line",pk);/**
|
|
75
|
+
* @license lucide-react v0.562.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const yk=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],vk=Te("arrow-down",yk);/**
|
|
80
|
+
* @license lucide-react v0.562.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const bk=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],xk=Te("arrow-up",bk);/**
|
|
85
|
+
* @license lucide-react v0.562.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const Sk=[["path",{d:"M12 6v12",key:"1vza4d"}],["path",{d:"M17.196 9 6.804 15",key:"1ah31z"}],["path",{d:"m6.804 9 10.392 6",key:"1b6pxd"}]],wk=Te("asterisk",Sk);/**
|
|
90
|
+
* @license lucide-react v0.562.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const kk=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],Ck=Te("check-check",kk);/**
|
|
95
|
+
* @license lucide-react v0.562.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const Ek=[["path",{d:"M20 4L9 15",key:"1qkx8z"}],["path",{d:"M21 19L3 19",key:"100sma"}],["path",{d:"M9 15L4 10",key:"9zxff7"}]],Ak=Te("check-line",Ek);/**
|
|
100
|
+
* @license lucide-react v0.562.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const Tk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Zr=Te("check",Tk);/**
|
|
105
|
+
* @license lucide-react v0.562.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const _k=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Nk=Te("chevron-down",_k);/**
|
|
110
|
+
* @license lucide-react v0.562.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const zk=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Mk=Te("chevron-left",zk);/**
|
|
115
|
+
* @license lucide-react v0.562.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const Ok=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ql=Te("chevron-right",Ok);/**
|
|
120
|
+
* @license lucide-react v0.562.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const jk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],Rk=Te("circle-slash",jk);/**
|
|
125
|
+
* @license lucide-react v0.562.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const Dk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Lk=Te("circle",Dk);/**
|
|
130
|
+
* @license lucide-react v0.562.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const Ik=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],om=Te("copy",Ik);/**
|
|
135
|
+
* @license lucide-react v0.562.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const Bk=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],Uk=Te("corner-down-left",Bk);/**
|
|
140
|
+
* @license lucide-react v0.562.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const Vk=[["path",{d:"M20 20v-7a4 4 0 0 0-4-4H4",key:"1nkjon"}],["path",{d:"M9 14 4 9l5-5",key:"102s5s"}]],Fk=Te("corner-up-left",Vk);/**
|
|
145
|
+
* @license lucide-react v0.562.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const Hk=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Pk=Te("external-link",Hk);/**
|
|
150
|
+
* @license lucide-react v0.562.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const qk=[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],Gk=Te("file-archive",qk);/**
|
|
155
|
+
* @license lucide-react v0.562.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const Yk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],Qk=Te("file-braces",Yk);/**
|
|
160
|
+
* @license lucide-react v0.562.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const Xk=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],Kk=Te("file-code-corner",Xk);/**
|
|
165
|
+
* @license lucide-react v0.562.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const Zk=[["path",{d:"M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343",key:"1vfytu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0",key:"1etmh7"}]],$k=Te("file-headphone",Zk);/**
|
|
170
|
+
* @license lucide-react v0.562.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const Jk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],Xv=Te("file-image",Jk);/**
|
|
175
|
+
* @license lucide-react v0.562.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const Wk=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],eC=Te("file-pen",Wk);/**
|
|
180
|
+
* @license lucide-react v0.562.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const tC=[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]],nC=Te("file-plus-corner",tC);/**
|
|
185
|
+
* @license lucide-react v0.562.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const iC=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],lC=Te("file-spreadsheet",iC);/**
|
|
190
|
+
* @license lucide-react v0.562.0 - ISC
|
|
191
|
+
*
|
|
192
|
+
* This source code is licensed under the ISC license.
|
|
193
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
+
*/const rC=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],aC=Te("file-text",rC);/**
|
|
195
|
+
* @license lucide-react v0.562.0 - ISC
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the ISC license.
|
|
198
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/const oC=[["path",{d:"M4 12V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2",key:"jrl274"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m10 17.843 3.033-1.755a.64.64 0 0 1 .967.56v4.704a.65.65 0 0 1-.967.56L10 20.157",key:"17aeo9"}],["rect",{width:"7",height:"6",x:"3",y:"16",rx:"1",key:"s27ndx"}]],sC=Te("file-video-camera",oC);/**
|
|
200
|
+
* @license lucide-react v0.562.0 - ISC
|
|
201
|
+
*
|
|
202
|
+
* This source code is licensed under the ISC license.
|
|
203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
+
*/const uC=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],cC=Te("file-x",uC);/**
|
|
205
|
+
* @license lucide-react v0.562.0 - ISC
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the ISC license.
|
|
208
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/const fC=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Kv=Te("file",fC);/**
|
|
210
|
+
* @license lucide-react v0.562.0 - ISC
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the ISC license.
|
|
213
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/const dC=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M12 16.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 1 1 4.5 4.5 4.5 4.5 0 1 1-4.5 4.5",key:"14wa3c"}],["path",{d:"M12 7.5V9",key:"1oy5b0"}],["path",{d:"M7.5 12H9",key:"eltsq1"}],["path",{d:"M16.5 12H15",key:"vk5kw4"}],["path",{d:"M12 16.5V15",key:"k7eayi"}],["path",{d:"m8 8 1.88 1.88",key:"nxy4qf"}],["path",{d:"M14.12 9.88 16 8",key:"1lst6k"}],["path",{d:"m8 16 1.88-1.88",key:"h2eex1"}],["path",{d:"M14.12 14.12 16 16",key:"uqkrx3"}]],Ld=Te("flower",dC);/**
|
|
215
|
+
* @license lucide-react v0.562.0 - ISC
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the ISC license.
|
|
218
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/const mC=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],hC=Te("link-2",mC);/**
|
|
220
|
+
* @license lucide-react v0.562.0 - ISC
|
|
221
|
+
*
|
|
222
|
+
* This source code is licensed under the ISC license.
|
|
223
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
+
*/const pC=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],gC=Te("list-checks",pC);/**
|
|
225
|
+
* @license lucide-react v0.562.0 - ISC
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the ISC license.
|
|
228
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/const yC=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],Gy=Te("list-todo",yC);/**
|
|
230
|
+
* @license lucide-react v0.562.0 - ISC
|
|
231
|
+
*
|
|
232
|
+
* This source code is licensed under the ISC license.
|
|
233
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
+
*/const vC=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],sm=Te("loader-circle",vC);/**
|
|
235
|
+
* @license lucide-react v0.562.0 - ISC
|
|
236
|
+
*
|
|
237
|
+
* This source code is licensed under the ISC license.
|
|
238
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
+
*/const bC=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Yy=Te("map",bC);/**
|
|
240
|
+
* @license lucide-react v0.562.0 - ISC
|
|
241
|
+
*
|
|
242
|
+
* This source code is licensed under the ISC license.
|
|
243
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
+
*/const xC=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Zv=Te("message-circle-question-mark",xC);/**
|
|
245
|
+
* @license lucide-react v0.562.0 - ISC
|
|
246
|
+
*
|
|
247
|
+
* This source code is licensed under the ISC license.
|
|
248
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
+
*/const SC=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]],$v=Te("minimize",SC);/**
|
|
250
|
+
* @license lucide-react v0.562.0 - ISC
|
|
251
|
+
*
|
|
252
|
+
* This source code is licensed under the ISC license.
|
|
253
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
+
*/const wC=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Jv=Te("pencil",wC);/**
|
|
255
|
+
* @license lucide-react v0.562.0 - ISC
|
|
256
|
+
*
|
|
257
|
+
* This source code is licensed under the ISC license.
|
|
258
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
+
*/const kC=[["path",{d:"M13 16H8",key:"wsln4y"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z",key:"ycz6yz"}]],CC=Te("receipt-text",kC);/**
|
|
260
|
+
* @license lucide-react v0.562.0 - ISC
|
|
261
|
+
*
|
|
262
|
+
* This source code is licensed under the ISC license.
|
|
263
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
+
*/const EC=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],AC=Te("scroll-text",EC);/**
|
|
265
|
+
* @license lucide-react v0.562.0 - ISC
|
|
266
|
+
*
|
|
267
|
+
* This source code is licensed under the ISC license.
|
|
268
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
+
*/const TC=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Wf=Te("search",TC);/**
|
|
270
|
+
* @license lucide-react v0.562.0 - ISC
|
|
271
|
+
*
|
|
272
|
+
* This source code is licensed under the ISC license.
|
|
273
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
+
*/const _C=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],NC=Te("send",_C);/**
|
|
275
|
+
* @license lucide-react v0.562.0 - ISC
|
|
276
|
+
*
|
|
277
|
+
* This source code is licensed under the ISC license.
|
|
278
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
+
*/const zC=[["path",{d:"M22 2 2 22",key:"y4kqgn"}]],MC=Te("slash",zC);/**
|
|
280
|
+
* @license lucide-react v0.562.0 - ISC
|
|
281
|
+
*
|
|
282
|
+
* This source code is licensed under the ISC license.
|
|
283
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
+
*/const OC=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],jC=Te("sparkles",OC);/**
|
|
285
|
+
* @license lucide-react v0.562.0 - ISC
|
|
286
|
+
*
|
|
287
|
+
* This source code is licensed under the ISC license.
|
|
288
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
+
*/const RC=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],DC=Te("square-x",RC);/**
|
|
290
|
+
* @license lucide-react v0.562.0 - ISC
|
|
291
|
+
*
|
|
292
|
+
* This source code is licensed under the ISC license.
|
|
293
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
+
*/const LC=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],IC=Te("terminal",LC);/**
|
|
295
|
+
* @license lucide-react v0.562.0 - ISC
|
|
296
|
+
*
|
|
297
|
+
* This source code is licensed under the ISC license.
|
|
298
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
+
*/const BC=[["rect",{width:"18",height:"12",x:"3",y:"8",rx:"1",key:"158fvp"}],["path",{d:"M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3",key:"s0042v"}],["path",{d:"M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3",key:"9wmeh2"}]],UC=Te("toy-brick",BC);/**
|
|
300
|
+
* @license lucide-react v0.562.0 - ISC
|
|
301
|
+
*
|
|
302
|
+
* This source code is licensed under the ISC license.
|
|
303
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
+
*/const VC=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],FC=Te("upload",VC);/**
|
|
305
|
+
* @license lucide-react v0.562.0 - ISC
|
|
306
|
+
*
|
|
307
|
+
* This source code is licensed under the ISC license.
|
|
308
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
+
*/const HC=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],um=Te("user-round",HC);/**
|
|
310
|
+
* @license lucide-react v0.562.0 - ISC
|
|
311
|
+
*
|
|
312
|
+
* This source code is licensed under the ISC license.
|
|
313
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
+
*/const PC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],na=Te("x",PC);var ed={exports:{}},td={};/**
|
|
315
|
+
* @license React
|
|
316
|
+
* use-sync-external-store-shim.production.js
|
|
317
|
+
*
|
|
318
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
319
|
+
*
|
|
320
|
+
* This source code is licensed under the MIT license found in the
|
|
321
|
+
* LICENSE file in the root directory of this source tree.
|
|
322
|
+
*/var Qy;function qC(){if(Qy)return td;Qy=1;var e=vu();function n(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var l=typeof Object.is=="function"?Object.is:n,r=e.useState,o=e.useEffect,u=e.useLayoutEffect,c=e.useDebugValue;function f(g,v){var b=v(),w=r({inst:{value:b,getSnapshot:v}}),k=w[0].inst,T=w[1];return u(function(){k.value=b,k.getSnapshot=v,h(k)&&T({inst:k})},[g,b,v]),o(function(){return h(k)&&T({inst:k}),g(function(){h(k)&&T({inst:k})})},[g]),c(b),b}function h(g){var v=g.getSnapshot;g=g.value;try{var b=v();return!l(g,b)}catch{return!0}}function m(g,v){return v()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:f;return td.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,td}var Xy;function GC(){return Xy||(Xy=1,ed.exports=qC()),ed.exports}var Wv=GC(),bu=Yv();const YC=yu(bu);var nd={};E.forwardRef(function(n,l){return E.createElement("div",{ref:l,...n})});var cm=E.forwardRef(function(n,l){return E.createElement("div",{ref:l,...n})}),Hn=cm;function fm(e){var n;const{props:l}=e,r=l.horizontal,o=l.contentInset,u=o??e.nativeContentInset,c=(n=e.contentInsetOverride)!=null?n:void 0;if(c){const f={bottom:0,right:0,...u,...c};return(r?f.right:f.bottom)||0}return u&&(r?u.right:u.bottom)||0}function Yn(e){var n;const{values:l,state:r}=e,o=l.get("stylePaddingTop")||0,u=r.props.stylePaddingBottom||0,c=l.get("headerSize")||0,f=l.get("footerSize")||0,h=fm(r),m=(n=r.pendingTotalSize)!=null?n:l.get("totalSize");return c+f+m+o+u+(h||0)}var QC=e=>e,xu=E.createContext(null),XC=0;function KC({children:e}){const[n]=E.useState(()=>({animatedScrollY:QC(0),columnWrapperStyle:void 0,contextNum:XC++,listeners:new Map,mapViewabilityAmountCallbacks:new Map,mapViewabilityAmountValues:new Map,mapViewabilityCallbacks:new Map,mapViewabilityConfigStates:new Map,mapViewabilityValues:new Map,positionListeners:new Map,state:void 0,values:new Map([["stylePaddingTop",0],["headerSize",0],["numContainers",0],["activeStickyIndex",-1],["totalSize",0],["scrollAdjustPending",0]]),viewRefs:new Map}));return E.createElement(xu.Provider,{value:n},e)}function Ui(){return E.useContext(xu)}function eb(e,n){let l=[],r=[];return{get:()=>{const o=[];let u=!1;for(let c=0;c<n.length;c++){const f=xe(e,n[c]);o.push(f),f!==r[c]&&(u=!0)}return r=o,u&&(l=o),l},subscribe:o=>{const u=[];for(const c of n)u.push($r(e,c,o));return()=>{for(const c of u)c()}}}}function $r(e,n,l){const{listeners:r}=e;let o=r.get(n);return o||(o=new Set,r.set(n,o)),o.add(l),()=>o.delete(l)}function xe(e,n){const{values:l}=e;return l.get(n)}function Ee(e,n,l){const{listeners:r,values:o}=e;if(o.get(n)!==l){o.set(n,l);const u=r.get(n);if(u)for(const c of u)c(l)}}function ZC(e,n,l){const{positionListeners:r}=e;let o=r.get(n);return o||(o=new Set,r.set(n,o)),o.add(l),()=>o.delete(l)}function $C(e,n,l){const{positionListeners:r}=e,o=r.get(n);if(o)for(const u of o)u(l)}function Jl(e){const n=E.useContext(xu),{subscribe:l,get:r}=E.useMemo(()=>eb(n,e),[n,e]);return Wv.useSyncExternalStore(l,r)}function JC(e,n){const l=E.useContext(xu),{subscribe:r,get:o}=E.useMemo(()=>eb(l,[e]),[l,e]);return Wv.useSyncExternalStore(r,()=>n(o()[0]))}var Ur=({children:e})=>E.createElement(cm,{style:{alignItems:"center",flexDirection:"row",justifyContent:"space-between"}},e);E.memo(function({state:n}){const l=Ui(),[r=0,o=0,u=0,c=0,f=0,h=0]=Jl(["totalSize","scrollAdjust","debugRawScroll","debugComputedScroll","numContainers","numContainersPooled"]),m=Yn(l),[,y]=E.useReducer(g=>g+1,0);return WC(()=>{y()},100),E.createElement(cm,{pointerEvents:"none",style:{backgroundColor:"#FFFFFFCC",borderRadius:4,padding:4,paddingBottom:4,paddingLeft:4,position:"absolute",right:0,top:0}},E.createElement(Ur,null,E.createElement(Hn,null,"TotalSize:"),E.createElement(Hn,null,r.toFixed(2))),E.createElement(Ur,null,E.createElement(Hn,null,"ContentSize:"),E.createElement(Hn,null,m.toFixed(2))),E.createElement(Ur,null,E.createElement(Hn,null,"At end:"),E.createElement(Hn,null,String(n.isAtEnd))),E.createElement(Ur,null,E.createElement(Hn,null,"ScrollAdjust:"),E.createElement(Hn,null,o.toFixed(2))),E.createElement(Ur,null,E.createElement(Hn,null,"RawScroll: "),E.createElement(Hn,null,u.toFixed(2))),E.createElement(Ur,null,E.createElement(Hn,null,"ComputedScroll: "),E.createElement(Hn,null,c.toFixed(2))))});function WC(e,n){E.useEffect(()=>{const l=setInterval(e,n);return()=>clearInterval(l)},[n])}var e2=typeof __DEV__<"u"?__DEV__:void 0,Ky,Zy=typeof process<"u"&&typeof nd=="object"&&nd?(Ky="production")!=null?Ky:nd.MODE:void 0,$y=typeof Zy=="string"?Zy.toLowerCase()!=="production":void 0,Jy,yn=(Jy=$y??e2)!=null?Jy:!1,Qr=-1e7,t2=yn&&!1,n2=yn&&!1,tb=E.forwardRef,Wl=E.memo;function dm(e){return typeof e=="function"}function Su(e){return Array.isArray(e)}var Wy=new Set;function eu(e,n){yn&&!Wy.has(e)&&(Wy.add(e),console.warn(`[legend-list] ${n}`))}function au(e){return Math.floor(e*8)/8}function co(e){return e==null}function i2(e,n){return e-n}function e0(e,n){var l,r,o;return(o=(r=(l=e[`padding${n}`])!=null?l:e.paddingVertical)!=null?r:e.padding)!=null?o:0}function t0(e,n,l){return e0(e,l)+e0(n,l)}function Id(e,n){var l,r;const o=(r=(l=e.state)==null?void 0:l.containerItemKeys)==null?void 0:r.get(n);if(o!==void 0)return o;const u=xe(e,"numContainers");for(let c=0;c<u;c++)if(xe(e,`containerItemKey${c}`)===n)return c;return-1}var l2=Wl(function({id:n,horizontal:l,style:r,refView:o,...u}){const[c=Qr]=Jl([`containerPosition${n}`]),f={contain:"paint layout style"},h=Su(r)?Object.assign({},...r):r,m=l?{...f,...h,left:c}:{...f,...h,top:c},{animatedScrollY:y,index:g,onLayout:v,onLayoutChange:b,stickyHeaderConfig:w,...k}=u;return E.createElement("div",{"data-index":g,ref:o,...k,style:m})}),r2=Wl(function({id:n,horizontal:l,style:r,refView:o,index:u,animatedScrollY:c,stickyHeaderConfig:f,onLayout:h,onLayoutChange:m,children:y,...g}){const[v=Qr,b]=Jl([`containerPosition${n}`,"activeStickyIndex"]),w={contain:"paint layout style"},k=E.useMemo(()=>{var _;return(_=Su(r)?Object.assign({},...r):r)!=null?_:{}},[r]),T=E.useMemo(()=>{var _;const j={...w,...k};delete j.transform;const M=(_=f==null?void 0:f.offset)!=null?_:0,P=M??0,F=b===u;return j.position=F?"sticky":"absolute",j.zIndex=u+1e3,l?j.left=F?P:v:j.top=F?P:v,j},[k,l,v,u,b,f==null?void 0:f.offset]);return E.createElement("div",{"data-index":u,ref:o,style:T,...g},y)}),a2=l2,nb=E.createContext(null);function o2(){return E.useContext(nb)}function s2(){const e=o2();return JC("lastItemKeys",l=>{if(e){const{itemKey:r}=e;if(!co(r))return(l==null?void 0:l.includes(r))||!1}return!1})}function u2({ItemSeparatorComponent:e,leadingItem:n}){return s2()?null:E.createElement(e,{leadingItem:n})}var id=null;function c2(){return id||(id=new ResizeObserver(e=>{for(const n of e){const l=tu.get(n.target);if(l)for(const r of l)r(n)}})),id}var tu=new WeakMap;function f2(e,n){if(typeof ResizeObserver>"u")return()=>{};if(!e)return()=>{};const l=c2();let r=tu.get(e);return r||(r=new Set,tu.set(e,r),l.observe(e)),r.add(n),()=>{r&&(r.delete(n),r.size===0&&(tu.delete(e),l.unobserve(e)))}}function mm({ref:e,onLayoutProp:n,onLayoutChange:l,webLayoutResync:r},o){return E.useLayoutEffect(()=>{var u,c;const f=e.current,m=((c=(u=f==null?void 0:f.getScrollableNode)==null?void 0:u.call(f))!=null?c:null)||f;if(!m)return;const y=(b,w)=>{b.height===0&&b.width===0||(l(b,w),n==null||n({nativeEvent:{layout:b}}))},g=m.getBoundingClientRect();y(n0(g),!0);let v=g;return f2(m,b=>{var w;const k=b.target instanceof HTMLElement?b.target:void 0,T=(w=b.contentRect)!=null?w:k==null?void 0:k.getBoundingClientRect(),_=T.width!==v.width||T.height!==v.height,j=!!(r!=null&&r());(_||j)&&(v=T,y(n0(T),!1))})},o||[]),{}}function n0(e){return e?{height:e.height,width:e.width,x:e.left,y:e.top}:{height:0,width:0,x:0,y:0}}var Jr={OS:"web"};function ib(e){const n=e.mvcpAnchorLock;return n?Date.now()>n.expiresAt?(e.mvcpAnchorLock=void 0,!1):!0:!1}function fo(e){return e.dataChangeNeedsScrollUpdate||ib(e)}var d2=Wl(function({id:n,recycleItems:l,horizontal:r,getRenderedItem:o,updateItemSize:u,ItemSeparatorComponent:c,stickyHeaderConfig:f}){const h=Ui(),{columnWrapperStyle:m,animatedScrollY:y}=h,g=h.state.props.positionComponentInternal,v=h.state.props.stickyPositionComponentInternal,[b=0,w=1,k,T,_=1,j,M]=Jl([`containerColumn${n}`,`containerSpan${n}`,`containerItemData${n}`,`containerItemKey${n}`,"numColumns","extraData",`containerSticky${n}`]),P=E.useRef({didLayout:!1,horizontal:r,itemKey:T,pendingShrinkToken:0,updateItemSize:u});P.current.horizontal=r,P.current.itemKey=T,P.current.updateItemSize=u;const F=E.useRef(null),[R,H]=E.useState(0),V=b>0?b:1,te=Math.min(Math.max(w||1,1),_),I=_>1?`${(V-1)/_*100}%`:0,J=_>1?`${te/_*100}%`:void 0,ae=E.useMemo(()=>{let C;if(m){const{columnGap:z,rowGap:U,gap:N}=m;r?C={paddingRight:z||N||void 0,paddingVertical:_>1?(U||N||0)/2:void 0}:C={paddingBottom:U||N||void 0,paddingHorizontal:_>1?(z||N||0)/2:void 0}}return r?{flexDirection:c?"row":void 0,height:J,left:0,position:"absolute",top:I,...C||{}}:{left:I,position:"absolute",right:_>1?null:0,top:0,width:J,...C||{}}},[r,I,J,m,_]),me=E.useMemo(()=>T!==void 0?o(T):null,[T,k,j]),{index:oe,renderedItem:le}=me||{},L=E.useMemo(()=>(h.viewRefs.set(n,F),{containerId:n,index:oe,itemKey:T,triggerLayout:()=>{H(C=>C+1)},value:k}),[n,T,oe,k]),X=E.useCallback(C=>{const{horizontal:z,itemKey:U,updateItemSize:N,lastSize:W,pendingShrinkToken:se}=P.current;if(co(U))return;P.current.didLayout=!0;let re=C;const ce=z?"width":"height",be=au(C[ce]),he=W?au(W[ce]):void 0,Ge=()=>{P.current.lastSize=re,N(U,re),P.current.didLayout=!0};if(!fo(h.state)&&he!==void 0&&be+1<he){const ot=se+1;P.current.pendingShrinkToken=ot,requestAnimationFrame(()=>{var tn;if(P.current.pendingShrinkToken!==ot)return;const St=F.current,nn=(tn=St==null?void 0:St.getBoundingClientRect)==null?void 0:tn.call(St);nn&&(re={height:nn.height,width:nn.width}),Ge()});return}Ge()},[]),{onLayout:ne}=mm({onLayoutChange:X,ref:F,webLayoutResync:()=>fo(h.state)},[T,R]),$=M?v||r2:g||a2;return E.createElement($,{animatedScrollY:M?y:void 0,horizontal:r,id:n,index:oe,key:l?void 0:T,onLayout:ne,refView:F,stickyHeaderConfig:f,style:ae},E.createElement(nb.Provider,{value:L},le,me&&c&&E.createElement(u2,{ItemSeparatorComponent:c,leadingItem:me.item})))}),m2=e=>{const n=e.getAttribute("data-index");if(n===null)return[e,null];const l=Number.parseInt(n,10);return[e,Number.isNaN(l)?null:l]};function h2(e){const n=Array.from(e.children);if(n.length<=1)return n;const l=n.map(m2);l.sort((f,h)=>{const m=f[1],y=h[1];return m===null?1:y===null?-1:m-y});const r=new Map;l.forEach((f,h)=>{r.set(f[0],h)});const o=n.map(f=>r.get(f)),u=p2(o),c=new Set(u);for(let f=0;f<l.length;f++){const h=l[f][0],m=n.indexOf(h);if(!c.has(m)){let y=null;for(let g=f+1;g<l.length;g++){const v=l[g][0],b=n.indexOf(v);if(c.has(b)){y=v;break}}y?e.insertBefore(h,y):e.appendChild(h)}}}function p2(e){const n=e.length,l=[],r=new Array(n).fill(-1),o=[];for(let f=0;f<n;f++){const h=e[f];let m=0,y=l.length;for(;m<y;){const g=Math.floor((m+y)/2);e[o[g]]<h?m=g+1:y=g}m===l.length?(l.push(h),o.push(f)):(l[m]=h,o[m]=f),m>0&&(r[f]=o[m-1])}const u=[];let c=o[o.length-1];for(;c!==-1;)u.unshift(c),c=r[c];return u}function g2(e){const n=Ui(),l=E.useRef(void 0);E.useEffect(()=>{const r=$r(n,"lastPositionUpdate",()=>{l.current!==void 0&&clearTimeout(l.current),l.current=setTimeout(()=>{const o=e.current;o&&h2(o),l.current=void 0},500)});return()=>{r(),l.current!==void 0&&clearTimeout(l.current)}},[n])}var y2=Wl(function({horizontal:n,numColumns:l,children:r}){const o=E.useRef(null),c=Ui().columnWrapperStyle,[f,h]=Jl(["otherAxisSize","totalSize"]);g2(o);const m=n?{minHeight:f,position:"relative",width:h}:{height:h,minWidth:f,position:"relative"};if(c&&l>1){const{columnGap:y,rowGap:g,gap:v}=c,b=y||v||0,w=g||v||0;n?(w&&(m.marginTop=m.marginBottom=-w/2),b&&(m.marginRight=-b)):(b&&(m.marginLeft=m.marginRight=-b),w&&(m.marginBottom=-w))}return E.createElement("div",{ref:o,style:m},r)}),v2=Wl(function({horizontal:n,recycleItems:l,ItemSeparatorComponent:r,updateItemSize:o,getRenderedItem:u,stickyHeaderConfig:c}){const[f,h]=Jl(["numContainersPooled","numColumns"]),m=[];for(let y=0;y<f;y++)m.push(E.createElement(d2,{getRenderedItem:u,horizontal:n,ItemSeparatorComponent:r,id:y,key:y,recycleItems:l,stickyHeaderConfig:c,updateItemSize:o}));return E.createElement(y2,{horizontal:n,numColumns:h},m)});function b2(e){return Su(e)?Object.assign({},...e.filter(Boolean)):e}var ou={create:e=>e,flatten:e=>b2(e)};function x2(e){const n=E.useRef(e),l=E.useRef(void 0);n.current=e;const r=E.useMemo(()=>({cancel(){l.current!==void 0&&(cancelAnimationFrame(l.current),l.current=void 0)},flush(){r.cancel(),n.current()},schedule(){if(l.current!==void 0)return!1;const o=requestAnimationFrame(()=>{l.current===o&&(l.current=void 0,n.current())});return l.current=o,!0}}),[]);return E.useEffect(()=>()=>{r.cancel()},[r]),r}function S2(){return typeof document>"u"?null:document.scrollingElement||document.documentElement||document.body}function Bd(){var e,n,l,r;return typeof window>"u"?{x:0,y:0}:{x:(n=(e=window.scrollX)!=null?e:window.pageXOffset)!=null?n:0,y:(r=(l=window.scrollY)!=null?l:window.pageYOffset)!=null?r:0}}function i0(e,n){var l,r;const o=e==null?void 0:e.getBoundingClientRect();return{left:((l=o==null?void 0:o.left)!=null?l:0)+n.x,top:((r=o==null?void 0:o.top)!=null?r:0)+n.y}}function lb(e){var n,l;return{height:(n=e==null?void 0:e.scrollHeight)!=null?n:0,width:(l=e==null?void 0:e.scrollWidth)!=null?l:0}}function w2(e,n,l){return lb(l?n:e)}function l0(e,n,l){var r,o,u,c,f,h;if(n&&typeof window<"u"){const m=e==null?void 0:e.getBoundingClientRect();return{height:l&&(o=(r=m==null?void 0:m.height)!=null?r:e==null?void 0:e.clientHeight)!=null?o:window.innerHeight,width:l?window.innerWidth:(c=(u=m==null?void 0:m.width)!=null?u:e==null?void 0:e.clientWidth)!=null?c:window.innerWidth}}return{height:(f=e==null?void 0:e.clientHeight)!=null?f:0,width:(h=e==null?void 0:e.clientWidth)!=null?h:0}}function r0(e,n){return Math.max(0,Math.min(e,n))}function a0(e,n){return n?e.width:e.height}function k2(e,n,l){return Math.max(0,a0(e,l)-a0(n,l))}function o0(e,n){return n&&S2()||e}function C2(e,n){return n&&typeof window<"u"?window:e}function E2(e,n,l){const r=e.getBoundingClientRect(),o=Bd();return{height:n&&typeof window<"u"&&!l?window.innerHeight:r.height,width:n&&typeof window<"u"&&l?window.innerWidth:r.width,x:n?r.left+o.x:r.left,y:n?r.top+o.y:r.top}}function A2({clampedOffset:e,horizontal:n,listPos:l,scroll:r}){return{left:n?l.left+e:r.x,top:n?r.y:l.top+e}}var s0=E.forwardRef(function({children:n,style:l,contentContainerStyle:r,horizontal:o=!1,contentOffset:u,maintainVisibleContentPosition:c,onScroll:f,onMomentumScrollEnd:h,showsHorizontalScrollIndicator:m=!0,showsVerticalScrollIndicator:y=!0,refreshControl:g,useWindowScroll:v=!1,onLayout:b,...w},k){const T=Ui(),_=E.useRef(null),j=E.useRef(null),M=v,P=E.useCallback(()=>C2(_.current,M),[M]),F=E.useCallback(()=>{const ne=_.current,$=w2(ne,j.current,M),C=l0(ne,M,o);return k2($,C,o)},[o,M]),R=E.useCallback(()=>{const ne=_.current;if(M){const $=F(),C=Bd(),z=i0(ne,C),U=o?C.x-z.left:C.y-z.top;return r0(U,$)}return ne?o?ne.scrollLeft:ne.scrollTop:0},[F,o,M]),H=E.useCallback((ne,$)=>{const C=_.current,z=P();if(!z||typeof z.scrollTo!="function")return;const U=F(),N=r0(ne,U),se={behavior:$?"smooth":"auto"};if(M){const re=Bd(),ce=i0(C,re),{left:be,top:he}=A2({clampedOffset:N,horizontal:o,listPos:ce,scroll:re});se.left=be,se.top=he}else o?se.left=N:se.top=N;z.scrollTo(se)},[F,P,o,M]);E.useImperativeHandle(k,()=>({getBoundingClientRect:()=>{var $;return($=_.current)==null?void 0:$.getBoundingClientRect()},getContentNode:()=>j.current,getCurrentScrollOffset:R,getScrollableNode:()=>o0(_.current,M),getScrollEventTarget:()=>P(),getScrollResponder:()=>o0(_.current,M),isWindowScroll:()=>M,scrollBy:($,C)=>{const z=P();!z||typeof z.scrollBy!="function"||z.scrollBy({behavior:"auto",left:$,top:C})},scrollTo:$=>{const{x:C=0,y:z=0,animated:U=!0}=$;H(o?C:z,U)},scrollToEnd:($={})=>{const{animated:C=!0}=$,z=F();H(z,C)},scrollToOffset:$=>{const{offset:C,animated:z=!0}=$;H(C,z)}}),[R,F,P,o,M,H]);const V=E.useCallback(()=>{if(!f||!_.current)return;const ne=lb(j.current),$=l0(_.current,M,o),C=R(),z={nativeEvent:{contentOffset:{x:o?C:0,y:o?0:C},contentSize:{height:ne.height,width:ne.width},layoutMeasurement:{height:$.height,width:$.width}}};f(z)},[R,o,M,f]),te=x2(V),I=E.useCallback(ne=>{var $;if(!f)return;const C=($=T.state)==null?void 0:$.scrollingTo;C&&!C.animated?te.flush():te.schedule()},[f,te]);E.useLayoutEffect(()=>{const ne=P();if(ne)return ne.addEventListener("scroll",I,{passive:!0}),()=>{ne.removeEventListener("scroll",I),te.cancel()}},[P,I,te]),E.useEffect(()=>{const ne=()=>{u&&H(o?u.x||0:u.y||0,!1)};ne(),requestAnimationFrame(ne)},[u==null?void 0:u.x,u==null?void 0:u.y,o,H]),E.useLayoutEffect(()=>{if(!b||!_.current)return;const ne=_.current,$=()=>{b({nativeEvent:{layout:E2(ne,M,o)}})};$();const C=new ResizeObserver(()=>{$()});C.observe(ne);const z=()=>{$()};return M&&typeof window<"u"&&typeof window.addEventListener=="function"&&window.addEventListener("resize",z),()=>{C.disconnect(),M&&typeof window<"u"&&typeof window.removeEventListener=="function"&&window.removeEventListener("resize",z)}},[M,b]);const J={...M?{}:{overflow:"auto",overflowX:o||m?"auto":"hidden",overflowY:o?y?"auto":"hidden":"auto",WebkitOverflowScrolling:"touch"},...ou.flatten(l)},ae={display:o?"flex":"block",flexDirection:o?"row":void 0,minHeight:o?void 0:"100%",minWidth:o?"100%":void 0,...ou.flatten(r)},{contentInset:me,scrollEventThrottle:oe,ScrollComponent:le,useWindowScroll:L,...X}=w;return E.createElement("div",{ref:_,...X,style:J},g,E.createElement("div",{ref:j,style:ae},n))});function u0(e,n){const l=Ui();E.useLayoutEffect(()=>$r(l,e,o=>{n(o)}),[n,l,e])}function T2(){const e=Ui(),n=E.useRef(0),l=E.useRef(void 0),r=E.useCallback(()=>{var o;const u=xe(e,"scrollAdjust"),c=xe(e,"scrollAdjustUserOffset"),f=(u||0)+(c||0),h=(o=e.state)==null?void 0:o.refScroller.current;if(h&&f!==n.current){const m=f-n.current;if(m!==0){const y=h.getContentNode(),g=h.getCurrentScrollOffset(),v=h.getScrollableNode();if(!y){h.scrollBy(0,m),n.current=f;return}const b=y.scrollHeight,w=v.clientHeight,k=g+m;if(m>0&&!e.state.adjustingFromInitialMount&&b<k+w){const T=e.state.props.stylePaddingBottom||0,_=(k+w-b)*2;y.style.paddingBottom=`${_}px`,y.offsetHeight,h.scrollBy(0,m),l.current!==void 0&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>{l.current=void 0,y.style.paddingBottom=T?`${T}px`:"0"})}else h.scrollBy(0,m)}n.current=f}},[e]);return u0("scrollAdjust",r),u0("scrollAdjustUserOffset",r),null}function _2({ScrollComponent:e,...n}){const[l]=Jl(["snapToOffsets"]);return E.createElement(e,{...n,snapToOffsets:l})}var c0=({onLayoutChange:e,refView:n,children:l,...r})=>{const o=n??E.useRef(null);return mm({onLayoutChange:e,ref:o}),E.createElement("div",{...r,ref:o},l)},ld=e=>E.isValidElement(e)?e:e?E.createElement(e,null):null,N2=Wl(function({canRender:n,style:l,contentContainerStyle:r,horizontal:o,initialContentOffset:u,recycleItems:c,ItemSeparatorComponent:f,alignItemsAtEnd:h,onScroll:m,onLayout:y,ListHeaderComponent:g,ListHeaderComponentStyle:v,ListFooterComponent:b,ListFooterComponentStyle:w,ListEmptyComponent:k,getRenderedItem:T,updateItemSize:_,refScrollView:j,renderScrollComponent:M,onLayoutFooter:P,scrollAdjustHandler:F,snapToIndices:R,stickyHeaderConfig:H,stickyHeaderIndices:V,useWindowScroll:te=!1,...I}){const J=Ui(),ae=J.state.props.maintainVisibleContentPosition,me=M?E.useMemo(()=>E.forwardRef((X,ne)=>M({...X,ref:ne})),[M]):s0,oe=R?_2:me;E.useLayoutEffect(()=>{g||Ee(J,"headerSize",0),b||Ee(J,"footerSize",0)},[g,b,J]);const le=E.useCallback(X=>{const ne=X[o?"width":"height"];Ee(J,"headerSize",ne)},[J,o]),L=E.useCallback((X,ne)=>{const $=X[o?"width":"height"];Ee(J,"footerSize",$),P==null||P(X,ne)},[J,o,P]);return E.createElement(oe,{...I,...me===s0?{useWindowScroll:te}:{},contentContainerStyle:[r,o?{height:"100%"}:{}],contentOffset:u!==void 0?o?{x:u,y:0}:{x:0,y:u}:void 0,horizontal:o,maintainVisibleContentPosition:ae.size||ae.data?{minIndexForVisible:0}:void 0,onLayout:y,onScroll:m,ref:j,ScrollComponent:R?me:void 0,style:l},E.createElement(T2,null),g&&E.createElement(c0,{onLayoutChange:le,style:v},ld(g)),k&&ld(k),n&&!k&&E.createElement(v2,{getRenderedItem:T,horizontal:o,ItemSeparatorComponent:f,recycleItems:c,stickyHeaderConfig:H,updateItemSize:_}),b&&E.createElement(c0,{onLayoutChange:L,style:w},ld(b)),yn&&t2)});function hm(e,n){const l=e.state;return n!==void 0&&l.positions[n]||0}function z2(e){return(xe(e,"stylePaddingTop")||0)+(xe(e,"headerSize")||0)}function bt(e,n){const{data:l,keyExtractor:r}=e.props;if(!l)return"";const u=n<l.length?r?r(l[n],n):n:null;return e.idCache[n]=u,u}function ao(e,n,l){const r=e.state,o=r.totalSize;let u=r.totalSize;n===null?(u=l,r.timeoutSetPaddingTop&&(clearTimeout(r.timeoutSetPaddingTop),r.timeoutSetPaddingTop=void 0)):u+=l,o!==u&&(r.pendingTotalSize=void 0,r.totalSize=u,Ee(e,"totalSize",u))}function rb(e,n,l){const r=e.state,{sizes:o}=r,u=o.get(n),c=u!==void 0?l-u:l;c!==0&&ao(e,n,c),o.set(n,l)}function Nn(e,n,l,r,o,u){var c,f;const h=e.state,{sizesKnown:m,sizes:y,averageSizes:g,props:{estimatedItemSize:v,getEstimatedItemSize:b,getFixedItemSize:w,getItemType:k},scrollingTo:T}=h,_=m.get(n);if(_!==void 0)return _;let j;if(u){const P=y.get(n);if(P!==void 0)return P}const M=k&&(c=k(r,l))!=null?c:"";if(w&&(j=w(r,l,M),j!==void 0&&m.set(n,j)),j===void 0&&o&&_===void 0&&!T){const P=(f=g[M])==null?void 0:f.avg;P!==void 0&&(j=au(P))}return j===void 0&&(j=y.get(n),j!==void 0)||(j===void 0&&(j=b?b(r,l,M):v),rb(e,n,j)),j}function ab(e,n){if(n===void 0||n<0)return;const l=bt(e.state,n);return Nn(e,l,n,e.state.props.data[n])}function pm(e,n,l){var r;const o=e.state,{index:u,viewOffset:c,viewPosition:f}=l;let h=n;if(c&&(h-=c),u!==void 0){const m=z2(e);m&&(h+=m)}if(f!==void 0&&u!==void 0){const m=o.props.data.length;if(m===0)return h;const y=u<0||u>=m,g=(r=o.props.estimatedItemSize)!=null?r:0,v=y?g:Nn(e,bt(o,u),u,o.props.data[u]),b=fm(o);if(h-=f*(o.scrollLength-b-v),!y&&u===o.props.data.length-1){const w=xe(e,"footerSize")||0;h+=w}}return h}function Xl(e,n,l){const r=e.state,o=Yn(e);let u=n;if(Number.isFinite(o)&&Number.isFinite(r.scrollLength)&&Jr.OS!=="android"){const c=Math.max(0,o-r.scrollLength),f=l==null?void 0:l.viewOffset,h=typeof f=="number"&&f<0?-f:0,m=c+h;u=Math.min(n,m)}return u=Math.max(0,u),u}function M2(e,n,l){return{...n,nativeEvent:{...n.nativeEvent,contentOffset:e.props.horizontal?{x:l,y:0}:{x:0,y:l}}}}function O2(e,n){var l,r,o,u;const c=e.state,f=c.deferredPublicOnScrollEvent;c.deferredPublicOnScrollEvent=void 0,f&&((u=(o=c.props).onScroll)==null||u.call(o,M2(c,f,(r=(l=n??c.scrollPending)!=null?l:c.scroll)!=null?r:0)))}var Ls=1;function j2(e){return!!(e!=null&&e.didDispatchNativeScroll||e!=null&&e.didRetrySilentInitialScroll||e!=null&&e.watchdog)}function f0(e){e.initialScrollSession=void 0}function Ud(e){const{bootstrap:n,completion:l,kind:r,previousDataLength:o}=e;return r==="offset"?{completion:l,kind:r,previousDataLength:o}:{bootstrap:n,completion:l,kind:r,previousDataLength:o}}function nu(e,n=(l=>(l=(r=>(r=e.initialScrollSession)==null?void 0:r.kind)())!=null?l:"bootstrap")()){var l,r;return e.initialScrollSession?e.initialScrollSession.kind!==n&&(e.initialScrollSession=Ud({bootstrap:e.initialScrollSession.kind==="bootstrap"?e.initialScrollSession.bootstrap:void 0,completion:e.initialScrollSession.completion,kind:n,previousDataLength:e.initialScrollSession.previousDataLength})):e.initialScrollSession=Ud({completion:{},kind:n,previousDataLength:0}),(r=(l=e.initialScrollSession).completion)!=null||(l.completion={}),e.initialScrollSession.completion}var gm={didDispatchNativeScroll(e){var n,l;return!!((l=(n=e.initialScrollSession)==null?void 0:n.completion)!=null&&l.didDispatchNativeScroll)},didRetrySilentInitialScroll(e){var n,l;return!!((l=(n=e.initialScrollSession)==null?void 0:n.completion)!=null&&l.didRetrySilentInitialScroll)},markInitialScrollNativeDispatch(e){nu(e).didDispatchNativeScroll=!0},markSilentInitialScrollRetry(e){nu(e).didRetrySilentInitialScroll=!0},resetFlags(e){if(!e.initialScrollSession)return;const n=nu(e,e.initialScrollSession.kind);n.didDispatchNativeScroll=void 0,n.didRetrySilentInitialScroll=void 0}},on={clear(e){on.set(e,void 0)},didObserveProgress(e,n){const l=Math.abs(n.startScroll-n.targetOffset),r=Math.abs(e-n.targetOffset);return r<=Ls||r+Ls<l},get(e){var n,l;return(l=(n=e.initialScrollSession)==null?void 0:n.completion)==null?void 0:l.watchdog},hasNonZeroTargetOffset(e){return e!==void 0&&e>Ls},isAtZeroTargetOffset(e){return e<=Ls},set(e,n){var l,r;if(!n&&!((r=(l=e.initialScrollSession)==null?void 0:l.completion)!=null&&r.watchdog))return;const o=nu(e);o.watchdog=n?{startScroll:n.startScroll,targetOffset:n.targetOffset}:void 0}};function er(e,n={}){var l,r,o;const u=e.initialScrollSession,c=(l=n.kind)!=null?l:u==null?void 0:u.kind,f=u==null?void 0:u.completion,h=Object.hasOwn(n,"bootstrap"),m=c==="bootstrap"?h?n.bootstrap:(u==null?void 0:u.kind)==="bootstrap"?u.bootstrap:void 0:void 0;if(!c||!e.initialScroll&&!m&&!j2(f))return f0(e);const y=(o=(r=n.previousDataLength)!=null?r:u==null?void 0:u.previousDataLength)!=null?o:0;return e.initialScrollSession=Ud({bootstrap:m,completion:f,kind:c,previousDataLength:y}),e.initialScrollSession}function mo(e){var n,l;const r=e.state;if(r!=null&&r.scrollingTo){const o=r.pendingScrollResolve;r.pendingScrollResolve=void 0;const u=r.scrollingTo;if(r.scrollHistory.length=0,r.scrollingTo=void 0,r.pendingTotalSize!==void 0&&ao(e,null,r.pendingTotalSize),r.scrollAdjustHandler.commitPendingAdjust(u),u.isInitialScroll||r.initialScroll){const c=((n=r.initialScrollSession)==null?void 0:n.kind)==="offset";ho(e,{onFinished:o,preserveTarget:c&&r.props.data.length===0||!!u.isInitialScroll&&!!((l=r.initialScroll)!=null&&l.preserveForFooterLayout),recalculateItems:!0,syncObservedOffset:c,waitForCompletionFrame:!!u.waitForInitialScrollCompletionFrame});return}o==null||o()}}var R2=80,D2=1500,L2=320,I2=1;function B2(e,n){const l=e.state,{animated:r,horizontal:o,offset:u}=n,c=l.refScroller.current,f=c==null?void 0:c.getScrollableNode();if(!c||!f)return;const h=!!r,m=!!o,y=m?u:0,g=m?0:u;if(c.scrollTo({animated:h,x:y,y:g}),h){const v=c.getScrollEventTarget();U2(e,{readOffset:()=>c.getCurrentScrollOffset(),target:v,targetOffset:u})}else l.scroll=u,setTimeout(()=>{mo(e)},100)}function U2(e,n){const{readOffset:l,target:r,targetOffset:o}=n;if(!r){mo(e);return}const u="onscrollend"in r;let c,f=!1;const h=e.state.scrollingTo,m=setTimeout(()=>g("max"),D2),y=()=>{r.removeEventListener("scroll",v),u&&r.removeEventListener("scrollend",b),c&&clearTimeout(c),clearTimeout(m)},g=w=>{if(f)return;if(h!==e.state.scrollingTo){f=!0,y();return}const k=l(),T=Math.abs(k-o)<=I2;w==="scrollend"&&!T||(f=!0,y(),mo(e))},v=()=>{c&&clearTimeout(c),c=setTimeout(()=>g("idle"),R2)},b=()=>g("scrollend");r.addEventListener("scroll",v),u?r.addEventListener("scrollend",b):c=setTimeout(()=>g("idle"),L2)}function V2(e,n){var l;const{isInitialScroll:r,requestedOffset:o,targetOffset:u}=n,c=on.get(e),f=!e.didFinishInitialScroll&&(r||!!c)&&on.hasNonZeroTargetOffset(u),h=!e.didFinishInitialScroll&&!!c&&on.isAtZeroTargetOffset(o);if(f){e.hasScrolled=!1,on.set(e,{startScroll:(l=c==null?void 0:c.startScroll)!=null?l:e.scroll,targetOffset:u});return}h&&on.clear(e)}function wu(e,n){var l;const r=e.state,{noScrollingTo:o,forceScroll:u,...c}=n,{animated:f,isInitialScroll:h,offset:m,precomputedWithViewOffset:y,waitForInitialScrollCompletionFrame:g}=c,{props:{horizontal:v}}=r;r.animFrameCheckFinishedScroll&&cancelAnimationFrame(e.state.animFrameCheckFinishedScroll),r.timeoutCheckFinishedScrollFallback&&clearTimeout(e.state.timeoutCheckFinishedScrollFallback);const b=y?m:pm(e,m,c),w=!!h&&((l=r.initialScrollSession)==null?void 0:l.kind)==="offset",k=Xl(e,b,c),T=w?b:k;r.scrollHistory.length=0,o||(h&&gm.resetFlags(r),r.scrollingTo={...c,targetOffset:k,waitForInitialScrollCompletionFrame:g}),r.scrollPending=k,V2(r,{isInitialScroll:h,requestedOffset:T,targetOffset:k}),u||!h||Jr.OS==="android"?B2(e,{animated:f,horizontal:v,offset:T}):r.scroll=T}function ob(e,n){return n<=0?-1:e>=n?n-1:e<0?0:e}function Is(e,{index:n,viewOffset:l=0,animated:r=!0,forceScroll:o,isInitialScroll:u,viewPosition:c}){const f=e.state,{data:h}=f.props;n=ob(n,h.length);const m=ab(e,n),y=hm(e,n);n===h.length-1&&c===void 0&&(c=1),f.scrollForNextCalculateItemsInView=void 0,wu(e,{animated:r,forceScroll:o,index:n,isInitialScroll:u,itemSize:m,offset:y,viewOffset:l,viewPosition:c??0})}var F2=1.3,sb=(e,n,l,r,o,u,c,f,h)=>{const m=Math.abs(e),y=n||l>0&&m<=l,g=()=>{f({atThreshold:n,contentSize:u.contentSize,dataLength:u.dataLength,scrollPosition:u.scrollPosition})};return r?!n&&l>0&&m>=l*F2||!n&&l<=0&&m>0?(f(void 0),!1):(y&&(!o||o.atThreshold!==n||o.contentSize!==u.contentSize||o.dataLength!==u.dataLength)&&(h&&c(e),g()),!0):y?(c(e),g(),!0):!1};function ub(e){var n;const l=e.state;if(!l||l.initialScroll)return;const{queuedInitialLayout:r,scrollLength:o,scroll:u,maintainingScrollAtEnd:c,props:{maintainScrollAtEndThreshold:f,onEndReachedThreshold:h}}=l;if(l.initialScroll)return;const m=Yn(e);if(m>0&&r&&!c){const y=fm(l),g=m-u-o-y,v=m<o;l.isAtEnd=v||g<o*f,l.isEndReached=sb(g,v,h*o,l.isEndReached,l.endReachedSnapshot,{contentSize:m,dataLength:(n=l.props.data)==null?void 0:n.length,scrollPosition:u},b=>{var w,k;return(k=(w=l.props).onEndReached)==null?void 0:k.call(w,{distanceFromEnd:b})},b=>{l.endReachedSnapshot=b},!0)}}function H2(e){const n=e==null?void 0:e.state;if(!n||n.initialScroll||n.scrollingTo)return;const{dataChangeEpoch:l,isStartReached:r,props:{data:o,onStartReachedThreshold:u},scroll:c,scrollLength:f,startReachedSnapshot:h,startReachedSnapshotDataChangeEpoch:m,totalSize:y}=n,g=o.length,v=u*f,b=m!==l,w=v>0&&Math.abs(c)<=v,k=!!r&&w&&!!b&&!fo(n);r&&v>0&&c>v&&h&&(b||h.contentSize!==y||h.dataLength!==g)&&(n.isStartReached=!1,n.startReachedSnapshot=void 0,n.startReachedSnapshotDataChangeEpoch=void 0),n.isAtStart=c<=0,!(r&&w&&b&&!k)&&(n.isStartReached=sb(c,!1,v,n.isStartReached,k?void 0:h,{contentSize:y,dataLength:g,scrollPosition:c},T=>{var _,j;return(j=(_=n.props).onStartReached)==null?void 0:j.call(_,{distanceFromStart:T})},T=>{n.startReachedSnapshot=T,n.startReachedSnapshotDataChangeEpoch=T?l:void 0},k))}function ku(e){ub(e),H2(e)}function ym(e,{didLayout:n,didInitialScroll:l}){const{state:r}=e,{loadStartTime:o,props:{onLoad:u}}=r;n&&(r.didContainersLayout=!0),l&&(r.didFinishInitialScroll=!0),!!(r.didContainersLayout&&r.didFinishInitialScroll)&&!xe(e,"readyToRender")&&(Ee(e,"readyToRender",!0),u&&u({elapsedTimeInMs:Date.now()-o}))}function d0(e,n){e.scroll=n,e.scrollPending=n,e.scrollPrev=n}function Cu(e,n){const{forceScroll:l,resolvedOffset:r,target:o,waitForCompletionFrame:u}=n,c=o.index,f=c!==void 0?ob(c,e.state.props.data.length):void 0,h=ab(e,f);wu(e,{animated:!1,forceScroll:l,index:f!==void 0&&f>=0?f:void 0,isInitialScroll:!0,itemSize:h,offset:r,precomputedWithViewOffset:!0,viewOffset:o.viewOffset,viewPosition:o.viewPosition,waitForInitialScrollCompletionFrame:u})}function Wr(e,n,l){var r;e.initialScroll=n,l!=null&&l.resetDidFinish&&e.didFinishInitialScroll&&(e.didFinishInitialScroll=!1),er(e,{kind:((r=e.initialScrollSession)==null?void 0:r.kind)==="offset"?"offset":"bootstrap"})}function ho(e,n){var l,r,o;const u=e.state;if((n==null?void 0:n.resolvedOffset)!==void 0)d0(u,n.resolvedOffset);else if(n!=null&&n.syncObservedOffset&&((l=u.initialScrollSession)==null?void 0:l.kind)==="offset"){const f=(o=(r=u.refScroller.current)==null?void 0:r.getCurrentScrollOffset)==null?void 0:o.call(r);typeof f=="number"&&Number.isFinite(f)&&d0(u,f)}const c=()=>{var f,h,m,y,g,v,b;const w=((f=u.initialScrollSession)==null?void 0:f.kind)==="bootstrap",k=(y=(m=(h=n==null?void 0:n.resolvedOffset)!=null?h:u.scrollPending)!=null?m:u.scroll)!=null?y:0;on.clear(u),n!=null&&n.preserveTarget||(u.initialScroll=void 0),er(u),n!=null&&n.recalculateItems&&((g=u.props)!=null&&g.data)&&((v=u.triggerCalculateItemsInView)==null||v.call(u,{forceFullItemPositions:!0})),n!=null&&n.recalculateItems&&ku(e),ym(e,{didInitialScroll:!0}),w&&O2(e,k),(b=n==null?void 0:n.onFinished)==null||b.call(n)};if(n!=null&&n.waitForCompletionFrame){requestAnimationFrame(c);return}c()}function Bi(e,n){var l,r;if(((l=e.state.initialScrollSession)==null?void 0:l.kind)==="offset")return(r=n.contentOffset)!=null?r:0;const u=n.index!==void 0?hm(e,n.index):0,c=pm(e,u,n);return Xl(e,c,n)}function cb(e,n){const{didFinishInitialScroll:l,queuedInitialLayout:r,scrollingTo:o}=e,u=e.initialScroll,c=!!(o!=null&&o.isInitialScroll),f=!!(n!=null&&n.requiresMeasuredLayout)&&!r&&!c;if(!(!u||f||l||o&&!c))return{initialScroll:u,isInitialScrollInProgress:c,queuedInitialLayout:r,scrollingTo:o}}function P2(e,n){var l,r,o;const u=e.state,c=cb(u,{requiresMeasuredLayout:!0});if(!c)return!1;const{initialScroll:f,isInitialScrollInProgress:h,queuedInitialLayout:m}=c,y=h?c.scrollingTo:void 0,g=Bi(e,f),v=y?(l=y.targetOffset)!=null?l:y.offset:void 0,b=f.contentOffset===void 0||Math.abs(f.contentOffset-g)>1,w=v!==void 0&&Math.abs(v-g)>1,k=v!==void 0&&Math.abs(u.scroll-v)<=1&&Math.abs(u.scrollPending-v)<=1;if(!(n!=null&&n.forceScroll)&&!b&&h&&!w||n!=null&&n.forceScroll&&k)return!1;b&&((r=u.initialScrollSession)==null?void 0:r.kind)!=="offset"&&Wr(u,{...f,contentOffset:g});const T=(o=n==null?void 0:n.forceScroll)!=null?o:!!m||h&&b;return Cu(e,{forceScroll:T,resolvedOffset:g,target:f}),!0}function q2(e,n){var l,r;const o=e.state,u=cb(o);if(!u)return!1;const{initialScroll:c,queuedInitialLayout:f}=u,h=(l=c.contentOffset)!=null?l:0,m=Math.abs(o.scroll-h)<=1&&Math.abs(o.scrollPending-h)<=1;if(n!=null&&n.forceScroll&&m)return!1;const y=!!o.lastLayout&&o.scrollLength>0,g=(r=n==null?void 0:n.forceScroll)!=null?r:y||!!f;return Cu(e,{forceScroll:g,resolvedOffset:h,target:c}),!0}function su(e,n){var l;return((l=e.state.initialScrollSession)==null?void 0:l.kind)==="offset"?q2(e,{forceScroll:n==null?void 0:n.forceScroll}):P2(e,{forceScroll:n==null?void 0:n.forceScroll})}function m0(e){return e==null}function fb(e){const{startBuffered:n,endBuffered:l}=e;return!m0(l)&&!m0(n)&&n>=0&&l>=0?Array.from(e.containerItemKeys.keys()).map(r=>e.indexByKey.get(r)).filter(r=>r!==void 0&&r>=n&&r<=l).sort((r,o)=>r-o):[]}function vm(e,n=fb(e)){return n.length>0&&n.every(l=>{const r=bt(e,l);return e.sizesKnown.has(r)})}var db=1,G2=8,Y2=24,Q2="LegendList bootstrap initial scroll aborted after exceeding convergence bounds.";function Qn(e){var n;return((n=e.initialScrollSession)==null?void 0:n.kind)==="bootstrap"?e.initialScrollSession.bootstrap:void 0}function xo(e){var n;return((n=e.initialScrollSession)==null?void 0:n.kind)==="offset"}function X2(e,n){if(!e||e.length!==n.length)return!1;for(let l=0;l<e.length;l++)if(e[l]!==n[l])return!1;return!0}function K2(e){const{dataLength:n,getSize:l,offset:r,positions:o,scrollLength:u,startIndex:c}=e,f=r+u,h=[];let m=c!==void 0?Math.max(0,Math.min(n-1,c)):0;for(;m>0;){const y=m-1,g=o[y];if(g===void 0){m=y;continue}const v=l(y);if(v===void 0){m=y;continue}if(g+v<=r)break;m=y}for(;m<n;m++){const y=o[m];if(y===void 0)continue;const g=l(m);if(g!==void 0){if(y<f&&y+g>r)h.push(m);else if(h.length>0&&y>=f)break}}return h}function Z2(e){const{mountFrameCount:n,maxFrames:l=G2,maxPasses:r=Y2,passCount:o}=e;return n>=l||o>=r}function mb(e,n){return Z2(n)?(yn&&console.warn(Q2),oE(e),!0):!1}function po(e){var n;const l=Qn(e),r=l==null?void 0:l.frameHandle;r!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(r),l&&(l.frameHandle=void 0),er(e,{bootstrap:void 0,kind:(n=e.initialScrollSession)==null?void 0:n.kind})}function hb(e,n){var l,r,o;const u=Qn(e);er(e,{bootstrap:{frameHandle:u==null?void 0:u.frameHandle,mountFrameCount:(l=u==null?void 0:u.mountFrameCount)!=null?l:0,passCount:0,previousResolvedOffset:void 0,scroll:n.scroll,seedContentOffset:(o=(r=n.seedContentOffset)!=null?r:u==null?void 0:u.seedContentOffset)!=null?o:n.scroll,targetIndexSeed:n.targetIndexSeed,visibleIndices:void 0},kind:"bootstrap"})}function $2(e,n){var l,r,o;const u=Qn(e);u?(u.passCount=0,u.previousResolvedOffset=void 0,u.scroll=(l=n==null?void 0:n.scroll)!=null?l:u.scroll,u.seedContentOffset=(r=n==null?void 0:n.seedContentOffset)!=null?r:u.seedContentOffset,u.targetIndexSeed=(o=n==null?void 0:n.targetIndexSeed)!=null?o:u.targetIndexSeed,u.visibleIndices=void 0,er(e,{bootstrap:u,kind:"bootstrap"})):(n==null?void 0:n.scroll)!==void 0&&hb(e,{scroll:n.scroll,seedContentOffset:n.seedContentOffset,targetIndexSeed:n.targetIndexSeed})}function Vd(e){requestAnimationFrame(()=>{var n;Qn(e)&&((n=e.triggerCalculateItemsInView)==null||n.call(e,{forceFullItemPositions:!0}))})}function bm(e){const n=e.state,l=Qn(n);if(!l||l.frameHandle!==void 0)return;const r=()=>{const o=Qn(n);o&&(o.frameHandle=void 0,o.mountFrameCount+=1,!mb(e,{mountFrameCount:o.mountFrameCount,passCount:o.passCount})&&bm(e))};l.frameHandle=requestAnimationFrame(r)}function Fd(e,n){$2(e.state,n),bm(e),Vd(e.state)}function pb(e){const{dataLength:n,footerSize:l,preserveForFooterLayout:r,stylePaddingBottom:o}=e;return{contentOffset:void 0,index:Math.max(0,n-1),preserveForBottomPadding:!0,preserveForFooterLayout:r,viewOffset:-o-l,viewPosition:1}}function J2(e){return!!(e!=null&&e.preserveForBottomPadding)}function Kl(e){return!!(e!=null&&e.preserveForFooterLayout)}function W2(e){return!!(e&&e.viewPosition===1&&(J2(e)||Kl(e)))}function eE(e){const{dataLength:n,footerSize:l,initialScrollAtEnd:r,stylePaddingBottom:o,target:u}=e,c=Kl(u);return{...u,contentOffset:void 0,index:r?Math.max(0,n-1):u.index,preserveForBottomPadding:!0,preserveForFooterLayout:c,viewOffset:-o-(c?l:0),viewPosition:1}}function tE(e,n){return e.index===n.index&&e.preserveForBottomPadding===n.preserveForBottomPadding&&e.preserveForFooterLayout===n.preserveForFooterLayout&&e.viewOffset===n.viewOffset&&e.viewPosition===n.viewPosition}function Hd(e,n){if(Kl(n)){if(e.didFinishInitialScroll&&!Qn(e)){e.initialScroll=void 0,er(e);return}Wr(e,{...n,preserveForFooterLayout:void 0})}}function gb(e,n,l=db){const r=e.state;if(!r.didFinishInitialScroll)return!1;const o=Pd(r);return Math.abs(o-Bi(e,n))>l}function Pd(e){var n,l,r,o;const u=(l=(n=e.refScroller.current)==null?void 0:n.getCurrentScrollOffset)==null?void 0:l.call(n);return typeof u=="number"&&Number.isFinite(u)?u:(o=(r=e.scrollPending)!=null?r:e.scroll)!=null?o:0}function nE(e,n){var l,r,o;const{initialScrollAtEnd:u,target:c}=n,f=e.state,h=Bi(e,c),m=h===0&&!u&&(xo(f)?Math.abs((l=c.contentOffset)!=null?l:0)<=1:c.index===0&&((r=c.viewPosition)!=null?r:0)===0&&Math.abs((o=c.viewOffset)!=null?o:0)<=1),y=f.props.data.length===0&&c.index!==void 0;m?(po(f),ho(e,{resolvedOffset:h})):y?(po(f),ho(e,{preserveTarget:!0,resolvedOffset:h})):(hb(f,{scroll:h,seedContentOffset:0,targetIndexSeed:c.index}),bm(e))}function iE(e,n){const{dataLength:l,didDataChange:r,initialScrollAtEnd:o,previousDataLength:u,stylePaddingBottom:c}=n,f=e.state,h=f.initialScroll;if(xo(f)||!h)return;const m=!!(f.didFinishInitialScroll&&u===0&&l>0&&h.index!==void 0),y=Qn(f),g=l>0&&(o||W2(h));if(!(!r&&!m&&!g)){if(g){if(!m&&gb(e,h)){Hd(f,h);return}const v=o?pb({dataLength:l,footerSize:xe(e,"footerSize")||0,preserveForFooterLayout:Kl(h),stylePaddingBottom:c}):eE({dataLength:l,footerSize:xe(e,"footerSize")||0,initialScrollAtEnd:o,stylePaddingBottom:c,target:h});if(!tE(h,v)||y||m||r){Wr(f,v,{resetDidFinish:m}),Fd(e,{scroll:Bi(e,v),seedContentOffset:m&&!y?Pd(f):void 0,targetIndexSeed:v.index});return}}r&&(y||m)&&(Wr(f,h,{resetDidFinish:m}),Fd(e,{scroll:Bi(e,h),seedContentOffset:m&&!y?Pd(f):void 0,targetIndexSeed:h.index}))}}function lE(e,n){const{dataLength:l,footerSize:r,initialScrollAtEnd:o,stylePaddingBottom:u}=n,c=e.state;if(!o)return;const f=c.initialScroll;if(!(xo(c)||l===0||!f||!(Qn(c)||Kl(f))))if(gb(e,f))Hd(c,f);else{const m=pb({dataLength:l,footerSize:r,preserveForFooterLayout:Kl(f),stylePaddingBottom:u});f.index!==m.index||f.viewPosition!==m.viewPosition||f.viewOffset!==m.viewOffset?(Wr(c,m,{resetDidFinish:!!c.didFinishInitialScroll}),Fd(e,{scroll:Bi(e,m),targetIndexSeed:m.index})):Hd(c,f)}}function rE(e){var n,l;const r=e.state,o=Qn(r),u=r.initialScroll;if(!o||!u||xo(r)||(n=r.scrollingTo)!=null&&n.isInitialScroll||(o.passCount+=1,mb(e,{mountFrameCount:o.mountFrameCount,passCount:o.passCount})))return;u.index!==void 0&&r.startBuffered>=0&&r.endBuffered>=0&&u.index>=r.startBuffered&&u.index<=r.endBuffered&&(o.targetIndexSeed=void 0);const c=Bi(e,u),f=fb(r),h=vm(r,f),m=Math.abs(o.scroll-c)>1,{data:y}=r.props,g=K2({dataLength:y.length,getSize:T=>{var _,j;const M=(_=r.idCache[T])!=null?_:bt(r,T);return(j=r.sizes.get(M))!=null?j:Nn(e,M,T,y[T])},offset:c,positions:r.positions,scrollLength:r.scrollLength,startIndex:(l=o.targetIndexSeed)!=null?l:r.startBuffered>=0?r.startBuffered:void 0}),v=g.length>0&&g.every(T=>{var _;const j=(_=r.idCache[T])!=null?_:bt(r,T);return r.sizesKnown.has(j)}),b=o.previousResolvedOffset,w=o.visibleIndices;if(o.previousResolvedOffset=c,o.visibleIndices=g,m){o.scroll=c,Vd(r);return}if(!h||!v)return;if(!(b!==void 0&&Math.abs(b-c)<=db&&X2(w,g))){Vd(r);return}po(r),Cu(e,{forceScroll:!0,resolvedOffset:c,target:u,waitForCompletionFrame:Jr.OS==="web"})}function aE(e,n){const l=e.state;po(l),ho(e,{preserveTarget:Kl(l.initialScroll),recalculateItems:!0,resolvedOffset:n})}function oE(e){var n,l,r,o;const u=e.state,c=Qn(u),f=u.initialScroll;c&&f&&!xo(u)&&u.refScroller.current?(po(u),Cu(e,{forceScroll:!0,resolvedOffset:c.scroll,target:f,waitForCompletionFrame:Jr.OS==="web"})):aE(e,(o=(r=(l=(n=Qn(u))==null?void 0:n.scroll)!=null?l:u.scrollPending)!=null?r:u.scroll)!=null?o:0)}var sE=20,uE=1,cE=1,rd=16;function xm(e,n){const l=e.state.scrollingTo;n!=null&&n.onlyIfAligned&&(!(l!=null&&l.isInitialScroll)||l.animated||!Sm(e,l).isAtResolvedTarget)||(e.state.animFrameCheckFinishedScroll=requestAnimationFrame(()=>mE(e)))}function fE(e,n){const{clampedTargetOffset:l,scrollingTo:r}=n;return!r.isInitialScroll||e.hasScrolled||l<=uE}function dE(e,n){return!!(n!=null&&n.isInitialScroll)&&gm.didDispatchNativeScroll(e)&&!e.hasScrolled}function yb(e){var n;return(n=on.get(e))==null?void 0:n.targetOffset}function vb(e){const n=yb(e);return!e.didFinishInitialScroll&&on.hasNonZeroTargetOffset(n)}function h0(e,n){var l,r;if(!n.isInitialScroll||n.animated||!e.didContainersLayout||((l=e.initialScrollSession)==null?void 0:l.kind)==="bootstrap")return!1;const o=(r=n.targetOffset)!=null?r:n.offset;return on.hasNonZeroTargetOffset(o)&&gm.didDispatchNativeScroll(e)&&!e.hasScrolled||on.isAtZeroTargetOffset(o)||Math.abs(e.scroll-o)>1||Math.abs(e.scrollPending-o)>1?!1:!!n.waitForInitialScrollCompletionFrame||vb(e)}function p0(e){var n;const{state:l}=e;return!!((n=l.scrollingTo)!=null&&n.isInitialScroll)&&l.props.data.length>0&&Yn(e)<=l.scrollLength&&l.scrollPending<=cE}function Sm(e,n){var l;const{state:r}=e,o=r.scrollPending,u=r.scrollAdjustHandler.getAdjust(),c=(l=n.targetOffset)!=null?l:Xl(e,n.offset-(n.viewOffset||0),n),f=Xl(e,o,n),h=Math.abs(o-c),m=Math.abs(h-u);return{clampedTargetOffset:c,isAtResolvedTarget:Math.abs(o-f)<1&&(h<1||!n.animated&&m<1)}}function mE(e){const n=e.state.scrollingTo;if(!n)return;const{state:l}=e;l.animFrameCheckFinishedScroll=void 0;const r=Sm(e,n);r.isAtResolvedTarget&&fE(l,{clampedTargetOffset:r.clampedTargetOffset,scrollingTo:n})&&mo(e)}function hE(e,n){var l;(l=e.state.refScroller.current)==null||l.scrollTo({animated:!1,x:e.state.props.horizontal?n:0,y:e.state.props.horizontal?0:n})}function pE(e){const n=e.state,l=n.scrollingTo,r=p0(e),o=dE(n,l),u=l!==void 0?h0(n,l):!1,c=(l==null?void 0:l.isInitialScroll)&&!r&&!u||!n.didContainersLayout,f=r||u?0:o?rd:c?500:100;n.timeoutCheckFinishedScrollFallback=setTimeout(()=>{let h=0;const m=g=>{n.timeoutCheckFinishedScrollFallback=setTimeout(y,g)},y=()=>{var g;n.timeoutCheckFinishedScrollFallback=void 0;const v=n.scrollingTo;if(v){h++;const b=vb(n)&&!n.hasScrolled,w=o?5:b?sE:5,k=p0(e),T=h0(n,v),_=Sm(e,v),j=o&&_.isAtResolvedTarget&&h>=1;if(k||n.hasScrolled||T||j||h>w)mo(e);else if(b&&h<=w){const M=(g=yb(n))!=null?g:n.scrollPending;hE(e,M),m(o?rd:100)}else m(o?rd:100)}};y()},f)}function gE(e){var n;if(!e.state.initialScroll)return;const l=()=>su(e,{forceScroll:!0});l(),((n=e.state.initialScrollSession)==null?void 0:n.kind)!=="offset"&&requestAnimationFrame(l),xm(e,{onlyIfAligned:!0})}function yE(e,n){var l,r;const{dataLength:o,hasFooterComponent:u,initialContentOffset:c,initialScrollAtEnd:f,useBootstrapInitialScroll:h}=n,m=e.state,y=m.initialScroll,g=c??0,v=h&&f&&u;if(y&&(y.contentOffset===void 0||!!y.preserveForFooterLayout!==v&&((l=m.initialScrollSession)==null?void 0:l.kind)!=="offset")&&Wr(m,{...y,contentOffset:g,preserveForFooterLayout:v}),h&&y&&((r=m.initialScrollSession)==null?void 0:r.kind)!=="offset"){nE(e,{initialScrollAtEnd:f,target:m.initialScroll});return}!g&&!(!!y&&o===0&&!(g===0&&!f))&&(y&&!f?ho(e,{resolvedOffset:g}):ym(e,{didInitialScroll:!0}))}function vE(e,n){var l,r,o;const{dataLength:u,didDataChange:c,initialScrollAtEnd:f,stylePaddingBottom:h,useBootstrapInitialScroll:m}=n,y=e.state,g=(r=(l=y.initialScrollSession)==null?void 0:l.previousDataLength)!=null?r:0;if(y.initialScrollSession&&(y.initialScrollSession.previousDataLength=u),er(y),m){iE(e,{dataLength:u,didDataChange:c,initialScrollAtEnd:f,previousDataLength:g,stylePaddingBottom:h});return}const v=g===0&&u>0&&!!y.initialScroll&&((o=e.state.initialScrollSession)==null?void 0:o.kind)==="offset"&&!!y.didFinishInitialScroll;g!==0||u===0||!y.initialScroll||!y.queuedInitialLayout||y.didFinishInitialScroll&&!v||(v&&(y.didFinishInitialScroll=!1),su(e))}function wm(e,n,l){const r=e.state;if(Math.abs(n)>.1){const o=()=>{r.scrollAdjustHandler.requestAdjust(n),r.adjustingFromInitialMount&&r.adjustingFromInitialMount--};r.scroll+=n,r.scrollForNextCalculateItemsInView=void 0,xe(e,"readyToRender")?o():(r.adjustingFromInitialMount=(r.adjustingFromInitialMount||0)+1,requestAnimationFrame(o))}}var rn=.1,bE=300,xE=2,SE=1;function wE(e,n,l,r){if(!n){e.mvcpAnchorLock=void 0;return}const o=e.mvcpAnchorLock;if(!o)return;const u=r>o.expiresAt,c=e.indexByKey.get(o.id)===void 0;if(u||c||!l){e.mvcpAnchorLock=void 0;return}return o}function kE(e,n){{const{anchorId:l,anchorPosition:r,dataChanged:o,now:u,positionDiff:c}=n,f=!!o||!!e.mvcpAnchorLock,h=e.props.maintainVisibleContentPosition.data;if(!f||!h||e.scrollingTo||!l||r===void 0)return;const m=e.mvcpAnchorLock,y=!o&&Math.abs(c)<=rn&&(m==null?void 0:m.id)===l?m.quietPasses+1:0;if(!o&&y>=xE){e.mvcpAnchorLock=void 0;return}e.mvcpAnchorLock={expiresAt:u+bE,id:l,position:r,quietPasses:y}}}function CE(e,n,l,r,o,u){return!1}function EE(e,n,l){if(Math.abs(n)<=rn)return 0;const o=Math.max(0,l-e.scrollLength)-e.scroll;return n<0?Math.max(n,Math.min(0,o)):n>0?Math.min(n,Math.max(0,o)):0}function AE(e,n){return e<0?-n:n}function ad(e,n,l){const r=e.state;r.pendingNativeMVCPAdjust=void 0;const o=n-l;Math.abs(o)>rn&&wm(e,o)}function TE(e){const n=e.state,l=n.pendingNativeMVCPAdjust;if(!l||Math.abs(l.manualApplied)>rn)return;const r=Yn(e),o=EE(n,l.amount,r);if(Math.abs(o)<=rn)return;const u=l.amount-o;Math.abs(u)<=rn||(l.manualApplied=u,wm(e,u),l.furthestProgressTowardAmount=0)}function _E(e,n){const l=e.state,r=l.pendingNativeMVCPAdjust;if(!r)return!1;const o=r.amount-r.manualApplied,u=n-(r.startScroll+r.manualApplied),c=o<0&&u>rn||o>0&&u<-rn,f=AE(o,u);if(Math.abs(o)<=rn)return l.pendingNativeMVCPAdjust=void 0,!0;if(c)return l.pendingNativeMVCPAdjust=void 0,!1;if(f+rn>=Math.abs(o))return ad(e,o,u),!0;const h=Math.max(0,Yn(e)-l.scrollLength);return Math.abs(n-h)<=SE||l.pendingMaintainScrollAtEnd&&l.isAtEnd&&f>rn?(ad(e,o,u),!0):f>r.furthestProgressTowardAmount+rn?(r.furthestProgressTowardAmount=f,!1):(r.furthestProgressTowardAmount>rn&&f<r.furthestProgressTowardAmount-rn&&(l.pendingNativeMVCPAdjust=void 0),!1)}function NE(e,n){const l=e.state,{idsInView:r,positions:o,props:u}=l,{maintainVisibleContentPosition:{data:c,size:f,shouldRestorePosition:h}}=u,m=Date.now(),y=!!n||!!l.mvcpAnchorLock,g=l.scrollingTo,v=wE(l,y,c,m);let b,w;const k=[],T=g==null?void 0:g.index,_=g==null?void 0:g.viewPosition,j=T!==void 0&&l.props.data.length>0&&T>=l.props.data.length-1&&(_??0)>0,M=n?c:f,P=l.indexByKey,F=l.scroll;if(Yn(e),M){if(v&&T===void 0?(w=v.id,b=v.position):T!==void 0?w=bt(l,T):r.length>0&&l.didContainersLayout&&!n&&(w=r.find(R=>P.get(R)!==void 0)),n&&r.length>0&&l.didContainersLayout)for(let R=0;R<r.length;R++){const H=r[R],V=P.get(H);if(V!==void 0){const te=o[V];te!==void 0&&k.push({id:H,position:te})}}if(w!==void 0&&b===void 0){const R=P.get(w);R!==void 0&&(b=o[R])}return()=>{let R=0,H=v==null?void 0:v.id,V,te=!1;const I=l.props.data;if(n&&c&&T===void 0&&w!==void 0&&(v==null?void 0:v.id)===w&&h!==void 0&&w!==void 0){const me=P.get(w);if(me!==void 0){const oe=I[me];te=oe===void 0||!h(oe,me,I),te&&(v==null?void 0:v.id)===w&&(l.mvcpAnchorLock=void 0)}}if(n&&c&&T===void 0&&(()=>{if(w===void 0||te)return!0;const me=P.get(w);return me===void 0||o[me]===void 0})())for(let me=0;me<k.length;me++){const{id:oe,position:le}=k[me],L=P.get(oe);if(L!==void 0&&h){const ne=I[L];if(ne===void 0||!h(ne,L,I))continue}const X=L!==void 0?o[L]:void 0;if(X!==void 0){R=X-le,H=oe,V=X;break}}if(!te&&w!==void 0&&b!==void 0){const me=P.get(w),oe=me!==void 0?o[me]:void 0;if(oe!==void 0){const le=Yn(e);let L=oe-b;L!==0&&j&&l.scroll+l.scrollLength>le&&(L>0?L=Math.max(0,le-l.scroll-l.scrollLength):L=0),R=L,H=w,V=oe}}if(_&&_>0){const me=Nn(e,w,T,l.props.data[T]),oe=g==null?void 0:g.itemSize;if(me!==void 0&&oe!==void 0&&me!==oe){const le=me-oe;le!==0&&(R+=le*_,g.itemSize=me)}}if(kE(l,{anchorId:H,anchorPosition:V,dataChanged:n,now:m,positionDiff:R}),CE()){l.pendingNativeMVCPAdjust={amount:R,furthestProgressTowardAmount:0,manualApplied:0,startScroll:F},TE(e);return}Math.abs(R)>rn&&wm(e,R)}}}function zE(e,n,l){var r;const o=e.state,u=xe(e,"numColumns");let c=n;o.columns[n]!==1&&(c=g0(o,u,n));let h=0;const m=o.columns[c];if(c>0){const y=c-1,g=(r=o.positions[y])!=null?r:0,v=g0(o,u,y),b=ME(e,v,y,l);h=g+b}return{column:m,currentRowTop:h,startIndex:c}}function g0(e,n,l){if(n<=1)return Math.max(0,l);let r=Math.max(0,l);for(;r>0&&e.columns[r]!==1;)r--;return r}function ME(e,n,l,r){const o=e.state;if(l<n)return 0;const{data:u}=o.props;if(!u)return 0;let c=0;for(let f=n;f<=l;f++){if(f<0||f>=u.length)continue;const h=o.idCache[f],m=Nn(e,h,f,u[f],r);m>c&&(c=m)}return c}function OE(e){var n,l;const r=e.state,{positions:o,props:{data:u}}=r,c=(n=xe(e,"numColumns"))!=null?n:1;if(u.length===0)ao(e,null,0);else{const f=u.length-1,h=bt(r,f),m=o[f];if(h!==void 0&&m!==void 0)if(c>1){let y=f;for(;y>0;){const v=r.columns[y];if(v===1||v===void 0)break;y-=1}let g=0;for(let v=y;v<=f;v++){const b=(l=r.idCache[v])!=null?l:bt(r,v),w=Nn(e,b,v,u[v]);w>g&&(g=w)}ao(e,null,m+g)}else{const y=Nn(e,h,f,u[f]);if(y!==void 0){const g=m+y;ao(e,null,g)}}}}var km=e=>{const{scrollHistory:n}=e,l=n.length-1;if(l<1)return 0;const r=n[l],o=Date.now();let u=0;for(let m=l;m>0;m--){const y=n[m].scroll-n[m-1].scroll;if(y!==0){u=Math.sign(y);break}}if(u===0)return 0;let c=r;for(let m=l-1;m>=0;m--){const y=n[m],v=n[m+1].scroll-y.scroll,b=Math.sign(v);if(b!==0&&b!==u||o-y.time>1e3)break;c=y}const f=r.scroll-c.scroll,h=r.time-c.time;return h>0?f/h:0};function bb(e){const n=e.state,{props:{snapToIndices:l}}=n,r=Array(l.length);for(let o=0;o<l.length;o++){const u=l[o];bt(n,u),r[o]=n.positions[u]}Ee(e,"snapToOffsets",r)}function xb(e,n,{startIndex:l,scrollBottomBuffered:r,forceFullUpdate:o=!1,doMVCP:u}={doMVCP:!1,forceFullUpdate:!1,scrollBottomBuffered:-1,startIndex:0}){var c,f,h,m,y;const g=e.state,v=e.positionListeners.size>0,{columns:b,columnSpans:w,indexByKey:k,positions:T,idCache:_,sizesKnown:j,props:{data:M,getEstimatedItemSize:P,overrideItemLayout:F,snapToIndices:R},scrollingTo:H}=g,V=M.length,te=(c=xe(e,"numColumns"))!=null?c:1,I=te>1,J=yn?new Map:void 0,ae=xe(e,"extraData"),me=F?{span:1}:void 0,oe=g.lastScrollDelta,le=km(g),L=!o&&!n&&(Math.abs(le)>0||g.scrollLength>0&&oe>g.scrollLength),X=r+1e3,ne=!P,$=!u||n||g.scrollAdjustHandler.getAdjust()!==0||((f=xe(e,"scrollAdjustPending"))!=null?f:0)!==0;let C=0,z=1,U=0;if(n&&(w.length=0),I||(b.length&&(b.length=0),w.length&&(w.length=0)),l>0){if(I){const{startIndex:ce,currentRowTop:be}=zE(e,l,ne);l=ce,C=be}else if(l<V){const ce=l-1,be=bt(g,ce),he=(h=T[ce])!=null?h:0,Ge=(m=j.get(be))!=null?m:Nn(e,be,ce,M[ce],ne,$);C=he+Ge}}const N=n||k.size===0,W=I&&!!F&&!!me;let se=!1,re;for(let ce=l;ce<V;ce++){if(L&&re!==void 0&&ce>re){se=!0;break}L&&re===void 0&&!H&&!n&&C>X&&(re=ce+(I?te:1)+10);const be=(y=_[ce])!=null?y:bt(g,ce);let he=1;if(W){me.span=1,F(me,M[ce],ce,te,ae);const ot=me.span;ot!==void 0&&Number.isFinite(ot)&&(he=Math.max(1,Math.min(te,Math.round(ot))))}I&&z+he-1>te&&(C+=U,z=1,U=0);const Ge=j.get(be),We=Ge!==void 0?Ge:Nn(e,be,ce,M[ce],ne,$);yn&&N&&(J.has(be)&&console.error(`[legend-list] Error: Detected overlapping key (${be}) which causes missing items and gaps and other terrrible things. Check that keyExtractor returns unique values.`),J.set(be,ce)),C!==T[ce]&&(T[ce]=C,v&&$C(e,be,C)),N&&k.set(be,ce),I?(b[ce]=z,w[ce]=he,We>U&&(U=We),z+=he,z>te&&(C+=U,z=1,U=0)):C+=We}se||OE(e),R&&bb(e)}function Sb(e,n){let l=e.mapViewabilityConfigStates;l||(l=new Map,e.mapViewabilityConfigStates=l);let r=l.get(n);return r||(r={end:-1,previousEnd:-1,previousStart:-1,start:-1,viewableItems:[]},l.set(n,r)),r}function jE(e){let{viewabilityConfig:n,viewabilityConfigCallbackPairs:l,onViewableItemsChanged:r}=e;return(n||r)&&(l=[...l||[],{onViewableItemsChanged:r,viewabilityConfig:n||{viewAreaCoveragePercentThreshold:0}}]),l}function RE(e,n,l,r,o,u){const{timeouts:c,props:{data:f}}=e;for(const h of l){const m=Sb(n,h.viewabilityConfig.id);if(m.start=o,m.end=u,h.viewabilityConfig.minimumViewTime){const y=setTimeout(()=>{c.delete(y),y0(f,h,e,n,r)},h.viewabilityConfig.minimumViewTime);c.add(y)}else y0(f,h,e,n,r)}}function y0(e,n,l,r,o){const{viewabilityConfig:u,onViewableItemsChanged:c}=n,f=u.id,h=Sb(r,f),{viewableItems:m,start:y,end:g}=h,v=new Map;for(const[k,T]of r.mapViewabilityAmountValues)v.set(k,wb(l,r,u,k,T.key,o,T.item,T.index));const b=[];if(m)for(const k of m){const T=Id(r,k.key);b0(l,r,u,T,k.key,o,k.item,k.index)||(k.isViewable=!1,b.push(k))}const w=[];for(let k=y;k<=g;k++){const T=e[k];if(T){const _=bt(l,k),j=Id(r,_);if(b0(l,r,u,j,_,o,T,k)){const M={containerId:j,index:k,isViewable:!0,item:T,key:_};w.push(M),m!=null&&m.find(P=>P.key===M.key)||b.push(M)}}}if(Object.assign(h,{previousEnd:g,previousStart:y,viewableItems:w}),b.length>0){h.viewableItems=w;for(let k=0;k<b.length;k++){const T=b[k];DE(r,f,T.containerId,T)}c&&c({changed:b,viewableItems:w})}for(const[k,T]of r.mapViewabilityAmountValues)T.sizeVisible<0&&r.mapViewabilityAmountValues.delete(k)}function v0(e,n){if(!e)return!1;const l=Object.keys(n);for(let r=0;r<l.length;r++){const o=l[r];if(e[o]!==n[o])return!1}return!0}function wb(e,n,l,r,o,u,c,f){const{sizes:h,scroll:m}=e,y=(xe(n,"stylePaddingTop")||0)+(xe(n,"headerSize")||0),{itemVisiblePercentThreshold:g,viewAreaCoveragePercentThreshold:v}=l,b=v!=null,w=b?v:g,k=m-y,T=e.positions[f],_=h.get(o)||0;if(T===void 0){const ae={containerId:r,index:f,isViewable:!1,item:c,key:o,percentOfScroller:0,percentVisible:0,scrollSize:u,size:_,sizeVisible:-1},me=n.mapViewabilityAmountValues.get(r);if(!v0(me,ae)){n.mapViewabilityAmountValues.set(r,ae);const oe=n.mapViewabilityAmountCallbacks.get(r);oe&&oe(ae)}return ae}const j=T-k,M=j+_,P=j>=0&&M<=u&&M>j,F=P?_:Math.min(M,u)-Math.max(j,0),R=_?P?100:100*(F/_):0,H=_?100*(F/u):0,te=(P?100:b?H:R)>=w,I={containerId:r,index:f,isViewable:te,item:c,key:o,percentOfScroller:H,percentVisible:R,scrollSize:u,size:_,sizeVisible:F},J=n.mapViewabilityAmountValues.get(r);if(!v0(J,I)){n.mapViewabilityAmountValues.set(r,I);const ae=n.mapViewabilityAmountCallbacks.get(r);ae&&ae(I)}return I}function b0(e,n,l,r,o,u,c,f){let h=n.mapViewabilityAmountValues.get(r);return(!h||h.key!==o)&&(h=wb(e,n,l,r,o,u,c,f)),h.isViewable}function DE(e,n,l,r){const o=l+n;e.mapViewabilityValues.set(o,r);const u=e.mapViewabilityCallbacks.get(o);u==null||u(r)}var x0=bu.unstable_batchedUpdates,LE=typeof x0=="function"?x0:e=>e();function IE(e,n,l,r,o,u,c){const f=xe(e,"numContainers"),h=e.state,{stickyContainerPool:m,containerItemTypes:y}=h,g=[],v=[],b=new Set(o);let w=!1;const k=h.props.stickyIndicesSet,T=(c==null?void 0:c.filter(F=>k.has(F)))||[],_=(F,R)=>{if(!R)return!0;const H=y.get(F);return H?H===R:!0},j=u?[...u]:[];let M=0;for(let F=0;F<T.length;F++){const R=j[M];let H=!1;for(const V of m){const te=xe(e,`containerItemKey${V}`),I=b.has(V);if((te===void 0||I)&&_(V,R)&&!g.includes(V)){g.push(V),I&&b.delete(V)&&(w=!0),H=!0,u&&M++;break}}if(!H){const V=f+g.filter(te=>te>=f).length;g.push(V),m.add(V),u&&M++}}for(let F=0;F<f&&g.length<n;F++){if(m.has(F))continue;const R=xe(e,`containerItemKey${F}`),H=j[M],V=R!==void 0&&b.has(F);(R===void 0||V&&_(F,H))&&(V&&(b.delete(F),w=!0),g.push(F),u&&M++)}for(let F=0;F<f&&g.length<n;F++){if(m.has(F))continue;const R=xe(e,`containerItemKey${F}`);if(R===void 0)continue;const H=h.indexByKey.get(R);if(H<l||H>r){const te=H<l?l-H:H-r;(!u||M<j.length&&_(F,j[M]))&&v.push({distance:te,index:F})}}const P=n-g.length;if(P>0){if(v.length>0){v.length>P&&(v.sort(BE),v.length=P);for(const R of v)g.push(R.index),u&&M++}const F=n-g.length;if(F>0){for(let R=0;R<F;R++)g.push(f+R);yn&&f+F>xe(e,"numContainersPooled")&&console.warn("[legend-list] No unused container available, so creating one on demand. This can be a minor performance issue and is likely caused by the estimatedItemSize being too large. Consider decreasing estimatedItemSize or increasing initialContainerPoolRatio.",{debugInfo:{numContainers:f,numContainersPooled:xe(e,"numContainersPooled"),numNeeded:n,stillNeeded:F}})}}if(w){o.length=0;for(const F of b)o.push(F)}return g.sort(i2)}function BE(e,n){return n.distance-e.distance}function UE(e){const n=e.state;n.queuedInitialLayout=!0,ub(e),ym(e,{didLayout:!0})}function VE(e,n,l){const r=l.positions;for(let o=e.length-1;o>=0;o--){const u=e[o],c=r[u];if(c!==void 0&&n>=c)return o}return-1}function FE(e,n){const l=e.state;return new Set(Array.from(l.stickyContainerPool).map(r=>xe(e,`containerItemKey${r}`)).map(r=>r?l.indexByKey.get(r):void 0).filter(r=>r!==void 0&&n.has(r)))}function HE(e,n,l,r,o,u,c,f){var h;const m=e.state,y=FE(e,n);Ee(e,"activeStickyIndex",r>=0?l[r]:-1);for(let g=0;g<=1;g++){const v=r-g;if(v<0||y.has(l[v]))continue;const b=l[v],w=(h=m.idCache[b])!=null?h:bt(m,b);w&&!m.containerItemKeys.has(w)&&(b<c||b>f)&&!u.has(b)&&(u.add(b),o.push(b))}}function PE(e,n,l,r,o,u,c){var f,h;const m=e.state;for(const y of m.stickyContainerPool){const g=xe(e,`containerItemKey${y}`),v=g?m.indexByKey.get(g):void 0;if(v===void 0||c.has(v))continue;const b=n.indexOf(v);if(b===-1){m.stickyContainerPool.delete(y),Ee(e,`containerSticky${y}`,!1);continue}if(b>=o-1&&b<=o+1)continue;const k=n[b+1];let T=!1;if(k){const _=m.positions[k];T=_!==void 0&&l>_+r*2}else{const _=(f=m.idCache[v])!=null?f:bt(m,v);if(_){const j=m.positions[v],M=(h=m.sizes.get(_))!=null?h:Nn(e,_,v,m.props.data[v]);T=j!==void 0&&l>j+M+r*3}}T&&u.push(y)}}function Sl(e,n={}){const l=e.state;LE(()=>{var r,o,u,c,f,h,m,y,g,v,b,w,k,T;const{columns:_,columnSpans:j,containerItemKeys:M,enableScrollForNextCalculateItemsInView:P,idCache:F,indexByKey:R,minIndexSizeChanged:H,positions:V,props:{alwaysRenderIndicesArr:te,alwaysRenderIndicesSet:I,drawDistance:J,getItemType:ae,itemsAreEqual:me,keyExtractor:oe,onStickyHeaderChange:le},scrollForNextCalculateItemsInView:L,scrollLength:X,sizes:ne,startBufferedId:$,viewabilityConfigCallbackPairs:C}=l,{data:z}=l.props,U=l.props.stickyIndicesArr||[],N=l.props.stickyIndicesSet||new Set,W=te||[],se=I||new Set,{dataChanged:re,doMVCP:ce,forceFullItemPositions:be}=n,he=((r=l.initialScrollSession)==null?void 0:r.kind)==="bootstrap"?l.initialScrollSession.bootstrap:void 0,Ge=!!he,We=xe(e,"numContainers");if(!z||X===0||!We)return;let ot=Yn(e);const tn=xe(e,"stylePaddingTop")+xe(e,"headerSize"),St=xe(e,"numColumns"),nn=km(l),Xn=0,{queuedInitialLayout:pi}=l,gi=Ge?(o=he==null?void 0:he.scroll)!=null?o:l.scroll:!pi&&l.initialScroll?Bi(e,l.initialScroll):l.scroll,Kn=(u=xe(e,"scrollAdjustPending"))!=null?u:0,ai=Kn-tn;let zt=Math.round(gi+Xn+ai);zt+X>ot&&(zt=Math.max(0,ot-X));const Zn=xe(e,"activeStickyIndex"),$n=U.length>0?VE(U,zt,l):-1,pt=$n>=0?U[$n]:-1;($n>=0||Zn>=0)&&Ee(e,"activeStickyIndex",pt);let bn=J,K=J;nn>0||nn===0&&zt<Math.max(50,J)?(bn=J*.5,K=J*1.5):(bn=J*1.5,K=J*.5);const fe=zt-bn,we=zt+X+(zt<0?-zt:0),_e=we+K;if(!Ge&&!re&&!be&&L){const{top:de,bottom:Ze}=L;if(de===null&&Ze===null)l.scrollForNextCalculateItemsInView=void 0;else if((de===null||fe>de)&&(Ze===null||_e<Ze)&&!fo(l))return}const He=ce&&!Ge?NE(e,re):void 0;re&&(R.clear(),F.length=0,V.length=0,_.length=0,j.length=0);const Vt=be||re?0:(c=H??l.startBuffered)!=null?c:0;xb(e,re,{doMVCP:ce,forceFullUpdate:!!be,scrollBottomBuffered:_e,startIndex:Vt}),ot=Yn(e),H!==void 0&&(l.minIndexSizeChanged=void 0),He==null||He();let Mt=null,ft=null,gt=null,xt=null,Be=null,Pt=(f=Ge?he==null?void 0:he.targetIndexSeed:void 0)!=null?f:!re&&$&&R.get($)||0;for(let de=Pt;de>=0;de--){const Ze=(h=F[de])!=null?h:bt(l,de),ze=V[de],Le=(m=ne.get(Ze))!=null?m:Nn(e,Ze,de,z[de]);if(ze+Le>zt-bn)Pt=de;else break}if(St>1)for(;Pt>0;){const de=_[Pt];if(de===1||de===void 0)break;Pt-=1}let Zt=!1,Pi,zn,un=0;for(let de=0;de<We;de++){const Ze=xe(e,`containerItemKey${de}`);if(Ze!==void 0){const ze=R.get(Ze);un=Math.max(un,ze)}}let Mn;const qt=z.length;for(let de=Math.max(0,Pt);de<qt&&(!Zt||de<=un);de++){const Ze=(y=F[de])!=null?y:bt(l,de),ze=(g=ne.get(Ze))!=null?g:Nn(e,Ze,de,z[de]),Le=V[de];Zt||(Mt===null&&Le+ze>zt&&(Mt=de),Mn===void 0&&Le>=zt-10&&Le<=we&&(Mn=de),ft===null&&Le+ze>fe&&(ft=de,gt=Ze,fe<0?Pi=null:Pi=Le),Mt!==null&&(Le<=we&&(xt=de),Le<=_e?(Be=de,_e>ot?zn=null:zn=Le+ze):Zt=!0))}const Jn=[],Gt=Mn??Mt;if(Gt!=null&&xt!==null)for(let de=Gt;de<=xt;de++){const Ze=(v=F[de])!=null?v:bt(l,de);Jn.push(Ze)}Object.assign(l,{endBuffered:Be,endNoBuffer:xt,firstFullyOnScreenIndex:Mn,idsInView:Jn,startBuffered:ft,startBufferedId:gt,startNoBuffer:Mt}),P&&Pi!==void 0&&zn!==void 0&&(l.scrollForNextCalculateItemsInView=co(Pi)&&co(zn)?void 0:{bottom:zn,top:Pi});let Ot=We;const yi=[];if(re)for(let de=0;de<Ot;de++){const Ze=xe(e,`containerItemKey${de}`);(!oe||Ze&&R.get(Ze)===void 0)&&yi.push(de)}if(ft!==null&&Be!==null){const de=[],Ze=new Set;for(let ze=ft;ze<=Be;ze++){const Le=(b=F[ze])!=null?b:bt(l,ze);M.has(Le)||(Ze.add(ze),de.push(ze))}if(W.length>0)for(const ze of W){if(ze<0||ze>=qt)continue;const Le=(w=F[ze])!=null?w:bt(l,ze);Le&&!M.has(Le)&&!Ze.has(ze)&&(Ze.add(ze),de.push(ze))}if(U.length>0?HE(e,N,U,$n,de,Ze,ft,Be):Zn!==-1&&Ee(e,"activeStickyIndex",-1),de.length>0){const ze=ae?de.map(Et=>{const Ft=ae(z[Et],Et);return Ft!==void 0?String(Ft):""}):void 0,Le=IE(e,de.length,ft,Be,yi,ze,de);for(let Et=0;Et<de.length;Et++){const Ft=de[Et],wt=Le[Et],Ae=(k=F[Ft])!=null?k:bt(l,Ft),On=xe(e,`containerItemKey${wt}`);On&&On!==Ae&&M.delete(On),Ee(e,`containerItemKey${wt}`,Ae),Ee(e,`containerItemData${wt}`,z[Ft]),ze&&l.containerItemTypes.set(wt,ze[Et]),M.set(Ae,wt);const $t=`containerSticky${wt}`,dt=N.has(Ft),nt=se.has(Ft);dt?(Ee(e,$t,!0),l.stickyContainerPool.add(wt)):(xe(e,$t)&&Ee(e,$t,!1),nt?l.stickyContainerPool.add(wt):l.stickyContainerPool.has(wt)&&l.stickyContainerPool.delete(wt)),wt>=Ot&&(Ot=wt+1)}Ot!==We&&(Ee(e,"numContainers",Ot),Ot>xe(e,"numContainersPooled")&&Ee(e,"numContainersPooled",Math.ceil(Ot*1.5)))}if(W.length>0)for(const ze of W){if(ze<0||ze>=qt)continue;const Le=(T=F[ze])!=null?T:bt(l,ze),Et=M.get(Le);Et!==void 0&&l.stickyContainerPool.add(Et)}}l.stickyContainerPool.size>0&&PE(e,U,zt,J,$n,yi,se);let oi=!1;for(let de=0;de<Ot;de++){const Ze=xe(e,`containerItemKey${de}`);if(yi.includes(de))Ze!==void 0&&M.delete(Ze),l.containerItemTypes.delete(de),l.stickyContainerPool.has(de)&&(Ee(e,`containerSticky${de}`,!1),l.stickyContainerPool.delete(de)),Ee(e,`containerItemKey${de}`,void 0),Ee(e,`containerItemData${de}`,void 0),Ee(e,`containerPosition${de}`,Qr),Ee(e,`containerColumn${de}`,-1),Ee(e,`containerSpan${de}`,1);else{const ze=R.get(Ze),Le=z[ze];if(Le!==void 0){const Et=V[ze];if(Et===void 0)Ee(e,`containerPosition${de}`,Qr);else{const Ft=(Et||0)-Kn,wt=_[ze]||1,Ae=j[ze]||1,On=xe(e,`containerPosition${de}`),$t=xe(e,`containerColumn${de}`),dt=xe(e,`containerSpan${de}`),nt=xe(e,`containerItemData${de}`);Ft>Qr&&Ft!==On&&(Ee(e,`containerPosition${de}`,Ft),oi=!0),wt>=0&&wt!==$t&&Ee(e,`containerColumn${de}`,wt),Ae!==dt&&Ee(e,`containerSpan${de}`,Ae),nt!==Le&&(!me||!me(nt,Le,ze,z))&&Ee(e,`containerItemData${de}`,Le)}}}}if(oi&&Ee(e,"lastPositionUpdate",Date.now()),Ge){rE(e);return}if(!pi&&Be!==null&&vm(l)&&(UE(e),gE(e)),C&&Mt!==null&&xt!==null&&RE(e.state,e,C,X,Mt,xt),le&&U.length>0&&pt!==void 0&&pt!==Zn){const de=z[pt];de!==void 0&&le({index:pt,item:de})}})}function qE(e,n,l){if(!l||!n||n.length!==l.length)return!0;const{idCache:r,props:{keyExtractor:o}}=e;for(let u=0;u<n.length;u++)if(n[u]!==l[u]||(o?r[u]!==o(l[u],u):n[u]!==l[u]))return!0;return!1}function Eu(e){const n=e.state,{didContainersLayout:l,isAtEnd:r,pendingNativeMVCPAdjust:o,refScroller:u,props:{maintainScrollAtEnd:c}}=n,f=!!(r&&c&&l);return o?(n.pendingMaintainScrollAtEnd=f,!1):(n.pendingMaintainScrollAtEnd=!1,f?(Yn(e)<n.scrollLength&&(n.scroll=0),requestAnimationFrame(()=>{var m;n.isAtEnd&&(n.maintainingScrollAtEnd=!0,(m=u.current)==null||m.scrollToEnd({animated:c.animated}),setTimeout(()=>{n.maintainingScrollAtEnd=!1},c.animated?500:0))}),!0):!1)}function GE(e,n,l){var r;const{averageSizes:o,sizesKnown:u,indexByKey:c,props:{itemsAreEqual:f,getItemType:h,keyExtractor:m}}=e;if(!f||!n.length||!l.length){for(const b in o)delete o[b];return}const y={},g=l.length,v=n.length;for(let b=0;b<g;b++){const w=l[b],k=m?m(w,b):String(b),T=c.get(k);if(T!==void 0&&T<v){const _=u.get(k);if(_===void 0)continue;const j=n[T];if(f(j,w,b,l)){const P=h&&(r=h(w,b))!=null?r:"";let F=y[P];F||(F=y[P]={count:0,totalSize:0}),F.totalSize+=_,F.count++}}}for(const b in o)delete o[b];for(const b in y){const{totalSize:w,count:k}=y[b];k>0&&(o[b]={avg:w/k,num:k})}}function YE(e,n){const l=e.state,{previousData:r}=l;r&&GE(l,r,n);const{maintainScrollAtEnd:o}=l.props;Sl(e,{dataChanged:!0,doMVCP:!0});const c=(o==null?void 0:o.onDataChange)&&Eu(e);!c&&r&&n.length>r.length&&(l.isEndReached=!1),c||ku(e),delete l.previousData}function kb(e){var n,l,r;const o=e.state,{scrollLength:u,props:{data:c,drawDistance:f,getEstimatedItemSize:h,getFixedItemSize:m,getItemType:y,numColumns:g,estimatedItemSize:v}}=o,b=xe(e,"numContainers");if(u>0&&c.length>0&&!b){let w;if(m||h){let T=0;const _=Math.min(20,c.length);for(let j=0;j<_;j++){const M=c[j];if(M!==void 0){const P=(n=y==null?void 0:y(M,j))!=null?n:"";T+=(r=(l=m==null?void 0:m(M,j,P))!=null?l:h==null?void 0:h(M,j,P))!=null?r:v}}w=T/_}else w=v;const k=Math.ceil((u+f*2)/w*g);for(let T=0;T<k;T++)Ee(e,`containerPosition${T}`,Qr),Ee(e,`containerColumn${T}`,-1),Ee(e,`containerSpan${T}`,1);return Ee(e,"numContainers",k),Ee(e,"numContainersPooled",k*o.props.initialContainerPoolRatio),o.lastLayout&&(o.initialScroll?requestAnimationFrame(()=>{Sl(e,{dataChanged:!0,doMVCP:!0})}):Sl(e,{dataChanged:!0,doMVCP:!0})),!0}}function QE(){return typeof window>"u"?{height:0,width:0}:{height:window.innerHeight,width:window.innerWidth}}function XE(e,n,l){const r=e.state,{maintainScrollAtEnd:o,useWindowScroll:u}=r.props,c=r.props.horizontal?"width":"height",f=r.props.horizontal?"height":"width";let h=n;if(u){const T=QE()[c];h=T>0?{...n,[c]:T}:n}const m=h[c],y=r.scrollLength,g=m>0?m:y,v=h[f],b=!r.lastLayout||g>r.scrollLength||r.lastLayout.x!==h.x||r.lastLayout.y!==h.y;r.lastLayout=h;const w=r.otherAxisSize,k=g!==r.scrollLength||v!==w;k&&(r.scrollLength=g,r.otherAxisSize=v,r.lastBatchingAction=Date.now(),r.scrollForNextCalculateItemsInView=void 0,g>0&&kb(e),b&&Sl(e,{doMVCP:!0}),(k||v!==w)&&Ee(e,"scrollSize",{height:h.height,width:h.width}),o!=null&&o.onLayout&&Eu(e),ku(e),r&&(r.needsOtherAxisSize=v-(r.props.stylePaddingTop||0)<10),yn&&m===0&&eu("height0",`List ${r.props.horizontal?"width":"height"} is 0. You may need to set a style or \`flex: \` for the list, because children are absolutely positioned.`)),l(!0)}function Cm(e,n,l){var r;const o=e.state,{ignoreScrollFromMVCP:u,lastScrollAdjustForHistory:c,scrollAdjustHandler:f,scrollHistory:h,scrollingTo:m}=o,y=o.scroll;o.hasScrolled=!0,o.lastBatchingAction=Date.now();const g=Date.now(),v=f.getAdjust(),b=c!==void 0&&Math.abs(v-c)>.1;if(b&&(h.length=0),o.lastScrollAdjustForHistory=v,m===void 0&&!(h.length===0&&n===o.scroll)&&(b||h.push({scroll:n,time:g})),h.length>5&&h.shift(),u&&!m){const{lt:P,gt:F}=u;if(P&&n<P||F&&n>F){o.ignoreScrollFromMVCPIgnored=!0;return}}o.scrollPrev=y,o.scrollPrevTime=o.scrollTime,o.scroll=n,o.scrollTime=g;const w=Math.abs(n-y),k=_E(e,n),T=o.scrollLength,_=o.scrollLastCalculate;if(fo(o)||k||l||_===void 0||Math.abs(o.scroll-_)>2){o.scrollLastCalculate=o.scroll,o.ignoreScrollFromMVCPIgnored=!1,o.lastScrollDelta=w;const P=()=>{var R;(R=o.triggerCalculateItemsInView)==null||R.call(o,{doMVCP:m!==void 0}),ku(e)};T>0&&m===void 0&&w>T?bu.flushSync(P):P();const F=!!o.pendingMaintainScrollAtEnd||!!((r=o.props.maintainScrollAtEnd)!=null&&r.onDataChange);k&&F&&(o.pendingMaintainScrollAtEnd=!1,Eu(e)),o.dataChangeNeedsScrollUpdate=!1,o.lastScrollDelta=0}}function KE(e,n){const l=on.get(e);if(!!l&&on.didObserveProgress(n,l)){on.clear(e);return}l&&(e.hasScrolled=!1,on.set(e,{startScroll:l.startScroll,targetOffset:l.targetOffset}))}function ZE(e){var n;return!!e.initialScroll&&((n=e.initialScrollSession)==null?void 0:n.kind)==="bootstrap"&&!e.didFinishInitialScroll}function $E(e){return{...e,nativeEvent:{...e.nativeEvent}}}function JE(e,n){var l,r,o,u;const c=e.state,{scrollProcessingEnabled:f}=c;if(f===!1||((r=(l=n.nativeEvent)==null?void 0:l.contentSize)==null?void 0:r.height)===0&&((o=n.nativeEvent.contentSize)==null?void 0:o.width)===0)return;let h=!1;if((u=n.nativeEvent)!=null&&u.contentInset){const{contentInset:y}=n.nativeEvent,g=c.nativeContentInset;(!g||g.top!==y.top||g.bottom!==y.bottom||g.left!==y.left||g.right!==y.right)&&(c.nativeContentInset=y,h=!0)}let m=n.nativeEvent.contentOffset[c.props.horizontal?"x":"y"];if(c.scrollingTo&&c.scrollingTo.offset>=m){const y=Xl(e,m,c.scrollingTo);if(m!==y&&Math.abs(m-y)>1){m=y,wu(e,{forceScroll:!0,isInitialScroll:!0,noScrollingTo:!0,offset:m});return}}c.scrollPending=m,Cm(e,m,h),KE(c,m),c.scrollingTo&&xm(e),c.props.onScroll&&(ZE(c)?c.deferredPublicOnScrollEvent=$E(n):c.props.onScroll(n))}var WE=class{constructor(e){this.appliedAdjust=0,this.pendingAdjust=0,this.ctx=e}requestAdjust(e){const n=this.ctx.state.scrollingTo;n!=null&&n.animated&&!n.isInitialScroll?(this.pendingAdjust+=e,Ee(this.ctx,"scrollAdjustPending",this.pendingAdjust)):(this.appliedAdjust+=e,Ee(this.ctx,"scrollAdjust",this.appliedAdjust)),this.ctx.state.scrollingTo&&xm(this.ctx)}getAdjust(){return this.appliedAdjust}commitPendingAdjust(e){{const n=this.ctx.state,l=this.pendingAdjust;if(this.pendingAdjust=0,l!==0){let r;if((e==null?void 0:e.index)!==void 0){const u=hm(this.ctx,e.index);r=pm(this.ctx,u,e),r=Xl(this.ctx,r,e)}else r=Xl(this.ctx,n.scroll+l);const o=r-n.scroll;(Math.abs(o)>.1||Math.abs(l)>.1)&&(this.appliedAdjust+=o,n.scroll=r,n.scrollForNextCalculateItemsInView=void 0,Ee(this.ctx,"scrollAdjust",this.appliedAdjust)),Ee(this.ctx,"scrollAdjustPending",0),Sl(this.ctx)}}}};function eA(e){const n=e.state;{if(!n.mvcpAnchorLock){n.queuedMVCPRecalculate!==void 0&&(cancelAnimationFrame(n.queuedMVCPRecalculate),n.queuedMVCPRecalculate=void 0),Sl(e,{doMVCP:!0});return}if(n.queuedMVCPRecalculate!==void 0)return;n.queuedMVCPRecalculate=requestAnimationFrame(()=>{n.queuedMVCPRecalculate=void 0,Sl(e,{doMVCP:!0})})}}function tA(e,n,l){var r;const o=e.state,{didContainersLayout:u,sizesKnown:c,props:{getFixedItemSize:f,getItemType:h,horizontal:m,suggestEstimatedItemSize:y,onItemSizeChanged:g,data:v,maintainScrollAtEnd:b}}=o;if(!v)return;const w=o.indexByKey.get(n);if(f){if(w===void 0)return;const H=o.props.data[w];if(H===void 0)return;const V=h&&(r=h(H,w))!=null?r:"",te=f(H,w,V);if(te!==void 0&&te===c.get(n))return}let k=!u,T=!1,_,j=xe(e,"otherAxisSize")||0;const M=o.sizesKnown.get(n),P=nA(e,n,l),F=au(m?l.width:l.height);if(P!==0){_=_!==void 0?Math.min(_,w):w;const{startBuffered:H,endBuffered:V}=o;if(k||(k=w>=H&&w<=V),!k&&o.containerItemKeys.has(n)&&(k=!0),o.needsOtherAxisSize){const te=m?l.height:l.width;j=Math.max(j,te)}M!==void 0&&Math.abs(M-F)>5&&(T=!0),g==null||g({index:w,itemData:o.props.data[w],itemKey:n,previous:F-P,size:F})}_!==void 0&&(o.minIndexSizeChanged=o.minIndexSizeChanged!==void 0?Math.min(o.minIndexSizeChanged,_):_),yn&&y&&_!==void 0&&(o.timeoutSizeMessage&&clearTimeout(o.timeoutSizeMessage),o.timeoutSizeMessage=setTimeout(()=>{var H;o.timeoutSizeMessage=void 0;const V=o.sizesKnown.size,te=(H=o.averageSizes[""])==null?void 0:H.avg;console.warn(`[legend-list] Based on the ${V} items rendered so far, the optimal estimated size is ${te}.`)},1e3));const R=xe(e,"otherAxisSize");(!R||j>R)&&Ee(e,"otherAxisSize",j),(u||vm(o))&&(k&&(o.scrollForNextCalculateItemsInView=void 0,eA(e)),T&&b!=null&&b.onItemLayout&&Eu(e))}function nA(e,n,l){var r;const o=e.state,{indexByKey:u,sizesKnown:c,averageSizes:f,props:{data:h,horizontal:m,getEstimatedItemSize:y,getItemType:g,getFixedItemSize:v}}=o;if(!h)return 0;const b=u.get(n),w=Nn(e,n,b,h[b]),k=m?l.width:l.height,T=Math.round(k),_=c.get(n);if(c.set(n,T),!y&&!v&&T>0){const j=g&&(r=g(h[b],b))!=null?r:"";let M=f[j];M||(M=f[j]={avg:0,num:0}),M.num===0?(M.avg=T,M.num++):_!==void 0&&_>0?M.avg+=(T-_)/M.num:(M.avg=(M.avg*M.num+T)/(M.num+1),M.num++)}return!w||Math.abs(w-T)>.1?(rb(e,n,T),T-w):0}function Bs(e){return E.useMemo(()=>e?(n,l,r)=>n!==void 0&&l!==void 0?e(n,l,r):void 0:void 0,[e])}var iA=(...e)=>E.useCallback(l=>{for(const r of e)r&&(dm(r)?r(l):r.current=l)},e);function lA(e){return null}function rA(e,n,l,r){return r}function aA(e){const{gap:n,columnGap:l,rowGap:r}=e;if(n||l||r)return e.gap=void 0,e.columnGap=void 0,e.rowGap=void 0,{columnGap:l,gap:n,rowGap:r}}function oA(e){const n=e.state,l=800,r=2;let o=0;const u=()=>!!n.didDataChange||!!n.didColumnsChange||n.queuedMVCPRecalculate!==void 0||n.ignoreScrollFromMVCP!==void 0||ib(n),c=(g,v)=>{const b=Date.now();let w=0;const k=()=>{if(g!==o)return;u()?w=0:w+=1;const T=Date.now()-b>=l;if(w>=r||T){v();return}requestAnimationFrame(k)};requestAnimationFrame(k)},f=g=>new Promise(v=>{var b;const w=++o;(b=n.pendingScrollResolve)==null||b.call(n),n.pendingScrollResolve=v;const k=()=>{if(w!==o)return;(!g()||!n.scrollingTo)&&(n.pendingScrollResolve===v&&(n.pendingScrollResolve=void 0),v())};if(u()){c(w,k);return}k()}),h=g=>{if(n){const{index:v,...b}=g,{startNoBuffer:w,endNoBuffer:k}=n;if(v<w||v>k){const T=v<w?0:1;return Is(e,{...b,index:v,viewPosition:T}),!0}}return!1},m=n.refScroller;return{clearCaches:g=>{var v,b;const w=(v=g==null?void 0:g.mode)!=null?v:"sizes";n.sizes.clear(),n.sizesKnown.clear();for(const k in n.averageSizes)delete n.averageSizes[k];n.minIndexSizeChanged=0,n.scrollForNextCalculateItemsInView=void 0,n.pendingTotalSize=void 0,n.totalSize=0,Ee(e,"totalSize",0),w==="full"&&(n.indexByKey.clear(),n.idCache.length=0,n.positions.length=0,n.columns.length=0,n.columnSpans.length=0),(b=n.triggerCalculateItemsInView)==null||b.call(n,{forceFullItemPositions:!0})},flashScrollIndicators:()=>m.current.flashScrollIndicators(),getNativeScrollRef:()=>m.current,getScrollableNode:()=>m.current.getScrollableNode(),getScrollResponder:()=>m.current.getScrollResponder(),getState:()=>({activeStickyIndex:xe(e,"activeStickyIndex"),contentLength:Yn(e),data:n.props.data,elementAtIndex:g=>{var v;return(v=e.viewRefs.get(Id(e,bt(n,g))))==null?void 0:v.current},end:n.endNoBuffer,endBuffered:n.endBuffered,isAtEnd:n.isAtEnd,isAtStart:n.isAtStart,isEndReached:n.isEndReached,isStartReached:n.isStartReached,listen:(g,v)=>$r(e,g,v),listenToPosition:(g,v)=>ZC(e,g,v),positionAtIndex:g=>n.positions[g],positionByKey:g=>{const v=n.indexByKey.get(g);return v===void 0?void 0:n.positions[v]},scroll:n.scroll,scrollLength:n.scrollLength,scrollVelocity:km(n),sizeAtIndex:g=>n.sizesKnown.get(bt(n,g)),sizes:n.sizesKnown,start:n.startNoBuffer,startBuffered:n.startBuffered}),reportContentInset:g=>{n.contentInsetOverride=g??void 0,Cm(e,n.scroll,!0)},scrollIndexIntoView:g=>f(()=>h(g)),scrollItemIntoView:({item:g,...v})=>f(()=>{const w=n.props.data.indexOf(g);return w!==-1?(h({index:w,...v}),!0):!1}),scrollToEnd:g=>f(()=>{const v=n.props.data,b=n.props.stylePaddingBottom,w=v.length-1;if(w!==-1){const k=b||0,T=xe(e,"footerSize")||0;return Is(e,{...g,index:w,viewOffset:-k-T+((g==null?void 0:g.viewOffset)||0),viewPosition:1}),!0}return!1}),scrollToIndex:g=>f(()=>(Is(e,g),!0)),scrollToItem:({item:g,...v})=>f(()=>{const w=n.props.data.indexOf(g);return w!==-1?(Is(e,{index:w,...v}),!0):!1}),scrollToOffset:g=>f(()=>(wu(e,g),!0)),setScrollProcessingEnabled:g=>{n.scrollProcessingEnabled=g},setVisibleContentAnchorOffset:g=>{const v=dm(g)?g(xe(e,"scrollAdjustUserOffset")||0):g;Ee(e,"scrollAdjustUserOffset",v)}}}var sA=(e,n)=>e-n,S0=e=>typeof e=="number"&&Number.isFinite(e)?Math.max(0,Math.floor(e)):0,Us=(e,n,l)=>{l>=0&&l<n&&e.add(l)};function uA(e,n,l){var r,o;if(!e||n.length===0)return[];const u=new Set,c=n.length,f=S0(e.top);if(f>0)for(let y=0;y<Math.min(f,c);y++)Us(u,c,y);const h=S0(e.bottom);if(h>0)for(let y=Math.max(0,c-h);y<c;y++)Us(u,c,y);if((r=e.indices)!=null&&r.length)for(const y of e.indices)Number.isFinite(y)&&Us(u,c,Math.floor(y));if((o=e.keys)!=null&&o.length){const y=new Set(e.keys);for(let g=0;g<c&&y.size>0;g++){const v=l(n[g],g);y.has(v)&&(Us(u,c,g),y.delete(v))}}const m=Array.from(u);return m.sort(sA),m}function cA(e,n){var l;const r=e.state;if(!r)return null;const{indexByKey:o,props:{data:u,getItemType:c,renderItem:f}}=r,h=o.get(n);if(h===void 0)return null;let m=null;const y=xe(e,"extraData"),g=u[h];if(f&&!co(g)){const v={data:u,extraData:y,index:h,item:g,type:c&&(l=c(g,h))!=null?l:""};m=dm(f)?f(v):Yr.createElement(f,v)}return{index:h,item:u[h],renderedItem:m}}function w0(e,n){var l,r,o;return{animated:!1,onDataChange:n?(l=e==null?void 0:e.dataChange)!=null?l:!1:!0,onItemLayout:n?(r=e==null?void 0:e.itemLayout)!=null?r:!1:!0,onLayout:n?(o=e==null?void 0:e.layout)!=null?o:!1:!0}}function fA(e){var n;return e?e===!0?{...w0(void 0,!1),animated:!1}:{...w0(e.on,"on"in e),animated:(n=e.animated)!=null?n:!1}:void 0}function dA(e){var n,l;return e===!0?{data:!0,size:!0}:e&&typeof e=="object"?{data:(n=e.data)!=null?n:!1,shouldRestorePosition:e.shouldRestorePosition,size:(l=e.size)!=null?l:!0}:e===!1?{data:!1,size:!1}:{data:!1,size:!0}}function mA(e,{stylePaddingTop:n}){const l=e.state;if(n!==void 0){const r=xe(e,"stylePaddingTop")||0;if(n<r){let o=xe(e,"totalSize")||0;Ee(e,"totalSize",o+r),l.timeoutSetPaddingTop=setTimeout(()=>{o=xe(e,"totalSize")||0,Ee(e,"totalSize",o-r)},16)}Ee(e,"stylePaddingTop",n)}}function hA(e){const n=E.useRef(null),l=E.useRef(0),r=E.useRef(null),o=()=>{n.current&&(clearTimeout(n.current),n.current=null)};return E.useCallback((c,f,...h)=>{{const m=Date.now();r.current=h,m-l.current>=f?(l.current=m,c(...h),o()):(o(),n.current=setTimeout(()=>{r.current&&(l.current=Date.now(),c(...r.current),n.current=null,r.current=null)},f-(m-l.current)))}},[e])}function pA(e,n){const l=hA("throttle");return r=>l(e,n,{nativeEvent:r.nativeEvent})}var gA=Wl(tb(function(n,l){const{children:r,data:o,renderItem:u,...c}=n,h=r!==void 0&&o===void 0?{...c,childrenMode:!0,data:(Su(r)?r:E.Children.toArray(r)).flat(1),renderItem:({item:m})=>m}:{...c,data:o||[],renderItem:u};return E.createElement(KC,null,E.createElement(yA,{...h,ref:l}))})),yA=tb(function(n,l){var r,o,u,c,f,h,m;const{alignItemsAtEnd:y=!1,alwaysRender:g,columnWrapperStyle:v,contentContainerStyle:b,contentInset:w,data:k=[],dataVersion:T,drawDistance:_=250,estimatedItemSize:j=100,estimatedListSize:M,extraData:P,getEstimatedItemSize:F,getFixedItemSize:R,getItemType:H,horizontal:V,initialContainerPoolRatio:te=2,initialScrollAtEnd:I=!1,initialScrollIndex:J,initialScrollOffset:ae,itemsAreEqual:me,keyExtractor:oe,ListEmptyComponent:le,ListFooterComponent:L,ListFooterComponentStyle:X,ListHeaderComponent:ne,maintainScrollAtEnd:$=!1,maintainScrollAtEndThreshold:C=.1,maintainVisibleContentPosition:z,numColumns:U=1,overrideItemLayout:N,onEndReached:W,onEndReachedThreshold:se=.5,onItemSizeChanged:re,onMetricsChange:ce,onLayout:be,onLoad:he,onMomentumScrollEnd:Ge,onRefresh:We,onScroll:ot,onStartReached:tn,onStartReachedThreshold:St=.5,onStickyHeaderChange:nn,onViewableItemsChanged:Xn,progressViewOffset:pi,recycleItems:gi=!1,refreshControl:Kn,refreshing:ai,refScrollView:zt,renderScrollComponent:Zn,renderItem:$n,scrollEventThrottle:pt,snapToIndices:bn,stickyHeaderIndices:K,stickyIndices:fe,style:we,suggestEstimatedItemSize:_e,useWindowScroll:He=!1,viewabilityConfig:Vt,viewabilityConfigCallbackPairs:Mt,...ft}=n,gt=n.animatedPropsInternal,xt=n.positionComponentInternal,Be=n.stickyPositionComponentInternal,{childrenMode:Pt,positionComponentInternal:Zt,stickyPositionComponentInternal:Pi,...zn}=ft,un=ou.flatten(b),Mn=y&&(V?(un==null?void 0:un.minWidth)==null:(un==null?void 0:un.minHeight)==null),qt={...un,...y?{display:"flex",flexDirection:V?"row":"column",...Mn?{flexGrow:1}:{},justifyContent:"flex-end"}:{}},Jn={...ou.flatten(we)},Gt=t0(Jn,qt,"Top"),Ot=t0(Jn,qt,"Bottom"),yi=fA($),oi=dA(z),de=J!=null,Ze=ae!=null,ze=!I&&!de&&Ze,Le=I||de,Et=I?{index:Math.max(0,k.length-1),preserveForBottomPadding:!0,viewOffset:-Ot,viewPosition:1}:de?typeof J=="object"?{index:(r=J.index)!=null?r:0,preserveForBottomPadding:J.viewOffset===void 0&&J.viewPosition===1?!0:void 0,viewOffset:(o=J.viewOffset)!=null?o:J.viewPosition===1?-Ot:0,viewPosition:(u=J.viewPosition)!=null?u:0}:{index:J??0,viewOffset:ae??0}:ze?{contentOffset:ae??0,index:0,viewOffset:0}:void 0,[Ft,wt]=E.useState(!1),Ae=Ui();Ae.columnWrapperStyle=v||(qt?aA(qt):void 0);const On=E.useRef(null),$t=iA(On,zt),dt=oe??((je,it)=>it.toString()),nt=K??fe,vi=E.useMemo(()=>{const je=uA(g,k,dt);return{arr:je,set:new Set(je)}},[g==null?void 0:g.top,g==null?void 0:g.bottom,(c=g==null?void 0:g.indices)==null?void 0:c.join(","),(f=g==null?void 0:g.keys)==null?void 0:f.join(","),k,T,dt]);yn&&fe&&!K&&eu("stickyIndices","stickyIndices has been renamed to stickyHeaderIndices. Please update your props to use stickyHeaderIndices."),yn&&He&&Zn&&eu("useWindowScrollRenderScrollComponent","useWindowScroll is not supported when renderScrollComponent is provided.");const lr=!!He&&!Zn,Wn=E.useRef(void 0),El=!!N,sa=E.useRef(El);if(!Wn.current){if(!Ae.state){const je=(M??{height:0,width:0})[V?"width":"height"];Ae.state={activeStickyIndex:-1,averageSizes:{},columnSpans:[],columns:[],containerItemKeys:new Map,containerItemTypes:new Map,contentInsetOverride:void 0,dataChangeEpoch:0,dataChangeNeedsScrollUpdate:!1,didColumnsChange:!1,didDataChange:!1,enableScrollForNextCalculateItemsInView:!0,endBuffered:-1,endNoBuffer:-1,endReachedSnapshot:void 0,firstFullyOnScreenIndex:-1,idCache:[],idsInView:[],indexByKey:new Map,initialScroll:Et,initialScrollSession:Et?{kind:ze?"offset":"bootstrap",previousDataLength:k.length}:void 0,isAtEnd:!1,isAtStart:!1,isEndReached:null,isFirst:!0,isStartReached:null,lastBatchingAction:Date.now(),lastLayout:void 0,lastScrollDelta:0,loadStartTime:Date.now(),minIndexSizeChanged:0,nativeContentInset:void 0,nativeMarginTop:0,pendingNativeMVCPAdjust:void 0,positions:[],props:{},queuedCalculateItemsInView:0,refScroller:{current:null},scroll:0,scrollAdjustHandler:new WE(Ae),scrollForNextCalculateItemsInView:void 0,scrollHistory:[],scrollLength:je,scrollPending:0,scrollPrev:0,scrollPrevTime:0,scrollProcessingEnabled:!0,scrollTime:0,sizes:new Map,sizesKnown:new Map,startBuffered:-1,startNoBuffer:-1,startReachedSnapshot:void 0,startReachedSnapshotDataChangeEpoch:void 0,stickyContainerPool:new Set,stickyContainers:new Map,timeoutSizeMessage:0,timeouts:new Set,totalSize:0,viewabilityConfigCallbackPairs:void 0};const it=Ae.state;it.triggerCalculateItemsInView=Tt=>Sl(Ae,Tt),it.reprocessCurrentScroll=()=>Cm(Ae,it.scroll,!0),Ee(Ae,"maintainVisibleContentPosition",oi),Ee(Ae,"extraData",P)}Wn.current=Ae.state}const $e=Wn.current,Al=$e.isFirst;$e.didColumnsChange=U!==$e.props.numColumns;const qi=$e.props.data!==k,ei=$e.props.dataVersion!==T||qi&&qE($e,k,$e.props.data);ei&&($e.dataChangeEpoch+=1,$e.dataChangeNeedsScrollUpdate=!0,$e.didDataChange=!0,$e.previousData=$e.props.data);const Gi=pt&&ot?pA(ot,pt):ot;$e.props={alignItemsAtEnd:y,alwaysRender:g,alwaysRenderIndicesArr:vi.arr,alwaysRenderIndicesSet:vi.set,animatedProps:gt,contentInset:w,data:k,dataVersion:T,drawDistance:_,estimatedItemSize:j,getEstimatedItemSize:Bs(F),getFixedItemSize:Bs(R),getItemType:Bs(H),horizontal:!!V,initialContainerPoolRatio:te,itemsAreEqual:me,keyExtractor:Bs(dt),maintainScrollAtEnd:yi,maintainScrollAtEndThreshold:C,maintainVisibleContentPosition:oi,numColumns:U,onEndReached:W,onEndReachedThreshold:se,onItemSizeChanged:re,onLoad:he,onScroll:Gi,onStartReached:tn,onStartReachedThreshold:St,onStickyHeaderChange:nn,overrideItemLayout:N,positionComponentInternal:xt,recycleItems:!!gi,renderItem:$n,snapToIndices:bn,stickyIndicesArr:nt??[],stickyIndicesSet:E.useMemo(()=>new Set(nt??[]),[nt==null?void 0:nt.join(",")]),stickyPositionComponentInternal:Be,stylePaddingBottom:Ot,stylePaddingTop:Gt,suggestEstimatedItemSize:!!_e,useWindowScroll:lr},$e.refScroller=On;const At=E.useMemo(()=>k.length?Array.from({length:Math.min(U,k.length)},(je,it)=>bt($e,k.length-1-it)):[],[k,T,U]),ua=je=>{Ee(Ae,"lastItemKeys",At),Ee(Ae,"numColumns",U);const it=xe(Ae,"stylePaddingTop");mA(Ae,{stylePaddingTop:Gt}),Wn.current.props.stylePaddingBottom=Ot;let Tt=Gt-it;je&&oi.size&&Tt&&it!==void 0&&Jr.OS};Al&&(ua(!1),xb(Ae,!0));const ca=E.useMemo(()=>{var je,it;const Tt=$e.initialScroll;if(!Tt)return;const yt=(je=Tt.contentOffset)!=null?je:Bi(Ae,Tt);return Le&&((it=$e.initialScrollSession)==null?void 0:it.kind)==="bootstrap"&&Jr.OS==="web"?void 0:yt},[Le]);E.useLayoutEffect(()=>{yE(Ae,{dataLength:k.length,hasFooterComponent:!!L,initialContentOffset:ca,initialScrollAtEnd:I,useBootstrapInitialScroll:Le})},[]),(Al||ei||U!==xe(Ae,"numColumns"))&&(Wn.current.lastBatchingAction=Date.now(),!oe&&!Al&&ei&&(yn&&!Pt&&eu("keyExtractor","Changing data without a keyExtractor can cause slow performance and resetting scroll. If your list data can change you should use a keyExtractor with a unique id for best performance and behavior."),Wn.current.sizes.clear(),Wn.current.positions.length=0,Wn.current.totalSize=0,Ee(Ae,"totalSize",0))),E.useLayoutEffect(()=>{vE(Ae,{dataLength:k.length,didDataChange:ei,initialScrollAtEnd:I,stylePaddingBottom:Ot,useBootstrapInitialScroll:Le})},[k.length,ei,I,Ot,Le]);const bi=E.useCallback(je=>{Le&&lE(Ae,{dataLength:k.length,footerSize:je[V?"width":"height"],initialScrollAtEnd:I,stylePaddingBottom:Ot})},[k.length,I,V,Ot,Le]),Yi=E.useCallback(je=>{XE(Ae,je,wt),!Le&&su(Ae)},[Le]),{onLayout:Iu}=mm({onLayoutChange:Yi,onLayoutProp:be,ref:On});E.useLayoutEffect(()=>{bn&&bb(Ae)},[bn]),E.useLayoutEffect(()=>{const{didColumnsChange:je,didDataChange:it,isFirst:Tt,props:{data:yt}}=$e;!(yt.length>0&&kb(Ae))&&!Tt&&(it||je)&&YE(Ae,yt),$e.didColumnsChange=!1,$e.didDataChange=!1,$e.isFirst=!1},[k,T,U]),E.useLayoutEffect(()=>{var je;Ee(Ae,"extraData",P);const it=sa.current!==El;sa.current=El,(El||it)&&U>1&&((je=$e.triggerCalculateItemsInView)==null||je.call($e,{forceFullItemPositions:!0}))},[P,El,U]),E.useLayoutEffect(()=>ua(!0),[T,At.join(","),U,Ot,Gt]),E.useEffect(()=>{if(!ce)return;let je;const it=()=>{const yt={footerSize:xe(Ae,"footerSize")||0,headerSize:xe(Ae,"headerSize")||0};(!je||yt.headerSize!==je.headerSize||yt.footerSize!==je.footerSize)&&(je=yt,ce(yt))};it();const Tt=[$r(Ae,"headerSize",it),$r(Ae,"footerSize",it)];return()=>{for(const yt of Tt)yt()}},[Ae,ce]),E.useEffect(()=>{const je=jE({onViewableItemsChanged:Xn,viewabilityConfig:Vt,viewabilityConfigCallbackPairs:Mt});$e.viewabilityConfigCallbackPairs=je,$e.enableScrollForNextCalculateItemsInView=!je},[Vt,Mt,Xn]),E.useImperativeHandle(l,()=>oA(Ae),[]),E.useEffect(()=>{Le||su(Ae)},[Le]);const _l=E.useMemo(()=>({getRenderedItem:je=>cA(Ae,je),onMomentumScrollEnd:je=>{pE(Ae),Ge&&Ge(je)},onScroll:je=>JE(Ae,je),updateItemSize:(je,it)=>tA(Ae,je,it)}),[]),Eo=rA(nt,V,Ae,_l.onScroll),rr=Kn;return E.createElement(E.Fragment,null,E.createElement(N2,{...zn,alignItemsAtEnd:y,canRender:Ft,contentContainerStyle:qt,contentInset:w,getRenderedItem:_l.getRenderedItem,horizontal:V,initialContentOffset:ca,ListEmptyComponent:k.length===0?le:void 0,ListFooterComponent:L,ListFooterComponentStyle:X,ListHeaderComponent:ne,onLayout:Iu,onLayoutFooter:bi,onMomentumScrollEnd:_l.onMomentumScrollEnd,onScroll:Eo,recycleItems:gi,refreshControl:rr?Gt>0?E.cloneElement(rr,{progressViewOffset:((h=rr.props.progressViewOffset)!=null?h:0)+Gt}):rr:We&&E.createElement(lA,{onRefresh:We,progressViewOffset:(pi||0)+Gt,refreshing:!!ai}),refScrollView:$t,renderScrollComponent:Zn,scrollAdjustHandler:(m=Wn.current)==null?void 0:m.scrollAdjustHandler,scrollEventThrottle:0,snapToIndices:bn,stickyHeaderIndices:nt,style:Jn,updateItemSize:_l.updateItemSize,useWindowScroll:lr}),yn&&n2)}),vA=gA,bA=vA;function Cb(e){var n,l,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(l=Cb(e[n]))&&(r&&(r+=" "),r+=l)}else for(l in e)e[l]&&(r&&(r+=" "),r+=l);return r}function Eb(){for(var e,n,l=0,r="",o=arguments.length;l<o;l++)(e=arguments[l])&&(n=Cb(e))&&(r&&(r+=" "),r+=n);return r}const xA=(e,n)=>{const l=new Array(e.length+n.length);for(let r=0;r<e.length;r++)l[r]=e[r];for(let r=0;r<n.length;r++)l[e.length+r]=n[r];return l},SA=(e,n)=>({classGroupId:e,validator:n}),Ab=(e=new Map,n=null,l)=>({nextPart:e,validators:n,classGroupId:l}),uu="-",k0=[],wA="arbitrary..",kA=e=>{const n=EA(e),{conflictingClassGroups:l,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return CA(c);const f=c.split(uu),h=f[0]===""&&f.length>1?1:0;return Tb(f,h,n)},getConflictingClassGroupIds:(c,f)=>{if(f){const h=r[c],m=l[c];return h?m?xA(m,h):h:m||k0}return l[c]||k0}}},Tb=(e,n,l)=>{if(e.length-n===0)return l.classGroupId;const o=e[n],u=l.nextPart.get(o);if(u){const m=Tb(e,n+1,u);if(m)return m}const c=l.validators;if(c===null)return;const f=n===0?e.join(uu):e.slice(n).join(uu),h=c.length;for(let m=0;m<h;m++){const y=c[m];if(y.validator(f))return y.classGroupId}},CA=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),l=n.indexOf(":"),r=n.slice(0,l);return r?wA+r:void 0})(),EA=e=>{const{theme:n,classGroups:l}=e;return AA(l,n)},AA=(e,n)=>{const l=Ab();for(const r in e){const o=e[r];Em(o,l,r,n)}return l},Em=(e,n,l,r)=>{const o=e.length;for(let u=0;u<o;u++){const c=e[u];TA(c,n,l,r)}},TA=(e,n,l,r)=>{if(typeof e=="string"){_A(e,n,l);return}if(typeof e=="function"){NA(e,n,l,r);return}zA(e,n,l,r)},_A=(e,n,l)=>{const r=e===""?n:_b(n,e);r.classGroupId=l},NA=(e,n,l,r)=>{if(MA(e)){Em(e(r),n,l,r);return}n.validators===null&&(n.validators=[]),n.validators.push(SA(l,e))},zA=(e,n,l,r)=>{const o=Object.entries(e),u=o.length;for(let c=0;c<u;c++){const[f,h]=o[c];Em(h,_b(n,f),l,r)}},_b=(e,n)=>{let l=e;const r=n.split(uu),o=r.length;for(let u=0;u<o;u++){const c=r[u];let f=l.nextPart.get(c);f||(f=Ab(),l.nextPart.set(c,f)),l=f}return l},MA=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,OA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,l=Object.create(null),r=Object.create(null);const o=(u,c)=>{l[u]=c,n++,n>e&&(n=0,r=l,l=Object.create(null))};return{get(u){let c=l[u];if(c!==void 0)return c;if((c=r[u])!==void 0)return o(u,c),c},set(u,c){u in l?l[u]=c:o(u,c)}}},qd="!",C0=":",jA=[],E0=(e,n,l,r,o)=>({modifiers:e,hasImportantModifier:n,baseClassName:l,maybePostfixModifierPosition:r,isExternal:o}),RA=e=>{const{prefix:n,experimentalParseClassName:l}=e;let r=o=>{const u=[];let c=0,f=0,h=0,m;const y=o.length;for(let k=0;k<y;k++){const T=o[k];if(c===0&&f===0){if(T===C0){u.push(o.slice(h,k)),h=k+1;continue}if(T==="/"){m=k;continue}}T==="["?c++:T==="]"?c--:T==="("?f++:T===")"&&f--}const g=u.length===0?o:o.slice(h);let v=g,b=!1;g.endsWith(qd)?(v=g.slice(0,-1),b=!0):g.startsWith(qd)&&(v=g.slice(1),b=!0);const w=m&&m>h?m-h:void 0;return E0(u,b,v,w)};if(n){const o=n+C0,u=r;r=c=>c.startsWith(o)?u(c.slice(o.length)):E0(jA,!1,c,void 0,!0)}if(l){const o=r;r=u=>l({className:u,parseClassName:o})}return r},DA=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((l,r)=>{n.set(l,1e6+r)}),l=>{const r=[];let o=[];for(let u=0;u<l.length;u++){const c=l[u],f=c[0]==="[",h=n.has(c);f||h?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(c)):o.push(c)}return o.length>0&&(o.sort(),r.push(...o)),r}},LA=e=>({cache:OA(e.cacheSize),parseClassName:RA(e),sortModifiers:DA(e),...kA(e)}),IA=/\s+/,BA=(e,n)=>{const{parseClassName:l,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:u}=n,c=[],f=e.trim().split(IA);let h="";for(let m=f.length-1;m>=0;m-=1){const y=f[m],{isExternal:g,modifiers:v,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:k}=l(y);if(g){h=y+(h.length>0?" "+h:h);continue}let T=!!k,_=r(T?w.substring(0,k):w);if(!_){if(!T){h=y+(h.length>0?" "+h:h);continue}if(_=r(w),!_){h=y+(h.length>0?" "+h:h);continue}T=!1}const j=v.length===0?"":v.length===1?v[0]:u(v).join(":"),M=b?j+qd:j,P=M+_;if(c.indexOf(P)>-1)continue;c.push(P);const F=o(_,T);for(let R=0;R<F.length;++R){const H=F[R];c.push(M+H)}h=y+(h.length>0?" "+h:h)}return h},UA=(...e)=>{let n=0,l,r,o="";for(;n<e.length;)(l=e[n++])&&(r=Nb(l))&&(o&&(o+=" "),o+=r);return o},Nb=e=>{if(typeof e=="string")return e;let n,l="";for(let r=0;r<e.length;r++)e[r]&&(n=Nb(e[r]))&&(l&&(l+=" "),l+=n);return l},VA=(e,...n)=>{let l,r,o,u;const c=h=>{const m=n.reduce((y,g)=>g(y),e());return l=LA(m),r=l.cache.get,o=l.cache.set,u=f,f(h)},f=h=>{const m=r(h);if(m)return m;const y=BA(h,l);return o(h,y),y};return u=c,(...h)=>u(UA(...h))},FA=[],Ut=e=>{const n=l=>l[e]||FA;return n.isThemeGetter=!0,n},zb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Mb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,HA=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,PA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,GA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,YA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,QA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gl=e=>HA.test(e),Ie=e=>!!e&&!Number.isNaN(Number(e)),yl=e=>!!e&&Number.isInteger(Number(e)),od=e=>e.endsWith("%")&&Ie(e.slice(0,-1)),Ii=e=>PA.test(e),Ob=()=>!0,XA=e=>qA.test(e)&&!GA.test(e),Am=()=>!1,KA=e=>YA.test(e),ZA=e=>QA.test(e),$A=e=>!ge(e)&&!ye(e),JA=e=>kl(e,Db,Am),ge=e=>zb.test(e),Gl=e=>kl(e,Lb,XA),A0=e=>kl(e,aT,Ie),WA=e=>kl(e,Bb,Ob),eT=e=>kl(e,Ib,Am),T0=e=>kl(e,jb,Am),tT=e=>kl(e,Rb,ZA),Vs=e=>kl(e,Ub,KA),ye=e=>Mb.test(e),eo=e=>tr(e,Lb),nT=e=>tr(e,Ib),_0=e=>tr(e,jb),iT=e=>tr(e,Db),lT=e=>tr(e,Rb),Fs=e=>tr(e,Ub,!0),rT=e=>tr(e,Bb,!0),kl=(e,n,l)=>{const r=zb.exec(e);return r?r[1]?n(r[1]):l(r[2]):!1},tr=(e,n,l=!1)=>{const r=Mb.exec(e);return r?r[1]?n(r[1]):l:!1},jb=e=>e==="position"||e==="percentage",Rb=e=>e==="image"||e==="url",Db=e=>e==="length"||e==="size"||e==="bg-size",Lb=e=>e==="length",aT=e=>e==="number",Ib=e=>e==="family-name",Bb=e=>e==="number"||e==="weight",Ub=e=>e==="shadow",oT=()=>{const e=Ut("color"),n=Ut("font"),l=Ut("text"),r=Ut("font-weight"),o=Ut("tracking"),u=Ut("leading"),c=Ut("breakpoint"),f=Ut("container"),h=Ut("spacing"),m=Ut("radius"),y=Ut("shadow"),g=Ut("inset-shadow"),v=Ut("text-shadow"),b=Ut("drop-shadow"),w=Ut("blur"),k=Ut("perspective"),T=Ut("aspect"),_=Ut("ease"),j=Ut("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...P(),ye,ge],R=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],V=()=>[ye,ge,h],te=()=>[gl,"full","auto",...V()],I=()=>[yl,"none","subgrid",ye,ge],J=()=>["auto",{span:["full",yl,ye,ge]},yl,ye,ge],ae=()=>[yl,"auto",ye,ge],me=()=>["auto","min","max","fr",ye,ge],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...V()],X=()=>[gl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],ne=()=>[gl,"screen","full","dvw","lvw","svw","min","max","fit",...V()],$=()=>[gl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],C=()=>[e,ye,ge],z=()=>[...P(),_0,T0,{position:[ye,ge]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",iT,JA,{size:[ye,ge]}],W=()=>[od,eo,Gl],se=()=>["","none","full",m,ye,ge],re=()=>["",Ie,eo,Gl],ce=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[Ie,od,_0,T0],Ge=()=>["","none",w,ye,ge],We=()=>["none",Ie,ye,ge],ot=()=>["none",Ie,ye,ge],tn=()=>[Ie,ye,ge],St=()=>[gl,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ii],breakpoint:[Ii],color:[Ob],container:[Ii],"drop-shadow":[Ii],ease:["in","out","in-out"],font:[$A],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ii],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ii],shadow:[Ii],spacing:["px",Ie],text:[Ii],"text-shadow":[Ii],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gl,ge,ye,T]}],container:["container"],columns:[{columns:[Ie,ge,ye,f]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{"inset-s":te(),start:te()}],end:[{"inset-e":te(),end:te()}],"inset-bs":[{"inset-bs":te()}],"inset-be":[{"inset-be":te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[yl,"auto",ye,ge]}],basis:[{basis:[gl,"full","auto",f,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ie,gl,"auto","initial","none",ge]}],grow:[{grow:["",Ie,ye,ge]}],shrink:[{shrink:["",Ie,ye,ge]}],order:[{order:[yl,"first","last","none",ye,ge]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":me()}],"auto-rows":[{"auto-rows":me()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pbs:[{pbs:V()}],pbe:[{pbe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mbs:[{mbs:L()}],mbe:[{mbe:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...ne()]}],"min-inline-size":[{"min-inline":["auto",...ne()]}],"max-inline-size":[{"max-inline":["none",...ne()]}],"block-size":[{block:["auto",...$()]}],"min-block-size":[{"min-block":["auto",...$()]}],"max-block-size":[{"max-block":["none",...$()]}],w:[{w:[f,"screen",...X()]}],"min-w":[{"min-w":[f,"screen","none",...X()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",l,eo,Gl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,rT,WA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",od,ge]}],"font-family":[{font:[nT,eT,n]}],"font-features":[{"font-features":[ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ye,ge]}],"line-clamp":[{"line-clamp":[Ie,"none",ye,A0]}],leading:[{leading:[u,...V()]}],"list-image":[{"list-image":["none",ye,ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ie,"from-font","auto",ye,Gl]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[Ie,"auto",ye,ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},yl,ye,ge],radial:["",ye,ge],conic:[yl,ye,ge]},lT,tT]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ie,ye,ge]}],"outline-w":[{outline:["",Ie,eo,Gl]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",y,Fs,Vs]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",g,Fs,Vs]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[Ie,Gl]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",v,Fs,Vs]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[Ie,ye,ge]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[ye,ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[Ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,ge]}],filter:[{filter:["","none",ye,ge]}],blur:[{blur:Ge()}],brightness:[{brightness:[Ie,ye,ge]}],contrast:[{contrast:[Ie,ye,ge]}],"drop-shadow":[{"drop-shadow":["","none",b,Fs,Vs]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",Ie,ye,ge]}],"hue-rotate":[{"hue-rotate":[Ie,ye,ge]}],invert:[{invert:["",Ie,ye,ge]}],saturate:[{saturate:[Ie,ye,ge]}],sepia:[{sepia:["",Ie,ye,ge]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,ge]}],"backdrop-blur":[{"backdrop-blur":Ge()}],"backdrop-brightness":[{"backdrop-brightness":[Ie,ye,ge]}],"backdrop-contrast":[{"backdrop-contrast":[Ie,ye,ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ie,ye,ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ie,ye,ge]}],"backdrop-invert":[{"backdrop-invert":["",Ie,ye,ge]}],"backdrop-opacity":[{"backdrop-opacity":[Ie,ye,ge]}],"backdrop-saturate":[{"backdrop-saturate":[Ie,ye,ge]}],"backdrop-sepia":[{"backdrop-sepia":["",Ie,ye,ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ie,"initial",ye,ge]}],ease:[{ease:["linear","initial",_,ye,ge]}],delay:[{delay:[Ie,ye,ge]}],animate:[{animate:["none",j,ye,ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,ye,ge]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:We()}],"rotate-x":[{"rotate-x":We()}],"rotate-y":[{"rotate-y":We()}],"rotate-z":[{"rotate-z":We()}],scale:[{scale:ot()}],"scale-x":[{"scale-x":ot()}],"scale-y":[{"scale-y":ot()}],"scale-z":[{"scale-z":ot()}],"scale-3d":["scale-3d"],skew:[{skew:tn()}],"skew-x":[{"skew-x":tn()}],"skew-y":[{"skew-y":tn()}],transform:[{transform:[ye,ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:St()}],"translate-x":[{"translate-x":St()}],"translate-y":[{"translate-y":St()}],"translate-z":[{"translate-z":St()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,ge]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mbs":[{"scroll-mbs":V()}],"scroll-mbe":[{"scroll-mbe":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pbs":[{"scroll-pbs":V()}],"scroll-pbe":[{"scroll-pbe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,ge]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[Ie,eo,Gl,A0]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},sT=VA(oT);function Me(...e){return sT(Eb(e))}const So=({children:e,className:n,shimmerWidth:l=100,animate:r=!0,...o})=>x.jsx("span",{style:{"--shiny-width":`${Math.min(l,100)}px`},className:Me("mx-auto max-w-md text-foreground/50",r?["animate-shiny-text [background-size:var(--shiny-width)_100%] bg-clip-text [background-position:0_0] bg-no-repeat [transition:background-position_1s_cubic-bezier(.6,.6,0,1)_infinite]","bg-gradient-to-r from-transparent via-black/80 via-50% to-transparent dark:via-white/80"]:["text-neutral"],n),...o,children:e}),N0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,z0=Eb,uT=(e,n)=>l=>{var r;if((n==null?void 0:n.variants)==null)return z0(e,l==null?void 0:l.class,l==null?void 0:l.className);const{variants:o,defaultVariants:u}=n,c=Object.keys(o).map(m=>{const y=l==null?void 0:l[m],g=u==null?void 0:u[m];if(y===null)return null;const v=N0(y)||N0(g);return o[m][v]}),f=l&&Object.entries(l).reduce((m,y)=>{let[g,v]=y;return v===void 0||(m[g]=v),m},{}),h=n==null||(r=n.compoundVariants)===null||r===void 0?void 0:r.reduce((m,y)=>{let{class:g,className:v,...b}=y;return Object.entries(b).every(w=>{let[k,T]=w;return Array.isArray(T)?T.includes({...u,...f}[k]):{...u,...f}[k]===T})?[...m,g,v]:m},[]);return z0(e,c,h,l==null?void 0:l.class,l==null?void 0:l.className)},cT=uT("touch-manipulation inline-flex items-center justify-center whitespace-nowrap cursor-pointer rounded-md text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none",{variants:{variant:{default:"bg-primary text-primary-foreground disabled:bg-primary/50 disabled:text-primary-foreground/90 hover:bg-primary/90",juicy:"bg-logo text-primary-foreground disabled:text-primary-foreground/50 hover:bg-logo/90",destructive:"bg-destructive/80 dark:text-white",outline:"border disabled:bg-transparent disabled:text-foreground/50 border-inpu disabled:border-input/90 bg-card hover:bg-muted hover:text-accent-foreground",secondary:"bg-transparent border border-border text-secondary-foreground hover:text-secondary-foreground/60 disabled:text-secondary-foreground/50",ghost:"hover:bg-accent dark:hover:bg-card hover:text-accent-foreground text-muted-foreground disabled:text-muted-foreground/50 border border-border/0 hover:border-border",link:"text-primary disabled:text-primary/50 underline-offset-4 hover:underline",none:""},size:{default:"h-10 px-4 rounded-full py-2",sm:"h-9 rounded-full px-3",lg:"h-11 rounded-full px-8",icon:"h-9 w-9 rounded-full",none:"","icon-sm":"h-5.5 w-5.5 rounded-md"}},defaultVariants:{variant:"default",size:"default"}}),an=E.forwardRef(({className:e,variant:n,size:l,...r},o)=>x.jsx("button",{className:Me(cT({variant:n,size:l,className:e})),ref:o,...r}));an.displayName="Button";function Hs(e){if(!e)return;const n=Number.parseInt(e,10);return Number.isFinite(n)&&n>0?n:void 0}function M0(e){var r,o;const n=/^(?<path>\/.+?)#L(?<line>\d+)(?:C(?<column>\d+))?$/.exec(e);if((r=n==null?void 0:n.groups)!=null&&r.path)return{path:n.groups.path,line:Hs(n.groups.line),column:Hs(n.groups.column)};const l=/^(?<path>\/.+?):(?<line>\d+)(?::(?<column>\d+))?$/.exec(e);return(o=l==null?void 0:l.groups)!=null&&o.path?{path:l.groups.path,line:Hs(l.groups.line),column:Hs(l.groups.column)}:e.startsWith("/")?{path:e}:null}function fT(e){if(!e)return null;const n=e.trim();if(!n||/^(mailto:|ftp:|file:)/i.test(n))return null;if(/^https?:/i.test(n)){if(typeof window>"u")return null;try{const l=new URL(n);return l.origin!==window.location.origin||!l.pathname.startsWith("/")?null:M0(`${l.pathname}${l.hash}`)}catch{return null}}return M0(n)}function Ps(e,n){if(!e)return"";if(n){const l=n.endsWith("/")?n:`${n}/`;if(e.startsWith(l))return e.slice(l.length);if(e===n)return""}return e.replace(/^\/home\/user\/workspace\//,"")}const Vb={readonly:!1,localLinkMode:"open",attachmentMode:"live"},Fb=E.createContext(Vb);function dT({children:e,value:n}){return x.jsx(Fb.Provider,{value:{...Vb,...n},children:e})}function Au(){return E.useContext(Fb)}const Tm=()=>{},Hb=E.createContext(Tm);function Pb({children:e,onOpenLocalLink:n}){return x.jsx(Hb.Provider,{value:n??Tm,children:e})}const Gd={Task:Gy,TaskOutput:Gy,Bash:IC,Glob:Wf,Grep:Wf,ExitPlanMode:Yy,Read:Kv,Edit:eC,Write:nC,Delete:cC,NotebookEdit:Jv,WebFetch:gk,TodoWrite:Ak,WebSearch:Wf,KillShell:DC,AskUserQuestion:Zv,Skill:jC,EnterPlanMode:Yy},qb=UC;function Gb(e){return Gd[e]?Gd[e]:qb}function Vi({children:e,className:n}){return x.jsx("div",{className:Me("flex gap-3 justify-start items-center",n),children:e})}function Yb({children:e,className:n}){return x.jsx("div",{className:Me("flex items-center gap-1.5 text-xs",n),children:e})}function wl({children:e,className:n}){return x.jsx("span",{className:Me("font-medium text-foreground/80",n),children:e})}function mT({children:e}){return x.jsx("span",{className:"text-muted-foreground",children:e})}function Tu({children:e,expandedContent:n,defaultExpanded:l=!1}){const[r,o]=E.useState(l);return x.jsxs("div",{className:"flex flex-col w-full",children:[x.jsxs("button",{onClick:()=>o(!r),className:`group/expandable-row cursor-pointer grid grid-cols-[auto_1fr] items-center gap-1 text-sm ${r?"":"hover:opacity-60 transition-opacity"}`,children:[x.jsx("div",{className:"grid grid-cols-[auto_1fr] items-center gap-1.5",children:e}),x.jsx(Ql,{className:`h-4.5 w-4.5 text-muted-icon translate-y-[0.5px] transition-all duration-200 opacity-0 group-hover/expandable-row:opacity-100 ${r?"rotate-90 opacity-100":""}`})]}),r&&n]})}function O0({label:e,children:n,copyText:l}){const[r,o]=E.useState(!1),u=l??cu(n),c=E.useCallback(async()=>{await navigator.clipboard.writeText(u),o(!0),setTimeout(()=>o(!1),2e3)},[u]);return x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-muted-foreground",children:e}),x.jsxs("div",{className:"relative group/codeblock",children:[x.jsx("pre",{className:"my-1 text-xs font-mono whitespace-no-wrap break-all bg-muted border border-border rounded-lg p-2 max-h-64 overflow-auto w-full",children:n}),x.jsx(an,{variant:"ghost",size:"icon",className:Me("absolute top-[4px] right-[4px] z-10 h-6.5 w-6.5 rounded-sm text-muted-foreground opacity-0 group-hover/codeblock:opacity-100 transition-opacity",!r&&"hover:text-foreground",r&&"hover:!bg-transparent hover:!border-transparent"),onClick:c,children:r?x.jsx(Zr,{className:"h-3.5 w-3.5 text-green-400"}):x.jsx(om,{className:"h-4 w-4"})})]})]})}function Qb({children:e,icon:n,className:l}){return x.jsxs("span",{className:Me("inline-flex items-center gap-1 px-2 py-1 bg-muted border border-border rounded-full",l),children:[n&&x.jsx(n,{className:"h-3 w-3 text-muted-foreground"}),e]})}function _u({children:e,className:n}){return x.jsxs("div",{className:Me("grid grid-cols-[auto_1fr] gap-2 min-w-0",n),children:[x.jsx("div",{className:" min-w-5 flex flex-col relative items-center justify-center",children:x.jsx("div",{className:"min-h-full w-[1px] bg-muted-foreground/20"})}),x.jsx("div",{className:"-ml-[1px] min-w-0 overflow-hidden",children:e})]})}function cu(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(Array.isArray(e))return e.map(cu).join("");if(e&&typeof e=="object"&&"props"in e){const n=e.props;return cu(n.children)}return""}function j0(e,n){return E.isValidElement(e)?E.cloneElement(e,{className:Me(e.props.className,n)}):e}const hT={h1:({children:e})=>x.jsx("h1",{className:"text-[20px] font-normal leading-tight mt-5 mb-3 first:mt-0 last:mb-0",children:e}),h2:({children:e})=>x.jsx("h2",{className:"text-[18px] font-normal leading-tight mt-5 mb-3 first:mt-0 last:mb-0",children:e}),h3:({children:e})=>x.jsx("h3",{className:"text-[16px] font-normal leading-tight mt-5 mb-3 first:mt-0 last:mb-0",children:e}),h4:({children:e})=>x.jsx("h4",{className:"text-[16px] font-normal leading-tight mt-5 mb-3 first:mt-0 last:mb-0",children:e}),h5:({children:e})=>x.jsx("h5",{className:"text-[16px] font-normal leading-tight mt-5 mb-3 first:mt-0 last:mb-0",children:e}),h6:({children:e})=>x.jsx("h6",{className:"text-[16px] font-normal leading-tight mt-5 mb-3 first:mt-0 last:mb-0",children:e}),pre:({children:e,...n})=>{const[l,r]=E.useState(!1),o=cu(e),u=async()=>{await navigator.clipboard.writeText(o),r(!0),setTimeout(()=>r(!1),2e3)};return x.jsxs("div",{className:"relative overflow-x-auto max-w-full min-w-0 no-code-highlight group/pre",children:[x.jsx("pre",{className:"min-w-0 rounded-xl py-2.5 px-3.5 [.no-pre-highlight_&]:bg-background",...n,children:e}),x.jsx(an,{variant:"ghost",size:"icon",className:Me("absolute top-[35px] -translate-y-[50%] -translate-x-[1px] rounded-md right-1.5 h-8 w-8 text-muted-foreground opacity-0 group-hover/pre:opacity-100 transition-opacity",!l&&"hover:text-foreground",l&&"hover:!bg-transparent hover:!border-transparent"),onClick:u,children:l?x.jsx(Zr,{className:"h-4 w-4 text-green-400"}):x.jsx(om,{className:"h-4 w-4"})})]})},code:({children:e,className:n,...l})=>n?x.jsx("code",{className:"block text-xs whitespace-pre",...l,children:e}):x.jsx("code",{className:"break-all px-1 bg-border/60 dark:[.no-pre-highlight_&]:bg-background dark:[.text-pretty_&]:bg-neutral [.no-code-highlight_&]:!bg-transparent py-0.5 rounded text-sm whitespace-wrap",...l,children:e}),table:({children:e,...n})=>x.jsx("div",{className:"border border-border rounded-xl overflow-x-auto",children:x.jsx("table",{className:"table-auto min-w-full divide-y divide-border bg-background",...n,children:e})}),tbody:({children:e,...n})=>x.jsx("tbody",{className:"divide-y divide-border",...n,children:e}),th:({children:e,...n})=>x.jsx("th",{className:"text-left text-xs uppercase text-muted-foreground tracking-wider p-2 pl-0 first:pl-3 bg-muted dark:bg-card [&_*]:font-semibold",...n,children:e}),td:({children:e,...n})=>x.jsx("td",{className:"text-left p-2 pl-0 first:pl-3 [&_*]:font-normal ",...n,children:e}),p:({children:e,...n})=>x.jsx("p",{className:"break-words mt-5 mb-3 first:mt-0 last:mb-0",...n,children:e}),blockquote:({children:e,...n})=>(()=>{const l=E.Children.toArray(e),r=l[0];r!==void 0&&(l[0]=j0(r,"mt-0"));const o=l.length-1,u=l[o];return u!==void 0&&(l[o]=j0(u,"mb-0")),x.jsx("blockquote",{className:"my-2 mt-5 mb-3 first:mt-0 last:mb-0 border-l-2 border-border/80 pl-2 text-muted-foreground",...n,children:l})})(),a:({children:e,...n})=>x.jsx("a",{className:"transition-all underline decoration-2 text-logo decoration-logo/50 hover:text-logo/70 dark:text-logo dark:decoration-logo/70 dark:hover:text-logo/60 dark:hover:decoration-logo/40 ",target:"_blank",rel:"noopener noreferrer",...n,children:e})};function ia(e){return{...hT,a:({children:n,href:l,onClick:r,...o})=>{const u=E.useContext(Hb),c=Au(),f=fT(l);return f&&c.localLinkMode==="text"?x.jsx("span",{className:"transition-all underline decoration-2 text-logo decoration-logo/50",children:n}):x.jsx("a",{className:"transition-all underline decoration-2 text-logo decoration-logo/50 hover:text-logo/70 dark:text-logo dark:decoration-logo/70 dark:hover:text-logo/60 dark:hover:decoration-logo/40 ",href:l,target:f?void 0:"_blank",rel:f?void 0:"noopener noreferrer",onClick:h=>{r==null||r(h),!(h.defaultPrevented||!f||u===Tm)&&(h.preventDefault(),u(f))},...o,children:n})}}}function pT({onStop:e}){return x.jsx(Vi,{className:"ml-[1px]",children:x.jsx(Yb,{children:x.jsxs("div",{className:"group/draining relative flex items-center gap-1.5",children:[x.jsxs("div",{className:"flex items-center gap-1.5 group-hover/draining:opacity-0 transition-opacity",children:[x.jsx(sm,{className:"size-4.5 animate-spin text-muted-icon"}),x.jsx(So,{className:"ml-[1px] text-sm",shimmerWidth:44,children:"Running..."})]}),x.jsxs("button",{onClick:e,className:"absolute inset-0 flex items-center gap-1.5 opacity-0 group-hover/draining:opacity-100 transition-opacity cursor-pointer",children:[x.jsx(na,{className:"size-4.5 text-muted-foreground"}),x.jsx("span",{className:"text-sm text-muted-foreground",children:"Stop"})]})]})})})}function gT(e,n){const l={};return(e[e.length-1]===""?[...e,""]:e).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const yT=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bT={};function R0(e,n){return(bT.jsx?vT:yT).test(e)}const xT=/[ \t\n\f\r]/g;function ST(e){return typeof e=="object"?e.type==="text"?D0(e.value):!1:D0(e)}function D0(e){return e.replace(xT,"")===""}class wo{constructor(n,l,r){this.normal=l,this.property=n,r&&(this.space=r)}}wo.prototype.normal={};wo.prototype.property={};wo.prototype.space=void 0;function Xb(e,n){const l={},r={};for(const o of e)Object.assign(l,o.property),Object.assign(r,o.normal);return new wo(l,r,n)}function Yd(e){return e.toLowerCase()}class vn{constructor(n,l){this.attribute=l,this.property=n}}vn.prototype.attribute="";vn.prototype.booleanish=!1;vn.prototype.boolean=!1;vn.prototype.commaOrSpaceSeparated=!1;vn.prototype.commaSeparated=!1;vn.prototype.defined=!1;vn.prototype.mustUseProperty=!1;vn.prototype.number=!1;vn.prototype.overloadedBoolean=!1;vn.prototype.property="";vn.prototype.spaceSeparated=!1;vn.prototype.space=void 0;let wT=0;const De=nr(),It=nr(),Qd=nr(),ue=nr(),ct=nr(),Xr=nr(),Tn=nr();function nr(){return 2**++wT}const Xd=Object.freeze(Object.defineProperty({__proto__:null,boolean:De,booleanish:It,commaOrSpaceSeparated:Tn,commaSeparated:Xr,number:ue,overloadedBoolean:Qd,spaceSeparated:ct},Symbol.toStringTag,{value:"Module"})),sd=Object.keys(Xd);class _m extends vn{constructor(n,l,r,o){let u=-1;if(super(n,l),L0(this,"space",o),typeof r=="number")for(;++u<sd.length;){const c=sd[u];L0(this,sd[u],(r&Xd[c])===Xd[c])}}}_m.prototype.defined=!0;function L0(e,n,l){l&&(e[n]=l)}function la(e){const n={},l={};for(const[r,o]of Object.entries(e.properties)){const u=new _m(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),n[r]=u,l[Yd(r)]=r,l[Yd(u.attribute)]=r}return new wo(n,l,e.space)}const Kb=la({properties:{ariaActiveDescendant:null,ariaAtomic:It,ariaAutoComplete:null,ariaBusy:It,ariaChecked:It,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:ct,ariaCurrent:null,ariaDescribedBy:ct,ariaDetails:null,ariaDisabled:It,ariaDropEffect:ct,ariaErrorMessage:null,ariaExpanded:It,ariaFlowTo:ct,ariaGrabbed:It,ariaHasPopup:null,ariaHidden:It,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ct,ariaLevel:ue,ariaLive:null,ariaModal:It,ariaMultiLine:It,ariaMultiSelectable:It,ariaOrientation:null,ariaOwns:ct,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:It,ariaReadOnly:It,ariaRelevant:null,ariaRequired:It,ariaRoleDescription:ct,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:It,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Zb(e,n){return n in e?e[n]:n}function $b(e,n){return Zb(e,n.toLowerCase())}const kT=la({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xr,acceptCharset:ct,accessKey:ct,action:null,allow:null,allowFullScreen:De,allowPaymentRequest:De,allowUserMedia:De,alt:null,as:null,async:De,autoCapitalize:null,autoComplete:ct,autoFocus:De,autoPlay:De,blocking:ct,capture:null,charSet:null,checked:De,cite:null,className:ct,cols:ue,colSpan:null,content:null,contentEditable:It,controls:De,controlsList:ct,coords:ue|Xr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:De,defer:De,dir:null,dirName:null,disabled:De,download:Qd,draggable:It,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:De,formTarget:null,headers:ct,height:ue,hidden:Qd,high:ue,href:null,hrefLang:null,htmlFor:ct,httpEquiv:ct,id:null,imageSizes:null,imageSrcSet:null,inert:De,inputMode:null,integrity:null,is:null,isMap:De,itemId:null,itemProp:ct,itemRef:ct,itemScope:De,itemType:ct,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:De,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:De,muted:De,name:null,nonce:null,noModule:De,noValidate:De,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:De,optimum:ue,pattern:null,ping:ct,placeholder:null,playsInline:De,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:De,referrerPolicy:null,rel:ct,required:De,reversed:De,rows:ue,rowSpan:ue,sandbox:ct,scope:null,scoped:De,seamless:De,selected:De,shadowRootClonable:De,shadowRootDelegatesFocus:De,shadowRootMode:null,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:It,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:De,useMap:null,value:It,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ct,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:De,declare:De,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:It,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:De,disableRemotePlayback:De,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:$b}),CT=la({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Tn,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:ct,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:De,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Xr,g2:Xr,glyphName:Xr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:Tn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ue,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ct,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Tn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Tn,rev:Tn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Tn,requiredFeatures:Tn,requiredFonts:Tn,requiredFormats:Tn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:Tn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Tn,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Tn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Zb}),Jb=la({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Wb=la({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$b}),e1=la({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),ET={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},AT=/[A-Z]/g,I0=/-[a-z]/g,TT=/^data[-\w.:]+$/i;function _T(e,n){const l=Yd(n);let r=n,o=vn;if(l in e.normal)return e.property[e.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&TT.test(n)){if(n.charAt(4)==="-"){const u=n.slice(5).replace(I0,zT);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=n.slice(4);if(!I0.test(u)){let c=u.replace(AT,NT);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}o=_m}return new o(r,n)}function NT(e){return"-"+e.toLowerCase()}function zT(e){return e.charAt(1).toUpperCase()}const MT=Xb([Kb,kT,Jb,Wb,e1],"html"),Nm=Xb([Kb,CT,Jb,Wb,e1],"svg");function OT(e){return e.join(" ").trim()}var Vr={},ud,B0;function jT(){if(B0)return ud;B0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,l=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
|
|
323
|
+
`,m="/",y="*",g="",v="comment",b="declaration";function w(T,_){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];_=_||{};var j=1,M=1;function P(oe){var le=oe.match(n);le&&(j+=le.length);var L=oe.lastIndexOf(h);M=~L?oe.length-L:M+oe.length}function F(){var oe={line:j,column:M};return function(le){return le.position=new R(oe),te(),le}}function R(oe){this.start=oe,this.end={line:j,column:M},this.source=_.source}R.prototype.content=T;function H(oe){var le=new Error(_.source+":"+j+":"+M+": "+oe);if(le.reason=oe,le.filename=_.source,le.line=j,le.column=M,le.source=T,!_.silent)throw le}function V(oe){var le=oe.exec(T);if(le){var L=le[0];return P(L),T=T.slice(L.length),le}}function te(){V(l)}function I(oe){var le;for(oe=oe||[];le=J();)le!==!1&&oe.push(le);return oe}function J(){var oe=F();if(!(m!=T.charAt(0)||y!=T.charAt(1))){for(var le=2;g!=T.charAt(le)&&(y!=T.charAt(le)||m!=T.charAt(le+1));)++le;if(le+=2,g===T.charAt(le-1))return H("End of comment missing");var L=T.slice(2,le-2);return M+=2,P(L),T=T.slice(le),M+=2,oe({type:v,comment:L})}}function ae(){var oe=F(),le=V(r);if(le){if(J(),!V(o))return H("property missing ':'");var L=V(u),X=oe({type:b,property:k(le[0].replace(e,g)),value:L?k(L[0].replace(e,g)):g});return V(c),X}}function me(){var oe=[];I(oe);for(var le;le=ae();)le!==!1&&(oe.push(le),I(oe));return oe}return te(),me()}function k(T){return T?T.replace(f,g):g}return ud=w,ud}var U0;function RT(){if(U0)return Vr;U0=1;var e=Vr&&Vr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.default=l;const n=e(jT());function l(r,o){let u=null;if(!r||typeof r!="string")return u;const c=(0,n.default)(r),f=typeof o=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:m,value:y}=h;f?o(m,y,h):y&&(u=u||{},u[m]=y)}),u}return Vr}var to={},V0;function DT(){if(V0)return to;V0=1,Object.defineProperty(to,"__esModule",{value:!0}),to.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,l=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,u=function(m){return!m||l.test(m)||e.test(m)},c=function(m,y){return y.toUpperCase()},f=function(m,y){return"".concat(y,"-")},h=function(m,y){return y===void 0&&(y={}),u(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(o,f):m=m.replace(r,f),m.replace(n,c))};return to.camelCase=h,to}var no,F0;function LT(){if(F0)return no;F0=1;var e=no&&no.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},n=e(RT()),l=DT();function r(o,u){var c={};return!o||typeof o!="string"||(0,n.default)(o,function(f,h){f&&h&&(c[(0,l.camelCase)(f,u)]=h)}),c}return r.default=r,no=r,no}var IT=LT();const BT=yu(IT),t1=n1("end"),zm=n1("start");function n1(e){return n;function n(l){const r=l&&l.position&&l.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function UT(e){const n=zm(e),l=t1(e);if(n&&l)return{start:n,end:l}}function oo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?H0(e.position):"start"in e||"end"in e?H0(e):"line"in e||"column"in e?Kd(e):""}function Kd(e){return P0(e&&e.line)+":"+P0(e&&e.column)}function H0(e){return Kd(e&&e.start)+"-"+Kd(e&&e.end)}function P0(e){return e&&typeof e=="number"?e:1}class en extends Error{constructor(n,l,r){super(),typeof l=="string"&&(r=l,l=void 0);let o="",u={},c=!1;if(l&&("line"in l&&"column"in l?u={place:l}:"start"in l&&"end"in l?u={place:l}:"type"in l?u={ancestors:[l],place:l.position}:u={...l}),typeof n=="string"?o=n:!u.cause&&n&&(c=!0,o=n.message,u.cause=n),!u.ruleId&&!u.source&&typeof r=="string"){const h=r.indexOf(":");h===-1?u.ruleId=r:(u.source=r.slice(0,h),u.ruleId=r.slice(h+1))}if(!u.place&&u.ancestors&&u.ancestors){const h=u.ancestors[u.ancestors.length-1];h&&(u.place=h.position)}const f=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=f?f.line:void 0,this.name=oo(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}en.prototype.file="";en.prototype.name="";en.prototype.reason="";en.prototype.message="";en.prototype.stack="";en.prototype.column=void 0;en.prototype.line=void 0;en.prototype.ancestors=void 0;en.prototype.cause=void 0;en.prototype.fatal=void 0;en.prototype.place=void 0;en.prototype.ruleId=void 0;en.prototype.source=void 0;const Mm={}.hasOwnProperty,VT=new Map,FT=/[A-Z]/g,HT=new Set(["table","tbody","thead","tfoot","tr"]),PT=new Set(["td","th"]),i1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function qT(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const l=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=JT(l,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=$T(l,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Nm:MT,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},u=l1(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}function l1(e,n,l){if(n.type==="element")return GT(e,n,l);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return YT(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return XT(e,n,l);if(n.type==="mdxjsEsm")return QT(e,n);if(n.type==="root")return KT(e,n,l);if(n.type==="text")return ZT(e,n)}function GT(e,n,l){const r=e.schema;let o=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=Nm,e.schema=o),e.ancestors.push(n);const u=a1(e,n.tagName,!1),c=WT(e,n);let f=jm(e,n);return HT.has(n.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!ST(h):!0})),r1(e,c,u,n),Om(c,f),e.ancestors.pop(),e.schema=r,e.create(n,u,c,l)}function YT(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}go(e,n.position)}function QT(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);go(e,n.position)}function XT(e,n,l){const r=e.schema;let o=r;n.name==="svg"&&r.space==="html"&&(o=Nm,e.schema=o),e.ancestors.push(n);const u=n.name===null?e.Fragment:a1(e,n.name,!0),c=e_(e,n),f=jm(e,n);return r1(e,c,u,n),Om(c,f),e.ancestors.pop(),e.schema=r,e.create(n,u,c,l)}function KT(e,n,l){const r={};return Om(r,jm(e,n)),e.create(n,e.Fragment,r,l)}function ZT(e,n){return n.value}function r1(e,n,l,r){typeof l!="string"&&l!==e.Fragment&&e.passNode&&(n.node=r)}function Om(e,n){if(n.length>0){const l=n.length>1?n:n[0];l&&(e.children=l)}}function $T(e,n,l){return r;function r(o,u,c,f){const m=Array.isArray(c.children)?l:n;return f?m(u,c,f):m(u,c)}}function JT(e,n){return l;function l(r,o,u,c){const f=Array.isArray(u.children),h=zm(r);return n(o,u,c,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function WT(e,n){const l={};let r,o;for(o in n.properties)if(o!=="children"&&Mm.call(n.properties,o)){const u=t_(e,o,n.properties[o]);if(u){const[c,f]=u;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&PT.has(n.tagName)?r=f:l[c]=f}}if(r){const u=l.style||(l.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return l}function e_(e,n){const l={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const u=r.data.estree.body[0];u.type;const c=u.expression;c.type;const f=c.properties[0];f.type,Object.assign(l,e.evaluater.evaluateExpression(f.argument))}else go(e,n.position);else{const o=r.name;let u;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const f=r.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else go(e,n.position);else u=r.value===null?!0:r.value;l[o]=u}return l}function jm(e,n){const l=[];let r=-1;const o=e.passKeys?new Map:VT;for(;++r<n.children.length;){const u=n.children[r];let c;if(e.passKeys){const h=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(h){const m=o.get(h)||0;c=h+"-"+m,o.set(h,m+1)}}const f=l1(e,u,c);f!==void 0&&l.push(f)}return l}function t_(e,n,l){const r=_T(e.schema,n);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=r.commaSeparated?gT(l):OT(l)),r.property==="style"){let o=typeof l=="object"?l:n_(e,String(l));return e.stylePropertyNameCase==="css"&&(o=i_(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?ET[r.property]||r.property:r.attribute,l]}}function n_(e,n){try{return BT(n,{reactCompat:!0})}catch(l){if(e.ignoreInvalidStyle)return{};const r=l,o=new en("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=i1+"#cannot-parse-style-attribute",o}}function a1(e,n,l){let r;if(!l)r={type:"Literal",value:n};else if(n.includes(".")){const o=n.split(".");let u=-1,c;for(;++u<o.length;){const f=R0(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}r=c}else r=R0(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const o=r.value;return Mm.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);go(e)}function go(e,n){const l=new en("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=i1+"#cannot-handle-mdx-estrees-without-createevaluater",l}function i_(e){const n={};let l;for(l in e)Mm.call(e,l)&&(n[l_(l)]=e[l]);return n}function l_(e){let n=e.replace(FT,r_);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function r_(e){return"-"+e.toLowerCase()}const cd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},a_={};function Rm(e,n){const l=a_,r=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,o=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return o1(e,r,o)}function o1(e,n,l){if(o_(e)){if("value"in e)return e.type==="html"&&!l?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return q0(e.children,n,l)}return Array.isArray(e)?q0(e,n,l):""}function q0(e,n,l){const r=[];let o=-1;for(;++o<e.length;)r[o]=o1(e[o],n,l);return r.join("")}function o_(e){return!!(e&&typeof e=="object")}const G0=document.createElement("i");function Dm(e){const n="&"+e+";";G0.innerHTML=n;const l=G0.textContent;return l.charCodeAt(l.length-1)===59&&e!=="semi"||l===n?!1:l}function _n(e,n,l,r){const o=e.length;let u=0,c;if(n<0?n=-n>o?0:o+n:n=n>o?o:n,l=l>0?l:0,r.length<1e4)c=Array.from(r),c.unshift(n,l),e.splice(...c);else for(l&&e.splice(n,l);u<r.length;)c=r.slice(u,u+1e4),c.unshift(n,0),e.splice(...c),u+=1e4,n+=1e4}function Gn(e,n){return e.length>0?(_n(e,e.length,0,n),e):n}const Y0={}.hasOwnProperty;function s1(e){const n={};let l=-1;for(;++l<e.length;)s_(n,e[l]);return n}function s_(e,n){let l;for(l in n){const o=(Y0.call(e,l)?e[l]:void 0)||(e[l]={}),u=n[l];let c;if(u)for(c in u){Y0.call(o,c)||(o[c]=[]);const f=u[c];u_(o[c],Array.isArray(f)?f:f?[f]:[])}}}function u_(e,n){let l=-1;const r=[];for(;++l<n.length;)(n[l].add==="after"?e:r).push(n[l]);_n(e,0,0,r)}function u1(e,n){const l=Number.parseInt(e,n);return l<9||l===11||l>13&&l<32||l>126&&l<160||l>55295&&l<57344||l>64975&&l<65008||(l&65535)===65535||(l&65535)===65534||l>1114111?"�":String.fromCodePoint(l)}function li(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const sn=Cl(/[A-Za-z]/),Wt=Cl(/[\dA-Za-z]/),c_=Cl(/[#-'*+\--9=?A-Z^-~]/);function fu(e){return e!==null&&(e<32||e===127)}const Zd=Cl(/\d/),f_=Cl(/[\dA-Fa-f]/),d_=Cl(/[!-/:-@[-`{-~]/);function ke(e){return e!==null&&e<-2}function ut(e){return e!==null&&(e<0||e===32)}function Fe(e){return e===-2||e===-1||e===32}const Nu=Cl(new RegExp("\\p{P}|\\p{S}","u")),Zl=Cl(/\s/);function Cl(e){return n;function n(l){return l!==null&&l>-1&&e.test(String.fromCharCode(l))}}function ra(e){const n=[];let l=-1,r=0,o=0;for(;++l<e.length;){const u=e.charCodeAt(l);let c="";if(u===37&&Wt(e.charCodeAt(l+1))&&Wt(e.charCodeAt(l+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const f=e.charCodeAt(l+1);u<56320&&f>56319&&f<57344?(c=String.fromCharCode(u,f),o=1):c="�"}else c=String.fromCharCode(u);c&&(n.push(e.slice(r,l),encodeURIComponent(c)),r=l+o+1,c=""),o&&(l+=o,o=0)}return n.join("")+e.slice(r)}function Qe(e,n,l,r){const o=r?r-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(h){return Fe(h)?(e.enter(l),f(h)):n(h)}function f(h){return Fe(h)&&u++<o?(e.consume(h),f):(e.exit(l),n(h))}}const m_={tokenize:h_};function h_(e){const n=e.attempt(this.parser.constructs.contentInitial,r,o);let l;return n;function r(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Qe(e,n,"linePrefix")}function o(f){return e.enter("paragraph"),u(f)}function u(f){const h=e.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=h),l=h,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return ke(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),c)}}const p_={tokenize:g_},Q0={tokenize:y_};function g_(e){const n=this,l=[];let r=0,o,u,c;return f;function f(M){if(r<l.length){const P=l[r];return n.containerState=P[1],e.attempt(P[0].continuation,h,m)(M)}return m(M)}function h(M){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&j();const P=n.events.length;let F=P,R;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){R=n.events[F][1].end;break}_(r);let H=P;for(;H<n.events.length;)n.events[H][1].end={...R},H++;return _n(n.events,F+1,0,n.events.slice(P)),n.events.length=H,m(M)}return f(M)}function m(M){if(r===l.length){if(!o)return v(M);if(o.currentConstruct&&o.currentConstruct.concrete)return w(M);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Q0,y,g)(M)}function y(M){return o&&j(),_(r),v(M)}function g(M){return n.parser.lazy[n.now().line]=r!==l.length,c=n.now().offset,w(M)}function v(M){return n.containerState={},e.attempt(Q0,b,w)(M)}function b(M){return r++,l.push([n.currentConstruct,n.containerState]),v(M)}function w(M){if(M===null){o&&j(),_(0),e.consume(M);return}return o=o||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:u}),k(M)}function k(M){if(M===null){T(e.exit("chunkFlow"),!0),_(0),e.consume(M);return}return ke(M)?(e.consume(M),T(e.exit("chunkFlow")),r=0,n.interrupt=void 0,f):(e.consume(M),k)}function T(M,P){const F=n.sliceStream(M);if(P&&F.push(null),M.previous=u,u&&(u.next=M),u=M,o.defineSkip(M.start),o.write(F),n.parser.lazy[M.start.line]){let R=o.events.length;for(;R--;)if(o.events[R][1].start.offset<c&&(!o.events[R][1].end||o.events[R][1].end.offset>c))return;const H=n.events.length;let V=H,te,I;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){if(te){I=n.events[V][1].end;break}te=!0}for(_(r),R=H;R<n.events.length;)n.events[R][1].end={...I},R++;_n(n.events,V+1,0,n.events.slice(H)),n.events.length=R}}function _(M){let P=l.length;for(;P-- >M;){const F=l[P];n.containerState=F[1],F[0].exit.call(n,e)}l.length=M}function j(){o.write([null]),u=void 0,o=void 0,n.containerState._closeFlow=void 0}}function y_(e,n,l){return Qe(e,e.attempt(this.parser.constructs.document,n,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ea(e){if(e===null||ut(e)||Zl(e))return 1;if(Nu(e))return 2}function zu(e,n,l){const r=[];let o=-1;for(;++o<e.length;){const u=e[o].resolveAll;u&&!r.includes(u)&&(n=u(n,l),r.push(u))}return n}const $d={name:"attention",resolveAll:v_,tokenize:b_};function v_(e,n){let l=-1,r,o,u,c,f,h,m,y;for(;++l<e.length;)if(e[l][0]==="enter"&&e[l][1].type==="attentionSequence"&&e[l][1]._close){for(r=l;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[r][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;h=e[r][1].end.offset-e[r][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const g={...e[r][1].end},v={...e[l][1].start};X0(g,-h),X0(v,h),c={type:h>1?"strongSequence":"emphasisSequence",start:g,end:{...e[r][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[l][1].start},end:v},u={type:h>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[l][1].start}},o={type:h>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[r][1].end={...c.start},e[l][1].start={...f.end},m=[],e[r][1].end.offset-e[r][1].start.offset&&(m=Gn(m,[["enter",e[r][1],n],["exit",e[r][1],n]])),m=Gn(m,[["enter",o,n],["enter",c,n],["exit",c,n],["enter",u,n]]),m=Gn(m,zu(n.parser.constructs.insideSpan.null,e.slice(r+1,l),n)),m=Gn(m,[["exit",u,n],["enter",f,n],["exit",f,n],["exit",o,n]]),e[l][1].end.offset-e[l][1].start.offset?(y=2,m=Gn(m,[["enter",e[l][1],n],["exit",e[l][1],n]])):y=0,_n(e,r-1,l-r+3,m),l=r+m.length-y-2;break}}for(l=-1;++l<e.length;)e[l][1].type==="attentionSequence"&&(e[l][1].type="data");return e}function b_(e,n){const l=this.parser.constructs.attentionMarkers.null,r=this.previous,o=ea(r);let u;return c;function c(h){return u=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===u)return e.consume(h),f;const m=e.exit("attentionSequence"),y=ea(h),g=!y||y===2&&o||l.includes(h),v=!o||o===2&&y||l.includes(r);return m._open=!!(u===42?g:g&&(o||!v)),m._close=!!(u===42?v:v&&(y||!g)),n(h)}}function X0(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const x_={name:"autolink",tokenize:S_};function S_(e,n,l){let r=0;return o;function o(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(b){return sn(b)?(e.consume(b),c):b===64?l(b):m(b)}function c(b){return b===43||b===45||b===46||Wt(b)?(r=1,f(b)):m(b)}function f(b){return b===58?(e.consume(b),r=0,h):(b===43||b===45||b===46||Wt(b))&&r++<32?(e.consume(b),f):(r=0,m(b))}function h(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):b===null||b===32||b===60||fu(b)?l(b):(e.consume(b),h)}function m(b){return b===64?(e.consume(b),y):c_(b)?(e.consume(b),m):l(b)}function y(b){return Wt(b)?g(b):l(b)}function g(b){return b===46?(e.consume(b),r=0,y):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):v(b)}function v(b){if((b===45||Wt(b))&&r++<63){const w=b===45?v:g;return e.consume(b),w}return l(b)}}const ko={partial:!0,tokenize:w_};function w_(e,n,l){return r;function r(u){return Fe(u)?Qe(e,o,"linePrefix")(u):o(u)}function o(u){return u===null||ke(u)?n(u):l(u)}}const c1={continuation:{tokenize:C_},exit:E_,name:"blockQuote",tokenize:k_};function k_(e,n,l){const r=this;return o;function o(c){if(c===62){const f=r.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return l(c)}function u(c){return Fe(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function C_(e,n,l){const r=this;return o;function o(c){return Fe(c)?Qe(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(c1,n,l)(c)}}function E_(e){e.exit("blockQuote")}const f1={name:"characterEscape",tokenize:A_};function A_(e,n,l){return r;function r(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),o}function o(u){return d_(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):l(u)}}const d1={name:"characterReference",tokenize:T_};function T_(e,n,l){const r=this;let o=0,u,c;return f;function f(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),h}function h(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),u=31,c=Wt,y(g))}function m(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=f_,y):(e.enter("characterReferenceValue"),u=7,c=Zd,y(g))}function y(g){if(g===59&&o){const v=e.exit("characterReferenceValue");return c===Wt&&!Dm(r.sliceSerialize(v))?l(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(g)&&o++<u?(e.consume(g),y):l(g)}}const K0={partial:!0,tokenize:N_},Z0={concrete:!0,name:"codeFenced",tokenize:__};function __(e,n,l){const r=this,o={partial:!0,tokenize:F};let u=0,c=0,f;return h;function h(R){return m(R)}function m(R){const H=r.events[r.events.length-1];return u=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,f=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(R)}function y(R){return R===f?(c++,e.consume(R),y):c<3?l(R):(e.exit("codeFencedFenceSequence"),Fe(R)?Qe(e,g,"whitespace")(R):g(R))}function g(R){return R===null||ke(R)?(e.exit("codeFencedFence"),r.interrupt?n(R):e.check(K0,k,P)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(R))}function v(R){return R===null||ke(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(R)):Fe(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Qe(e,b,"whitespace")(R)):R===96&&R===f?l(R):(e.consume(R),v)}function b(R){return R===null||ke(R)?g(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(R))}function w(R){return R===null||ke(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(R)):R===96&&R===f?l(R):(e.consume(R),w)}function k(R){return e.attempt(o,P,T)(R)}function T(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),_}function _(R){return u>0&&Fe(R)?Qe(e,j,"linePrefix",u+1)(R):j(R)}function j(R){return R===null||ke(R)?e.check(K0,k,P)(R):(e.enter("codeFlowValue"),M(R))}function M(R){return R===null||ke(R)?(e.exit("codeFlowValue"),j(R)):(e.consume(R),M)}function P(R){return e.exit("codeFenced"),n(R)}function F(R,H,V){let te=0;return I;function I(le){return R.enter("lineEnding"),R.consume(le),R.exit("lineEnding"),J}function J(le){return R.enter("codeFencedFence"),Fe(le)?Qe(R,ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(le):ae(le)}function ae(le){return le===f?(R.enter("codeFencedFenceSequence"),me(le)):V(le)}function me(le){return le===f?(te++,R.consume(le),me):te>=c?(R.exit("codeFencedFenceSequence"),Fe(le)?Qe(R,oe,"whitespace")(le):oe(le)):V(le)}function oe(le){return le===null||ke(le)?(R.exit("codeFencedFence"),H(le)):V(le)}}}function N_(e,n,l){const r=this;return o;function o(c){return c===null?l(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return r.parser.lazy[r.now().line]?l(c):n(c)}}const fd={name:"codeIndented",tokenize:M_},z_={partial:!0,tokenize:O_};function M_(e,n,l){const r=this;return o;function o(m){return e.enter("codeIndented"),Qe(e,u,"linePrefix",5)(m)}function u(m){const y=r.events[r.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(m):l(m)}function c(m){return m===null?h(m):ke(m)?e.attempt(z_,c,h)(m):(e.enter("codeFlowValue"),f(m))}function f(m){return m===null||ke(m)?(e.exit("codeFlowValue"),c(m)):(e.consume(m),f)}function h(m){return e.exit("codeIndented"),n(m)}}function O_(e,n,l){const r=this;return o;function o(c){return r.parser.lazy[r.now().line]?l(c):ke(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):Qe(e,u,"linePrefix",5)(c)}function u(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):ke(c)?o(c):l(c)}}const j_={name:"codeText",previous:D_,resolve:R_,tokenize:L_};function R_(e){let n=e.length-4,l=3,r,o;if((e[l][1].type==="lineEnding"||e[l][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=l;++r<n;)if(e[r][1].type==="codeTextData"){e[l][1].type="codeTextPadding",e[n][1].type="codeTextPadding",l+=2,n-=2;break}}for(r=l-1,n++;++r<=n;)o===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(o=r):(r===n||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),n-=r-o-2,r=o+2),o=void 0);return e}function D_(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function L_(e,n,l){let r=0,o,u;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),f(g)}function f(g){return g===96?(e.consume(g),r++,f):(e.exit("codeTextSequence"),h(g))}function h(g){return g===null?l(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),h):g===96?(u=e.enter("codeTextSequence"),o=0,y(g)):ke(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),h):(e.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||ke(g)?(e.exit("codeTextData"),h(g)):(e.consume(g),m)}function y(g){return g===96?(e.consume(g),o++,y):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(g)):(u.type="codeTextData",m(g))}}class I_{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,l){const r=l??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,l,r){const o=l||0;this.setCursor(Math.trunc(n));const u=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&io(this.left,r),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),io(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),io(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const l=this.left.splice(n,Number.POSITIVE_INFINITY);io(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);io(this.left,l.reverse())}}}function io(e,n){let l=0;if(n.length<1e4)e.push(...n);else for(;l<n.length;)e.push(...n.slice(l,l+1e4)),l+=1e4}function m1(e){const n={};let l=-1,r,o,u,c,f,h,m;const y=new I_(e);for(;++l<y.length;){for(;l in n;)l=n[l];if(r=y.get(l),l&&r[1].type==="chunkFlow"&&y.get(l-1)[1].type==="listItemPrefix"&&(h=r[1]._tokenizer.events,u=0,u<h.length&&h[u][1].type==="lineEndingBlank"&&(u+=2),u<h.length&&h[u][1].type==="content"))for(;++u<h.length&&h[u][1].type!=="content";)h[u][1].type==="chunkText"&&(h[u][1]._isInFirstContentOfListItem=!0,u++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,B_(y,l)),l=n[l],m=!0);else if(r[1]._container){for(u=l,o=void 0;u--;)if(c=y.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(r[1].end={...y.get(o)[1].start},f=y.slice(o,l),f.unshift(r),y.splice(o,l-o+1,f))}}return _n(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function B_(e,n){const l=e.get(n)[1],r=e.get(n)[2];let o=n-1;const u=[];let c=l._tokenizer;c||(c=r.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,h=[],m={};let y,g,v=-1,b=l,w=0,k=0;const T=[k];for(;b;){for(;e.get(++o)[1]!==b;);u.push(o),b._tokenizer||(y=r.sliceStream(b),b.next||y.push(null),g&&c.defineSkip(b.start),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=l;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(k=v+1,T.push(k),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(c.events=[],b?(b._tokenizer=void 0,b.previous=void 0):T.pop(),v=T.length;v--;){const _=f.slice(T[v],T[v+1]),j=u.pop();h.push([j,j+_.length-1]),e.splice(j,2,_)}for(h.reverse(),v=-1;++v<h.length;)m[w+h[v][0]]=w+h[v][1],w+=h[v][1]-h[v][0]-1;return m}const U_={resolve:F_,tokenize:H_},V_={partial:!0,tokenize:P_};function F_(e){return m1(e),e}function H_(e,n){let l;return r;function r(f){return e.enter("content"),l=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?u(f):ke(f)?e.check(V_,c,u)(f):(e.consume(f),o)}function u(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function c(f){return e.consume(f),e.exit("chunkContent"),l.next=e.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,o}}function P_(e,n,l){const r=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Qe(e,u,"linePrefix")}function u(c){if(c===null||ke(c))return l(c);const f=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):e.interrupt(r.parser.constructs.flow,l,n)(c)}}function h1(e,n,l,r,o,u,c,f,h){const m=h||Number.POSITIVE_INFINITY;let y=0;return g;function g(_){return _===60?(e.enter(r),e.enter(o),e.enter(u),e.consume(_),e.exit(u),v):_===null||_===32||_===41||fu(_)?l(_):(e.enter(r),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),k(_))}function v(_){return _===62?(e.enter(u),e.consume(_),e.exit(u),e.exit(o),e.exit(r),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),b(_))}function b(_){return _===62?(e.exit("chunkString"),e.exit(f),v(_)):_===null||_===60||ke(_)?l(_):(e.consume(_),_===92?w:b)}function w(_){return _===60||_===62||_===92?(e.consume(_),b):b(_)}function k(_){return!y&&(_===null||_===41||ut(_))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(r),n(_)):y<m&&_===40?(e.consume(_),y++,k):_===41?(e.consume(_),y--,k):_===null||_===32||_===40||fu(_)?l(_):(e.consume(_),_===92?T:k)}function T(_){return _===40||_===41||_===92?(e.consume(_),k):k(_)}}function p1(e,n,l,r,o,u){const c=this;let f=0,h;return m;function m(b){return e.enter(r),e.enter(o),e.consume(b),e.exit(o),e.enter(u),y}function y(b){return f>999||b===null||b===91||b===93&&!h||b===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?l(b):b===93?(e.exit(u),e.enter(o),e.consume(b),e.exit(o),e.exit(r),n):ke(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||ke(b)||f++>999?(e.exit("chunkString"),y(b)):(e.consume(b),h||(h=!Fe(b)),b===92?v:g)}function v(b){return b===91||b===92||b===93?(e.consume(b),f++,g):g(b)}}function g1(e,n,l,r,o,u){let c;return f;function f(v){return v===34||v===39||v===40?(e.enter(r),e.enter(o),e.consume(v),e.exit(o),c=v===40?41:v,h):l(v)}function h(v){return v===c?(e.enter(o),e.consume(v),e.exit(o),e.exit(r),n):(e.enter(u),m(v))}function m(v){return v===c?(e.exit(u),h(c)):v===null?l(v):ke(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),Qe(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===c||v===null||ke(v)?(e.exit("chunkString"),m(v)):(e.consume(v),v===92?g:y)}function g(v){return v===c||v===92?(e.consume(v),y):y(v)}}function so(e,n){let l;return r;function r(o){return ke(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l=!0,r):Fe(o)?Qe(e,r,l?"linePrefix":"lineSuffix")(o):n(o)}}const q_={name:"definition",tokenize:Y_},G_={partial:!0,tokenize:Q_};function Y_(e,n,l){const r=this;let o;return u;function u(b){return e.enter("definition"),c(b)}function c(b){return p1.call(r,e,f,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function f(b){return o=li(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),h):l(b)}function h(b){return ut(b)?so(e,m)(b):m(b)}function m(b){return h1(e,y,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function y(b){return e.attempt(G_,g,g)(b)}function g(b){return Fe(b)?Qe(e,v,"whitespace")(b):v(b)}function v(b){return b===null||ke(b)?(e.exit("definition"),r.parser.defined.push(o),n(b)):l(b)}}function Q_(e,n,l){return r;function r(f){return ut(f)?so(e,o)(f):l(f)}function o(f){return g1(e,u,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Fe(f)?Qe(e,c,"whitespace")(f):c(f)}function c(f){return f===null||ke(f)?n(f):l(f)}}const X_={name:"hardBreakEscape",tokenize:K_};function K_(e,n,l){return r;function r(u){return e.enter("hardBreakEscape"),e.consume(u),o}function o(u){return ke(u)?(e.exit("hardBreakEscape"),n(u)):l(u)}}const Z_={name:"headingAtx",resolve:$_,tokenize:J_};function $_(e,n){let l=e.length-2,r=3,o,u;return e[r][1].type==="whitespace"&&(r+=2),l-2>r&&e[l][1].type==="whitespace"&&(l-=2),e[l][1].type==="atxHeadingSequence"&&(r===l-1||l-4>r&&e[l-2][1].type==="whitespace")&&(l-=r+1===l?2:4),l>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[l][1].end},u={type:"chunkText",start:e[r][1].start,end:e[l][1].end,contentType:"text"},_n(e,r,l-r+1,[["enter",o,n],["enter",u,n],["exit",u,n],["exit",o,n]])),e}function J_(e,n,l){let r=0;return o;function o(y){return e.enter("atxHeading"),u(y)}function u(y){return e.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&r++<6?(e.consume(y),c):y===null||ut(y)?(e.exit("atxHeadingSequence"),f(y)):l(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),h(y)):y===null||ke(y)?(e.exit("atxHeading"),n(y)):Fe(y)?Qe(e,f,"whitespace")(y):(e.enter("atxHeadingText"),m(y))}function h(y){return y===35?(e.consume(y),h):(e.exit("atxHeadingSequence"),f(y))}function m(y){return y===null||y===35||ut(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),m)}}const W_=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],$0=["pre","script","style","textarea"],eN={concrete:!0,name:"htmlFlow",resolveTo:iN,tokenize:lN},tN={partial:!0,tokenize:aN},nN={partial:!0,tokenize:rN};function iN(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function lN(e,n,l){const r=this;let o,u,c,f,h;return m;function m(N){return y(N)}function y(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),g}function g(N){return N===33?(e.consume(N),v):N===47?(e.consume(N),u=!0,k):N===63?(e.consume(N),o=3,r.interrupt?n:C):sn(N)?(e.consume(N),c=String.fromCharCode(N),T):l(N)}function v(N){return N===45?(e.consume(N),o=2,b):N===91?(e.consume(N),o=5,f=0,w):sn(N)?(e.consume(N),o=4,r.interrupt?n:C):l(N)}function b(N){return N===45?(e.consume(N),r.interrupt?n:C):l(N)}function w(N){const W="CDATA[";return N===W.charCodeAt(f++)?(e.consume(N),f===W.length?r.interrupt?n:ae:w):l(N)}function k(N){return sn(N)?(e.consume(N),c=String.fromCharCode(N),T):l(N)}function T(N){if(N===null||N===47||N===62||ut(N)){const W=N===47,se=c.toLowerCase();return!W&&!u&&$0.includes(se)?(o=1,r.interrupt?n(N):ae(N)):W_.includes(c.toLowerCase())?(o=6,W?(e.consume(N),_):r.interrupt?n(N):ae(N)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?l(N):u?j(N):M(N))}return N===45||Wt(N)?(e.consume(N),c+=String.fromCharCode(N),T):l(N)}function _(N){return N===62?(e.consume(N),r.interrupt?n:ae):l(N)}function j(N){return Fe(N)?(e.consume(N),j):I(N)}function M(N){return N===47?(e.consume(N),I):N===58||N===95||sn(N)?(e.consume(N),P):Fe(N)?(e.consume(N),M):I(N)}function P(N){return N===45||N===46||N===58||N===95||Wt(N)?(e.consume(N),P):F(N)}function F(N){return N===61?(e.consume(N),R):Fe(N)?(e.consume(N),F):M(N)}function R(N){return N===null||N===60||N===61||N===62||N===96?l(N):N===34||N===39?(e.consume(N),h=N,H):Fe(N)?(e.consume(N),R):V(N)}function H(N){return N===h?(e.consume(N),h=null,te):N===null||ke(N)?l(N):(e.consume(N),H)}function V(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||ut(N)?F(N):(e.consume(N),V)}function te(N){return N===47||N===62||Fe(N)?M(N):l(N)}function I(N){return N===62?(e.consume(N),J):l(N)}function J(N){return N===null||ke(N)?ae(N):Fe(N)?(e.consume(N),J):l(N)}function ae(N){return N===45&&o===2?(e.consume(N),L):N===60&&o===1?(e.consume(N),X):N===62&&o===4?(e.consume(N),z):N===63&&o===3?(e.consume(N),C):N===93&&o===5?(e.consume(N),$):ke(N)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(tN,U,me)(N)):N===null||ke(N)?(e.exit("htmlFlowData"),me(N)):(e.consume(N),ae)}function me(N){return e.check(nN,oe,U)(N)}function oe(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),le}function le(N){return N===null||ke(N)?me(N):(e.enter("htmlFlowData"),ae(N))}function L(N){return N===45?(e.consume(N),C):ae(N)}function X(N){return N===47?(e.consume(N),c="",ne):ae(N)}function ne(N){if(N===62){const W=c.toLowerCase();return $0.includes(W)?(e.consume(N),z):ae(N)}return sn(N)&&c.length<8?(e.consume(N),c+=String.fromCharCode(N),ne):ae(N)}function $(N){return N===93?(e.consume(N),C):ae(N)}function C(N){return N===62?(e.consume(N),z):N===45&&o===2?(e.consume(N),C):ae(N)}function z(N){return N===null||ke(N)?(e.exit("htmlFlowData"),U(N)):(e.consume(N),z)}function U(N){return e.exit("htmlFlow"),n(N)}}function rN(e,n,l){const r=this;return o;function o(c){return ke(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):l(c)}function u(c){return r.parser.lazy[r.now().line]?l(c):n(c)}}function aN(e,n,l){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(ko,n,l)}}const oN={name:"htmlText",tokenize:sN};function sN(e,n,l){const r=this;let o,u,c;return f;function f(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),h}function h(C){return C===33?(e.consume(C),m):C===47?(e.consume(C),F):C===63?(e.consume(C),M):sn(C)?(e.consume(C),V):l(C)}function m(C){return C===45?(e.consume(C),y):C===91?(e.consume(C),u=0,w):sn(C)?(e.consume(C),j):l(C)}function y(C){return C===45?(e.consume(C),b):l(C)}function g(C){return C===null?l(C):C===45?(e.consume(C),v):ke(C)?(c=g,X(C)):(e.consume(C),g)}function v(C){return C===45?(e.consume(C),b):g(C)}function b(C){return C===62?L(C):C===45?v(C):g(C)}function w(C){const z="CDATA[";return C===z.charCodeAt(u++)?(e.consume(C),u===z.length?k:w):l(C)}function k(C){return C===null?l(C):C===93?(e.consume(C),T):ke(C)?(c=k,X(C)):(e.consume(C),k)}function T(C){return C===93?(e.consume(C),_):k(C)}function _(C){return C===62?L(C):C===93?(e.consume(C),_):k(C)}function j(C){return C===null||C===62?L(C):ke(C)?(c=j,X(C)):(e.consume(C),j)}function M(C){return C===null?l(C):C===63?(e.consume(C),P):ke(C)?(c=M,X(C)):(e.consume(C),M)}function P(C){return C===62?L(C):M(C)}function F(C){return sn(C)?(e.consume(C),R):l(C)}function R(C){return C===45||Wt(C)?(e.consume(C),R):H(C)}function H(C){return ke(C)?(c=H,X(C)):Fe(C)?(e.consume(C),H):L(C)}function V(C){return C===45||Wt(C)?(e.consume(C),V):C===47||C===62||ut(C)?te(C):l(C)}function te(C){return C===47?(e.consume(C),L):C===58||C===95||sn(C)?(e.consume(C),I):ke(C)?(c=te,X(C)):Fe(C)?(e.consume(C),te):L(C)}function I(C){return C===45||C===46||C===58||C===95||Wt(C)?(e.consume(C),I):J(C)}function J(C){return C===61?(e.consume(C),ae):ke(C)?(c=J,X(C)):Fe(C)?(e.consume(C),J):te(C)}function ae(C){return C===null||C===60||C===61||C===62||C===96?l(C):C===34||C===39?(e.consume(C),o=C,me):ke(C)?(c=ae,X(C)):Fe(C)?(e.consume(C),ae):(e.consume(C),oe)}function me(C){return C===o?(e.consume(C),o=void 0,le):C===null?l(C):ke(C)?(c=me,X(C)):(e.consume(C),me)}function oe(C){return C===null||C===34||C===39||C===60||C===61||C===96?l(C):C===47||C===62||ut(C)?te(C):(e.consume(C),oe)}function le(C){return C===47||C===62||ut(C)?te(C):l(C)}function L(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),n):l(C)}function X(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),ne}function ne(C){return Fe(C)?Qe(e,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):$(C)}function $(C){return e.enter("htmlTextData"),c(C)}}const Lm={name:"labelEnd",resolveAll:dN,resolveTo:mN,tokenize:hN},uN={tokenize:pN},cN={tokenize:gN},fN={tokenize:yN};function dN(e){let n=-1;const l=[];for(;++n<e.length;){const r=e[n][1];if(l.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",n+=o}}return e.length!==l.length&&_n(e,0,e.length,l),e}function mN(e,n){let l=e.length,r=0,o,u,c,f;for(;l--;)if(o=e[l][1],u){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[l][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[l][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(u=l,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(c=l);const h={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},y={type:"labelText",start:{...e[u+r+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",h,n],["enter",m,n]],f=Gn(f,e.slice(u+1,u+r+3)),f=Gn(f,[["enter",y,n]]),f=Gn(f,zu(n.parser.constructs.insideSpan.null,e.slice(u+r+4,c-3),n)),f=Gn(f,[["exit",y,n],e[c-2],e[c-1],["exit",m,n]]),f=Gn(f,e.slice(c+1)),f=Gn(f,[["exit",h,n]]),_n(e,u,e.length,f),e}function hN(e,n,l){const r=this;let o=r.events.length,u,c;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){u=r.events[o][1];break}return f;function f(v){return u?u._inactive?g(v):(c=r.parser.defined.includes(li(r.sliceSerialize({start:u.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),h):l(v)}function h(v){return v===40?e.attempt(uN,y,c?y:g)(v):v===91?e.attempt(cN,y,c?m:g)(v):c?y(v):g(v)}function m(v){return e.attempt(fN,y,g)(v)}function y(v){return n(v)}function g(v){return u._balanced=!0,l(v)}}function pN(e,n,l){return r;function r(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return ut(g)?so(e,u)(g):u(g)}function u(g){return g===41?y(g):h1(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return ut(g)?so(e,h)(g):y(g)}function f(g){return l(g)}function h(g){return g===34||g===39||g===40?g1(e,m,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return ut(g)?so(e,y)(g):y(g)}function y(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),n):l(g)}}function gN(e,n,l){const r=this;return o;function o(f){return p1.call(r,e,u,c,"reference","referenceMarker","referenceString")(f)}function u(f){return r.parser.defined.includes(li(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(f):l(f)}function c(f){return l(f)}}function yN(e,n,l){return r;function r(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),o}function o(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),n):l(u)}}const vN={name:"labelStartImage",resolveAll:Lm.resolveAll,tokenize:bN};function bN(e,n,l){const r=this;return o;function o(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),u}function u(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):l(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in r.parser.constructs?l(f):n(f)}}const xN={name:"labelStartLink",resolveAll:Lm.resolveAll,tokenize:SN};function SN(e,n,l){const r=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?l(c):n(c)}}const dd={name:"lineEnding",tokenize:wN};function wN(e,n){return l;function l(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Qe(e,n,"linePrefix")}}const iu={name:"thematicBreak",tokenize:kN};function kN(e,n,l){let r=0,o;return u;function u(m){return e.enter("thematicBreak"),c(m)}function c(m){return o=m,f(m)}function f(m){return m===o?(e.enter("thematicBreakSequence"),h(m)):r>=3&&(m===null||ke(m))?(e.exit("thematicBreak"),n(m)):l(m)}function h(m){return m===o?(e.consume(m),r++,h):(e.exit("thematicBreakSequence"),Fe(m)?Qe(e,f,"whitespace")(m):f(m))}}const gn={continuation:{tokenize:TN},exit:NN,name:"list",tokenize:AN},CN={partial:!0,tokenize:zN},EN={partial:!0,tokenize:_N};function AN(e,n,l){const r=this,o=r.events[r.events.length-1];let u=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return f;function f(b){const w=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:Zd(b)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(iu,l,m)(b):m(b);if(!r.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(b)}return l(b)}function h(b){return Zd(b)&&++c<10?(e.consume(b),h):(!r.interrupt||c<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),m(b)):l(b)}function m(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,e.check(ko,r.interrupt?l:y,e.attempt(CN,v,g))}function y(b){return r.containerState.initialBlankLine=!0,u++,v(b)}function g(b){return Fe(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),v):l(b)}function v(b){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(b)}}function TN(e,n,l){const r=this;return r.containerState._closeFlow=void 0,e.check(ko,o,u);function o(f){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Qe(e,n,"listItemIndent",r.containerState.size+1)(f)}function u(f){return r.containerState.furtherBlankLines||!Fe(f)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,c(f)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(EN,n,c)(f))}function c(f){return r.containerState._closeFlow=!0,r.interrupt=void 0,Qe(e,e.attempt(gn,n,l),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function _N(e,n,l){const r=this;return Qe(e,o,"listItemIndent",r.containerState.size+1);function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===r.containerState.size?n(u):l(u)}}function NN(e){e.exit(this.containerState.type)}function zN(e,n,l){const r=this;return Qe(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(u){const c=r.events[r.events.length-1];return!Fe(u)&&c&&c[1].type==="listItemPrefixWhitespace"?n(u):l(u)}}const J0={name:"setextUnderline",resolveTo:MN,tokenize:ON};function MN(e,n){let l=e.length,r,o,u;for(;l--;)if(e[l][0]==="enter"){if(e[l][1].type==="content"){r=l;break}e[l][1].type==="paragraph"&&(o=l)}else e[l][1].type==="content"&&e.splice(l,1),!u&&e[l][1].type==="definition"&&(u=l);const c={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",u?(e.splice(o,0,["enter",c,n]),e.splice(u+1,0,["exit",e[r][1],n]),e[r][1].end={...e[u][1].end}):e[r][1]=c,e.push(["exit",c,n]),e}function ON(e,n,l){const r=this;let o;return u;function u(m){let y=r.events.length,g;for(;y--;)if(r.events[y][1].type!=="lineEnding"&&r.events[y][1].type!=="linePrefix"&&r.events[y][1].type!=="content"){g=r.events[y][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||g)?(e.enter("setextHeadingLine"),o=m,c(m)):l(m)}function c(m){return e.enter("setextHeadingLineSequence"),f(m)}function f(m){return m===o?(e.consume(m),f):(e.exit("setextHeadingLineSequence"),Fe(m)?Qe(e,h,"lineSuffix")(m):h(m))}function h(m){return m===null||ke(m)?(e.exit("setextHeadingLine"),n(m)):l(m)}}const jN={tokenize:RN};function RN(e){const n=this,l=e.attempt(ko,r,e.attempt(this.parser.constructs.flowInitial,o,Qe(e,e.attempt(this.parser.constructs.flow,o,e.attempt(U_,o)),"linePrefix")));return l;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),n.currentConstruct=void 0,l}function o(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),n.currentConstruct=void 0,l}}const DN={resolveAll:v1()},LN=y1("string"),IN=y1("text");function y1(e){return{resolveAll:v1(e==="text"?BN:void 0),tokenize:n};function n(l){const r=this,o=this.parser.constructs[e],u=l.attempt(o,c,f);return c;function c(y){return m(y)?u(y):f(y)}function f(y){if(y===null){l.consume(y);return}return l.enter("data"),l.consume(y),h}function h(y){return m(y)?(l.exit("data"),u(y)):(l.consume(y),h)}function m(y){if(y===null)return!0;const g=o[y];let v=-1;if(g)for(;++v<g.length;){const b=g[v];if(!b.previous||b.previous.call(r,r.previous))return!0}return!1}}}function v1(e){return n;function n(l,r){let o=-1,u;for(;++o<=l.length;)u===void 0?l[o]&&l[o][1].type==="data"&&(u=o,o++):(!l[o]||l[o][1].type!=="data")&&(o!==u+2&&(l[u][1].end=l[o-1][1].end,l.splice(u+2,o-u-2),o=u+2),u=void 0);return e?e(l,r):l}}function BN(e,n){let l=0;for(;++l<=e.length;)if((l===e.length||e[l][1].type==="lineEnding")&&e[l-1][1].type==="data"){const r=e[l-1][1],o=n.sliceStream(r);let u=o.length,c=-1,f=0,h;for(;u--;){const m=o[u];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(m===-2)h=!0,f++;else if(m!==-1){u++;break}}if(n._contentTypeTextTrailing&&l===e.length&&(f=0),f){const m={type:l===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:r.start._bufferIndex+c,_index:r.start._index+u,line:r.end.line,column:r.end.column-f,offset:r.end.offset-f},end:{...r.end}};r.end={...m.start},r.start.offset===r.end.offset?Object.assign(r,m):(e.splice(l,0,["enter",m,n],["exit",m,n]),l+=2)}l++}return e}const UN={42:gn,43:gn,45:gn,48:gn,49:gn,50:gn,51:gn,52:gn,53:gn,54:gn,55:gn,56:gn,57:gn,62:c1},VN={91:q_},FN={[-2]:fd,[-1]:fd,32:fd},HN={35:Z_,42:iu,45:[J0,iu],60:eN,61:J0,95:iu,96:Z0,126:Z0},PN={38:d1,92:f1},qN={[-5]:dd,[-4]:dd,[-3]:dd,33:vN,38:d1,42:$d,60:[x_,oN],91:xN,92:[X_,f1],93:Lm,95:$d,96:j_},GN={null:[$d,DN]},YN={null:[42,95]},QN={null:[]},XN=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:YN,contentInitial:VN,disable:QN,document:UN,flow:HN,flowInitial:FN,insideSpan:GN,string:PN,text:qN},Symbol.toStringTag,{value:"Module"}));function KN(e,n,l){let r={_bufferIndex:-1,_index:0,line:l&&l.line||1,column:l&&l.column||1,offset:l&&l.offset||0};const o={},u=[];let c=[],f=[];const h={attempt:H(F),check:H(R),consume:j,enter:M,exit:P,interrupt:H(R,{interrupt:!0})},m={code:null,containerState:{},defineSkip:k,events:[],now:w,parser:e,previous:null,sliceSerialize:v,sliceStream:b,write:g};let y=n.tokenize.call(m,h);return n.resolveAll&&u.push(n),m;function g(J){return c=Gn(c,J),T(),c[c.length-1]!==null?[]:(V(n,0),m.events=zu(u,m.events,m),m.events)}function v(J,ae){return $N(b(J),ae)}function b(J){return ZN(c,J)}function w(){const{_bufferIndex:J,_index:ae,line:me,column:oe,offset:le}=r;return{_bufferIndex:J,_index:ae,line:me,column:oe,offset:le}}function k(J){o[J.line]=J.column,I()}function T(){let J;for(;r._index<c.length;){const ae=c[r._index];if(typeof ae=="string")for(J=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===J&&r._bufferIndex<ae.length;)_(ae.charCodeAt(r._bufferIndex));else _(ae)}}function _(J){y=y(J)}function j(J){ke(J)?(r.line++,r.column=1,r.offset+=J===-3?2:1,I()):J!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===c[r._index].length&&(r._bufferIndex=-1,r._index++)),m.previous=J}function M(J,ae){const me=ae||{};return me.type=J,me.start=w(),m.events.push(["enter",me,m]),f.push(me),me}function P(J){const ae=f.pop();return ae.end=w(),m.events.push(["exit",ae,m]),ae}function F(J,ae){V(J,ae.from)}function R(J,ae){ae.restore()}function H(J,ae){return me;function me(oe,le,L){let X,ne,$,C;return Array.isArray(oe)?U(oe):"tokenize"in oe?U([oe]):z(oe);function z(re){return ce;function ce(be){const he=be!==null&&re[be],Ge=be!==null&&re.null,We=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(Ge)?Ge:Ge?[Ge]:[]];return U(We)(be)}}function U(re){return X=re,ne=0,re.length===0?L:N(re[ne])}function N(re){return ce;function ce(be){return C=te(),$=re,re.partial||(m.currentConstruct=re),re.name&&m.parser.constructs.disable.null.includes(re.name)?se():re.tokenize.call(ae?Object.assign(Object.create(m),ae):m,h,W,se)(be)}}function W(re){return J($,C),le}function se(re){return C.restore(),++ne<X.length?N(X[ne]):L}}}function V(J,ae){J.resolveAll&&!u.includes(J)&&u.push(J),J.resolve&&_n(m.events,ae,m.events.length-ae,J.resolve(m.events.slice(ae),m)),J.resolveTo&&(m.events=J.resolveTo(m.events,m))}function te(){const J=w(),ae=m.previous,me=m.currentConstruct,oe=m.events.length,le=Array.from(f);return{from:oe,restore:L};function L(){r=J,m.previous=ae,m.currentConstruct=me,m.events.length=oe,f=le,I()}}function I(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function ZN(e,n){const l=n.start._index,r=n.start._bufferIndex,o=n.end._index,u=n.end._bufferIndex;let c;if(l===o)c=[e[l].slice(r,u)];else{if(c=e.slice(l,o),r>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(r):c.shift()}u>0&&c.push(e[o].slice(0,u))}return c}function $N(e,n){let l=-1;const r=[];let o;for(;++l<e.length;){const u=e[l];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
|
|
324
|
+
`;break}case-3:{c=`\r
|
|
325
|
+
`;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&o)continue;c=" ";break}default:c=String.fromCharCode(u)}o=u===-2,r.push(c)}return r.join("")}function JN(e){const r={constructs:s1([XN,...(e||{}).extensions||[]]),content:o(m_),defined:[],document:o(p_),flow:o(jN),lazy:{},string:o(LN),text:o(IN)};return r;function o(u){return c;function c(f){return KN(r,u,f)}}}function WN(e){for(;!m1(e););return e}const W0=/[\0\t\n\r]/g;function ez(){let e=1,n="",l=!0,r;return o;function o(u,c,f){const h=[];let m,y,g,v,b;for(u=n+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),g=0,n="",l&&(u.charCodeAt(0)===65279&&g++,l=void 0);g<u.length;){if(W0.lastIndex=g,m=W0.exec(u),v=m&&m.index!==void 0?m.index:u.length,b=u.charCodeAt(v),!m){n=u.slice(g);break}if(b===10&&g===v&&r)h.push(-3),r=void 0;else switch(r&&(h.push(-5),r=void 0),g<v&&(h.push(u.slice(g,v)),e+=v-g),b){case 0:{h.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,h.push(-2);e++<y;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:r=!0,e=1}g=v+1}return f&&(r&&h.push(-5),n&&h.push(n),h.push(null)),h}}const tz=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nz(e){return e.replace(tz,iz)}function iz(e,n,l){if(n)return n;if(l.charCodeAt(0)===35){const o=l.charCodeAt(1),u=o===120||o===88;return u1(l.slice(u?2:1),u?16:10)}return Dm(l)||e}const b1={}.hasOwnProperty;function lz(e,n,l){return n&&typeof n=="object"&&(l=n,n=void 0),rz(l)(WN(JN(l).document().write(ez()(e,n,!0))))}function rz(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Kn),autolinkProtocol:te,autolinkEmail:te,atxHeading:u(nn),blockQuote:u(Ge),characterEscape:te,characterReference:te,codeFenced:u(We),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(We,c),codeText:u(ot,c),codeTextData:te,data:te,codeFlowValue:te,definition:u(tn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(St),hardBreakEscape:u(Xn),hardBreakTrailing:u(Xn),htmlFlow:u(pi,c),htmlFlowData:te,htmlText:u(pi,c),htmlTextData:te,image:u(gi),label:c,link:u(Kn),listItem:u(zt),listItemValue:v,listOrdered:u(ai,g),listUnordered:u(ai),paragraph:u(Zn),reference:N,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(nn),strong:u($n),thematicBreak:u(bn)},exit:{atxHeading:h(),atxHeadingSequence:F,autolink:h(),autolinkEmail:he,autolinkProtocol:be,blockQuote:h(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:re,characterReference:ce,codeFenced:h(T),codeFencedFence:k,codeFencedFenceInfo:b,codeFencedFenceMeta:w,codeFlowValue:I,codeIndented:h(_),codeText:h(le),codeTextData:I,data:I,definition:h(),definitionDestinationString:P,definitionLabelString:j,definitionTitleString:M,emphasis:h(),hardBreakEscape:h(ae),hardBreakTrailing:h(ae),htmlFlow:h(me),htmlFlowData:I,htmlText:h(oe),htmlTextData:I,image:h(X),label:$,labelText:ne,lineEnding:J,link:h(L),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:W,resourceDestinationString:C,resourceTitleString:z,resource:U,setextHeading:h(V),setextHeadingLineSequence:H,setextHeadingText:R,strong:h(),thematicBreak:h()}};x1(n,(e||{}).mdastExtensions||[]);const l={};return r;function r(K){let fe={type:"root",children:[]};const we={stack:[fe],tokenStack:[],config:n,enter:f,exit:m,buffer:c,resume:y,data:l},_e=[];let He=-1;for(;++He<K.length;)if(K[He][1].type==="listOrdered"||K[He][1].type==="listUnordered")if(K[He][0]==="enter")_e.push(He);else{const Vt=_e.pop();He=o(K,Vt,He)}for(He=-1;++He<K.length;){const Vt=n[K[He][0]];b1.call(Vt,K[He][1].type)&&Vt[K[He][1].type].call(Object.assign({sliceSerialize:K[He][2].sliceSerialize},we),K[He][1])}if(we.tokenStack.length>0){const Vt=we.tokenStack[we.tokenStack.length-1];(Vt[1]||ev).call(we,void 0,Vt[0])}for(fe.position={start:vl(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:vl(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},He=-1;++He<n.transforms.length;)fe=n.transforms[He](fe)||fe;return fe}function o(K,fe,we){let _e=fe-1,He=-1,Vt=!1,Mt,ft,gt,xt;for(;++_e<=we;){const Be=K[_e];switch(Be[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Be[0]==="enter"?He++:He--,xt=void 0;break}case"lineEndingBlank":{Be[0]==="enter"&&(Mt&&!xt&&!He&&!gt&&(gt=_e),xt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xt=void 0}if(!He&&Be[0]==="enter"&&Be[1].type==="listItemPrefix"||He===-1&&Be[0]==="exit"&&(Be[1].type==="listUnordered"||Be[1].type==="listOrdered")){if(Mt){let Pt=_e;for(ft=void 0;Pt--;){const Zt=K[Pt];if(Zt[1].type==="lineEnding"||Zt[1].type==="lineEndingBlank"){if(Zt[0]==="exit")continue;ft&&(K[ft][1].type="lineEndingBlank",Vt=!0),Zt[1].type="lineEnding",ft=Pt}else if(!(Zt[1].type==="linePrefix"||Zt[1].type==="blockQuotePrefix"||Zt[1].type==="blockQuotePrefixWhitespace"||Zt[1].type==="blockQuoteMarker"||Zt[1].type==="listItemIndent"))break}gt&&(!ft||gt<ft)&&(Mt._spread=!0),Mt.end=Object.assign({},ft?K[ft][1].start:Be[1].end),K.splice(ft||_e,0,["exit",Mt,Be[2]]),_e++,we++}if(Be[1].type==="listItemPrefix"){const Pt={type:"listItem",_spread:!1,start:Object.assign({},Be[1].start),end:void 0};Mt=Pt,K.splice(_e,0,["enter",Pt,Be[2]]),_e++,we++,gt=void 0,xt=!0}}}return K[fe][1]._spread=Vt,we}function u(K,fe){return we;function we(_e){f.call(this,K(_e),_e),fe&&fe.call(this,_e)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(K,fe,we){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([fe,we||void 0]),K.position={start:vl(fe.start),end:void 0}}function h(K){return fe;function fe(we){K&&K.call(this,we),m.call(this,we)}}function m(K,fe){const we=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==K.type&&(fe?fe.call(this,K,_e[0]):(_e[1]||ev).call(this,K,_e[0]));else throw new Error("Cannot close `"+K.type+"` ("+oo({start:K.start,end:K.end})+"): it’s not open");we.position.end=vl(K.end)}function y(){return Rm(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(K){if(this.data.expectingFirstListItemValue){const fe=this.stack[this.stack.length-2];fe.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function b(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.lang=K}function w(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=K}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.value=K.replace(/(\r?\n|\r)$/g,"")}function j(K){const fe=this.resume(),we=this.stack[this.stack.length-1];we.label=fe,we.identifier=li(this.sliceSerialize(K)).toLowerCase()}function M(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.title=K}function P(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.url=K}function F(K){const fe=this.stack[this.stack.length-1];if(!fe.depth){const we=this.sliceSerialize(K).length;fe.depth=we}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function H(K){const fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function te(K){const we=this.stack[this.stack.length-1].children;let _e=we[we.length-1];(!_e||_e.type!=="text")&&(_e=pt(),_e.position={start:vl(K.start),end:void 0},we.push(_e)),this.stack.push(_e)}function I(K){const fe=this.stack.pop();fe.value+=this.sliceSerialize(K),fe.position.end=vl(K.end)}function J(K){const fe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const we=fe.children[fe.children.length-1];we.position.end=vl(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(fe.type)&&(te.call(this,K),I.call(this,K))}function ae(){this.data.atHardBreak=!0}function me(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.value=K}function oe(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.value=K}function le(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.value=K}function L(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=fe,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function X(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=fe,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ne(K){const fe=this.sliceSerialize(K),we=this.stack[this.stack.length-2];we.label=nz(fe),we.identifier=li(fe).toLowerCase()}function $(){const K=this.stack[this.stack.length-1],fe=this.resume(),we=this.stack[this.stack.length-1];if(this.data.inReference=!0,we.type==="link"){const _e=K.children;we.children=_e}else we.alt=fe}function C(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.url=K}function z(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.title=K}function U(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function W(K){const fe=this.resume(),we=this.stack[this.stack.length-1];we.label=fe,we.identifier=li(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function se(K){this.data.characterReferenceType=K.type}function re(K){const fe=this.sliceSerialize(K),we=this.data.characterReferenceType;let _e;we?(_e=u1(fe,we==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=Dm(fe);const He=this.stack[this.stack.length-1];He.value+=_e}function ce(K){const fe=this.stack.pop();fe.position.end=vl(K.end)}function be(K){I.call(this,K);const fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(K)}function he(K){I.call(this,K);const fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(K)}function Ge(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function ot(){return{type:"inlineCode",value:""}}function tn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function St(){return{type:"emphasis",children:[]}}function nn(){return{type:"heading",depth:0,children:[]}}function Xn(){return{type:"break"}}function pi(){return{type:"html",value:""}}function gi(){return{type:"image",title:null,url:"",alt:null}}function Kn(){return{type:"link",title:null,url:"",children:[]}}function ai(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function zt(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Zn(){return{type:"paragraph",children:[]}}function $n(){return{type:"strong",children:[]}}function pt(){return{type:"text",value:""}}function bn(){return{type:"thematicBreak"}}}function vl(e){return{line:e.line,column:e.column,offset:e.offset}}function x1(e,n){let l=-1;for(;++l<n.length;){const r=n[l];Array.isArray(r)?x1(e,r):az(e,r)}}function az(e,n){let l;for(l in n)if(b1.call(n,l))switch(l){case"canContainEols":{const r=n[l];r&&e[l].push(...r);break}case"transforms":{const r=n[l];r&&e[l].push(...r);break}case"enter":case"exit":{const r=n[l];r&&Object.assign(e[l],r);break}}}function ev(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+oo({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+oo({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+oo({start:n.start,end:n.end})+") is still open")}function oz(e){const n=this;n.parser=l;function l(r){return lz(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function sz(e,n){const l={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,l),e.applyData(n,l)}function uz(e,n){const l={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,l),[e.applyData(n,l),{type:"text",value:`
|
|
326
|
+
`}]}function cz(e,n){const l=n.value?n.value+`
|
|
327
|
+
`:"",r={},o=n.lang?n.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let u={type:"element",tagName:"code",properties:r,children:[{type:"text",value:l}]};return n.meta&&(u.data={meta:n.meta}),e.patch(n,u),u=e.applyData(n,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(n,u),u}function fz(e,n){const l={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function dz(e,n){const l={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function mz(e,n){const l=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),o=ra(r.toLowerCase()),u=e.footnoteOrder.indexOf(r);let c,f=e.footnoteCounts.get(r);f===void 0?(f=0,e.footnoteOrder.push(r),c=e.footnoteOrder.length):c=u+1,f+=1,e.footnoteCounts.set(r,f);const h={type:"element",tagName:"a",properties:{href:"#"+l+"fn-"+o,id:l+"fnref-"+o+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,h);const m={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(n,m),e.applyData(n,m)}function hz(e,n){const l={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function pz(e,n){if(e.options.allowDangerousHtml){const l={type:"raw",value:n.value};return e.patch(n,l),e.applyData(n,l)}}function S1(e,n){const l=n.referenceType;let r="]";if(l==="collapsed"?r+="[]":l==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const o=e.all(n),u=o[0];u&&u.type==="text"?u.value="["+u.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=r:o.push({type:"text",value:r}),o}function gz(e,n){const l=String(n.identifier).toUpperCase(),r=e.definitionById.get(l);if(!r)return S1(e,n);const o={src:ra(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const u={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,u),e.applyData(n,u)}function yz(e,n){const l={src:ra(n.url)};n.alt!==null&&n.alt!==void 0&&(l.alt=n.alt),n.title!==null&&n.title!==void 0&&(l.title=n.title);const r={type:"element",tagName:"img",properties:l,children:[]};return e.patch(n,r),e.applyData(n,r)}function vz(e,n){const l={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,l);const r={type:"element",tagName:"code",properties:{},children:[l]};return e.patch(n,r),e.applyData(n,r)}function bz(e,n){const l=String(n.identifier).toUpperCase(),r=e.definitionById.get(l);if(!r)return S1(e,n);const o={href:ra(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const u={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,u),e.applyData(n,u)}function xz(e,n){const l={href:ra(n.url)};n.title!==null&&n.title!==void 0&&(l.title=n.title);const r={type:"element",tagName:"a",properties:l,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Sz(e,n,l){const r=e.all(n),o=l?wz(l):w1(n),u={},c=[];if(typeof n.checked=="boolean"){const y=r[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},r.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<r.length;){const y=r[f];(o||f!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
|
|
328
|
+
`}),y.type==="element"&&y.tagName==="p"&&!o?c.push(...y.children):c.push(y)}const h=r[r.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
|
|
329
|
+
`});const m={type:"element",tagName:"li",properties:u,children:c};return e.patch(n,m),e.applyData(n,m)}function wz(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const l=e.children;let r=-1;for(;!n&&++r<l.length;)n=w1(l[r])}return n}function w1(e){const n=e.spread;return n??e.children.length>1}function kz(e,n){const l={},r=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(l.start=n.start);++o<r.length;){const c=r[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){l.className=["contains-task-list"];break}}const u={type:"element",tagName:n.ordered?"ol":"ul",properties:l,children:e.wrap(r,!0)};return e.patch(n,u),e.applyData(n,u)}function Cz(e,n){const l={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Ez(e,n){const l={type:"root",children:e.wrap(e.all(n))};return e.patch(n,l),e.applyData(n,l)}function Az(e,n){const l={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Tz(e,n){const l=e.all(n),r=l.shift(),o=[];if(r){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],c),o.push(c)}if(l.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(l,!0)},f=zm(n.children[1]),h=t1(n.children[n.children.length-1]);f&&h&&(c.position={start:f,end:h}),o.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,u),e.applyData(n,u)}function _z(e,n,l){const r=l?l.children:void 0,u=(r?r.indexOf(n):1)===0?"th":"td",c=l&&l.type==="table"?l.align:void 0,f=c?c.length:n.children.length;let h=-1;const m=[];for(;++h<f;){const g=n.children[h],v={},b=c?c[h]:void 0;b&&(v.align=b);let w={type:"element",tagName:u,properties:v,children:[]};g&&(w.children=e.all(g),e.patch(g,w),w=e.applyData(g,w)),m.push(w)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(n,y),e.applyData(n,y)}function Nz(e,n){const l={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}const tv=9,nv=32;function zz(e){const n=String(e),l=/\r?\n|\r/g;let r=l.exec(n),o=0;const u=[];for(;r;)u.push(iv(n.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=l.exec(n);return u.push(iv(n.slice(o),o>0,!1)),u.join("")}function iv(e,n,l){let r=0,o=e.length;if(n){let u=e.codePointAt(r);for(;u===tv||u===nv;)r++,u=e.codePointAt(r)}if(l){let u=e.codePointAt(o-1);for(;u===tv||u===nv;)o--,u=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function Mz(e,n){const l={type:"text",value:zz(String(n.value))};return e.patch(n,l),e.applyData(n,l)}function Oz(e,n){const l={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,l),e.applyData(n,l)}const jz={blockquote:sz,break:uz,code:cz,delete:fz,emphasis:dz,footnoteReference:mz,heading:hz,html:pz,imageReference:gz,image:yz,inlineCode:vz,linkReference:bz,link:xz,listItem:Sz,list:kz,paragraph:Cz,root:Ez,strong:Az,table:Tz,tableCell:Nz,tableRow:_z,text:Mz,thematicBreak:Oz,toml:qs,yaml:qs,definition:qs,footnoteDefinition:qs};function qs(){}const k1=-1,Mu=0,uo=1,du=2,Im=3,Bm=4,Um=5,Vm=6,C1=7,E1=8,lv=typeof self=="object"?self:globalThis,Rz=(e,n)=>{const l=(o,u)=>(e.set(u,o),o),r=o=>{if(e.has(o))return e.get(o);const[u,c]=n[o];switch(u){case Mu:case k1:return l(c,o);case uo:{const f=l([],o);for(const h of c)f.push(r(h));return f}case du:{const f=l({},o);for(const[h,m]of c)f[r(h)]=r(m);return f}case Im:return l(new Date(c),o);case Bm:{const{source:f,flags:h}=c;return l(new RegExp(f,h),o)}case Um:{const f=l(new Map,o);for(const[h,m]of c)f.set(r(h),r(m));return f}case Vm:{const f=l(new Set,o);for(const h of c)f.add(r(h));return f}case C1:{const{name:f,message:h}=c;return l(new lv[f](h),o)}case E1:return l(BigInt(c),o);case"BigInt":return l(Object(BigInt(c)),o);case"ArrayBuffer":return l(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return l(new DataView(f),c)}}return l(new lv[u](c),o)};return r},rv=e=>Rz(new Map,e)(0),Fr="",{toString:Dz}={},{keys:Lz}=Object,lo=e=>{const n=typeof e;if(n!=="object"||!e)return[Mu,n];const l=Dz.call(e).slice(8,-1);switch(l){case"Array":return[uo,Fr];case"Object":return[du,Fr];case"Date":return[Im,Fr];case"RegExp":return[Bm,Fr];case"Map":return[Um,Fr];case"Set":return[Vm,Fr];case"DataView":return[uo,l]}return l.includes("Array")?[uo,l]:l.includes("Error")?[C1,l]:[du,l]},Gs=([e,n])=>e===Mu&&(n==="function"||n==="symbol"),Iz=(e,n,l,r)=>{const o=(c,f)=>{const h=r.push(c)-1;return l.set(f,h),h},u=c=>{if(l.has(c))return l.get(c);let[f,h]=lo(c);switch(f){case Mu:{let y=c;switch(h){case"bigint":f=E1,y=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return o([k1],c)}return o([f,y],c)}case uo:{if(h){let v=c;return h==="DataView"?v=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(v=new Uint8Array(c)),o([h,[...v]],c)}const y=[],g=o([f,y],c);for(const v of c)y.push(u(v));return g}case du:{if(h)switch(h){case"BigInt":return o([h,c.toString()],c);case"Boolean":case"Number":case"String":return o([h,c.valueOf()],c)}if(n&&"toJSON"in c)return u(c.toJSON());const y=[],g=o([f,y],c);for(const v of Lz(c))(e||!Gs(lo(c[v])))&&y.push([u(v),u(c[v])]);return g}case Im:return o([f,c.toISOString()],c);case Bm:{const{source:y,flags:g}=c;return o([f,{source:y,flags:g}],c)}case Um:{const y=[],g=o([f,y],c);for(const[v,b]of c)(e||!(Gs(lo(v))||Gs(lo(b))))&&y.push([u(v),u(b)]);return g}case Vm:{const y=[],g=o([f,y],c);for(const v of c)(e||!Gs(lo(v)))&&y.push(u(v));return g}}const{message:m}=c;return o([f,{name:h,message:m}],c)};return u},av=(e,{json:n,lossy:l}={})=>{const r=[];return Iz(!(n||l),!!n,new Map,r)(e),r},mu=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?rv(av(e,n)):structuredClone(e):(e,n)=>rv(av(e,n));function Bz(e,n){const l=[{type:"text",value:"↩"}];return n>1&&l.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),l}function Uz(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Vz(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=e.options.footnoteBackContent||Bz,r=e.options.footnoteBackLabel||Uz,o=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const m=e.footnoteById.get(e.footnoteOrder[h]);if(!m)continue;const y=e.all(m),g=String(m.identifier).toUpperCase(),v=ra(g.toLowerCase());let b=0;const w=[],k=e.footnoteCounts.get(g);for(;k!==void 0&&++b<=k;){w.length>0&&w.push({type:"text",value:" "});let j=typeof l=="string"?l:l(h,b);typeof j=="string"&&(j={type:"text",value:j}),w.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+v+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(h,b),className:["data-footnote-backref"]},children:Array.isArray(j)?j:[j]})}const T=y[y.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const j=T.children[T.children.length-1];j&&j.type==="text"?j.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...w)}else y.push(...w);const _={type:"element",tagName:"li",properties:{id:n+"fn-"+v},children:e.wrap(y,!0)};e.patch(m,_),f.push(_)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...mu(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
330
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
331
|
+
`}]}}const Ou=(function(e){if(e==null)return qz;if(typeof e=="function")return ju(e);if(typeof e=="object")return Array.isArray(e)?Fz(e):Hz(e);if(typeof e=="string")return Pz(e);throw new Error("Expected function, string, or object as test")});function Fz(e){const n=[];let l=-1;for(;++l<e.length;)n[l]=Ou(e[l]);return ju(r);function r(...o){let u=-1;for(;++u<n.length;)if(n[u].apply(this,o))return!0;return!1}}function Hz(e){const n=e;return ju(l);function l(r){const o=r;let u;for(u in e)if(o[u]!==n[u])return!1;return!0}}function Pz(e){return ju(n);function n(l){return l&&l.type===e}}function ju(e){return n;function n(l,r,o){return!!(Gz(l)&&e.call(this,l,typeof r=="number"?r:void 0,o||void 0))}}function qz(){return!0}function Gz(e){return e!==null&&typeof e=="object"&&"type"in e}const A1=[],Yz=!0,Jd=!1,Qz="skip";function T1(e,n,l,r){let o;typeof n=="function"&&typeof l!="function"?(r=l,l=n):o=n;const u=Ou(o),c=r?-1:1;f(e,void 0,[])();function f(h,m,y){const g=h&&typeof h=="object"?h:{};if(typeof g.type=="string"){const b=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(h.type+(b?"<"+b+">":""))+")"})}return v;function v(){let b=A1,w,k,T;if((!n||u(h,m,y[y.length-1]||void 0))&&(b=Xz(l(h,y)),b[0]===Jd))return b;if("children"in h&&h.children){const _=h;if(_.children&&b[0]!==Qz)for(k=(r?_.children.length:-1)+c,T=y.concat(_);k>-1&&k<_.children.length;){const j=_.children[k];if(w=f(j,k,T)(),w[0]===Jd)return w;k=typeof w[1]=="number"?w[1]:k+c}}return b}}}function Xz(e){return Array.isArray(e)?e:typeof e=="number"?[Yz,e]:e==null?A1:[e]}function Fm(e,n,l,r){let o,u,c;typeof n=="function"&&typeof l!="function"?(u=void 0,c=n,o=l):(u=n,c=l,o=r),T1(e,u,f,o);function f(h,m){const y=m[m.length-1],g=y?y.children.indexOf(h):void 0;return c(h,g,y)}}const Wd={}.hasOwnProperty,Kz={};function Zz(e,n){const l=n||Kz,r=new Map,o=new Map,u=new Map,c={...jz,...l.handlers},f={all:m,applyData:Jz,definitionById:r,footnoteById:o,footnoteCounts:u,footnoteOrder:[],handlers:c,one:h,options:l,patch:$z,wrap:eM};return Fm(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?r:o,v=String(y.identifier).toUpperCase();g.has(v)||g.set(v,y)}}),f;function h(y,g){const v=y.type,b=f.handlers[v];if(Wd.call(f.handlers,v)&&b)return b(f,y,g);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in y){const{children:k,...T}=y,_=mu(T);return _.children=f.all(y),_}return mu(y)}return(f.options.unknownHandler||Wz)(f,y,g)}function m(y){const g=[];if("children"in y){const v=y.children;let b=-1;for(;++b<v.length;){const w=f.one(v[b],y);if(w){if(b&&v[b-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=ov(w.value)),!Array.isArray(w)&&w.type==="element")){const k=w.children[0];k&&k.type==="text"&&(k.value=ov(k.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function $z(e,n){e.position&&(n.position=UT(e))}function Jz(e,n){let l=n;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,u=e.data.hProperties;if(typeof r=="string")if(l.type==="element")l.tagName=r;else{const c="children"in l?l.children:[l];l={type:"element",tagName:r,properties:{},children:c}}l.type==="element"&&u&&Object.assign(l.properties,mu(u)),"children"in l&&l.children&&o!==null&&o!==void 0&&(l.children=o)}return l}function Wz(e,n){const l=n.data||{},r="value"in n&&!(Wd.call(l,"hProperties")||Wd.call(l,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function eM(e,n){const l=[];let r=-1;for(n&&l.push({type:"text",value:`
|
|
332
|
+
`});++r<e.length;)r&&l.push({type:"text",value:`
|
|
333
|
+
`}),l.push(e[r]);return n&&e.length>0&&l.push({type:"text",value:`
|
|
334
|
+
`}),l}function ov(e){let n=0,l=e.charCodeAt(n);for(;l===9||l===32;)n++,l=e.charCodeAt(n);return e.slice(n)}function sv(e,n){const l=Zz(e,n),r=l.one(e,void 0),o=Vz(l),u=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&u.children.push({type:"text",value:`
|
|
335
|
+
`},o),u}function tM(e,n){return e&&"run"in e?async function(l,r){const o=sv(l,{file:r,...n});await e.run(o,r)}:function(l,r){return sv(l,{file:r,...e||n})}}function uv(e){if(e)throw e}var md,cv;function nM(){if(cv)return md;cv=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,l=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(m){return typeof Array.isArray=="function"?Array.isArray(m):n.call(m)==="[object Array]"},u=function(m){if(!m||n.call(m)!=="[object Object]")return!1;var y=e.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!g)return!1;var v;for(v in m);return typeof v>"u"||e.call(m,v)},c=function(m,y){l&&y.name==="__proto__"?l(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},f=function(m,y){if(y==="__proto__")if(e.call(m,y)){if(r)return r(m,y).value}else return;return m[y]};return md=function h(){var m,y,g,v,b,w,k=arguments[0],T=1,_=arguments.length,j=!1;for(typeof k=="boolean"&&(j=k,k=arguments[1]||{},T=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});T<_;++T)if(m=arguments[T],m!=null)for(y in m)g=f(k,y),v=f(m,y),k!==v&&(j&&v&&(u(v)||(b=o(v)))?(b?(b=!1,w=g&&o(g)?g:[]):w=g&&u(g)?g:{},c(k,{name:y,newValue:h(j,w,v)})):typeof v<"u"&&c(k,{name:y,newValue:v}));return k},md}var iM=nM();const hd=yu(iM);function em(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function lM(){const e=[],n={run:l,use:r};return n;function l(...o){let u=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...o);function f(h,...m){const y=e[++u];let g=-1;if(h){c(h);return}for(;++g<o.length;)(m[g]===null||m[g]===void 0)&&(m[g]=o[g]);o=m,y?rM(y,f)(...m):c(null,...m)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),n}}function rM(e,n){let l;return r;function r(...c){const f=e.length>c.length;let h;f&&c.push(o);try{h=e.apply(this,c)}catch(m){const y=m;if(f&&l)throw y;return o(y)}f||(h&&h.then&&typeof h.then=="function"?h.then(u,o):h instanceof Error?o(h):u(h))}function o(c,...f){l||(l=!0,n(c,...f))}function u(c){o(null,c)}}const di={basename:aM,dirname:oM,extname:sM,join:uM,sep:"/"};function aM(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Co(e);let l=0,r=-1,o=e.length,u;if(n===void 0||n.length===0||n.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(u){l=o+1;break}}else r<0&&(u=!0,r=o+1);return r<0?"":e.slice(l,r)}if(n===e)return"";let c=-1,f=n.length-1;for(;o--;)if(e.codePointAt(o)===47){if(u){l=o+1;break}}else c<0&&(u=!0,c=o+1),f>-1&&(e.codePointAt(o)===n.codePointAt(f--)?f<0&&(r=o):(f=-1,r=c));return l===r?r=c:r<0&&(r=e.length),e.slice(l,r)}function oM(e){if(Co(e),e.length===0)return".";let n=-1,l=e.length,r;for(;--l;)if(e.codePointAt(l)===47){if(r){n=l;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function sM(e){Co(e);let n=e.length,l=-1,r=0,o=-1,u=0,c;for(;n--;){const f=e.codePointAt(n);if(f===47){if(c){r=n+1;break}continue}l<0&&(c=!0,l=n+1),f===46?o<0?o=n:u!==1&&(u=1):o>-1&&(u=-1)}return o<0||l<0||u===0||u===1&&o===l-1&&o===r+1?"":e.slice(o,l)}function uM(...e){let n=-1,l;for(;++n<e.length;)Co(e[n]),e[n]&&(l=l===void 0?e[n]:l+"/"+e[n]);return l===void 0?".":cM(l)}function cM(e){Co(e);const n=e.codePointAt(0)===47;let l=fM(e,!n);return l.length===0&&!n&&(l="."),l.length>0&&e.codePointAt(e.length-1)===47&&(l+="/"),n?"/"+l:l}function fM(e,n){let l="",r=0,o=-1,u=0,c=-1,f,h;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(o===c-1||u===1))if(o!==c-1&&u===2){if(l.length<2||r!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(h=l.lastIndexOf("/"),h!==l.length-1){h<0?(l="",r=0):(l=l.slice(0,h),r=l.length-1-l.lastIndexOf("/")),o=c,u=0;continue}}else if(l.length>0){l="",r=0,o=c,u=0;continue}}n&&(l=l.length>0?l+"/..":"..",r=2)}else l.length>0?l+="/"+e.slice(o+1,c):l=e.slice(o+1,c),r=c-o-1;o=c,u=0}else f===46&&u>-1?u++:u=-1}return l}function Co(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const dM={cwd:mM};function mM(){return"/"}function tm(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function hM(e){if(typeof e=="string")e=new URL(e);else if(!tm(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return pM(e)}function pM(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let l=-1;for(;++l<n.length;)if(n.codePointAt(l)===37&&n.codePointAt(l+1)===50){const r=n.codePointAt(l+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(n)}const pd=["history","path","basename","stem","extname","dirname"];class _1{constructor(n){let l;n?tm(n)?l={path:n}:typeof n=="string"||gM(n)?l={value:n}:l=n:l={},this.cwd="cwd"in l?"":dM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<pd.length;){const u=pd[r];u in l&&l[u]!==void 0&&l[u]!==null&&(this[u]=u==="history"?[...l[u]]:l[u])}let o;for(o in l)pd.includes(o)||(this[o]=l[o])}get basename(){return typeof this.path=="string"?di.basename(this.path):void 0}set basename(n){yd(n,"basename"),gd(n,"basename"),this.path=di.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?di.dirname(this.path):void 0}set dirname(n){fv(this.basename,"dirname"),this.path=di.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?di.extname(this.path):void 0}set extname(n){if(gd(n,"extname"),fv(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=di.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){tm(n)&&(n=hM(n)),yd(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?di.basename(this.path,this.extname):void 0}set stem(n){yd(n,"stem"),gd(n,"stem"),this.path=di.join(this.dirname||"",n+(this.extname||""))}fail(n,l,r){const o=this.message(n,l,r);throw o.fatal=!0,o}info(n,l,r){const o=this.message(n,l,r);return o.fatal=void 0,o}message(n,l,r){const o=new en(n,l,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function gd(e,n){if(e&&e.includes(di.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+di.sep+"`")}function yd(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function fv(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function gM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const yM=(function(e){const r=this.constructor.prototype,o=r[e],u=function(){return o.apply(u,arguments)};return Object.setPrototypeOf(u,r),u}),vM={}.hasOwnProperty;class Hm extends yM{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=lM()}copy(){const n=new Hm;let l=-1;for(;++l<this.attachers.length;){const r=this.attachers[l];n.use(...r)}return n.data(hd(!0,{},this.namespace)),n}data(n,l){return typeof n=="string"?arguments.length===2?(xd("data",this.frozen),this.namespace[n]=l,this):vM.call(this.namespace,n)&&this.namespace[n]||void 0:n?(xd("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[l,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=l.call(n,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const l=Ys(n),r=this.parser||this.Parser;return vd("parse",r),r(String(l),l)}process(n,l){const r=this;return this.freeze(),vd("process",this.parser||this.Parser),bd("process",this.compiler||this.Compiler),l?o(void 0,l):new Promise(o);function o(u,c){const f=Ys(n),h=r.parse(f);r.run(h,f,function(y,g,v){if(y||!g||!v)return m(y);const b=g,w=r.stringify(b,v);SM(w)?v.value=w:v.result=w,m(y,v)});function m(y,g){y||!g?c(y):u?u(g):l(void 0,g)}}}processSync(n){let l=!1,r;return this.freeze(),vd("processSync",this.parser||this.Parser),bd("processSync",this.compiler||this.Compiler),this.process(n,o),mv("processSync","process",l),r;function o(u,c){l=!0,uv(u),r=c}}run(n,l,r){dv(n),this.freeze();const o=this.transformers;return!r&&typeof l=="function"&&(r=l,l=void 0),r?u(void 0,r):new Promise(u);function u(c,f){const h=Ys(l);o.run(n,h,m);function m(y,g,v){const b=g||n;y?f(y):c?c(b):r(void 0,b,v)}}}runSync(n,l){let r=!1,o;return this.run(n,l,u),mv("runSync","run",r),o;function u(c,f){uv(c),o=f,r=!0}}stringify(n,l){this.freeze();const r=Ys(l),o=this.compiler||this.Compiler;return bd("stringify",o),dv(n),o(n,r)}use(n,...l){const r=this.attachers,o=this.namespace;if(xd("use",this.frozen),n!=null)if(typeof n=="function")h(n,l);else if(typeof n=="object")Array.isArray(n)?f(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function u(m){if(typeof m=="function")h(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...g]=m;h(y,g)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(m.plugins),m.settings&&(o.settings=hd(!0,o.settings,m.settings))}function f(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const g=m[y];u(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function h(m,y){let g=-1,v=-1;for(;++g<r.length;)if(r[g][0]===m){v=g;break}if(v===-1)r.push([m,...y]);else if(y.length>0){let[b,...w]=y;const k=r[v][1];em(k)&&em(b)&&(b=hd(!0,k,b)),r[v]=[m,b,...w]}}}}const bM=new Hm().freeze();function vd(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function bd(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function xd(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dv(e){if(!em(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function mv(e,n,l){if(!l)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ys(e){return xM(e)?e:new _1(e)}function xM(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function SM(e){return typeof e=="string"||wM(e)}function wM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const kM="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",hv=[],pv={allowDangerousHtml:!0},CM=/^(https?|ircs?|mailto|xmpp)$/i,EM=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function aa(e){const n=AM(e),l=TM(e);return _M(n.runSync(n.parse(l),l),e)}function AM(e){const n=e.rehypePlugins||hv,l=e.remarkPlugins||hv,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...pv}:pv;return bM().use(oz).use(l).use(tM,r).use(n)}function TM(e){const n=e.children||"",l=new _1;return typeof n=="string"&&(l.value=n),l}function _M(e,n){const l=n.allowedElements,r=n.allowElement,o=n.components,u=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,h=n.urlTransform||NM;for(const y of EM)Object.hasOwn(n,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+kM+y.id,void 0);return Fm(e,m),qT(e,{Fragment:x.Fragment,components:o,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function m(y,g,v){if(y.type==="raw"&&v&&typeof g=="number")return c?v.children.splice(g,1):v.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let b;for(b in cd)if(Object.hasOwn(cd,b)&&Object.hasOwn(y.properties,b)){const w=y.properties[b],k=cd[b];(k===null||k.includes(y.tagName))&&(y.properties[b]=h(String(w||""),b,y))}}if(y.type==="element"){let b=l?!l.includes(y.tagName):u?u.includes(y.tagName):!1;if(!b&&r&&typeof g=="number"&&(b=!r(y,g,v)),b&&v&&typeof g=="number")return f&&y.children?v.children.splice(g,1,...y.children):v.children.splice(g,1),g}}}function NM(e){const n=e.indexOf(":"),l=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||l!==-1&&n>l||r!==-1&&n>r||CM.test(e.slice(0,n))?e:""}function gv(e,n){const l=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,o=l.indexOf(n);for(;o!==-1;)r++,o=l.indexOf(n,o+n.length);return r}function zM(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function MM(e,n,l){const o=Ou((l||{}).ignore||[]),u=OM(n);let c=-1;for(;++c<u.length;)T1(e,"text",f);function f(m,y){let g=-1,v;for(;++g<y.length;){const b=y[g],w=v?v.children:void 0;if(o(b,w?w.indexOf(b):void 0,v))return;v=b}if(v)return h(m,y)}function h(m,y){const g=y[y.length-1],v=u[c][0],b=u[c][1];let w=0;const T=g.children.indexOf(m);let _=!1,j=[];v.lastIndex=0;let M=v.exec(m.value);for(;M;){const P=M.index,F={index:M.index,input:M.input,stack:[...y,m]};let R=b(...M,F);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?v.lastIndex=P+1:(w!==P&&j.push({type:"text",value:m.value.slice(w,P)}),Array.isArray(R)?j.push(...R):R&&j.push(R),w=P+M[0].length,_=!0),!v.global)break;M=v.exec(m.value)}return _?(w<m.value.length&&j.push({type:"text",value:m.value.slice(w)}),g.children.splice(T,1,...j)):j=[m],T+j.length}}function OM(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const l=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<l.length;){const o=l[r];n.push([jM(o[0]),RM(o[1])])}return n}function jM(e){return typeof e=="string"?new RegExp(zM(e),"g"):e}function RM(e){return typeof e=="function"?e:function(){return e}}const Sd="phrasing",wd=["autolink","link","image","label"];function DM(){return{transforms:[HM],enter:{literalAutolink:IM,literalAutolinkEmail:kd,literalAutolinkHttp:kd,literalAutolinkWww:kd},exit:{literalAutolink:FM,literalAutolinkEmail:VM,literalAutolinkHttp:BM,literalAutolinkWww:UM}}}function LM(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Sd,notInConstruct:wd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Sd,notInConstruct:wd},{character:":",before:"[ps]",after:"\\/",inConstruct:Sd,notInConstruct:wd}]}}function IM(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function kd(e){this.config.enter.autolinkProtocol.call(this,e)}function BM(e){this.config.exit.autolinkProtocol.call(this,e)}function UM(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function VM(e){this.config.exit.autolinkEmail.call(this,e)}function FM(e){this.exit(e)}function HM(e){MM(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,PM],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),qM]],{ignore:["link","linkReference"]})}function PM(e,n,l,r,o){let u="";if(!N1(o)||(/^w/i.test(n)&&(l=n+l,n="",u="http://"),!GM(l)))return!1;const c=YM(l+r);if(!c[0])return!1;const f={type:"link",title:null,url:u+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function qM(e,n,l,r){return!N1(r,!0)||/[-\d_]$/.test(l)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+l,children:[{type:"text",value:n+"@"+l}]}}function GM(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function YM(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let l=n[0],r=l.indexOf(")");const o=gv(e,"(");let u=gv(e,")");for(;r!==-1&&o>u;)e+=l.slice(0,r+1),l=l.slice(r+1),r=l.indexOf(")"),u++;return[e,l]}function N1(e,n){const l=e.input.charCodeAt(e.index-1);return(e.index===0||Zl(l)||Nu(l))&&(!n||l!==47)}z1.peek=tO;function QM(){this.buffer()}function XM(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function KM(){this.buffer()}function ZM(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function $M(e){const n=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=li(this.sliceSerialize(e)).toLowerCase(),l.label=n}function JM(e){this.exit(e)}function WM(e){const n=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=li(this.sliceSerialize(e)).toLowerCase(),l.label=n}function eO(e){this.exit(e)}function tO(){return"["}function z1(e,n,l,r){const o=l.createTracker(r);let u=o.move("[^");const c=l.enter("footnoteReference"),f=l.enter("reference");return u+=o.move(l.safe(l.associationId(e),{after:"]",before:u})),f(),c(),u+=o.move("]"),u}function nO(){return{enter:{gfmFootnoteCallString:QM,gfmFootnoteCall:XM,gfmFootnoteDefinitionLabelString:KM,gfmFootnoteDefinition:ZM},exit:{gfmFootnoteCallString:$M,gfmFootnoteCall:JM,gfmFootnoteDefinitionLabelString:WM,gfmFootnoteDefinition:eO}}}function iO(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:l,footnoteReference:z1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function l(r,o,u,c){const f=u.createTracker(c);let h=f.move("[^");const m=u.enter("footnoteDefinition"),y=u.enter("label");return h+=f.move(u.safe(u.associationId(r),{before:h,after:"]"})),y(),h+=f.move("]:"),r.children&&r.children.length>0&&(f.shift(4),h+=f.move((n?`
|
|
336
|
+
`:" ")+u.indentLines(u.containerFlow(r,f.current()),n?M1:lO))),m(),h}}function lO(e,n,l){return n===0?e:M1(e,n,l)}function M1(e,n,l){return(l?"":" ")+e}const rO=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];O1.peek=cO;function aO(){return{canContainEols:["delete"],enter:{strikethrough:sO},exit:{strikethrough:uO}}}function oO(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:rO}],handlers:{delete:O1}}}function sO(e){this.enter({type:"delete",children:[]},e)}function uO(e){this.exit(e)}function O1(e,n,l,r){const o=l.createTracker(r),u=l.enter("strikethrough");let c=o.move("~~");return c+=l.containerPhrasing(e,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),u(),c}function cO(){return"~"}function fO(e){return e.length}function dO(e,n){const l=n||{},r=(l.align||[]).concat(),o=l.stringLength||fO,u=[],c=[],f=[],h=[];let m=0,y=-1;for(;++y<e.length;){const k=[],T=[];let _=-1;for(e[y].length>m&&(m=e[y].length);++_<e[y].length;){const j=mO(e[y][_]);if(l.alignDelimiters!==!1){const M=o(j);T[_]=M,(h[_]===void 0||M>h[_])&&(h[_]=M)}k.push(j)}c[y]=k,f[y]=T}let g=-1;if(typeof r=="object"&&"length"in r)for(;++g<m;)u[g]=yv(r[g]);else{const k=yv(r);for(;++g<m;)u[g]=k}g=-1;const v=[],b=[];for(;++g<m;){const k=u[g];let T="",_="";k===99?(T=":",_=":"):k===108?T=":":k===114&&(_=":");let j=l.alignDelimiters===!1?1:Math.max(1,h[g]-T.length-_.length);const M=T+"-".repeat(j)+_;l.alignDelimiters!==!1&&(j=T.length+j+_.length,j>h[g]&&(h[g]=j),b[g]=j),v[g]=M}c.splice(1,0,v),f.splice(1,0,b),y=-1;const w=[];for(;++y<c.length;){const k=c[y],T=f[y];g=-1;const _=[];for(;++g<m;){const j=k[g]||"";let M="",P="";if(l.alignDelimiters!==!1){const F=h[g]-(T[g]||0),R=u[g];R===114?M=" ".repeat(F):R===99?F%2?(M=" ".repeat(F/2+.5),P=" ".repeat(F/2-.5)):(M=" ".repeat(F/2),P=M):P=" ".repeat(F)}l.delimiterStart!==!1&&!g&&_.push("|"),l.padding!==!1&&!(l.alignDelimiters===!1&&j==="")&&(l.delimiterStart!==!1||g)&&_.push(" "),l.alignDelimiters!==!1&&_.push(M),_.push(j),l.alignDelimiters!==!1&&_.push(P),l.padding!==!1&&_.push(" "),(l.delimiterEnd!==!1||g!==m-1)&&_.push("|")}w.push(l.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return w.join(`
|
|
337
|
+
`)}function mO(e){return e==null?"":String(e)}function yv(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function hO(e,n,l,r){const o=l.enter("blockquote"),u=l.createTracker(r);u.move("> "),u.shift(2);const c=l.indentLines(l.containerFlow(e,u.current()),pO);return o(),c}function pO(e,n,l){return">"+(l?"":" ")+e}function gO(e,n){return vv(e,n.inConstruct,!0)&&!vv(e,n.notInConstruct,!1)}function vv(e,n,l){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return l;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function bv(e,n,l,r){let o=-1;for(;++o<l.unsafe.length;)if(l.unsafe[o].character===`
|
|
338
|
+
`&&gO(l.stack,l.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
339
|
+
`}function yO(e,n){const l=String(e);let r=l.indexOf(n),o=r,u=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++u>c&&(c=u):u=1,o=r+n.length,r=l.indexOf(n,o);return c}function vO(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function bO(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function xO(e,n,l,r){const o=bO(l),u=e.value||"",c=o==="`"?"GraveAccent":"Tilde";if(vO(e,l)){const g=l.enter("codeIndented"),v=l.indentLines(u,SO);return g(),v}const f=l.createTracker(r),h=o.repeat(Math.max(yO(u,o)+1,3)),m=l.enter("codeFenced");let y=f.move(h);if(e.lang){const g=l.enter(`codeFencedLang${c}`);y+=f.move(l.safe(e.lang,{before:y,after:" ",encode:["`"],...f.current()})),g()}if(e.lang&&e.meta){const g=l.enter(`codeFencedMeta${c}`);y+=f.move(" "),y+=f.move(l.safe(e.meta,{before:y,after:`
|
|
340
|
+
`,encode:["`"],...f.current()})),g()}return y+=f.move(`
|
|
341
|
+
`),u&&(y+=f.move(u+`
|
|
342
|
+
`)),y+=f.move(h),m(),y}function SO(e,n,l){return(l?"":" ")+e}function Pm(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function wO(e,n,l,r){const o=Pm(l),u=o==='"'?"Quote":"Apostrophe",c=l.enter("definition");let f=l.enter("label");const h=l.createTracker(r);let m=h.move("[");return m+=h.move(l.safe(l.associationId(e),{before:m,after:"]",...h.current()})),m+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=l.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(l.safe(e.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(f=l.enter("destinationRaw"),m+=h.move(l.safe(e.url,{before:m,after:e.title?" ":`
|
|
343
|
+
`,...h.current()}))),f(),e.title&&(f=l.enter(`title${u}`),m+=h.move(" "+o),m+=h.move(l.safe(e.title,{before:m,after:o,...h.current()})),m+=h.move(o),f()),c(),m}function kO(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function yo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function hu(e,n,l){const r=ea(e),o=ea(n);return r===void 0?o===void 0?l==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}j1.peek=CO;function j1(e,n,l,r){const o=kO(l),u=l.enter("emphasis"),c=l.createTracker(r),f=c.move(o);let h=c.move(l.containerPhrasing(e,{after:o,before:f,...c.current()}));const m=h.charCodeAt(0),y=hu(r.before.charCodeAt(r.before.length-1),m,o);y.inside&&(h=yo(m)+h.slice(1));const g=h.charCodeAt(h.length-1),v=hu(r.after.charCodeAt(0),g,o);v.inside&&(h=h.slice(0,-1)+yo(g));const b=c.move(o);return u(),l.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},f+h+b}function CO(e,n,l){return l.options.emphasis||"*"}function EO(e,n){let l=!1;return Fm(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return l=!0,Jd}),!!((!e.depth||e.depth<3)&&Rm(e)&&(n.options.setext||l))}function AO(e,n,l,r){const o=Math.max(Math.min(6,e.depth||1),1),u=l.createTracker(r);if(EO(e,l)){const y=l.enter("headingSetext"),g=l.enter("phrasing"),v=l.containerPhrasing(e,{...u.current(),before:`
|
|
344
|
+
`,after:`
|
|
345
|
+
`});return g(),y(),v+`
|
|
346
|
+
`+(o===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
347
|
+
`))+1))}const c="#".repeat(o),f=l.enter("headingAtx"),h=l.enter("phrasing");u.move(c+" ");let m=l.containerPhrasing(e,{before:"# ",after:`
|
|
348
|
+
`,...u.current()});return/^[\t ]/.test(m)&&(m=yo(m.charCodeAt(0))+m.slice(1)),m=m?c+" "+m:c,l.options.closeAtx&&(m+=" "+c),h(),f(),m}R1.peek=TO;function R1(e){return e.value||""}function TO(){return"<"}D1.peek=_O;function D1(e,n,l,r){const o=Pm(l),u=o==='"'?"Quote":"Apostrophe",c=l.enter("image");let f=l.enter("label");const h=l.createTracker(r);let m=h.move("![");return m+=h.move(l.safe(e.alt,{before:m,after:"]",...h.current()})),m+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=l.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(l.safe(e.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(f=l.enter("destinationRaw"),m+=h.move(l.safe(e.url,{before:m,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=l.enter(`title${u}`),m+=h.move(" "+o),m+=h.move(l.safe(e.title,{before:m,after:o,...h.current()})),m+=h.move(o),f()),m+=h.move(")"),c(),m}function _O(){return"!"}L1.peek=NO;function L1(e,n,l,r){const o=e.referenceType,u=l.enter("imageReference");let c=l.enter("label");const f=l.createTracker(r);let h=f.move("![");const m=l.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(m+"]["),c();const y=l.stack;l.stack=[],c=l.enter("reference");const g=l.safe(l.associationId(e),{before:h,after:"]",...f.current()});return c(),l.stack=y,u(),o==="full"||!m||m!==g?h+=f.move(g+"]"):o==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function NO(){return"!"}I1.peek=zO;function I1(e,n,l){let r=e.value||"",o="`",u=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++u<l.unsafe.length;){const c=l.unsafe[u],f=l.compilePattern(c);let h;if(c.atBreak)for(;h=f.exec(r);){let m=h.index;r.charCodeAt(m)===10&&r.charCodeAt(m-1)===13&&m--,r=r.slice(0,m)+" "+r.slice(h.index+1)}}return o+r+o}function zO(){return"`"}function B1(e,n){const l=Rm(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(l===e.url||"mailto:"+l===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}U1.peek=MO;function U1(e,n,l,r){const o=Pm(l),u=o==='"'?"Quote":"Apostrophe",c=l.createTracker(r);let f,h;if(B1(e,l)){const y=l.stack;l.stack=[],f=l.enter("autolink");let g=c.move("<");return g+=c.move(l.containerPhrasing(e,{before:g,after:">",...c.current()})),g+=c.move(">"),f(),l.stack=y,g}f=l.enter("link"),h=l.enter("label");let m=c.move("[");return m+=c.move(l.containerPhrasing(e,{before:m,after:"](",...c.current()})),m+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=l.enter("destinationLiteral"),m+=c.move("<"),m+=c.move(l.safe(e.url,{before:m,after:">",...c.current()})),m+=c.move(">")):(h=l.enter("destinationRaw"),m+=c.move(l.safe(e.url,{before:m,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=l.enter(`title${u}`),m+=c.move(" "+o),m+=c.move(l.safe(e.title,{before:m,after:o,...c.current()})),m+=c.move(o),h()),m+=c.move(")"),f(),m}function MO(e,n,l){return B1(e,l)?"<":"["}V1.peek=OO;function V1(e,n,l,r){const o=e.referenceType,u=l.enter("linkReference");let c=l.enter("label");const f=l.createTracker(r);let h=f.move("[");const m=l.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(m+"]["),c();const y=l.stack;l.stack=[],c=l.enter("reference");const g=l.safe(l.associationId(e),{before:h,after:"]",...f.current()});return c(),l.stack=y,u(),o==="full"||!m||m!==g?h+=f.move(g+"]"):o==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function OO(){return"["}function qm(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function jO(e){const n=qm(e),l=e.options.bulletOther;if(!l)return n==="*"?"-":"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(l===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+l+"`) to be different");return l}function RO(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function F1(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function DO(e,n,l,r){const o=l.enter("list"),u=l.bulletCurrent;let c=e.ordered?RO(l):qm(l);const f=e.ordered?c==="."?")":".":jO(l);let h=n&&l.bulletLastUsed?c===l.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&l.stack[l.stack.length-1]==="list"&&l.stack[l.stack.length-2]==="listItem"&&l.stack[l.stack.length-3]==="list"&&l.stack[l.stack.length-4]==="listItem"&&l.indexStack[l.indexStack.length-1]===0&&l.indexStack[l.indexStack.length-2]===0&&l.indexStack[l.indexStack.length-3]===0&&(h=!0),F1(l)===c&&y){let g=-1;for(;++g<e.children.length;){const v=e.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=f),l.bulletCurrent=c;const m=l.containerFlow(e,r);return l.bulletLastUsed=c,l.bulletCurrent=u,o(),m}function LO(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function IO(e,n,l,r){const o=LO(l);let u=l.bulletCurrent||qm(l);n&&n.type==="list"&&n.ordered&&(u=(typeof n.start=="number"&&n.start>-1?n.start:1)+(l.options.incrementListMarker===!1?0:n.children.indexOf(e))+u);let c=u.length+1;(o==="tab"||o==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=l.createTracker(r);f.move(u+" ".repeat(c-u.length)),f.shift(c);const h=l.enter("listItem"),m=l.indentLines(l.containerFlow(e,f.current()),y);return h(),m;function y(g,v,b){return v?(b?"":" ".repeat(c))+g:(b?u:u+" ".repeat(c-u.length))+g}}function BO(e,n,l,r){const o=l.enter("paragraph"),u=l.enter("phrasing"),c=l.containerPhrasing(e,r);return u(),o(),c}const UO=Ou(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function VO(e,n,l,r){return(e.children.some(function(c){return UO(c)})?l.containerPhrasing:l.containerFlow).call(l,e,r)}function FO(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}H1.peek=HO;function H1(e,n,l,r){const o=FO(l),u=l.enter("strong"),c=l.createTracker(r),f=c.move(o+o);let h=c.move(l.containerPhrasing(e,{after:o,before:f,...c.current()}));const m=h.charCodeAt(0),y=hu(r.before.charCodeAt(r.before.length-1),m,o);y.inside&&(h=yo(m)+h.slice(1));const g=h.charCodeAt(h.length-1),v=hu(r.after.charCodeAt(0),g,o);v.inside&&(h=h.slice(0,-1)+yo(g));const b=c.move(o+o);return u(),l.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},f+h+b}function HO(e,n,l){return l.options.strong||"*"}function PO(e,n,l,r){return l.safe(e.value,r)}function qO(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function GO(e,n,l){const r=(F1(l)+(l.options.ruleSpaces?" ":"")).repeat(qO(l));return l.options.ruleSpaces?r.slice(0,-1):r}const P1={blockquote:hO,break:bv,code:xO,definition:wO,emphasis:j1,hardBreak:bv,heading:AO,html:R1,image:D1,imageReference:L1,inlineCode:I1,link:U1,linkReference:V1,list:DO,listItem:IO,paragraph:BO,root:VO,strong:H1,text:PO,thematicBreak:GO};function YO(){return{enter:{table:QO,tableData:xv,tableHeader:xv,tableRow:KO},exit:{codeText:ZO,table:XO,tableData:Cd,tableHeader:Cd,tableRow:Cd}}}function QO(e){const n=e._align;this.enter({type:"table",align:n.map(function(l){return l==="none"?null:l}),children:[]},e),this.data.inTable=!0}function XO(e){this.exit(e),this.data.inTable=void 0}function KO(e){this.enter({type:"tableRow",children:[]},e)}function Cd(e){this.exit(e)}function xv(e){this.enter({type:"tableCell",children:[]},e)}function ZO(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,$O));const l=this.stack[this.stack.length-1];l.type,l.value=n,this.exit(e)}function $O(e,n){return n==="|"?n:e}function JO(e){const n=e||{},l=n.tableCellPadding,r=n.tablePipeAlign,o=n.stringLength,u=l?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
349
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:h,tableRow:f}};function c(b,w,k,T){return m(y(b,k,T),b.align)}function f(b,w,k,T){const _=g(b,k,T),j=m([_]);return j.slice(0,j.indexOf(`
|
|
350
|
+
`))}function h(b,w,k,T){const _=k.enter("tableCell"),j=k.enter("phrasing"),M=k.containerPhrasing(b,{...T,before:u,after:u});return j(),_(),M}function m(b,w){return dO(b,{align:w,alignDelimiters:r,padding:l,stringLength:o})}function y(b,w,k){const T=b.children;let _=-1;const j=[],M=w.enter("table");for(;++_<T.length;)j[_]=g(T[_],w,k);return M(),j}function g(b,w,k){const T=b.children;let _=-1;const j=[],M=w.enter("tableRow");for(;++_<T.length;)j[_]=h(T[_],b,w,k);return M(),j}function v(b,w,k){let T=P1.inlineCode(b,w,k);return k.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function WO(){return{exit:{taskListCheckValueChecked:Sv,taskListCheckValueUnchecked:Sv,paragraph:t3}}}function e3(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:n3}}}function Sv(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function t3(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const l=this.stack[this.stack.length-1];l.type;const r=l.children[0];if(r&&r.type==="text"){const o=n.children;let u=-1,c;for(;++u<o.length;){const f=o[u];if(f.type==="paragraph"){c=f;break}}c===l&&(r.value=r.value.slice(1),r.value.length===0?l.children.shift():l.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,l.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function n3(e,n,l,r){const o=e.children[0],u=typeof e.checked=="boolean"&&o&&o.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=l.createTracker(r);u&&f.move(c);let h=P1.listItem(e,n,l,{...r,...f.current()});return u&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),h;function m(y){return y+c}}function i3(){return[DM(),nO(),aO(),YO(),WO()]}function l3(e){return{extensions:[LM(),iO(e),oO(),JO(e),e3()]}}const r3={tokenize:f3,partial:!0},q1={tokenize:d3,partial:!0},G1={tokenize:m3,partial:!0},Y1={tokenize:h3,partial:!0},a3={tokenize:p3,partial:!0},Q1={name:"wwwAutolink",tokenize:u3,previous:K1},X1={name:"protocolAutolink",tokenize:c3,previous:Z1},Fi={name:"emailAutolink",tokenize:s3,previous:$1},hi={};function o3(){return{text:hi}}let Yl=48;for(;Yl<123;)hi[Yl]=Fi,Yl++,Yl===58?Yl=65:Yl===91&&(Yl=97);hi[43]=Fi;hi[45]=Fi;hi[46]=Fi;hi[95]=Fi;hi[72]=[Fi,X1];hi[104]=[Fi,X1];hi[87]=[Fi,Q1];hi[119]=[Fi,Q1];function s3(e,n,l){const r=this;let o,u;return c;function c(g){return!nm(g)||!$1.call(r,r.previous)||Gm(r.events)?l(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(g))}function f(g){return nm(g)?(e.consume(g),f):g===64?(e.consume(g),h):l(g)}function h(g){return g===46?e.check(a3,y,m)(g):g===45||g===95||Wt(g)?(u=!0,e.consume(g),h):y(g)}function m(g){return e.consume(g),o=!0,h}function y(g){return u&&o&&sn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(g)):l(g)}}function u3(e,n,l){const r=this;return o;function o(c){return c!==87&&c!==119||!K1.call(r,r.previous)||Gm(r.events)?l(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(r3,e.attempt(q1,e.attempt(G1,u),l),l)(c))}function u(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function c3(e,n,l){const r=this;let o="",u=!1;return c;function c(g){return(g===72||g===104)&&Z1.call(r,r.previous)&&!Gm(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),e.consume(g),f):l(g)}function f(g){if(sn(g)&&o.length<5)return o+=String.fromCodePoint(g),e.consume(g),f;if(g===58){const v=o.toLowerCase();if(v==="http"||v==="https")return e.consume(g),h}return l(g)}function h(g){return g===47?(e.consume(g),u?m:(u=!0,h)):l(g)}function m(g){return g===null||fu(g)||ut(g)||Zl(g)||Nu(g)?l(g):e.attempt(q1,e.attempt(G1,y),l)(g)}function y(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(g)}}function f3(e,n,l){let r=0;return o;function o(c){return(c===87||c===119)&&r<3?(r++,e.consume(c),o):c===46&&r===3?(e.consume(c),u):l(c)}function u(c){return c===null?l(c):n(c)}}function d3(e,n,l){let r,o,u;return c;function c(m){return m===46||m===95?e.check(Y1,h,f)(m):m===null||ut(m)||Zl(m)||m!==45&&Nu(m)?h(m):(u=!0,e.consume(m),c)}function f(m){return m===95?r=!0:(o=r,r=void 0),e.consume(m),c}function h(m){return o||r||!u?l(m):n(m)}}function m3(e,n){let l=0,r=0;return o;function o(c){return c===40?(l++,e.consume(c),o):c===41&&r<l?u(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(Y1,n,u)(c):c===null||ut(c)||Zl(c)?n(c):(e.consume(c),o)}function u(c){return c===41&&r++,e.consume(c),o}}function h3(e,n,l){return r;function r(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),r):f===38?(e.consume(f),u):f===93?(e.consume(f),o):f===60||f===null||ut(f)||Zl(f)?n(f):l(f)}function o(f){return f===null||f===40||f===91||ut(f)||Zl(f)?n(f):r(f)}function u(f){return sn(f)?c(f):l(f)}function c(f){return f===59?(e.consume(f),r):sn(f)?(e.consume(f),c):l(f)}}function p3(e,n,l){return r;function r(u){return e.consume(u),o}function o(u){return Wt(u)?l(u):n(u)}}function K1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ut(e)}function Z1(e){return!sn(e)}function $1(e){return!(e===47||nm(e))}function nm(e){return e===43||e===45||e===46||e===95||Wt(e)}function Gm(e){let n=e.length,l=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){l=!0;break}if(r._gfmAutolinkLiteralWalkedInto){l=!1;break}}return e.length>0&&!l&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),l}const g3={tokenize:C3,partial:!0};function y3(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:S3,continuation:{tokenize:w3},exit:k3}},text:{91:{name:"gfmFootnoteCall",tokenize:x3},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:v3,resolveTo:b3}}}}function v3(e,n,l){const r=this;let o=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let c;for(;o--;){const h=r.events[o][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!c||!c._balanced)return l(h);const m=li(r.sliceSerialize({start:c.end,end:r.now()}));return m.codePointAt(0)!==94||!u.includes(m.slice(1))?l(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),n(h))}}function b3(e,n){let l=e.length;for(;l--;)if(e[l][1].type==="labelImage"&&e[l][0]==="enter"){e[l][1];break}e[l+1][1].type="data",e[l+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[l+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[l+3][1].end),end:Object.assign({},e[l+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[l+1],e[l+2],["enter",r,n],e[l+3],e[l+4],["enter",o,n],["exit",o,n],["enter",u,n],["enter",c,n],["exit",c,n],["exit",u,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(l,e.length-l+1,...f),e}function x3(e,n,l){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,c;return f;function f(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),h}function h(g){return g!==94?l(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",m)}function m(g){if(u>999||g===93&&!c||g===null||g===91||ut(g))return l(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return o.includes(li(r.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):l(g)}return ut(g)||(c=!0),u++,e.consume(g),g===92?y:m}function y(g){return g===91||g===92||g===93?(e.consume(g),u++,m):m(g)}}function S3(e,n,l){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,c=0,f;return h;function h(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):l(w)}function y(w){if(c>999||w===93&&!f||w===null||w===91||ut(w))return l(w);if(w===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return u=li(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return ut(w)||(f=!0),c++,e.consume(w),w===92?g:y}function g(w){return w===91||w===92||w===93?(e.consume(w),c++,y):y(w)}function v(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),o.includes(u)||o.push(u),Qe(e,b,"gfmFootnoteDefinitionWhitespace")):l(w)}function b(w){return n(w)}}function w3(e,n,l){return e.check(ko,n,e.attempt(g3,n,l))}function k3(e){e.exit("gfmFootnoteDefinition")}function C3(e,n,l){const r=this;return Qe(e,o,"gfmFootnoteDefinitionIndent",5);function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(u):l(u)}}function E3(e){let l=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:u,resolveAll:o};return l==null&&(l=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(c,f){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let m=h;for(;m--;)if(c[m][0]==="exit"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[m][1].end.offset-c[m][1].start.offset){c[h][1].type="strikethroughSequence",c[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[m][1].start),end:Object.assign({},c[h][1].end)},g={type:"strikethroughText",start:Object.assign({},c[m][1].end),end:Object.assign({},c[h][1].start)},v=[["enter",y,f],["enter",c[m][1],f],["exit",c[m][1],f],["enter",g,f]],b=f.parser.constructs.insideSpan.null;b&&_n(v,v.length,0,zu(b,c.slice(m+1,h),f)),_n(v,v.length,0,[["exit",g,f],["enter",c[h][1],f],["exit",c[h][1],f],["exit",y,f]]),_n(c,m-1,h-m+3,v),h=m+v.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function u(c,f,h){const m=this.previous,y=this.events;let g=0;return v;function v(w){return m===126&&y[y.length-1][1].type!=="characterEscape"?h(w):(c.enter("strikethroughSequenceTemporary"),b(w))}function b(w){const k=ea(m);if(w===126)return g>1?h(w):(c.consume(w),g++,b);if(g<2&&!l)return h(w);const T=c.exit("strikethroughSequenceTemporary"),_=ea(w);return T._open=!_||_===2&&!!k,T._close=!k||k===2&&!!_,f(w)}}}class A3{constructor(){this.map=[]}add(n,l,r){T3(this,n,l,r)}consume(n){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let l=this.map.length;const r=[];for(;l>0;)l-=1,r.push(n.slice(this.map[l][0]+this.map[l][1]),this.map[l][2]),n.length=this.map[l][0];r.push(n.slice()),n.length=0;let o=r.pop();for(;o;){for(const u of o)n.push(u);o=r.pop()}this.map.length=0}}function T3(e,n,l,r){let o=0;if(!(l===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===n){e.map[o][1]+=l,e.map[o][2].push(...r);return}o+=1}e.map.push([n,l,r])}}function _3(e,n){let l=!1;const r=[];for(;n<e.length;){const o=e[n];if(l){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const u=r.length-1;r[u]=r[u]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(l=!0);n+=1}return r}function N3(){return{flow:{null:{name:"table",tokenize:z3,resolveAll:M3}}}}function z3(e,n,l){const r=this;let o=0,u=0,c;return f;function f(I){let J=r.events.length-1;for(;J>-1;){const oe=r.events[J][1].type;if(oe==="lineEnding"||oe==="linePrefix")J--;else break}const ae=J>-1?r.events[J][1].type:null,me=ae==="tableHead"||ae==="tableRow"?R:h;return me===R&&r.parser.lazy[r.now().line]?l(I):me(I)}function h(I){return e.enter("tableHead"),e.enter("tableRow"),m(I)}function m(I){return I===124||(c=!0,u+=1),y(I)}function y(I){return I===null?l(I):ke(I)?u>1?(u=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),b):l(I):Fe(I)?Qe(e,y,"whitespace")(I):(u+=1,c&&(c=!1,o+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),c=!0,y):(e.enter("data"),g(I)))}function g(I){return I===null||I===124||ut(I)?(e.exit("data"),y(I)):(e.consume(I),I===92?v:g)}function v(I){return I===92||I===124?(e.consume(I),g):g(I)}function b(I){return r.interrupt=!1,r.parser.lazy[r.now().line]?l(I):(e.enter("tableDelimiterRow"),c=!1,Fe(I)?Qe(e,w,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):w(I))}function w(I){return I===45||I===58?T(I):I===124?(c=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),k):F(I)}function k(I){return Fe(I)?Qe(e,T,"whitespace")(I):T(I)}function T(I){return I===58?(u+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),_):I===45?(u+=1,_(I)):I===null||ke(I)?P(I):F(I)}function _(I){return I===45?(e.enter("tableDelimiterFiller"),j(I)):F(I)}function j(I){return I===45?(e.consume(I),j):I===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),M):(e.exit("tableDelimiterFiller"),M(I))}function M(I){return Fe(I)?Qe(e,P,"whitespace")(I):P(I)}function P(I){return I===124?w(I):I===null||ke(I)?!c||o!==u?F(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(I)):F(I)}function F(I){return l(I)}function R(I){return e.enter("tableRow"),H(I)}function H(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),H):I===null||ke(I)?(e.exit("tableRow"),n(I)):Fe(I)?Qe(e,H,"whitespace")(I):(e.enter("data"),V(I))}function V(I){return I===null||I===124||ut(I)?(e.exit("data"),H(I)):(e.consume(I),I===92?te:V)}function te(I){return I===92||I===124?(e.consume(I),V):V(I)}}function M3(e,n){let l=-1,r=!0,o=0,u=[0,0,0,0],c=[0,0,0,0],f=!1,h=0,m,y,g;const v=new A3;for(;++l<e.length;){const b=e[l],w=b[1];b[0]==="enter"?w.type==="tableHead"?(f=!1,h!==0&&(wv(v,n,h,m,y),y=void 0,h=0),m={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(l,0,[["enter",m,n]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(r=!0,g=void 0,u=[0,0,0,0],c=[0,l+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(l,0,[["enter",y,n]])),o=w.type==="tableDelimiterRow"?2:y?3:1):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(r=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],g=Qs(v,n,u,o,void 0,g),u=[0,0,0,0]),c[2]=l)):w.type==="tableCellDivider"&&(r?r=!1:(u[1]!==0&&(c[0]=c[1],g=Qs(v,n,u,o,void 0,g)),u=c,c=[u[1],l,0,0])):w.type==="tableHead"?(f=!0,h=l):w.type==="tableRow"||w.type==="tableDelimiterRow"?(h=l,u[1]!==0?(c[0]=c[1],g=Qs(v,n,u,o,l,g)):c[1]!==0&&(g=Qs(v,n,c,o,l,g)),o=0):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(c[3]=l)}for(h!==0&&wv(v,n,h,m,y),v.consume(n.events),l=-1;++l<n.events.length;){const b=n.events[l];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=_3(n.events,l))}return e}function Qs(e,n,l,r,o,u){const c=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",f="tableContent";l[0]!==0&&(u.end=Object.assign({},Gr(n.events,l[0])),e.add(l[0],0,[["exit",u,n]]));const h=Gr(n.events,l[1]);if(u={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(l[1],0,[["enter",u,n]]),l[2]!==0){const m=Gr(n.events,l[2]),y=Gr(n.events,l[3]),g={type:f,start:Object.assign({},m),end:Object.assign({},y)};if(e.add(l[2],0,[["enter",g,n]]),r!==2){const v=n.events[l[2]],b=n.events[l[3]];if(v[1].end=Object.assign({},b[1].end),v[1].type="chunkText",v[1].contentType="text",l[3]>l[2]+1){const w=l[2]+1,k=l[3]-l[2]-1;e.add(w,k,[])}}e.add(l[3]+1,0,[["exit",g,n]])}return o!==void 0&&(u.end=Object.assign({},Gr(n.events,o)),e.add(o,0,[["exit",u,n]]),u=void 0),u}function wv(e,n,l,r,o){const u=[],c=Gr(n.events,l);o&&(o.end=Object.assign({},c),u.push(["exit",o,n])),r.end=Object.assign({},c),u.push(["exit",r,n]),e.add(l+1,0,u)}function Gr(e,n){const l=e[n],r=l[0]==="enter"?"start":"end";return l[1][r]}const O3={name:"tasklistCheck",tokenize:R3};function j3(){return{text:{91:O3}}}function R3(e,n,l){const r=this;return o;function o(h){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?l(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),u)}function u(h){return ut(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):l(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):l(h)}function f(h){return ke(h)?n(h):Fe(h)?e.check({tokenize:D3},n,l)(h):l(h)}}function D3(e,n,l){return Qe(e,r,"whitespace");function r(o){return o===null?l(o):n(o)}}function L3(e){return s1([o3(),y3(),E3(e),N3(),j3()])}const I3={};function oa(e){const n=this,l=e||I3,r=n.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),c=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(L3(l)),u.push(i3()),c.push(l3(l))}function B3({message:e,onRemove:n,onSendNow:l}){return x.jsx("div",{className:"flex justify-end py-2",children:x.jsxs("div",{className:"flex max-w-[85%] sm:max-w-[80%] flex-col items-end gap-1.5",children:[e.attachments.length>0?x.jsx("div",{className:"flex flex-wrap justify-end gap-2",children:e.attachments.map(r=>x.jsxs("div",{className:"max-w-[220px] rounded-xl border border-dashed border-border bg-transparent px-3 py-2 text-left",children:[x.jsx("div",{className:"truncate text-[13px] font-medium text-foreground",children:r.displayName}),x.jsx("div",{className:"truncate text-[11px] text-muted-foreground",children:r.mimeType})]},r.id))}):null,e.content?x.jsxs("div",{className:"relative group",children:[x.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-end gap-2.5 rounded-[20px] border border-dashed border-border bg-transparent pl-3.5 pr-1.5 py-1.5 prose prose-sm prose-invert text-left text-primary [&_p]:whitespace-pre-line",children:[x.jsx("div",{children:x.jsx(aa,{remarkPlugins:[oa],components:ia(),children:e.content})}),x.jsx(an,{type:"button",variant:"default",size:"none",className:"rounded-full size-[24px] bg-muted text-muted-foreground border border-primary/10 group-hover:!text-primary hover:bg-muted/60",onClick:l,children:x.jsx(xk,{className:"size-3.5"})})]}),x.jsx(an,{type:"button",variant:"none",size:"none",className:"opacity-0 scale-[0.1] group-hover:scale-[1.0] group-hover:opacity-100 !p-0.5 border rounded-full text-xs font-medium text-muted-foreground hover:text-foreground gap-0.5 absolute top-0 left-0 bg-background -translate-x-[28%] -translate-y-[28%]",onClick:n,children:x.jsx(na,{className:"size-3"})})]}):null]})})}const U3={connecting:"Connecting...",acquiring_sandbox:"Booting...",initializing:"Initializing...",starting:"Starting...",running:"Running...",waiting_for_user:"Waiting...",failed:"Failed"};function V3({status:e}){const n=(e?U3[e]:void 0)||"Processing...",l=e==="failed";return x.jsx(Vi,{className:"ml-[1px]",children:x.jsxs(Yb,{children:[l?x.jsx(na,{className:"size-4.5 text-red-500"}):x.jsx(sm,{className:"size-4.5 animate-spin text-muted-icon"}),x.jsx(So,{className:"ml-[1px] text-sm",shimmerWidth:44,children:n})]})})}const F3=1024*1024,H3=256*1024,kv=200,im=20,J1=new Set([".c",".cc",".cfg",".conf",".cpp",".cs",".css",".env",".go",".graphql",".h",".hpp",".html",".ini",".java",".js",".jsonc",".jsx",".kt",".lua",".mjs",".php",".pl",".properties",".py",".rb",".rs",".scss",".sh",".sql",".swift",".toml",".ts",".tsx",".txt",".vue",".xml",".yaml",".yml",".zsh"]),P3=new Set([".7z",".bz2",".gz",".rar",".tar",".tgz",".xz",".zip"]),q3=new Set([".aac",".flac",".m4a",".mp3",".ogg",".wav"]),G3=new Set([".avi",".m4v",".mov",".mp4",".mkv",".webm"]);function W1(e){const n=e.mimeType.toLowerCase(),l=ex(e.displayName);return n.startsWith("image/")?{kind:"image",openInNewTab:!1}:n==="application/pdf"?{kind:"pdf",openInNewTab:!1}:n==="application/json"?e.size<=H3?{kind:"json",openInNewTab:!1}:{kind:"external",openInNewTab:!0}:l===".md"?{kind:"markdown",openInNewTab:!1}:n==="text/csv"||n==="text/tab-separated-values"?{kind:"table",openInNewTab:!1}:n.startsWith("text/")?{kind:"text",openInNewTab:!1}:J1.has(l)?{kind:"text",openInNewTab:!1}:{kind:"external",openInNewTab:!0}}function Y3(e){const n=e.mimeType.toLowerCase(),l=ex(e.displayName);return n.startsWith("image/")?"image":n==="application/pdf"||l===".pdf"?"pdf":n==="application/json"||l===".json"||l===".jsonc"?"json":l===".md"?"markdown":n==="text/csv"||n==="text/tab-separated-values"||l===".csv"||l===".tsv"?"table":n.startsWith("audio/")||q3.has(l)?"audio":n.startsWith("video/")||G3.has(l)?"video":n.includes("zip")||n.includes("archive")||P3.has(l)?"archive":J1.has(l)?l===".txt"?"text":"code":n.startsWith("text/")?"text":"file"}async function Q3(e,n){const l=typeof AbortController<"u"?new AbortController:null,r=typeof window<"u"&&l?window.setTimeout(()=>l.abort("preview-timeout"),15e3):null;try{const o=await fetch(Z3(e),{signal:l==null?void 0:l.signal,headers:{Accept:"text/plain, text/markdown, application/json, text/csv, text/tab-separated-values, */*"}});if(!o.ok)throw new Error(`Preview request failed with status ${o.status}`);if(!o.body){const g=await o.text(),v=new TextEncoder().encode(g),b=v.length>n;return{content:b?new TextDecoder().decode(v.slice(0,n)):g,truncated:b}}const u=o.body.getReader(),c=[];let f=0,h=!1;for(;;){const{done:g,value:v}=await u.read();if(g)break;if(!v)continue;const b=n-f;if(b<=0){h=!0,await u.cancel();break}if(v.byteLength>b){c.push(v.slice(0,b)),f+=b,h=!0,await u.cancel();break}c.push(v),f+=v.byteLength}const m=new Uint8Array(f);let y=0;for(const g of c)m.set(g,y),y+=g.byteLength;return{content:new TextDecoder().decode(m),truncated:h}}catch(o){throw $3(o)?new Error("Preview request timed out"):o}finally{r!==null&&window.clearTimeout(r)}}function X3(e){try{return`${JSON.stringify(JSON.parse(e),null,2)}
|
|
351
|
+
`}catch{return e}}function K3(e,n){const l=J3(e,n),r=l.length,o=l.reduce((f,h)=>Math.max(f,h.length),0),u=r>kv,c=o>im;return{rows:l.slice(0,kv).map(f=>f.slice(0,im)),rowCount:r,columnCount:o,truncatedRows:u,truncatedColumns:c}}function ex(e){const n=e.lastIndexOf(".");return n>=0?e.slice(n).toLowerCase():""}function Z3(e){return typeof window>"u"?e:new URL(e,document.baseURI||window.location.href).toString()}function $3(e){return e instanceof DOMException&&e.name==="AbortError"?!0:typeof e=="string"&&e==="preview-timeout"}function J3(e,n){const l=[];let r=[],o="",u=!1;for(let c=0;c<e.length;c+=1){const f=e[c],h=e[c+1];if(f==='"'){u&&h==='"'?(o+='"',c+=1):u=!u;continue}if(!u&&f===n){r.push(o),o="";continue}if(!u&&(f===`
|
|
352
|
+
`||f==="\r")){f==="\r"&&h===`
|
|
353
|
+
`&&(c+=1),r.push(o),l.push(r),r=[],o="";continue}o+=f}return(o.length>0||r.length>0)&&(r.push(o),l.push(r)),l}function W3({attachment:e,previewUrl:n,onClick:l,onRemove:r,className:o,size:u="transcript"}){const c=e.contentUrl||n,f=u==="composer";return x.jsxs("div",{className:Me("group relative flex flex-row items-end",o),children:[x.jsxs("button",{type:"button",onClick:l,className:Me("group/image relative overflow-hidden rounded-xl border border-border/80 bg-background/85 shadow-sm backdrop-blur-md",f?"min-w-[80px]":"min-w-[200px]"),children:[c?x.jsx("img",{src:c,alt:e.displayName,className:Me("rounded-xl object-contain bg-muted",f?"min-h-[50px] min-w-[80px] max-h-[120px] max-w-[200px]":"min-h-[100px] min-w-[200px] max-h-[300px] max-w-[300px]")}):x.jsx("div",{className:Me("flex items-center justify-center rounded-xl bg-muted text-muted-foreground",f?"min-h-[64px] min-w-[80px]":"min-h-[160px] min-w-[200px]"),children:x.jsx(Xv,{className:Me(f?"size-6":"size-8")})}),x.jsxs("div",{className:Me("pointer-events-none absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/75 via-black/30 to-transparent text-left opacity-0 transition-opacity duration-200 group-hover/image:opacity-100",f?"px-2.5 pb-2 pt-6":"px-4 pb-3 pt-10"),children:[x.jsx("div",{className:Me("truncate font-medium text-white",f?"text-xs":"text-sm"),children:e.displayName}),x.jsxs("div",{className:"truncate text-xs text-white/80",children:[e.mimeType," · ",Ym(e.size)]})]})]}),r?x.jsx(tx,{displayName:e.displayName,onRemove:r}):null]})}function e4({attachment:e,onClick:n,onRemove:l,className:r}){const o=t4(Y3(e));return x.jsxs("div",{className:Me("group relative",r),children:[x.jsxs("button",{type:"button",onClick:n,className:"flex w-[200px] items-center gap-2 rounded-xl border border-border bg-background/85 p-1 pr-3 text-left transition-colors hover:bg-accent/50",children:[x.jsx("div",{className:"flex min-h-10 min-w-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground",children:x.jsx(o,{className:"size-5"})}),x.jsxs("div",{className:"min-w-0",children:[x.jsx("div",{className:"max-w-[150px] truncate text-[13px] font-medium text-foreground",children:e.displayName}),x.jsxs("div",{className:"truncate text-[11px] text-muted-foreground",children:[e.mimeType," · ",Ym(e.size)]})]})]}),l?x.jsx(tx,{displayName:e.displayName,onRemove:l}):null]})}function tx({displayName:e,onRemove:n}){return x.jsx("button",{type:"button",className:"absolute right-2 top-2 rounded-full bg-background/90 p-1 text-muted-foreground shadow-sm transition hover:bg-muted hover:text-foreground",onClick:l=>{l.preventDefault(),l.stopPropagation(),n()},"aria-label":`Remove ${e}`,children:x.jsx(na,{className:"h-3.5 w-3.5"})})}function t4(e){switch(e){case"image":return Xv;case"pdf":return CC;case"markdown":return AC;case"json":return Qk;case"table":return lC;case"code":return Kk;case"text":return aC;case"archive":return Gk;case"audio":return $k;case"video":return sC;default:return Kv}}function Ym(e){return e<1024?`${e} B`:e<1024*1024?`${Math.max(1,Math.round(e/1024))} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function xl(e,n,{checkForDefaultPrevented:l=!0}={}){return function(o){if(e==null||e(o),l===!1||!o.defaultPrevented)return n==null?void 0:n(o)}}function Cv(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function nx(...e){return n=>{let l=!1;const r=e.map(o=>{const u=Cv(o,n);return!l&&typeof u=="function"&&(l=!0),u});if(l)return()=>{for(let o=0;o<r.length;o++){const u=r[o];typeof u=="function"?u():Cv(e[o],null)}}}}function ir(...e){return E.useCallback(nx(...e),e)}function n4(e,n){const l=E.createContext(n),r=u=>{const{children:c,...f}=u,h=E.useMemo(()=>f,Object.values(f));return x.jsx(l.Provider,{value:h,children:c})};r.displayName=e+"Provider";function o(u){const c=E.useContext(l);if(c)return c;if(n!==void 0)return n;throw new Error(`\`${u}\` must be used within \`${e}\``)}return[r,o]}function i4(e,n=[]){let l=[];function r(u,c){const f=E.createContext(c),h=l.length;l=[...l,c];const m=g=>{var _;const{scope:v,children:b,...w}=g,k=((_=v==null?void 0:v[e])==null?void 0:_[h])||f,T=E.useMemo(()=>w,Object.values(w));return x.jsx(k.Provider,{value:T,children:b})};m.displayName=u+"Provider";function y(g,v){var k;const b=((k=v==null?void 0:v[e])==null?void 0:k[h])||f,w=E.useContext(b);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${g}\` must be used within \`${u}\``)}return[m,y]}const o=()=>{const u=l.map(c=>E.createContext(c));return function(f){const h=(f==null?void 0:f[e])||u;return E.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])}};return o.scopeName=e,[r,l4(o,...n)]}function l4(...e){const n=e[0];if(e.length===1)return n;const l=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(u){const c=r.reduce((f,{useScope:h,scopeName:m})=>{const g=h(u)[`__scope${m}`];return{...f,...g}},{});return E.useMemo(()=>({[`__scope${n.scopeName}`]:c}),[c])}};return l.scopeName=n.scopeName,l}var vo=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},r4=Gv[" useId ".trim().toString()]||(()=>{}),a4=0;function Ed(e){const[n,l]=E.useState(r4());return vo(()=>{l(r=>r??String(a4++))},[e]),e||(n?`radix-${n}`:"")}var o4=Gv[" useInsertionEffect ".trim().toString()]||vo;function s4({prop:e,defaultProp:n,onChange:l=()=>{},caller:r}){const[o,u,c]=u4({defaultProp:n,onChange:l}),f=e!==void 0,h=f?e:o;{const y=E.useRef(e!==void 0);E.useEffect(()=>{const g=y.current;g!==f&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=f},[f,r])}const m=E.useCallback(y=>{var g;if(f){const v=c4(y)?y(e):y;v!==e&&((g=c.current)==null||g.call(c,v))}else u(y)},[f,e,u,c]);return[h,m]}function u4({defaultProp:e,onChange:n}){const[l,r]=E.useState(e),o=E.useRef(l),u=E.useRef(n);return o4(()=>{u.current=n},[n]),E.useEffect(()=>{var c;o.current!==l&&((c=u.current)==null||c.call(u,l),o.current=l)},[l,o]),[l,r,u]}function c4(e){return typeof e=="function"}function ix(e){const n=f4(e),l=E.forwardRef((r,o)=>{const{children:u,...c}=r,f=E.Children.toArray(u),h=f.find(m4);if(h){const m=h.props.children,y=f.map(g=>g===h?E.Children.count(m)>1?E.Children.only(null):E.isValidElement(m)?m.props.children:null:g);return x.jsx(n,{...c,ref:o,children:E.isValidElement(m)?E.cloneElement(m,void 0,y):null})}return x.jsx(n,{...c,ref:o,children:u})});return l.displayName=`${e}.Slot`,l}function f4(e){const n=E.forwardRef((l,r)=>{const{children:o,...u}=l;if(E.isValidElement(o)){const c=p4(o),f=h4(u,o.props);return o.type!==E.Fragment&&(f.ref=r?nx(r,c):c),E.cloneElement(o,f)}return E.Children.count(o)>1?E.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var d4=Symbol("radix.slottable");function m4(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===d4}function h4(e,n){const l={...n};for(const r in n){const o=e[r],u=n[r];/^on[A-Z]/.test(r)?o&&u?l[r]=(...f)=>{const h=u(...f);return o(...f),h}:o&&(l[r]=o):r==="style"?l[r]={...o,...u}:r==="className"&&(l[r]=[o,u].filter(Boolean).join(" "))}return{...e,...l}}function p4(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,l=n&&"isReactWarning"in n&&n.isReactWarning;return l?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,l=n&&"isReactWarning"in n&&n.isReactWarning,l?e.props.ref:e.props.ref||e.ref)}var g4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hi=g4.reduce((e,n)=>{const l=ix(`Primitive.${n}`),r=E.forwardRef((o,u)=>{const{asChild:c,...f}=o,h=c?l:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(h,{...f,ref:u})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function y4(e,n){e&&bu.flushSync(()=>e.dispatchEvent(n))}function bo(e){const n=E.useRef(e);return E.useEffect(()=>{n.current=e}),E.useMemo(()=>(...l)=>{var r;return(r=n.current)==null?void 0:r.call(n,...l)},[])}function v4(e,n=globalThis==null?void 0:globalThis.document){const l=bo(e);E.useEffect(()=>{const r=o=>{o.key==="Escape"&&l(o)};return n.addEventListener("keydown",r,{capture:!0}),()=>n.removeEventListener("keydown",r,{capture:!0})},[l,n])}var b4="DismissableLayer",lm="dismissableLayer.update",x4="dismissableLayer.pointerDownOutside",S4="dismissableLayer.focusOutside",Ev,lx=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rx=E.forwardRef((e,n)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:c,onDismiss:f,...h}=e,m=E.useContext(lx),[y,g]=E.useState(null),v=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=E.useState({}),w=ir(n,H=>g(H)),k=Array.from(m.layers),[T]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),_=k.indexOf(T),j=y?k.indexOf(y):-1,M=m.layersWithOutsidePointerEventsDisabled.size>0,P=j>=_,F=C4(H=>{const V=H.target,te=[...m.branches].some(I=>I.contains(V));!P||te||(o==null||o(H),c==null||c(H),H.defaultPrevented||f==null||f())},v),R=E4(H=>{const V=H.target;[...m.branches].some(I=>I.contains(V))||(u==null||u(H),c==null||c(H),H.defaultPrevented||f==null||f())},v);return v4(H=>{j===m.layers.size-1&&(r==null||r(H),!H.defaultPrevented&&f&&(H.preventDefault(),f()))},v),E.useEffect(()=>{if(y)return l&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Ev=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(y)),m.layers.add(y),Av(),()=>{l&&m.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Ev)}},[y,v,l,m]),E.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),Av())},[y,m]),E.useEffect(()=>{const H=()=>b({});return document.addEventListener(lm,H),()=>document.removeEventListener(lm,H)},[]),x.jsx(Hi.div,{...h,ref:w,style:{pointerEvents:M?P?"auto":"none":void 0,...e.style},onFocusCapture:xl(e.onFocusCapture,R.onFocusCapture),onBlurCapture:xl(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:xl(e.onPointerDownCapture,F.onPointerDownCapture)})});rx.displayName=b4;var w4="DismissableLayerBranch",k4=E.forwardRef((e,n)=>{const l=E.useContext(lx),r=E.useRef(null),o=ir(n,r);return E.useEffect(()=>{const u=r.current;if(u)return l.branches.add(u),()=>{l.branches.delete(u)}},[l.branches]),x.jsx(Hi.div,{...e,ref:o})});k4.displayName=w4;function C4(e,n=globalThis==null?void 0:globalThis.document){const l=bo(e),r=E.useRef(!1),o=E.useRef(()=>{});return E.useEffect(()=>{const u=f=>{if(f.target&&!r.current){let h=function(){ax(x4,l,m,{discrete:!0})};const m={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=h,n.addEventListener("click",o.current,{once:!0})):h()}else n.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{n.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(c),n.removeEventListener("pointerdown",u),n.removeEventListener("click",o.current)}},[n,l]),{onPointerDownCapture:()=>r.current=!0}}function E4(e,n=globalThis==null?void 0:globalThis.document){const l=bo(e),r=E.useRef(!1);return E.useEffect(()=>{const o=u=>{u.target&&!r.current&&ax(S4,l,{originalEvent:u},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,l]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Av(){const e=new CustomEvent(lm);document.dispatchEvent(e)}function ax(e,n,l,{discrete:r}){const o=l.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:l});n&&o.addEventListener(e,n,{once:!0}),r?y4(o,u):o.dispatchEvent(u)}var Ad="focusScope.autoFocusOnMount",Td="focusScope.autoFocusOnUnmount",Tv={bubbles:!1,cancelable:!0},A4="FocusScope",ox=E.forwardRef((e,n)=>{const{loop:l=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...c}=e,[f,h]=E.useState(null),m=bo(o),y=bo(u),g=E.useRef(null),v=ir(n,k=>h(k)),b=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(r){let k=function(M){if(b.paused||!f)return;const P=M.target;f.contains(P)?g.current=P:bl(g.current,{select:!0})},T=function(M){if(b.paused||!f)return;const P=M.relatedTarget;P!==null&&(f.contains(P)||bl(g.current,{select:!0}))},_=function(M){if(document.activeElement===document.body)for(const F of M)F.removedNodes.length>0&&bl(f)};document.addEventListener("focusin",k),document.addEventListener("focusout",T);const j=new MutationObserver(_);return f&&j.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",T),j.disconnect()}}},[r,f,b.paused]),E.useEffect(()=>{if(f){Nv.add(b);const k=document.activeElement;if(!f.contains(k)){const _=new CustomEvent(Ad,Tv);f.addEventListener(Ad,m),f.dispatchEvent(_),_.defaultPrevented||(T4(O4(sx(f)),{select:!0}),document.activeElement===k&&bl(f))}return()=>{f.removeEventListener(Ad,m),setTimeout(()=>{const _=new CustomEvent(Td,Tv);f.addEventListener(Td,y),f.dispatchEvent(_),_.defaultPrevented||bl(k??document.body,{select:!0}),f.removeEventListener(Td,y),Nv.remove(b)},0)}}},[f,m,y,b]);const w=E.useCallback(k=>{if(!l&&!r||b.paused)return;const T=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,_=document.activeElement;if(T&&_){const j=k.currentTarget,[M,P]=_4(j);M&&P?!k.shiftKey&&_===P?(k.preventDefault(),l&&bl(M,{select:!0})):k.shiftKey&&_===M&&(k.preventDefault(),l&&bl(P,{select:!0})):_===j&&k.preventDefault()}},[l,r,b.paused]);return x.jsx(Hi.div,{tabIndex:-1,...c,ref:v,onKeyDown:w})});ox.displayName=A4;function T4(e,{select:n=!1}={}){const l=document.activeElement;for(const r of e)if(bl(r,{select:n}),document.activeElement!==l)return}function _4(e){const n=sx(e),l=_v(n,e),r=_v(n.reverse(),e);return[l,r]}function sx(e){const n=[],l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)n.push(l.currentNode);return n}function _v(e,n){for(const l of e)if(!N4(l,{upTo:n}))return l}function N4(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function z4(e){return e instanceof HTMLInputElement&&"select"in e}function bl(e,{select:n=!1}={}){if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),e!==l&&z4(e)&&n&&e.select()}}var Nv=M4();function M4(){let e=[];return{add(n){const l=e[0];n!==l&&(l==null||l.pause()),e=zv(e,n),e.unshift(n)},remove(n){var l;e=zv(e,n),(l=e[0])==null||l.resume()}}}function zv(e,n){const l=[...e],r=l.indexOf(n);return r!==-1&&l.splice(r,1),l}function O4(e){return e.filter(n=>n.tagName!=="A")}var j4="Portal",ux=E.forwardRef((e,n)=>{var f;const{container:l,...r}=e,[o,u]=E.useState(!1);vo(()=>u(!0),[]);const c=l||o&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return c?YC.createPortal(x.jsx(Hi.div,{...r,ref:n}),c):null});ux.displayName=j4;function R4(e,n){return E.useReducer((l,r)=>n[l][r]??l,e)}var Ru=e=>{const{present:n,children:l}=e,r=D4(n),o=typeof l=="function"?l({present:r.isPresent}):E.Children.only(l),u=ir(r.ref,L4(o));return typeof l=="function"||r.isPresent?E.cloneElement(o,{ref:u}):null};Ru.displayName="Presence";function D4(e){const[n,l]=E.useState(),r=E.useRef(null),o=E.useRef(e),u=E.useRef("none"),c=e?"mounted":"unmounted",[f,h]=R4(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const m=Xs(r.current);u.current=f==="mounted"?m:"none"},[f]),vo(()=>{const m=r.current,y=o.current;if(y!==e){const v=u.current,b=Xs(m);e?h("MOUNT"):b==="none"||(m==null?void 0:m.display)==="none"?h("UNMOUNT"):h(y&&v!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),vo(()=>{if(n){let m;const y=n.ownerDocument.defaultView??window,g=b=>{const k=Xs(r.current).includes(CSS.escape(b.animationName));if(b.target===n&&k&&(h("ANIMATION_END"),!o.current)){const T=n.style.animationFillMode;n.style.animationFillMode="forwards",m=y.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=T)})}},v=b=>{b.target===n&&(u.current=Xs(r.current))};return n.addEventListener("animationstart",v),n.addEventListener("animationcancel",g),n.addEventListener("animationend",g),()=>{y.clearTimeout(m),n.removeEventListener("animationstart",v),n.removeEventListener("animationcancel",g),n.removeEventListener("animationend",g)}}else h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:E.useCallback(m=>{r.current=m?getComputedStyle(m):null,l(m)},[])}}function Xs(e){return(e==null?void 0:e.animationName)||"none"}function L4(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,l=n&&"isReactWarning"in n&&n.isReactWarning;return l?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,l=n&&"isReactWarning"in n&&n.isReactWarning,l?e.props.ref:e.props.ref||e.ref)}var _d=0;function I4(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mv()),document.body.insertAdjacentElement("beforeend",e[1]??Mv()),_d++,()=>{_d===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),_d--}},[])}function Mv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var mi=function(){return mi=Object.assign||function(n){for(var l,r=1,o=arguments.length;r<o;r++){l=arguments[r];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(n[u]=l[u])}return n},mi.apply(this,arguments)};function cx(e,n){var l={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(l[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(l[r[o]]=e[r[o]]);return l}function B4(e,n,l){if(l||arguments.length===2)for(var r=0,o=n.length,u;r<o;r++)(u||!(r in n))&&(u||(u=Array.prototype.slice.call(n,0,r)),u[r]=n[r]);return e.concat(u||Array.prototype.slice.call(n))}var lu="right-scroll-bar-position",ru="width-before-scroll-bar",U4="with-scroll-bars-hidden",V4="--removed-body-scroll-bar-size";function Nd(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function F4(e,n){var l=E.useState(function(){return{value:e,callback:n,facade:{get current(){return l.value},set current(r){var o=l.value;o!==r&&(l.value=r,l.callback(r,o))}}}})[0];return l.callback=n,l.facade}var H4=typeof window<"u"?E.useLayoutEffect:E.useEffect,Ov=new WeakMap;function P4(e,n){var l=F4(null,function(r){return e.forEach(function(o){return Nd(o,r)})});return H4(function(){var r=Ov.get(l);if(r){var o=new Set(r),u=new Set(e),c=l.current;o.forEach(function(f){u.has(f)||Nd(f,null)}),u.forEach(function(f){o.has(f)||Nd(f,c)})}Ov.set(l,e)},[e]),l}function q4(e){return e}function G4(e,n){n===void 0&&(n=q4);var l=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:e},useMedium:function(u){var c=n(u,r);return l.push(c),function(){l=l.filter(function(f){return f!==c})}},assignSyncMedium:function(u){for(r=!0;l.length;){var c=l;l=[],c.forEach(u)}l={push:function(f){return u(f)},filter:function(){return l}}},assignMedium:function(u){r=!0;var c=[];if(l.length){var f=l;l=[],f.forEach(u),c=l}var h=function(){var y=c;c=[],y.forEach(u)},m=function(){return Promise.resolve().then(h)};m(),l={push:function(y){c.push(y),m()},filter:function(y){return c=c.filter(y),l}}}};return o}function Y4(e){e===void 0&&(e={});var n=G4(null);return n.options=mi({async:!0,ssr:!1},e),n}var fx=function(e){var n=e.sideCar,l=cx(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return E.createElement(r,mi({},l))};fx.isSideCarExport=!0;function Q4(e,n){return e.useMedium(n),fx}var dx=Y4(),zd=function(){},Du=E.forwardRef(function(e,n){var l=E.useRef(null),r=E.useState({onScrollCapture:zd,onWheelCapture:zd,onTouchMoveCapture:zd}),o=r[0],u=r[1],c=e.forwardProps,f=e.children,h=e.className,m=e.removeScrollBar,y=e.enabled,g=e.shards,v=e.sideCar,b=e.noRelative,w=e.noIsolation,k=e.inert,T=e.allowPinchZoom,_=e.as,j=_===void 0?"div":_,M=e.gapMode,P=cx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=v,R=P4([l,n]),H=mi(mi({},P),o);return E.createElement(E.Fragment,null,y&&E.createElement(F,{sideCar:dx,removeScrollBar:m,shards:g,noRelative:b,noIsolation:w,inert:k,setCallbacks:u,allowPinchZoom:!!T,lockRef:l,gapMode:M}),c?E.cloneElement(E.Children.only(f),mi(mi({},H),{ref:R})):E.createElement(j,mi({},H,{className:h,ref:R}),f))});Du.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Du.classNames={fullWidth:ru,zeroRight:lu};var X4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function K4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=X4();return n&&e.setAttribute("nonce",n),e}function Z4(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function $4(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var J4=function(){var e=0,n=null;return{add:function(l){e==0&&(n=K4())&&(Z4(n,l),$4(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},W4=function(){var e=J4();return function(n,l){E.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&l])}},mx=function(){var e=W4(),n=function(l){var r=l.styles,o=l.dynamic;return e(r,o),null};return n},ej={left:0,top:0,right:0,gap:0},Md=function(e){return parseInt(e||"",10)||0},tj=function(e){var n=window.getComputedStyle(document.body),l=n[e==="padding"?"paddingLeft":"marginLeft"],r=n[e==="padding"?"paddingTop":"marginTop"],o=n[e==="padding"?"paddingRight":"marginRight"];return[Md(l),Md(r),Md(o)]},nj=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ej;var n=tj(e),l=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-l+n[2]-n[0])}},ij=mx(),Kr="data-scroll-locked",lj=function(e,n,l,r){var o=e.left,u=e.top,c=e.right,f=e.gap;return l===void 0&&(l="margin"),`
|
|
354
|
+
.`.concat(U4,` {
|
|
355
|
+
overflow: hidden `).concat(r,`;
|
|
356
|
+
padding-right: `).concat(f,"px ").concat(r,`;
|
|
357
|
+
}
|
|
358
|
+
body[`).concat(Kr,`] {
|
|
359
|
+
overflow: hidden `).concat(r,`;
|
|
360
|
+
overscroll-behavior: contain;
|
|
361
|
+
`).concat([n&&"position: relative ".concat(r,";"),l==="margin"&&`
|
|
362
|
+
padding-left: `.concat(o,`px;
|
|
363
|
+
padding-top: `).concat(u,`px;
|
|
364
|
+
padding-right: `).concat(c,`px;
|
|
365
|
+
margin-left:0;
|
|
366
|
+
margin-top:0;
|
|
367
|
+
margin-right: `).concat(f,"px ").concat(r,`;
|
|
368
|
+
`),l==="padding"&&"padding-right: ".concat(f,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.`).concat(lu,` {
|
|
372
|
+
right: `).concat(f,"px ").concat(r,`;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.`).concat(ru,` {
|
|
376
|
+
margin-right: `).concat(f,"px ").concat(r,`;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.`).concat(lu," .").concat(lu,` {
|
|
380
|
+
right: 0 `).concat(r,`;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.`).concat(ru," .").concat(ru,` {
|
|
384
|
+
margin-right: 0 `).concat(r,`;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
body[`).concat(Kr,`] {
|
|
388
|
+
`).concat(V4,": ").concat(f,`px;
|
|
389
|
+
}
|
|
390
|
+
`)},jv=function(){var e=parseInt(document.body.getAttribute(Kr)||"0",10);return isFinite(e)?e:0},rj=function(){E.useEffect(function(){return document.body.setAttribute(Kr,(jv()+1).toString()),function(){var e=jv()-1;e<=0?document.body.removeAttribute(Kr):document.body.setAttribute(Kr,e.toString())}},[])},aj=function(e){var n=e.noRelative,l=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;rj();var u=E.useMemo(function(){return nj(o)},[o]);return E.createElement(ij,{styles:lj(u,!n,o,l?"":"!important")})},rm=!1;if(typeof window<"u")try{var Ks=Object.defineProperty({},"passive",{get:function(){return rm=!0,!0}});window.addEventListener("test",Ks,Ks),window.removeEventListener("test",Ks,Ks)}catch{rm=!1}var Hr=rm?{passive:!1}:!1,oj=function(e){return e.tagName==="TEXTAREA"},hx=function(e,n){if(!(e instanceof Element))return!1;var l=window.getComputedStyle(e);return l[n]!=="hidden"&&!(l.overflowY===l.overflowX&&!oj(e)&&l[n]==="visible")},sj=function(e){return hx(e,"overflowY")},uj=function(e){return hx(e,"overflowX")},Rv=function(e,n){var l=n.ownerDocument,r=n;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=px(e,r);if(o){var u=gx(e,r),c=u[1],f=u[2];if(c>f)return!0}r=r.parentNode}while(r&&r!==l.body);return!1},cj=function(e){var n=e.scrollTop,l=e.scrollHeight,r=e.clientHeight;return[n,l,r]},fj=function(e){var n=e.scrollLeft,l=e.scrollWidth,r=e.clientWidth;return[n,l,r]},px=function(e,n){return e==="v"?sj(n):uj(n)},gx=function(e,n){return e==="v"?cj(n):fj(n)},dj=function(e,n){return e==="h"&&n==="rtl"?-1:1},mj=function(e,n,l,r,o){var u=dj(e,window.getComputedStyle(n).direction),c=u*r,f=l.target,h=n.contains(f),m=!1,y=c>0,g=0,v=0;do{if(!f)break;var b=gx(e,f),w=b[0],k=b[1],T=b[2],_=k-T-u*w;(w||_)&&px(e,f)&&(g+=_,v+=w);var j=f.parentNode;f=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!h&&f!==document.body||h&&(n.contains(f)||n===f));return(y&&Math.abs(g)<1||!y&&Math.abs(v)<1)&&(m=!0),m},Zs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Dv=function(e){return[e.deltaX,e.deltaY]},Lv=function(e){return e&&"current"in e?e.current:e},hj=function(e,n){return e[0]===n[0]&&e[1]===n[1]},pj=function(e){return`
|
|
391
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
392
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
393
|
+
`)},gj=0,Pr=[];function yj(e){var n=E.useRef([]),l=E.useRef([0,0]),r=E.useRef(),o=E.useState(gj++)[0],u=E.useState(mx)[0],c=E.useRef(e);E.useEffect(function(){c.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var k=B4([e.lockRef.current],(e.shards||[]).map(Lv),!0).filter(Boolean);return k.forEach(function(T){return T.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),k.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=E.useCallback(function(k,T){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!c.current.allowPinchZoom;var _=Zs(k),j=l.current,M="deltaX"in k?k.deltaX:j[0]-_[0],P="deltaY"in k?k.deltaY:j[1]-_[1],F,R=k.target,H=Math.abs(M)>Math.abs(P)?"h":"v";if("touches"in k&&H==="h"&&R.type==="range")return!1;var V=window.getSelection(),te=V&&V.anchorNode,I=te?te===R||te.contains(R):!1;if(I)return!1;var J=Rv(H,R);if(!J)return!0;if(J?F=H:(F=H==="v"?"h":"v",J=Rv(H,R)),!J)return!1;if(!r.current&&"changedTouches"in k&&(M||P)&&(r.current=F),!F)return!0;var ae=r.current||F;return mj(ae,T,k,ae==="h"?M:P)},[]),h=E.useCallback(function(k){var T=k;if(!(!Pr.length||Pr[Pr.length-1]!==u)){var _="deltaY"in T?Dv(T):Zs(T),j=n.current.filter(function(F){return F.name===T.type&&(F.target===T.target||T.target===F.shadowParent)&&hj(F.delta,_)})[0];if(j&&j.should){T.cancelable&&T.preventDefault();return}if(!j){var M=(c.current.shards||[]).map(Lv).filter(Boolean).filter(function(F){return F.contains(T.target)}),P=M.length>0?f(T,M[0]):!c.current.noIsolation;P&&T.cancelable&&T.preventDefault()}}},[]),m=E.useCallback(function(k,T,_,j){var M={name:k,delta:T,target:_,should:j,shadowParent:vj(_)};n.current.push(M),setTimeout(function(){n.current=n.current.filter(function(P){return P!==M})},1)},[]),y=E.useCallback(function(k){l.current=Zs(k),r.current=void 0},[]),g=E.useCallback(function(k){m(k.type,Dv(k),k.target,f(k,e.lockRef.current))},[]),v=E.useCallback(function(k){m(k.type,Zs(k),k.target,f(k,e.lockRef.current))},[]);E.useEffect(function(){return Pr.push(u),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",h,Hr),document.addEventListener("touchmove",h,Hr),document.addEventListener("touchstart",y,Hr),function(){Pr=Pr.filter(function(k){return k!==u}),document.removeEventListener("wheel",h,Hr),document.removeEventListener("touchmove",h,Hr),document.removeEventListener("touchstart",y,Hr)}},[]);var b=e.removeScrollBar,w=e.inert;return E.createElement(E.Fragment,null,w?E.createElement(u,{styles:pj(o)}):null,b?E.createElement(aj,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vj(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const bj=Q4(dx,yj);var yx=E.forwardRef(function(e,n){return E.createElement(Du,mi({},e,{ref:n,sideCar:bj}))});yx.classNames=Du.classNames;var xj=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},qr=new WeakMap,$s=new WeakMap,Js={},Od=0,vx=function(e){return e&&(e.host||vx(e.parentNode))},Sj=function(e,n){return n.map(function(l){if(e.contains(l))return l;var r=vx(l);return r&&e.contains(r)?r:(console.error("aria-hidden",l,"in not contained inside",e,". Doing nothing"),null)}).filter(function(l){return!!l})},wj=function(e,n,l,r){var o=Sj(n,Array.isArray(e)?e:[e]);Js[l]||(Js[l]=new WeakMap);var u=Js[l],c=[],f=new Set,h=new Set(o),m=function(g){!g||f.has(g)||(f.add(g),m(g.parentNode))};o.forEach(m);var y=function(g){!g||h.has(g)||Array.prototype.forEach.call(g.children,function(v){if(f.has(v))y(v);else try{var b=v.getAttribute(r),w=b!==null&&b!=="false",k=(qr.get(v)||0)+1,T=(u.get(v)||0)+1;qr.set(v,k),u.set(v,T),c.push(v),k===1&&w&&$s.set(v,!0),T===1&&v.setAttribute(l,"true"),w||v.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",v,_)}})};return y(n),f.clear(),Od++,function(){c.forEach(function(g){var v=qr.get(g)-1,b=u.get(g)-1;qr.set(g,v),u.set(g,b),v||($s.has(g)||g.removeAttribute(r),$s.delete(g)),b||g.removeAttribute(l)}),Od--,Od||(qr=new WeakMap,qr=new WeakMap,$s=new WeakMap,Js={})}},kj=function(e,n,l){l===void 0&&(l="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=xj(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),wj(r,o,l,"aria-hidden")):function(){return null}},Lu="Dialog",[bx]=i4(Lu),[Cj,ri]=bx(Lu),xx=e=>{const{__scopeDialog:n,children:l,open:r,defaultOpen:o,onOpenChange:u,modal:c=!0}=e,f=E.useRef(null),h=E.useRef(null),[m,y]=s4({prop:r,defaultProp:o??!1,onChange:u,caller:Lu});return x.jsx(Cj,{scope:n,triggerRef:f,contentRef:h,contentId:Ed(),titleId:Ed(),descriptionId:Ed(),open:m,onOpenChange:y,onOpenToggle:E.useCallback(()=>y(g=>!g),[y]),modal:c,children:l})};xx.displayName=Lu;var Sx="DialogTrigger",Ej=E.forwardRef((e,n)=>{const{__scopeDialog:l,...r}=e,o=ri(Sx,l),u=ir(n,o.triggerRef);return x.jsx(Hi.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Km(o.open),...r,ref:u,onClick:xl(e.onClick,o.onOpenToggle)})});Ej.displayName=Sx;var Qm="DialogPortal",[Aj,wx]=bx(Qm,{forceMount:void 0}),kx=e=>{const{__scopeDialog:n,forceMount:l,children:r,container:o}=e,u=ri(Qm,n);return x.jsx(Aj,{scope:n,forceMount:l,children:E.Children.map(r,c=>x.jsx(Ru,{present:l||u.open,children:x.jsx(ux,{asChild:!0,container:o,children:c})}))})};kx.displayName=Qm;var pu="DialogOverlay",Cx=E.forwardRef((e,n)=>{const l=wx(pu,e.__scopeDialog),{forceMount:r=l.forceMount,...o}=e,u=ri(pu,e.__scopeDialog);return u.modal?x.jsx(Ru,{present:r||u.open,children:x.jsx(_j,{...o,ref:n})}):null});Cx.displayName=pu;var Tj=ix("DialogOverlay.RemoveScroll"),_j=E.forwardRef((e,n)=>{const{__scopeDialog:l,...r}=e,o=ri(pu,l);return x.jsx(yx,{as:Tj,allowPinchZoom:!0,shards:[o.contentRef],children:x.jsx(Hi.div,{"data-state":Km(o.open),...r,ref:n,style:{pointerEvents:"auto",...r.style}})})}),$l="DialogContent",Ex=E.forwardRef((e,n)=>{const l=wx($l,e.__scopeDialog),{forceMount:r=l.forceMount,...o}=e,u=ri($l,e.__scopeDialog);return x.jsx(Ru,{present:r||u.open,children:u.modal?x.jsx(Nj,{...o,ref:n}):x.jsx(zj,{...o,ref:n})})});Ex.displayName=$l;var Nj=E.forwardRef((e,n)=>{const l=ri($l,e.__scopeDialog),r=E.useRef(null),o=ir(n,l.contentRef,r);return E.useEffect(()=>{const u=r.current;if(u)return kj(u)},[]),x.jsx(Ax,{...e,ref:o,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xl(e.onCloseAutoFocus,u=>{var c;u.preventDefault(),(c=l.triggerRef.current)==null||c.focus()}),onPointerDownOutside:xl(e.onPointerDownOutside,u=>{const c=u.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&u.preventDefault()}),onFocusOutside:xl(e.onFocusOutside,u=>u.preventDefault())})}),zj=E.forwardRef((e,n)=>{const l=ri($l,e.__scopeDialog),r=E.useRef(!1),o=E.useRef(!1);return x.jsx(Ax,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var c,f;(c=e.onCloseAutoFocus)==null||c.call(e,u),u.defaultPrevented||(r.current||(f=l.triggerRef.current)==null||f.focus(),u.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:u=>{var h,m;(h=e.onInteractOutside)==null||h.call(e,u),u.defaultPrevented||(r.current=!0,u.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=u.target;((m=l.triggerRef.current)==null?void 0:m.contains(c))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.current&&u.preventDefault()}})}),Ax=E.forwardRef((e,n)=>{const{__scopeDialog:l,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:u,...c}=e,f=ri($l,l),h=E.useRef(null),m=ir(n,h);return I4(),x.jsxs(x.Fragment,{children:[x.jsx(ox,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:u,children:x.jsx(rx,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":Km(f.open),...c,ref:m,onDismiss:()=>f.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(Mj,{titleId:f.titleId}),x.jsx(jj,{contentRef:h,descriptionId:f.descriptionId})]})]})}),Xm="DialogTitle",Tx=E.forwardRef((e,n)=>{const{__scopeDialog:l,...r}=e,o=ri(Xm,l);return x.jsx(Hi.h2,{id:o.titleId,...r,ref:n})});Tx.displayName=Xm;var _x="DialogDescription",Nx=E.forwardRef((e,n)=>{const{__scopeDialog:l,...r}=e,o=ri(_x,l);return x.jsx(Hi.p,{id:o.descriptionId,...r,ref:n})});Nx.displayName=_x;var zx="DialogClose",Mx=E.forwardRef((e,n)=>{const{__scopeDialog:l,...r}=e,o=ri(zx,l);return x.jsx(Hi.button,{type:"button",...r,ref:n,onClick:xl(e.onClick,()=>o.onOpenChange(!1))})});Mx.displayName=zx;function Km(e){return e?"open":"closed"}var Ox="DialogTitleWarning",[b5,jx]=n4(Ox,{contentName:$l,titleName:Xm,docsSlug:"dialog"}),Mj=({titleId:e})=>{const n=jx(Ox),l=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
394
|
+
|
|
395
|
+
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
396
|
+
|
|
397
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(l))},[l,e]),null},Oj="DialogDescriptionWarning",jj=({contentRef:e,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jx(Oj).contentName}}.`;return E.useEffect(()=>{var u;const o=(u=e.current)==null?void 0:u.getAttribute("aria-describedby");n&&o&&(document.getElementById(n)||console.warn(r))},[r,e,n]),null},Rj=xx,Dj=kx,Rx=Cx,Dx=Ex,Lj=Tx,Ij=Nx,Bj=Mx;const Uj="data-focus-fallback-ignore",Vj="kanna:restore-chat-input-focus",Lx="data-chat-selection-zone",Fj=Rj,Hj=Dj,Ix=E.forwardRef(({className:e,...n},l)=>x.jsx(Rx,{ref:l,className:Me("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));Ix.displayName=Rx.displayName;const Pj={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg"},Bx=E.forwardRef(({className:e,children:n,size:l="md",...r},o)=>x.jsxs(Hj,{children:[x.jsx(Ix,{}),x.jsxs(Dx,{ref:o,[Uj]:"",onCloseAutoFocus:u=>{var c;u.preventDefault(),window.dispatchEvent(new Event(Vj)),(c=r.onCloseAutoFocus)==null||c.call(r,u)},className:Me("fixed left-1/2 top-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-background shadow-xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","max-h-[85vh] flex flex-col",Pj[l],e),...r,children:[n,x.jsxs(Bj,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[x.jsx(na,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Bx.displayName=Dx.displayName;function qj({className:e,...n}){return x.jsx("div",{className:Me("shrink-0 flex flex-col space-y-1.5 p-4 border-b border-border",e),...n})}function Gj({className:e,...n}){return x.jsx(Lj,{className:Me("text-lg font-medium leading-none tracking-tight",e),...n})}function Yj({className:e,...n}){return x.jsx(Ij,{className:Me("text-sm text-muted-foreground",e),...n})}function Qj({className:e,...n}){return x.jsx("div",{className:Me("flex-1 min-h-0 overflow-y-auto px-4 pb-4 pt-3.5",e),...n})}function Xj({className:e,...n}){return x.jsx("div",{className:Me("shrink-0 flex justify-end gap-2 border-t border-border bg-background p-2 rounded-b-xl",e),...n})}function Kj({className:e,...n}){return x.jsx("button",{className:Me("touch-manipulation inline-flex items-center justify-center whitespace-nowrap cursor-pointer text-sm font-medium transition-colors","rounded-full h-9 px-4","hover:bg-accent dark:hover:bg-card hover:text-accent-foreground text-muted-foreground","disabled:pointer-events-none disabled:text-muted-foreground/50",e),...n})}function Zj(e){const n=e.split(`
|
|
398
|
+
`),l=/^\s*(\d+)→(.*)$/;return n.map(r=>{const o=r.match(l);return o?{lineNumber:parseInt(o[1],10),content:o[2]}:{lineNumber:null,content:r}})}function $j(e){return e.replace(/<[^>]+>/g,"")}function Jj(e,n){const l=e.split(`
|
|
399
|
+
`),r=n.split(`
|
|
400
|
+
`),o=Wj(l,r),u=eR(l,r,o);return tR(u)}function Wj(e,n){const l=e.length,r=n.length,o=Array.from({length:l+1},()=>Array(r+1).fill(0));for(let u=1;u<=l;u++)for(let c=1;c<=r;c++)o[u][c]=e[u-1]===n[c-1]?o[u-1][c-1]+1:Math.max(o[u-1][c],o[u][c-1]);return o}function eR(e,n,l){const r=[];let o=e.length,u=n.length;for(;o>0||u>0;)o>0&&u>0&&e[o-1]===n[u-1]?(r.push({type:"context",text:e[o-1],oldIdx:o,newIdx:u}),o--,u--):u>0&&(o===0||l[o][u-1]>=l[o-1][u])?(r.push({type:"added",text:n[u-1],oldIdx:o,newIdx:u}),u--):(r.push({type:"removed",text:e[o-1],oldIdx:o,newIdx:u}),o--);return r.reverse()}function tR(e){return e.map(n=>{const l=n.type==="removed"?"-":n.type==="added"?"+":" ";return{type:n.type,content:`${l}${n.text}`}})}function ro({content:e,isDiff:n=!1,oldString:l,newString:r}){const o=E.useMemo(()=>n&&l!==void 0&&r!==void 0?Jj(l,r):[],[n,l,r]),u=E.useMemo(()=>n?[]:Zj(e),[e,n]),c=E.useMemo(()=>u.some(f=>f.lineNumber!==null),[u]);return n&&o.length>0?x.jsx("div",{className:"my-1 rounded-lg border border-border overflow-hidden",children:x.jsx("div",{className:"overflow-auto max-h-64 md:max-h-[50vh]",children:x.jsx("table",{className:"w-full border-collapse text-xs font-mono",children:x.jsx("tbody",{children:o.map((f,h)=>{const m=f.type==="removed"?"bg-red-500/10 dark:bg-red-500/15":f.type==="added"?"bg-green-500/10 dark:bg-green-500/15":"",y=f.type==="removed"?"text-red-700 dark:text-red-400":f.type==="added"?"text-green-700 dark:text-green-400":"text-foreground";return x.jsxs("tr",{className:m,children:[x.jsx("td",{className:`px-2 py-0 select-none w-0 whitespace-nowrap ${f.type==="removed"?"text-red-500/50":f.type==="added"?"text-green-500/50":"text-muted-foreground/50"}`,children:f.type==="removed"?"-":f.type==="added"?"+":" "}),x.jsx("td",{className:`px-2 py-0 whitespace-pre select-all ${y}`,children:f.content.slice(1)})]},h)})})})})}):x.jsx("div",{className:"my-1 rounded-lg border border-border overflow-hidden",children:x.jsx("div",{className:"overflow-auto max-h-64 md:max-h-[50vh]",children:x.jsx("table",{className:"w-full border-collapse text-xs font-mono",children:x.jsx("tbody",{children:u.map((f,h)=>x.jsxs("tr",{children:[c&&x.jsx("td",{className:"px-2 py-0 select-none w-0 whitespace-nowrap text-muted-foreground/50 text-right",children:f.lineNumber!==null?f.lineNumber:""}),x.jsx("td",{className:"px-2 py-0 whitespace-pre select-all text-foreground",children:$j(f.content)})]},h))})})})})}function nR({attachment:e,onOpenChange:n}){const[l,r]=E.useState({}),o=E.useMemo(()=>e?W1(e):null,[e]),u=e?l[e.id]:void 0,c=e!=null&&e.contentUrl?lR(e.contentUrl):"";E.useEffect(()=>{if(!e||!o||o.openInNewTab||o.kind==="image"||o.kind==="pdf"||o.kind==="external")return;const m=o.kind;if((u==null?void 0:u.status)==="loading"||(u==null?void 0:u.status)==="ready")return;let y=!1;return r(g=>({...g,[e.id]:{status:"loading"}})),Q3(e.contentUrl,F3).then(({content:g,truncated:v})=>{if(y)return;if(m==="table"){const w=e.mimeType==="text/tab-separated-values"?" ":",";r(k=>({...k,[e.id]:{status:"ready",kind:"table",truncated:v,table:K3(g,w)}}));return}const b=m==="json"?X3(g):g;r(w=>({...w,[e.id]:{status:"ready",kind:m,content:b,truncated:v}}))}).catch(g=>{if(y)return;const v=g instanceof Error?g.message:"Unable to load preview.";r(b=>({...b,[e.id]:{status:"error",message:v}}))}),()=>{y=!0}},[e==null?void 0:e.id,e==null?void 0:e.contentUrl,e==null?void 0:e.mimeType,o==null?void 0:o.kind,o==null?void 0:o.openInNewTab]);async function f(){var m;!c||typeof navigator>"u"||!((m=navigator.clipboard)!=null&&m.writeText)||await navigator.clipboard.writeText(c)}function h(){!c||typeof window>"u"||window.open(c,"_blank","noopener,noreferrer")}return x.jsx(Fj,{open:e!==null&&!(o!=null&&o.openInNewTab),onOpenChange:n,children:x.jsx(Bx,{size:"lg",className:"max-w-[min(92vw,960px)] overflow-hidden p-0",children:e&&o&&!o.openInNewTab?x.jsxs(x.Fragment,{children:[x.jsx(qj,{className:"pr-12",children:x.jsx(Gj,{className:"text-md",children:e.displayName})}),x.jsx(Qj,{className:"bg-muted/20 p-4",children:iR(e,o.kind,u)}),x.jsxs(Xj,{className:"items-center justify-between gap-3 px-4 py-3",children:[x.jsxs(Yj,{className:"truncate",children:[e.mimeType," · ",Ym(e.size)]}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsxs(Kj,{type:"button",onClick:f,children:[x.jsx(hC,{className:"mr-2 h-4 w-4"}),"Copy Link"]}),x.jsxs(an,{type:"button",variant:"outline",onClick:h,children:[x.jsx(Pk,{className:"mr-2 h-4 w-4"}),"Open In New Tab"]})]})]})]}):null})})}function iR(e,n,l){if(n==="image")return x.jsx("div",{className:"flex items-center justify-center",children:x.jsx("img",{src:e.contentUrl,alt:e.displayName,className:"max-h-[70vh] w-auto max-w-full rounded-2xl object-contain"})});if(n==="pdf")return x.jsx("iframe",{src:e.contentUrl,title:e.displayName,className:"h-[70vh] w-full rounded-xl border border-border bg-background"});if(!l||l.status==="loading")return x.jsx("div",{className:"flex h-[50vh] items-center justify-center text-sm text-muted-foreground",children:"Loading preview…"});if(l.status==="error")return x.jsx("div",{className:"flex h-[50vh] items-center justify-center text-sm text-destructive",children:l.message});if(l.kind==="markdown"&&l.content!==void 0)return x.jsxs("div",{className:"space-y-3",children:[l.truncated?x.jsx(jd,{message:"Preview truncated to 1024 KB."}):null,x.jsx("div",{className:"prose prose-sm max-w-none overflow-auto rounded-xl border border-border bg-background p-4 prose-invert",children:x.jsx(aa,{remarkPlugins:[oa],components:ia(),children:l.content})})]});if(l.kind==="table"&&l.table){const r=l.table.rows.length>0,[o,...u]=l.table.rows,c=[l.truncated?"Preview truncated to 1024 KB.":null,l.table.truncatedRows?`Showing first ${l.table.rows.length} of ${l.table.rowCount} rows.`:null,l.table.truncatedColumns?`Showing first ${im} of ${l.table.columnCount} columns.`:null].filter(Boolean);return x.jsxs("div",{className:"space-y-3",children:[c.length>0?x.jsx(jd,{message:c.join(" ")}):null,x.jsx("div",{className:"max-h-[70vh] overflow-auto rounded-xl border border-border bg-background",children:x.jsxs("table",{className:"min-w-full border-collapse text-xs",children:[r?x.jsx("thead",{className:"sticky top-0 bg-muted",children:x.jsx("tr",{children:o.map((f,h)=>x.jsx("th",{className:"border-b border-border px-3 py-2 text-left font-medium text-foreground",children:f||" "},`${f}-${h}`))})}):null,x.jsx("tbody",{children:(r?u:l.table.rows).map((f,h)=>x.jsx("tr",{className:"odd:bg-background even:bg-muted/20",children:f.map((m,y)=>x.jsx("td",{className:"max-w-[320px] border-b border-border px-3 py-2 align-top text-foreground",children:x.jsx("div",{className:"whitespace-pre-wrap break-words",children:m||" "})},`${h}-${y}`))},h))})]})})]})}return x.jsxs("div",{className:"space-y-3",children:[l.truncated?x.jsx(jd,{message:"Preview truncated to 1024 KB."}):null,x.jsx(ro,{content:l.content??""})]})}function jd({message:e}){return x.jsx("div",{className:"rounded-xl border border-border bg-background px-3 py-2 text-sm text-muted-foreground",children:e})}function lR(e){return typeof window>"u"?e:new URL(e,document.baseURI||window.location.href).toString()}function rR(e){var l;const n=e.match(/^<system-message>\s*([\s\S]*?)\s*<\/system-message>\s*([\s\S]*)$/);return n?{systemMessage:((l=n[1])==null?void 0:l.trim())||null,body:n[2]??""}:{systemMessage:null,body:e}}function aR({content:e,attachments:n=[],steered:l=!1}){const[r,o]=E.useState(null),u=Au(),c=E.useMemo(()=>rR(e),[e]),f=u.attachmentMode==="metadata",h=!u.readonly||u.attachmentMode==="bundle",m=E.useMemo(()=>n.filter(b=>b.kind==="image"&&(b.contentUrl||f)),[n,f]),y=E.useMemo(()=>n.filter(b=>b.kind!=="image"||!b.contentUrl&&!f),[n,f]),g=n.find(b=>b.id===r)??null;function v(b){if(!h||!b.contentUrl)return;if(W1(b).openInNewTab){typeof window<"u"&&window.open(new URL(b.contentUrl,document.baseURI||window.location.href).toString(),"_blank","noopener,noreferrer");return}o(b.id)}return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"flex flex-col items-end gap-2",children:[m.length>0?x.jsx("div",{className:"flex max-w-[85%] sm:max-w-[80%] flex-wrap justify-end gap-3",children:m.map(b=>x.jsx(W3,{attachment:b,onClick:h?()=>v(b):void 0},b.id))}):null,y.length>0?x.jsx("div",{className:"flex max-w-[85%] sm:max-w-[80%] flex-wrap justify-end gap-2",children:y.map(b=>x.jsx(e4,{attachment:b,onClick:h?()=>v(b):void 0},b.id))}):null,c.body||!c.body&&n.length===0&&e&&!c.systemMessage?x.jsxs("div",{className:"flex max-w-[85%] items-center gap-2 sm:max-w-[80%]",children:[l?x.jsx("span",{"aria-label":"Sent mid-turn",role:"img",title:"Sent mid-turn",className:"shrink-0 text-muted-foreground",children:x.jsx(Fk,{className:"h-4 w-4"})}):null,x.jsx("div",{className:"min-w-0 flex-1 rounded-[20px] border border-border bg-muted px-3.5 py-1.5 text-primary prose prose-sm prose-invert [&_p]:whitespace-pre-line",children:x.jsx(aa,{remarkPlugins:[oa],components:ia(),children:c.body})})]}):null]}),x.jsx(nR,{attachment:g,onOpenChange:b=>!b&&o(null)})]})}function oR({json:e}){return x.jsx("div",{className:"flex gap-3 justify-start",children:x.jsx("div",{className:"flex-1 max-w-[90%]",children:x.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words bg-muted rounded-lg p-3 overflow-auto max-h-96",children:e})})})}function am(e){return e.split(/[\s_-]+/).filter(Boolean).map(n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join(" ")}const sR=[/^(?:\/usr\/bin\/env\s+)?(?:\/bin\/)?(?:bash|zsh|sh)\s+(?:-[a-zA-Z]*c|-c)\s+(['"])([\s\S]*)\1$/,/^(?:\/usr\/bin\/env\s+)?(?:\/bin\/)?(?:bash|zsh|sh)\s+(?:-[a-zA-Z]*c|-c)\s+(.+)$/,/^(?:\/usr\/bin\/env\s+)?(?:cmd(?:\.exe)?)\s+\/c\s+(['"])([\s\S]*)\1$/i,/^(?:\/usr\/bin\/env\s+)?(?:cmd(?:\.exe)?)\s+\/c\s+(.+)$/i,/^(?:\/usr\/bin\/env\s+)?(?:powershell(?:\.exe)?|pwsh)\s+(?:-NoProfile\s+)?-Command\s+(['"])([\s\S]*)\1$/i,/^(?:\/usr\/bin\/env\s+)?(?:powershell(?:\.exe)?|pwsh)\s+(?:-NoProfile\s+)?-Command\s+(.+)$/i];function uR(e){const n=e.trim();for(const l of sR){const r=n.match(l);if(!r)continue;const o=(r[2]??r[1]??"").trim();if(o)return o}return n}function Ux({title:e,count:n,children:l,badge:r}){const[o,u]=E.useState(!1);return n===0?null:x.jsxs("div",{className:"flex flex-col gap-1.5",children:[x.jsxs("button",{onClick:()=>u(!o),className:"flex items-center gap-1 cursor-pointer group/section hover:opacity-60 transition-opacity",children:[x.jsx(Ql,{className:Me("h-3.5 w-3.5 text-muted-foreground transition-transform duration-200",o&&"rotate-90")}),x.jsx("span",{className:"text-muted-foreground font-medium",children:e}),x.jsx("span",{className:"text-muted-foreground/60",children:n}),r]}),o&&x.jsx("div",{className:"ml-5",children:l})]})}function Rd({title:e,items:n,icon:l,getIcon:r}){return n.length===0?null:x.jsx(Ux,{title:e,count:n.length,children:x.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(o=>x.jsx(Qb,{icon:r?r(o):l,children:o},o))})})}function cR(e){const n=e.match(/^mcp__([^_]+)__(.+)$/);return n?{server:n[1],tool:n[2]}:null}function Vx({status:e}){const n=e==="connected"?"bg-emerald-500":e==="pending"?"bg-yellow-500":"bg-red-500";return x.jsx("span",{className:Me("inline-block h-2 w-2 rounded-full shrink-0",n)})}function fR(e){switch(e){case"connected":return"Connected";case"failed":return"Failed";case"needs-auth":return"Needs auth";case"pending":return"Connecting...";case"disabled":return"Disabled";default:return e}}function Iv({server:e}){const[n,l]=E.useState(!1),r=e.status==="connected";return x.jsxs("div",{className:"flex flex-col gap-1.5",children:[x.jsxs("button",{onClick:()=>r&&e.tools.length>0&&l(!n),className:Me("flex items-center gap-1.5",r&&e.tools.length>0&&"cursor-pointer hover:opacity-60 transition-opacity"),children:[r&&e.tools.length>0&&x.jsx(Ql,{className:Me("h-3 w-3 text-muted-foreground transition-transform duration-200",n&&"rotate-90")}),x.jsx(Vx,{status:e.status}),x.jsx("span",{className:"text-muted-foreground font-medium",children:am(e.name)}),r?x.jsxs("span",{className:"text-muted-foreground/50",children:[e.tools.length," tools"]}):x.jsx("span",{className:"text-muted-foreground/50",children:fR(e.status)})]}),!r&&e.error&&x.jsx("span",{className:"text-destructive ml-5",children:e.error}),n&&e.tools.length>0&&x.jsx("div",{className:"flex flex-wrap gap-1.5 ml-5",children:e.tools.map(o=>x.jsx(Qb,{icon:Gb(`mcp__${e.name}__${o}`),children:o},o))})]})}function dR({servers:e}){if(e.length===0)return null;const n=e.filter(o=>o.status==="connected"),l=e.filter(o=>o.status!=="connected"),r=l.length>0?x.jsxs("span",{className:"flex items-center gap-1 ml-1",children:[x.jsx(Vx,{status:"failed"}),x.jsxs("span",{className:"text-muted-foreground/60",children:[l.length," disconnected"]})]}):null;return x.jsx(Ux,{title:"MCP Servers",count:e.length,badge:r,children:x.jsxs("div",{className:"flex flex-col gap-2",children:[n.map(o=>x.jsx(Iv,{server:o},o.name)),l.map(o=>x.jsx(Iv,{server:o},o.name))]})})}function mR({rawJson:e}){const[n,l]=E.useState(!1);return x.jsxs("div",{className:"flex flex-col gap-1.5",children:[x.jsxs("button",{onClick:()=>l(!n),className:"flex items-center gap-1 cursor-pointer group/section hover:opacity-60 transition-opacity",children:[x.jsx(Ql,{className:Me("h-3.5 w-3.5 text-muted-foreground transition-transform duration-200",n&&"rotate-90")}),x.jsx("span",{className:"text-muted-foreground font-medium",children:"Raw Message"})]}),n&&x.jsx("pre",{className:"ml-5 text-xs whitespace-pre-wrap break-all border border-border rounded-md p-3 overflow-x-auto max-h-96 overflow-y-auto",children:e})]})}function hR({message:e,rawJson:n}){const{coreTools:l,mcpServersWithTools:r}=E.useMemo(()=>{const o=new Map,u=[];for(const f of e.tools){const h=cR(f);if(h){const m=o.get(h.server)||[];m.push(h.tool),o.set(h.server,m)}else u.push(f)}const c=e.mcpServers.map(f=>({name:f.name,status:f.status,error:f.error,tools:o.get(f.name)||[]}));return{coreTools:u,mcpServersWithTools:c}},[e.tools,e.mcpServers]);return x.jsx(Vi,{children:x.jsxs(Tu,{expandedContent:x.jsx(_u,{className:"my-4 text-xs",children:x.jsxs("div",{className:"flex flex-col gap-3",children:[x.jsx(mT,{children:e.model}),x.jsx(Rd,{title:"Tools",items:l,getIcon:o=>Gd[o]??qb}),x.jsx(Rd,{title:"Agents",items:e.agents,icon:um}),x.jsx(Rd,{title:"Commands",items:e.slashCommands,icon:MC}),x.jsx(dR,{servers:r}),n&&x.jsx(mR,{rawJson:n})]})}),children:[x.jsx(wk,{className:"h-5 w-5 text-logo"}),x.jsx(wl,{children:"Session Started"})]})})}function pR({message:e}){return x.jsx(Vi,{className:"hidden",children:x.jsxs(Tu,{expandedContent:x.jsx(_u,{className:"my-4 text-xs",children:x.jsx("pre",{className:"font-mono whitespace-pre-wrap break-all bg-muted border border-border rounded-lg p-2 max-h-64 overflow-auto",children:JSON.stringify(e.accountInfo,null,2)})}),children:[x.jsx("div",{className:"size-5 flex justify-center items-center ",children:x.jsx(um,{className:"h-4 w-4 text-muted-foreground"})}),x.jsx(wl,{children:"Account"})]})})}function gR({message:e}){return x.jsx("div",{className:"text-pretty prose prose-sm dark:prose-invert px-0.5 w-full max-w-full space-y-4",children:x.jsx(aa,{remarkPlugins:[oa],components:ia(),children:e.text})})}function yR({question:e,currentIndex:n,totalQuestions:l,onBack:r,children:o}){const u=r&&n>0;return x.jsxs("div",{className:"rounded-2xl border border-border overflow-hidden",children:[x.jsxs("div",{className:"relative",children:[x.jsxs("h3",{className:"font-medium text-foreground text-sm p-3 px-4 bg-card border-b border-border text-foreground flex flex-row items-center gap-2",children:[u?x.jsx("button",{onClick:r,className:" text-muted-foreground hover:opacity-60 transition-all flex items-center",children:x.jsx(Mk,{className:"h-4 w-4 -ml-0.5",strokeWidth:3})}):l>1?x.jsxs("span",{className:"font-bold text-muted-foreground whitespace-nowrap",children:[n+1," of ",l]}):null,e]}),l>1&&x.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-border",children:x.jsx("div",{className:"h-full bg-muted-foreground/40 transition-all duration-300",style:{width:`${n/l*100}%`}})})]}),o]})}function Bv({label:e,description:n}){return x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"text-foreground text-sm",children:e}),n&&x.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:n})]})}function Fx({selected:e,multiSelect:n,onClick:l}){return x.jsx("button",{type:"button",onClick:l,className:Me("flex-shrink-0 w-5 h-5 border-1 flex items-center justify-center",n?"rounded":"rounded-full",e?"border-slate-500/0 bg-foreground":"border-muted-foreground/50 bg-background",l&&e&&"cursor-pointer"),children:e&&x.jsx(Zr,{strokeWidth:3,className:"translate-y-[0.5px] h-3 w-3 text-white dark:text-background"})})}function vR({option:e,selected:n,multiSelect:l,onClick:r,isLast:o}){const u="w-full text-left p-3 pt-2.5 pl-4 pr-5 bg-background",c=o?"":"border-b border-border";return r?x.jsx("button",{onClick:r,className:Me(u,c,"transition-all cursor-pointer"),children:x.jsxs("div",{className:"flex items-center justify-between gap-3",children:[x.jsx("div",{className:"flex-1 min-w-0",children:x.jsx(Bv,{label:e.label,description:e.description})}),x.jsx(Fx,{selected:n,multiSelect:l})]})}):x.jsx("div",{className:Me(u,c),children:x.jsx(Bv,{label:e.label,description:e.description})})}function bR(e){return e==null?void 0:e.answers}function Pn(e){return e.id||e.question}function xR({message:e,onSubmit:n,isLatest:l}){var X,ne;const r=Au(),o=e.input.questions,u=!!e.result,c=bR(e.result),f=((X=e.result)==null?void 0:X.discarded)===!0,[h,m]=E.useState(0),[y,g]=E.useState({}),[v,b]=E.useState({}),[w,k]=E.useState(c??null),[T,_]=E.useState(u),j=($,C)=>{var se;const z=(se=v[$])==null?void 0:se.trim(),U=y[$]||"",N=C||o.find(re=>Pn(re)===$);if(N!=null&&N.multiSelect)return[U,z].filter(Boolean).flatMap(re=>re.split(", ").filter(Boolean));const W=z||U;return W?[W]:[]},M=$=>{const C=y[Pn($)]||"";return $.multiSelect?C.split(", ").filter(Boolean):[C]},P=($,C)=>{const z=Pn($);if($.multiSelect){const U=y[z]?y[z].split(", ").filter(Boolean):[],N=U.includes(C)?U.filter(W=>W!==C):[...U,C];g({...y,[z]:N.join(", ")})}else g({...y,[z]:C}),b({...v,[z]:""}),h<o.length-1&&setTimeout(()=>m(h+1),150)},F=($,C)=>{const z=Pn($);b({...v,[z]:C}),C&&!$.multiSelect&&g({...y,[z]:""})},R=$=>{const C=Pn($);$.multiSelect&&v[C]&&b({...v,[C]:""})},H=o.every($=>j(Pn($),$).length>0),V=o[h],te=h===o.length-1,I=V&&j(Pn(V),V).length>0,J=()=>{h<o.length-1&&m(h+1)},ae=()=>{h>0&&m(h-1)},me=()=>{if(!H)return;const $={};for(const C of o){const z=Pn(C);$[z]=j(z,C)}k($),_(!0),n(e.toolId,o,$)},oe=$=>{if($.key==="Enter"&&!(!V||!I)){if($.preventDefault(),te){me();return}J()}};if(T||u){const $=c||w||{};return x.jsx("div",{className:"w-full",children:x.jsxs("div",{className:"rounded-2xl border border-border overflow-hidden",children:[x.jsxs("div",{className:"font-medium text-sm p-3 px-4 pr-5 bg-muted border-b border-border flex flex-row items-center justify-between",children:[x.jsxs("p",{children:["Question",o.length!==1?"s":""]}),x.jsx("p",{className:"",children:f?"Discarded":"Answers"})]}),o.map((C,z)=>{const U=$[Pn(C)]||$[C.question]||[],N=z===o.length-1;return x.jsxs("div",{className:Me("w-full p-3 pt-2.5 pl-4 pr-5 bg-background flex items-center justify-between gap-3",!N&&"border-b border-border"),children:[x.jsx("div",{className:"text-sm text-pretty",children:C.question}),U.length>0&&x.jsx("div",{className:"text-sm font-medium text-right max-w-[50%] text-pretty",children:U.join(", ")}),U.length===0&&x.jsx("div",{className:"text-sm font-medium text-right italic",children:f?"Discarded":"No Response"})]},Pn(C))})]})})}if(r.readonly)return x.jsx("div",{className:"w-full",children:x.jsxs("div",{className:"rounded-2xl border border-border overflow-hidden",children:[x.jsxs("div",{className:"font-medium text-sm p-3 px-4 pr-5 bg-muted border-b border-border flex flex-row items-center justify-between gap-3",children:[x.jsxs("p",{children:["Question",o.length!==1?"s":""]}),x.jsx("p",{className:"text-muted-foreground",children:"Awaiting response"})]}),o.map(($,C)=>{var z;return x.jsxs("div",{className:Me("w-full p-3 pt-2.5 pl-4 pr-5 bg-background flex items-center justify-between gap-3",C<o.length-1&&"border-b border-border"),children:[x.jsx("div",{className:"text-sm text-pretty",children:$.question}),x.jsx("div",{className:"max-w-[50%] text-right text-xs text-muted-foreground text-pretty",children:((z=$.options)==null?void 0:z.map(U=>U.label).join(", "))||"Freeform response"})]},Pn($))})]})});if(!l)return x.jsx("div",{className:"w-full py-2",children:x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(Zv,{className:"h-4 w-4 text-muted-foreground"}),x.jsx("span",{className:"text-sm text-muted-foreground",children:"Questions pending (newer question active)"})]})});if(!V)return null;const le=M(V),L=v[Pn(V)]||"";return x.jsxs("div",{className:"w-full space-y-3",children:[x.jsxs(yR,{question:V.question,currentIndex:h,totalQuestions:o.length,onBack:h>0?ae:void 0,children:[(ne=V.options)==null?void 0:ne.map($=>x.jsx(vR,{option:$,selected:le.includes($.label),multiSelect:V.multiSelect,onClick:()=>P(V,$.label)},$.label)),x.jsx("div",{className:"transition-all bg-background",children:x.jsxs("div",{className:"flex pr-5 items-center justify-between gap-3",children:[x.jsx("input",{type:"text",value:L,onChange:$=>F(V,$.target.value),onKeyDown:oe,placeholder:"Other...",className:"flex-1 px-3 !py-1 pl-4 min-h-[55px] min-w-0 text-sm bg-transparent outline-none text-foreground placeholder:text-muted-foreground"}),x.jsx(Fx,{selected:!!L,multiSelect:V.multiSelect,onClick:V.multiSelect&&L?()=>R(V):void 0})]})})]}),x.jsxs("div",{className:"flex justify-end gap-2 mx-2",children:[!te&&I&&(V.multiSelect||!!L)&&x.jsx(an,{size:"sm",onClick:J,children:"Next"}),te&&x.jsx(an,{size:"sm",onClick:me,disabled:!H,className:Me(!H&&"opacity-50 cursor-not-allowed","rounded-full"),children:"Submit"})]})]})}function SR({message:e,onConfirm:n,isLatest:l}){const r=Au(),o=!!e.result,[u,c]=E.useState(!1),[f,h]=E.useState(!1),[m,y]=E.useState(!1),[g,v]=E.useState(""),b=E.useRef(null),w=e.input;E.useEffect(()=>{m&&b.current&&b.current.focus()},[m]);const k=async()=>{w!=null&&w.plan&&(await navigator.clipboard.writeText(w.plan),h(!0),setTimeout(()=>h(!1),2e3))},T=o?e.result:null,_=(T==null?void 0:T.discarded)===!0;return x.jsxs("div",{className:"flex flex-col gap-3",children:[x.jsxs("div",{className:"relative rounded-2xl border border-border overflow-hidden group/plan",children:[(w==null?void 0:w.plan)&&x.jsx(an,{variant:"ghost",size:"icon",className:Me("absolute top-2 right-2 z-10 h-8 w-8 rounded-md text-muted-foreground opacity-0 group-hover/plan:opacity-100 transition-opacity",!f&&"hover:text-foreground",f&&"hover:!bg-transparent hover:!border-transparent"),onClick:k,children:f?x.jsx(Zr,{className:"h-4 w-4 text-green-400"}):x.jsx(om,{className:"h-4 w-4"})}),x.jsxs("div",{className:Me("!pt-5 !pb-0 px-4 md:py-4.5 md:px-5.5 bg-muted dark:bg-card overflow-scroll no-pre-highlight transition-all",o&&!u?"max-h-[min(400px,40vh)] ":"",o?"hover:!pb-[32px]":""),children:[o&&x.jsxs(an,{variant:"ghost",className:"absolute z-10 bottom-2 pr-2.5 !pl-3.5 h-[34px] inline-flex gap-1 text-sm left-[50%] -translate-x-[50%] text-muted-foreground backdrop-blur-sm hover:text-foreground opacity-0 group-hover/plan:opacity-100 transition-all rounded-full border border-border",onClick:()=>c(!u),children:[u?"Show Less":"Show More",x.jsx(Nk,{className:`size-3.5 transition-transform ${u?"rotate-180":""}`})]}),w!=null&&w.plan?x.jsxs("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:[x.jsx(aa,{remarkPlugins:[oa],components:ia(),children:w.plan}),x.jsx("div",{className:"mt-5"})]}):x.jsx("p",{className:"text-sm text-muted-foreground",children:"No plan provided"})]})]}),o?x.jsx("div",{className:"flex justify-end mx-2",children:x.jsxs("span",{className:"pl-4 inline text-sm font-medium bg-background text-foreground/60 border border-border py-1.5 px-3 rounded-[20px] leading-relaxed max-w-[85%] sm:max-w-[80%]",children:[x.jsx("em",{children:_?"Discarded":T!=null&&T.clearContext?"Approved & Cleared Context":T!=null&&T.confirmed?"Approved":T!=null&&T.message?`Adjusted: "${T.message}"`:"Adjusted Plan"}),x.jsx(Uk,{className:"inline h-4 w-4 ml-1.5 -mt-0.5"})]})}):l?r.readonly?x.jsx("div",{className:"flex justify-end mx-2",children:x.jsx("span",{className:"inline text-sm text-muted-foreground italic",children:"Plan pending in original session"})}):x.jsxs("div",{className:"flex flex-col gap-3",children:[!m&&x.jsxs("div",{className:"flex flex-col md:flex-row items-stretch md:items-center justify-end gap-2 mx-2",children:[x.jsxs(an,{size:"sm",onClick:()=>n(e.toolId,!0,!0),className:"rounded-full bg-primary text-background pr-4 md:order-last",children:[x.jsx(Ck,{className:"h-4 w-4 mr-1.5"}),"Approve & Clear"]}),x.jsxs("div",{className:"flex items-stretch md:items-center gap-2 md:contents",children:[x.jsxs(an,{size:"sm",variant:"outline",onClick:()=>y(!0),className:"rounded-full border-border flex-1 md:flex-initial md:order-first",children:[x.jsx(Jv,{className:"h-4 w-4 mr-1.5"}),"Suggest Edits"]}),x.jsxs(an,{size:"sm",variant:"outline",onClick:()=>n(e.toolId,!0),className:"rounded-full border-border flex-1 md:flex-initial",children:[x.jsx(Zr,{className:"h-4 w-4 mr-1.5"}),"Approve"]})]})]}),m&&x.jsxs("div",{className:"flex flex-col gap-2",children:[x.jsx("textarea",{ref:b,value:g,onChange:j=>v(j.target.value),onKeyDown:j=>{j.key==="Enter"&&!j.shiftKey&&g.trim()&&(j.preventDefault(),n(e.toolId,!1,void 0,g.trim())),j.key==="Escape"&&(y(!1),v(""))},placeholder:"Describe what you'd like to change...",rows:3,className:"w-full rounded-2xl border border-border bg-muted dark:bg-card px-4 py-3 text-sm text-foreground placeholder:text-muted-foreground resize-none outline-none"}),x.jsxs("div",{className:"flex items-center justify-end gap-2 mx-2",children:[x.jsx(an,{size:"sm",variant:"ghost",onClick:()=>{y(!1),v("")},className:"rounded-full text-muted-foreground",children:"Cancel"}),x.jsxs(an,{size:"sm",disabled:!g.trim(),onClick:()=>n(e.toolId,!1,void 0,g.trim()),className:"rounded-full bg-primary text-background disabled:opacity-50 disabled:pointer-events-none",children:[x.jsx(NC,{className:"h-4 w-4 mr-1.5"}),"Adjust Plan"]})]})]})]}):x.jsx("div",{className:"flex justify-end mx-2",children:x.jsx("span",{className:"inline text-sm text-muted-foreground italic",children:"Plan pending (newer prompt active)"})})]})}const wR={completed:{Icon:Zr,iconClass:"text-emerald-500",textClass:"text-muted-foreground"},in_progress:{Icon:sm,iconClass:"text-foreground animate-spin",textClass:"text-foreground font-medium"},pending:{Icon:Lk,iconClass:"text-muted-foreground",textClass:"text-muted-foreground"}};function kR({message:e}){const n=e.input.todos;return n.length?x.jsx("div",{className:"w-full",children:x.jsxs("div",{className:"rounded-2xl border border-border overflow-hidden",children:[x.jsxs("h3",{className:"font-medium text-foreground text-sm p-3 px-4 bg-card border-b border-border flex items-center gap-2",children:[x.jsx(gC,{className:"h-4 w-4 text-muted-foreground"}),"Progress"]}),x.jsx("div",{children:n.map((l,r)=>{const o=r===n.length-1,{Icon:u,iconClass:c,textClass:f}=wR[l.status];return x.jsxs("div",{className:Me("flex items-center gap-3 px-4 py-2.5 bg-background",!o&&"border-b border-border"),children:[x.jsx(u,{className:Me("h-4 w-4 flex-shrink-0",c)}),x.jsx("span",{className:Me("text-sm",f),children:l.status==="in_progress"?l.activeForm:l.content})]},r)})})]})}):null}function Uv(e){return(e&&typeof e=="object"&&"content"in e&&Array.isArray(e.content)?e.content:Array.isArray(e)?e:[]).flatMap(l=>!l||typeof l!="object"||!("type"in l)||l.type!=="image"?[]:"data"in l&&typeof l.data=="string"?[{type:"image",data:l.data,mimeType:typeof l.mimeType=="string"?l.mimeType:void 0}]:"source"in l&&l.source&&typeof l.source=="object"&&"type"in l.source&&l.source.type==="base64"&&"data"in l.source&&typeof l.source.data=="string"?[{type:"image",data:l.source.data,mimeType:typeof l.source.media_type=="string"?l.source.media_type:void 0}]:[])}function CR({images:e}){return x.jsx("div",{className:"flex flex-col gap-3",children:e.map((n,l)=>{const r=n.mimeType||"image/png";return x.jsx("div",{className:"overflow-hidden rounded-lg border border-border bg-muted/20",children:x.jsx("img",{src:`data:${r};base64,${n.data}`,alt:`Read result ${l+1}`,className:"max-h-[50vh] w-full object-contain bg-background"})},`${r}:${l}`)})})}function Hx({message:e,isLoading:n=!1,localPath:l}){var T;const r=e.result!==void 0,o=!r&&n,u=E.useMemo(()=>{if(e.toolKind==="skill")return e.input.skill;if(e.toolKind==="glob")return`Search files ${e.input.pattern==="**/*"?"in all directories":`matching ${e.input.pattern}`}`;if(e.toolKind==="grep"){const _=e.input.pattern,j=e.input.outputMode;return j==="count"?`Count \`${_}\` occurrences`:j==="content"?`Find \`${_}\` in text`:`Find \`${_}\` in files`}return e.toolKind==="bash"?e.input.description||(e.input.command?uR(e.input.command):"Bash"):e.toolKind==="web_search"?e.input.query||"Web Search":e.toolKind==="read_file"?`Read ${Ps(e.input.filePath,l)}`:e.toolKind==="write_file"?`Write ${Ps(e.input.filePath,l)}`:e.toolKind==="edit_file"?`Edit ${Ps(e.input.filePath,l)}`:e.toolKind==="delete_file"?`Delete ${Ps(e.input.filePath,l)}`:e.toolKind==="mcp_generic"?`${am(e.input.tool)} from ${am(e.input.server)}`:e.toolKind==="subagent_task"&&e.input.subagentType||e.toolName},[e.input,e.toolName,l]),c=E.useMemo(()=>e.toolKind==="subagent_task",[e.toolKind]),f=E.useMemo(()=>{if(e.toolKind==="skill")return e.input.skill},[e.input,e.toolKind]),h=e.toolKind==="bash",m=e.toolKind==="write_file",y=e.toolKind==="edit_file",g=e.toolKind==="delete_file",v=e.toolKind==="read_file",b=E.useMemo(()=>{if(typeof e.result=="string")return e.result;if(!e.result)return"";if(typeof e.result=="object"&&e.result!==null&&"content"in e.result){const _=e.result.content;if(typeof _=="string")return _}return JSON.stringify(e.result,null,2)},[e.result]),w=E.useMemo(()=>{if(!v)return[];if(e.result&&typeof e.result=="object"&&"blocks"in e.result){const _=e.result.blocks;if(Array.isArray(_)){const j=Uv(_);if(j.length>0)return j}}return Uv(e.rawResult)},[v,e.rawResult,e.result]),k=E.useMemo(()=>{switch(e.toolKind){case"bash":return e.input.command;case"write_file":case"delete_file":return e.input.content;default:return JSON.stringify(e.input,null,2)}},[e]);return x.jsx(Vi,{className:"w-full",children:x.jsxs(Tu,{expandedContent:x.jsx(_u,{className:"my-4 text-sm",children:x.jsxs("div",{className:"flex flex-col gap-2",children:[y?x.jsx(ro,{content:"",isDiff:!0,oldString:e.input.oldString,newString:e.input.newString}):g?x.jsx(ro,{content:e.input.content}):!v&&!m&&x.jsx(O0,{label:h?x.jsxs("span",{className:"flex items-center gap-2 w-full",children:[x.jsx("span",{children:"Command"}),!!e.input.timeoutMs&&x.jsxs("span",{className:"text-muted-foreground",children:["timeout: ",String(e.input.timeoutMs),"ms"]}),!!e.input.runInBackground&&x.jsx("span",{className:"text-muted-foreground",children:"background"})]}):m?"Contents":"Input",copyText:k,children:k}),r&&v&&!e.isError&&(w.length>0?x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-muted-foreground",children:"Image"}),x.jsx("div",{className:"mt-1",children:x.jsx(CR,{images:w})})]}):x.jsx(ro,{content:b})),m&&!e.isError&&x.jsx(ro,{content:e.input.content}),r&&!v&&!(m&&!e.isError)&&!(y&&!e.isError)&&!(g&&!e.isError)&&x.jsx(O0,{label:e.isError?"Error":"Result",copyText:b,children:b})]})}),children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:(()=>{if(e.isError)return x.jsx(na,{className:"size-4 text-destructive"});if(c)return x.jsx(um,{className:"size-4 text-muted-icon"});const _=Gb(e.toolName);return x.jsx(_,{className:"size-4 text-muted-icon"})})()}),x.jsx(wl,{className:"text-left transition-opacity duration-200 truncate",children:x.jsx(So,{animate:o,shimmerWidth:Math.max(20,(((T=f||u)==null?void 0:T.length)??33)*3),children:f||u})})]})})}function ER({message:e}){const n=l=>{if(l<1e3)return`${l}ms`;const r=Math.floor(l/1e3),o=Math.floor(r/3600),u=Math.floor(r%3600/60),c=r%60;return o>0?`${o}h${u>0?` ${u}m`:""}`:u>0?`${u}m${c>0?` ${c}s`:""}`:`${c}s`};return e.success?x.jsxs(Vi,{className:`px-0.5 text-xs tracking-wide ${e.durationMs>6e4?"":"hidden"}`,children:[x.jsx("div",{className:"w-full h-[1px] bg-border"}),x.jsxs(wl,{className:"whitespace-nowrap text-[11px] tracking-widest text-muted-foreground/60 uppercase flex-shrink-0",children:["Worked for ",n(e.durationMs)]}),x.jsx("div",{className:"w-full h-[1px] bg-border"})]}):x.jsx("div",{className:"px-4 py-3 mx-2 my-1 rounded-lg bg-destructive/10 border border-destructive/20 text-destructive text-sm",children:e.result||"An unknown error occurred."})}function AR({message:e}){return x.jsx("div",{className:"flex items-center justify-end gap-2 text-sm text-muted-foreground my-3",children:x.jsxs("div",{className:"inline-flex gap-1.5 items-center justify-center whitespace-nowrap text-sm font-medium bg-background text-foreground/60 border border-border h-9 pl-1 pr-4 rounded-full",children:[x.jsx(Rk,{className:"h-4 w-4 ml-1.5"}),x.jsx("em",{children:"Interrupted"})]})})}function gu({size:e=4}){return x.jsxs("svg",{className:"flex-1",viewBox:`0 0 100 ${e}`,preserveAspectRatio:"none",style:{height:`${e}px`},children:[x.jsx("pattern",{id:"zigzag",width:e,height:e,patternUnits:"userSpaceOnUse",children:x.jsx("path",{d:`M0 ${e} L${e/2} 0 L${e} ${e}`,fill:"none",stroke:"currentColor",strokeWidth:"0.5",className:"text-muted-foreground/30",style:{stroke:"currentColor"}})}),x.jsx("rect",{width:"100%",height:e,fill:"url(#zigzag)",className:"text-muted-foreground/30"})]})}function TR(){return x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(gu,{}),x.jsx("span",{className:"text-[11px] tracking-widest text-muted-foreground uppercase flex-shrink-0",children:"Compacted"}),x.jsx(gu,{})]})}function _R(){return x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(gu,{}),x.jsx("span",{className:"text-[11px] tracking-widest text-muted-foreground uppercase flex-shrink-0",children:"Context Cleared"}),x.jsx(gu,{})]})}function NR({message:e}){return x.jsx(Vi,{children:x.jsxs(Tu,{expandedContent:x.jsx(_u,{className:"my-4 text-xs",children:x.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:x.jsx(aa,{remarkPlugins:[oa],components:ia(),children:e.summary})})}),children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:x.jsx($v,{className:"h-4.5 w-4.5 text-muted-foreground"})}),x.jsx(wl,{children:"Summarized"})]})})}const zR={compacting:"Compacting..."};function MR({message:e}){const n=zR[e.status]||e.status;return x.jsxs(Vi,{className:"grid grid-cols-[auto_1fr] items-center gap-1.5 text-sm animate-pulse",children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:x.jsx($v,{className:"h-4.5 w-4.5 text-muted-foreground"})}),x.jsx(wl,{className:"text-left transition-opacity duration-200 truncate",children:n})]})}const OR={read_file:{key:"read",singular:"read",plural:"reads"},edit_file:{key:"edit",singular:"edit",plural:"edits"},write_file:{key:"write",singular:"write",plural:"writes"},delete_file:{key:"delete",singular:"delete",plural:"deletes"},bash:{key:"bash",singular:"command",plural:"commands"},grep:{key:"grep",singular:"search",plural:"searches"},glob:{key:"glob",singular:"glob",plural:"globs"},subagent_task:{key:"task",singular:"agent",plural:"agents"},web_search:{key:"websearch",singular:"web search",plural:"web searches"},skill:{key:"skill",singular:"skill",plural:"skills"},todo_write:{key:"todo",singular:"todo update",plural:"todo updates"}},jR={key:"other",singular:"tool call",plural:"tool calls"};function RR(e){return OR[e]??jR}function DR(e){const n=new Map,l=[];for(const r of e){const o=r.toolKind,u=RR(o),c=n.get(u.key);c?c.count++:(n.set(u.key,{category:u,count:1}),l.push(u.key))}return l.map(r=>{const{category:o,count:u}=n.get(r);return`${u} ${u===1?o.singular:o.plural}`}).join(", ")}function LR({messages:e,isLoading:n,localPath:l,expanded:r,onExpandedChange:o}){const u=E.useMemo(()=>DR(e),[e]),f=e.some(h=>h.result===void 0)&&n;return x.jsx(Vi,{className:"w-full",children:x.jsxs("div",{className:"flex flex-col w-full",children:[x.jsx("button",{onClick:()=>o(!r),className:`group cursor-pointer grid grid-cols-[auto_1fr] items-center gap-1 text-sm ${!r&&!f?"hover:opacity-60 transition-opacity":""}`,children:x.jsxs("div",{className:"grid grid-cols-[auto_1fr] items-center gap-1.5",children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:x.jsx(Ql,{className:`h-4.5 w-4.5 text-muted-icon transition-all duration-200 ${r?"rotate-90":""}`})}),x.jsx(wl,{className:"text-left",children:x.jsx(So,{animate:f,children:u})})]})}),r&&x.jsxs("div",{className:"my-4 flex flex-col gap-3",children:[e.map(h=>x.jsx(Hx,{message:h,isLoading:n,localPath:l},h.id)),e.length>5&&x.jsx("button",{onClick:()=>o(!1),className:"cursor-pointer grid grid-cols-[auto_1fr] items-center gap-1 text-xs hover:opacity-80 transition-opacity",children:x.jsxs("div",{className:"grid grid-cols-[auto_1fr] items-center gap-1.5",children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:x.jsx(Ql,{className:"h-4.5 w-4.5 text-muted-icon -rotate-90"})}),x.jsx(wl,{className:"text-left",children:"Collapse"})]})})]})]})})}const IR=new Set(["AskUserQuestion","ExitPlanMode","TodoWrite"]);function Vv(e){if(e.kind!=="tool")return!1;const n=e.toolName;return!IR.has(n)}function BR(e,{isFirstSystem:n,isFirstAccount:l,isLatestTodoWrite:r,hideResult:o,isFinalStatus:u}){let c=!e.hidden;if(c)switch(e.kind){case"system_init":c=n;break;case"account_info":c=l;break;case"tool":c=e.toolKind!=="todo_write"||r;break;case"result":c=!o&&(!e.success||e.durationMs>6e4);break;case"context_window_updated":c=!1;break;case"status":c=u;break;default:c=!0;break}return{isFirstSystem:n,isFirstAccount:l,isLatestTodoWrite:r,hideResult:o,isFinalStatus:u,shouldRender:c}}function UR(e,n){const l=e.findIndex(o=>o.kind==="system_init"),r=e.findIndex(o=>o.kind==="account_info");return e.map((o,u)=>{const c=e[u-1],f=e[u+1];return BR(o,{isFirstSystem:l===u,isFirstAccount:r===u,isLatestTodoWrite:o.id===n.TodoWrite,hideResult:(f==null?void 0:f.kind)==="context_cleared"||(c==null?void 0:c.kind)==="context_cleared",isFinalStatus:u===e.length-1})})}function VR(e,n){const l=[];let r=0;for(;r<e.length;){const o=e[r],u=n[r];if(u!=null&&u.shouldRender&&Vv(o)){const c=[o],f=r;for(r+=1;r<e.length;){const h=e[r],m=n[r];if(!(m!=null&&m.shouldRender)){r+=1;continue}if(!Vv(h))break;c.push(h),r+=1}c.length>=2?l.push({type:"tool-group",messages:c,startIndex:f}):l.push({type:"single",message:o,index:f});continue}l.push({type:"single",message:o,index:r}),r+=1}return l}function Fv(e){var l;return e.type==="single"?e.message.id:`tool-group:${((l=e.messages[0])==null?void 0:l.id)??e.startIndex}`}function Dd(e,n){return e===n?!0:!e||!n||e.length!==n.length?!1:e.every((l,r)=>l===n[r])}function FR(e,n){return e.id===n.id&&e.kind===n.kind&&e.displayName===n.displayName&&e.absolutePath===n.absolutePath&&e.relativePath===n.relativePath&&e.contentUrl===n.contentUrl&&e.mimeType===n.mimeType&&e.size===n.size}function HR(e,n){return e===n?!0:!e||!n||e.length!==n.length?!1:e.every((l,r)=>FR(l,n[r]))}function ta(e,n){if(e===n)return!0;if(e.kind!==n.kind||e.id!==n.id||e.hidden!==n.hidden)return!1;switch(e.kind){case"user_prompt":return e.content===(n.kind==="user_prompt"?n.content:null)&&n.kind==="user_prompt"&&e.steered===n.steered&&HR(e.attachments,n.attachments);case"system_init":return n.kind==="system_init"&&e.provider===n.provider&&e.model===n.model&&Dd(e.tools,n.tools)&&Dd(e.agents,n.agents)&&Dd(e.slashCommands,n.slashCommands)&&e.debugRaw===n.debugRaw;case"account_info":return n.kind==="account_info"&&JSON.stringify(e.accountInfo)===JSON.stringify(n.accountInfo);case"assistant_text":return n.kind==="assistant_text"&&e.text===n.text;case"tool":return n.kind==="tool"&&e.toolKind===n.toolKind&&e.toolName===n.toolName&&e.toolId===n.toolId&&e.isError===n.isError&&JSON.stringify(e.input)===JSON.stringify(n.input)&&JSON.stringify(e.result)===JSON.stringify(n.result)&&JSON.stringify(e.rawResult)===JSON.stringify(n.rawResult);case"result":return n.kind==="result"&&e.success===n.success&&e.cancelled===n.cancelled&&e.result===n.result&&e.durationMs===n.durationMs&&e.costUsd===n.costUsd;case"status":return n.kind==="status"&&e.status===n.status;case"compact_summary":return n.kind==="compact_summary"&&e.summary===n.summary;case"context_window_updated":return n.kind==="context_window_updated"&&JSON.stringify(e.usage)===JSON.stringify(n.usage);case"compact_boundary":case"context_cleared":case"interrupted":return!0;case"unknown":return n.kind==="unknown"&&e.json===n.json}}function PR(e,n){return e.kind!==n.kind||e.id!==n.id?!1:e.kind==="single"&&n.kind==="single"?e.index===n.index&&e.isLoading===n.isLoading&&e.localPath===n.localPath&&e.isFirstSystem===n.isFirstSystem&&e.isFirstAccount===n.isFirstAccount&&e.isLatestAskUserQuestion===n.isLatestAskUserQuestion&&e.isLatestExitPlanMode===n.isLatestExitPlanMode&&e.isLatestTodoWrite===n.isLatestTodoWrite&&e.hideResult===n.hideResult&&e.isFinalStatus===n.isFinalStatus&&ta(e.message,n.message):e.kind==="tool-group"&&n.kind==="tool-group"?e.startIndex===n.startIndex&&e.isLoading===n.isLoading&&e.localPath===n.localPath&&e.messages.length===n.messages.length&&e.messages.every((l,r)=>ta(l,n.messages[r])):!1}function qR(e,n){const l=new Map;let r=e.length!==n.byId.size;const o=e.map((u,c)=>{const f=n.byId.get(u.id),h=f&&PR(f,u)?f:u;return l.set(u.id,h),!r&&n.result[c]!==h&&(r=!0),h});return r?{byId:l,result:o}:n}function GR(e){const n=E.useRef({byId:new Map,result:[]});return E.useMemo(()=>{const l=qR(e,n.current);return n.current=l,l.result},[e])}const YR=E.memo(function({message:n,index:l,isLoading:r,localPath:o,isFirstSystem:u,isFirstAccount:c,isLatestAskUserQuestion:f,isLatestExitPlanMode:h,isLatestTodoWrite:m,hideResult:y,isFinalStatus:g,onAskUserQuestionSubmit:v,onExitPlanModeConfirm:b}){let w=null;if(n.kind==="user_prompt")w=x.jsx(aR,{content:n.content,attachments:n.attachments,steered:n.steered},n.id);else switch(n.kind){case"unknown":w=x.jsx(oR,{json:n.json},n.id);break;case"system_init":w=u?x.jsx(hR,{message:n,rawJson:n.debugRaw},n.id):null;break;case"account_info":w=c?x.jsx(pR,{message:n},n.id):null;break;case"assistant_text":w=x.jsx(gR,{message:n},n.id);break;case"tool":if(n.toolKind==="ask_user_question"){w=x.jsx(xR,{message:n,onSubmit:v,isLatest:f},n.id);break}if(n.toolKind==="exit_plan_mode"){w=x.jsx(SR,{message:n,onConfirm:b,isLatest:h},n.id);break}if(n.toolKind==="todo_write"){w=m?x.jsx(kR,{message:n},n.id):null;break}w=x.jsx(Hx,{message:n,isLoading:r,localPath:o},n.id);break;case"result":w=y?null:x.jsx(ER,{message:n},n.id);break;case"context_window_updated":w=null;break;case"interrupted":w=x.jsx(AR,{message:n},n.id);break;case"compact_boundary":w=x.jsx(TR,{},n.id);break;case"context_cleared":w=x.jsx(_R,{},n.id);break;case"compact_summary":w=x.jsx(NR,{message:n},n.id);break;case"status":w=g?x.jsx(MR,{message:n},n.id):null;break}return w?x.jsx("div",{id:`msg-${n.id}`,className:"group relative","data-index":l,[Lx]:"",children:w}):null},(e,n)=>e.index===n.index&&e.isLoading===n.isLoading&&e.localPath===n.localPath&&e.isFirstSystem===n.isFirstSystem&&e.isFirstAccount===n.isFirstAccount&&e.isLatestAskUserQuestion===n.isLatestAskUserQuestion&&e.isLatestExitPlanMode===n.isLatestExitPlanMode&&e.isLatestTodoWrite===n.isLatestTodoWrite&&e.hideResult===n.hideResult&&e.isFinalStatus===n.isFinalStatus&&e.onAskUserQuestionSubmit===n.onAskUserQuestionSubmit&&e.onExitPlanModeConfirm===n.onExitPlanModeConfirm&&ta(e.message,n.message)),QR=E.memo(function({id:n,startIndex:l,messages:r,isLoading:o,localPath:u,expanded:c,onExpandedChange:f}){return x.jsx("div",{className:"group relative",[Lx]:"",children:x.jsx(LR,{messages:r,isLoading:o,localPath:u,expanded:c,onExpandedChange:h=>f(n,h)})})},(e,n)=>e.id===n.id&&e.startIndex===n.startIndex&&e.isLoading===n.isLoading&&e.localPath===n.localPath&&e.expanded===n.expanded&&e.onExpandedChange===n.onExpandedChange&&e.messages.length===n.messages.length&&e.messages.every((l,r)=>ta(l,n.messages[r])));function Px(e,{isLoading:n,localPath:l,latestToolIds:r}){const o=UR(e,r),u=VR(e,o),c=[];for(const f of u){if(f.type==="tool-group"){c.push({kind:"tool-group",id:Fv(f),startIndex:f.startIndex,messages:f.messages,isLoading:n&&f.messages.some(y=>y.kind==="tool"&&y.result===void 0),localPath:l});continue}const h=o[f.index];if(!h)continue;const m={kind:"single",id:Fv(f),message:f.message,index:f.index,isLoading:f.message.kind==="tool"&&f.message.result===void 0&&n,localPath:l,isFirstSystem:h.isFirstSystem,isFirstAccount:h.isFirstAccount,isLatestAskUserQuestion:f.message.id===r.AskUserQuestion,isLatestExitPlanMode:f.message.id===r.ExitPlanMode,isLatestTodoWrite:h.isLatestTodoWrite,hideResult:h.hideResult,isFinalStatus:h.isFinalStatus};h.shouldRender&&c.push(m)}return c}const qx=E.memo(function({row:n,toolGroupExpanded:l,onToolGroupExpandedChange:r,onAskUserQuestionSubmit:o,onExitPlanModeConfirm:u}){return n.kind==="tool-group"?x.jsx(QR,{id:n.id,startIndex:n.startIndex,messages:n.messages,isLoading:n.isLoading,localPath:n.localPath,expanded:l??!1,onExpandedChange:r}):x.jsx(YR,{message:n.message,index:n.index,isLoading:n.isLoading,localPath:n.localPath,isFirstSystem:n.isFirstSystem,isFirstAccount:n.isFirstAccount,isLatestAskUserQuestion:n.isLatestAskUserQuestion,isLatestExitPlanMode:n.isLatestExitPlanMode,isLatestTodoWrite:n.isLatestTodoWrite,hideResult:n.hideResult,isFinalStatus:n.isFinalStatus,onAskUserQuestionSubmit:o,onExitPlanModeConfirm:u})},(e,n)=>{if(e.toolGroupExpanded!==n.toolGroupExpanded||e.onToolGroupExpandedChange!==n.onToolGroupExpandedChange||e.onAskUserQuestionSubmit!==n.onAskUserQuestionSubmit||e.onExitPlanModeConfirm!==n.onExitPlanModeConfirm||e.row.kind!==n.row.kind||e.row.id!==n.row.id)return!1;if(e.row.kind==="tool-group"&&n.row.kind==="tool-group"){const l=e.row,r=n.row;return l.startIndex===r.startIndex&&l.isLoading===r.isLoading&&l.localPath===r.localPath&&l.messages.length===r.messages.length&&l.messages.every((o,u)=>ta(o,r.messages[u]))}return e.row.kind==="single"&&n.row.kind==="single"?e.row.index===n.row.index&&e.row.isLoading===n.row.isLoading&&e.row.localPath===n.row.localPath&&e.row.isFirstSystem===n.row.isFirstSystem&&e.row.isFirstAccount===n.row.isFirstAccount&&e.row.isLatestAskUserQuestion===n.row.isLatestAskUserQuestion&&e.row.isLatestExitPlanMode===n.row.isLatestExitPlanMode&&e.row.isLatestTodoWrite===n.row.isLatestTodoWrite&&e.row.hideResult===n.row.hideResult&&e.row.isFinalStatus===n.row.isFinalStatus&&ta(e.row.message,n.row.message):!1});function XR({messages:e,isLoading:n,localPath:l,latestToolIds:r,onOpenLocalLink:o,onAskUserQuestionSubmit:u,onExitPlanModeConfirm:c}){const[f,h]=E.useState({}),m=E.useMemo(()=>Px(e,{isLoading:n,localPath:l,latestToolIds:r}),[n,r,l,e]),y=E.useCallback((g,v)=>{h(b=>b[g]===v?b:{...b,[g]:v})},[]);return x.jsx(Pb,{onOpenLocalLink:o,children:m.map(g=>x.jsx("div",{className:"mx-auto max-w-[800px] pb-5",children:x.jsx(qx,{row:g,toolGroupExpanded:g.kind==="tool-group"?f[g.id]??!1:void 0,onToolGroupExpandedChange:y,onAskUserQuestionSubmit:u,onExitPlanModeConfirm:c})},g.id))})}E.memo(XR);const Hv="What are we building?",KR=72,ZR=E.memo(function({activeChatId:n,listRef:l,messages:r,queuedMessages:o,transcriptPaddingBottom:u,localPath:c,latestToolIds:f,isHistoryLoading:h,hasOlderHistory:m,isProcessing:y,runtimeStatus:g,isDraining:v,commandError:b,loadOlderHistory:w,onStopDraining:k,onSteerQueuedMessage:T,onRemoveQueuedMessage:_,onOpenLocalLink:j,onAskUserQuestionSubmit:M,onExitPlanModeConfirm:P,showScrollButton:F,onIsAtEndChange:R,scrollToBottom:H,typedEmptyStateText:V,isEmptyStateTypingComplete:te,isPageFileDragActive:I,showEmptyState:J,headerOffsetPx:ae=KR}){const me=E.useRef(0),[oe,le]=E.useState({}),L=E.useMemo(()=>Px(r,{isLoading:y,localPath:c??void 0,latestToolIds:f}),[y,f,c,r]),X=GR(L);E.useEffect(()=>{le({})},[n]),E.useEffect(()=>{const W=me.current;if(me.current=X.length,W>0||X.length===0)return;R(!0);const se=window.requestAnimationFrame(()=>{var re,ce;(ce=(re=l.current)==null?void 0:re.scrollToEnd)==null||ce.call(re,{animated:!1})});return()=>window.cancelAnimationFrame(se)},[l,R,X.length]);const ne=E.useCallback((W,se)=>{le(re=>re[W]===se?re:{...re,[W]:se})},[]),$=E.useCallback(W=>{var ce,be,he,Ge;const se=typeof W=="object"&&W!==null&&"currentTarget"in W&&W.currentTarget instanceof HTMLElement?W.currentTarget:(be=(ce=l.current)==null?void 0:ce.getScrollableNode)==null?void 0:be.call(ce);if(se instanceof HTMLElement){const We=se.scrollHeight-se.clientHeight-se.scrollTop;R(We<=4);return}const re=(Ge=(he=l.current)==null?void 0:he.getState)==null?void 0:Ge.call(he);re&&R(re.isAtEnd)},[l,R]);E.useEffect(()=>{let W;const se=window.requestAnimationFrame(()=>{var be,he;const re=(he=(be=l.current)==null?void 0:be.getScrollableNode)==null?void 0:he.call(be);if(!(re instanceof HTMLElement))return;const ce=()=>{$({currentTarget:re})};re.addEventListener("scroll",ce,{passive:!0}),ce(),W=()=>{re.removeEventListener("scroll",ce)}});return()=>{window.cancelAnimationFrame(se),W==null||W()}},[n,$,l,X.length]);const C=E.useCallback(()=>{h||!m||w()},[m,h,w]),z=E.useCallback(({item:W})=>x.jsx("div",{className:"mx-auto w-full max-w-[800px] pb-5","data-transcript-row-id":W.id,children:x.jsx(qx,{row:W,toolGroupExpanded:W.kind==="tool-group"?oe[W.id]??!1:void 0,onToolGroupExpandedChange:ne,onAskUserQuestionSubmit:M,onExitPlanModeConfirm:P})}),[ne,M,P,oe]),U=x.jsx("div",{className:"mx-auto w-full max-w-[800px]",style:{paddingTop:`${ae}px`},children:h?x.jsx("div",{className:"flex justify-center pb-4",children:x.jsx("span",{className:"text-sm translate-y-[-0.5px]",children:x.jsx(So,{animate:!0,shimmerWidth:Math.max(20,72),children:"Loading more messages..."})})}):null}),N=x.jsxs("div",{className:"mx-auto w-full max-w-[800px]",children:[y?x.jsx(V3,{status:g??void 0}):null,o.map(W=>x.jsx(B3,{message:W,onRemove:()=>void _(W.id),onSendNow:()=>void T(W.id)},W.id)),!y&&v?x.jsx(pT,{onStop:()=>void k()}):null,b?x.jsx("div",{className:"rounded-xl border border-destructive/20 bg-destructive/5 px-4 py-3 text-sm text-destructive",children:b}):null]});return x.jsxs(x.Fragment,{children:[x.jsx(Pb,{onOpenLocalLink:j,children:x.jsx(bA,{ref:l,data:X,extraData:oe,keyExtractor:$R,renderItem:z,estimatedItemSize:96,initialScrollAtEnd:!0,maintainScrollAtEnd:!0,maintainScrollAtEndThreshold:.1,maintainVisibleContentPosition:!0,onScroll:$,onStartReached:C,onStartReachedThreshold:.1,className:"h-full flex-1 overflow-x-hidden overscroll-y-contain px-3 scroll-pt-[72px] [scrollbar-gutter:auto]",contentContainerStyle:{paddingBottom:u+10},ListHeaderComponent:U,ListFooterComponent:N})}),J?x.jsx("div",{className:"pointer-events-none absolute inset-x-4 animate-fade-in",style:{top:ae,bottom:u},children:x.jsx("div",{className:"mx-auto flex h-full max-w-[800px] items-center justify-center",children:x.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 text-muted-foreground opacity-70",children:[x.jsx(Ld,{strokeWidth:1.5,className:"kanna-empty-state-flower size-8 text-muted-foreground"}),x.jsx("div",{className:"kanna-empty-state-text flex max-w-xs items-center text-center text-base font-normal text-muted-foreground","aria-label":Hv,children:x.jsxs("span",{className:"relative inline-grid place-items-start",children:[x.jsxs("span",{className:"invisible col-start-1 row-start-1 flex items-center whitespace-pre",children:[x.jsx("span",{children:Hv}),x.jsx("span",{className:"kanna-typewriter-cursor-slot","aria-hidden":"true"})]}),x.jsxs("span",{className:"col-start-1 row-start-1 flex items-center whitespace-pre",children:[x.jsx("span",{children:V}),x.jsx("span",{className:"kanna-typewriter-cursor-slot","aria-hidden":"true",children:x.jsx("span",{className:"kanna-typewriter-cursor","data-typing-complete":te?"true":"false"})})]})]})})]})})}):null,I?x.jsxs("div",{className:"pointer-events-none absolute inset-0 z-30",children:[x.jsx("div",{className:"absolute inset-0 backdrop-blur-sm"}),x.jsx("div",{className:"absolute inset-6 ",children:x.jsx("div",{className:"flex h-full items-center justify-center",children:x.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 text-center",children:[x.jsx(FC,{className:"mx-auto size-14 text-foreground",strokeWidth:1.75}),x.jsx("div",{className:"text-xl font-medium text-foreground",children:"Drop up to 10 files"})]})})})]}):null,x.jsx("div",{style:{bottom:u-20},className:Me("absolute left-1/2 z-10 -translate-x-1/2 transition-all",F?"scale-100 duration-300 ease-[cubic-bezier(0.34,1.56,0.64,1)]":"pointer-events-none scale-60 opacity-0 blur-sm duration-300 ease-out"),children:x.jsx("button",{onClick:H,className:"flex aspect-square cursor-pointer items-center gap-1.5 rounded-full border border-border bg-white px-2 text-sm text-primary transition-colors hover:bg-muted hover:text-foreground dark:border-slate-600 dark:bg-slate-700 dark:text-slate-100 dark:hover:bg-slate-600",children:x.jsx(vk,{className:"h-5 w-5"})})})]})});function $R(e){return e.id}const JR=["AskUserQuestion","ExitPlanMode","TodoWrite"],WR=new Set(["TodoWrite"]);function e5(e,n){for(let l=e.length-1;l>=0;l-=1){const r=e[l];if(r.kind!=="tool")continue;const o=r;if(o.toolName===n&&!o.result)return o.id}return null}function t5(e,n){for(let l=e.length-1;l>=0;l-=1){const r=e[l];if(r.kind!=="tool")continue;const o=r;if(o.toolName===n)return o.id}return null}function n5(e){const n={};for(const l of JR)n[l]=WR.has(l)?t5(e,l):e5(e,l);return n}function Ws(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function i5(e){if(typeof e!="string")return e;try{return JSON.parse(e)}catch{return e}}function l5(e){const n=e&&typeof e=="object"&&"content"in e&&Array.isArray(e.content)?e.content:Array.isArray(e)?e:[],l=[];for(const r of n)if(!(!r||typeof r!="object"||!("type"in r))){if(r.type==="text"&&typeof r.text=="string"){l.push({type:"text",text:r.text});continue}if(r.type==="image"){if("data"in r&&typeof r.data=="string"){l.push({type:"image",data:r.data,mimeType:typeof r.mimeType=="string"?r.mimeType:void 0});continue}"source"in r&&r.source&&typeof r.source=="object"&&"type"in r.source&&r.source.type==="base64"&&"data"in r.source&&typeof r.source.data=="string"&&l.push({type:"image",data:r.source.data,mimeType:typeof r.source.media_type=="string"?r.source.media_type:void 0})}}return l}function r5(e,n){const l=i5(n);switch(e.toolKind){case"ask_user_question":{const u=Ws(l),c=Ws(u==null?void 0:u.answers)??(u||{});return{answers:Object.fromEntries(Object.entries(c).map(([f,h])=>Array.isArray(h)?[f,h.map(m=>String(m))]:h&&typeof h=="object"&&Array.isArray(h.answers)?[f,h.answers.map(m=>String(m))]:h==null||h===""?[f,[]]:[f,[String(h)]])),...(u==null?void 0:u.discarded)===!0?{discarded:!0}:{}}}case"exit_plan_mode":{const u=Ws(l);return{confirmed:typeof(u==null?void 0:u.confirmed)=="boolean"?u.confirmed:void 0,clearContext:typeof(u==null?void 0:u.clearContext)=="boolean"?u.clearContext:void 0,message:typeof(u==null?void 0:u.message)=="string"?u.message:void 0,...(u==null?void 0:u.discarded)===!0?{discarded:!0}:{}}}case"read_file":if(typeof l=="string")return l;const r=l5(l);if(r.length>0)return{content:r.flatMap(u=>u.type==="text"?[u.text]:[]).join(""),blocks:r};const o=Ws(l);return{content:typeof(o==null?void 0:o.content)=="string"?o.content:JSON.stringify(l,null,2)};default:return l}}function Gx(e){return new Date(e).toISOString()}function qn(e){return{id:e._id,messageId:e.messageId,timestamp:Gx(e.createdAt),hidden:e.hidden}}function a5(e){return{id:e._id,messageId:e.messageId,hidden:e.hidden,kind:"tool",toolKind:e.tool.toolKind,toolName:e.tool.toolName,toolId:e.tool.toolId,input:e.tool.input,timestamp:Gx(e.createdAt)}}function o5(e){if(e.debugRaw)try{return JSON.parse(e.debugRaw).tool_use_result}catch{return}}function s5(e){const n=new Map,l=[];for(const r of e)switch(r.kind){case"user_prompt":l.push({...qn(r),kind:"user_prompt",content:r.content,attachments:r.attachments??[],steered:r.steered});break;case"system_init":l.push({...qn(r),kind:"system_init",provider:r.provider,model:r.model,tools:r.tools,agents:r.agents,slashCommands:r.slashCommands,mcpServers:r.mcpServers,debugRaw:r.debugRaw});break;case"account_info":l.push({...qn(r),kind:"account_info",accountInfo:r.accountInfo});break;case"assistant_text":l.push({...qn(r),kind:"assistant_text",text:r.text});break;case"tool_call":{const o=a5(r);n.set(r.tool.toolId,{hydrated:o,normalized:r.tool}),l.push(o);break}case"tool_result":{const o=n.get(r.toolId);if(o){const u=o.normalized.toolKind==="ask_user_question"||o.normalized.toolKind==="exit_plan_mode"?o5(r)??r.content:r.content;o.hydrated.result=r5(o.normalized,u),o.hydrated.rawResult=u,o.hydrated.isError=r.isError}break}case"result":l.push({...qn(r),kind:"result",success:!r.isError,cancelled:r.subtype==="cancelled",result:r.result,durationMs:r.durationMs,costUsd:r.costUsd});break;case"status":l.push({...qn(r),kind:"status",status:r.status});break;case"context_window_updated":l.push({...qn(r),kind:"context_window_updated",usage:r.usage});break;case"compact_boundary":l.push({...qn(r),kind:"compact_boundary"});break;case"compact_summary":l.push({...qn(r),kind:"compact_summary",summary:r.summary});break;case"context_cleared":l.push({...qn(r),kind:"context_cleared"});break;case"interrupted":l.push({...qn(r),kind:"interrupted"});break;default:l.push({...qn(r),kind:"unknown",json:JSON.stringify(r,null,2)});break}return l}const Pv=e=>{let n;const l=new Set,r=(m,y)=>{const g=typeof m=="function"?m(n):m;if(!Object.is(g,n)){const v=n;n=y??(typeof g!="object"||g===null)?g:Object.assign({},n,g),l.forEach(b=>b(n,v))}},o=()=>n,f={setState:r,getState:o,getInitialState:()=>h,subscribe:m=>(l.add(m),()=>l.delete(m))},h=n=e(r,o,f);return f},u5=(e=>e?Pv(e):Pv),c5=e=>e;function f5(e,n=c5){const l=Yr.useSyncExternalStore(e.subscribe,Yr.useCallback(()=>n(e.getState()),[e,n]),Yr.useCallback(()=>n(e.getInitialState()),[e,n]));return Yr.useDebugValue(l),l}const d5=e=>{const n=u5(e),l=r=>f5(n,r);return Object.assign(l,n),l},m5=(e=>d5);function h5(e,n){var l,r,o,u,c,f;return{...e,...n,terminal:{...e.terminal,...n.terminal},editor:{...e.editor,...n.editor},providerDefaults:{claude:{...e.providerDefaults.claude,...(l=n.providerDefaults)==null?void 0:l.claude,modelOptions:{...e.providerDefaults.claude.modelOptions,...(o=(r=n.providerDefaults)==null?void 0:r.claude)==null?void 0:o.modelOptions}},codex:{...e.providerDefaults.codex,...(u=n.providerDefaults)==null?void 0:u.codex,modelOptions:{...e.providerDefaults.codex.modelOptions,...(f=(c=n.providerDefaults)==null?void 0:c.codex)==null?void 0:f.modelOptions}}}}}m5()(e=>({settings:null,hydrationStatus:"idle",setHydrationStatus:n=>e({hydrationStatus:n}),setFromServer:n=>e({settings:n,hydrationStatus:"ready"}),applyOptimisticPatch:n=>e(l=>({settings:l.settings?h5(l.settings,n):l.settings}))}));E.createContext(void 0);function p5(e){return e==="dark"?"black-translucent":"default"}function qv(e,n){if(typeof document>"u")return;let l=document.head.querySelector(`meta[name="${e}"]`);l||(l=document.createElement("meta"),l.setAttribute("name",e),document.head.appendChild(l)),l.setAttribute("content",n)}function g5(e){if(typeof document>"u"||typeof window>"u")return;const n=getComputedStyle(document.body).backgroundColor||getComputedStyle(document.documentElement).backgroundColor;n&&qv("theme-color",n),qv("apple-mobile-web-app-status-bar-style",p5(e)),document.documentElement.style.colorScheme=e}const y5="Kanna";function v5(){const[e,n]=E.useState({status:"loading"}),[l,r]=E.useState(!0),o=E.useRef(null);E.useEffect(()=>{let w=!1;return fetch(new URL("./transcript.json",document.baseURI).toString(),{headers:{Accept:"application/json"}}).then(async k=>{if(!k.ok)throw new Error(`Transcript request failed with status ${k.status}`);return await k.json()}).then(k=>{w||n({status:"ready",bundle:k})}).catch(k=>{w||n({status:"error",message:k instanceof Error?k.message:"Unable to load transcript."})}),()=>{w=!0}},[]),E.useEffect(()=>{if(e.status!=="ready")return;document.title=`${e.bundle.title} | Kanna`,document.documentElement.classList.toggle("dark",e.bundle.theme==="dark"),document.documentElement.style.colorScheme=e.bundle.theme;const w=window.requestAnimationFrame(()=>{g5(e.bundle.theme)});return()=>{window.cancelAnimationFrame(w)}},[e]);const u=E.useMemo(()=>e.status==="ready"?s5(e.bundle.messages):[],[e]),c=E.useMemo(()=>n5(u),[u]),f=E.useCallback(()=>{},[]),h=E.useCallback(()=>Promise.resolve(),[]),m=E.useCallback((w,k,T)=>Promise.resolve(),[]),y=E.useCallback((w,k,T,_)=>Promise.resolve(),[]),g=E.useCallback(()=>Promise.resolve(),[]),v=E.useCallback(()=>{var w,k;(k=(w=o.current)==null?void 0:w.scrollToEnd)==null||k.call(w,{animated:!0})},[]),b=E.useCallback(()=>{window.open("https://kanna.sh","_blank","noopener,noreferrer")},[]);return e.status==="loading"?x.jsx("div",{className:"flex h-full items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading transcript..."}):e.status==="error"?x.jsx("div",{className:"flex h-full items-center justify-center bg-background px-6",children:x.jsx("div",{className:"max-w-md rounded-2xl border border-destructive/20 bg-destructive/10 px-4 py-3 text-sm text-foreground",children:e.message})}):x.jsx(dT,{value:{readonly:!0,localLinkMode:"text",attachmentMode:e.bundle.attachmentMode},children:x.jsx("div",{className:"h-full bg-background",children:x.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:[x.jsx("header",{className:"flex-shrink-0 border-b border-border px-4",children:x.jsxs("div",{className:"mx-auto flex h-16 w-full items-center gap-2 min-w-0",children:[x.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[x.jsxs("a",{className:"flex flex-shrink-0 items-center gap-2",href:"https://kanna.sh",target:"_blank",rel:"noopener noreferrer",children:[x.jsx(Ld,{className:"h-5 w-5 sm:h-6 sm:w-6 text-logo"}),x.jsx("span",{className:"font-logo text-base uppercase sm:text-lg text-slate-600 dark:text-slate-100",children:y5})]}),x.jsx("span",{className:"hidden text-sm text-muted-foreground sm:inline",children:"/"}),x.jsx("span",{className:"truncate text-sm text-muted-foreground",children:e.bundle.title})]}),x.jsx("div",{className:"flex-1 md:hidden"})]})}),x.jsxs("div",{className:"relative flex h-full min-h-0 flex-col overflow-hidden",children:[x.jsx(ZR,{activeChatId:e.bundle.chatId,listRef:o,messages:u,queuedMessages:[],transcriptPaddingBottom:120,localPath:e.bundle.localPath,latestToolIds:c,isHistoryLoading:!1,hasOlderHistory:!1,isProcessing:!1,runtimeStatus:null,isDraining:!1,commandError:null,loadOlderHistory:h,onStopDraining:f,onSteerQueuedMessage:h,onRemoveQueuedMessage:h,onOpenLocalLink:g,onAskUserQuestionSubmit:m,onExitPlanModeConfirm:y,showScrollButton:!l&&u.length>0,onIsAtEndChange:r,scrollToBottom:v,typedEmptyStateText:"",isEmptyStateTypingComplete:!0,isPageFileDragActive:!1,showEmptyState:!1,headerOffsetPx:20}),x.jsx("div",{className:"absolute bottom-4 left-1/2 z-20 w-full -translate-x-1/2 md:w-auto",children:x.jsxs("div",{className:"mx-2 flex items-center gap-3 rounded-xl border border-border bg-background/95 px-4 py-3 shadow-lg backdrop-blur-lg md:mx-0",children:[x.jsx(Ld,{className:"h-6 w-6 flex-shrink-0 text-logo"}),x.jsx("p",{className:"flex-1 text-sm text-foreground sm:text-base",children:"Kanna is a delightful open-source harness UI"}),x.jsxs("a",{className:"ml-4 flex flex-shrink-0 flex-row items-center gap-1 rounded-lg bg-logo px-3 py-1.5 pr-2 text-sm font-bold text-white transition-colors hover:bg-logo/90",href:"https://kanna.sh",target:"_blank",rel:"noopener noreferrer",onClick:w=>{w.preventDefault(),b()},children:[x.jsx("span",{children:"Try It"}),x.jsx(Ql,{className:"h-4 w-4 translate-y-[0.5px]"})]})]})})]})]})})})}const Yx=document.getElementById("root");if(!Yx)throw new Error("Missing #root");uk.createRoot(Yx).render(x.jsx(E.StrictMode,{children:x.jsx(v5,{})}));
|