knowns 0.1.3 → 0.1.5
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/CHANGELOG.md +13 -0
- package/CLAUDE.md +236 -160
- package/README.md +38 -2
- package/dist/index.js +5353 -216
- package/dist/mcp/server.js +32 -14
- package/dist/ui/index.css +3088 -1
- package/dist/ui/main.css +1 -1
- package/dist/ui/main.js +250 -229
- package/package.json +23 -3
package/dist/ui/main.js
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
var ZU=Object.create;var{getPrototypeOf:GU,defineProperty:SQ,getOwnPropertyNames:zU}=Object;var WU=Object.prototype.hasOwnProperty;var w0=(N,v,L)=>{L=N!=null?ZU(GU(N)):{};let g=v||!N||!N.__esModule?SQ(L,"default",{value:N,enumerable:!0}):L;for(let q of zU(N))if(!WU.call(g,q))SQ(g,q,{get:()=>N[q],enumerable:!0});return g};var M3=(N,v)=>()=>(v||N((v={exports:{}}).exports,v),v.exports);var uQ=M3((NU)=>{(function(){function N(){if(Y0=!1,p){var c=NU.unstable_now();B2=c;var z0=!0;try{$:{_0=!1,k&&(k=!1,C0(D0),D0=-1),K0=!0;var e=Z0;try{B:{R(c);for(j=L(T);j!==null&&!(j.expirationTime>c&&F());){var U0=j.callback;if(typeof U0==="function"){j.callback=null,Z0=j.priorityLevel;var a=U0(j.expirationTime<=c);if(c=NU.unstable_now(),typeof a==="function"){j.callback=a,R(c),z0=!0;break B}j===L(T)&&g(T),R(c)}else g(T);j=L(T)}if(j!==null)z0=!0;else{var u=L(t);u!==null&&b(K,u.startTime-c),z0=!1}}break $}finally{j=null,Z0=e,K0=!1}z0=void 0}}finally{z0?S0():p=!1}}}function v(c,z0){var e=c.length;c.push(z0);$:for(;0<e;){var U0=e-1>>>1,a=c[U0];if(0<q(a,z0))c[U0]=z0,c[e]=a,e=U0;else break $}}function L(c){return c.length===0?null:c[0]}function g(c){if(c.length===0)return null;var z0=c[0],e=c.pop();if(e!==z0){c[0]=e;$:for(var U0=0,a=c.length,u=a>>>1;U0<u;){var G0=2*(U0+1)-1,F0=c[G0],P0=G0+1,x0=c[P0];if(0>q(F0,e))P0<a&&0>q(x0,F0)?(c[U0]=x0,c[P0]=e,U0=P0):(c[U0]=F0,c[G0]=e,U0=G0);else if(P0<a&&0>q(x0,e))c[U0]=x0,c[P0]=e,U0=P0;else break $}}return z0}function q(c,z0){var e=c.sortIndex-z0.sortIndex;return e!==0?e:c.id-z0.id}function R(c){for(var z0=L(t);z0!==null;){if(z0.callback===null)g(t);else if(z0.startTime<=c)g(t),z0.sortIndex=z0.expirationTime,v(T,z0);else break;z0=L(t)}}function K(c){if(k=!1,R(c),!_0)if(L(T)!==null)_0=!0,p||(p=!0,S0());else{var z0=L(t);z0!==null&&b(K,z0.startTime-c)}}function F(){return Y0?!0:NU.unstable_now()-B2<i?!1:!0}function b(c,z0){D0=v0(function(){c(NU.unstable_now())},z0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),NU.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var E=performance;NU.unstable_now=function(){return E.now()}}else{var I=Date,_=I.now();NU.unstable_now=function(){return I.now()-_}}var T=[],t=[],B0=1,j=null,Z0=3,K0=!1,_0=!1,k=!1,Y0=!1,v0=typeof setTimeout==="function"?setTimeout:null,C0=typeof clearTimeout==="function"?clearTimeout:null,e0=typeof setImmediate<"u"?setImmediate:null,p=!1,D0=-1,i=5,B2=-1;if(typeof e0==="function")var S0=function(){e0(N)};else if(typeof MessageChannel<"u"){var M0=new MessageChannel,G2=M0.port2;M0.port1.onmessage=N,S0=function(){G2.postMessage(null)}}else S0=function(){v0(N,0)};NU.unstable_IdlePriority=5,NU.unstable_ImmediatePriority=1,NU.unstable_LowPriority=4,NU.unstable_NormalPriority=3,NU.unstable_Profiling=null,NU.unstable_UserBlockingPriority=2,NU.unstable_cancelCallback=function(c){c.callback=null},NU.unstable_forceFrameRate=function(c){0>c||125<c?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):i=0<c?Math.floor(1000/c):5},NU.unstable_getCurrentPriorityLevel=function(){return Z0},NU.unstable_next=function(c){switch(Z0){case 1:case 2:case 3:var z0=3;break;default:z0=Z0}var e=Z0;Z0=z0;try{return c()}finally{Z0=e}},NU.unstable_requestPaint=function(){Y0=!0},NU.unstable_runWithPriority=function(c,z0){switch(c){case 1:case 2:case 3:case 4:case 5:break;default:c=3}var e=Z0;Z0=c;try{return z0()}finally{Z0=e}},NU.unstable_scheduleCallback=function(c,z0,e){var U0=NU.unstable_now();switch(typeof e==="object"&&e!==null?(e=e.delay,e=typeof e==="number"&&0<e?U0+e:U0):e=U0,c){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5000}return a=e+a,c={id:B0++,callback:z0,priorityLevel:c,startTime:e,expirationTime:a,sortIndex:-1},e>U0?(c.sortIndex=e,v(t,c),L(T)===null&&c===L(t)&&(k?(C0(D0),D0=-1):k=!0,b(K,e-U0))):(c.sortIndex=a,v(T,c),_0||K0||(_0=!0,p||(p=!0,S0()))),c},NU.unstable_shouldYield=F,NU.unstable_wrapCallback=function(c){var z0=Z0;return function(){var e=Z0;Z0=z0;try{return c.apply(this,arguments)}finally{Z0=e}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var w1=M3((vU,SB)=>{(function(){function N(H,C){Object.defineProperty(g.prototype,H,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",C[0],C[1])}})}function v(H){if(H===null||typeof H!=="object")return null;return H=l1&&H[l1]||H["@@iterator"],typeof H==="function"?H:null}function L(H,C){H=(H=H.constructor)&&(H.displayName||H.name)||"ReactClass";var l=H+"."+C;s[l]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",C,H),s[l]=!0)}function g(H,C,l){this.props=H,this.context=C,this.refs=a0,this.updater=l||Q0}function q(){}function R(H,C,l){this.props=H,this.context=C,this.refs=a0,this.updater=l||Q0}function K(){}function F(H){return""+H}function b(H){try{F(H);var C=!1}catch(y){C=!0}if(C){C=console;var l=C.error,o=typeof Symbol==="function"&&Symbol.toStringTag&&H[Symbol.toStringTag]||H.constructor.name||"Object";return l.call(C,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),F(H)}}function E(H){if(H==null)return null;if(typeof H==="function")return H.$$typeof===J2?null:H.displayName||H.name||null;if(typeof H==="string")return H;switch(H){case a:return"Fragment";case G0:return"Profiler";case u:return"StrictMode";case C2:return"Suspense";case $2:return"SuspenseList";case X1:return"Activity"}if(typeof H==="object")switch(typeof H.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),H.$$typeof){case U0:return"Portal";case P0:return H.displayName||"Context";case F0:return(H._context.displayName||"Context")+".Consumer";case x0:var C=H.render;return H=H.displayName,H||(H=C.displayName||C.name||"",H=H!==""?"ForwardRef("+H+")":"ForwardRef"),H;case S2:return C=H.displayName||null,C!==null?C:E(H.type)||"Memo";case V2:C=H._payload,H=H._init;try{return E(H(C))}catch(l){}}return null}function I(H){if(H===a)return"<>";if(typeof H==="object"&&H!==null&&H.$$typeof===V2)return"<...>";try{var C=E(H);return C?"<"+C+">":"<...>"}catch(l){return"<...>"}}function _(){var H=L0.A;return H===null?null:H.getOwner()}function T(){return Error("react-stack-top-frame")}function t(H){if(X2.call(H,"key")){var C=Object.getOwnPropertyDescriptor(H,"key").get;if(C&&C.isReactWarning)return!1}return H.key!==void 0}function B0(H,C){function l(){y1||(y1=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",C))}l.isReactWarning=!0,Object.defineProperty(H,"key",{get:l,configurable:!0})}function j(){var H=E(this.type);return n2[H]||(n2[H]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),H=this.props.ref,H!==void 0?H:null}function Z0(H,C,l,o,y,n){var N0=l.ref;return H={$$typeof:e,type:H,key:C,props:l,_owner:o},(N0!==void 0?N0:null)!==null?Object.defineProperty(H,"ref",{enumerable:!1,get:j}):Object.defineProperty(H,"ref",{enumerable:!1,value:null}),H._store={},Object.defineProperty(H._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(H,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(H,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:y}),Object.defineProperty(H,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:n}),Object.freeze&&(Object.freeze(H.props),Object.freeze(H)),H}function K0(H,C){return C=Z0(H.type,C,H.props,H._owner,H._debugStack,H._debugTask),H._store&&(C._store.validated=H._store.validated),C}function _0(H){k(H)?H._store&&(H._store.validated=1):typeof H==="object"&&H!==null&&H.$$typeof===V2&&(H._payload.status==="fulfilled"?k(H._payload.value)&&H._payload.value._store&&(H._payload.value._store.validated=1):H._store&&(H._store.validated=1))}function k(H){return typeof H==="object"&&H!==null&&H.$$typeof===e}function Y0(H){var C={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(l){return C[l]})}function v0(H,C){return typeof H==="object"&&H!==null&&H.key!=null?(b(H.key),Y0(""+H.key)):C.toString(36)}function C0(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status==="string"?H.then(K,K):(H.status="pending",H.then(function(C){H.status==="pending"&&(H.status="fulfilled",H.value=C)},function(C){H.status==="pending"&&(H.status="rejected",H.reason=C)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function e0(H,C,l,o,y){var n=typeof H;if(n==="undefined"||n==="boolean")H=null;var N0=!1;if(H===null)N0=!0;else switch(n){case"bigint":case"string":case"number":N0=!0;break;case"object":switch(H.$$typeof){case e:case U0:N0=!0;break;case V2:return N0=H._init,e0(N0(H._payload),C,l,o,y)}}if(N0){N0=H,y=y(N0);var I0=o===""?"."+v0(N0,0):o;return m0(y)?(l="",I0!=null&&(l=I0.replace(z4,"$&/")+"/"),e0(y,C,l,"",function(Y2){return Y2})):y!=null&&(k(y)&&(y.key!=null&&(N0&&N0.key===y.key||b(y.key)),l=K0(y,l+(y.key==null||N0&&N0.key===y.key?"":(""+y.key).replace(z4,"$&/")+"/")+I0),o!==""&&N0!=null&&k(N0)&&N0.key==null&&N0._store&&!N0._store.validated&&(l._store.validated=2),y=l),C.push(y)),1}if(N0=0,I0=o===""?".":o+":",m0(H))for(var H0=0;H0<H.length;H0++)o=H[H0],n=I0+v0(o,H0),N0+=e0(o,C,l,n,y);else if(H0=v(H),typeof H0==="function")for(H0===H.entries&&(F4||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),F4=!0),H=H0.call(H),H0=0;!(o=H.next()).done;)o=o.value,n=I0+v0(o,H0++),N0+=e0(o,C,l,n,y);else if(n==="object"){if(typeof H.then==="function")return e0(C0(H),C,l,o,y);throw C=String(H),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return N0}function p(H,C,l){if(H==null)return H;var o=[],y=0;return e0(H,o,"","",function(n){return C.call(l,n,y++)}),o}function D0(H){if(H._status===-1){var C=H._ioInfo;C!=null&&(C.start=C.end=performance.now()),C=H._result;var l=C();if(l.then(function(y){if(H._status===0||H._status===-1){H._status=1,H._result=y;var n=H._ioInfo;n!=null&&(n.end=performance.now()),l.status===void 0&&(l.status="fulfilled",l.value=y)}},function(y){if(H._status===0||H._status===-1){H._status=2,H._result=y;var n=H._ioInfo;n!=null&&(n.end=performance.now()),l.status===void 0&&(l.status="rejected",l.reason=y)}}),C=H._ioInfo,C!=null){C.value=l;var o=l.displayName;typeof o==="string"&&(C.name=o)}H._status===-1&&(H._status=0,H._result=l)}if(H._status===1)return C=H._result,C===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
var Xy=Object.create;var{getPrototypeOf:Qy,defineProperty:PB,getOwnPropertyNames:Jy}=Object;var $y=Object.prototype.hasOwnProperty;var J0=(Q,$,Y)=>{Y=Q!=null?Xy(Qy(Q)):{};let G=$||!Q||!Q.__esModule?PB(Y,"default",{value:Q,enumerable:!0}):Y;for(let K of Jy(Q))if(!$y.call(G,K))PB(G,K,{get:()=>Q[K],enumerable:!0});return G};var _4=(Q,$)=>()=>($||Q(($={exports:{}}).exports,$),$.exports);var mA=(Q,$)=>{for(var Y in $)PB(Q,Y,{get:$[Y],enumerable:!0,configurable:!0,set:(G)=>$[Y]=()=>G})};var uA=_4((Yy)=>{(function(){function Q(){if(a=!1,h){var o=Yy.unstable_now();_0=o;var H0=!0;try{Z:{k=!1,f&&(f=!1,g(Z0),Z0=-1),y=!0;var G0=b;try{X:{H(o);for(D=Y(O);D!==null&&!(D.expirationTime>o&&z());){var e=D.callback;if(typeof e==="function"){D.callback=null,b=D.priorityLevel;var U0=e(D.expirationTime<=o);if(o=Yy.unstable_now(),typeof U0==="function"){D.callback=U0,H(o),H0=!0;break X}D===Y(O)&&G(O),H(o)}else G(O);D=Y(O)}if(D!==null)H0=!0;else{var T=Y(A);T!==null&&F(B,T.startTime-o),H0=!1}}break Z}finally{D=null,b=G0,y=!1}H0=void 0}}finally{H0?t():h=!1}}}function $(o,H0){var G0=o.length;o.push(H0);Z:for(;0<G0;){var e=G0-1>>>1,U0=o[e];if(0<K(U0,H0))o[e]=H0,o[G0]=U0,G0=e;else break Z}}function Y(o){return o.length===0?null:o[0]}function G(o){if(o.length===0)return null;var H0=o[0],G0=o.pop();if(G0!==H0){o[0]=G0;Z:for(var e=0,U0=o.length,T=U0>>>1;e<T;){var B0=2*(e+1)-1,r=o[B0],S=B0+1,L0=o[S];if(0>K(r,G0))S<U0&&0>K(L0,r)?(o[e]=L0,o[S]=G0,e=S):(o[e]=r,o[B0]=G0,e=B0);else if(S<U0&&0>K(L0,G0))o[e]=L0,o[S]=G0,e=S;else break Z}}return H0}function K(o,H0){var G0=o.sortIndex-H0.sortIndex;return G0!==0?G0:o.id-H0.id}function H(o){for(var H0=Y(A);H0!==null;){if(H0.callback===null)G(A);else if(H0.startTime<=o)G(A),H0.sortIndex=H0.expirationTime,$(O,H0);else break;H0=Y(A)}}function B(o){if(f=!1,H(o),!k)if(Y(O)!==null)k=!0,h||(h=!0,t());else{var H0=Y(A);H0!==null&&F(B,H0.startTime-o)}}function z(){return a?!0:Yy.unstable_now()-_0<E?!1:!0}function F(o,H0){Z0=s(function(){o(Yy.unstable_now())},H0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Yy.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var R=performance;Yy.unstable_now=function(){return R.now()}}else{var N=Date,L=N.now();Yy.unstable_now=function(){return N.now()-L}}var O=[],A=[],C=1,D=null,b=3,y=!1,k=!1,f=!1,a=!1,s=typeof setTimeout==="function"?setTimeout:null,g=typeof clearTimeout==="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null,h=!1,Z0=-1,E=5,_0=-1;if(typeof c==="function")var t=function(){c(Q)};else if(typeof MessageChannel<"u"){var n=new MessageChannel,z0=n.port2;n.port1.onmessage=Q,t=function(){z0.postMessage(null)}}else t=function(){s(Q,0)};Yy.unstable_IdlePriority=5,Yy.unstable_ImmediatePriority=1,Yy.unstable_LowPriority=4,Yy.unstable_NormalPriority=3,Yy.unstable_Profiling=null,Yy.unstable_UserBlockingPriority=2,Yy.unstable_cancelCallback=function(o){o.callback=null},Yy.unstable_forceFrameRate=function(o){0>o||125<o?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<o?Math.floor(1000/o):5},Yy.unstable_getCurrentPriorityLevel=function(){return b},Yy.unstable_next=function(o){switch(b){case 1:case 2:case 3:var H0=3;break;default:H0=b}var G0=b;b=H0;try{return o()}finally{b=G0}},Yy.unstable_requestPaint=function(){a=!0},Yy.unstable_runWithPriority=function(o,H0){switch(o){case 1:case 2:case 3:case 4:case 5:break;default:o=3}var G0=b;b=o;try{return H0()}finally{b=G0}},Yy.unstable_scheduleCallback=function(o,H0,G0){var e=Yy.unstable_now();switch(typeof G0==="object"&&G0!==null?(G0=G0.delay,G0=typeof G0==="number"&&0<G0?e+G0:e):G0=e,o){case 1:var U0=-1;break;case 2:U0=250;break;case 5:U0=1073741823;break;case 4:U0=1e4;break;default:U0=5000}return U0=G0+U0,o={id:C++,callback:H0,priorityLevel:o,startTime:G0,expirationTime:U0,sortIndex:-1},G0>e?(o.sortIndex=G0,$(A,o),Y(O)===null&&o===Y(A)&&(f?(g(Z0),Z0=-1):f=!0,F(B,G0-e))):(o.sortIndex=U0,$(O,o),k||y||(k=!0,h||(h=!0,t()))),o},Yy.unstable_shouldYield=z,Yy.unstable_wrapCallback=function(o){var H0=b;return function(){var G0=b;b=H0;try{return o.apply(this,arguments)}finally{b=G0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var k0=_4((qy,Yq)=>{(function(){function Q(w,i){Object.defineProperty(G.prototype,w,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",i[0],i[1])}})}function $(w){if(w===null||typeof w!=="object")return null;return w=v1&&w[v1]||w["@@iterator"],typeof w==="function"?w:null}function Y(w,i){w=(w=w.constructor)&&(w.displayName||w.name)||"ReactClass";var M0=w+"."+i;R0[M0]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",i,w),R0[M0]=!0)}function G(w,i,M0){this.props=w,this.context=i,this.refs=H1,this.updater=M0||h0}function K(){}function H(w,i,M0){this.props=w,this.context=i,this.refs=H1,this.updater=M0||h0}function B(){}function z(w){return""+w}function F(w){try{z(w);var i=!1}catch(Q0){i=!0}if(i){i=console;var M0=i.error,I0=typeof Symbol==="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return M0.call(i,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",I0),z(w)}}function R(w){if(w==null)return null;if(typeof w==="function")return w.$$typeof===h1?null:w.displayName||w.name||null;if(typeof w==="string")return w;switch(w){case U0:return"Fragment";case B0:return"Profiler";case T:return"StrictMode";case A0:return"Suspense";case V0:return"SuspenseList";case $1:return"Activity"}if(typeof w==="object")switch(typeof w.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case e:return"Portal";case S:return w.displayName||"Context";case r:return(w._context.displayName||"Context")+".Consumer";case L0:var i=w.render;return w=w.displayName,w||(w=i.displayName||i.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case C0:return i=w.displayName||null,i!==null?i:R(w.type)||"Memo";case u0:i=w._payload,w=w._init;try{return R(w(i))}catch(M0){}}return null}function N(w){if(w===U0)return"<>";if(typeof w==="object"&&w!==null&&w.$$typeof===u0)return"<...>";try{var i=R(w);return i?"<"+i+">":"<...>"}catch(M0){return"<...>"}}function L(){var w=c0.A;return w===null?null:w.getOwner()}function O(){return Error("react-stack-top-frame")}function A(w){if(D1.call(w,"key")){var i=Object.getOwnPropertyDescriptor(w,"key").get;if(i&&i.isReactWarning)return!1}return w.key!==void 0}function C(w,i){function M0(){F4||(F4=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",i))}M0.isReactWarning=!0,Object.defineProperty(w,"key",{get:M0,configurable:!0})}function D(){var w=R(this.type);return V5[w]||(V5[w]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),w=this.props.ref,w!==void 0?w:null}function b(w,i,M0,I0,Q0,D0){var m0=M0.ref;return w={$$typeof:G0,type:w,key:i,props:M0,_owner:I0},(m0!==void 0?m0:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:D}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Q0}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:D0}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function y(w,i){return i=b(w.type,i,w.props,w._owner,w._debugStack,w._debugTask),w._store&&(i._store.validated=w._store.validated),i}function k(w){f(w)?w._store&&(w._store.validated=1):typeof w==="object"&&w!==null&&w.$$typeof===u0&&(w._payload.status==="fulfilled"?f(w._payload.value)&&w._payload.value._store&&(w._payload.value._store.validated=1):w._store&&(w._store.validated=1))}function f(w){return typeof w==="object"&&w!==null&&w.$$typeof===G0}function a(w){var i={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(M0){return i[M0]})}function s(w,i){return typeof w==="object"&&w!==null&&w.key!=null?(F(w.key),a(""+w.key)):i.toString(36)}function g(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status==="string"?w.then(B,B):(w.status="pending",w.then(function(i){w.status==="pending"&&(w.status="fulfilled",w.value=i)},function(i){w.status==="pending"&&(w.status="rejected",w.reason=i)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function c(w,i,M0,I0,Q0){var D0=typeof w;if(D0==="undefined"||D0==="boolean")w=null;var m0=!1;if(w===null)m0=!0;else switch(D0){case"bigint":case"string":case"number":m0=!0;break;case"object":switch(w.$$typeof){case G0:case e:m0=!0;break;case u0:return m0=w._init,c(m0(w._payload),i,M0,I0,Q0)}}if(m0){m0=w,Q0=Q0(m0);var q1=I0===""?"."+s(m0,0):I0;return s0(Q0)?(M0="",q1!=null&&(M0=q1.replace(W0,"$&/")+"/"),c(Q0,i,M0,"",function(S1){return S1})):Q0!=null&&(f(Q0)&&(Q0.key!=null&&(m0&&m0.key===Q0.key||F(Q0.key)),M0=y(Q0,M0+(Q0.key==null||m0&&m0.key===Q0.key?"":(""+Q0.key).replace(W0,"$&/")+"/")+q1),I0!==""&&m0!=null&&f(m0)&&m0.key==null&&m0._store&&!m0._store.validated&&(M0._store.validated=2),Q0=M0),i.push(Q0)),1}if(m0=0,q1=I0===""?".":I0+":",s0(w))for(var i0=0;i0<w.length;i0++)I0=w[i0],D0=q1+s(I0,i0),m0+=c(I0,i,M0,D0,Q0);else if(i0=$(w),typeof i0==="function")for(i0===w.entries&&(K0||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),K0=!0),w=i0.call(w),i0=0;!(I0=w.next()).done;)I0=I0.value,D0=q1+s(I0,i0++),m0+=c(I0,i,M0,D0,Q0);else if(D0==="object"){if(typeof w.then==="function")return c(g(w),i,M0,I0,Q0);throw i=String(w),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}return m0}function h(w,i,M0){if(w==null)return w;var I0=[],Q0=0;return c(w,I0,"","",function(D0){return i.call(M0,D0,Q0++)}),I0}function Z0(w){if(w._status===-1){var i=w._ioInfo;i!=null&&(i.start=i.end=performance.now()),i=w._result;var M0=i();if(M0.then(function(Q0){if(w._status===0||w._status===-1){w._status=1,w._result=Q0;var D0=w._ioInfo;D0!=null&&(D0.end=performance.now()),M0.status===void 0&&(M0.status="fulfilled",M0.value=Q0)}},function(Q0){if(w._status===0||w._status===-1){w._status=2,w._result=Q0;var D0=w._ioInfo;D0!=null&&(D0.end=performance.now()),M0.status===void 0&&(M0.status="rejected",M0.reason=Q0)}}),i=w._ioInfo,i!=null){i.value=M0;var I0=M0.displayName;typeof I0==="string"&&(i.name=I0)}w._status===-1&&(w._status=0,w._result=M0)}if(w._status===1)return i=w._result,i===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
5
5
|
|
|
6
|
-
Did you accidentally put curly braces around the import?`,
|
|
6
|
+
Did you accidentally put curly braces around the import?`,i),"default"in i||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
7
|
|
|
8
8
|
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,i),i.default;throw w._result}function E(){var w=c0.H;return w===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
10
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
11
|
2. You might be breaking the Rules of Hooks
|
|
12
12
|
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),H}function B2(){L0.asyncTransitions--}function S0(H){if(V4===null)try{var C=("require"+Math.random()).slice(0,7);V4=(SB&&SB[C]).call(SB,"timers").setImmediate}catch(l){V4=function(o){h5===!1&&(h5=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var y=new MessageChannel;y.port1.onmessage=o,y.port2.postMessage(void 0)}}return V4(H)}function M0(H){return 1<H.length&&typeof AggregateError==="function"?AggregateError(H):H[0]}function G2(H,C){C!==q7-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),q7=C}function c(H,C,l){var o=L0.actQueue;if(o!==null)if(o.length!==0)try{z0(o),S0(function(){return c(H,C,l)});return}catch(y){L0.thrownErrors.push(y)}else L0.actQueue=null;0<L0.thrownErrors.length?(o=M0(L0.thrownErrors),L0.thrownErrors.length=0,l(o)):C(H)}function z0(H){if(!c7){c7=!0;var C=0;try{for(;C<H.length;C++){var l=H[C];do{L0.didUsePromise=!1;var o=l(!1);if(o!==null){if(L0.didUsePromise){H[C]=l,H.splice(0,C);return}l=o}else break}while(1)}H.length=0}catch(y){H.splice(0,C+1),L0.thrownErrors.push(y)}finally{c7=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=Symbol.for("react.transitional.element"),U0=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),G0=Symbol.for("react.profiler"),F0=Symbol.for("react.consumer"),P0=Symbol.for("react.context"),x0=Symbol.for("react.forward_ref"),C2=Symbol.for("react.suspense"),$2=Symbol.for("react.suspense_list"),S2=Symbol.for("react.memo"),V2=Symbol.for("react.lazy"),X1=Symbol.for("react.activity"),l1=Symbol.iterator,s={},Q0={isMounted:function(){return!1},enqueueForceUpdate:function(H){L(H,"forceUpdate")},enqueueReplaceState:function(H){L(H,"replaceState")},enqueueSetState:function(H){L(H,"setState")}},r0=Object.assign,a0={};Object.freeze(a0),g.prototype.isReactComponent={},g.prototype.setState=function(H,C){if(typeof H!=="object"&&typeof H!=="function"&&H!=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,H,C,"setState")},g.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};var u0={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(h2 in u0)u0.hasOwnProperty(h2)&&N(h2,u0[h2]);q.prototype=g.prototype,u0=R.prototype=new q,u0.constructor=R,r0(u0,g.prototype),u0.isPureReactComponent=!0;var m0=Array.isArray,J2=Symbol.for("react.client.reference"),L0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},X2=Object.prototype.hasOwnProperty,T0=console.createTask?console.createTask:function(){return null};u0={react_stack_bottom_frame:function(H){return H()}};var y1,g1,n2={},W0=u0.react_stack_bottom_frame.bind(u0,T)(),S1=T0(I(T)),F4=!1,z4=/\/+/g,W4=typeof reportError==="function"?reportError:function(H){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof H==="object"&&H!==null&&typeof H.message==="string"?String(H.message):String(H),error:H});if(!window.dispatchEvent(C))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",H);return}console.error(H)},h5=!1,V4=null,q7=0,Y1=!1,c7=!1,C3=typeof queueMicrotask==="function"?function(H){queueMicrotask(function(){return queueMicrotask(H)})}:S0;u0=Object.freeze({__proto__:null,c:function(H){return i().useMemoCache(H)}});var h2={map:p,forEach:function(H,C,l){p(H,function(){C.apply(this,arguments)},l)},count:function(H){var C=0;return p(H,function(){C++}),C},toArray:function(H){return p(H,function(C){return C})||[]},only:function(H){if(!k(H))throw Error("React.Children.only expected to receive a single React element child.");return H}};vU.Activity=X1,vU.Children=h2,vU.Component=g,vU.Fragment=a,vU.Profiler=G0,vU.PureComponent=R,vU.StrictMode=u,vU.Suspense=C2,vU.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L0,vU.__COMPILER_RUNTIME=u0,vU.act=function(H){var C=L0.actQueue,l=q7;q7++;var o=L0.actQueue=C!==null?C:[],y=!1;try{var n=H()}catch(H0){L0.thrownErrors.push(H0)}if(0<L0.thrownErrors.length)throw G2(C,l),H=M0(L0.thrownErrors),L0.thrownErrors.length=0,H;if(n!==null&&typeof n==="object"&&typeof n.then==="function"){var N0=n;return C3(function(){y||Y1||(Y1=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(H0,Y2){y=!0,N0.then(function(F2){if(G2(C,l),l===0){try{z0(o),S0(function(){return c(F2,H0,Y2)})}catch(k5){L0.thrownErrors.push(k5)}if(0<L0.thrownErrors.length){var A4=M0(L0.thrownErrors);L0.thrownErrors.length=0,Y2(A4)}}else H0(F2)},function(F2){G2(C,l),0<L0.thrownErrors.length?(F2=M0(L0.thrownErrors),L0.thrownErrors.length=0,Y2(F2)):Y2(F2)})}}}var I0=n;if(G2(C,l),l===0&&(z0(o),o.length!==0&&C3(function(){y||Y1||(Y1=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),L0.actQueue=null),0<L0.thrownErrors.length)throw H=M0(L0.thrownErrors),L0.thrownErrors.length=0,H;return{then:function(H0,Y2){y=!0,l===0?(L0.actQueue=o,S0(function(){return c(I0,H0,Y2)})):H0(I0)}}},vU.cache=function(H){return function(){return H.apply(null,arguments)}},vU.cacheSignal=function(){return null},vU.captureOwnerStack=function(){var H=L0.getCurrentStack;return H===null?null:H()},vU.cloneElement=function(H,C,l){if(H===null||H===void 0)throw Error("The argument must be a React element, but you passed "+H+".");var o=r0({},H.props),y=H.key,n=H._owner;if(C!=null){var N0;$:{if(X2.call(C,"ref")&&(N0=Object.getOwnPropertyDescriptor(C,"ref").get)&&N0.isReactWarning){N0=!1;break $}N0=C.ref!==void 0}N0&&(n=_()),t(C)&&(b(C.key),y=""+C.key);for(I0 in C)!X2.call(C,I0)||I0==="key"||I0==="__self"||I0==="__source"||I0==="ref"&&C.ref===void 0||(o[I0]=C[I0])}var I0=arguments.length-2;if(I0===1)o.children=l;else if(1<I0){N0=Array(I0);for(var H0=0;H0<I0;H0++)N0[H0]=arguments[H0+2];o.children=N0}o=Z0(H.type,y,o,n,H._debugStack,H._debugTask);for(y=2;y<arguments.length;y++)_0(arguments[y]);return o},vU.createContext=function(H){return H={$$typeof:P0,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null},H.Provider=H,H.Consumer={$$typeof:F0,_context:H},H._currentRenderer=null,H._currentRenderer2=null,H},vU.createElement=function(H,C,l){for(var o=2;o<arguments.length;o++)_0(arguments[o]);o={};var y=null;if(C!=null)for(H0 in g1||!("__self"in C)||"key"in C||(g1=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),t(C)&&(b(C.key),y=""+C.key),C)X2.call(C,H0)&&H0!=="key"&&H0!=="__self"&&H0!=="__source"&&(o[H0]=C[H0]);var n=arguments.length-2;if(n===1)o.children=l;else if(1<n){for(var N0=Array(n),I0=0;I0<n;I0++)N0[I0]=arguments[I0+2];Object.freeze&&Object.freeze(N0),o.children=N0}if(H&&H.defaultProps)for(H0 in n=H.defaultProps,n)o[H0]===void 0&&(o[H0]=n[H0]);y&&B0(o,typeof H==="function"?H.displayName||H.name||"Unknown":H);var H0=1e4>L0.recentlyCreatedOwnerStacks++;return Z0(H,y,o,_(),H0?Error("react-stack-top-frame"):W0,H0?T0(I(H)):S1)},vU.createRef=function(){var H={current:null};return Object.seal(H),H},vU.forwardRef=function(H){H!=null&&H.$$typeof===S2?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof H!=="function"?console.error("forwardRef requires a render function but was given %s.",H===null?"null":typeof H):H.length!==0&&H.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",H.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),H!=null&&H.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var C={$$typeof:x0,render:H},l;return Object.defineProperty(C,"displayName",{enumerable:!1,configurable:!0,get:function(){return l},set:function(o){l=o,H.name||H.displayName||(Object.defineProperty(H,"name",{value:o}),H.displayName=o)}}),C},vU.isValidElement=k,vU.lazy=function(H){H={_status:-1,_result:H};var C={$$typeof:V2,_payload:H,_init:D0},l={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return H._ioInfo=l,C._debugInfo=[{awaited:l}],C},vU.memo=function(H,C){H==null&&console.error("memo: The first argument must be a component. Instead received: %s",H===null?"null":typeof H),C={$$typeof:S2,type:H,compare:C===void 0?null:C};var l;return Object.defineProperty(C,"displayName",{enumerable:!1,configurable:!0,get:function(){return l},set:function(o){l=o,H.name||H.displayName||(Object.defineProperty(H,"name",{value:o}),H.displayName=o)}}),C},vU.startTransition=function(H){var C=L0.T,l={};l._updatedFibers=new Set,L0.T=l;try{var o=H(),y=L0.S;y!==null&&y(l,o),typeof o==="object"&&o!==null&&typeof o.then==="function"&&(L0.asyncTransitions++,o.then(B2,B2),o.then(K,W4))}catch(n){W4(n)}finally{C===null&&l._updatedFibers&&(H=l._updatedFibers.size,l._updatedFibers.clear(),10<H&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),C!==null&&l.types!==null&&(C.types!==null&&C.types!==l.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),C.types=l.types),L0.T=C}},vU.unstable_useCacheRefresh=function(){return i().useCacheRefresh()},vU.use=function(H){return i().use(H)},vU.useActionState=function(H,C,l){return i().useActionState(H,C,l)},vU.useCallback=function(H,C){return i().useCallback(H,C)},vU.useContext=function(H){var C=i();return H.$$typeof===F0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),C.useContext(H)},vU.useDebugValue=function(H,C){return i().useDebugValue(H,C)},vU.useDeferredValue=function(H,C){return i().useDeferredValue(H,C)},vU.useEffect=function(H,C){return H==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),i().useEffect(H,C)},vU.useEffectEvent=function(H){return i().useEffectEvent(H)},vU.useId=function(){return i().useId()},vU.useImperativeHandle=function(H,C,l){return i().useImperativeHandle(H,C,l)},vU.useInsertionEffect=function(H,C){return H==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),i().useInsertionEffect(H,C)},vU.useLayoutEffect=function(H,C){return H==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),i().useLayoutEffect(H,C)},vU.useMemo=function(H,C){return i().useMemo(H,C)},vU.useOptimistic=function(H,C){return i().useOptimistic(H,C)},vU.useReducer=function(H,C,l){return i().useReducer(H,C,l)},vU.useRef=function(H){return i().useRef(H)},vU.useState=function(H){return i().useState(H)},vU.useSyncExternalStore=function(H,C,l){return i().useSyncExternalStore(H,C,l)},vU.useTransition=function(){return i().useTransition()},vU.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var xQ=M3((JU)=>{var AG=w0(w1());(function(){function N(){}function v(I){return""+I}function L(I,_,T){var t=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{v(t);var B0=!1}catch(j){B0=!0}return B0&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"),v(t)),{$$typeof:b,key:t==null?null:""+t,children:I,containerInfo:_,implementation:T}}function g(I,_){if(I==="font")return"";if(typeof _==="string")return _==="use-credentials"?_:""}function q(I){return I===null?"`null`":I===void 0?"`undefined`":I===""?"an empty string":'something with type "'+typeof I+'"'}function R(I){return I===null?"`null`":I===void 0?"`undefined`":I===""?"an empty string":typeof I==="string"?JSON.stringify(I):typeof I==="number"?"`"+I+"`":'something with type "'+typeof I+'"'}function K(){var I=E.H;return I===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
13
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),w}function _0(){c0.asyncTransitions--}function t(w){if(I1===null)try{var i=("require"+Math.random()).slice(0,7);I1=(Yq&&Yq[i]).call(Yq,"timers").setImmediate}catch(M0){I1=function(I0){B1===!1&&(B1=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Q0=new MessageChannel;Q0.port1.onmessage=I0,Q0.port2.postMessage(void 0)}}return I1(w)}function n(w){return 1<w.length&&typeof AggregateError==="function"?AggregateError(w):w[0]}function z0(w,i){i!==B5-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),B5=i}function o(w,i,M0){var I0=c0.actQueue;if(I0!==null)if(I0.length!==0)try{H0(I0),t(function(){return o(w,i,M0)});return}catch(Q0){c0.thrownErrors.push(Q0)}else c0.actQueue=null;0<c0.thrownErrors.length?(I0=n(c0.thrownErrors),c0.thrownErrors.length=0,M0(I0)):i(w)}function H0(w){if(!n5){n5=!0;var i=0;try{for(;i<w.length;i++){var M0=w[i];do{c0.didUsePromise=!1;var I0=M0(!1);if(I0!==null){if(c0.didUsePromise){w[i]=M0,w.splice(0,i);return}M0=I0}else break}while(1)}w.length=0}catch(Q0){w.splice(0,i+1),c0.thrownErrors.push(Q0)}finally{n5=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var G0=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),U0=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),B0=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),S=Symbol.for("react.context"),L0=Symbol.for("react.forward_ref"),A0=Symbol.for("react.suspense"),V0=Symbol.for("react.suspense_list"),C0=Symbol.for("react.memo"),u0=Symbol.for("react.lazy"),$1=Symbol.for("react.activity"),v1=Symbol.iterator,R0={},h0={isMounted:function(){return!1},enqueueForceUpdate:function(w){Y(w,"forceUpdate")},enqueueReplaceState:function(w){Y(w,"replaceState")},enqueueSetState:function(w){Y(w,"setState")}},Y1=Object.assign,H1={};Object.freeze(H1),G.prototype.isReactComponent={},G.prototype.setState=function(w,i){if(typeof w!=="object"&&typeof w!=="function"&&w!=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,w,i,"setState")},G.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};var e0={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(c1 in e0)e0.hasOwnProperty(c1)&&Q(c1,e0[c1]);K.prototype=G.prototype,e0=H.prototype=new K,e0.constructor=H,Y1(e0,G.prototype),e0.isPureReactComponent=!0;var s0=Array.isArray,h1=Symbol.for("react.client.reference"),c0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},D1=Object.prototype.hasOwnProperty,X1=console.createTask?console.createTask:function(){return null};e0={react_stack_bottom_frame:function(w){return w()}};var F4,a5,V5={},v0=e0.react_stack_bottom_frame.bind(e0,O)(),L4=X1(N(O)),K0=!1,W0=/\/+/g,b0=typeof reportError==="function"?reportError:function(w){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(i))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",w);return}console.error(w)},B1=!1,I1=null,B5=0,X5=!1,n5=!1,R2=typeof queueMicrotask==="function"?function(w){queueMicrotask(function(){return queueMicrotask(w)})}:t;e0=Object.freeze({__proto__:null,c:function(w){return E().useMemoCache(w)}});var c1={map:h,forEach:function(w,i,M0){h(w,function(){i.apply(this,arguments)},M0)},count:function(w){var i=0;return h(w,function(){i++}),i},toArray:function(w){return h(w,function(i){return i})||[]},only:function(w){if(!f(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};qy.Activity=$1,qy.Children=c1,qy.Component=G,qy.Fragment=U0,qy.Profiler=B0,qy.PureComponent=H,qy.StrictMode=T,qy.Suspense=A0,qy.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c0,qy.__COMPILER_RUNTIME=e0,qy.act=function(w){var i=c0.actQueue,M0=B5;B5++;var I0=c0.actQueue=i!==null?i:[],Q0=!1;try{var D0=w()}catch(i0){c0.thrownErrors.push(i0)}if(0<c0.thrownErrors.length)throw z0(i,M0),w=n(c0.thrownErrors),c0.thrownErrors.length=0,w;if(D0!==null&&typeof D0==="object"&&typeof D0.then==="function"){var m0=D0;return R2(function(){Q0||X5||(X5=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(i0,S1){Q0=!0,m0.then(function(Q5){if(z0(i,M0),M0===0){try{H0(I0),t(function(){return o(Q5,i0,S1)})}catch(Y3){c0.thrownErrors.push(Y3)}if(0<c0.thrownErrors.length){var D6=n(c0.thrownErrors);c0.thrownErrors.length=0,S1(D6)}}else i0(Q5)},function(Q5){z0(i,M0),0<c0.thrownErrors.length?(Q5=n(c0.thrownErrors),c0.thrownErrors.length=0,S1(Q5)):S1(Q5)})}}}var q1=D0;if(z0(i,M0),M0===0&&(H0(I0),I0.length!==0&&R2(function(){Q0||X5||(X5=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),c0.actQueue=null),0<c0.thrownErrors.length)throw w=n(c0.thrownErrors),c0.thrownErrors.length=0,w;return{then:function(i0,S1){Q0=!0,M0===0?(c0.actQueue=I0,t(function(){return o(q1,i0,S1)})):i0(q1)}}},qy.cache=function(w){return function(){return w.apply(null,arguments)}},qy.cacheSignal=function(){return null},qy.captureOwnerStack=function(){var w=c0.getCurrentStack;return w===null?null:w()},qy.cloneElement=function(w,i,M0){if(w===null||w===void 0)throw Error("The argument must be a React element, but you passed "+w+".");var I0=Y1({},w.props),Q0=w.key,D0=w._owner;if(i!=null){var m0;Z:{if(D1.call(i,"ref")&&(m0=Object.getOwnPropertyDescriptor(i,"ref").get)&&m0.isReactWarning){m0=!1;break Z}m0=i.ref!==void 0}m0&&(D0=L()),A(i)&&(F(i.key),Q0=""+i.key);for(q1 in i)!D1.call(i,q1)||q1==="key"||q1==="__self"||q1==="__source"||q1==="ref"&&i.ref===void 0||(I0[q1]=i[q1])}var q1=arguments.length-2;if(q1===1)I0.children=M0;else if(1<q1){m0=Array(q1);for(var i0=0;i0<q1;i0++)m0[i0]=arguments[i0+2];I0.children=m0}I0=b(w.type,Q0,I0,D0,w._debugStack,w._debugTask);for(Q0=2;Q0<arguments.length;Q0++)k(arguments[Q0]);return I0},qy.createContext=function(w){return w={$$typeof:S,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:r,_context:w},w._currentRenderer=null,w._currentRenderer2=null,w},qy.createElement=function(w,i,M0){for(var I0=2;I0<arguments.length;I0++)k(arguments[I0]);I0={};var Q0=null;if(i!=null)for(i0 in a5||!("__self"in i)||"key"in i||(a5=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),A(i)&&(F(i.key),Q0=""+i.key),i)D1.call(i,i0)&&i0!=="key"&&i0!=="__self"&&i0!=="__source"&&(I0[i0]=i[i0]);var D0=arguments.length-2;if(D0===1)I0.children=M0;else if(1<D0){for(var m0=Array(D0),q1=0;q1<D0;q1++)m0[q1]=arguments[q1+2];Object.freeze&&Object.freeze(m0),I0.children=m0}if(w&&w.defaultProps)for(i0 in D0=w.defaultProps,D0)I0[i0]===void 0&&(I0[i0]=D0[i0]);Q0&&C(I0,typeof w==="function"?w.displayName||w.name||"Unknown":w);var i0=1e4>c0.recentlyCreatedOwnerStacks++;return b(w,Q0,I0,L(),i0?Error("react-stack-top-frame"):v0,i0?X1(N(w)):L4)},qy.createRef=function(){var w={current:null};return Object.seal(w),w},qy.forwardRef=function(w){w!=null&&w.$$typeof===C0?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof w!=="function"?console.error("forwardRef requires a render function but was given %s.",w===null?"null":typeof w):w.length!==0&&w.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",w.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),w!=null&&w.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var i={$$typeof:L0,render:w},M0;return Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return M0},set:function(I0){M0=I0,w.name||w.displayName||(Object.defineProperty(w,"name",{value:I0}),w.displayName=I0)}}),i},qy.isValidElement=f,qy.lazy=function(w){w={_status:-1,_result:w};var i={$$typeof:u0,_payload:w,_init:Z0},M0={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return w._ioInfo=M0,i._debugInfo=[{awaited:M0}],i},qy.memo=function(w,i){w==null&&console.error("memo: The first argument must be a component. Instead received: %s",w===null?"null":typeof w),i={$$typeof:C0,type:w,compare:i===void 0?null:i};var M0;return Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return M0},set:function(I0){M0=I0,w.name||w.displayName||(Object.defineProperty(w,"name",{value:I0}),w.displayName=I0)}}),i},qy.startTransition=function(w){var i=c0.T,M0={};M0._updatedFibers=new Set,c0.T=M0;try{var I0=w(),Q0=c0.S;Q0!==null&&Q0(M0,I0),typeof I0==="object"&&I0!==null&&typeof I0.then==="function"&&(c0.asyncTransitions++,I0.then(_0,_0),I0.then(B,b0))}catch(D0){b0(D0)}finally{i===null&&M0._updatedFibers&&(w=M0._updatedFibers.size,M0._updatedFibers.clear(),10<w&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),i!==null&&M0.types!==null&&(i.types!==null&&i.types!==M0.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),i.types=M0.types),c0.T=i}},qy.unstable_useCacheRefresh=function(){return E().useCacheRefresh()},qy.use=function(w){return E().use(w)},qy.useActionState=function(w,i,M0){return E().useActionState(w,i,M0)},qy.useCallback=function(w,i){return E().useCallback(w,i)},qy.useContext=function(w){var i=E();return w.$$typeof===r&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),i.useContext(w)},qy.useDebugValue=function(w,i){return E().useDebugValue(w,i)},qy.useDeferredValue=function(w,i){return E().useDeferredValue(w,i)},qy.useEffect=function(w,i){return w==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),E().useEffect(w,i)},qy.useEffectEvent=function(w){return E().useEffectEvent(w)},qy.useId=function(){return E().useId()},qy.useImperativeHandle=function(w,i,M0){return E().useImperativeHandle(w,i,M0)},qy.useInsertionEffect=function(w,i){return w==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),E().useInsertionEffect(w,i)},qy.useLayoutEffect=function(w,i){return w==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),E().useLayoutEffect(w,i)},qy.useMemo=function(w,i){return E().useMemo(w,i)},qy.useOptimistic=function(w,i){return E().useOptimistic(w,i)},qy.useReducer=function(w,i,M0){return E().useReducer(w,i,M0)},qy.useRef=function(w){return E().useRef(w)},qy.useState=function(w){return E().useState(w)},qy.useSyncExternalStore=function(w,i,M0){return E().useSyncExternalStore(w,i,M0)},qy.useTransition=function(){return E().useTransition()},qy.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var fA=_4((Gy)=>{var wB=J0(k0());(function(){function Q(){}function $(N){return""+N}function Y(N,L,O){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{$(A);var C=!1}catch(D){C=!0}return C&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&A[Symbol.toStringTag]||A.constructor.name||"Object"),$(A)),{$$typeof:F,key:A==null?null:""+A,children:N,containerInfo:L,implementation:O}}function G(N,L){if(N==="font")return"";if(typeof L==="string")return L==="use-credentials"?L:""}function K(N){return N===null?"`null`":N===void 0?"`undefined`":N===""?"an empty string":'something with type "'+typeof N+'"'}function H(N){return N===null?"`null`":N===void 0?"`undefined`":N===""?"an empty string":typeof N==="string"?JSON.stringify(N):typeof N==="number"?"`"+N+"`":'something with type "'+typeof N+'"'}function B(){var N=R.H;return N===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
14
14
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
15
15
|
2. You might be breaking the Rules of Hooks
|
|
16
16
|
3. You might have more than one copy of React in the same app
|
|
17
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),I}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F={d:{f:N,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:N,C:N,L:N,m:N,X:N,S:N,M:N},p:0,findDOMNode:null},b=Symbol.for("react.portal"),E=AG.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),JU.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,JU.createPortal=function(I,_){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error("Target container is not a DOM element.");return L(I,_,null,T)},JU.flushSync=function(I){var _=E.T,T=F.p;try{if(E.T=null,F.p=2,I)return I()}finally{E.T=_,F.p=T,F.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},JU.preconnect=function(I,_){typeof I==="string"&&I?_!=null&&typeof _!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",R(_)):_!=null&&typeof _.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",q(_.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",q(I)),typeof I==="string"&&(_?(_=_.crossOrigin,_=typeof _==="string"?_==="use-credentials"?_:"":void 0):_=null,F.d.C(I,_))},JU.prefetchDNS=function(I){if(typeof I!=="string"||!I)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",q(I));else if(1<arguments.length){var _=arguments[1];typeof _==="object"&&_.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",R(_)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",R(_))}typeof I==="string"&&F.d.D(I)},JU.preinit=function(I,_){if(typeof I==="string"&&I?_==null||typeof _!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",R(_)):_.as!=="style"&&_.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',R(_.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",q(I)),typeof I==="string"&&_&&typeof _.as==="string"){var T=_.as,t=g(T,_.crossOrigin),B0=typeof _.integrity==="string"?_.integrity:void 0,j=typeof _.fetchPriority==="string"?_.fetchPriority:void 0;T==="style"?F.d.S(I,typeof _.precedence==="string"?_.precedence:void 0,{crossOrigin:t,integrity:B0,fetchPriority:j}):T==="script"&&F.d.X(I,{crossOrigin:t,integrity:B0,fetchPriority:j,nonce:typeof _.nonce==="string"?_.nonce:void 0})}},JU.preinitModule=function(I,_){var T="";if(typeof I==="string"&&I||(T+=" The `href` argument encountered was "+q(I)+"."),_!==void 0&&typeof _!=="object"?T+=" The `options` argument encountered was "+q(_)+".":_&&("as"in _)&&_.as!=="script"&&(T+=" The `as` option encountered was "+R(_.as)+"."),T)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",T);else switch(T=_&&typeof _.as==="string"?_.as:"script",T){case"script":break;default:T=R(T),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',T,I)}if(typeof I==="string")if(typeof _==="object"&&_!==null){if(_.as==null||_.as==="script")T=g(_.as,_.crossOrigin),F.d.M(I,{crossOrigin:T,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0})}else _==null&&F.d.M(I)},JU.preload=function(I,_){var T="";if(typeof I==="string"&&I||(T+=" The `href` argument encountered was "+q(I)+"."),_==null||typeof _!=="object"?T+=" The `options` argument encountered was "+q(_)+".":typeof _.as==="string"&&_.as||(T+=" The `as` option encountered was "+q(_.as)+"."),T&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',T),typeof I==="string"&&typeof _==="object"&&_!==null&&typeof _.as==="string"){T=_.as;var t=g(T,_.crossOrigin);F.d.L(I,T,{crossOrigin:t,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0,type:typeof _.type==="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority==="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy==="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet==="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes==="string"?_.imageSizes:void 0,media:typeof _.media==="string"?_.media:void 0})}},JU.preloadModule=function(I,_){var T="";typeof I==="string"&&I||(T+=" The `href` argument encountered was "+q(I)+"."),_!==void 0&&typeof _!=="object"?T+=" The `options` argument encountered was "+q(_)+".":_&&("as"in _)&&typeof _.as!=="string"&&(T+=" The `as` option encountered was "+q(_.as)+"."),T&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',T),typeof I==="string"&&(_?(T=g(_.as,_.crossOrigin),F.d.m(I,{as:typeof _.as==="string"&&_.as!=="script"?_.as:void 0,crossOrigin:T,integrity:typeof _.integrity==="string"?_.integrity:void 0})):F.d.m(I))},JU.requestFormReset=function(I){F.d.r(I)},JU.unstable_batchedUpdates=function(I,_){return I(_)},JU.useFormState=function(I,_,T){return K().useFormState(I,_,T)},JU.useFormStatus=function(){return K().useHostTransitionStatus()},JU.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var kQ=M3((yw,hQ)=>{var HU=w0(xQ());hQ.exports=HU});var jQ=M3((QU)=>{var z2=w0(uQ()),T6=w0(w1()),PG=w0(kQ());(function(){function N($,B){for($=$.memoizedState;$!==null&&0<B;)$=$.next,B--;return $}function v($,B,X,Y){if(X>=B.length)return Y;var Z=B[X],G=t2($)?$.slice():c0({},$);return G[Z]=v($[Z],B,X+1,Y),G}function L($,B,X){if(B.length!==X.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<X.length-1;Y++)if(B[Y]!==X[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return g($,B,X,0)}}function g($,B,X,Y){var Z=B[Y],G=t2($)?$.slice():c0({},$);return Y+1===B.length?(G[X[Y]]=G[Z],t2(G)?G.splice(Z,1):delete G[Z]):G[Z]=g($[Z],B,X,Y+1),G}function q($,B,X){var Y=B[X],Z=t2($)?$.slice():c0({},$);if(X+1===B.length)return t2(Z)?Z.splice(Y,1):delete Z[Y],Z;return Z[Y]=q($[Y],B,X+1),Z}function R(){return!1}function K(){return null}function F(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function b(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function E(){}function I(){}function _($){var B=[];return $.forEach(function(X){B.push(X)}),B.sort().join(", ")}function T($,B,X,Y){return new aL($,B,X,Y)}function t($,B){$.context===H5&&(pY($.current,2,B,$,null,null),D3())}function B0($,B){if(L4!==null){var X=B.staleFamilies;B=B.updatedFamilies,z$(),Vz($.current,B,X),D3()}}function j($){L4=$}function Z0($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function K0($){var B=$,X=$;if($.alternate)for(;B.return;)B=B.return;else{$=B;do B=$,(B.flags&4098)!==0&&(X=B.return),$=B.return;while($)}return B.tag===3?X:null}function _0($){if($.tag===13){var B=$.memoizedState;if(B===null&&($=$.alternate,$!==null&&(B=$.memoizedState)),B!==null)return B.dehydrated}return null}function k($){if($.tag===31){var B=$.memoizedState;if(B===null&&($=$.alternate,$!==null&&(B=$.memoizedState)),B!==null)return B.dehydrated}return null}function Y0($){if(K0($)!==$)throw Error("Unable to find node on an unmounted component.")}function v0($){var B=$.alternate;if(!B){if(B=K0($),B===null)throw Error("Unable to find node on an unmounted component.");return B!==$?null:$}for(var X=$,Y=B;;){var Z=X.return;if(Z===null)break;var G=Z.alternate;if(G===null){if(Y=Z.return,Y!==null){X=Y;continue}break}if(Z.child===G.child){for(G=Z.child;G;){if(G===X)return Y0(Z),$;if(G===Y)return Y0(Z),B;G=G.sibling}throw Error("Unable to find node on an unmounted component.")}if(X.return!==Y.return)X=Z,Y=G;else{for(var z=!1,W=Z.child;W;){if(W===X){z=!0,X=Z,Y=G;break}if(W===Y){z=!0,Y=Z,X=G;break}W=W.sibling}if(!z){for(W=G.child;W;){if(W===X){z=!0,X=G,Y=Z;break}if(W===Y){z=!0,Y=G,X=Z;break}W=W.sibling}if(!z)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(X.alternate!==Y)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(X.tag!==3)throw Error("Unable to find node on an unmounted component.");return X.stateNode.current===X?$:B}function C0($){var B=$.tag;if(B===5||B===26||B===27||B===6)return $;for($=$.child;$!==null;){if(B=C0($),B!==null)return B;$=$.sibling}return null}function e0($){if($===null||typeof $!=="object")return null;return $=ov&&$[ov]||$["@@iterator"],typeof $==="function"?$:null}function p($){if($==null)return null;if(typeof $==="function")return $.$$typeof===qg?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case s3:return"Fragment";case rY:return"Profiler";case b8:return"StrictMode";case tY:return"Suspense";case eY:return"SuspenseList";case $Z:return"Activity"}if(typeof $==="object")switch(typeof $.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case a3:return"Portal";case Y7:return $.displayName||"Context";case nY:return($._context.displayName||"Context")+".Consumer";case K$:var B=$.render;return $=$.displayName,$||($=B.displayName||B.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case C8:return B=$.displayName||null,B!==null?B:p($.type)||"Memo";case n1:B=$._payload,$=$._init;try{return p($(B))}catch(X){}}return null}function D0($){return typeof $.tag==="number"?i($):typeof $.name==="string"?$.name:null}function i($){var B=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(B._context.displayName||"Context")+".Consumer";case 10:return B.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=B.render,$=$.displayName||$.name||"",B.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return B;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return p(B);case 8:return B===b8?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof B==="function")return B.displayName||B.name||null;if(typeof B==="string")return B;break;case 29:if(B=$._debugInfo,B!=null){for(var X=B.length-1;0<=X;X--)if(typeof B[X].name==="string")return B[X].name}if($.return!==null)return i($.return)}return null}function B2($){return{current:$}}function S0($,B){0>A7?console.error("Unexpected pop."):(B!==XZ[A7]&&console.error("Unexpected Fiber popped."),$.current=BZ[A7],BZ[A7]=null,XZ[A7]=null,A7--)}function M0($,B,X){A7++,BZ[A7]=$.current,XZ[A7]=X,$.current=B}function G2($){return $===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),$}function c($,B){M0(G5,B,$),M0(U$,$,$),M0(Z5,null,$);var X=B.nodeType;switch(X){case 9:case 11:X=X===9?"#document":"#fragment",B=(B=B.documentElement)?(B=B.namespaceURI)?Kv(B):j7:j7;break;default:if(X=B.tagName,B=B.namespaceURI)B=Kv(B),B=Uv(B,X);else switch(X){case"svg":B=C6;break;case"math":B=IB;break;default:B=j7}}X=X.toLowerCase(),X=Jz(null,X),X={context:B,ancestorInfo:X},S0(Z5,$),M0(Z5,X,$)}function z0($){S0(Z5,$),S0(U$,$),S0(G5,$)}function e(){return G2(Z5.current)}function U0($){$.memoizedState!==null&&M0(m8,$,$);var B=G2(Z5.current),X=$.type,Y=Uv(B.context,X);X=Jz(B.ancestorInfo,X),Y={context:Y,ancestorInfo:X},B!==Y&&(M0(U$,$,$),M0(Z5,Y,$))}function a($){U$.current===$&&(S0(Z5,$),S0(U$,$)),m8.current===$&&(S0(m8,$),N9._currentValue=_3)}function u(){}function G0(){if(O$===0){av=console.log,sv=console.info,iv=console.warn,rv=console.error,nv=console.group,tv=console.groupCollapsed,ev=console.groupEnd;var $={configurable:!0,enumerable:!0,value:u,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}O$++}function F0(){if(O$--,O$===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:c0({},$,{value:av}),info:c0({},$,{value:sv}),warn:c0({},$,{value:iv}),error:c0({},$,{value:rv}),group:c0({},$,{value:nv}),groupCollapsed:c0({},$,{value:tv}),groupEnd:c0({},$,{value:ev})})}0>O$&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function P0($){var B=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=B,$.startsWith(`Error: react-stack-top-frame
|
|
18
|
-
`)&&(
|
|
19
|
-
`),
|
|
20
|
-
`,
|
|
21
|
-
at`)?" (<anonymous>)":-1<
|
|
22
|
-
|
|
23
|
-
`),
|
|
24
|
-
`);for(
|
|
25
|
-
`+
|
|
26
|
-
`),
|
|
27
|
-
`+
|
|
28
|
-
Error generating stack: `+
|
|
29
|
-
`+
|
|
30
|
-
`+
|
|
31
|
-
`+
|
|
32
|
-
Error generating stack: `+
|
|
33
|
-
`+W.stack}return z}function s($,B,X,Y,Z,G,z){var W=t1;Q0($);try{return $!==null&&$._debugTask?$._debugTask.run(B.bind(null,X,Y,Z,G,z)):B(X,Y,Z,G,z)}finally{Q0(W)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Q0($){x.getCurrentStack=$===null?null:l1,Z7=!1,t1=$}function r0($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function a0($){try{return u0($),!1}catch(B){return!0}}function u0($){return""+$}function m0($,B){if(a0($))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",B,r0($)),u0($)}function J2($,B){if(a0($))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",B,r0($)),u0($)}function L0($){if(a0($))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",r0($)),u0($)}function X2($){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var B=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(B.isDisabled)return!0;if(!B.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{r3=B.inject($),U1=B}catch(X){console.error("React instrumentation encountered an error: %o.",X)}return B.checkDCE?!0:!1}function T0($){if(typeof _g==="function"&&Mg($),U1&&typeof U1.setStrictMode==="function")try{U1.setStrictMode(r3,$)}catch(B){G7||(G7=!0,console.error("React instrumentation encountered an error: %o",B))}}function y1($){return $>>>=0,$===0?32:31-(Fg($)/Ag|0)|0}function g1($){var B=$&42;if(B!==0)return B;switch($&-$){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 $&261888;case 262144:case 524288:case 1048576:case 2097152:return $&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return $&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),$}}function n2($,B,X){var Y=$.pendingLanes;if(Y===0)return 0;var Z=0,G=$.suspendedLanes,z=$.pingedLanes;$=$.warmLanes;var W=Y&134217727;return W!==0?(Y=W&~G,Y!==0?Z=g1(Y):(z&=W,z!==0?Z=g1(z):X||(X=W&~$,X!==0&&(Z=g1(X))))):(W=Y&~G,W!==0?Z=g1(W):z!==0?Z=g1(z):X||(X=Y&~$,X!==0&&(Z=g1(X)))),Z===0?0:B!==0&&B!==Z&&(B&G)===0&&(G=Z&-Z,X=B&-B,G>=X||G===32&&(X&4194048)!==0)?B:Z}function W0($,B){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&B)===0}function S1($,B){switch($){case 1:case 2:case 4:case 8:case 64:return B+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 B+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function F4(){var $=y8;return y8<<=1,(y8&62914560)===0&&(y8=4194304),$}function z4($){for(var B=[],X=0;31>X;X++)B.push($);return B}function W4($,B){$.pendingLanes|=B,B!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function h5($,B,X,Y,Z,G){var z=$.pendingLanes;$.pendingLanes=X,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=X,$.entangledLanes&=X,$.errorRecoveryDisabledLanes&=X,$.shellSuspendCounter=0;var{entanglements:W,expirationTimes:J,hiddenUpdates:Q}=$;for(X=z&~X;0<X;){var A=31-M1(X),P=1<<A;W[A]=0,J[A]=-1;var O=Q[A];if(O!==null)for(Q[A]=null,A=0;A<O.length;A++){var f=O[A];f!==null&&(f.lane&=-536870913)}X&=~P}Y!==0&&V4($,Y,0),G!==0&&Z===0&&$.tag!==0&&($.suspendedLanes|=G&~(z&~B))}function V4($,B,X){$.pendingLanes|=B,$.suspendedLanes&=~B;var Y=31-M1(B);$.entangledLanes|=B,$.entanglements[Y]=$.entanglements[Y]|1073741824|X&261930}function q7($,B){var X=$.entangledLanes|=B;for($=$.entanglements;X;){var Y=31-M1(X),Z=1<<Y;Z&B|$[Y]&B&&($[Y]|=B),X&=~Z}}function Y1($,B){var X=B&-B;return X=(X&42)!==0?1:c7(X),(X&($.suspendedLanes|B))!==0?0:X}function c7($){switch($){case 2:$=1;break;case 8:$=4;break;case 32:$=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:$=128;break;case 268435456:$=134217728;break;default:$=0}return $}function C3($,B,X){if(z7)for($=$.pendingUpdatersLaneMap;0<X;){var Y=31-M1(X),Z=1<<Y;$[Y].add(B),X&=~Z}}function h2($,B){if(z7)for(var{pendingUpdatersLaneMap:X,memoizedUpdaters:Y}=$;0<B;){var Z=31-M1(B);$=1<<Z,Z=X[Z],0<Z.size&&(Z.forEach(function(G){var z=G.alternate;z!==null&&Y.has(z)||Y.add(G)}),Z.clear()),B&=~$}}function H($){return $&=-$,e1!==0&&e1<$?m4!==0&&m4<$?($&134217727)!==0?W7:S8:m4:e1}function C(){var $=Q2.p;if($!==0)return $;return $=window.event,$===void 0?W7:Vv($.type)}function l($,B){var X=Q2.p;try{return Q2.p=$,B()}finally{Q2.p=X}}function o($){delete $[Q1],delete $[F1],delete $[JZ],delete $[Pg],delete $[Ig]}function y($){var B=$[Q1];if(B)return B;for(var X=$.parentNode;X;){if(B=X[W5]||X[Q1]){if(X=B.alternate,B.child!==null||X!==null&&X.child!==null)for($=Pv($);$!==null;){if(X=$[Q1])return X;$=Pv($)}return B}$=X,X=$.parentNode}return null}function n($){if($=$[Q1]||$[W5]){var B=$.tag;if(B===5||B===6||B===13||B===31||B===26||B===27||B===3)return $}return null}function N0($){var B=$.tag;if(B===5||B===26||B===27||B===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function I0($){var B=$[BJ];return B||(B=$[BJ]={hoistableStyles:new Map,hoistableScripts:new Map}),B}function H0($){$[w$]=!0}function Y2($,B){F2($,B),F2($+"Capture",B)}function F2($,B){e5[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),e5[$]=B;var X=$.toLowerCase();HZ[X]=$,$==="onDoubleClick"&&(HZ.ondblclick=$);for($=0;$<B.length;$++)XJ.add(B[$])}function A4($,B){bg[B.type]||B.onChange||B.onInput||B.readOnly||B.disabled||B.value==null||($==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),B.onChange||B.readOnly||B.disabled||B.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function k5($){if(C4.call(ZJ,$))return!0;if(C4.call(YJ,$))return!1;if(Cg.test($))return ZJ[$]=!0;return YJ[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function iG($,B,X){if(k5(B)){if(!$.hasAttribute(B)){switch(typeof X){case"symbol":case"object":return X;case"function":return X;case"boolean":if(X===!1)return X}return X===void 0?void 0:null}if($=$.getAttribute(B),$===""&&X===!0)return!0;return m0(X,B),$===""+X?X:$}}function w9($,B,X){if(k5(B))if(X===null)$.removeAttribute(B);else{switch(typeof X){case"undefined":case"function":case"symbol":$.removeAttribute(B);return;case"boolean":var Y=B.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-"){$.removeAttribute(B);return}}m0(X,B),$.setAttribute(B,""+X)}}function R9($,B,X){if(X===null)$.removeAttribute(B);else{switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(B);return}m0(X,B),$.setAttribute(B,""+X)}}function g7($,B,X,Y){if(Y===null)$.removeAttribute(X);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(X);return}m0(Y,X),$.setAttributeNS(B,X,""+Y)}}function N4($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return L0($),$;default:return""}}function rG($){var B=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(B==="checkbox"||B==="radio")}function AL($,B,X){var Y=Object.getOwnPropertyDescriptor($.constructor.prototype,B);if(!$.hasOwnProperty(B)&&typeof Y<"u"&&typeof Y.get==="function"&&typeof Y.set==="function"){var{get:Z,set:G}=Y;return Object.defineProperty($,B,{configurable:!0,get:function(){return Z.call(this)},set:function(z){L0(z),X=""+z,G.call(this,z)}}),Object.defineProperty($,B,{enumerable:Y.enumerable}),{getValue:function(){return X},setValue:function(z){L0(z),X=""+z},stopTracking:function(){$._valueTracker=null,delete $[B]}}}}function cB($){if(!$._valueTracker){var B=rG($)?"checked":"value";$._valueTracker=AL($,B,""+$[B])}}function nG($){if(!$)return!1;var B=$._valueTracker;if(!B)return!0;var X=B.getValue(),Y="";return $&&(Y=rG($)?$.checked?"true":"false":$.value),$=Y,$!==X?(B.setValue($),!0):!1}function _9($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(B){return $.body}}function v4($){return $.replace(mg,function(B){return"\\"+B.charCodeAt(0).toString(16)+" "})}function tG($,B){B.checked===void 0||B.defaultChecked===void 0||zJ||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",X1()||"A component",B.type),zJ=!0),B.value===void 0||B.defaultValue===void 0||GJ||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",X1()||"A component",B.type),GJ=!0)}function oB($,B,X,Y,Z,G,z,W){if($.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(m0(z,"type"),$.type=z):$.removeAttribute("type"),B!=null)if(z==="number"){if(B===0&&$.value===""||$.value!=B)$.value=""+N4(B)}else $.value!==""+N4(B)&&($.value=""+N4(B));else z!=="submit"&&z!=="reset"||$.removeAttribute("value");B!=null?aB($,z,N4(B)):X!=null?aB($,z,N4(X)):Y!=null&&$.removeAttribute("value"),Z==null&&G!=null&&($.defaultChecked=!!G),Z!=null&&($.checked=Z&&typeof Z!=="function"&&typeof Z!=="symbol"),W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(m0(W,"name"),$.name=""+N4(W)):$.removeAttribute("name")}function eG($,B,X,Y,Z,G,z,W){if(G!=null&&typeof G!=="function"&&typeof G!=="symbol"&&typeof G!=="boolean"&&(m0(G,"type"),$.type=G),B!=null||X!=null){if(!(G!=="submit"&&G!=="reset"||B!==void 0&&B!==null)){cB($);return}X=X!=null?""+N4(X):"",B=B!=null?""+N4(B):X,W||B===$.value||($.value=B),$.defaultValue=B}Y=Y!=null?Y:Z,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,$.checked=W?$.checked:!!Y,$.defaultChecked=!!Y,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(m0(z,"name"),$.name=z),cB($)}function aB($,B,X){B==="number"&&_9($.ownerDocument)===$||$.defaultValue===""+X||($.defaultValue=""+X)}function $z($,B){B.value==null&&(typeof B.children==="object"&&B.children!==null?T6.Children.forEach(B.children,function(X){X==null||typeof X==="string"||typeof X==="number"||typeof X==="bigint"||NJ||(NJ=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):B.dangerouslySetInnerHTML==null||vJ||(vJ=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),B.selected==null||WJ||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),WJ=!0)}function Bz(){var $=X1();return $?`
|
|
34
|
-
|
|
35
|
-
Check the render method of
|
|
36
|
-
`;if(typeof
|
|
37
|
-
`+
|
|
38
|
-
`}return
|
|
39
|
-
`}function
|
|
40
|
-
`:0<
|
|
41
|
-
`:
|
|
42
|
-
`+
|
|
43
|
-
`+
|
|
44
|
-
`+
|
|
45
|
-
`}function
|
|
46
|
-
`,
|
|
47
|
-
`):
|
|
48
|
-
`}for(var
|
|
49
|
-
`);return
|
|
50
|
-
`+
|
|
51
|
-
`:(
|
|
52
|
-
`,
|
|
53
|
-
`)}else
|
|
54
|
-
`}
|
|
55
|
-
`}}),
|
|
56
|
-
`:
|
|
57
|
-
`+
|
|
58
|
-
`}if(
|
|
59
|
-
`}function
|
|
60
|
-
`+
|
|
61
|
-
`,
|
|
62
|
-
`,
|
|
63
|
-
`),Z
|
|
64
|
-
`):
|
|
65
|
-
|
|
66
|
-
`+
|
|
67
|
-
This will cause a hydration error.%s`,
|
|
68
|
-
This will cause a hydration error.%s`,
|
|
69
|
-
See this log for the ancestor stack trace.`,
|
|
70
|
-
This will cause a hydration error.%s`,
|
|
71
|
-
This will cause a hydration error.%s`,B,X),!1}function k6($,B){if(B){var X=$.firstChild;if(X&&X===$.lastChild&&X.nodeType===3){X.nodeValue=B;return}}$.textContent=B}function CL($){return $.replace(xg,function(B,X){return X.toUpperCase()})}function Lz($,B,X){var Y=B.indexOf("--")===0;Y||(-1<B.indexOf("-")?n3.hasOwnProperty(B)&&n3[B]||(n3[B]=!0,console.error("Unsupported style property %s. Did you mean %s?",B,CL(B.replace(ug,"ms-")))):Sg.test(B)?n3.hasOwnProperty(B)&&n3[B]||(n3[B]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",B,B.charAt(0).toUpperCase()+B.slice(1))):!OJ.test(X)||LZ.hasOwnProperty(X)&&LZ[X]||(LZ[X]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,B,X.replace(OJ,""))),typeof X==="number"&&(isNaN(X)?wJ||(wJ=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",B)):isFinite(X)||RJ||(RJ=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",B)))),X==null||typeof X==="boolean"||X===""?Y?$.setProperty(B,""):B==="float"?$.cssFloat="":$[B]="":Y?$.setProperty(B,X):typeof X!=="number"||X===0||_J.has(B)?B==="float"?$.cssFloat=X:(J2(X,B),$[B]=(""+X).trim()):$[B]=X+"px"}function qz($,B,X){if(B!=null&&typeof B!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(B&&Object.freeze(B),$=$.style,X!=null){if(B){var Y={};if(X){for(var Z in X)if(X.hasOwnProperty(Z)&&!B.hasOwnProperty(Z))for(var G=QZ[Z]||[Z],z=0;z<G.length;z++)Y[G[z]]=Z}for(var W in B)if(B.hasOwnProperty(W)&&(!X||X[W]!==B[W]))for(Z=QZ[W]||[W],G=0;G<Z.length;G++)Y[Z[G]]=W;W={};for(var J in B)for(Z=QZ[J]||[J],G=0;G<Z.length;G++)W[Z[G]]=J;J={};for(var Q in Y)if(Z=Y[Q],(G=W[Q])&&Z!==G&&(z=Z+","+G,!J[z])){J[z]=!0,z=console;var A=B[Z];z.error.call(z,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",A==null||typeof A==="boolean"||A===""?"Removing":"Updating",Z,G)}}for(var P in X)!X.hasOwnProperty(P)||B!=null&&B.hasOwnProperty(P)||(P.indexOf("--")===0?$.setProperty(P,""):P==="float"?$.cssFloat="":$[P]="");for(var O in B)Q=B[O],B.hasOwnProperty(O)&&X[O]!==Q&&Lz($,O,Q)}else for(Y in B)B.hasOwnProperty(Y)&&Lz($,Y,B[Y])}function j6($){if($.indexOf("-")===-1)return!1;switch($){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}}function gz($){return hg.get($)||$}function mL($,B){if(C4.call(e3,B)&&e3[B])return!0;if(jg.test(B)){if($="aria-"+B.slice(4).toLowerCase(),$=MJ.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",B),e3[B]=!0;if(B!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",B,$),e3[B]=!0}if(kg.test(B)){if($=B.toLowerCase(),$=MJ.hasOwnProperty($)?$:null,$==null)return e3[B]=!0,!1;B!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",B,$),e3[B]=!0)}return!0}function TL($,B){var X=[],Y;for(Y in B)mL($,Y)||X.push(Y);B=X.map(function(Z){return"`"+Z+"`"}).join(", "),X.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",B,$):1<X.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",B,$)}function fL($,B,X,Y){if(C4.call(A1,B)&&A1[B])return!0;var Z=B.toLowerCase();if(Z==="onfocusin"||Z==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),A1[B]=!0;if(typeof X==="function"&&($==="form"&&B==="action"||$==="input"&&B==="formAction"||$==="button"&&B==="formAction"))return!0;if(Y!=null){if($=Y.possibleRegistrationNames,Y.registrationNameDependencies.hasOwnProperty(B))return!0;if(Y=$.hasOwnProperty(Z)?$[Z]:null,Y!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",B,Y),A1[B]=!0;if(AJ.test(B))return console.error("Unknown event handler property `%s`. It will be ignored.",B),A1[B]=!0}else if(AJ.test(B))return Vg.test(B)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",B),A1[B]=!0;if(Eg.test(B)||Dg.test(B))return!0;if(Z==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),A1[B]=!0;if(Z==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),A1[B]=!0;if(Z==="is"&&X!==null&&X!==void 0&&typeof X!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof X),A1[B]=!0;if(typeof X==="number"&&isNaN(X))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",B),A1[B]=!0;if(h8.hasOwnProperty(Z)){if(Z=h8[Z],Z!==B)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",B,Z),A1[B]=!0}else if(B!==Z)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",B,Z),A1[B]=!0;switch(B){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof X){case"boolean":switch(B){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:if(Z=B.toLowerCase().slice(0,5),Z==="data-"||Z==="aria-")return!0;return X?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',X,B,B,X,B):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',X,B,B,X,B,B,B),A1[B]=!0}case"function":case"symbol":return A1[B]=!0,!1;case"string":if(X==="false"||X==="true"){switch(B){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",X,B,X==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',B,X),A1[B]=!0}}return!0}function yL($,B,X){var Y=[],Z;for(Z in B)fL($,Z,B[Z],X)||Y.push(Z);B=Y.map(function(G){return"`"+G+"`"}).join(", "),Y.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",B,$):1<Y.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",B,$)}function V6($){return lg.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function K7(){}function eB($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function Kz($){var B=n($);if(B&&($=B.stateNode)){var X=$[F1]||null;$:switch($=B.stateNode,B.type){case"input":if(oB($,X.value,X.defaultValue,X.defaultValue,X.checked,X.defaultChecked,X.type,X.name),B=X.name,X.type==="radio"&&B!=null){for(X=$;X.parentNode;)X=X.parentNode;m0(B,"name"),X=X.querySelectorAll('input[name="'+v4(""+B)+'"][type="radio"]');for(B=0;B<X.length;B++){var Y=X[B];if(Y!==$&&Y.form===$.form){var Z=Y[F1]||null;if(!Z)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");oB(Y,Z.value,Z.defaultValue,Z.defaultValue,Z.checked,Z.defaultChecked,Z.type,Z.name)}}for(B=0;B<X.length;B++)Y=X[B],Y.form===$.form&&nG(Y)}break $;case"textarea":Zz($,X.value,X.defaultValue);break $;case"select":B=X.value,B!=null&&m3($,!!X.multiple,B,!1)}}}function Uz($,B,X){if(qZ)return $(B,X);qZ=!0;try{var Y=$(B);return Y}finally{if(qZ=!1,$6!==null||B6!==null){if(D3(),$6&&(B=$6,$=B6,B6=$6=null,Kz(B),$))for(B=0;B<$.length;B++)Kz($[B])}}}function E6($,B){var X=$.stateNode;if(X===null)return null;var Y=X[F1]||null;if(Y===null)return null;X=Y[B];$:switch(B){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Y=!Y.disabled)||($=$.type,Y=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!Y;break $;default:$=!1}if($)return null;if(X&&typeof X!=="function")throw Error("Expected `"+B+"` listener to be a function, instead got a value of `"+typeof X+"` type.");return X}function Oz(){if(k8)return k8;var $,B=KZ,X=B.length,Y,Z="value"in N5?N5.value:N5.textContent,G=Z.length;for($=0;$<X&&B[$]===Z[$];$++);var z=X-$;for(Y=1;Y<=z&&B[X-Y]===Z[G-Y];Y++);return k8=Z.slice($,1<Y?1-Y:void 0)}function A9($){var B=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&B===13&&($=13)):$=B,$===10&&($=13),32<=$||$===13?$:0}function P9(){return!0}function wz(){return!1}function u1($){function B(X,Y,Z,G,z){this._reactName=X,this._targetInst=Z,this.type=Y,this.nativeEvent=G,this.target=z,this.currentTarget=null;for(var W in $)$.hasOwnProperty(W)&&(X=$[W],this[W]=X?X(G):G[W]);return this.isDefaultPrevented=(G.defaultPrevented!=null?G.defaultPrevented:G.returnValue===!1)?P9:wz,this.isPropagationStopped=wz,this}return c0(B.prototype,{preventDefault:function(){this.defaultPrevented=!0;var X=this.nativeEvent;X&&(X.preventDefault?X.preventDefault():typeof X.returnValue!=="unknown"&&(X.returnValue=!1),this.isDefaultPrevented=P9)},stopPropagation:function(){var X=this.nativeEvent;X&&(X.stopPropagation?X.stopPropagation():typeof X.cancelBubble!=="unknown"&&(X.cancelBubble=!0),this.isPropagationStopped=P9)},persist:function(){},isPersistent:P9}),B}function SL($){var B=this.nativeEvent;return B.getModifierState?B.getModifierState($):($=BK[$])?!!B[$]:!1}function $X(){return SL}function Rz($,B){switch($){case"keyup":return LK.indexOf(B.keyCode)!==-1;case"keydown":return B.keyCode!==CJ;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _z($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function uL($,B){switch($){case"compositionend":return _z(B);case"keypress":if(B.which!==TJ)return null;return yJ=!0,fJ;case"textInput":return $=B.data,$===fJ&&yJ?null:$;default:return null}}function xL($,B){if(X6)return $==="compositionend"||!RZ&&Rz($,B)?($=Oz(),k8=KZ=N5=null,X6=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(B.ctrlKey||B.altKey||B.metaKey)||B.ctrlKey&&B.altKey){if(B.char&&1<B.char.length)return B.char;if(B.which)return String.fromCharCode(B.which)}return null;case"compositionend":return mJ&&B.locale!=="ko"?null:B.data;default:return null}}function Mz($){var B=$&&$.nodeName&&$.nodeName.toLowerCase();return B==="input"?!!gK[$.type]:B==="textarea"?!0:!1}function hL($){if(!N7)return!1;$="on"+$;var B=$ in document;return B||(B=document.createElement("div"),B.setAttribute($,"return;"),B=typeof B[$]==="function"),B}function Fz($,B,X,Y){$6?B6?B6.push(Y):B6=[Y]:$6=Y,B=U8(B,"onChange"),0<B.length&&(X=new j8("onChange","change",null,X,Y),$.push({event:X,listeners:B}))}function kL($){Gv($,0)}function I9($){var B=N0($);if(nG(B))return $}function Az($,B){if($==="change")return B}function Pz(){P$&&(P$.detachEvent("onpropertychange",Iz),I$=P$=null)}function Iz($){if($.propertyName==="value"&&I9(I$)){var B=[];Fz(B,I$,$,eB($)),Uz(kL,B)}}function jL($,B,X){$==="focusin"?(Pz(),P$=B,I$=X,P$.attachEvent("onpropertychange",Iz)):$==="focusout"&&Pz()}function VL($){if($==="selectionchange"||$==="keyup"||$==="keydown")return I9(I$)}function EL($,B){if($==="click")return I9(B)}function DL($,B){if($==="input"||$==="change")return I9(B)}function lL($,B){return $===B&&($!==0||1/$===1/B)||$!==$&&B!==B}function D6($,B){if(P1($,B))return!0;if(typeof $!=="object"||$===null||typeof B!=="object"||B===null)return!1;var X=Object.keys($),Y=Object.keys(B);if(X.length!==Y.length)return!1;for(Y=0;Y<X.length;Y++){var Z=X[Y];if(!C4.call(B,Z)||!P1($[Z],B[Z]))return!1}return!0}function bz($){for(;$&&$.firstChild;)$=$.firstChild;return $}function Cz($,B){var X=bz($);$=0;for(var Y;X;){if(X.nodeType===3){if(Y=$+X.textContent.length,$<=B&&Y>=B)return{node:X,offset:B-$};$=Y}$:{for(;X;){if(X.nextSibling){X=X.nextSibling;break $}X=X.parentNode}X=void 0}X=bz(X)}}function mz($,B){return $&&B?$===B?!0:$&&$.nodeType===3?!1:B&&B.nodeType===3?mz($,B.parentNode):("contains"in $)?$.contains(B):$.compareDocumentPosition?!!($.compareDocumentPosition(B)&16):!1:!1}function Tz($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var B=_9($.document);B instanceof $.HTMLIFrameElement;){try{var X=typeof B.contentWindow.location.href==="string"}catch(Y){X=!1}if(X)$=B.contentWindow;else break;B=_9($.document)}return B}function BX($){var B=$&&$.nodeName&&$.nodeName.toLowerCase();return B&&(B==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||B==="textarea"||$.contentEditable==="true")}function fz($,B,X){var Y=X.window===X?X.document:X.nodeType===9?X:X.ownerDocument;MZ||Y6==null||Y6!==_9(Y)||(Y=Y6,("selectionStart"in Y)&&BX(Y)?Y={start:Y.selectionStart,end:Y.selectionEnd}:(Y=(Y.ownerDocument&&Y.ownerDocument.defaultView||window).getSelection(),Y={anchorNode:Y.anchorNode,anchorOffset:Y.anchorOffset,focusNode:Y.focusNode,focusOffset:Y.focusOffset}),b$&&D6(b$,Y)||(b$=Y,Y=U8(_Z,"onSelect"),0<Y.length&&(B=new j8("onSelect","select",null,B,X),$.push({event:B,listeners:Y}),B.target=Y6)))}function V5($,B){var X={};return X[$.toLowerCase()]=B.toLowerCase(),X["Webkit"+$]="webkit"+B,X["Moz"+$]="moz"+B,X}function E5($){if(FZ[$])return FZ[$];if(!Z6[$])return $;var B=Z6[$],X;for(X in B)if(B.hasOwnProperty(X)&&X in uJ)return FZ[$]=B[X];return $}function P4($,B){VJ.set($,B),Y2(B,[$])}function dL($){for(var B=E8,X=0;X<$.length;X++){var Y=$[X];if(typeof Y==="object"&&Y!==null)if(t2(Y)&&Y.length===2&&typeof Y[0]==="string"){if(B!==E8&&B!==CZ)return IZ;B=CZ}else return IZ;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||B!==E8&&B!==bZ)return IZ;B=bZ}}return B}function XX($,B,X,Y){for(var Z in $)C4.call($,Z)&&Z[0]!=="_"&&E4(Z,$[Z],B,X,Y)}function E4($,B,X,Y,Z){switch(typeof B){case"object":if(B===null){B="null";break}else{if(B.$$typeof===X7){var G=p(B.type)||"…",z=B.key;B=B.props;var W=Object.keys(B),J=W.length;if(z==null&&J===0){B="<"+G+" />";break}if(3>Y||J===1&&W[0]==="children"&&z==null){B="<"+G+" … />";break}X.push([Z+" ".repeat(Y)+$,"<"+G]),z!==null&&E4("key",z,X,Y+1,Z),$=!1;for(var Q in B)Q==="children"?B.children!=null&&(!t2(B.children)||0<B.children.length)&&($=!0):C4.call(B,Q)&&Q[0]!=="_"&&E4(Q,B[Q],X,Y+1,Z);X.push(["",$?">…</"+G+">":"/>"]);return}if(G=Object.prototype.toString.call(B),G=G.slice(8,G.length-1),G==="Array"){if(Q=dL(B),Q===bZ||Q===E8){B=JSON.stringify(B);break}else if(Q===CZ){X.push([Z+" ".repeat(Y)+$,""]);for($=0;$<B.length;$++)G=B[$],E4(G[0],G[1],X,Y+1,Z);return}}if(G==="Promise"){if(B.status==="fulfilled"){if(G=X.length,E4($,B.value,X,Y,Z),X.length>G){X=X[G],X[1]="Promise<"+(X[1]||"Object")+">";return}}else if(B.status==="rejected"&&(G=X.length,E4($,B.reason,X,Y,Z),X.length>G)){X=X[G],X[1]="Rejected Promise<"+X[1]+">";return}X.push([" ".repeat(Y)+$,"Promise"]);return}G==="Object"&&(Q=Object.getPrototypeOf(B))&&typeof Q.constructor==="function"&&(G=Q.constructor.name),X.push([Z+" ".repeat(Y)+$,G==="Object"?3>Y?"":"…":G]),3>Y&&XX(B,X,Y+1,Z);return}case"function":B=B.name===""?"() => {}":B.name+"() {}";break;case"string":B=B===MK?"…":JSON.stringify(B);break;case"undefined":B="undefined";break;case"boolean":B=B?"true":"false";break;default:B=String(B)}X.push([Z+" ".repeat(Y)+$,B])}function yz($,B,X,Y){var Z=!0;for(z in $)z in B||(X.push([D8+" ".repeat(Y)+z,"…"]),Z=!1);for(var G in B)if(G in $){var z=$[G],W=B[G];if(z!==W){if(Y===0&&G==="children")Z=" ".repeat(Y)+G,X.push([D8+Z,"…"],[l8+Z,"…"]);else{if(!(3<=Y)){if(typeof z==="object"&&typeof W==="object"&&z!==null&&W!==null&&z.$$typeof===W.$$typeof)if(W.$$typeof===X7){if(z.type===W.type&&z.key===W.key){z=p(W.type)||"…",Z=" ".repeat(Y)+G,z="<"+z+" … />",X.push([D8+Z,z],[l8+Z,z]),Z=!1;continue}}else{var J=Object.prototype.toString.call(z),Q=Object.prototype.toString.call(W);if(J===Q&&(Q==="[object Object]"||Q==="[object Array]")){J=[lJ+" ".repeat(Y)+G,Q==="[object Array]"?"Array":""],X.push(J),Q=X.length,yz(z,W,X,Y+1)?Q===X.length&&(J[1]="Referentially unequal but deeply equal objects. Consider memoization."):Z=!1;continue}}else if(typeof z==="function"&&typeof W==="function"&&z.name===W.name&&z.length===W.length&&(J=Function.prototype.toString.call(z),Q=Function.prototype.toString.call(W),J===Q)){z=W.name===""?"() => {}":W.name+"() {}",X.push([lJ+" ".repeat(Y)+G,z+" Referentially unequal function closure. Consider memoization."]);continue}}E4(G,z,X,Y,D8),E4(G,W,X,Y,l8)}Z=!1}}else X.push([l8+" ".repeat(Y)+G,"…"]),Z=!1;return Z}function p1($){s0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function D4($,B,X,Y){A2&&(J5.start=B,J5.end=X,P7.color="warning",P7.tooltipText=Y,P7.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,J5)):performance.measure(Y,J5))}function b9($,B,X){D4($,B,X,"Reconnect")}function C9($,B,X,Y,Z){var G=i($);if(G!==null&&A2){var{alternate:z,actualDuration:W}=$;if(z===null||z.child!==$.child)for(var J=$.child;J!==null;J=J.sibling)W-=J.actualDuration;Y=0.5>W?Y?"tertiary-light":"primary-light":10>W?Y?"tertiary":"primary":100>W?Y?"tertiary-dark":"primary-dark":"error";var Q=$.memoizedProps;W=$._debugTask,Q!==null&&z!==null&&z.memoizedProps!==Q?(J=[FK],Q=yz(z.memoizedProps,Q,J,0),1<J.length&&(Q&&!v5&&(z.lanes&Z)===0&&100<$.actualDuration?(v5=!0,J[0]=AK,P7.color="warning",P7.tooltipText=dJ):(P7.color=Y,P7.tooltipText=G),P7.properties=J,J5.start=B,J5.end=X,W!=null?W.run(performance.measure.bind(performance,""+G,J5)):performance.measure(""+G,J5))):W!=null?W.run(console.timeStamp.bind(console,G,B,X,H4,void 0,Y)):console.timeStamp(G,B,X,H4,void 0,Y)}}function YX($,B,X,Y){if(A2){var Z=i($);if(Z!==null){for(var G=null,z=[],W=0;W<Y.length;W++){var J=Y[W];G==null&&J.source!==null&&(G=J.source._debugTask),J=J.value,z.push(["Error",typeof J==="object"&&J!==null&&typeof J.message==="string"?String(J.message):String(J)])}$.key!==null&&E4("key",$.key,z,0,""),$.memoizedProps!==null&&XX($.memoizedProps,z,0,""),G==null&&(G=$._debugTask),$={start:B,end:X,detail:{devtools:{color:"error",track:H4,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},G?G.run(performance.measure.bind(performance,""+Z,$)):performance.measure(""+Z,$)}}}function l4($,B,X,Y,Z){if(Z!==null){if(A2){var G=i($);if(G!==null){Y=[];for(var z=0;z<Z.length;z++){var W=Z[z].value;Y.push(["Error",typeof W==="object"&&W!==null&&typeof W.message==="string"?String(W.message):String(W)])}$.key!==null&&E4("key",$.key,Y,0,""),$.memoizedProps!==null&&XX($.memoizedProps,Y,0,""),B={start:B,end:X,detail:{devtools:{color:"error",track:H4,tooltipText:"A lifecycle or effect errored",properties:Y}}},($=$._debugTask)?$.run(performance.measure.bind(performance,""+G,B)):performance.measure(""+G,B)}}}else G=i($),G!==null&&A2&&(Z=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,G,B,X,H4,void 0,Z)):console.timeStamp(G,B,X,H4,void 0,Z))}function pL($,B,X,Y){if(A2&&!(B<=$)){var Z=(X&738197653)===X?"tertiary-dark":"primary-dark";X=(X&536870912)===X?"Prepared":(X&201326741)===X?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,X,$,B,s0,o0,Z)):console.timeStamp(X,$,B,s0,o0,Z)}}function Sz($,B,X,Y){!A2||B<=$||(X=(X&738197653)===X?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,B,s0,o0,X)):console.timeStamp("Prewarm",$,B,s0,o0,X))}function uz($,B,X,Y){!A2||B<=$||(X=(X&738197653)===X?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,B,s0,o0,X)):console.timeStamp("Suspended",$,B,s0,o0,X))}function cL($,B,X,Y,Z,G){if(A2&&!(B<=$)){X=[];for(var z=0;z<Y.length;z++){var W=Y[z].value;X.push(["Recoverable Error",typeof W==="object"&&W!==null&&typeof W.message==="string"?String(W.message):String(W)])}$={start:$,end:B,detail:{devtools:{color:"primary-dark",track:s0,trackGroup:o0,tooltipText:Z?"Hydration Failed":"Recovered after Error",properties:X}}},G?G.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function ZX($,B,X,Y){!A2||B<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,B,s0,o0,"error")):console.timeStamp("Errored",$,B,s0,o0,"error"))}function oL($,B,X,Y){!A2||B<=$||(Y?Y.run(console.timeStamp.bind(console,X,$,B,s0,o0,"secondary-light")):console.timeStamp(X,$,B,s0,o0,"secondary-light"))}function xz($,B,X,Y,Z){if(A2&&!(B<=$)){for(var G=[],z=0;z<X.length;z++){var W=X[z].value;G.push(["Error",typeof W==="object"&&W!==null&&typeof W.message==="string"?String(W.message):String(W)])}$={start:$,end:B,detail:{devtools:{color:"error",track:s0,trackGroup:o0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:G}}},Z?Z.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function l6($,B,X){!A2||B<=$||(X?X.run(console.timeStamp.bind(console,"Animating",$,B,s0,o0,"secondary-dark")):console.timeStamp("Animating",$,B,s0,o0,"secondary-dark"))}function m9(){for(var $=G6,B=mZ=G6=0;B<$;){var X=Q4[B];Q4[B++]=null;var Y=Q4[B];Q4[B++]=null;var Z=Q4[B];Q4[B++]=null;var G=Q4[B];if(Q4[B++]=null,Y!==null&&Z!==null){var z=Y.pending;z===null?Z.next=Z:(Z.next=z.next,z.next=Z),Y.pending=Z}G!==0&&hz(X,Z,G)}}function T9($,B,X,Y){Q4[G6++]=$,Q4[G6++]=B,Q4[G6++]=X,Q4[G6++]=Y,mZ|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function GX($,B,X,Y){return T9($,B,X,Y),f9($)}function K1($,B){return T9($,null,null,B),f9($)}function hz($,B,X){$.lanes|=X;var Y=$.alternate;Y!==null&&(Y.lanes|=X);for(var Z=!1,G=$.return;G!==null;)G.childLanes|=X,Y=G.alternate,Y!==null&&(Y.childLanes|=X),G.tag===22&&($=G.stateNode,$===null||$._visibility&C$||(Z=!0)),$=G,G=G.return;return $.tag===3?(G=$.stateNode,Z&&B!==null&&(Z=31-M1(X),$=G.hiddenUpdates,Y=$[Z],Y===null?$[Z]=[B]:Y.push(B),B.lane=X|536870912),G):null}function f9($){if(B9>VK)throw g3=B9=0,X9=NG=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");g3>EK&&(g3=0,X9=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),$.alternate===null&&($.flags&4098)!==0&&tN($);for(var B=$,X=B.return;X!==null;)B.alternate===null&&(B.flags&4098)!==0&&tN($),B=X,X=B.return;return B.tag===3?B.stateNode:null}function D5($){if(L4===null)return $;var B=L4($);return B===void 0?$:B.current}function zX($){if(L4===null)return $;var B=L4($);return B===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(B=D5($.render),$.render!==B)?(B={$$typeof:K$,render:B},$.displayName!==void 0&&(B.displayName=$.displayName),B):$:B.current}function kz($,B){if(L4===null)return!1;var X=$.elementType;B=B.type;var Y=!1,Z=typeof B==="object"&&B!==null?B.$$typeof:null;switch($.tag){case 1:typeof B==="function"&&(Y=!0);break;case 0:typeof B==="function"?Y=!0:Z===n1&&(Y=!0);break;case 11:Z===K$?Y=!0:Z===n1&&(Y=!0);break;case 14:case 15:Z===C8?Y=!0:Z===n1&&(Y=!0);break;default:return!1}return Y&&($=L4(X),$!==void 0&&$===L4(B))?!0:!1}function jz($){L4!==null&&typeof WeakSet==="function"&&(z6===null&&(z6=new WeakSet),z6.add($))}function Vz($,B,X){do{var Y=$,Z=Y.alternate,G=Y.child,z=Y.sibling,W=Y.tag;Y=Y.type;var J=null;switch(W){case 0:case 15:case 1:J=Y;break;case 11:J=Y.render}if(L4===null)throw Error("Expected resolveFamily to be set during hot reload.");var Q=!1;if(Y=!1,J!==null&&(J=L4(J),J!==void 0&&(X.has(J)?Y=!0:B.has(J)&&(W===1?Y=!0:Q=!0))),z6!==null&&(z6.has($)||Z!==null&&z6.has(Z))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||Q)Z=K1($,2),Z!==null&&k2(Z,$,2);if(G===null||Y||Vz(G,B,X),z===null)break;$=z}while(1)}function aL($,B,X,Y){this.tag=$,this.key=X,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=B,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,pJ||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function WX($){return $=$.prototype,!(!$||!$.isReactComponent)}function U7($,B){var X=$.alternate;switch(X===null?(X=T($.tag,B,$.key,$.mode),X.elementType=$.elementType,X.type=$.type,X.stateNode=$.stateNode,X._debugOwner=$._debugOwner,X._debugStack=$._debugStack,X._debugTask=$._debugTask,X._debugHookTypes=$._debugHookTypes,X.alternate=$,$.alternate=X):(X.pendingProps=B,X.type=$.type,X.flags=0,X.subtreeFlags=0,X.deletions=null,X.actualDuration=-0,X.actualStartTime=-1.1),X.flags=$.flags&65011712,X.childLanes=$.childLanes,X.lanes=$.lanes,X.child=$.child,X.memoizedProps=$.memoizedProps,X.memoizedState=$.memoizedState,X.updateQueue=$.updateQueue,B=$.dependencies,X.dependencies=B===null?null:{lanes:B.lanes,firstContext:B.firstContext,_debugThenableState:B._debugThenableState},X.sibling=$.sibling,X.index=$.index,X.ref=$.ref,X.refCleanup=$.refCleanup,X.selfBaseDuration=$.selfBaseDuration,X.treeBaseDuration=$.treeBaseDuration,X._debugInfo=$._debugInfo,X._debugNeedsRemount=$._debugNeedsRemount,X.tag){case 0:case 15:X.type=D5($.type);break;case 1:X.type=D5($.type);break;case 11:X.type=zX($.type)}return X}function Ez($,B){$.flags&=65011714;var X=$.alternate;return X===null?($.childLanes=0,$.lanes=B,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=X.childLanes,$.lanes=X.lanes,$.child=X.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=X.memoizedProps,$.memoizedState=X.memoizedState,$.updateQueue=X.updateQueue,$.type=X.type,B=X.dependencies,$.dependencies=B===null?null:{lanes:B.lanes,firstContext:B.firstContext,_debugThenableState:B._debugThenableState},$.selfBaseDuration=X.selfBaseDuration,$.treeBaseDuration=X.treeBaseDuration),$}function NX($,B,X,Y,Z,G){var z=0,W=$;if(typeof $==="function")WX($)&&(z=1),W=D5(W);else if(typeof $==="string")z=e(),z=Xg($,X,z)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case $Z:return B=T(31,X,B,Z),B.elementType=$Z,B.lanes=G,B;case s3:return l5(X.children,Z,G,B);case b8:z=8,Z|=O1,Z|=T4;break;case rY:return $=X,Y=Z,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),B=T(12,$,B,Y|k0),B.elementType=rY,B.lanes=G,B.stateNode={effectDuration:0,passiveEffectDuration:0},B;case tY:return B=T(13,X,B,Z),B.elementType=tY,B.lanes=G,B;case eY:return B=T(19,X,B,Z),B.elementType=eY,B.lanes=G,B;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case Y7:z=10;break $;case nY:z=9;break $;case K$:z=11,W=zX(W);break $;case C8:z=14;break $;case n1:z=16,W=null;break $}if(W="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)W+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";$===null?X="null":t2($)?X="array":$!==void 0&&$.$$typeof===X7?(X="<"+(p($.type)||"Unknown")+" />",W=" Did you accidentally export a JSX literal instead of a component?"):X=typeof $,(z=Y?D0(Y):null)&&(W+=`
|
|
72
|
-
|
|
73
|
-
Check the render method of \``+
|
|
17
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),N}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var z={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},F=Symbol.for("react.portal"),R=wB.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Gy.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Gy.createPortal=function(N,L){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!L||L.nodeType!==1&&L.nodeType!==9&&L.nodeType!==11)throw Error("Target container is not a DOM element.");return Y(N,L,null,O)},Gy.flushSync=function(N){var L=R.T,O=z.p;try{if(R.T=null,z.p=2,N)return N()}finally{R.T=L,z.p=O,z.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Gy.preconnect=function(N,L){typeof N==="string"&&N?L!=null&&typeof L!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",H(L)):L!=null&&typeof L.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",K(L.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",K(N)),typeof N==="string"&&(L?(L=L.crossOrigin,L=typeof L==="string"?L==="use-credentials"?L:"":void 0):L=null,z.d.C(N,L))},Gy.prefetchDNS=function(N){if(typeof N!=="string"||!N)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",K(N));else if(1<arguments.length){var L=arguments[1];typeof L==="object"&&L.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",H(L)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",H(L))}typeof N==="string"&&z.d.D(N)},Gy.preinit=function(N,L){if(typeof N==="string"&&N?L==null||typeof L!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",H(L)):L.as!=="style"&&L.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',H(L.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",K(N)),typeof N==="string"&&L&&typeof L.as==="string"){var O=L.as,A=G(O,L.crossOrigin),C=typeof L.integrity==="string"?L.integrity:void 0,D=typeof L.fetchPriority==="string"?L.fetchPriority:void 0;O==="style"?z.d.S(N,typeof L.precedence==="string"?L.precedence:void 0,{crossOrigin:A,integrity:C,fetchPriority:D}):O==="script"&&z.d.X(N,{crossOrigin:A,integrity:C,fetchPriority:D,nonce:typeof L.nonce==="string"?L.nonce:void 0})}},Gy.preinitModule=function(N,L){var O="";if(typeof N==="string"&&N||(O+=" The `href` argument encountered was "+K(N)+"."),L!==void 0&&typeof L!=="object"?O+=" The `options` argument encountered was "+K(L)+".":L&&("as"in L)&&L.as!=="script"&&(O+=" The `as` option encountered was "+H(L.as)+"."),O)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",O);else switch(O=L&&typeof L.as==="string"?L.as:"script",O){case"script":break;default:O=H(O),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',O,N)}if(typeof N==="string")if(typeof L==="object"&&L!==null){if(L.as==null||L.as==="script")O=G(L.as,L.crossOrigin),z.d.M(N,{crossOrigin:O,integrity:typeof L.integrity==="string"?L.integrity:void 0,nonce:typeof L.nonce==="string"?L.nonce:void 0})}else L==null&&z.d.M(N)},Gy.preload=function(N,L){var O="";if(typeof N==="string"&&N||(O+=" The `href` argument encountered was "+K(N)+"."),L==null||typeof L!=="object"?O+=" The `options` argument encountered was "+K(L)+".":typeof L.as==="string"&&L.as||(O+=" The `as` option encountered was "+K(L.as)+"."),O&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',O),typeof N==="string"&&typeof L==="object"&&L!==null&&typeof L.as==="string"){O=L.as;var A=G(O,L.crossOrigin);z.d.L(N,O,{crossOrigin:A,integrity:typeof L.integrity==="string"?L.integrity:void 0,nonce:typeof L.nonce==="string"?L.nonce:void 0,type:typeof L.type==="string"?L.type:void 0,fetchPriority:typeof L.fetchPriority==="string"?L.fetchPriority:void 0,referrerPolicy:typeof L.referrerPolicy==="string"?L.referrerPolicy:void 0,imageSrcSet:typeof L.imageSrcSet==="string"?L.imageSrcSet:void 0,imageSizes:typeof L.imageSizes==="string"?L.imageSizes:void 0,media:typeof L.media==="string"?L.media:void 0})}},Gy.preloadModule=function(N,L){var O="";typeof N==="string"&&N||(O+=" The `href` argument encountered was "+K(N)+"."),L!==void 0&&typeof L!=="object"?O+=" The `options` argument encountered was "+K(L)+".":L&&("as"in L)&&typeof L.as!=="string"&&(O+=" The `as` option encountered was "+K(L.as)+"."),O&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',O),typeof N==="string"&&(L?(O=G(L.as,L.crossOrigin),z.d.m(N,{as:typeof L.as==="string"&&L.as!=="script"?L.as:void 0,crossOrigin:O,integrity:typeof L.integrity==="string"?L.integrity:void 0})):z.d.m(N))},Gy.requestFormReset=function(N){z.d.r(N)},Gy.unstable_batchedUpdates=function(N,L){return N(L)},Gy.useFormState=function(N,L,O){return B().useFormState(N,L,O)},Gy.useFormStatus=function(){return B().useHostTransitionStatus()},Gy.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var V8=_4((Ti,pA)=>{var Ky=J0(fA());pA.exports=Ky});var lA=_4((Wy)=>{var k1=J0(uA()),BX=J0(k0()),CB=J0(V8());(function(){function Q(Z,X){for(Z=Z.memoizedState;Z!==null&&0<X;)Z=Z.next,X--;return Z}function $(Z,X,J,q){if(J>=X.length)return q;var W=X[J],U=u5(Z)?Z.slice():V1({},Z);return U[W]=$(Z[W],X,J+1,q),U}function Y(Z,X,J){if(X.length!==J.length)console.warn("copyWithRename() expects paths of the same length");else{for(var q=0;q<J.length-1;q++)if(X[q]!==J[q]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return G(Z,X,J,0)}}function G(Z,X,J,q){var W=X[q],U=u5(Z)?Z.slice():V1({},Z);return q+1===X.length?(U[J[q]]=U[W],u5(U)?U.splice(W,1):delete U[W]):U[W]=G(Z[W],X,J,q+1),U}function K(Z,X,J){var q=X[J],W=u5(Z)?Z.slice():V1({},Z);if(J+1===X.length)return u5(W)?W.splice(q,1):delete W[q],W;return W[q]=K(Z[q],X,J+1),W}function H(){return!1}function B(){return null}function z(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function F(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function R(){}function N(){}function L(Z){var X=[];return Z.forEach(function(J){X.push(J)}),X.sort().join(", ")}function O(Z,X,J,q){return new dD(Z,X,J,q)}function A(Z,X){Z.context===n6&&(iW(Z.current,2,X,Z,null,null),IZ())}function C(Z,X){if(V2!==null){var J=X.staleFamilies;X=X.updatedFamilies,E3(),iL(Z.current,X,J),IZ()}}function D(Z){V2=Z}function b(Z){return!(!Z||Z.nodeType!==1&&Z.nodeType!==9&&Z.nodeType!==11)}function y(Z){var X=Z,J=Z;if(Z.alternate)for(;X.return;)X=X.return;else{Z=X;do X=Z,(X.flags&4098)!==0&&(J=X.return),Z=X.return;while(Z)}return X.tag===3?J:null}function k(Z){if(Z.tag===13){var X=Z.memoizedState;if(X===null&&(Z=Z.alternate,Z!==null&&(X=Z.memoizedState)),X!==null)return X.dehydrated}return null}function f(Z){if(Z.tag===31){var X=Z.memoizedState;if(X===null&&(Z=Z.alternate,Z!==null&&(X=Z.memoizedState)),X!==null)return X.dehydrated}return null}function a(Z){if(y(Z)!==Z)throw Error("Unable to find node on an unmounted component.")}function s(Z){var X=Z.alternate;if(!X){if(X=y(Z),X===null)throw Error("Unable to find node on an unmounted component.");return X!==Z?null:Z}for(var J=Z,q=X;;){var W=J.return;if(W===null)break;var U=W.alternate;if(U===null){if(q=W.return,q!==null){J=q;continue}break}if(W.child===U.child){for(U=W.child;U;){if(U===J)return a(W),Z;if(U===q)return a(W),X;U=U.sibling}throw Error("Unable to find node on an unmounted component.")}if(J.return!==q.return)J=W,q=U;else{for(var M=!1,_=W.child;_;){if(_===J){M=!0,J=W,q=U;break}if(_===q){M=!0,q=W,J=U;break}_=_.sibling}if(!M){for(_=U.child;_;){if(_===J){M=!0,J=U,q=W;break}if(_===q){M=!0,q=U,J=W;break}_=_.sibling}if(!M)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(J.alternate!==q)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(J.tag!==3)throw Error("Unable to find node on an unmounted component.");return J.stateNode.current===J?Z:X}function g(Z){var X=Z.tag;if(X===5||X===26||X===27||X===6)return Z;for(Z=Z.child;Z!==null;){if(X=g(Z),X!==null)return X;Z=Z.sibling}return null}function c(Z){if(Z===null||typeof Z!=="object")return null;return Z=tR&&Z[tR]||Z["@@iterator"],typeof Z==="function"?Z:null}function h(Z){if(Z==null)return null;if(typeof Z==="function")return Z.$$typeof===BE?null:Z.displayName||Z.name||null;if(typeof Z==="string")return Z;switch(Z){case DZ:return"Fragment";case oW:return"Profiler";case e$:return"StrictMode";case eW:return"Suspense";case ZH:return"SuspenseList";case XH:return"Activity"}if(typeof Z==="object")switch(typeof Z.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Z.$$typeof){case jZ:return"Portal";case j9:return Z.displayName||"Context";case tW:return(Z._context.displayName||"Context")+".Consumer";case f3:var X=Z.render;return Z=Z.displayName,Z||(Z=X.displayName||X.name||"",Z=Z!==""?"ForwardRef("+Z+")":"ForwardRef"),Z;case ZY:return X=Z.displayName||null,X!==null?X:h(Z.type)||"Memo";case q2:X=Z._payload,Z=Z._init;try{return h(Z(X))}catch(J){}}return null}function Z0(Z){return typeof Z.tag==="number"?E(Z):typeof Z.name==="string"?Z.name:null}function E(Z){var X=Z.type;switch(Z.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(X._context.displayName||"Context")+".Consumer";case 10:return X.displayName||"Context";case 18:return"DehydratedFragment";case 11:return Z=X.render,Z=Z.displayName||Z.name||"",X.displayName||(Z!==""?"ForwardRef("+Z+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return X;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return h(X);case 8:return X===e$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof X==="function")return X.displayName||X.name||null;if(typeof X==="string")return X;break;case 29:if(X=Z._debugInfo,X!=null){for(var J=X.length-1;0<=J;J--)if(typeof X[J].name==="string")return X[J].name}if(Z.return!==null)return E(Z.return)}return null}function _0(Z){return{current:Z}}function t(Z,X){0>Q6?console.error("Unexpected pop."):(X!==JH[Q6]&&console.error("Unexpected Fiber popped."),Z.current=QH[Q6],QH[Q6]=null,JH[Q6]=null,Q6--)}function n(Z,X,J){Q6++,QH[Q6]=Z.current,JH[Q6]=J,Z.current=X}function z0(Z){return Z===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),Z}function o(Z,X){n(l6,X,Z),n(p3,Z,Z),n(p6,null,Z);var J=X.nodeType;switch(J){case 9:case 11:J=J===9?"#document":"#fragment",X=(X=X.documentElement)?(X=X.namespaceURI)?IR(X):M6:M6;break;default:if(J=X.tagName,X=X.namespaceURI)X=IR(X),X=TR(X,J);else switch(J){case"svg":X=WX;break;case"math":X=tY;break;default:X=M6}}J=J.toLowerCase(),J=ML(null,J),J={context:X,ancestorInfo:J},t(p6,Z),n(p6,J,Z)}function H0(Z){t(p6,Z),t(p3,Z),t(l6,Z)}function G0(){return z0(p6.current)}function e(Z){Z.memoizedState!==null&&n(XY,Z,Z);var X=z0(p6.current),J=Z.type,q=TR(X.context,J);J=ML(X.ancestorInfo,J),q={context:q,ancestorInfo:J},X!==q&&(n(p3,Z,Z),n(p6,q,Z))}function U0(Z){p3.current===Z&&(t(p6,Z),t(p3,Z)),XY.current===Z&&(t(XY,Z),yQ._currentValue=I8)}function T(){}function B0(){if(l3===0){eR=console.log,Z_=console.info,X_=console.warn,Q_=console.error,J_=console.group,$_=console.groupCollapsed,Y_=console.groupEnd;var Z={configurable:!0,enumerable:!0,value:T,writable:!0};Object.defineProperties(console,{info:Z,log:Z,warn:Z,error:Z,group:Z,groupCollapsed:Z,groupEnd:Z})}l3++}function r(){if(l3--,l3===0){var Z={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V1({},Z,{value:eR}),info:V1({},Z,{value:Z_}),warn:V1({},Z,{value:X_}),error:V1({},Z,{value:Q_}),group:V1({},Z,{value:J_}),groupCollapsed:V1({},Z,{value:$_}),groupEnd:V1({},Z,{value:Y_})})}0>l3&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function S(Z){var X=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,Z=Z.stack,Error.prepareStackTrace=X,Z.startsWith(`Error: react-stack-top-frame
|
|
18
|
+
`)&&(Z=Z.slice(29)),X=Z.indexOf(`
|
|
19
|
+
`),X!==-1&&(Z=Z.slice(X+1)),X=Z.indexOf("react_stack_bottom_frame"),X!==-1&&(X=Z.lastIndexOf(`
|
|
20
|
+
`,X)),X!==-1)Z=Z.slice(0,X);else return"";return Z}function L0(Z){if($H===void 0)try{throw Error()}catch(J){var X=J.stack.trim().match(/\n( *(at )?)/);$H=X&&X[1]||"",q_=-1<J.stack.indexOf(`
|
|
21
|
+
at`)?" (<anonymous>)":-1<J.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
+
`+$H+Z+q_}function A0(Z,X){if(!Z||YH)return"";var J=qH.get(Z);if(J!==void 0)return J;YH=!0,J=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=q0.H,q0.H=null,B0();try{var W={DetermineComponentFrameRoot:function(){try{if(X){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(j0){var X0=j0}Reflect.construct(Z,[],m)}else{try{m.call()}catch(j0){X0=j0}Z.call(m.prototype)}}else{try{throw Error()}catch(j0){X0=j0}(m=Z())&&typeof m.catch==="function"&&m.catch(function(){})}}catch(j0){if(j0&&X0&&typeof j0.stack==="string")return[j0.stack,X0.stack]}return[null,null]}};W.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var U=Object.getOwnPropertyDescriptor(W.DetermineComponentFrameRoot,"name");U&&U.configurable&&Object.defineProperty(W.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=W.DetermineComponentFrameRoot(),_=M[0],V=M[1];if(_&&V){var j=_.split(`
|
|
23
|
+
`),l=V.split(`
|
|
24
|
+
`);for(M=U=0;U<j.length&&!j[U].includes("DetermineComponentFrameRoot");)U++;for(;M<l.length&&!l[M].includes("DetermineComponentFrameRoot");)M++;if(U===j.length||M===l.length)for(U=j.length-1,M=l.length-1;1<=U&&0<=M&&j[U]!==l[M];)M--;for(;1<=U&&0<=M;U--,M--)if(j[U]!==l[M]){if(U!==1||M!==1)do if(U--,M--,0>M||j[U]!==l[M]){var d=`
|
|
25
|
+
`+j[U].replace(" at new "," at ");return Z.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",Z.displayName)),typeof Z==="function"&&qH.set(Z,d),d}while(1<=U&&0<=M);break}}}finally{YH=!1,q0.H=q,r(),Error.prepareStackTrace=J}return j=(j=Z?Z.displayName||Z.name:"")?L0(j):"",typeof Z==="function"&&qH.set(Z,j),j}function V0(Z,X){switch(Z.tag){case 26:case 27:case 5:return L0(Z.type);case 16:return L0("Lazy");case 13:return Z.child!==X&&X!==null?L0("Suspense Fallback"):L0("Suspense");case 19:return L0("SuspenseList");case 0:case 15:return A0(Z.type,!1);case 11:return A0(Z.type.render,!1);case 1:return A0(Z.type,!0);case 31:return L0("Activity");default:return""}}function C0(Z){try{var X="",J=null;do{X+=V0(Z,J);var q=Z._debugInfo;if(q)for(var W=q.length-1;0<=W;W--){var U=q[W];if(typeof U.name==="string"){var M=X;Z:{var{name:_,env:V,debugLocation:j}=U;if(j!=null){var l=S(j),d=l.lastIndexOf(`
|
|
26
|
+
`),m=d===-1?l:l.slice(d+1);if(m.indexOf(_)!==-1){var X0=`
|
|
27
|
+
`+m;break Z}}X0=L0(_+(V?" ["+V+"]":""))}X=M+X0}}J=Z,Z=Z.return}while(Z);return X}catch(j0){return`
|
|
28
|
+
Error generating stack: `+j0.message+`
|
|
29
|
+
`+j0.stack}}function u0(Z){return(Z=Z?Z.displayName||Z.name:"")?L0(Z):""}function $1(){if(G2===null)return null;var Z=G2._debugOwner;return Z!=null?Z0(Z):null}function v1(){if(G2===null)return"";var Z=G2;try{var X="";switch(Z.tag===6&&(Z=Z.return),Z.tag){case 26:case 27:case 5:X+=L0(Z.type);break;case 13:X+=L0("Suspense");break;case 19:X+=L0("SuspenseList");break;case 31:X+=L0("Activity");break;case 30:case 0:case 15:case 1:Z._debugOwner||X!==""||(X+=u0(Z.type));break;case 11:Z._debugOwner||X!==""||(X+=u0(Z.type.render))}for(;Z;)if(typeof Z.tag==="number"){var J=Z;Z=J._debugOwner;var q=J._debugStack;if(Z&&q){var W=S(q);W!==""&&(X+=`
|
|
30
|
+
`+W)}}else if(Z.debugStack!=null){var U=Z.debugStack;(Z=Z.owner)&&U&&(X+=`
|
|
31
|
+
`+S(U))}else break;var M=X}catch(_){M=`
|
|
32
|
+
Error generating stack: `+_.message+`
|
|
33
|
+
`+_.stack}return M}function R0(Z,X,J,q,W,U,M){var _=G2;h0(Z);try{return Z!==null&&Z._debugTask?Z._debugTask.run(X.bind(null,J,q,W,U,M)):X(J,q,W,U,M)}finally{h0(_)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function h0(Z){q0.getCurrentStack=Z===null?null:v1,D9=!1,G2=Z}function Y1(Z){return typeof Symbol==="function"&&Symbol.toStringTag&&Z[Symbol.toStringTag]||Z.constructor.name||"Object"}function H1(Z){try{return e0(Z),!1}catch(X){return!0}}function e0(Z){return""+Z}function s0(Z,X){if(H1(Z))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",X,Y1(Z)),e0(Z)}function h1(Z,X){if(H1(Z))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",X,Y1(Z)),e0(Z)}function c0(Z){if(H1(Z))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Y1(Z)),e0(Z)}function D1(Z){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var X=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(X.isDisabled)return!0;if(!X.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{EZ=X.inject(Z),N4=X}catch(J){console.error("React instrumentation encountered an error: %o.",J)}return X.checkDCE?!0:!1}function X1(Z){if(typeof RE==="function"&&_E(Z),N4&&typeof N4.setStrictMode==="function")try{N4.setStrictMode(EZ,Z)}catch(X){S9||(S9=!0,console.error("React instrumentation encountered an error: %o",X))}}function F4(Z){return Z>>>=0,Z===0?32:31-(OE(Z)/AE|0)|0}function a5(Z){var X=Z&42;if(X!==0)return X;switch(Z&-Z){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 Z&261888;case 262144:case 524288:case 1048576:case 2097152:return Z&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return Z&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),Z}}function V5(Z,X,J){var q=Z.pendingLanes;if(q===0)return 0;var W=0,U=Z.suspendedLanes,M=Z.pingedLanes;Z=Z.warmLanes;var _=q&134217727;return _!==0?(q=_&~U,q!==0?W=a5(q):(M&=_,M!==0?W=a5(M):J||(J=_&~Z,J!==0&&(W=a5(J))))):(_=q&~U,_!==0?W=a5(_):M!==0?W=a5(M):J||(J=q&~Z,J!==0&&(W=a5(J)))),W===0?0:X!==0&&X!==W&&(X&U)===0&&(U=W&-W,J=X&-X,U>=J||U===32&&(J&4194048)!==0)?X:W}function v0(Z,X){return(Z.pendingLanes&~(Z.suspendedLanes&~Z.pingedLanes)&X)===0}function L4(Z,X){switch(Z){case 1:case 2:case 4:case 8:case 64:return X+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 X+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function K0(){var Z=$Y;return $Y<<=1,($Y&62914560)===0&&($Y=4194304),Z}function W0(Z){for(var X=[],J=0;31>J;J++)X.push(Z);return X}function b0(Z,X){Z.pendingLanes|=X,X!==268435456&&(Z.suspendedLanes=0,Z.pingedLanes=0,Z.warmLanes=0)}function B1(Z,X,J,q,W,U){var M=Z.pendingLanes;Z.pendingLanes=J,Z.suspendedLanes=0,Z.pingedLanes=0,Z.warmLanes=0,Z.expiredLanes&=J,Z.entangledLanes&=J,Z.errorRecoveryDisabledLanes&=J,Z.shellSuspendCounter=0;var{entanglements:_,expirationTimes:V,hiddenUpdates:j}=Z;for(J=M&~J;0<J;){var l=31-w4(J),d=1<<l;_[l]=0,V[l]=-1;var m=j[l];if(m!==null)for(j[l]=null,l=0;l<m.length;l++){var X0=m[l];X0!==null&&(X0.lane&=-536870913)}J&=~d}q!==0&&I1(Z,q,0),U!==0&&W===0&&Z.tag!==0&&(Z.suspendedLanes|=U&~(M&~X))}function I1(Z,X,J){Z.pendingLanes|=X,Z.suspendedLanes&=~X;var q=31-w4(X);Z.entangledLanes|=X,Z.entanglements[q]=Z.entanglements[q]|1073741824|J&261930}function B5(Z,X){var J=Z.entangledLanes|=X;for(Z=Z.entanglements;J;){var q=31-w4(J),W=1<<q;W&X|Z[q]&X&&(Z[q]|=X),J&=~W}}function X5(Z,X){var J=X&-X;return J=(J&42)!==0?1:n5(J),(J&(Z.suspendedLanes|X))!==0?0:J}function n5(Z){switch(Z){case 2:Z=1;break;case 8:Z=4;break;case 32:Z=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:Z=128;break;case 268435456:Z=134217728;break;default:Z=0}return Z}function R2(Z,X,J){if(E9)for(Z=Z.pendingUpdatersLaneMap;0<J;){var q=31-w4(J),W=1<<q;Z[q].add(X),J&=~W}}function c1(Z,X){if(E9)for(var{pendingUpdatersLaneMap:J,memoizedUpdaters:q}=Z;0<X;){var W=31-w4(X);Z=1<<W,W=J[W],0<W.size&&(W.forEach(function(U){var M=U.alternate;M!==null&&q.has(M)||q.add(U)}),W.clear()),X&=~Z}}function w(Z){return Z&=-Z,K2!==0&&K2<Z?a2!==0&&a2<Z?(Z&134217727)!==0?b9:YY:a2:K2}function i(){var Z=f1.p;if(Z!==0)return Z;return Z=window.event,Z===void 0?b9:iR(Z.type)}function M0(Z,X){var J=f1.p;try{return f1.p=Z,X()}finally{f1.p=J}}function I0(Z){delete Z[G4],delete Z[C4],delete Z[BH],delete Z[IE],delete Z[TE]}function Q0(Z){var X=Z[G4];if(X)return X;for(var J=Z.parentNode;J;){if(X=J[i6]||J[G4]){if(J=X.alternate,X.child!==null||J!==null&&J.child!==null)for(Z=ER(Z);Z!==null;){if(J=Z[G4])return J;Z=ER(Z)}return X}Z=J,J=Z.parentNode}return null}function D0(Z){if(Z=Z[G4]||Z[i6]){var X=Z.tag;if(X===5||X===6||X===13||X===31||X===26||X===27||X===3)return Z}return null}function m0(Z){var X=Z.tag;if(X===5||X===26||X===27||X===6)return Z.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function q1(Z){var X=Z[G_];return X||(X=Z[G_]={hoistableStyles:new Map,hoistableScripts:new Map}),X}function i0(Z){Z[d3]=!0}function S1(Z,X){Q5(Z,X),Q5(Z+"Capture",X)}function Q5(Z,X){Z8[Z]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",Z),Z8[Z]=X;var J=Z.toLowerCase();UH[J]=Z,Z==="onDoubleClick"&&(UH.ondblclick=Z);for(Z=0;Z<X.length;Z++)K_.add(X[Z])}function D6(Z,X){VE[X.type]||X.onChange||X.onInput||X.readOnly||X.disabled||X.value==null||(Z==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),X.onChange||X.readOnly||X.disabled||X.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Y3(Z){if(r2.call(H_,Z))return!0;if(r2.call(W_,Z))return!1;if(PE.test(Z))return H_[Z]=!0;return W_[Z]=!0,console.error("Invalid attribute name: `%s`",Z),!1}function XL(Z,X,J){if(Y3(X)){if(!Z.hasAttribute(X)){switch(typeof J){case"symbol":case"object":return J;case"function":return J;case"boolean":if(J===!1)return J}return J===void 0?void 0:null}if(Z=Z.getAttribute(X),Z===""&&J===!0)return!0;return s0(J,X),Z===""+J?J:Z}}function iJ(Z,X,J){if(Y3(X))if(J===null)Z.removeAttribute(X);else{switch(typeof J){case"undefined":case"function":case"symbol":Z.removeAttribute(X);return;case"boolean":var q=X.toLowerCase().slice(0,5);if(q!=="data-"&&q!=="aria-"){Z.removeAttribute(X);return}}s0(J,X),Z.setAttribute(X,""+J)}}function cJ(Z,X,J){if(J===null)Z.removeAttribute(X);else{switch(typeof J){case"undefined":case"function":case"symbol":case"boolean":Z.removeAttribute(X);return}s0(J,X),Z.setAttribute(X,""+J)}}function r9(Z,X,J,q){if(q===null)Z.removeAttribute(J);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":Z.removeAttribute(J);return}s0(q,J),Z.setAttributeNS(X,J,""+q)}}function _2(Z){switch(typeof Z){case"bigint":case"boolean":case"number":case"string":case"undefined":return Z;case"object":return c0(Z),Z;default:return""}}function QL(Z){var X=Z.type;return(Z=Z.nodeName)&&Z.toLowerCase()==="input"&&(X==="checkbox"||X==="radio")}function AD(Z,X,J){var q=Object.getOwnPropertyDescriptor(Z.constructor.prototype,X);if(!Z.hasOwnProperty(X)&&typeof q<"u"&&typeof q.get==="function"&&typeof q.set==="function"){var{get:W,set:U}=q;return Object.defineProperty(Z,X,{configurable:!0,get:function(){return W.call(this)},set:function(M){c0(M),J=""+M,U.call(this,M)}}),Object.defineProperty(Z,X,{enumerable:q.enumerable}),{getValue:function(){return J},setValue:function(M){c0(M),J=""+M},stopTracking:function(){Z._valueTracker=null,delete Z[X]}}}}function cG(Z){if(!Z._valueTracker){var X=QL(Z)?"checked":"value";Z._valueTracker=AD(Z,X,""+Z[X])}}function JL(Z){if(!Z)return!1;var X=Z._valueTracker;if(!X)return!0;var J=X.getValue(),q="";return Z&&(q=QL(Z)?Z.checked?"true":"false":Z.value),Z=q,Z!==J?(X.setValue(Z),!0):!1}function rJ(Z){if(Z=Z||(typeof document<"u"?document:void 0),typeof Z>"u")return null;try{return Z.activeElement||Z.body}catch(X){return Z.body}}function O2(Z){return Z.replace(wE,function(X){return"\\"+X.charCodeAt(0).toString(16)+" "})}function $L(Z,X){X.checked===void 0||X.defaultChecked===void 0||U_||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",$1()||"A component",X.type),U_=!0),X.value===void 0||X.defaultValue===void 0||B_||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",$1()||"A component",X.type),B_=!0)}function rG(Z,X,J,q,W,U,M,_){if(Z.name="",M!=null&&typeof M!=="function"&&typeof M!=="symbol"&&typeof M!=="boolean"?(s0(M,"type"),Z.type=M):Z.removeAttribute("type"),X!=null)if(M==="number"){if(X===0&&Z.value===""||Z.value!=X)Z.value=""+_2(X)}else Z.value!==""+_2(X)&&(Z.value=""+_2(X));else M!=="submit"&&M!=="reset"||Z.removeAttribute("value");X!=null?aG(Z,M,_2(X)):J!=null?aG(Z,M,_2(J)):q!=null&&Z.removeAttribute("value"),W==null&&U!=null&&(Z.defaultChecked=!!U),W!=null&&(Z.checked=W&&typeof W!=="function"&&typeof W!=="symbol"),_!=null&&typeof _!=="function"&&typeof _!=="symbol"&&typeof _!=="boolean"?(s0(_,"name"),Z.name=""+_2(_)):Z.removeAttribute("name")}function YL(Z,X,J,q,W,U,M,_){if(U!=null&&typeof U!=="function"&&typeof U!=="symbol"&&typeof U!=="boolean"&&(s0(U,"type"),Z.type=U),X!=null||J!=null){if(!(U!=="submit"&&U!=="reset"||X!==void 0&&X!==null)){cG(Z);return}J=J!=null?""+_2(J):"",X=X!=null?""+_2(X):J,_||X===Z.value||(Z.value=X),Z.defaultValue=X}q=q!=null?q:W,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,Z.checked=_?Z.checked:!!q,Z.defaultChecked=!!q,M!=null&&typeof M!=="function"&&typeof M!=="symbol"&&typeof M!=="boolean"&&(s0(M,"name"),Z.name=M),cG(Z)}function aG(Z,X,J){X==="number"&&rJ(Z.ownerDocument)===Z||Z.defaultValue===""+J||(Z.defaultValue=""+J)}function qL(Z,X){X.value==null&&(typeof X.children==="object"&&X.children!==null?BX.Children.forEach(X.children,function(J){J==null||typeof J==="string"||typeof J==="number"||typeof J==="bigint"||F_||(F_=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):X.dangerouslySetInnerHTML==null||L_||(L_=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),X.selected==null||z_||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),z_=!0)}function GL(){var Z=$1();return Z?`
|
|
34
|
+
|
|
35
|
+
Check the render method of \``+Z+"`.":""}function HZ(Z,X,J,q){if(Z=Z.options,X){X={};for(var W=0;W<J.length;W++)X["$"+J[W]]=!0;for(J=0;J<Z.length;J++)W=X.hasOwnProperty("$"+Z[J].value),Z[J].selected!==W&&(Z[J].selected=W),W&&q&&(Z[J].defaultSelected=!0)}else{J=""+_2(J),X=null;for(W=0;W<Z.length;W++){if(Z[W].value===J){Z[W].selected=!0,q&&(Z[W].defaultSelected=!0);return}X!==null||Z[W].disabled||(X=Z[W])}X!==null&&(X.selected=!0)}}function KL(Z,X){for(Z=0;Z<N_.length;Z++){var J=N_[Z];if(X[J]!=null){var q=u5(X[J]);X.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",J,GL()):!X.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",J,GL())}}X.value===void 0||X.defaultValue===void 0||M_||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),M_=!0)}function WL(Z,X){X.value===void 0||X.defaultValue===void 0||R_||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",$1()||"A component"),R_=!0),X.children!=null&&X.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function HL(Z,X,J){if(X!=null&&(X=""+_2(X),X!==Z.value&&(Z.value=X),J==null)){Z.defaultValue!==X&&(Z.defaultValue=X);return}Z.defaultValue=J!=null?""+_2(J):""}function BL(Z,X,J,q){if(X==null){if(q!=null){if(J!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(u5(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}J=q}J==null&&(J=""),X=J}J=_2(X),Z.defaultValue=J,q=Z.textContent,q===J&&q!==""&&q!==null&&(Z.value=q),cG(Z)}function UL(Z,X){return Z.serverProps===void 0&&Z.serverTail.length===0&&Z.children.length===1&&3<Z.distanceFromLeaf&&Z.distanceFromLeaf>15-X?UL(Z.children[0],X):Z}function t4(Z){return" "+" ".repeat(Z)}function BZ(Z){return"+ "+" ".repeat(Z)}function m7(Z){return"- "+" ".repeat(Z)}function zL(Z){switch(Z.tag){case 26:case 27:case 5:return Z.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return Z=Z.type,Z.displayName||Z.name||null;case 11:return Z=Z.type.render,Z.displayName||Z.name||null;case 1:return Z=Z.type,Z.displayName||Z.name||null;default:return null}}function q3(Z,X){return __.test(Z)?(Z=JSON.stringify(Z),Z.length>X-2?8>X?'{"..."}':"{"+Z.slice(0,X-7)+'..."}':"{"+Z+"}"):Z.length>X?5>X?'{"..."}':Z.slice(0,X-3)+"...":Z}function aJ(Z,X,J){var q=120-2*J;if(X===null)return BZ(J)+q3(Z,q)+`
|
|
36
|
+
`;if(typeof X==="string"){for(var W=0;W<X.length&&W<Z.length&&X.charCodeAt(W)===Z.charCodeAt(W);W++);return W>q-8&&10<W&&(Z="..."+Z.slice(W-8),X="..."+X.slice(W-8)),BZ(J)+q3(Z,q)+`
|
|
37
|
+
`+m7(J)+q3(X,q)+`
|
|
38
|
+
`}return t4(J)+q3(Z,q)+`
|
|
39
|
+
`}function nG(Z){return Object.prototype.toString.call(Z).replace(/^\[object (.*)\]$/,function(X,J){return J})}function G3(Z,X){switch(typeof Z){case"string":return Z=JSON.stringify(Z),Z.length>X?5>X?'"..."':Z.slice(0,X-4)+'..."':Z;case"object":if(Z===null)return"null";if(u5(Z))return"[...]";if(Z.$$typeof===C9)return(X=h(Z.type))?"<"+X+">":"<...>";var J=nG(Z);if(J==="Object"){J="",X-=2;for(var q in Z)if(Z.hasOwnProperty(q)){var W=JSON.stringify(q);if(W!=='"'+q+'"'&&(q=W),X-=q.length-2,W=G3(Z[q],15>X?X:15),X-=W.length,0>X){J+=J===""?"...":", ...";break}J+=(J===""?"":",")+q+":"+W}return"{"+J+"}"}return J;case"function":return(X=Z.displayName||Z.name)?"function "+X:"function";default:return String(Z)}}function UZ(Z,X){return typeof Z!=="string"||__.test(Z)?"{"+G3(Z,X-2)+"}":Z.length>X-2?5>X?'"..."':'"'+Z.slice(0,X-5)+'..."':'"'+Z+'"'}function sG(Z,X,J){var q=120-J.length-Z.length,W=[],U;for(U in X)if(X.hasOwnProperty(U)&&U!=="children"){var M=UZ(X[U],120-J.length-U.length-1);q-=U.length+M.length+2,W.push(U+"="+M)}return W.length===0?J+"<"+Z+`>
|
|
40
|
+
`:0<q?J+"<"+Z+" "+W.join(" ")+`>
|
|
41
|
+
`:J+"<"+Z+`
|
|
42
|
+
`+J+" "+W.join(`
|
|
43
|
+
`+J+" ")+`
|
|
44
|
+
`+J+`>
|
|
45
|
+
`}function ID(Z,X,J){var q="",W=V1({},X),U;for(U in Z)if(Z.hasOwnProperty(U)){delete W[U];var M=120-2*J-U.length-2,_=G3(Z[U],M);X.hasOwnProperty(U)?(M=G3(X[U],M),q+=BZ(J)+U+": "+_+`
|
|
46
|
+
`,q+=m7(J)+U+": "+M+`
|
|
47
|
+
`):q+=BZ(J)+U+": "+_+`
|
|
48
|
+
`}for(var V in W)W.hasOwnProperty(V)&&(Z=G3(W[V],120-2*J-V.length-2),q+=m7(J)+V+": "+Z+`
|
|
49
|
+
`);return q}function TD(Z,X,J,q){var W="",U=new Map;for(j in J)J.hasOwnProperty(j)&&U.set(j.toLowerCase(),j);if(U.size===1&&U.has("children"))W+=sG(Z,X,t4(q));else{for(var M in X)if(X.hasOwnProperty(M)&&M!=="children"){var _=120-2*(q+1)-M.length-1,V=U.get(M.toLowerCase());if(V!==void 0){U.delete(M.toLowerCase());var j=X[M];V=J[V];var l=UZ(j,_);_=UZ(V,_),typeof j==="object"&&j!==null&&typeof V==="object"&&V!==null&&nG(j)==="Object"&&nG(V)==="Object"&&(2<Object.keys(j).length||2<Object.keys(V).length||-1<l.indexOf("...")||-1<_.indexOf("..."))?W+=t4(q+1)+M+`={{
|
|
50
|
+
`+ID(j,V,q+2)+t4(q+1)+`}}
|
|
51
|
+
`:(W+=BZ(q+1)+M+"="+l+`
|
|
52
|
+
`,W+=m7(q+1)+M+"="+_+`
|
|
53
|
+
`)}else W+=t4(q+1)+M+"="+UZ(X[M],_)+`
|
|
54
|
+
`}U.forEach(function(d){if(d!=="children"){var m=120-2*(q+1)-d.length-1;W+=m7(q+1)+d+"="+UZ(J[d],m)+`
|
|
55
|
+
`}}),W=W===""?t4(q)+"<"+Z+`>
|
|
56
|
+
`:t4(q)+"<"+Z+`
|
|
57
|
+
`+W+t4(q)+`>
|
|
58
|
+
`}if(Z=J.children,X=X.children,typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint"){if(U="",typeof X==="string"||typeof X==="number"||typeof X==="bigint")U=""+X;W+=aJ(U,""+Z,q+1)}else if(typeof X==="string"||typeof X==="number"||typeof X==="bigint")W=Z==null?W+aJ(""+X,null,q+1):W+aJ(""+X,void 0,q+1);return W}function FL(Z,X){var J=zL(Z);if(J===null){J="";for(Z=Z.child;Z;)J+=FL(Z,X),Z=Z.sibling;return J}return t4(X)+"<"+J+`>
|
|
59
|
+
`}function oG(Z,X){var J=UL(Z,X);if(J!==Z&&(Z.children.length!==1||Z.children[0]!==J))return t4(X)+`...
|
|
60
|
+
`+oG(J,X+1);J="";var q=Z.fiber._debugInfo;if(q)for(var W=0;W<q.length;W++){var U=q[W].name;typeof U==="string"&&(J+=t4(X)+"<"+U+`>
|
|
61
|
+
`,X++)}if(q="",W=Z.fiber.pendingProps,Z.fiber.tag===6)q=aJ(W,Z.serverProps,X),X++;else if(U=zL(Z.fiber),U!==null)if(Z.serverProps===void 0){q=X;var M=120-2*q-U.length-2,_="";for(j in W)if(W.hasOwnProperty(j)&&j!=="children"){var V=UZ(W[j],15);if(M-=j.length+V.length+2,0>M){_+=" ...";break}_+=" "+j+"="+V}q=t4(q)+"<"+U+_+`>
|
|
62
|
+
`,X++}else Z.serverProps===null?(q=sG(U,W,BZ(X)),X++):typeof Z.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(q=TD(U,W,Z.serverProps,X),X++);var j="";W=Z.fiber.child;for(U=0;W&&U<Z.children.length;)M=Z.children[U],M.fiber===W?(j+=oG(M,X),U++):j+=FL(W,X),W=W.sibling;W&&0<Z.children.length&&(j+=t4(X)+`...
|
|
63
|
+
`),W=Z.serverTail,Z.serverProps===null&&X--;for(Z=0;Z<W.length;Z++)U=W[Z],j=typeof U==="string"?j+(m7(X)+q3(U,120-2*X)+`
|
|
64
|
+
`):j+sG(U.type,U.props,m7(X));return J+q+j}function tG(Z){try{return`
|
|
65
|
+
|
|
66
|
+
`+oG(Z,0)}catch(X){return""}}function LL(Z,X,J){for(var q=X,W=null,U=0;q;)q===Z&&(U=0),W={fiber:q,children:W!==null?[W]:[],serverProps:q===X?J:q===Z?null:void 0,serverTail:[],distanceFromLeaf:U},U++,q=q.return;return W!==null?tG(W).replaceAll(/^[+-]/gm,">"):""}function ML(Z,X){var J=V1({},Z||A_),q={tag:X};if(O_.indexOf(X)!==-1&&(J.aTagInScope=null,J.buttonTagInScope=null,J.nobrTagInScope=null),jE.indexOf(X)!==-1&&(J.pTagInButtonScope=null),CE.indexOf(X)!==-1&&X!=="address"&&X!=="div"&&X!=="p"&&(J.listItemTagAutoclosing=null,J.dlItemTagAutoclosing=null),J.current=q,X==="form"&&(J.formTag=q),X==="a"&&(J.aTagInScope=q),X==="button"&&(J.buttonTagInScope=q),X==="nobr"&&(J.nobrTagInScope=q),X==="p"&&(J.pTagInButtonScope=q),X==="li"&&(J.listItemTagAutoclosing=q),X==="dd"||X==="dt")J.dlItemTagAutoclosing=q;return X==="#document"||X==="html"?J.containerTagInScope=null:J.containerTagInScope||(J.containerTagInScope=q),Z!==null||X!=="#document"&&X!=="html"&&X!=="body"?J.implicitRootScope===!0&&(J.implicitRootScope=!1):J.implicitRootScope=!0,J}function NL(Z,X,J){switch(X){case"select":return Z==="hr"||Z==="option"||Z==="optgroup"||Z==="script"||Z==="template"||Z==="#text";case"optgroup":return Z==="option"||Z==="#text";case"option":return Z==="#text";case"tr":return Z==="th"||Z==="td"||Z==="style"||Z==="script"||Z==="template";case"tbody":case"thead":case"tfoot":return Z==="tr"||Z==="style"||Z==="script"||Z==="template";case"colgroup":return Z==="col"||Z==="template";case"table":return Z==="caption"||Z==="colgroup"||Z==="tbody"||Z==="tfoot"||Z==="thead"||Z==="style"||Z==="script"||Z==="template";case"head":return Z==="base"||Z==="basefont"||Z==="bgsound"||Z==="link"||Z==="meta"||Z==="title"||Z==="noscript"||Z==="noframes"||Z==="style"||Z==="script"||Z==="template";case"html":if(J)break;return Z==="head"||Z==="body"||Z==="frameset";case"frameset":return Z==="frame";case"#document":if(!J)return Z==="html"}switch(Z){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return X!=="h1"&&X!=="h2"&&X!=="h3"&&X!=="h4"&&X!=="h5"&&X!=="h6";case"rp":case"rt":return DE.indexOf(X)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return X==null;case"head":return J||X===null;case"html":return J&&X==="#document"||X===null;case"body":return J&&(X==="#document"||X==="html")||X===null}return!0}function VD(Z,X){switch(Z){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return X.pTagInButtonScope;case"form":return X.formTag||X.pTagInButtonScope;case"li":return X.listItemTagAutoclosing;case"dd":case"dt":return X.dlItemTagAutoclosing;case"button":return X.buttonTagInScope;case"a":return X.aTagInScope;case"nobr":return X.nobrTagInScope}return null}function RL(Z,X){for(;Z;){switch(Z.tag){case 5:case 26:case 27:if(Z.type===X)return Z}Z=Z.return}return null}function eG(Z,X){X=X||A_;var J=X.current;if(X=(J=NL(Z,J&&J.tag,X.implicitRootScope)?null:J)?null:VD(Z,X),X=J||X,!X)return!0;var q=X.tag;if(X=String(!!J)+"|"+Z+"|"+q,qY[X])return!1;qY[X]=!0;var W=(X=G2)?RL(X.return,q):null,U=X!==null&&W!==null?LL(W,X,null):"",M="<"+Z+">";return J?(J="",q==="table"&&Z==="tr"&&(J+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
67
|
+
This will cause a hydration error.%s`,M,q,J,U)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
|
+
This will cause a hydration error.%s`,M,q,U),X&&(Z=X.return,W===null||Z===null||W===Z&&Z._debugOwner===X._debugOwner||R0(W,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
+
See this log for the ancestor stack trace.`,q,M)})),!1}function nJ(Z,X,J){if(J||NL("#text",X,!1))return!0;if(J="#text|"+X,qY[J])return!1;qY[J]=!0;var q=(J=G2)?RL(J,X):null;return J=J!==null&&q!==null?LL(q,J,J.tag!==6?{children:null}:null):"",/\S/.test(Z)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
70
|
+
This will cause a hydration error.%s`,X,J):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
71
|
+
This will cause a hydration error.%s`,X,J),!1}function K3(Z,X){if(X){var J=Z.firstChild;if(J&&J===Z.lastChild&&J.nodeType===3){J.nodeValue=X;return}}Z.textContent=X}function PD(Z){return Z.replace(bE,function(X,J){return J.toUpperCase()})}function _L(Z,X,J){var q=X.indexOf("--")===0;q||(-1<X.indexOf("-")?bZ.hasOwnProperty(X)&&bZ[X]||(bZ[X]=!0,console.error("Unsupported style property %s. Did you mean %s?",X,PD(X.replace(EE,"ms-")))):SE.test(X)?bZ.hasOwnProperty(X)&&bZ[X]||(bZ[X]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",X,X.charAt(0).toUpperCase()+X.slice(1))):!V_.test(J)||FH.hasOwnProperty(J)&&FH[J]||(FH[J]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,X,J.replace(V_,""))),typeof J==="number"&&(isNaN(J)?P_||(P_=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",X)):isFinite(J)||w_||(w_=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",X)))),J==null||typeof J==="boolean"||J===""?q?Z.setProperty(X,""):X==="float"?Z.cssFloat="":Z[X]="":q?Z.setProperty(X,J):typeof J!=="number"||J===0||C_.has(X)?X==="float"?Z.cssFloat=J:(h1(J,X),Z[X]=(""+J).trim()):Z[X]=J+"px"}function OL(Z,X,J){if(X!=null&&typeof X!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(X&&Object.freeze(X),Z=Z.style,J!=null){if(X){var q={};if(J){for(var W in J)if(J.hasOwnProperty(W)&&!X.hasOwnProperty(W))for(var U=zH[W]||[W],M=0;M<U.length;M++)q[U[M]]=W}for(var _ in X)if(X.hasOwnProperty(_)&&(!J||J[_]!==X[_]))for(W=zH[_]||[_],U=0;U<W.length;U++)q[W[U]]=_;_={};for(var V in X)for(W=zH[V]||[V],U=0;U<W.length;U++)_[W[U]]=V;V={};for(var j in q)if(W=q[j],(U=_[j])&&W!==U&&(M=W+","+U,!V[M])){V[M]=!0,M=console;var l=X[W];M.error.call(M,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",l==null||typeof l==="boolean"||l===""?"Removing":"Updating",W,U)}}for(var d in J)!J.hasOwnProperty(d)||X!=null&&X.hasOwnProperty(d)||(d.indexOf("--")===0?Z.setProperty(d,""):d==="float"?Z.cssFloat="":Z[d]="");for(var m in X)j=X[m],X.hasOwnProperty(m)&&J[m]!==j&&_L(Z,m,j)}else for(q in X)X.hasOwnProperty(q)&&_L(Z,q,X[q])}function W3(Z){if(Z.indexOf("-")===-1)return!1;switch(Z){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}}function AL(Z){return yE.get(Z)||Z}function wD(Z,X){if(r2.call(gZ,X)&&gZ[X])return!0;if(hE.test(X)){if(Z="aria-"+X.slice(4).toLowerCase(),Z=j_.hasOwnProperty(Z)?Z:null,Z==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",X),gZ[X]=!0;if(X!==Z)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",X,Z),gZ[X]=!0}if(gE.test(X)){if(Z=X.toLowerCase(),Z=j_.hasOwnProperty(Z)?Z:null,Z==null)return gZ[X]=!0,!1;X!==Z&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",X,Z),gZ[X]=!0)}return!0}function CD(Z,X){var J=[],q;for(q in X)wD(Z,q)||J.push(q);X=J.map(function(W){return"`"+W+"`"}).join(", "),J.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",X,Z):1<J.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",X,Z)}function jD(Z,X,J,q){if(r2.call(j4,X)&&j4[X])return!0;var W=X.toLowerCase();if(W==="onfocusin"||W==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),j4[X]=!0;if(typeof J==="function"&&(Z==="form"&&X==="action"||Z==="input"&&X==="formAction"||Z==="button"&&X==="formAction"))return!0;if(q!=null){if(Z=q.possibleRegistrationNames,q.registrationNameDependencies.hasOwnProperty(X))return!0;if(q=Z.hasOwnProperty(W)?Z[W]:null,q!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",X,q),j4[X]=!0;if(S_.test(X))return console.error("Unknown event handler property `%s`. It will be ignored.",X),j4[X]=!0}else if(S_.test(X))return vE.test(X)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",X),j4[X]=!0;if(xE.test(X)||kE.test(X))return!0;if(W==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),j4[X]=!0;if(W==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),j4[X]=!0;if(W==="is"&&J!==null&&J!==void 0&&typeof J!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof J),j4[X]=!0;if(typeof J==="number"&&isNaN(J))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",X),j4[X]=!0;if(KY.hasOwnProperty(W)){if(W=KY[W],W!==X)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",X,W),j4[X]=!0}else if(X!==W)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",X,W),j4[X]=!0;switch(X){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof J){case"boolean":switch(X){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:if(W=X.toLowerCase().slice(0,5),W==="data-"||W==="aria-")return!0;return J?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',J,X,X,J,X):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',J,X,X,J,X,X,X),j4[X]=!0}case"function":case"symbol":return j4[X]=!0,!1;case"string":if(J==="false"||J==="true"){switch(X){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",J,X,J==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',X,J),j4[X]=!0}}return!0}function DD(Z,X,J){var q=[],W;for(W in X)jD(Z,W,X[W],J)||q.push(W);X=q.map(function(U){return"`"+U+"`"}).join(", "),q.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",X,Z):1<q.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",X,Z)}function H3(Z){return mE.test(""+Z)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":Z}function a9(){}function ZK(Z){return Z=Z.target||Z.srcElement||window,Z.correspondingUseElement&&(Z=Z.correspondingUseElement),Z.nodeType===3?Z.parentNode:Z}function IL(Z){var X=D0(Z);if(X&&(Z=X.stateNode)){var J=Z[C4]||null;Z:switch(Z=X.stateNode,X.type){case"input":if(rG(Z,J.value,J.defaultValue,J.defaultValue,J.checked,J.defaultChecked,J.type,J.name),X=J.name,J.type==="radio"&&X!=null){for(J=Z;J.parentNode;)J=J.parentNode;s0(X,"name"),J=J.querySelectorAll('input[name="'+O2(""+X)+'"][type="radio"]');for(X=0;X<J.length;X++){var q=J[X];if(q!==Z&&q.form===Z.form){var W=q[C4]||null;if(!W)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");rG(q,W.value,W.defaultValue,W.defaultValue,W.checked,W.defaultChecked,W.type,W.name)}}for(X=0;X<J.length;X++)q=J[X],q.form===Z.form&&JL(q)}break Z;case"textarea":HL(Z,J.value,J.defaultValue);break Z;case"select":X=J.value,X!=null&&HZ(Z,!!J.multiple,X,!1)}}}function TL(Z,X,J){if(LH)return Z(X,J);LH=!0;try{var q=Z(X);return q}finally{if(LH=!1,hZ!==null||vZ!==null){if(IZ(),hZ&&(X=hZ,Z=vZ,vZ=hZ=null,IL(X),Z))for(X=0;X<Z.length;X++)IL(Z[X])}}}function B3(Z,X){var J=Z.stateNode;if(J===null)return null;var q=J[C4]||null;if(q===null)return null;J=q[X];Z:switch(X){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(q=!q.disabled)||(Z=Z.type,q=!(Z==="button"||Z==="input"||Z==="select"||Z==="textarea")),Z=!q;break Z;default:Z=!1}if(Z)return null;if(J&&typeof J!=="function")throw Error("Expected `"+X+"` listener to be a function, instead got a value of `"+typeof J+"` type.");return J}function VL(){if(WY)return WY;var Z,X=NH,J=X.length,q,W="value"in c6?c6.value:c6.textContent,U=W.length;for(Z=0;Z<J&&X[Z]===W[Z];Z++);var M=J-Z;for(q=1;q<=M&&X[J-q]===W[U-q];q++);return WY=W.slice(Z,1<q?1-q:void 0)}function sJ(Z){var X=Z.keyCode;return"charCode"in Z?(Z=Z.charCode,Z===0&&X===13&&(Z=13)):Z=X,Z===10&&(Z=13),32<=Z||Z===13?Z:0}function oJ(){return!0}function PL(){return!1}function m4(Z){function X(J,q,W,U,M){this._reactName=J,this._targetInst=W,this.type=q,this.nativeEvent=U,this.target=M,this.currentTarget=null;for(var _ in Z)Z.hasOwnProperty(_)&&(J=Z[_],this[_]=J?J(U):U[_]);return this.isDefaultPrevented=(U.defaultPrevented!=null?U.defaultPrevented:U.returnValue===!1)?oJ:PL,this.isPropagationStopped=PL,this}return V1(X.prototype,{preventDefault:function(){this.defaultPrevented=!0;var J=this.nativeEvent;J&&(J.preventDefault?J.preventDefault():typeof J.returnValue!=="unknown"&&(J.returnValue=!1),this.isDefaultPrevented=oJ)},stopPropagation:function(){var J=this.nativeEvent;J&&(J.stopPropagation?J.stopPropagation():typeof J.cancelBubble!=="unknown"&&(J.cancelBubble=!0),this.isPropagationStopped=oJ)},persist:function(){},isPersistent:oJ}),X}function SD(Z){var X=this.nativeEvent;return X.getModifierState?X.getModifierState(Z):(Z=tE[Z])?!!X[Z]:!1}function XK(){return SD}function wL(Z,X){switch(Z){case"keyup":return Hb.indexOf(X.keyCode)!==-1;case"keydown":return X.keyCode!==g_;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function CL(Z){return Z=Z.detail,typeof Z==="object"&&"data"in Z?Z.data:null}function ED(Z,X){switch(Z){case"compositionend":return CL(X);case"keypress":if(X.which!==v_)return null;return k_=!0,x_;case"textInput":return Z=X.data,Z===x_&&k_?null:Z;default:return null}}function bD(Z,X){if(xZ)return Z==="compositionend"||!AH&&wL(Z,X)?(Z=VL(),WY=NH=c6=null,xZ=!1,Z):null;switch(Z){case"paste":return null;case"keypress":if(!(X.ctrlKey||X.altKey||X.metaKey)||X.ctrlKey&&X.altKey){if(X.char&&1<X.char.length)return X.char;if(X.which)return String.fromCharCode(X.which)}return null;case"compositionend":return h_&&X.locale!=="ko"?null:X.data;default:return null}}function jL(Z){var X=Z&&Z.nodeName&&Z.nodeName.toLowerCase();return X==="input"?!!Ub[Z.type]:X==="textarea"?!0:!1}function yD(Z){if(!y9)return!1;Z="on"+Z;var X=Z in document;return X||(X=document.createElement("div"),X.setAttribute(Z,"return;"),X=typeof X[Z]==="function"),X}function DL(Z,X,J,q){hZ?vZ?vZ.push(q):vZ=[q]:hZ=q,X=l$(X,"onChange"),0<X.length&&(J=new HY("onChange","change",null,J,q),Z.push({event:J,listeners:X}))}function gD(Z){BR(Z,0)}function tJ(Z){var X=m0(Z);if(JL(X))return Z}function SL(Z,X){if(Z==="change")return X}function EL(){s3&&(s3.detachEvent("onpropertychange",bL),o3=s3=null)}function bL(Z){if(Z.propertyName==="value"&&tJ(o3)){var X=[];DL(X,o3,Z,ZK(Z)),TL(gD,X)}}function hD(Z,X,J){Z==="focusin"?(EL(),s3=X,o3=J,s3.attachEvent("onpropertychange",bL)):Z==="focusout"&&EL()}function vD(Z){if(Z==="selectionchange"||Z==="keyup"||Z==="keydown")return tJ(o3)}function xD(Z,X){if(Z==="click")return tJ(X)}function kD(Z,X){if(Z==="input"||Z==="change")return tJ(X)}function mD(Z,X){return Z===X&&(Z!==0||1/Z===1/X)||Z!==Z&&X!==X}function U3(Z,X){if(D4(Z,X))return!0;if(typeof Z!=="object"||Z===null||typeof X!=="object"||X===null)return!1;var J=Object.keys(Z),q=Object.keys(X);if(J.length!==q.length)return!1;for(q=0;q<J.length;q++){var W=J[q];if(!r2.call(X,W)||!D4(Z[W],X[W]))return!1}return!0}function yL(Z){for(;Z&&Z.firstChild;)Z=Z.firstChild;return Z}function gL(Z,X){var J=yL(Z);Z=0;for(var q;J;){if(J.nodeType===3){if(q=Z+J.textContent.length,Z<=X&&q>=X)return{node:J,offset:X-Z};Z=q}Z:{for(;J;){if(J.nextSibling){J=J.nextSibling;break Z}J=J.parentNode}J=void 0}J=yL(J)}}function hL(Z,X){return Z&&X?Z===X?!0:Z&&Z.nodeType===3?!1:X&&X.nodeType===3?hL(Z,X.parentNode):("contains"in Z)?Z.contains(X):Z.compareDocumentPosition?!!(Z.compareDocumentPosition(X)&16):!1:!1}function vL(Z){Z=Z!=null&&Z.ownerDocument!=null&&Z.ownerDocument.defaultView!=null?Z.ownerDocument.defaultView:window;for(var X=rJ(Z.document);X instanceof Z.HTMLIFrameElement;){try{var J=typeof X.contentWindow.location.href==="string"}catch(q){J=!1}if(J)Z=X.contentWindow;else break;X=rJ(Z.document)}return X}function QK(Z){var X=Z&&Z.nodeName&&Z.nodeName.toLowerCase();return X&&(X==="input"&&(Z.type==="text"||Z.type==="search"||Z.type==="tel"||Z.type==="url"||Z.type==="password")||X==="textarea"||Z.contentEditable==="true")}function xL(Z,X,J){var q=J.window===J?J.document:J.nodeType===9?J:J.ownerDocument;TH||kZ==null||kZ!==rJ(q)||(q=kZ,("selectionStart"in q)&&QK(q)?q={start:q.selectionStart,end:q.selectionEnd}:(q=(q.ownerDocument&&q.ownerDocument.defaultView||window).getSelection(),q={anchorNode:q.anchorNode,anchorOffset:q.anchorOffset,focusNode:q.focusNode,focusOffset:q.focusOffset}),t3&&U3(t3,q)||(t3=q,q=l$(IH,"onSelect"),0<q.length&&(X=new HY("onSelect","select",null,X,J),Z.push({event:X,listeners:q}),X.target=kZ)))}function u7(Z,X){var J={};return J[Z.toLowerCase()]=X.toLowerCase(),J["Webkit"+Z]="webkit"+X,J["Moz"+Z]="moz"+X,J}function f7(Z){if(VH[Z])return VH[Z];if(!mZ[Z])return Z;var X=mZ[Z],J;for(J in X)if(X.hasOwnProperty(J)&&J in u_)return VH[Z]=X[J];return Z}function d2(Z,X){i_.set(Z,X),S1(X,[Z])}function uD(Z){for(var X=UY,J=0;J<Z.length;J++){var q=Z[J];if(typeof q==="object"&&q!==null)if(u5(q)&&q.length===2&&typeof q[0]==="string"){if(X!==UY&&X!==DH)return CH;X=DH}else return CH;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||X!==UY&&X!==jH)return CH;X=jH}}return X}function JK(Z,X,J,q){for(var W in Z)r2.call(Z,W)&&W[0]!=="_"&&B9(W,Z[W],X,J,q)}function B9(Z,X,J,q,W){switch(typeof X){case"object":if(X===null){X="null";break}else{if(X.$$typeof===C9){var U=h(X.type)||"…",M=X.key;X=X.props;var _=Object.keys(X),V=_.length;if(M==null&&V===0){X="<"+U+" />";break}if(3>q||V===1&&_[0]==="children"&&M==null){X="<"+U+" … />";break}J.push([W+" ".repeat(q)+Z,"<"+U]),M!==null&&B9("key",M,J,q+1,W),Z=!1;for(var j in X)j==="children"?X.children!=null&&(!u5(X.children)||0<X.children.length)&&(Z=!0):r2.call(X,j)&&j[0]!=="_"&&B9(j,X[j],J,q+1,W);J.push(["",Z?">…</"+U+">":"/>"]);return}if(U=Object.prototype.toString.call(X),U=U.slice(8,U.length-1),U==="Array"){if(j=uD(X),j===jH||j===UY){X=JSON.stringify(X);break}else if(j===DH){J.push([W+" ".repeat(q)+Z,""]);for(Z=0;Z<X.length;Z++)U=X[Z],B9(U[0],U[1],J,q+1,W);return}}if(U==="Promise"){if(X.status==="fulfilled"){if(U=J.length,B9(Z,X.value,J,q,W),J.length>U){J=J[U],J[1]="Promise<"+(J[1]||"Object")+">";return}}else if(X.status==="rejected"&&(U=J.length,B9(Z,X.reason,J,q,W),J.length>U)){J=J[U],J[1]="Rejected Promise<"+J[1]+">";return}J.push([" ".repeat(q)+Z,"Promise"]);return}U==="Object"&&(j=Object.getPrototypeOf(X))&&typeof j.constructor==="function"&&(U=j.constructor.name),J.push([W+" ".repeat(q)+Z,U==="Object"?3>q?"":"…":U]),3>q&&JK(X,J,q+1,W);return}case"function":X=X.name===""?"() => {}":X.name+"() {}";break;case"string":X=X===_b?"…":JSON.stringify(X);break;case"undefined":X="undefined";break;case"boolean":X=X?"true":"false";break;default:X=String(X)}J.push([W+" ".repeat(q)+Z,X])}function kL(Z,X,J,q){var W=!0;for(M in Z)M in X||(J.push([zY+" ".repeat(q)+M,"…"]),W=!1);for(var U in X)if(U in Z){var M=Z[U],_=X[U];if(M!==_){if(q===0&&U==="children")W=" ".repeat(q)+U,J.push([zY+W,"…"],[FY+W,"…"]);else{if(!(3<=q)){if(typeof M==="object"&&typeof _==="object"&&M!==null&&_!==null&&M.$$typeof===_.$$typeof)if(_.$$typeof===C9){if(M.type===_.type&&M.key===_.key){M=h(_.type)||"…",W=" ".repeat(q)+U,M="<"+M+" … />",J.push([zY+W,M],[FY+W,M]),W=!1;continue}}else{var V=Object.prototype.toString.call(M),j=Object.prototype.toString.call(_);if(V===j&&(j==="[object Object]"||j==="[object Array]")){V=[a_+" ".repeat(q)+U,j==="[object Array]"?"Array":""],J.push(V),j=J.length,kL(M,_,J,q+1)?j===J.length&&(V[1]="Referentially unequal but deeply equal objects. Consider memoization."):W=!1;continue}}else if(typeof M==="function"&&typeof _==="function"&&M.name===_.name&&M.length===_.length&&(V=Function.prototype.toString.call(M),j=Function.prototype.toString.call(_),V===j)){M=_.name===""?"() => {}":_.name+"() {}",J.push([a_+" ".repeat(q)+U,M+" Referentially unequal function closure. Consider memoization."]);continue}}B9(U,M,J,q,zY),B9(U,_,J,q,FY)}W=!1}}else J.push([FY+" ".repeat(q)+U,"…"]),W=!1;return W}function e4(Z){w1=Z&63?"Blocking":Z&64?"Gesture":Z&4194176?"Transition":Z&62914560?"Suspense":Z&2080374784?"Idle":"Other"}function U9(Z,X,J,q){J5&&(a6.start=X,a6.end=J,J6.color="warning",J6.tooltipText=q,J6.properties=null,(Z=Z._debugTask)?Z.run(performance.measure.bind(performance,q,a6)):performance.measure(q,a6))}function eJ(Z,X,J){U9(Z,X,J,"Reconnect")}function Z$(Z,X,J,q,W){var U=E(Z);if(U!==null&&J5){var{alternate:M,actualDuration:_}=Z;if(M===null||M.child!==Z.child)for(var V=Z.child;V!==null;V=V.sibling)_-=V.actualDuration;q=0.5>_?q?"tertiary-light":"primary-light":10>_?q?"tertiary":"primary":100>_?q?"tertiary-dark":"primary-dark":"error";var j=Z.memoizedProps;_=Z._debugTask,j!==null&&M!==null&&M.memoizedProps!==j?(V=[Ob],j=kL(M.memoizedProps,j,V,0),1<V.length&&(j&&!r6&&(M.lanes&W)===0&&100<Z.actualDuration?(r6=!0,V[0]=Ab,J6.color="warning",J6.tooltipText=n_):(J6.color=q,J6.tooltipText=U),J6.properties=V,a6.start=X,a6.end=J,_!=null?_.run(performance.measure.bind(performance,""+U,a6)):performance.measure(""+U,a6))):_!=null?_.run(console.timeStamp.bind(console,U,X,J,I2,void 0,q)):console.timeStamp(U,X,J,I2,void 0,q)}}function $K(Z,X,J,q){if(J5){var W=E(Z);if(W!==null){for(var U=null,M=[],_=0;_<q.length;_++){var V=q[_];U==null&&V.source!==null&&(U=V.source._debugTask),V=V.value,M.push(["Error",typeof V==="object"&&V!==null&&typeof V.message==="string"?String(V.message):String(V)])}Z.key!==null&&B9("key",Z.key,M,0,""),Z.memoizedProps!==null&&JK(Z.memoizedProps,M,0,""),U==null&&(U=Z._debugTask),Z={start:X,end:J,detail:{devtools:{color:"error",track:I2,tooltipText:Z.tag===13?"Hydration failed":"Error boundary caught an error",properties:M}}},U?U.run(performance.measure.bind(performance,""+W,Z)):performance.measure(""+W,Z)}}}function z9(Z,X,J,q,W){if(W!==null){if(J5){var U=E(Z);if(U!==null){q=[];for(var M=0;M<W.length;M++){var _=W[M].value;q.push(["Error",typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_)])}Z.key!==null&&B9("key",Z.key,q,0,""),Z.memoizedProps!==null&&JK(Z.memoizedProps,q,0,""),X={start:X,end:J,detail:{devtools:{color:"error",track:I2,tooltipText:"A lifecycle or effect errored",properties:q}}},(Z=Z._debugTask)?Z.run(performance.measure.bind(performance,""+U,X)):performance.measure(""+U,X)}}}else U=E(Z),U!==null&&J5&&(W=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(Z=Z._debugTask)?Z.run(console.timeStamp.bind(console,U,X,J,I2,void 0,W)):console.timeStamp(U,X,J,I2,void 0,W))}function fD(Z,X,J,q){if(J5&&!(X<=Z)){var W=(J&738197653)===J?"tertiary-dark":"primary-dark";J=(J&536870912)===J?"Prepared":(J&201326741)===J?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,J,Z,X,w1,P1,W)):console.timeStamp(J,Z,X,w1,P1,W)}}function mL(Z,X,J,q){!J5||X<=Z||(J=(J&738197653)===J?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",Z,X,w1,P1,J)):console.timeStamp("Prewarm",Z,X,w1,P1,J))}function uL(Z,X,J,q){!J5||X<=Z||(J=(J&738197653)===J?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",Z,X,w1,P1,J)):console.timeStamp("Suspended",Z,X,w1,P1,J))}function pD(Z,X,J,q,W,U){if(J5&&!(X<=Z)){J=[];for(var M=0;M<q.length;M++){var _=q[M].value;J.push(["Recoverable Error",typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_)])}Z={start:Z,end:X,detail:{devtools:{color:"primary-dark",track:w1,trackGroup:P1,tooltipText:W?"Hydration Failed":"Recovered after Error",properties:J}}},U?U.run(performance.measure.bind(performance,"Recovered",Z)):performance.measure("Recovered",Z)}}function YK(Z,X,J,q){!J5||X<=Z||(q?q.run(console.timeStamp.bind(console,"Errored",Z,X,w1,P1,"error")):console.timeStamp("Errored",Z,X,w1,P1,"error"))}function lD(Z,X,J,q){!J5||X<=Z||(q?q.run(console.timeStamp.bind(console,J,Z,X,w1,P1,"secondary-light")):console.timeStamp(J,Z,X,w1,P1,"secondary-light"))}function fL(Z,X,J,q,W){if(J5&&!(X<=Z)){for(var U=[],M=0;M<J.length;M++){var _=J[M].value;U.push(["Error",typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_)])}Z={start:Z,end:X,detail:{devtools:{color:"error",track:w1,trackGroup:P1,tooltipText:q?"Remaining Effects Errored":"Commit Errored",properties:U}}},W?W.run(performance.measure.bind(performance,"Errored",Z)):performance.measure("Errored",Z)}}function z3(Z,X,J){!J5||X<=Z||(J?J.run(console.timeStamp.bind(console,"Animating",Z,X,w1,P1,"secondary-dark")):console.timeStamp("Animating",Z,X,w1,P1,"secondary-dark"))}function X$(){for(var Z=uZ,X=SH=uZ=0;X<Z;){var J=T2[X];T2[X++]=null;var q=T2[X];T2[X++]=null;var W=T2[X];T2[X++]=null;var U=T2[X];if(T2[X++]=null,q!==null&&W!==null){var M=q.pending;M===null?W.next=W:(W.next=M.next,M.next=W),q.pending=W}U!==0&&pL(J,W,U)}}function Q$(Z,X,J,q){T2[uZ++]=Z,T2[uZ++]=X,T2[uZ++]=J,T2[uZ++]=q,SH|=q,Z.lanes|=q,Z=Z.alternate,Z!==null&&(Z.lanes|=q)}function qK(Z,X,J,q){return Q$(Z,X,J,q),J$(Z)}function M4(Z,X){return Q$(Z,null,null,X),J$(Z)}function pL(Z,X,J){Z.lanes|=J;var q=Z.alternate;q!==null&&(q.lanes|=J);for(var W=!1,U=Z.return;U!==null;)U.childLanes|=J,q=U.alternate,q!==null&&(q.childLanes|=J),U.tag===22&&(Z=U.stateNode,Z===null||Z._visibility&e3||(W=!0)),Z=U,U=U.return;return Z.tag===3?(U=Z.stateNode,W&&X!==null&&(W=31-w4(J),Z=U.hiddenUpdates,q=Z[W],q===null?Z[W]=[X]:q.push(X),X.lane=J|536870912),U):null}function J$(Z){if(wQ>vb)throw M8=wQ=0,CQ=WB=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");M8>xb&&(M8=0,CQ=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),Z.alternate===null&&(Z.flags&4098)!==0&&$R(Z);for(var X=Z,J=X.return;J!==null;)X.alternate===null&&(X.flags&4098)!==0&&$R(Z),X=J,J=X.return;return X.tag===3?X.stateNode:null}function p7(Z){if(V2===null)return Z;var X=V2(Z);return X===void 0?Z:X.current}function GK(Z){if(V2===null)return Z;var X=V2(Z);return X===void 0?Z!==null&&Z!==void 0&&typeof Z.render==="function"&&(X=p7(Z.render),Z.render!==X)?(X={$$typeof:f3,render:X},Z.displayName!==void 0&&(X.displayName=Z.displayName),X):Z:X.current}function lL(Z,X){if(V2===null)return!1;var J=Z.elementType;X=X.type;var q=!1,W=typeof X==="object"&&X!==null?X.$$typeof:null;switch(Z.tag){case 1:typeof X==="function"&&(q=!0);break;case 0:typeof X==="function"?q=!0:W===q2&&(q=!0);break;case 11:W===f3?q=!0:W===q2&&(q=!0);break;case 14:case 15:W===ZY?q=!0:W===q2&&(q=!0);break;default:return!1}return q&&(Z=V2(J),Z!==void 0&&Z===V2(X))?!0:!1}function dL(Z){V2!==null&&typeof WeakSet==="function"&&(fZ===null&&(fZ=new WeakSet),fZ.add(Z))}function iL(Z,X,J){do{var q=Z,W=q.alternate,U=q.child,M=q.sibling,_=q.tag;q=q.type;var V=null;switch(_){case 0:case 15:case 1:V=q;break;case 11:V=q.render}if(V2===null)throw Error("Expected resolveFamily to be set during hot reload.");var j=!1;if(q=!1,V!==null&&(V=V2(V),V!==void 0&&(J.has(V)?q=!0:X.has(V)&&(_===1?q=!0:j=!0))),fZ!==null&&(fZ.has(Z)||W!==null&&fZ.has(W))&&(q=!0),q&&(Z._debugNeedsRemount=!0),q||j)W=M4(Z,2),W!==null&&L5(W,Z,2);if(U===null||q||iL(U,X,J),M===null)break;Z=M}while(1)}function dD(Z,X,J,q){this.tag=Z,this.key=J,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=X,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=q,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,s_||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function KK(Z){return Z=Z.prototype,!(!Z||!Z.isReactComponent)}function n9(Z,X){var J=Z.alternate;switch(J===null?(J=O(Z.tag,X,Z.key,Z.mode),J.elementType=Z.elementType,J.type=Z.type,J.stateNode=Z.stateNode,J._debugOwner=Z._debugOwner,J._debugStack=Z._debugStack,J._debugTask=Z._debugTask,J._debugHookTypes=Z._debugHookTypes,J.alternate=Z,Z.alternate=J):(J.pendingProps=X,J.type=Z.type,J.flags=0,J.subtreeFlags=0,J.deletions=null,J.actualDuration=-0,J.actualStartTime=-1.1),J.flags=Z.flags&65011712,J.childLanes=Z.childLanes,J.lanes=Z.lanes,J.child=Z.child,J.memoizedProps=Z.memoizedProps,J.memoizedState=Z.memoizedState,J.updateQueue=Z.updateQueue,X=Z.dependencies,J.dependencies=X===null?null:{lanes:X.lanes,firstContext:X.firstContext,_debugThenableState:X._debugThenableState},J.sibling=Z.sibling,J.index=Z.index,J.ref=Z.ref,J.refCleanup=Z.refCleanup,J.selfBaseDuration=Z.selfBaseDuration,J.treeBaseDuration=Z.treeBaseDuration,J._debugInfo=Z._debugInfo,J._debugNeedsRemount=Z._debugNeedsRemount,J.tag){case 0:case 15:J.type=p7(Z.type);break;case 1:J.type=p7(Z.type);break;case 11:J.type=GK(Z.type)}return J}function cL(Z,X){Z.flags&=65011714;var J=Z.alternate;return J===null?(Z.childLanes=0,Z.lanes=X,Z.child=null,Z.subtreeFlags=0,Z.memoizedProps=null,Z.memoizedState=null,Z.updateQueue=null,Z.dependencies=null,Z.stateNode=null,Z.selfBaseDuration=0,Z.treeBaseDuration=0):(Z.childLanes=J.childLanes,Z.lanes=J.lanes,Z.child=J.child,Z.subtreeFlags=0,Z.deletions=null,Z.memoizedProps=J.memoizedProps,Z.memoizedState=J.memoizedState,Z.updateQueue=J.updateQueue,Z.type=J.type,X=J.dependencies,Z.dependencies=X===null?null:{lanes:X.lanes,firstContext:X.firstContext,_debugThenableState:X._debugThenableState},Z.selfBaseDuration=J.selfBaseDuration,Z.treeBaseDuration=J.treeBaseDuration),Z}function WK(Z,X,J,q,W,U){var M=0,_=Z;if(typeof Z==="function")KK(Z)&&(M=1),_=p7(_);else if(typeof Z==="string")M=G0(),M=eS(Z,J,M)?26:Z==="html"||Z==="head"||Z==="body"?27:5;else Z:switch(Z){case XH:return X=O(31,J,X,W),X.elementType=XH,X.lanes=U,X;case DZ:return l7(J.children,W,U,X);case e$:M=8,W|=R4,W|=n2;break;case oW:return Z=J,q=W,typeof Z.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof Z.id),X=O(12,Z,X,q|N1),X.elementType=oW,X.lanes=U,X.stateNode={effectDuration:0,passiveEffectDuration:0},X;case eW:return X=O(13,J,X,W),X.elementType=eW,X.lanes=U,X;case ZH:return X=O(19,J,X,W),X.elementType=ZH,X.lanes=U,X;default:if(typeof Z==="object"&&Z!==null)switch(Z.$$typeof){case j9:M=10;break Z;case tW:M=9;break Z;case f3:M=11,_=GK(_);break Z;case ZY:M=14;break Z;case q2:M=16,_=null;break Z}if(_="",Z===void 0||typeof Z==="object"&&Z!==null&&Object.keys(Z).length===0)_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";Z===null?J="null":u5(Z)?J="array":Z!==void 0&&Z.$$typeof===C9?(J="<"+(h(Z.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):J=typeof Z,(M=q?Z0(q):null)&&(_+=`
|
|
72
|
+
|
|
73
|
+
Check the render method of \``+M+"`."),M=29,J=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(J+"."+_)),_=null}return X=O(M,J,X,W),X.elementType=Z,X.type=_,X.lanes=U,X._debugOwner=q,X}function $$(Z,X,J){return X=WK(Z.type,Z.key,Z.props,Z._owner,X,J),X._debugOwner=Z._owner,X._debugStack=Z._debugStack,X._debugTask=Z._debugTask,X}function l7(Z,X,J,q){return Z=O(7,Z,q,X),Z.lanes=J,Z}function HK(Z,X,J){return Z=O(6,Z,null,X),Z.lanes=J,Z}function rL(Z){var X=O(18,null,null,J1);return X.stateNode=Z,X}function BK(Z,X,J){return X=O(4,Z.children!==null?Z.children:[],Z.key,X),X.lanes=J,X.stateNode={containerInfo:Z.containerInfo,pendingChildren:null,implementation:Z.implementation},X}function Z2(Z,X){if(typeof Z==="object"&&Z!==null){var J=EH.get(Z);if(J!==void 0)return J;return X={value:Z,source:X,stack:C0(X)},EH.set(Z,X),X}return{value:Z,source:X,stack:C0(X)}}function s9(Z,X){S6(),pZ[lZ++]=ZQ,pZ[lZ++]=LY,LY=Z,ZQ=X}function aL(Z,X,J){S6(),P2[w2++]=Y6,P2[w2++]=q6,P2[w2++]=Q8,Q8=Z;var q=Y6;Z=q6;var W=32-w4(q)-1;q&=~(1<<W),J+=1;var U=32-w4(X)+W;if(30<U){var M=W-W%5;U=(q&(1<<M)-1).toString(32),q>>=M,W-=M,Y6=1<<32-w4(X)+W|J<<W|q,q6=U+Z}else Y6=1<<U|J<<W|q,q6=Z}function UK(Z){S6(),Z.return!==null&&(s9(Z,1),aL(Z,1,0))}function zK(Z){for(;Z===LY;)LY=pZ[--lZ],pZ[lZ]=null,ZQ=pZ[--lZ],pZ[lZ]=null;for(;Z===Q8;)Q8=P2[--w2],P2[w2]=null,q6=P2[--w2],P2[w2]=null,Y6=P2[--w2],P2[w2]=null}function nL(){return S6(),Q8!==null?{id:Y6,overflow:q6}:null}function sL(Z,X){S6(),P2[w2++]=Y6,P2[w2++]=q6,P2[w2++]=Q8,Y6=X.id,q6=X.overflow,Q8=Z}function S6(){E1||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function d7(Z,X){if(Z.return===null){if(W2===null)W2={fiber:Z,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:X};else{if(W2.fiber!==Z)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");W2.distanceFromLeaf>X&&(W2.distanceFromLeaf=X)}return W2}var J=d7(Z.return,X+1).children;if(0<J.length&&J[J.length-1].fiber===Z)return J=J[J.length-1],J.distanceFromLeaf>X&&(J.distanceFromLeaf=X),J;return X={fiber:Z,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:X},J.push(X),X}function oL(){E1&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Y$(Z,X){g9||(Z=d7(Z,0),Z.serverProps=null,X!==null&&(X=DR(X),Z.serverTail.push(X)))}function E6(Z){var X=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,J="",q=W2;throw q!==null&&(W2=null,J=tG(q)),F3(Z2(Error("Hydration failed because the server rendered "+(X?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
74
74
|
|
|
75
75
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
76
76
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -80,7 +80,7 @@ Check the render method of \``+z+"`."),z=29,X=Error("Element type is invalid: ex
|
|
|
80
80
|
|
|
81
81
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
82
82
|
|
|
83
|
-
https://react.dev/link/hydration-mismatch`+
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+J),Z)),bH}function tL(Z){var{stateNode:X,type:J,memoizedProps:q}=Z;switch(X[G4]=Z,X[C4]=q,yW(J,q),J){case"dialog":y1("cancel",X),y1("close",X);break;case"iframe":case"object":case"embed":y1("load",X);break;case"video":case"audio":for(J=0;J<jQ.length;J++)y1(jQ[J],X);break;case"source":y1("error",X);break;case"img":case"image":case"link":y1("error",X),y1("load",X);break;case"details":y1("toggle",X);break;case"input":D6("input",q),y1("invalid",X),$L(X,q),YL(X,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":qL(X,q);break;case"select":D6("select",q),y1("invalid",X),KL(X,q);break;case"textarea":D6("textarea",q),y1("invalid",X),WL(X,q),BL(X,q.value,q.defaultValue,q.children)}J=q.children,typeof J!=="string"&&typeof J!=="number"&&typeof J!=="bigint"||X.textContent===""+J||q.suppressHydrationWarning===!0||LR(X.textContent,J)?(q.popover!=null&&(y1("beforetoggle",X),y1("toggle",X)),q.onScroll!=null&&y1("scroll",X),q.onScrollEnd!=null&&y1("scrollend",X),q.onClick!=null&&(X.onclick=a9),X=!0):X=!1,X||E6(Z,!0)}function eL(Z){for(K4=Z.return;K4;)switch(K4.tag){case 5:case 31:case 13:C2=!1;return;case 27:case 3:C2=!0;return;default:K4=K4.return}}function zZ(Z){if(Z!==K4)return!1;if(!E1)return eL(Z),E1=!0,!1;var X=Z.tag,J;if(J=X!==3&&X!==27){if(J=X===5)J=Z.type,J=!(J!=="form"&&J!=="button")||kW(Z.type,Z.memoizedProps);J=!J}if(J&&$5){for(J=$5;J;){var q=d7(Z,0),W=DR(J);q.serverTail.push(W),J=W.type==="Suspense"?pW(J):Y2(J.nextSibling)}E6(Z)}if(eL(Z),X===13){if(Z=Z.memoizedState,Z=Z!==null?Z.dehydrated:null,!Z)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");$5=pW(Z)}else if(X===31){if(Z=Z.memoizedState,Z=Z!==null?Z.dehydrated:null,!Z)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");$5=pW(Z)}else X===27?(X=$5,f6(Z.type)?(Z=AB,AB=null,$5=Z):$5=X):$5=K4?Y2(Z.stateNode.nextSibling):null;return!0}function i7(){$5=K4=null,g9=E1=!1}function FK(){var Z=s6;return Z!==null&&(y4===null?y4=Z:y4.push.apply(y4,Z),s6=null),Z}function F3(Z){s6===null?s6=[Z]:s6.push(Z)}function LK(){var Z=W2;if(Z!==null){W2=null;for(var X=tG(Z);0<Z.children.length;)Z=Z.children[0];R0(Z.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
84
84
|
|
|
85
85
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
86
86
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -90,58 +90,58 @@ https://react.dev/link/hydration-mismatch`+X),$)),fZ}function oz($){var{stateNod
|
|
|
90
90
|
|
|
91
91
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
92
92
|
|
|
93
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",X)})}}function q$(){dZ=MY=null,iZ=!1}function b6(Z,X,J){n(yH,X._currentValue,Z),X._currentValue=J,n(gH,X._currentRenderer,Z),X._currentRenderer!==void 0&&X._currentRenderer!==null&&X._currentRenderer!==t_&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),X._currentRenderer=t_}function o9(Z,X){Z._currentValue=yH.current;var J=gH.current;t(gH,X),Z._currentRenderer=J,t(yH,X)}function MK(Z,X,J){for(;Z!==null;){var q=Z.alternate;if((Z.childLanes&X)!==X?(Z.childLanes|=X,q!==null&&(q.childLanes|=X)):q!==null&&(q.childLanes&X)!==X&&(q.childLanes|=X),Z===J)break;Z=Z.return}Z!==J&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function NK(Z,X,J,q){var W=Z.child;W!==null&&(W.return=Z);for(;W!==null;){var U=W.dependencies;if(U!==null){var M=W.child;U=U.firstContext;Z:for(;U!==null;){var _=U;U=W;for(var V=0;V<X.length;V++)if(_.context===X[V]){U.lanes|=J,_=U.alternate,_!==null&&(_.lanes|=J),MK(U.return,J,Z),q||(M=null);break Z}U=_.next}}else if(W.tag===18){if(M=W.return,M===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");M.lanes|=J,U=M.alternate,U!==null&&(U.lanes|=J),MK(M,J,Z),M=null}else M=W.child;if(M!==null)M.return=W;else for(M=W;M!==null;){if(M===Z){M=null;break}if(W=M.sibling,W!==null){W.return=M.return,M=W;break}M=M.return}W=M}}function FZ(Z,X,J,q){Z=null;for(var W=X,U=!1;W!==null;){if(!U){if((W.flags&524288)!==0)U=!0;else if((W.flags&262144)!==0)break}if(W.tag===10){var M=W.alternate;if(M===null)throw Error("Should have a current fiber. This is a bug in React.");if(M=M.memoizedProps,M!==null){var _=W.type;D4(W.pendingProps.value,M.value)||(Z!==null?Z.push(_):Z=[_])}}else if(W===XY.current){if(M=W.alternate,M===null)throw Error("Should have a current fiber. This is a bug in React.");M.memoizedState.memoizedState!==W.memoizedState.memoizedState&&(Z!==null?Z.push(yQ):Z=[yQ])}W=W.return}Z!==null&&NK(X,Z,J,q),X.flags|=262144}function G$(Z){for(Z=Z.firstContext;Z!==null;){if(!D4(Z.context._currentValue,Z.memoizedValue))return!0;Z=Z.next}return!1}function c7(Z){MY=Z,dZ=null,Z=Z.dependencies,Z!==null&&(Z.firstContext=null)}function K5(Z){return iZ&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),ZM(MY,Z)}function K$(Z,X){return MY===null&&c7(Z),ZM(Z,X)}function ZM(Z,X){var J=X._currentValue;if(X={context:X,memoizedValue:J,next:null},dZ===null){if(Z===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");dZ=X,Z.dependencies={lanes:0,firstContext:X,_debugThenableState:null},Z.flags|=524288}else dZ=dZ.next=X;return J}function RK(){return{controller:new Vb,data:new Map,refCount:0}}function r7(Z){Z.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),Z.refCount++}function L3(Z){Z.refCount--,0>Z.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),Z.refCount===0&&Pb(wb,function(){Z.controller.abort()})}function F9(Z,X,J){if((Z&127)!==0)0>h9&&(h9=D5(),QQ=NY(X),hH=X,J!=null&&(vH=E(J)),(x1&(p5|U2))!==Z4&&(M5=!0,e6=XQ),Z=v3(),X=h3(),Z!==cZ||X!==JQ?cZ=-1.1:X!==null&&(e6=XQ),$8=Z,JQ=X);else if((Z&4194048)!==0&&0>j2&&(j2=D5(),$Q=NY(X),e_=X,J!=null&&(ZO=E(J)),0>W6)){if(Z=v3(),X=h3(),Z!==X7||X!==Y8)X7=-1.1;Z7=Z,Y8=X}}function iD(Z){if(0>h9){h9=D5(),QQ=Z._debugTask!=null?Z._debugTask:null,(x1&(p5|U2))!==Z4&&(e6=XQ);var X=v3(),J=h3();X!==cZ||J!==JQ?cZ=-1.1:J!==null&&(e6=XQ),$8=X,JQ=J}if(0>j2&&(j2=D5(),$Q=Z._debugTask!=null?Z._debugTask:null,0>W6)){if(Z=v3(),X=h3(),Z!==X7||X!==Y8)X7=-1.1;Z7=Z,Y8=X}}function t9(){var Z=J8;return J8=0,Z}function W$(Z){var X=J8;return J8=Z,X}function M3(Z){var X=J8;return J8+=Z,X}function H$(){Z1=n0=-1.1}function X2(){var Z=n0;return n0=-1.1,Z}function Q2(Z){0<=Z&&(n0=Z)}function L9(){var Z=U5;return U5=-0,Z}function M9(Z){0<=Z&&(U5=Z)}function N9(){var Z=W5;return W5=null,Z}function R9(){var Z=M5;return M5=!1,Z}function _K(Z){S4=D5(),0>Z.actualStartTime&&(Z.actualStartTime=S4)}function OK(Z){if(0<=S4){var X=D5()-S4;Z.actualDuration+=X,Z.selfBaseDuration=X,S4=-1}}function XM(Z){if(0<=S4){var X=D5()-S4;Z.actualDuration+=X,S4=-1}}function _9(){if(0<=S4){var Z=D5(),X=Z-S4;S4=-1,J8+=X,U5+=X,Z1=Z}}function QM(Z){W5===null&&(W5=[]),W5.push(Z),K6===null&&(K6=[]),K6.push(Z)}function O9(){S4=D5(),0>n0&&(n0=S4)}function N3(Z){for(var X=Z.child;X;)Z.actualDuration+=X.actualDuration,X=X.sibling}function cD(Z,X){if(qQ===null){var J=qQ=[];kH=0,q8=DW(),rZ={status:"pending",value:void 0,then:function(q){J.push(q)}}}return kH++,X.then(JM,JM),X}function JM(){if(--kH===0&&(-1<j2||(W6=-1.1),qQ!==null)){rZ!==null&&(rZ.status="fulfilled");var Z=qQ;qQ=null,q8=0,rZ=null;for(var X=0;X<Z.length;X++)(0,Z[X])()}}function rD(Z,X){var J=[],q={status:"pending",value:null,reason:null,then:function(W){J.push(W)}};return Z.then(function(){q.status="fulfilled",q.value=X;for(var W=0;W<J.length;W++)(0,J[W])(X)},function(W){q.status="rejected",q.reason=W;for(W=0;W<J.length;W++)(0,J[W])(void 0)}),q}function AK(){var Z=G8.current;return Z!==null?Z:s1.pooledCache}function B$(Z,X){X===null?n(G8,G8.current,Z):n(G8,X.pool,Z)}function $M(){var Z=AK();return Z===null?null:{parent:j5._currentValue,pool:Z}}function YM(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function qM(Z){return Z=Z.status,Z==="fulfilled"||Z==="rejected"}function GM(Z,X,J){q0.actQueue!==null&&(q0.didUsePromise=!0);var q=Z.thenables;if(J=q[J],J===void 0?q.push(X):J!==X&&(Z.didWarnAboutUncachedPromise||(Z.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),X.then(a9,a9),X=J),X._debugInfo===void 0){Z=performance.now(),q=X.displayName;var W={name:typeof q==="string"?q:"Promise",start:Z,end:Z,value:X};X._debugInfo=[{awaited:W}],X.status!=="fulfilled"&&X.status!=="rejected"&&(Z=function(){W.end=performance.now()},X.then(Z,Z))}switch(X.status){case"fulfilled":return X.value;case"rejected":throw Z=X.reason,WM(Z),Z;default:if(typeof X.status==="string")X.then(a9,a9);else{if(Z=s1,Z!==null&&100<Z.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");Z=X,Z.status="pending",Z.then(function(U){if(X.status==="pending"){var M=X;M.status="fulfilled",M.value=U}},function(U){if(X.status==="pending"){var M=X;M.status="rejected",M.reason=U}})}switch(X.status){case"fulfilled":return X.value;case"rejected":throw Z=X.reason,WM(Z),Z}throw W8=X,zQ=!0,aZ}}function y6(Z){try{return Sb(Z)}catch(X){if(X!==null&&typeof X==="object"&&typeof X.then==="function")throw W8=X,zQ=!0,aZ;throw X}}function KM(){if(W8===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var Z=W8;return W8=null,zQ=!1,Z}function WM(Z){if(Z===aZ||Z===PY)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function $4(Z){var X=R1;return Z!=null&&(R1=X===null?Z:X.concat(Z)),X}function IK(){var Z=R1;if(Z!=null){for(var X=Z.length-1;0<=X;X--)if(Z[X].name!=null){var J=Z[X].debugTask;if(J!=null)return J}}return null}function U$(Z,X,J){for(var q=Object.keys(Z.props),W=0;W<q.length;W++){var U=q[W];if(U!=="children"&&U!=="key"){X===null&&(X=$$(Z,J.mode,0),X._debugInfo=R1,X.return=J),R0(X,function(M){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",M)},U);break}}}function z$(Z){var X=FQ;return FQ+=1,nZ===null&&(nZ=YM()),GM(nZ,Z,X)}function R3(Z,X){X=X.props.ref,Z.ref=X!==void 0?X:null}function HM(Z,X){if(X.$$typeof===WE)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
94
94
|
- Multiple copies of the "react" package is used.
|
|
95
95
|
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
96
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`);throw
|
|
97
|
-
root.render(%s)`,
|
|
98
|
-
<%s>{%s}</%s>`,
|
|
99
|
-
root.render(%s)`,
|
|
100
|
-
<%s>%s</%s>`,X,B,X))}function p9($,B){var X=_X();X!==null?X.run(zW.bind(null,$,B)):zW($,B)}function WW($){function B(U,w){if($){var M=U.deletions;M===null?(U.deletions=[w],U.flags|=16):M.push(w)}}function X(U,w){if(!$)return null;for(;w!==null;)B(U,w),w=w.sibling;return null}function Y(U){for(var w=new Map;U!==null;)U.key!==null?w.set(U.key,U):w.set(U.index,U),U=U.sibling;return w}function Z(U,w){return U=U7(U,w),U.index=0,U.sibling=null,U}function G(U,w,M){if(U.index=M,!$)return U.flags|=1048576,w;if(M=U.alternate,M!==null)return M=M.index,M<w?(U.flags|=67108866,w):M;return U.flags|=67108866,w}function z(U){return $&&U.alternate===null&&(U.flags|=67108866),U}function W(U,w,M,h){if(w===null||w.tag!==6)return w=vX(M,U.mode,h),w.return=U,w._debugOwner=U,w._debugTask=U._debugTask,w._debugInfo=j0,w;return w=Z(w,M),w.return=U,w._debugInfo=j0,w}function J(U,w,M,h){var $0=M.type;if($0===s3)return w=A(U,w,M.props.children,h,M.key),E9(M,w,U),w;if(w!==null&&(w.elementType===$0||kz(w,M)||typeof $0==="object"&&$0!==null&&$0.$$typeof===n1&&i7($0)===w.type))return w=Z(w,M.props),a6(w,M),w.return=U,w._debugOwner=M._owner,w._debugInfo=j0,w;return w=y9(M,U.mode,h),a6(w,M),w.return=U,w._debugInfo=j0,w}function Q(U,w,M,h){if(w===null||w.tag!==4||w.stateNode.containerInfo!==M.containerInfo||w.stateNode.implementation!==M.implementation)return w=JX(M,U.mode,h),w.return=U,w._debugInfo=j0,w;return w=Z(w,M.children||[]),w.return=U,w._debugInfo=j0,w}function A(U,w,M,h,$0){if(w===null||w.tag!==7)return w=l5(M,U.mode,h,$0),w.return=U,w._debugOwner=U,w._debugTask=U._debugTask,w._debugInfo=j0,w;return w=Z(w,M),w.return=U,w._debugInfo=j0,w}function P(U,w,M){if(typeof w==="string"&&w!==""||typeof w==="number"||typeof w==="bigint")return w=vX(""+w,U.mode,M),w.return=U,w._debugOwner=U,w._debugTask=U._debugTask,w._debugInfo=j0,w;if(typeof w==="object"&&w!==null){switch(w.$$typeof){case X7:return M=y9(w,U.mode,M),a6(M,w),M.return=U,U=v1(w._debugInfo),M._debugInfo=j0,j0=U,M;case a3:return w=JX(w,U.mode,M),w.return=U,w._debugInfo=j0,w;case n1:var h=v1(w._debugInfo);return w=i7(w),U=P(U,w,M),j0=h,U}if(t2(w)||e0(w))return M=l5(w,U.mode,M,null),M.return=U,M._debugOwner=U,M._debugTask=U._debugTask,U=v1(w._debugInfo),M._debugInfo=j0,j0=U,M;if(typeof w.then==="function")return h=v1(w._debugInfo),U=P(U,D9(w),M),j0=h,U;if(w.$$typeof===Y7)return P(U,h9(U,w),M);l9(U,w)}return typeof w==="function"&&d9(U,w),typeof w==="symbol"&&p9(U,w),null}function O(U,w,M,h){var $0=w!==null?w.key:null;if(typeof M==="string"&&M!==""||typeof M==="number"||typeof M==="bigint")return $0!==null?null:W(U,w,""+M,h);if(typeof M==="object"&&M!==null){switch(M.$$typeof){case X7:return M.key===$0?($0=v1(M._debugInfo),U=J(U,w,M,h),j0=$0,U):null;case a3:return M.key===$0?Q(U,w,M,h):null;case n1:return $0=v1(M._debugInfo),M=i7(M),U=O(U,w,M,h),j0=$0,U}if(t2(M)||e0(M)){if($0!==null)return null;return $0=v1(M._debugInfo),U=A(U,w,M,h,null),j0=$0,U}if(typeof M.then==="function")return $0=v1(M._debugInfo),U=O(U,w,D9(M),h),j0=$0,U;if(M.$$typeof===Y7)return O(U,w,h9(U,M),h);l9(U,M)}return typeof M==="function"&&d9(U,M),typeof M==="symbol"&&p9(U,M),null}function f(U,w,M,h,$0){if(typeof h==="string"&&h!==""||typeof h==="number"||typeof h==="bigint")return U=U.get(M)||null,W(w,U,""+h,$0);if(typeof h==="object"&&h!==null){switch(h.$$typeof){case X7:return M=U.get(h.key===null?M:h.key)||null,U=v1(h._debugInfo),w=J(w,M,h,$0),j0=U,w;case a3:return U=U.get(h.key===null?M:h.key)||null,Q(w,U,h,$0);case n1:var y0=v1(h._debugInfo);return h=i7(h),w=f(U,w,M,h,$0),j0=y0,w}if(t2(h)||e0(h))return M=U.get(M)||null,U=v1(h._debugInfo),w=A(w,M,h,$0,null),j0=U,w;if(typeof h.then==="function")return y0=v1(h._debugInfo),w=f(U,w,M,D9(h),$0),j0=y0,w;if(h.$$typeof===Y7)return f(U,w,M,h9(w,h),$0);l9(w,h)}return typeof h==="function"&&d9(w,h),typeof h==="symbol"&&p9(w,h),null}function r(U,w,M,h){if(typeof M!=="object"||M===null)return h;switch(M.$$typeof){case X7:case a3:I(U,w,M);var $0=M.key;if(typeof $0!=="string")break;if(h===null){h=new Set,h.add($0);break}if(!h.has($0)){h.add($0);break}s(w,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",$0)});break;case n1:M=i7(M),r(U,w,M,h)}return h}function X0(U,w,M,h){for(var $0=null,y0=null,q0=null,J0=w,h0=w=0,I2=null;J0!==null&&h0<M.length;h0++){J0.index>h0?(I2=J0,J0=null):I2=J0.sibling;var d2=O(U,J0,M[h0],h);if(d2===null){J0===null&&(J0=I2);break}$0=r(U,d2,M[h0],$0),$&&J0&&d2.alternate===null&&B(U,J0),w=G(d2,w,h0),q0===null?y0=d2:q0.sibling=d2,q0=d2,J0=I2}if(h0===M.length)return X(U,J0),i0&&O7(U,h0),y0;if(J0===null){for(;h0<M.length;h0++)J0=P(U,M[h0],h),J0!==null&&($0=r(U,J0,M[h0],$0),w=G(J0,w,h0),q0===null?y0=J0:q0.sibling=J0,q0=J0);return i0&&O7(U,h0),y0}for(J0=Y(J0);h0<M.length;h0++)I2=f(J0,U,h0,M[h0],h),I2!==null&&($0=r(U,I2,M[h0],$0),$&&I2.alternate!==null&&J0.delete(I2.key===null?h0:I2.key),w=G(I2,w,h0),q0===null?y0=I2:q0.sibling=I2,q0=I2);return $&&J0.forEach(function(E7){return B(U,E7)}),i0&&O7(U,h0),y0}function _2(U,w,M,h){if(M==null)throw Error("An iterable object provided no iterator.");for(var $0=null,y0=null,q0=w,J0=w=0,h0=null,I2=null,d2=M.next();q0!==null&&!d2.done;J0++,d2=M.next()){q0.index>J0?(h0=q0,q0=null):h0=q0.sibling;var E7=O(U,q0,d2.value,h);if(E7===null){q0===null&&(q0=h0);break}I2=r(U,E7,d2.value,I2),$&&q0&&E7.alternate===null&&B(U,q0),w=G(E7,w,J0),y0===null?$0=E7:y0.sibling=E7,y0=E7,q0=h0}if(d2.done)return X(U,q0),i0&&O7(U,J0),$0;if(q0===null){for(;!d2.done;J0++,d2=M.next())q0=P(U,d2.value,h),q0!==null&&(I2=r(U,q0,d2.value,I2),w=G(q0,w,J0),y0===null?$0=q0:y0.sibling=q0,y0=q0);return i0&&O7(U,J0),$0}for(q0=Y(q0);!d2.done;J0++,d2=M.next())h0=f(q0,U,J0,d2.value,h),h0!==null&&(I2=r(U,h0,d2.value,I2),$&&h0.alternate!==null&&q0.delete(h0.key===null?J0:h0.key),w=G(h0,w,J0),y0===null?$0=h0:y0.sibling=h0,y0=h0);return $&&q0.forEach(function(YU){return B(U,YU)}),i0&&O7(U,J0),$0}function t0(U,w,M,h){if(typeof M==="object"&&M!==null&&M.type===s3&&M.key===null&&(E9(M,null,U),M=M.props.children),typeof M==="object"&&M!==null){switch(M.$$typeof){case X7:var $0=v1(M._debugInfo);$:{for(var y0=M.key;w!==null;){if(w.key===y0){if(y0=M.type,y0===s3){if(w.tag===7){X(U,w.sibling),h=Z(w,M.props.children),h.return=U,h._debugOwner=M._owner,h._debugInfo=j0,E9(M,h,U),U=h;break $}}else if(w.elementType===y0||kz(w,M)||typeof y0==="object"&&y0!==null&&y0.$$typeof===n1&&i7(y0)===w.type){X(U,w.sibling),h=Z(w,M.props),a6(h,M),h.return=U,h._debugOwner=M._owner,h._debugInfo=j0,U=h;break $}X(U,w);break}else B(U,w);w=w.sibling}M.type===s3?(h=l5(M.props.children,U.mode,h,M.key),h.return=U,h._debugOwner=U,h._debugTask=U._debugTask,h._debugInfo=j0,E9(M,h,U),U=h):(h=y9(M,U.mode,h),a6(h,M),h.return=U,h._debugInfo=j0,U=h)}return U=z(U),j0=$0,U;case a3:$:{$0=M;for(M=$0.key;w!==null;){if(w.key===M)if(w.tag===4&&w.stateNode.containerInfo===$0.containerInfo&&w.stateNode.implementation===$0.implementation){X(U,w.sibling),h=Z(w,$0.children||[]),h.return=U,U=h;break $}else{X(U,w);break}else B(U,w);w=w.sibling}h=JX($0,U.mode,h),h.return=U,U=h}return z(U);case n1:return $0=v1(M._debugInfo),M=i7(M),U=t0(U,w,M,h),j0=$0,U}if(t2(M))return $0=v1(M._debugInfo),U=X0(U,w,M,h),j0=$0,U;if(e0(M)){if($0=v1(M._debugInfo),y0=e0(M),typeof y0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var q0=y0.call(M);if(q0===M){if(U.tag!==0||Object.prototype.toString.call(U.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(q0)!=="[object Generator]")QH||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),QH=!0}else M.entries!==y0||DZ||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),DZ=!0);return U=_2(U,w,q0,h),j0=$0,U}if(typeof M.then==="function")return $0=v1(M._debugInfo),U=t0(U,w,D9(M),h),j0=$0,U;if(M.$$typeof===Y7)return t0(U,w,h9(U,M),h);l9(U,M)}if(typeof M==="string"&&M!==""||typeof M==="number"||typeof M==="bigint")return $0=""+M,w!==null&&w.tag===6?(X(U,w.sibling),h=Z(w,$0),h.return=U,U=h):(X(U,w),h=vX($0,U.mode,h),h.return=U,h._debugOwner=U,h._debugTask=U._debugTask,h._debugInfo=j0,U=h),z(U);return typeof M==="function"&&d9(U,M),typeof M==="symbol"&&p9(U,M),X(U,w)}return function(U,w,M,h){var $0=j0;j0=null;try{d$=0;var y0=t0(U,w,M,h);return q6=null,y0}catch(I2){if(I2===L6||I2===e8)throw I2;var q0=T(29,I2,null,U.mode);q0.lanes=h,q0.return=U;var J0=q0._debugInfo=j0;if(q0._debugOwner=U._debugOwner,q0._debugTask=U._debugTask,J0!=null){for(var h0=J0.length-1;0<=h0;h0--)if(typeof J0[h0].stack==="string"){q0._debugOwner=J0[h0],q0._debugTask=J0[h0].debugTask;break}}return q0}finally{j0=$0}}}function NW($,B){var X=t2($);return $=!X&&typeof e0($)==="function",X||$?(X=X?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",X,B,X),!1):!0}function MX($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function FX($,B){$=$.updateQueue,B.updateQueue===$&&(B.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function r7($){return{lane:$,tag:UH,payload:null,callback:null,next:null}}function n7($,B,X){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,dZ===Y&&!RH){var Z=i($);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
96
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`);throw Z=Object.prototype.toString.call(X),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}function F$(Z,X){var J=IK();J!==null?J.run(HM.bind(null,Z,X)):HM(Z,X)}function BM(Z,X){var J=E(Z)||"Component";OO[J]||(OO[J]=!0,X=X.displayName||X.name||"Component",Z.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
97
|
+
root.render(%s)`,X,X,X):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
98
|
+
<%s>{%s}</%s>`,X,X,J,X,J))}function L$(Z,X){var J=IK();J!==null?J.run(BM.bind(null,Z,X)):BM(Z,X)}function UM(Z,X){var J=E(Z)||"Component";AO[J]||(AO[J]=!0,X=String(X),Z.tag===3?console.error(`Symbols are not valid as a React child.
|
|
99
|
+
root.render(%s)`,X):console.error(`Symbols are not valid as a React child.
|
|
100
|
+
<%s>%s</%s>`,J,X,J))}function M$(Z,X){var J=IK();J!==null?J.run(UM.bind(null,Z,X)):UM(Z,X)}function zM(Z){function X(x,u){if(Z){var p=x.deletions;p===null?(x.deletions=[u],x.flags|=16):p.push(u)}}function J(x,u){if(!Z)return null;for(;u!==null;)X(x,u),u=u.sibling;return null}function q(x){for(var u=new Map;x!==null;)x.key!==null?u.set(x.key,x):u.set(x.index,x),x=x.sibling;return u}function W(x,u){return x=n9(x,u),x.index=0,x.sibling=null,x}function U(x,u,p){if(x.index=p,!Z)return x.flags|=1048576,u;if(p=x.alternate,p!==null)return p=p.index,p<u?(x.flags|=67108866,u):p;return x.flags|=67108866,u}function M(x){return Z&&x.alternate===null&&(x.flags|=67108866),x}function _(x,u,p,F0){if(u===null||u.tag!==6)return u=HK(p,x.mode,F0),u.return=x,u._debugOwner=x,u._debugTask=x._debugTask,u._debugInfo=R1,u;return u=W(u,p),u.return=x,u._debugInfo=R1,u}function V(x,u,p,F0){var E0=p.type;if(E0===DZ)return u=l(x,u,p.props.children,F0,p.key),U$(p,u,x),u;if(u!==null&&(u.elementType===E0||lL(u,p)||typeof E0==="object"&&E0!==null&&E0.$$typeof===q2&&y6(E0)===u.type))return u=W(u,p.props),R3(u,p),u.return=x,u._debugOwner=p._owner,u._debugInfo=R1,u;return u=$$(p,x.mode,F0),R3(u,p),u.return=x,u._debugInfo=R1,u}function j(x,u,p,F0){if(u===null||u.tag!==4||u.stateNode.containerInfo!==p.containerInfo||u.stateNode.implementation!==p.implementation)return u=BK(p,x.mode,F0),u.return=x,u._debugInfo=R1,u;return u=W(u,p.children||[]),u.return=x,u._debugInfo=R1,u}function l(x,u,p,F0,E0){if(u===null||u.tag!==7)return u=l7(p,x.mode,F0,E0),u.return=x,u._debugOwner=x,u._debugTask=x._debugTask,u._debugInfo=R1,u;return u=W(u,p),u.return=x,u._debugInfo=R1,u}function d(x,u,p){if(typeof u==="string"&&u!==""||typeof u==="number"||typeof u==="bigint")return u=HK(""+u,x.mode,p),u.return=x,u._debugOwner=x,u._debugTask=x._debugTask,u._debugInfo=R1,u;if(typeof u==="object"&&u!==null){switch(u.$$typeof){case C9:return p=$$(u,x.mode,p),R3(p,u),p.return=x,x=$4(u._debugInfo),p._debugInfo=R1,R1=x,p;case jZ:return u=BK(u,x.mode,p),u.return=x,u._debugInfo=R1,u;case q2:var F0=$4(u._debugInfo);return u=y6(u),x=d(x,u,p),R1=F0,x}if(u5(u)||c(u))return p=l7(u,x.mode,p,null),p.return=x,p._debugOwner=x,p._debugTask=x._debugTask,x=$4(u._debugInfo),p._debugInfo=R1,R1=x,p;if(typeof u.then==="function")return F0=$4(u._debugInfo),x=d(x,z$(u),p),R1=F0,x;if(u.$$typeof===j9)return d(x,K$(x,u),p);F$(x,u)}return typeof u==="function"&&L$(x,u),typeof u==="symbol"&&M$(x,u),null}function m(x,u,p,F0){var E0=u!==null?u.key:null;if(typeof p==="string"&&p!==""||typeof p==="number"||typeof p==="bigint")return E0!==null?null:_(x,u,""+p,F0);if(typeof p==="object"&&p!==null){switch(p.$$typeof){case C9:return p.key===E0?(E0=$4(p._debugInfo),x=V(x,u,p,F0),R1=E0,x):null;case jZ:return p.key===E0?j(x,u,p,F0):null;case q2:return E0=$4(p._debugInfo),p=y6(p),x=m(x,u,p,F0),R1=E0,x}if(u5(p)||c(p)){if(E0!==null)return null;return E0=$4(p._debugInfo),x=l(x,u,p,F0,null),R1=E0,x}if(typeof p.then==="function")return E0=$4(p._debugInfo),x=m(x,u,z$(p),F0),R1=E0,x;if(p.$$typeof===j9)return m(x,u,K$(x,p),F0);F$(x,p)}return typeof p==="function"&&L$(x,p),typeof p==="symbol"&&M$(x,p),null}function X0(x,u,p,F0,E0){if(typeof F0==="string"&&F0!==""||typeof F0==="number"||typeof F0==="bigint")return x=x.get(p)||null,_(u,x,""+F0,E0);if(typeof F0==="object"&&F0!==null){switch(F0.$$typeof){case C9:return p=x.get(F0.key===null?p:F0.key)||null,x=$4(F0._debugInfo),u=V(u,p,F0,E0),R1=x,u;case jZ:return x=x.get(F0.key===null?p:F0.key)||null,j(u,x,F0,E0);case q2:var W1=$4(F0._debugInfo);return F0=y6(F0),u=X0(x,u,p,F0,E0),R1=W1,u}if(u5(F0)||c(F0))return p=x.get(p)||null,x=$4(F0._debugInfo),u=l(u,p,F0,E0,null),R1=x,u;if(typeof F0.then==="function")return W1=$4(F0._debugInfo),u=X0(x,u,p,z$(F0),E0),R1=W1,u;if(F0.$$typeof===j9)return X0(x,u,p,K$(u,F0),E0);F$(u,F0)}return typeof F0==="function"&&L$(u,F0),typeof F0==="symbol"&&M$(u,F0),null}function j0(x,u,p,F0){if(typeof p!=="object"||p===null)return F0;switch(p.$$typeof){case C9:case jZ:N(x,u,p);var E0=p.key;if(typeof E0!=="string")break;if(F0===null){F0=new Set,F0.add(E0);break}if(!F0.has(E0)){F0.add(E0);break}R0(u,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",E0)});break;case q2:p=y6(p),j0(x,u,p,F0)}return F0}function g0(x,u,p,F0){for(var E0=null,W1=null,r0=null,d0=u,F1=u=0,Y5=null;d0!==null&&F1<p.length;F1++){d0.index>F1?(Y5=d0,d0=null):Y5=d0.sibling;var w5=m(x,d0,p[F1],F0);if(w5===null){d0===null&&(d0=Y5);break}E0=j0(x,w5,p[F1],E0),Z&&d0&&w5.alternate===null&&X(x,d0),u=U(w5,u,F1),r0===null?W1=w5:r0.sibling=w5,r0=w5,d0=Y5}if(F1===p.length)return J(x,d0),E1&&s9(x,F1),W1;if(d0===null){for(;F1<p.length;F1++)d0=d(x,p[F1],F0),d0!==null&&(E0=j0(x,d0,p[F1],E0),u=U(d0,u,F1),r0===null?W1=d0:r0.sibling=d0,r0=d0);return E1&&s9(x,F1),W1}for(d0=q(d0);F1<p.length;F1++)Y5=X0(d0,x,F1,p[F1],F0),Y5!==null&&(E0=j0(x,Y5,p[F1],E0),Z&&Y5.alternate!==null&&d0.delete(Y5.key===null?F1:Y5.key),u=U(Y5,u,F1),r0===null?W1=Y5:r0.sibling=Y5,r0=Y5);return Z&&d0.forEach(function(R6){return X(x,R6)}),E1&&s9(x,F1),W1}function e1(x,u,p,F0){if(p==null)throw Error("An iterable object provided no iterator.");for(var E0=null,W1=null,r0=u,d0=u=0,F1=null,Y5=null,w5=p.next();r0!==null&&!w5.done;d0++,w5=p.next()){r0.index>d0?(F1=r0,r0=null):F1=r0.sibling;var R6=m(x,r0,w5.value,F0);if(R6===null){r0===null&&(r0=F1);break}Y5=j0(x,R6,w5.value,Y5),Z&&r0&&R6.alternate===null&&X(x,r0),u=U(R6,u,d0),W1===null?E0=R6:W1.sibling=R6,W1=R6,r0=F1}if(w5.done)return J(x,r0),E1&&s9(x,d0),E0;if(r0===null){for(;!w5.done;d0++,w5=p.next())r0=d(x,w5.value,F0),r0!==null&&(Y5=j0(x,r0,w5.value,Y5),u=U(r0,u,d0),W1===null?E0=r0:W1.sibling=r0,W1=r0);return E1&&s9(x,d0),E0}for(r0=q(r0);!w5.done;d0++,w5=p.next())F1=X0(r0,x,d0,w5.value,F0),F1!==null&&(Y5=j0(x,F1,w5.value,Y5),Z&&F1.alternate!==null&&r0.delete(F1.key===null?d0:F1.key),u=U(F1,u,d0),W1===null?E0=F1:W1.sibling=F1,W1=F1);return Z&&r0.forEach(function(Zy){return X(x,Zy)}),E1&&s9(x,d0),E0}function g1(x,u,p,F0){if(typeof p==="object"&&p!==null&&p.type===DZ&&p.key===null&&(U$(p,null,x),p=p.props.children),typeof p==="object"&&p!==null){switch(p.$$typeof){case C9:var E0=$4(p._debugInfo);Z:{for(var W1=p.key;u!==null;){if(u.key===W1){if(W1=p.type,W1===DZ){if(u.tag===7){J(x,u.sibling),F0=W(u,p.props.children),F0.return=x,F0._debugOwner=p._owner,F0._debugInfo=R1,U$(p,F0,x),x=F0;break Z}}else if(u.elementType===W1||lL(u,p)||typeof W1==="object"&&W1!==null&&W1.$$typeof===q2&&y6(W1)===u.type){J(x,u.sibling),F0=W(u,p.props),R3(F0,p),F0.return=x,F0._debugOwner=p._owner,F0._debugInfo=R1,x=F0;break Z}J(x,u);break}else X(x,u);u=u.sibling}p.type===DZ?(F0=l7(p.props.children,x.mode,F0,p.key),F0.return=x,F0._debugOwner=x,F0._debugTask=x._debugTask,F0._debugInfo=R1,U$(p,F0,x),x=F0):(F0=$$(p,x.mode,F0),R3(F0,p),F0.return=x,F0._debugInfo=R1,x=F0)}return x=M(x),R1=E0,x;case jZ:Z:{E0=p;for(p=E0.key;u!==null;){if(u.key===p)if(u.tag===4&&u.stateNode.containerInfo===E0.containerInfo&&u.stateNode.implementation===E0.implementation){J(x,u.sibling),F0=W(u,E0.children||[]),F0.return=x,x=F0;break Z}else{J(x,u);break}else X(x,u);u=u.sibling}F0=BK(E0,x.mode,F0),F0.return=x,x=F0}return M(x);case q2:return E0=$4(p._debugInfo),p=y6(p),x=g1(x,u,p,F0),R1=E0,x}if(u5(p))return E0=$4(p._debugInfo),x=g0(x,u,p,F0),R1=E0,x;if(c(p)){if(E0=$4(p._debugInfo),W1=c(p),typeof W1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var r0=W1.call(p);if(r0===p){if(x.tag!==0||Object.prototype.toString.call(x.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(r0)!=="[object Generator]")RO||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),RO=!0}else p.entries!==W1||pH||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pH=!0);return x=e1(x,u,r0,F0),R1=E0,x}if(typeof p.then==="function")return E0=$4(p._debugInfo),x=g1(x,u,z$(p),F0),R1=E0,x;if(p.$$typeof===j9)return g1(x,u,K$(x,p),F0);F$(x,p)}if(typeof p==="string"&&p!==""||typeof p==="number"||typeof p==="bigint")return E0=""+p,u!==null&&u.tag===6?(J(x,u.sibling),F0=W(u,E0),F0.return=x,x=F0):(J(x,u),F0=HK(E0,x.mode,F0),F0.return=x,F0._debugOwner=x,F0._debugTask=x._debugTask,F0._debugInfo=R1,x=F0),M(x);return typeof p==="function"&&L$(x,p),typeof p==="symbol"&&M$(x,p),J(x,u)}return function(x,u,p,F0){var E0=R1;R1=null;try{FQ=0;var W1=g1(x,u,p,F0);return nZ=null,W1}catch(Y5){if(Y5===aZ||Y5===PY)throw Y5;var r0=O(29,Y5,null,x.mode);r0.lanes=F0,r0.return=x;var d0=r0._debugInfo=R1;if(r0._debugOwner=x._debugOwner,r0._debugTask=x._debugTask,d0!=null){for(var F1=d0.length-1;0<=F1;F1--)if(typeof d0[F1].stack==="string"){r0._debugOwner=d0[F1],r0._debugTask=d0[F1].debugTask;break}}return r0}finally{R1=E0}}}function FM(Z,X){var J=u5(Z);return Z=!J&&typeof c(Z)==="function",J||Z?(J=J?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",J,X,J),!1):!0}function TK(Z){Z.updateQueue={baseState:Z.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function VK(Z,X){Z=Z.updateQueue,X.updateQueue===Z&&(X.updateQueue={baseState:Z.baseState,firstBaseUpdate:Z.firstBaseUpdate,lastBaseUpdate:Z.lastBaseUpdate,shared:Z.shared,callbacks:null})}function g6(Z){return{lane:Z,tag:TO,payload:null,callback:null,next:null}}function h6(Z,X,J){var q=Z.updateQueue;if(q===null)return null;if(q=q.shared,dH===q&&!wO){var W=E(Z);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
101
101
|
|
|
102
|
-
Please update the following component: %s`,
|
|
103
|
-
`,
|
|
102
|
+
Please update the following component: %s`,W),wO=!0}if((x1&p5)!==Z4)return W=q.pending,W===null?X.next=X:(X.next=W.next,W.next=X),q.pending=X,X=J$(Z),pL(Z,null,J),X;return Q$(Z,q,X,J),J$(Z)}function _3(Z,X,J){if(X=X.updateQueue,X!==null&&(X=X.shared,(J&4194048)!==0)){var q=X.lanes;q&=Z.pendingLanes,J|=q,X.lanes=J,B5(Z,J)}}function N$(Z,X){var{updateQueue:J,alternate:q}=Z;if(q!==null&&(q=q.updateQueue,J===q)){var W=null,U=null;if(J=J.firstBaseUpdate,J!==null){do{var M={lane:J.lane,tag:J.tag,payload:J.payload,callback:null,next:null};U===null?W=U=M:U=U.next=M,J=J.next}while(J!==null);U===null?W=U=X:U=U.next=X}else W=U=X;J={baseState:q.baseState,firstBaseUpdate:W,lastBaseUpdate:U,shared:q.shared,callbacks:q.callbacks},Z.updateQueue=J;return}Z=J.lastBaseUpdate,Z===null?J.firstBaseUpdate=X:Z.next=X,J.lastBaseUpdate=X}function O3(){if(iH){var Z=rZ;if(Z!==null)throw Z}}function A3(Z,X,J,q){iH=!1;var W=Z.updateQueue;Q7=!1,dH=W.shared;var{firstBaseUpdate:U,lastBaseUpdate:M}=W,_=W.shared.pending;if(_!==null){W.shared.pending=null;var V=_,j=V.next;V.next=null,M===null?U=j:M.next=j,M=V;var l=Z.alternate;l!==null&&(l=l.updateQueue,_=l.lastBaseUpdate,_!==M&&(_===null?l.firstBaseUpdate=j:_.next=j,l.lastBaseUpdate=V))}if(U!==null){var d=W.baseState;M=0,l=j=V=null,_=U;do{var m=_.lane&-536870913,X0=m!==_.lane;if(X0?(_1&m)===m:(q&m)===m){m!==0&&m===q8&&(iH=!0),l!==null&&(l=l.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});Z:{m=Z;var j0=_,g0=X,e1=J;switch(j0.tag){case VO:if(j0=j0.payload,typeof j0==="function"){iZ=!0;var g1=j0.call(e1,d,g0);if(m.mode&R4){X1(!0);try{j0.call(e1,d,g0)}finally{X1(!1)}}iZ=!1,d=g1;break Z}d=j0;break Z;case lH:m.flags=m.flags&-65537|128;case TO:if(g1=j0.payload,typeof g1==="function"){if(iZ=!0,j0=g1.call(e1,d,g0),m.mode&R4){X1(!0);try{g1.call(e1,d,g0)}finally{X1(!1)}}iZ=!1}else j0=g1;if(j0===null||j0===void 0)break Z;d=V1({},d,j0);break Z;case PO:Q7=!0}}m=_.callback,m!==null&&(Z.flags|=64,X0&&(Z.flags|=8192),X0=W.callbacks,X0===null?W.callbacks=[m]:X0.push(m))}else X0={lane:m,tag:_.tag,payload:_.payload,callback:_.callback,next:null},l===null?(j=l=X0,V=d):l=l.next=X0,M|=m;if(_=_.next,_===null)if(_=W.shared.pending,_===null)break;else X0=_,_=X0.next,X0.next=null,W.lastBaseUpdate=X0,W.shared.pending=null}while(1);l===null&&(V=d),W.baseState=V,W.firstBaseUpdate=j,W.lastBaseUpdate=l,U===null&&(W.shared.lanes=0),Y7|=M,Z.lanes=M,Z.memoizedState=d}dH=null}function LM(Z,X){if(typeof Z!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+Z);Z.call(X)}function aD(Z,X){var J=Z.shared.hiddenCallbacks;if(J!==null)for(Z.shared.hiddenCallbacks=null,Z=0;Z<J.length;Z++)LM(J[Z],X)}function MM(Z,X){var J=Z.callbacks;if(J!==null)for(Z.callbacks=null,Z=0;Z<J.length;Z++)LM(J[Z],X)}function NM(Z,X){var J=k9;n(CY,J,Z),n(sZ,X,Z),k9=J|X.baseLanes}function PK(Z){n(CY,k9,Z),n(sZ,sZ.current,Z)}function wK(Z){k9=CY.current,t(sZ,Z),t(CY,Z)}function v6(Z){var X=Z.alternate;n(P5,P5.current&oZ,Z),n(H2,Z,Z),D2===null&&(X===null||sZ.current!==null?D2=Z:X.memoizedState!==null&&(D2=Z))}function CK(Z){n(P5,P5.current,Z),n(H2,Z,Z),D2===null&&(D2=Z)}function RM(Z){Z.tag===22?(n(P5,P5.current,Z),n(H2,Z,Z),D2===null&&(D2=Z)):x6(Z)}function x6(Z){n(P5,P5.current,Z),n(H2,H2.current,Z)}function J2(Z){t(H2,Z),D2===Z&&(D2=null),t(P5,Z)}function R$(Z){for(var X=Z;X!==null;){if(X.tag===13){var J=X.memoizedState;if(J!==null&&(J=J.dehydrated,J===null||uW(J)||fW(J)))return X}else if(X.tag===19&&(X.memoizedProps.revealOrder==="forwards"||X.memoizedProps.revealOrder==="backwards"||X.memoizedProps.revealOrder==="unstable_legacy-backwards"||X.memoizedProps.revealOrder==="together")){if((X.flags&128)!==0)return X}else if(X.child!==null){X.child.return=X,X=X.child;continue}if(X===Z)break;for(;X.sibling===null;){if(X.return===null||X.return===Z)return null;X=X.return}X.sibling.return=X.return,X=X.sibling}return null}function T1(){var Z=$0;E2===null?E2=[Z]:E2.push(Z)}function O0(){var Z=$0;if(E2!==null&&(z6++,E2[z6]!==Z)){var X=E(K1);if(!CO.has(X)&&(CO.add(X),E2!==null)){for(var J="",q=0;q<=z6;q++){var W=E2[q],U=q===z6?Z:W;for(W=q+1+". "+W;30>W.length;)W+=" ";W+=U+`
|
|
103
|
+
`,J+=W}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
104
104
|
|
|
105
105
|
Previous render Next render
|
|
106
106
|
------------------------------------------------------
|
|
107
107
|
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
108
|
-
`,
|
|
108
|
+
`,X,J)}}}function LZ(Z){Z===void 0||Z===null||u5(Z)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",$0,typeof Z)}function _$(){var Z=E(K1);DO.has(Z)||(DO.add(Z),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",Z))}function _5(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
109
109
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
110
110
|
2. You might be breaking the Rules of Hooks
|
|
111
111
|
3. You might have more than one copy of React in the same app
|
|
112
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function
|
|
112
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function jK(Z,X){if(NQ)return!1;if(X===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",$0),!1;Z.length!==X.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
113
113
|
|
|
114
114
|
Previous: %s
|
|
115
|
-
Incoming: %s`,S,"["+B.join(", ")+"]","["+$.join(", ")+"]");for(var X=0;X<B.length&&X<$.length;X++)if(!P1($[X],B[X]))return!1;return!0}function CX($,B,X,Y,Z,G){if(S7=G,f0=B,R4=$!==null?$._debugHookTypes:null,x7=-1,o$=$!==null&&$.type!==B.type,Object.prototype.toString.call(X)==="[object AsyncFunction]"||Object.prototype.toString.call(X)==="[object AsyncGeneratorFunction]")G=i(f0),cZ.has(G)||(cZ.add(G),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",G===null?"An unknown Component":"<"+G+">"));B.memoizedState=null,B.updateQueue=null,B.lanes=0,x.H=$!==null&&$.memoizedState!==null?aZ:R4!==null?AH:oZ,J3=G=(B.mode&O1)!==A0;var z=jZ(X,Y,Z);if(J3=!1,O6&&(z=mX(B,X,Y,Z)),G){T0(!0);try{z=mX(B,X,Y,Z)}finally{T0(!1)}}return LW($,B),z}function LW($,B){B._debugHookTypes=R4,B.dependencies===null?u7!==null&&(B.dependencies={lanes:0,firstContext:null,_debugThenableState:u7}):B.dependencies._debugThenableState=u7,x.H=a$;var X=U2!==null&&U2.next!==null;if(S7=0,R4=S=o2=U2=f0=null,x7=-1,$!==null&&($.flags&65011712)!==(B.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),YB=!1,c$=0,u7=null,X)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||a2||($=$.dependencies,$!==null&&x9($)&&(a2=!0)),l$?(l$=!1,$=!0):$=!1,$&&(B=i(B)||"Unknown",MH.has(B)||cZ.has(B)||(MH.add(B),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function mX($,B,X,Y){f0=$;var Z=0;do{if(O6&&(u7=null),c$=0,O6=!1,Z>=xK)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(Z+=1,o$=!1,o2=U2=null,$.updateQueue!=null){var G=$.updateQueue;G.lastEffect=null,G.events=null,G.stores=null,G.memoCache!=null&&(G.memoCache.index=0)}x7=-1,x.H=PH,G=jZ(B,X,Y)}while(O6);return G}function tL(){var $=x.H,B=$.useState()[0];return B=typeof B.then==="function"?n6(B):B,$=$.useState()[0],(U2!==null?U2.memoizedState:null)!==$&&(f0.flags|=1024),B}function TX(){var $=ZB!==0;return ZB=0,$}function fX($,B,X){B.updateQueue=$.updateQueue,B.flags=(B.mode&T4)!==A0?B.flags&-402655237:B.flags&-2053,$.lanes&=~X}function yX($){if(YB){for($=$.memoizedState;$!==null;){var B=$.queue;B!==null&&(B.pending=null),$=$.next}YB=!1}S7=0,R4=o2=U2=f0=null,x7=-1,S=null,O6=!1,c$=ZB=0,u7=null}function _1(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return o2===null?f0.memoizedState=o2=$:o2=o2.next=$,o2}function L2(){if(U2===null){var $=f0.alternate;$=$!==null?$.memoizedState:null}else $=U2.next;var B=o2===null?f0.memoizedState:o2.next;if(B!==null)o2=B,U2=$;else{if($===null){if(f0.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}U2=$,$={memoizedState:U2.memoizedState,baseState:U2.baseState,baseQueue:U2.baseQueue,queue:U2.queue,next:null},o2===null?f0.memoizedState=o2=$:o2=o2.next=$}return o2}function s9(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function n6($){var B=c$;return c$+=1,u7===null&&(u7=ez()),$=BW(u7,$,B),B=f0,(o2===null?B.memoizedState:o2.next)===null&&(B=B.alternate,x.H=B!==null&&B.memoizedState!==null?aZ:oZ),$}function $5($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return n6($);if($.$$typeof===Y7)return m2($)}throw Error("An unsupported type was passed to use(): "+String($))}function a5($){var B=null,X=f0.updateQueue;if(X!==null&&(B=X.memoCache),B==null){var Y=f0.alternate;Y!==null&&(Y=Y.updateQueue,Y!==null&&(Y=Y.memoCache,Y!=null&&(B={data:Y.data.map(function(Z){return Z.slice()}),index:0})))}if(B==null&&(B={data:[],index:0}),X===null&&(X=s9(),f0.updateQueue=X),X.memoCache=B,X=B.data[B.index],X===void 0||o$)for(X=B.data[B.index]=Array($),Y=0;Y<$;Y++)X[Y]=Lg;else X.length!==$&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",X.length,$);return B.index++,X}function I4($,B){return typeof B==="function"?B($):B}function SX($,B,X){var Y=_1();if(X!==void 0){var Z=X(B);if(J3){T0(!0);try{X(B)}finally{T0(!1)}}}else Z=B;return Y.memoizedState=Y.baseState=Z,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:Z},Y.queue=$,$=$.dispatch=Yq.bind(null,f0,$),[Y.memoizedState,$]}function x3($){var B=L2();return uX(B,U2,$)}function uX($,B,X){var Y=$.queue;if(Y===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Y.lastRenderedReducer=X;var Z=$.baseQueue,G=Y.pending;if(G!==null){if(Z!==null){var z=Z.next;Z.next=G.next,G.next=z}B.baseQueue!==Z&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),B.baseQueue=Z=G,Y.pending=null}if(G=$.baseState,Z===null)$.memoizedState=G;else{B=Z.next;var W=z=null,J=null,Q=B,A=!1;do{var P=Q.lane&-536870913;if(P!==Q.lane?(V0&P)===P:(S7&P)===P){var O=Q.revertLane;if(O===0)J!==null&&(J=J.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),P===G3&&(A=!0);else if((S7&O)===O){Q=Q.next,O===G3&&(A=!0);continue}else P={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},J===null?(W=J=P,z=G):J=J.next=P,f0.lanes|=O,_5|=O;P=Q.action,J3&&X(G,P),G=Q.hasEagerState?Q.eagerState:X(G,P)}else O={lane:P,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},J===null?(W=J=O,z=G):J=J.next=O,f0.lanes|=P,_5|=P;Q=Q.next}while(Q!==null&&Q!==B);if(J===null?z=G:J.next=W,!P1(G,$.memoizedState)&&(a2=!0,A&&(X=Q6,X!==null)))throw X;$.memoizedState=G,$.baseState=z,$.baseQueue=J,Y.lastRenderedState=G}return Z===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function t6($){var B=L2(),X=B.queue;if(X===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");X.lastRenderedReducer=$;var{dispatch:Y,pending:Z}=X,G=B.memoizedState;if(Z!==null){X.pending=null;var z=Z=Z.next;do G=$(G,z.action),z=z.next;while(z!==Z);P1(G,B.memoizedState)||(a2=!0),B.memoizedState=G,B.baseQueue===null&&(B.baseState=G),X.lastRenderedState=G}return[G,Y]}function xX($,B,X){var Y=f0,Z=_1();if(i0){if(X===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var G=X();U6||G===X()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),U6=!0)}else{if(G=B(),U6||(X=B(),P1(G,X)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),U6=!0)),O2===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(V0&127)!==0||qW(Y,B,G)}return Z.memoizedState=G,X={value:G,getSnapshot:B},Z.queue=X,t9(KW.bind(null,Y,X,$),[$]),Y.flags|=2048,k3(w4|C1,{destroy:void 0},gW.bind(null,Y,X,G,B),null),G}function i9($,B,X){var Y=f0,Z=L2(),G=i0;if(G){if(X===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");X=X()}else if(X=B(),!U6){var z=B();P1(X,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),U6=!0)}if(z=!P1((U2||Z).memoizedState,X))Z.memoizedState=X,a2=!0;Z=Z.queue;var W=KW.bind(null,Y,Z,$);if(x1(2048,C1,W,[$]),Z.getSnapshot!==B||z||o2!==null&&o2.memoizedState.tag&w4){if(Y.flags|=2048,k3(w4|C1,{destroy:void 0},gW.bind(null,Y,Z,X,B),null),O2===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");G||(S7&127)!==0||qW(Y,B,X)}return X}function qW($,B,X){$.flags|=16384,$={getSnapshot:B,value:X},B=f0.updateQueue,B===null?(B=s9(),f0.updateQueue=B,B.stores=[$]):(X=B.stores,X===null?B.stores=[$]:X.push($))}function gW($,B,X,Y){B.value=X,B.getSnapshot=Y,UW(B)&&OW($)}function KW($,B,X){return X(function(){UW(B)&&(d4(2,"updateSyncExternalStore()",$),OW($))})}function UW($){var B=$.getSnapshot;$=$.value;try{var X=B();return!P1($,X)}catch(Y){return!0}}function OW($){var B=K1($,2);B!==null&&k2(B,$,2)}function hX($){var B=_1();if(typeof $==="function"){var X=$;if($=X(),J3){T0(!0);try{X()}finally{T0(!1)}}}return B.memoizedState=B.baseState=$,B.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:I4,lastRenderedState:$},B}function kX($){$=hX($);var B=$.queue,X=kW.bind(null,f0,B);return B.dispatch=X,[$.memoizedState,X]}function jX($){var B=_1();B.memoizedState=B.baseState=$;var X={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return B.queue=X,B=tX.bind(null,f0,!0,X),X.dispatch=B,[$,B]}function wW($,B){var X=L2();return RW(X,U2,$,B)}function RW($,B,X,Y){return $.baseState=X,uX($,U2,typeof Y==="function"?Y:I4)}function _W($,B){var X=L2();if(U2!==null)return RW(X,U2,$,B);return X.baseState=$,[$,X.queue.dispatch]}function eL($,B,X,Y,Z){if(Z8($))throw Error("Cannot update form state while rendering.");if($=B.action,$!==null){var G={payload:Z,action:$,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){G.listeners.push(z)}};x.T!==null?X(!0):G.isTransition=!1,Y(G),X=B.pending,X===null?(G.next=B.pending=G,MW(B,G)):(G.next=X.next,B.pending=X.next=G)}}function MW($,B){var{action:X,payload:Y}=B,Z=$.state;if(B.isTransition){var G=x.T,z={};z._updatedFibers=new Set,x.T=z;try{var W=X(Z,Y),J=x.S;J!==null&&J(z,W),FW($,B,W)}catch(Q){VX($,B,Q)}finally{G!==null&&z.types!==null&&(G.types!==null&&G.types!==z.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),G.types=z.types),x.T=G,G===null&&z._updatedFibers&&($=z._updatedFibers.size,z._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{z=X(Z,Y),FW($,B,z)}catch(Q){VX($,B,Q)}}function FW($,B,X){X!==null&&typeof X==="object"&&typeof X.then==="function"?(x.asyncTransitions++,X.then(Y8,Y8),X.then(function(Y){AW($,B,Y)},function(Y){return VX($,B,Y)}),B.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):AW($,B,X)}function AW($,B,X){B.status="fulfilled",B.value=X,PW(B),$.state=X,B=$.pending,B!==null&&(X=B.next,X===B?$.pending=null:(X=X.next,B.next=X,MW($,X)))}function VX($,B,X){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do B.status="rejected",B.reason=X,PW(B),B=B.next;while(B!==Y)}$.action=null}function PW($){$=$.listeners;for(var B=0;B<$.length;B++)(0,$[B])()}function IW($,B){return B}function h3($,B){if(i0){var X=O2.formState;if(X!==null){$:{var Y=f0;if(i0){if(P2){B:{var Z=P2;for(var G=K4;Z.nodeType!==8;){if(!G){Z=null;break B}if(Z=r1(Z.nextSibling),Z===null){Z=null;break B}}G=Z.data,Z=G===KG||G===JQ?Z:null}if(Z){P2=r1(Z.nextSibling),Y=Z.data===KG;break $}}a7(Y)}Y=!1}Y&&(B=X[0])}}return X=_1(),X.memoizedState=X.baseState=B,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:IW,lastRenderedState:B},X.queue=Y,X=kW.bind(null,f0,Y),Y.dispatch=X,Y=hX(!1),G=tX.bind(null,f0,!1,Y.queue),Y=_1(),Z={state:B,dispatch:null,action:$,pending:null},Y.queue=Z,X=eL.bind(null,f0,Z,G,X),Z.dispatch=X,Y.memoizedState=$,[B,X,!1]}function r9($){var B=L2();return bW(B,U2,$)}function bW($,B,X){if(B=uX($,B,IW)[0],$=x3(I4)[0],typeof B==="object"&&B!==null&&typeof B.then==="function")try{var Y=n6(B)}catch(z){if(z===L6)throw e8;throw z}else Y=B;B=L2();var Z=B.queue,G=Z.dispatch;return X!==B.memoizedState&&(f0.flags|=2048,k3(w4|C1,{destroy:void 0},$q.bind(null,Z,X),null)),[Y,G,$]}function $q($,B){$.action=B}function n9($){var B=L2(),X=U2;if(X!==null)return bW(B,X,$);L2(),B=B.memoizedState,X=L2();var Y=X.queue.dispatch;return X.memoizedState=$,[B,Y,!1]}function k3($,B,X,Y){return $={tag:$,create:X,deps:Y,inst:B,next:null},B=f0.updateQueue,B===null&&(B=s9(),f0.updateQueue=B),X=B.lastEffect,X===null?B.lastEffect=$.next=$:(Y=X.next,X.next=$,$.next=Y,B.lastEffect=$),$}function EX($){var B=_1();return $={current:$},B.memoizedState=$}function s5($,B,X,Y){var Z=_1();f0.flags|=$,Z.memoizedState=k3(w4|B,{destroy:void 0},X,Y===void 0?null:Y)}function x1($,B,X,Y){var Z=L2();Y=Y===void 0?null:Y;var G=Z.memoizedState.inst;U2!==null&&Y!==null&&bX(Y,U2.memoizedState.deps)?Z.memoizedState=k3(B,G,X,Y):(f0.flags|=$,Z.memoizedState=k3(w4|B,G,X,Y))}function t9($,B){(f0.mode&T4)!==A0?s5(276826112,C1,$,B):s5(8390656,C1,$,B)}function Bq($){f0.flags|=4;var B=f0.updateQueue;if(B===null)B=s9(),f0.updateQueue=B,B.events=[$];else{var X=B.events;X===null?B.events=[$]:X.push($)}}function DX($){var B=_1(),X={impl:$};return B.memoizedState=X,function(){if((Z2&$1)!==N1)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return X.impl.apply(void 0,arguments)}}function e9($){var B=L2().memoizedState;return Bq({ref:B,nextImpl:$}),function(){if((Z2&$1)!==N1)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return B.impl.apply(void 0,arguments)}}function lX($,B){var X=4194308;return(f0.mode&T4)!==A0&&(X|=134217728),s5(X,X4,$,B)}function CW($,B){if(typeof B==="function"){$=$();var X=B($);return function(){typeof X==="function"?X():B(null)}}if(B!==null&&B!==void 0)return B.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(B).join(", ")+"}"),$=$(),B.current=$,function(){B.current=null}}function dX($,B,X){typeof B!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",B!==null?typeof B:"null"),X=X!==null&&X!==void 0?X.concat([$]):null;var Y=4194308;(f0.mode&T4)!==A0&&(Y|=134217728),s5(Y,X4,CW.bind(null,B,$),X)}function $8($,B,X){typeof B!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",B!==null?typeof B:"null"),X=X!==null&&X!==void 0?X.concat([$]):null,x1(4,X4,CW.bind(null,B,$),X)}function pX($,B){return _1().memoizedState=[$,B===void 0?null:B],$}function B8($,B){var X=L2();B=B===void 0?null:B;var Y=X.memoizedState;if(B!==null&&bX(B,Y[1]))return Y[0];return X.memoizedState=[$,B],$}function cX($,B){var X=_1();B=B===void 0?null:B;var Y=$();if(J3){T0(!0);try{$()}finally{T0(!1)}}return X.memoizedState=[Y,B],Y}function X8($,B){var X=L2();B=B===void 0?null:B;var Y=X.memoizedState;if(B!==null&&bX(B,Y[1]))return Y[0];if(Y=$(),J3){T0(!0);try{$()}finally{T0(!1)}}return X.memoizedState=[Y,B],Y}function oX($,B){var X=_1();return aX(X,$,B)}function mW($,B){var X=L2();return fW(X,U2.memoizedState,$,B)}function TW($,B){var X=L2();return U2===null?aX(X,$,B):fW(X,U2.memoizedState,$,B)}function aX($,B,X){if(X===void 0||(S7&1073741824)!==0&&(V0&261930)===0)return $.memoizedState=B;return $.memoizedState=X,$=yN(),f0.lanes|=$,_5|=$,X}function fW($,B,X,Y){if(P1(X,B))return X;if(g6.current!==null)return $=aX($,X,Y),P1($,B)||(a2=!0),$;if((S7&42)===0||(S7&1073741824)!==0&&(V0&261930)===0)return a2=!0,$.memoizedState=X;return $=yN(),f0.lanes|=$,_5|=$,B}function Y8(){x.asyncTransitions--}function yW($,B,X,Y,Z){var G=Q2.p;Q2.p=G!==0&&G<m4?G:m4;var z=x.T,W={};W._updatedFibers=new Set,x.T=W,tX($,!1,B,X);try{var J=Z(),Q=x.S;if(Q!==null&&Q(W,J),J!==null&&typeof J==="object"&&typeof J.then==="function"){x.asyncTransitions++,J.then(Y8,Y8);var A=rL(J,Y);e6($,B,A,i1($))}else e6($,B,Y,i1($))}catch(P){e6($,B,{then:function(){},status:"rejected",reason:P},i1($))}finally{Q2.p=G,z!==null&&W.types!==null&&(z.types!==null&&z.types!==W.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),z.types=W.types),x.T=z,z===null&&W._updatedFibers&&($=W._updatedFibers.size,W._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function sX($,B,X,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var Z=SW($).queue;sL($),yW($,Z,B,_3,X===null?E:function(){return uW($),X(Y)})}function SW($){var B=$.memoizedState;if(B!==null)return B;B={memoizedState:_3,baseState:_3,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:I4,lastRenderedState:_3},next:null};var X={};return B.next={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:I4,lastRenderedState:X},next:null},$.memoizedState=B,$=$.alternate,$!==null&&($.memoizedState=B),B}function uW($){x.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var B=SW($);B.next===null&&(B=$.alternate.memoizedState),e6($,B.next.queue,{},i1($))}function iX(){var $=hX(!1);return $=yW.bind(null,f0,$.queue,!0,!1),_1().memoizedState=$,[!1,$]}function xW(){var $=x3(I4)[0],B=L2().memoizedState;return[typeof $==="boolean"?$:n6($),B]}function hW(){var $=t6(I4)[0],B=L2().memoizedState;return[typeof $==="boolean"?$:n6($),B]}function i5(){return m2(N9)}function rX(){var $=_1(),B=O2.identifierPrefix;if(i0){var X=C7,Y=b7;X=(Y&~(1<<32-M1(Y)-1)).toString(32)+X,B="_"+B+"R_"+X,X=ZB++,0<X&&(B+="H"+X.toString(32)),B+="_"}else X=uK++,B="_"+B+"r_"+X.toString(32)+"_";return $.memoizedState=B}function nX(){return _1().memoizedState=Xq.bind(null,f0)}function Xq($,B){for(var X=$.return;X!==null;){switch(X.tag){case 24:case 3:var Y=i1(X),Z=r7(Y),G=n7(X,Z,Y);G!==null&&(d4(Y,"refresh()",$),k2(G,X,Y),s6(G,X,Y)),$=UX(),B!==null&&B!==void 0&&G!==null&&console.error("The seed argument is not enabled outside experimental channels."),Z.payload={cache:$};return}X=X.return}}function Yq($,B,X){var Y=arguments;typeof Y[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),Y=i1($);var Z={lane:Y,revertLane:0,gesture:null,action:X,hasEagerState:!1,eagerState:null,next:null};Z8($)?jW(B,Z):(Z=GX($,B,Z,Y),Z!==null&&(d4(Y,"dispatch()",$),k2(Z,$,Y),VW(Z,B,Y)))}function kW($,B,X){var Y=arguments;typeof Y[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),Y=i1($),e6($,B,X,Y)&&d4(Y,"setState()",$)}function e6($,B,X,Y){var Z={lane:Y,revertLane:0,gesture:null,action:X,hasEagerState:!1,eagerState:null,next:null};if(Z8($))jW(B,Z);else{var G=$.alternate;if($.lanes===0&&(G===null||G.lanes===0)&&(G=B.lastRenderedReducer,G!==null)){var z=x.H;x.H=y4;try{var W=B.lastRenderedState,J=G(W,X);if(Z.hasEagerState=!0,Z.eagerState=J,P1(J,W))return T9($,B,Z,0),O2===null&&m9(),!1}catch(Q){}finally{x.H=z}}if(X=GX($,B,Z,Y),X!==null)return k2(X,$,Y),VW(X,B,Y),!0}return!1}function tX($,B,X,Y){if(x.T===null&&G3===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),Y={lane:2,revertLane:CY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},Z8($)){if(B)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else B=GX($,X,Y,2),B!==null&&(d4(2,"setOptimistic()",$),k2(B,$,2))}function Z8($){var B=$.alternate;return $===f0||B!==null&&B===f0}function jW($,B){O6=YB=!0;var X=$.pending;X===null?B.next=B:(B.next=X.next,X.next=B),$.pending=B}function VW($,B,X){if((X&4194048)!==0){var Y=B.lanes;Y&=$.pendingLanes,X|=Y,B.lanes=X,q7($,X)}}function eX($){if($!==null&&typeof $!=="function"){var B=String($);hH.has(B)||(hH.add(B),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function $Y($,B,X,Y){var Z=$.memoizedState,G=X(Y,Z);if($.mode&O1){T0(!0);try{G=X(Y,Z)}finally{T0(!1)}}G===void 0&&(B=p(B)||"Component",yH.has(B)||(yH.add(B),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",B))),Z=G===null||G===void 0?Z:c0({},Z,G),$.memoizedState=Z,$.lanes===0&&($.updateQueue.baseState=Z)}function EW($,B,X,Y,Z,G,z){var W=$.stateNode;if(typeof W.shouldComponentUpdate==="function"){if(X=W.shouldComponentUpdate(Y,G,z),$.mode&O1){T0(!0);try{X=W.shouldComponentUpdate(Y,G,z)}finally{T0(!1)}}return X===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",p(B)||"Component"),X}return B.prototype&&B.prototype.isPureReactComponent?!D6(X,Y)||!D6(Z,G):!0}function DW($,B,X,Y){var Z=B.state;typeof B.componentWillReceiveProps==="function"&&B.componentWillReceiveProps(X,Y),typeof B.UNSAFE_componentWillReceiveProps==="function"&&B.UNSAFE_componentWillReceiveProps(X,Y),B.state!==Z&&($=i($)||"Component",bH.has($)||(bH.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),sZ.enqueueReplaceState(B,B.state,null))}function r5($,B){var X=B;if("ref"in B){X={};for(var Y in B)Y!=="ref"&&(X[Y]=B[Y])}if($=$.defaultProps){X===B&&(X=c0({},X));for(var Z in $)X[Z]===void 0&&(X[Z]=$[Z])}return X}function lW($){PZ($),console.warn(`%s
|
|
115
|
+
Incoming: %s`,$0,"["+X.join(", ")+"]","["+Z.join(", ")+"]");for(var J=0;J<X.length&&J<Z.length;J++)if(!D4(Z[J],X[J]))return!1;return!0}function DK(Z,X,J,q,W,U){if(B6=U,K1=X,E2=Z!==null?Z._debugHookTypes:null,z6=-1,NQ=Z!==null&&Z.type!==X.type,Object.prototype.toString.call(J)==="[object AsyncFunction]"||Object.prototype.toString.call(J)==="[object AsyncGeneratorFunction]")U=E(K1),cH.has(U)||(cH.add(U),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",U===null?"An unknown Component":"<"+U+">"));X.memoizedState=null,X.updateQueue=null,X.lanes=0,q0.H=Z!==null&&Z.memoizedState!==null?aH:E2!==null?SO:rH,B8=U=(X.mode&R4)!==J1;var M=mH(J,q,W);if(B8=!1,eZ&&(M=SK(X,J,q,W)),U){X1(!0);try{M=SK(X,J,q,W)}finally{X1(!1)}}return _M(Z,X),M}function _M(Z,X){X._debugHookTypes=E2,X.dependencies===null?U6!==null&&(X.dependencies={lanes:0,firstContext:null,_debugThenableState:U6}):X.dependencies._debugThenableState=U6,q0.H=RQ;var J=n1!==null&&n1.next!==null;if(B6=0,E2=$0=S5=n1=K1=null,z6=-1,Z!==null&&(Z.flags&65011712)!==(X.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),DY=!1,MQ=0,U6=null,J)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");Z===null||E5||(Z=Z.dependencies,Z!==null&&G$(Z)&&(E5=!0)),zQ?(zQ=!1,Z=!0):Z=!1,Z&&(X=E(X)||"Unknown",jO.has(X)||cH.has(X)||(jO.add(X),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function SK(Z,X,J,q){K1=Z;var W=0;do{if(eZ&&(U6=null),MQ=0,eZ=!1,W>=bb)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(W+=1,NQ=!1,S5=n1=null,Z.updateQueue!=null){var U=Z.updateQueue;U.lastEffect=null,U.events=null,U.stores=null,U.memoCache!=null&&(U.memoCache.index=0)}z6=-1,q0.H=EO,U=mH(X,J,q)}while(eZ);return U}function nD(){var Z=q0.H,X=Z.useState()[0];return X=typeof X.then==="function"?I3(X):X,Z=Z.useState()[0],(n1!==null?n1.memoizedState:null)!==Z&&(K1.flags|=1024),X}function EK(){var Z=SY!==0;return SY=0,Z}function bK(Z,X,J){X.updateQueue=Z.updateQueue,X.flags=(X.mode&n2)!==J1?X.flags&-402655237:X.flags&-2053,Z.lanes&=~J}function yK(Z){if(DY){for(Z=Z.memoizedState;Z!==null;){var X=Z.queue;X!==null&&(X.pending=null),Z=Z.next}DY=!1}B6=0,E2=S5=n1=K1=null,z6=-1,$0=null,eZ=!1,MQ=SY=0,U6=null}function P4(){var Z={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return S5===null?K1.memoizedState=S5=Z:S5=S5.next=Z,S5}function p1(){if(n1===null){var Z=K1.alternate;Z=Z!==null?Z.memoizedState:null}else Z=n1.next;var X=S5===null?K1.memoizedState:S5.next;if(X!==null)S5=X,n1=Z;else{if(Z===null){if(K1.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}n1=Z,Z={memoizedState:n1.memoizedState,baseState:n1.baseState,baseQueue:n1.baseQueue,queue:n1.queue,next:null},S5===null?K1.memoizedState=S5=Z:S5=S5.next=Z}return S5}function O$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function I3(Z){var X=MQ;return MQ+=1,U6===null&&(U6=YM()),Z=GM(U6,Z,X),X=K1,(S5===null?X.memoizedState:S5.next)===null&&(X=X.alternate,q0.H=X!==null&&X.memoizedState!==null?aH:rH),Z}function k6(Z){if(Z!==null&&typeof Z==="object"){if(typeof Z.then==="function")return I3(Z);if(Z.$$typeof===j9)return K5(Z)}throw Error("An unsupported type was passed to use(): "+String(Z))}function a7(Z){var X=null,J=K1.updateQueue;if(J!==null&&(X=J.memoCache),X==null){var q=K1.alternate;q!==null&&(q=q.updateQueue,q!==null&&(q=q.memoCache,q!=null&&(X={data:q.data.map(function(W){return W.slice()}),index:0})))}if(X==null&&(X={data:[],index:0}),J===null&&(J=O$(),K1.updateQueue=J),J.memoCache=X,J=X.data[X.index],J===void 0||NQ)for(J=X.data[X.index]=Array(Z),q=0;q<Z;q++)J[q]=HE;else J.length!==Z&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",J.length,Z);return X.index++,J}function i2(Z,X){return typeof X==="function"?X(Z):X}function gK(Z,X,J){var q=P4();if(J!==void 0){var W=J(X);if(B8){X1(!0);try{J(X)}finally{X1(!1)}}}else W=X;return q.memoizedState=q.baseState=W,Z={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Z,lastRenderedState:W},q.queue=Z,Z=Z.dispatch=ZS.bind(null,K1,Z),[q.memoizedState,Z]}function MZ(Z){var X=p1();return hK(X,n1,Z)}function hK(Z,X,J){var q=Z.queue;if(q===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");q.lastRenderedReducer=J;var W=Z.baseQueue,U=q.pending;if(U!==null){if(W!==null){var M=W.next;W.next=U.next,U.next=M}X.baseQueue!==W&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),X.baseQueue=W=U,q.pending=null}if(U=Z.baseState,W===null)Z.memoizedState=U;else{X=W.next;var _=M=null,V=null,j=X,l=!1;do{var d=j.lane&-536870913;if(d!==j.lane?(_1&d)===d:(B6&d)===d){var m=j.revertLane;if(m===0)V!==null&&(V=V.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),d===q8&&(l=!0);else if((B6&m)===m){j=j.next,m===q8&&(l=!0);continue}else d={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},V===null?(_=V=d,M=U):V=V.next=d,K1.lanes|=m,Y7|=m;d=j.action,B8&&J(U,d),U=j.hasEagerState?j.eagerState:J(U,d)}else m={lane:d,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},V===null?(_=V=m,M=U):V=V.next=m,K1.lanes|=d,Y7|=d;j=j.next}while(j!==null&&j!==X);if(V===null?M=U:V.next=_,!D4(U,Z.memoizedState)&&(E5=!0,l&&(J=rZ,J!==null)))throw J;Z.memoizedState=U,Z.baseState=M,Z.baseQueue=V,q.lastRenderedState=U}return W===null&&(q.lanes=0),[Z.memoizedState,q.dispatch]}function T3(Z){var X=p1(),J=X.queue;if(J===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");J.lastRenderedReducer=Z;var{dispatch:q,pending:W}=J,U=X.memoizedState;if(W!==null){J.pending=null;var M=W=W.next;do U=Z(U,M.action),M=M.next;while(M!==W);D4(U,X.memoizedState)||(E5=!0),X.memoizedState=U,X.baseQueue===null&&(X.baseState=U),J.lastRenderedState=U}return[U,q]}function vK(Z,X,J){var q=K1,W=P4();if(E1){if(J===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var U=J();tZ||U===J()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),tZ=!0)}else{if(U=X(),tZ||(J=X(),D4(U,J)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),tZ=!0)),s1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(_1&127)!==0||OM(q,X,U)}return W.memoizedState=U,J={value:U,getSnapshot:X},W.queue=J,V$(IM.bind(null,q,J,Z),[Z]),q.flags|=2048,RZ(S2|b4,{destroy:void 0},AM.bind(null,q,J,U,X),null),U}function A$(Z,X,J){var q=K1,W=p1(),U=E1;if(U){if(J===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");J=J()}else if(J=X(),!tZ){var M=X();D4(J,M)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),tZ=!0)}if(M=!D4((n1||W).memoizedState,J))W.memoizedState=J,E5=!0;W=W.queue;var _=IM.bind(null,q,W,Z);if(u4(2048,b4,_,[Z]),W.getSnapshot!==X||M||S5!==null&&S5.memoizedState.tag&S2){if(q.flags|=2048,RZ(S2|b4,{destroy:void 0},AM.bind(null,q,W,J,X),null),s1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");U||(B6&127)!==0||OM(q,X,J)}return J}function OM(Z,X,J){Z.flags|=16384,Z={getSnapshot:X,value:J},X=K1.updateQueue,X===null?(X=O$(),K1.updateQueue=X,X.stores=[Z]):(J=X.stores,J===null?X.stores=[Z]:J.push(Z))}function AM(Z,X,J,q){X.value=J,X.getSnapshot=q,TM(X)&&VM(Z)}function IM(Z,X,J){return J(function(){TM(X)&&(F9(2,"updateSyncExternalStore()",Z),VM(Z))})}function TM(Z){var X=Z.getSnapshot;Z=Z.value;try{var J=X();return!D4(Z,J)}catch(q){return!0}}function VM(Z){var X=M4(Z,2);X!==null&&L5(X,Z,2)}function xK(Z){var X=P4();if(typeof Z==="function"){var J=Z;if(Z=J(),B8){X1(!0);try{J()}finally{X1(!1)}}}return X.memoizedState=X.baseState=Z,X.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i2,lastRenderedState:Z},X}function kK(Z){Z=xK(Z);var X=Z.queue,J=lM.bind(null,K1,X);return X.dispatch=J,[Z.memoizedState,J]}function mK(Z){var X=P4();X.memoizedState=X.baseState=Z;var J={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return X.queue=J,X=eK.bind(null,K1,!0,J),J.dispatch=X,[Z,X]}function PM(Z,X){var J=p1();return wM(J,n1,Z,X)}function wM(Z,X,J,q){return Z.baseState=J,hK(Z,n1,typeof q==="function"?q:i2)}function CM(Z,X){var J=p1();if(n1!==null)return wM(J,n1,Z,X);return J.baseState=Z,[Z,J.queue.dispatch]}function sD(Z,X,J,q,W){if(S$(Z))throw Error("Cannot update form state while rendering.");if(Z=X.action,Z!==null){var U={payload:W,action:Z,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){U.listeners.push(M)}};q0.T!==null?J(!0):U.isTransition=!1,q(U),J=X.pending,J===null?(U.next=X.pending=U,jM(X,U)):(U.next=J.next,X.pending=J.next=U)}}function jM(Z,X){var{action:J,payload:q}=X,W=Z.state;if(X.isTransition){var U=q0.T,M={};M._updatedFibers=new Set,q0.T=M;try{var _=J(W,q),V=q0.S;V!==null&&V(M,_),DM(Z,X,_)}catch(j){uK(Z,X,j)}finally{U!==null&&M.types!==null&&(U.types!==null&&U.types!==M.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),U.types=M.types),q0.T=U,U===null&&M._updatedFibers&&(Z=M._updatedFibers.size,M._updatedFibers.clear(),10<Z&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{M=J(W,q),DM(Z,X,M)}catch(j){uK(Z,X,j)}}function DM(Z,X,J){J!==null&&typeof J==="object"&&typeof J.then==="function"?(q0.asyncTransitions++,J.then(D$,D$),J.then(function(q){SM(Z,X,q)},function(q){return uK(Z,X,q)}),X.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):SM(Z,X,J)}function SM(Z,X,J){X.status="fulfilled",X.value=J,EM(X),Z.state=J,X=Z.pending,X!==null&&(J=X.next,J===X?Z.pending=null:(J=J.next,X.next=J,jM(Z,J)))}function uK(Z,X,J){var q=Z.pending;if(Z.pending=null,q!==null){q=q.next;do X.status="rejected",X.reason=J,EM(X),X=X.next;while(X!==q)}Z.action=null}function EM(Z){Z=Z.listeners;for(var X=0;X<Z.length;X++)(0,Z[X])()}function bM(Z,X){return X}function NZ(Z,X){if(E1){var J=s1.formState;if(J!==null){Z:{var q=K1;if(E1){if($5){X:{var W=$5;for(var U=C2;W.nodeType!==8;){if(!U){W=null;break X}if(W=Y2(W.nextSibling),W===null){W=null;break X}}U=W.data,W=U===NB||U===MA?W:null}if(W){$5=Y2(W.nextSibling),q=W.data===NB;break Z}}E6(q)}q=!1}q&&(X=J[0])}}return J=P4(),J.memoizedState=J.baseState=X,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bM,lastRenderedState:X},J.queue=q,J=lM.bind(null,K1,q),q.dispatch=J,q=xK(!1),U=eK.bind(null,K1,!1,q.queue),q=P4(),W={state:X,dispatch:null,action:Z,pending:null},q.queue=W,J=sD.bind(null,K1,W,U,J),W.dispatch=J,q.memoizedState=Z,[X,J,!1]}function I$(Z){var X=p1();return yM(X,n1,Z)}function yM(Z,X,J){if(X=hK(Z,X,bM)[0],Z=MZ(i2)[0],typeof X==="object"&&X!==null&&typeof X.then==="function")try{var q=I3(X)}catch(M){if(M===aZ)throw PY;throw M}else q=X;X=p1();var W=X.queue,U=W.dispatch;return J!==X.memoizedState&&(K1.flags|=2048,RZ(S2|b4,{destroy:void 0},oD.bind(null,W,J),null)),[q,U,Z]}function oD(Z,X){Z.action=X}function T$(Z){var X=p1(),J=n1;if(J!==null)return yM(X,J,Z);p1(),X=X.memoizedState,J=p1();var q=J.queue.dispatch;return J.memoizedState=Z,[X,q,!1]}function RZ(Z,X,J,q){return Z={tag:Z,create:J,deps:q,inst:X,next:null},X=K1.updateQueue,X===null&&(X=O$(),K1.updateQueue=X),J=X.lastEffect,J===null?X.lastEffect=Z.next=Z:(q=J.next,J.next=Z,Z.next=q,X.lastEffect=Z),Z}function fK(Z){var X=P4();return Z={current:Z},X.memoizedState=Z}function n7(Z,X,J,q){var W=P4();K1.flags|=Z,W.memoizedState=RZ(S2|X,{destroy:void 0},J,q===void 0?null:q)}function u4(Z,X,J,q){var W=p1();q=q===void 0?null:q;var U=W.memoizedState.inst;n1!==null&&q!==null&&jK(q,n1.memoizedState.deps)?W.memoizedState=RZ(X,U,J,q):(K1.flags|=Z,W.memoizedState=RZ(S2|X,U,J,q))}function V$(Z,X){(K1.mode&n2)!==J1?n7(276826112,b4,Z,X):n7(8390656,b4,Z,X)}function tD(Z){K1.flags|=4;var X=K1.updateQueue;if(X===null)X=O$(),K1.updateQueue=X,X.events=[Z];else{var J=X.events;J===null?X.events=[Z]:J.push(Z)}}function pK(Z){var X=P4(),J={impl:Z};return X.memoizedState=J,function(){if((x1&p5)!==Z4)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function P$(Z){var X=p1().memoizedState;return tD({ref:X,nextImpl:Z}),function(){if((x1&p5)!==Z4)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return X.impl.apply(void 0,arguments)}}function lK(Z,X){var J=4194308;return(K1.mode&n2)!==J1&&(J|=134217728),n7(J,B2,Z,X)}function gM(Z,X){if(typeof X==="function"){Z=Z();var J=X(Z);return function(){typeof J==="function"?J():X(null)}}if(X!==null&&X!==void 0)return X.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(X).join(", ")+"}"),Z=Z(),X.current=Z,function(){X.current=null}}function dK(Z,X,J){typeof X!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",X!==null?typeof X:"null"),J=J!==null&&J!==void 0?J.concat([Z]):null;var q=4194308;(K1.mode&n2)!==J1&&(q|=134217728),n7(q,B2,gM.bind(null,X,Z),J)}function w$(Z,X,J){typeof X!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",X!==null?typeof X:"null"),J=J!==null&&J!==void 0?J.concat([Z]):null,u4(4,B2,gM.bind(null,X,Z),J)}function iK(Z,X){return P4().memoizedState=[Z,X===void 0?null:X],Z}function C$(Z,X){var J=p1();X=X===void 0?null:X;var q=J.memoizedState;if(X!==null&&jK(X,q[1]))return q[0];return J.memoizedState=[Z,X],Z}function cK(Z,X){var J=P4();X=X===void 0?null:X;var q=Z();if(B8){X1(!0);try{Z()}finally{X1(!1)}}return J.memoizedState=[q,X],q}function j$(Z,X){var J=p1();X=X===void 0?null:X;var q=J.memoizedState;if(X!==null&&jK(X,q[1]))return q[0];if(q=Z(),B8){X1(!0);try{Z()}finally{X1(!1)}}return J.memoizedState=[q,X],q}function rK(Z,X){var J=P4();return aK(J,Z,X)}function hM(Z,X){var J=p1();return xM(J,n1.memoizedState,Z,X)}function vM(Z,X){var J=p1();return n1===null?aK(J,Z,X):xM(J,n1.memoizedState,Z,X)}function aK(Z,X,J){if(J===void 0||(B6&1073741824)!==0&&(_1&261930)===0)return Z.memoizedState=X;return Z.memoizedState=J,Z=kN(),K1.lanes|=Z,Y7|=Z,J}function xM(Z,X,J,q){if(D4(J,X))return J;if(sZ.current!==null)return Z=aK(Z,J,q),D4(Z,X)||(E5=!0),Z;if((B6&42)===0||(B6&1073741824)!==0&&(_1&261930)===0)return E5=!0,Z.memoizedState=J;return Z=kN(),K1.lanes|=Z,Y7|=Z,X}function D$(){q0.asyncTransitions--}function kM(Z,X,J,q,W){var U=f1.p;f1.p=U!==0&&U<a2?U:a2;var M=q0.T,_={};_._updatedFibers=new Set,q0.T=_,eK(Z,!1,X,J);try{var V=W(),j=q0.S;if(j!==null&&j(_,V),V!==null&&typeof V==="object"&&typeof V.then==="function"){q0.asyncTransitions++,V.then(D$,D$);var l=rD(V,q);V3(Z,X,l,$2(Z))}else V3(Z,X,q,$2(Z))}catch(d){V3(Z,X,{then:function(){},status:"rejected",reason:d},$2(Z))}finally{f1.p=U,M!==null&&_.types!==null&&(M.types!==null&&M.types!==_.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),M.types=_.types),q0.T=M,M===null&&_._updatedFibers&&(Z=_._updatedFibers.size,_._updatedFibers.clear(),10<Z&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function nK(Z,X,J,q){if(Z.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var W=mM(Z).queue;iD(Z),kM(Z,W,X,I8,J===null?R:function(){return uM(Z),J(q)})}function mM(Z){var X=Z.memoizedState;if(X!==null)return X;X={memoizedState:I8,baseState:I8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:i2,lastRenderedState:I8},next:null};var J={};return X.next={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:i2,lastRenderedState:J},next:null},Z.memoizedState=X,Z=Z.alternate,Z!==null&&(Z.memoizedState=X),X}function uM(Z){q0.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var X=mM(Z);X.next===null&&(X=Z.alternate.memoizedState),V3(Z,X.next.queue,{},$2(Z))}function sK(){var Z=xK(!1);return Z=kM.bind(null,K1,Z.queue,!0,!1),P4().memoizedState=Z,[!1,Z]}function fM(){var Z=MZ(i2)[0],X=p1().memoizedState;return[typeof Z==="boolean"?Z:I3(Z),X]}function pM(){var Z=T3(i2)[0],X=p1().memoizedState;return[typeof Z==="boolean"?Z:I3(Z),X]}function s7(){return K5(yQ)}function oK(){var Z=P4(),X=s1.identifierPrefix;if(E1){var J=q6,q=Y6;J=(q&~(1<<32-w4(q)-1)).toString(32)+J,X="_"+X+"R_"+J,J=SY++,0<J&&(X+="H"+J.toString(32)),X+="_"}else J=Eb++,X="_"+X+"r_"+J.toString(32)+"_";return Z.memoizedState=X}function tK(){return P4().memoizedState=eD.bind(null,K1)}function eD(Z,X){for(var J=Z.return;J!==null;){switch(J.tag){case 24:case 3:var q=$2(J),W=g6(q),U=h6(J,W,q);U!==null&&(F9(q,"refresh()",Z),L5(U,J,q),_3(U,J,q)),Z=RK(),X!==null&&X!==void 0&&U!==null&&console.error("The seed argument is not enabled outside experimental channels."),W.payload={cache:Z};return}J=J.return}}function ZS(Z,X,J){var q=arguments;typeof q[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),q=$2(Z);var W={lane:q,revertLane:0,gesture:null,action:J,hasEagerState:!1,eagerState:null,next:null};S$(Z)?dM(X,W):(W=qK(Z,X,W,q),W!==null&&(F9(q,"dispatch()",Z),L5(W,Z,q),iM(W,X,q)))}function lM(Z,X,J){var q=arguments;typeof q[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),q=$2(Z),V3(Z,X,J,q)&&F9(q,"setState()",Z)}function V3(Z,X,J,q){var W={lane:q,revertLane:0,gesture:null,action:J,hasEagerState:!1,eagerState:null,next:null};if(S$(Z))dM(X,W);else{var U=Z.alternate;if(Z.lanes===0&&(U===null||U.lanes===0)&&(U=X.lastRenderedReducer,U!==null)){var M=q0.H;q0.H=o2;try{var _=X.lastRenderedState,V=U(_,J);if(W.hasEagerState=!0,W.eagerState=V,D4(V,_))return Q$(Z,X,W,0),s1===null&&X$(),!1}catch(j){}finally{q0.H=M}}if(J=qK(Z,X,W,q),J!==null)return L5(J,Z,q),iM(J,X,q),!0}return!1}function eK(Z,X,J,q){if(q0.T===null&&q8===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),q={lane:2,revertLane:DW(),gesture:null,action:q,hasEagerState:!1,eagerState:null,next:null},S$(Z)){if(X)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else X=qK(Z,J,q,2),X!==null&&(F9(2,"setOptimistic()",Z),L5(X,Z,2))}function S$(Z){var X=Z.alternate;return Z===K1||X!==null&&X===K1}function dM(Z,X){eZ=DY=!0;var J=Z.pending;J===null?X.next=X:(X.next=J.next,J.next=X),Z.pending=X}function iM(Z,X,J){if((J&4194048)!==0){var q=X.lanes;q&=Z.pendingLanes,J|=q,X.lanes=J,B5(Z,J)}}function ZW(Z){if(Z!==null&&typeof Z!=="function"){var X=String(Z);pO.has(X)||(pO.add(X),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",Z))}}function XW(Z,X,J,q){var W=Z.memoizedState,U=J(q,W);if(Z.mode&R4){X1(!0);try{U=J(q,W)}finally{X1(!1)}}U===void 0&&(X=h(X)||"Component",kO.has(X)||(kO.add(X),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",X))),W=U===null||U===void 0?W:V1({},W,U),Z.memoizedState=W,Z.lanes===0&&(Z.updateQueue.baseState=W)}function cM(Z,X,J,q,W,U,M){var _=Z.stateNode;if(typeof _.shouldComponentUpdate==="function"){if(J=_.shouldComponentUpdate(q,U,M),Z.mode&R4){X1(!0);try{J=_.shouldComponentUpdate(q,U,M)}finally{X1(!1)}}return J===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",h(X)||"Component"),J}return X.prototype&&X.prototype.isPureReactComponent?!U3(J,q)||!U3(W,U):!0}function rM(Z,X,J,q){var W=X.state;typeof X.componentWillReceiveProps==="function"&&X.componentWillReceiveProps(J,q),typeof X.UNSAFE_componentWillReceiveProps==="function"&&X.UNSAFE_componentWillReceiveProps(J,q),X.state!==W&&(Z=E(Z)||"Component",yO.has(Z)||(yO.add(Z),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Z)),nH.enqueueReplaceState(X,X.state,null))}function o7(Z,X){var J=X;if("ref"in X){J={};for(var q in X)q!=="ref"&&(J[q]=X[q])}if(Z=Z.defaultProps){J===X&&(J=V1({},J));for(var W in Z)J[W]===void 0&&(J[W]=Z[W])}return J}function aM(Z){wH(Z),console.warn(`%s
|
|
116
116
|
|
|
117
117
|
%s
|
|
118
|
-
`,
|
|
119
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function
|
|
118
|
+
`,ZX?"An error occurred in the <"+ZX+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
119
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function nM(Z){var X=ZX?"The above error occurred in the <"+ZX+"> component.":"The above error occurred in one of your React components.",J="React will try to recreate this component tree from scratch using the error boundary you provided, "+((sH||"Anonymous")+".");if(typeof Z==="object"&&Z!==null&&typeof Z.environmentName==="string"){var q=Z.environmentName;Z=[`%o
|
|
120
120
|
|
|
121
121
|
%s
|
|
122
122
|
|
|
123
123
|
%s
|
|
124
|
-
|
|
124
|
+
`,Z,X,J].slice(0),typeof Z[0]==="string"?Z.splice(0,1,VA+" "+Z[0],PA,Xq+q+Xq,wA):Z.splice(0,0,VA,PA,Xq+q+Xq,wA),Z.unshift(console),q=tb.apply(console.error,Z),q()}else console.error(`%o
|
|
125
125
|
|
|
126
126
|
%s
|
|
127
127
|
|
|
128
128
|
%s
|
|
129
|
-
|
|
129
|
+
`,Z,X,J)}function sM(Z){wH(Z)}function E$(Z,X){try{ZX=X.source?E(X.source):null,sH=null;var J=X.value;if(q0.actQueue!==null)q0.thrownErrors.push(J);else{var q=Z.onUncaughtError;q(J,{componentStack:X.stack})}}catch(W){setTimeout(function(){throw W})}}function oM(Z,X,J){try{ZX=J.source?E(J.source):null,sH=E(X);var q=Z.onCaughtError;q(J.value,{componentStack:J.stack,errorBoundary:X.tag===1?X.stateNode:null})}catch(W){setTimeout(function(){throw W})}}function QW(Z,X,J){return J=g6(J),J.tag=lH,J.payload={element:null},J.callback=function(){R0(X.source,E$,Z,X)},J}function JW(Z){return Z=g6(Z),Z.tag=lH,Z}function $W(Z,X,J,q){var W=J.type.getDerivedStateFromError;if(typeof W==="function"){var U=q.value;Z.payload=function(){return W(U)},Z.callback=function(){dL(J),R0(q.source,oM,X,J,q)}}var M=J.stateNode;M!==null&&typeof M.componentDidCatch==="function"&&(Z.callback=function(){dL(J),R0(q.source,oM,X,J,q),typeof W!=="function"&&(G7===null?G7=new Set([this]):G7.add(this)),Cb(this,q),typeof W==="function"||(J.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",E(J)||"Unknown")})}function XS(Z,X,J,q,W){if(J.flags|=32768,E9&&b3(Z,W),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(X=J.alternate,X!==null&&FZ(X,J,W,!0),E1&&(g9=!0),J=H2.current,J!==null){switch(J.tag){case 31:case 13:return D2===null?u$():J.alternate===null&&z5===L6&&(z5=yY),J.flags&=-257,J.flags|=65536,J.lanes=W,q===wY?J.flags|=16384:(X=J.updateQueue,X===null?J.updateQueue=new Set([q]):X.add(q),PW(Z,q,W)),!1;case 22:return J.flags|=65536,q===wY?J.flags|=16384:(X=J.updateQueue,X===null?(X={transitions:null,markerInstances:null,retryQueue:new Set([q])},J.updateQueue=X):(J=X.retryQueue,J===null?X.retryQueue=new Set([q]):J.add(q)),PW(Z,q,W)),!1}throw Error("Unexpected Suspense handler tag ("+J.tag+"). This is a bug in React.")}return PW(Z,q,W),u$(),!1}if(E1)return g9=!0,X=H2.current,X!==null?((X.flags&65536)===0&&(X.flags|=256),X.flags|=65536,X.lanes=W,q!==bH&&F3(Z2(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:q}),J))):(q!==bH&&F3(Z2(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:q}),J)),Z=Z.current.alternate,Z.flags|=65536,W&=-W,Z.lanes|=W,q=Z2(q,J),W=QW(Z.stateNode,q,W),N$(Z,W),z5!==J7&&(z5=U8)),!1;var U=Z2(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:q}),J);if(VQ===null?VQ=[U]:VQ.push(U),z5!==J7&&(z5=U8),X===null)return!0;q=Z2(q,J),J=X;do{switch(J.tag){case 3:return J.flags|=65536,Z=W&-W,J.lanes|=Z,Z=QW(J.stateNode,q,Z),N$(J,Z),!1;case 1:if(X=J.type,U=J.stateNode,(J.flags&128)===0&&(typeof X.getDerivedStateFromError==="function"||U!==null&&typeof U.componentDidCatch==="function"&&(G7===null||!G7.has(U))))return J.flags|=65536,W&=-W,J.lanes|=W,W=JW(W),$W(W,Z,J,q),N$(J,W),!1}J=J.return}while(J!==null);return!1}function Y4(Z,X,J,q){X.child=Z===null?IO(X,null,J,q):H8(X,Z.child,J,q)}function tM(Z,X,J,q,W){J=J.render;var U=X.ref;if("ref"in q){var M={};for(var _ in q)_!=="ref"&&(M[_]=q[_])}else M=q;if(c7(X),q=DK(Z,X,J,M,U,W),_=EK(),Z!==null&&!E5)return bK(Z,X,W),e9(Z,X,W);return E1&&_&&UK(X),X.flags|=1,Y4(Z,X,q,W),X.child}function eM(Z,X,J,q,W){if(Z===null){var U=J.type;if(typeof U==="function"&&!KK(U)&&U.defaultProps===void 0&&J.compare===null)return J=p7(U),X.tag=15,X.type=J,qW(X,U),ZN(Z,X,J,q,W);return Z=WK(J.type,null,q,X,X.mode,W),Z.ref=X.ref,Z.return=X,X.child=Z}if(U=Z.child,!UW(Z,W)){var M=U.memoizedProps;if(J=J.compare,J=J!==null?J:U3,J(M,q)&&Z.ref===X.ref)return e9(Z,X,W)}return X.flags|=1,Z=n9(U,q),Z.ref=X.ref,Z.return=X,X.child=Z}function ZN(Z,X,J,q,W){if(Z!==null){var U=Z.memoizedProps;if(U3(U,q)&&Z.ref===X.ref&&X.type===Z.type)if(E5=!1,X.pendingProps=q=U,UW(Z,W))(Z.flags&131072)!==0&&(E5=!0);else return X.lanes=Z.lanes,e9(Z,X,W)}return YW(Z,X,J,q,W)}function XN(Z,X,J,q){var W=q.children,U=Z!==null?Z.memoizedState:null;if(Z===null&&X.stateNode===null&&(X.stateNode={_visibility:e3,_pendingMarkers:null,_retryCache:null,_transitions:null}),q.mode==="hidden"){if((X.flags&128)!==0){if(U=U!==null?U.baseLanes|J:J,Z!==null){q=X.child=Z.child;for(W=0;q!==null;)W=W|q.lanes|q.childLanes,q=q.sibling;q=W&~U}else q=0,X.child=null;return QN(Z,X,U,J,q)}if((J&536870912)!==0)X.memoizedState={baseLanes:0,cachePool:null},Z!==null&&B$(X,U!==null?U.cachePool:null),U!==null?NM(X,U):PK(X),RM(X);else return q=X.lanes=536870912,QN(Z,X,U!==null?U.baseLanes|J:J,J,q)}else U!==null?(B$(X,U.cachePool),NM(X,U),x6(X),X.memoizedState=null):(Z!==null&&B$(X,null),PK(X),x6(X));return Y4(Z,X,W,J),X.child}function P3(Z,X){return Z!==null&&Z.tag===22||X.stateNode!==null||(X.stateNode={_visibility:e3,_pendingMarkers:null,_retryCache:null,_transitions:null}),X.sibling}function QN(Z,X,J,q,W){var U=AK();return U=U===null?null:{parent:j5._currentValue,pool:U},X.memoizedState={baseLanes:J,cachePool:U},Z!==null&&B$(X,null),PK(X),RM(X),Z!==null&&FZ(Z,X,q,!0),X.childLanes=W,null}function b$(Z,X){var J=X.hidden;return J!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
130
130
|
- <Activity %s>
|
|
131
|
-
+ <Activity %s>`,
|
|
131
|
+
+ <Activity %s>`,J===!0?"hidden":J===!1?"hidden={false}":"hidden={...}",J?'mode="hidden"':'mode="visible"'),X=g$({mode:X.mode,children:X.children},Z.mode),X.ref=Z.ref,Z.child=X,X.return=Z,X}function JN(Z,X,J){return H8(X,Z.child,null,J),Z=b$(X,X.pendingProps),Z.flags|=2,J2(X),X.memoizedState=null,Z}function QS(Z,X,J){var q=X.pendingProps,W=(X.flags&128)!==0;if(X.flags&=-129,Z===null){if(E1){if(q.mode==="hidden")return Z=b$(X,q),X.lanes=536870912,P3(null,Z);if(CK(X),(Z=$5)?(J=jR(Z,C2),J=J!==null&&J.data===R8?J:null,J!==null&&(q={dehydrated:J,treeContext:nL(),retryLane:536870912,hydrationErrors:null},X.memoizedState=q,q=rL(J),q.return=X,X.child=q,K4=X,$5=null)):J=null,J===null)throw Y$(X,Z),E6(X);return X.lanes=536870912,null}return b$(X,q)}var U=Z.memoizedState;if(U!==null){var M=U.dehydrated;if(CK(X),W)if(X.flags&256)X.flags&=-257,X=JN(Z,X,J);else if(X.memoizedState!==null)X.child=Z.child,X.flags|=128,X=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(oL(),(J&536870912)!==0&&m$(X),E5||FZ(Z,X,J,!1),W=(J&Z.childLanes)!==0,E5||W){if(q=s1,q!==null&&(M=X5(q,J),M!==0&&M!==U.retryLane))throw U.retryLane=M,M4(Z,M),L5(q,Z,M),oH;u$(),X=JN(Z,X,J)}else Z=U.treeContext,$5=Y2(M.nextSibling),K4=X,E1=!0,s6=null,g9=!1,W2=null,C2=!1,Z!==null&&sL(X,Z),X=b$(X,q),X.flags|=4096;return X}return U=Z.child,q={mode:q.mode,children:q.children},(J&536870912)!==0&&(J&Z.lanes)!==0&&m$(X),Z=n9(U,q),Z.ref=X.ref,X.child=Z,Z.return=X,Z}function y$(Z,X){var J=X.ref;if(J===null)Z!==null&&Z.ref!==null&&(X.flags|=4194816);else{if(typeof J!=="function"&&typeof J!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(Z===null||Z.ref!==J)X.flags|=4194816}}function YW(Z,X,J,q,W){if(J.prototype&&typeof J.prototype.render==="function"){var U=h(J)||"Unknown";lO[U]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",U,U),lO[U]=!0)}if(X.mode&R4&&s2.recordLegacyContextWarning(X,null),Z===null&&(qW(X,X.type),J.contextTypes&&(U=h(J)||"Unknown",iO[U]||(iO[U]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",U)))),c7(X),J=DK(Z,X,J,q,void 0,W),q=EK(),Z!==null&&!E5)return bK(Z,X,W),e9(Z,X,W);return E1&&q&&UK(X),X.flags|=1,Y4(Z,X,J,W),X.child}function $N(Z,X,J,q,W,U){if(c7(X),z6=-1,NQ=Z!==null&&Z.type!==X.type,X.updateQueue=null,J=SK(X,q,J,W),_M(Z,X),q=EK(),Z!==null&&!E5)return bK(Z,X,U),e9(Z,X,U);return E1&&q&&UK(X),X.flags|=1,Y4(Z,X,J,U),X.child}function YN(Z,X,J,q,W){switch(B(X)){case!1:var U=X.stateNode,M=new X.type(X.memoizedProps,U.context).state;U.updater.enqueueSetState(U,M,null);break;case!0:X.flags|=128,X.flags|=65536,U=Error("Simulated error coming from DevTools");var _=W&-W;if(X.lanes|=_,M=s1,M===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");_=JW(_),$W(_,M,X,Z2(U,X)),N$(X,_)}if(c7(X),X.stateNode===null){if(M=n6,U=J.contextType,"contextType"in J&&U!==null&&(U===void 0||U.$$typeof!==j9)&&!fO.has(J)&&(fO.add(J),_=U===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof U!=="object"?" However, it is set to a "+typeof U+".":U.$$typeof===tW?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(U).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",h(J)||"Component",_)),typeof U==="object"&&U!==null&&(M=K5(U)),U=new J(q,M),X.mode&R4){X1(!0);try{U=new J(q,M)}finally{X1(!1)}}if(M=X.memoizedState=U.state!==null&&U.state!==void 0?U.state:null,U.updater=nH,X.stateNode=U,U._reactInternals=X,U._reactInternalInstance=bO,typeof J.getDerivedStateFromProps==="function"&&M===null&&(M=h(J)||"Component",gO.has(M)||(gO.add(M),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",M,U.state===null?"null":"undefined",M))),typeof J.getDerivedStateFromProps==="function"||typeof U.getSnapshotBeforeUpdate==="function"){var V=_=M=null;if(typeof U.componentWillMount==="function"&&U.componentWillMount.__suppressDeprecationWarning!==!0?M="componentWillMount":typeof U.UNSAFE_componentWillMount==="function"&&(M="UNSAFE_componentWillMount"),typeof U.componentWillReceiveProps==="function"&&U.componentWillReceiveProps.__suppressDeprecationWarning!==!0?_="componentWillReceiveProps":typeof U.UNSAFE_componentWillReceiveProps==="function"&&(_="UNSAFE_componentWillReceiveProps"),typeof U.componentWillUpdate==="function"&&U.componentWillUpdate.__suppressDeprecationWarning!==!0?V="componentWillUpdate":typeof U.UNSAFE_componentWillUpdate==="function"&&(V="UNSAFE_componentWillUpdate"),M!==null||_!==null||V!==null){U=h(J)||"Component";var j=typeof J.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";vO.has(U)||(vO.add(U),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
132
132
|
|
|
133
133
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
134
134
|
|
|
135
135
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
136
|
-
https://react.dev/link/unsafe-component-lifecycles`,
|
|
137
|
-
`+
|
|
138
|
-
`+
|
|
139
|
-
`+
|
|
140
|
-
%s.childContextTypes = ...`,B.displayName||B.name||"Component"),typeof B.getDerivedStateFromProps==="function"&&($=p(B)||"Unknown",EH[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),EH[$]=!0)),typeof B.contextType==="object"&&B.contextType!==null&&(B=p(B)||"Unknown",jH[B]||(console.error("%s: Function components do not support contextType.",B),jH[B]=!0))}function zY($){return{baseLanes:$,cachePool:tz()}}function WY($,B,X){return $=$!==null?$.childLanes&~X:0,B&&($|=E1),$}function BN($,B,X){var Y,Z=B.pendingProps;R(B)&&(B.flags|=128);var G=!1,z=(B.flags&128)!==0;if((Y=z)||(Y=$!==null&&$.memoizedState===null?!1:(l2.current&p$)!==0),Y&&(G=!0,B.flags&=-129),Y=(B.flags&32)!==0,B.flags&=-33,$===null){if(i0){if(G?t7(B):e7(B),($=P2)?(X=Mv($,K4),X=X!==null&&X.data!==U3?X:null,X!==null&&(Y={dehydrated:X,treeContext:dz(),retryLane:536870912,hydrationErrors:null},B.memoizedState=Y,Y=Dz(X),Y.return=B,B.child=Y,L1=B,P2=null)):X=null,X===null)throw S9(B,$),a7(B);return EY(X)?B.lanes=32:B.lanes=536870912,null}var W=Z.children;if(Z=Z.fallback,G){e7(B);var J=B.mode;return W=N8({mode:"hidden",children:W},J),Z=l5(Z,J,X,null),W.return=B,Z.return=B,W.sibling=Z,B.child=W,Z=B.child,Z.memoizedState=zY(X),Z.childLanes=WY($,Y,X),B.memoizedState=nZ,$$(null,Z)}return t7(B),NY(B,W)}var Q=$.memoizedState;if(Q!==null){var A=Q.dehydrated;if(A!==null){if(z)B.flags&256?(t7(B),B.flags&=-257,B=vY($,B,X)):B.memoizedState!==null?(e7(B),B.child=$.child,B.flags|=128,B=null):(e7(B),W=Z.fallback,J=B.mode,Z=N8({mode:"visible",children:Z.children},J),W=l5(W,J,X,null),W.flags|=2,Z.return=B,W.return=B,Z.sibling=W,B.child=Z,v3(B,$.child,null,X),Z=B.child,Z.memoizedState=zY(X),Z.childLanes=WY($,Y,X),B.memoizedState=nZ,B=$$(null,Z));else if(t7(B),cz(),(X&536870912)!==0&&L8(B),EY(A)){if(Y=A.nextSibling&&A.nextSibling.dataset,Y){W=Y.dgst;var P=Y.msg;J=Y.stck;var O=Y.cstck}G=P,Y=W,Z=J,A=O,W=G,J=A,W=W?Error(W):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),W.stack=Z||"",W.digest=Y,Y=J===void 0?null:J,Z={value:W,source:null,stack:Y},typeof Y==="string"&&TZ.set(W,Z),d6(Z),B=vY($,B,X)}else if(a2||S3($,B,X,!1),Y=(X&$.childLanes)!==0,a2||Y){if(Y=O2,Y!==null&&(Z=Y1(Y,X),Z!==0&&Z!==Q.retryLane))throw Q.retryLane=Z,K1($,Z),k2(Y,$,Z),rZ;VY(A)||q8(),B=vY($,B,X)}else VY(A)?(B.flags|=192,B.child=$.child,B=null):($=Q.treeContext,P2=r1(A.nextSibling),L1=B,i0=!0,Q5=null,v7=!1,$4=null,K4=!1,$!==null&&pz(B,$),B=NY(B,Z.children),B.flags|=4096);return B}}if(G)return e7(B),W=Z.fallback,J=B.mode,O=$.child,A=O.sibling,Z=U7(O,{mode:"hidden",children:Z.children}),Z.subtreeFlags=O.subtreeFlags&65011712,A!==null?W=U7(A,W):(W=l5(W,J,X,null),W.flags|=2),W.return=B,Z.return=B,Z.sibling=W,B.child=Z,$$(null,Z),Z=B.child,W=$.child.memoizedState,W===null?W=zY(X):(J=W.cachePool,J!==null?(O=p2._currentValue,J=J.parent!==O?{parent:O,pool:O}:J):J=tz(),W={baseLanes:W.baseLanes|X,cachePool:J}),Z.memoizedState=W,Z.childLanes=WY($,Y,X),B.memoizedState=nZ,$$($.child,Z);return Q!==null&&(X&62914560)===X&&(X&$.lanes)!==0&&L8(B),t7(B),X=$.child,$=X.sibling,X=U7(X,{mode:"visible",children:Z.children}),X.return=B,X.sibling=null,$!==null&&(Y=B.deletions,Y===null?(B.deletions=[$],B.flags|=16):Y.push($)),B.child=X,B.memoizedState=null,X}function NY($,B){return B=N8({mode:"visible",children:B},$.mode),B.return=$,$.child=B}function N8($,B){return $=T(22,$,null,B),$.lanes=0,$}function vY($,B,X){return v3(B,$.child,null,X),$=NY(B,B.pendingProps.children),$.flags|=2,B.memoizedState=null,$}function XN($,B,X){$.lanes|=B;var Y=$.alternate;Y!==null&&(Y.lanes|=B),gX($.return,B,X)}function JY($,B,X,Y,Z,G){var z=$.memoizedState;z===null?$.memoizedState={isBackwards:B,rendering:null,renderingStartTime:0,last:Y,tail:X,tailMode:Z,treeForkCount:G}:(z.isBackwards=B,z.rendering=null,z.renderingStartTime=0,z.last=Y,z.tail=X,z.tailMode=Z,z.treeForkCount=G)}function YN($,B,X){var Y=B.pendingProps,Z=Y.revealOrder,G=Y.tail,z=Y.children,W=l2.current;if((Y=(W&p$)!==0)?(W=W&K6|p$,B.flags|=128):W&=K6,M0(l2,W,B),W=Z==null?"null":Z,Z!=="forwards"&&Z!=="unstable_legacy-backwards"&&Z!=="together"&&Z!=="independent"&&!DH[W])if(DH[W]=!0,Z==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(Z==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof Z==="string")switch(Z.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',Z,Z.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',Z,Z.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',Z)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',Z);if(W=G==null?"null":G,!zB[W])if(G==null){if(Z==="forwards"||Z==="backwards"||Z==="unstable_legacy-backwards")zB[W]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else G!=="visible"&&G!=="collapsed"&&G!=="hidden"?(zB[W]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',G)):Z!=="forwards"&&Z!=="backwards"&&Z!=="unstable_legacy-backwards"&&(zB[W]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',G));$:if((Z==="forwards"||Z==="backwards"||Z==="unstable_legacy-backwards")&&z!==void 0&&z!==null&&z!==!1)if(t2(z)){for(W=0;W<z.length;W++)if(!NW(z[W],W))break $}else if(W=e0(z),typeof W==="function"){if(W=W.call(z))for(var J=W.next(),Q=0;!J.done;J=W.next()){if(!NW(J.value,Q))break $;Q++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',Z);if(J1($,B,z,X),i0?(o7(),z=m$):z=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=B.child;$!==null;){if($.tag===13)$.memoizedState!==null&&XN($,X,B);else if($.tag===19)XN($,X,B);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===B)break $;for(;$.sibling===null;){if($.return===null||$.return===B)break $;$=$.return}$.sibling.return=$.return,$=$.sibling}switch(Z){case"forwards":X=B.child;for(Z=null;X!==null;)$=X.alternate,$!==null&&o9($)===null&&(Z=X),X=X.sibling;X=Z,X===null?(Z=B.child,B.child=null):(Z=X.sibling,X.sibling=null),JY(B,!1,Z,X,G,z);break;case"backwards":case"unstable_legacy-backwards":X=null,Z=B.child;for(B.child=null;Z!==null;){if($=Z.alternate,$!==null&&o9($)===null){B.child=Z;break}$=Z.sibling,Z.sibling=X,X=Z,Z=$}JY(B,!0,X,null,G,z);break;case"together":JY(B,!1,null,null,void 0,z);break;default:B.memoizedState=null}return B.child}function _7($,B,X){if($!==null&&(B.dependencies=$.dependencies),I1=-1,_5|=B.lanes,(X&B.childLanes)===0)if($!==null){if(S3($,B,X,!1),(X&B.childLanes)===0)return null}else return null;if($!==null&&B.child!==$.child)throw Error("Resuming work not yet implemented.");if(B.child!==null){$=B.child,X=U7($,$.pendingProps),B.child=X;for(X.return=B;$.sibling!==null;)$=$.sibling,X=X.sibling=U7($,$.pendingProps),X.return=B;X.sibling=null}return B.child}function HY($,B){if(($.lanes&B)!==0)return!0;return $=$.dependencies,$!==null&&x9($)?!0:!1}function zq($,B,X){switch(B.tag){case 3:c(B,B.stateNode.containerInfo),s7(B,p2,$.memoizedState.cache),p5();break;case 27:case 5:U0(B);break;case 4:c(B,B.stateNode.containerInfo);break;case 10:s7(B,B.type,B.memoizedProps.value);break;case 12:(X&B.childLanes)!==0&&(B.flags|=4),B.flags|=2048;var Y=B.stateNode;Y.effectDuration=-0,Y.passiveEffectDuration=-0;break;case 31:if(B.memoizedState!==null)return B.flags|=128,IX(B),null;break;case 13:if(Y=B.memoizedState,Y!==null){if(Y.dehydrated!==null)return t7(B),B.flags|=128,null;if((X&B.child.childLanes)!==0)return BN($,B,X);return t7(B),$=_7($,B,X),$!==null?$.sibling:null}t7(B);break;case 19:var Z=($.flags&128)!==0;if(Y=(X&B.childLanes)!==0,Y||(S3($,B,X,!1),Y=(X&B.childLanes)!==0),Z){if(Y)return YN($,B,X);B.flags|=128}if(Z=B.memoizedState,Z!==null&&(Z.rendering=null,Z.tail=null,Z.lastEffect=null),M0(l2,l2.current,B),Y)break;else return null;case 22:return B.lanes=0,iW($,B,X,B.pendingProps);case 24:s7(B,p2,$.memoizedState.cache)}return _7($,B,X)}function QY($,B,X){if(B._debugNeedsRemount&&$!==null){X=NX(B.type,B.key,B.pendingProps,B._debugOwner||null,B.mode,B.lanes),X._debugStack=B._debugStack,X._debugTask=B._debugTask;var Y=B.return;if(Y===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,B.alternate=null,X.index=B.index,X.sibling=B.sibling,X.return=B.return,X.ref=B.ref,X._debugInfo=B._debugInfo,B===Y.child)Y.child=X;else{var Z=Y.child;if(Z===null)throw Error("Expected parent to have a child.");for(;Z.sibling!==B;)if(Z=Z.sibling,Z===null)throw Error("Expected to find the previous sibling.");Z.sibling=X}return B=Y.deletions,B===null?(Y.deletions=[$],Y.flags|=16):B.push($),X.flags|=2,X}if($!==null)if($.memoizedProps!==B.pendingProps||B.type!==$.type)a2=!0;else{if(!HY($,X)&&(B.flags&128)===0)return a2=!1,zq($,B,X);a2=($.flags&131072)!==0?!0:!1}else{if(a2=!1,Y=i0)o7(),Y=(B.flags&1048576)!==0;Y&&(Y=B.index,o7(),lz(B,m$,Y))}switch(B.lanes=0,B.tag){case 16:$:if(Y=B.pendingProps,$=i7(B.elementType),B.type=$,typeof $==="function")WX($)?(Y=r5($,Y),B.tag=1,B.type=$=D5($),B=eW(null,B,$,Y,X)):(B.tag=0,GY(B,$),B.type=$=D5($),B=ZY(null,B,$,Y,X));else{if($!==void 0&&$!==null){if(Z=$.$$typeof,Z===K$){B.tag=11,B.type=$=zX($),B=oW(null,B,$,Y,X);break $}else if(Z===C8){B.tag=14,B=aW(null,B,$,Y,X);break $}}throw B="",$!==null&&typeof $==="object"&&$.$$typeof===n1&&(B=" Did you wrap a component in React.lazy() more than once?"),X=p($)||$,Error("Element type is invalid. Received a promise that resolves to: "+X+". Lazy element type must resolve to a class or function."+B)}return B;case 0:return ZY($,B,B.type,B.pendingProps,X);case 1:return Y=B.type,Z=r5(Y,B.pendingProps),eW($,B,Y,Z,X);case 3:$:{if(c(B,B.stateNode.containerInfo),$===null)throw Error("Should have a current fiber. This is a bug in React.");Y=B.pendingProps;var G=B.memoizedState;Z=G.element,FX($,B),r6(B,Y,null,X);var z=B.memoizedState;if(Y=z.cache,s7(B,p2,Y),Y!==G.cache&&KX(B,[p2],X,!0),i6(),Y=z.element,G.isDehydrated)if(G={element:Y,isDehydrated:!1,cache:z.cache},B.updateQueue.baseState=G,B.memoizedState=G,B.flags&256){B=$N($,B,Y,X);break $}else if(Y!==Z){Z=c1(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),B),d6(Z),B=$N($,B,Y,X);break $}else{switch($=B.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}P2=r1($.firstChild),L1=B,i0=!0,Q5=null,v7=!1,$4=null,K4=!0,X=KH(B,null,Y,X);for(B.child=X;X;)X.flags=X.flags&-3|4096,X=X.sibling}else{if(p5(),Y===Z){B=_7($,B,X);break $}J1($,B,Y,X)}B=B.child}return B;case 26:return W8($,B),$===null?(X=Cv(B.type,null,B.pendingProps,null))?B.memoizedState=X:i0||(X=B.type,$=B.pendingProps,Y=G2(G5.current),Y=O8(Y).createElement(X),Y[Q1]=B,Y[F1]=$,H1(Y,X,$),H0(Y),B.stateNode=Y):B.memoizedState=Cv(B.type,$.memoizedProps,B.pendingProps,$.memoizedState),null;case 27:return U0(B),$===null&&i0&&(Y=G2(G5.current),Z=e(),Y=B.stateNode=Iv(B.type,B.pendingProps,Y,Z,!1),v7||(Z=qv(Y,B.type,B.pendingProps,Z),Z!==null&&(d5(B,0).serverProps=Z)),L1=B,K4=!0,Z=P2,Y5(B.type)?(RG=Z,P2=r1(Y.firstChild)):P2=Z),J1($,B,B.pendingProps.children,X),W8($,B),$===null&&(B.flags|=4194304),B.child;case 5:return $===null&&i0&&(G=e(),Y=tB(B.type,G.ancestorInfo),Z=P2,(z=!Z)||(z=sq(Z,B.type,B.pendingProps,K4),z!==null?(B.stateNode=z,v7||(G=qv(z,B.type,B.pendingProps,G),G!==null&&(d5(B,0).serverProps=G)),L1=B,P2=r1(z.firstChild),K4=!1,G=!0):G=!1,z=!G),z&&(Y&&S9(B,Z),a7(B))),U0(B),Z=B.type,G=B.pendingProps,z=$!==null?$.memoizedProps:null,Y=G.children,kY(Z,G)?Y=null:z!==null&&kY(Z,z)&&(B.flags|=32),B.memoizedState!==null&&(Z=CX($,B,tL,null,null,X),N9._currentValue=Z),W8($,B),J1($,B,Y,X),B.child;case 6:return $===null&&i0&&(X=B.pendingProps,$=e(),Y=$.ancestorInfo.current,X=Y!=null?F9(X,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=P2,(Y=!$)||(Y=iq($,B.pendingProps,K4),Y!==null?(B.stateNode=Y,L1=B,P2=null,Y=!0):Y=!1,Y=!Y),Y&&(X&&S9(B,$),a7(B))),null;case 13:return BN($,B,X);case 4:return c(B,B.stateNode.containerInfo),Y=B.pendingProps,$===null?B.child=v3(B,null,Y,X):J1($,B,Y,X),B.child;case 11:return oW($,B,B.type,B.pendingProps,X);case 7:return J1($,B,B.pendingProps,X),B.child;case 8:return J1($,B,B.pendingProps.children,X),B.child;case 12:return B.flags|=4,B.flags|=2048,Y=B.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,J1($,B,B.pendingProps.children,X),B.child;case 10:return Y=B.type,Z=B.pendingProps,G=Z.value,"value"in Z||lH||(lH=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),s7(B,Y,G),J1($,B,Z.children,X),B.child;case 9:return Z=B.type._context,Y=B.pendingProps.children,typeof Y!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),c5(B),Z=m2(Z),Y=jZ(Y,Z,void 0),B.flags|=1,J1($,B,Y,X),B.child;case 14:return aW($,B,B.type,B.pendingProps,X);case 15:return sW($,B,B.type,B.pendingProps,X);case 19:return YN($,B,X);case 31:return Gq($,B,X);case 22:return iW($,B,X,B.pendingProps);case 24:return c5(B),Y=m2(p2),$===null?(Z=RX(),Z===null&&(Z=O2,G=UX(),Z.pooledCache=G,o5(G),G!==null&&(Z.pooledCacheLanes|=X),Z=G),B.memoizedState={parent:Y,cache:Z},MX(B),s7(B,p2,Z)):(($.lanes&X)!==0&&(FX($,B),r6(B,null,null,X),i6()),Z=$.memoizedState,G=B.memoizedState,Z.parent!==Y?(Z={parent:Y,cache:Y},B.memoizedState=Z,B.lanes===0&&(B.memoizedState=B.updateQueue.baseState=Z),s7(B,p2,Y)):(Y=G.cache,s7(B,p2,Y),Y!==Z.cache&&KX(B,[p2],X,!0))),J1($,B,B.pendingProps.children,X),B.child;case 29:throw B.pendingProps}throw Error("Unknown unit of work tag ("+B.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function M7($){$.flags|=4}function LY($,B,X,Y,Z){if(B=($.mode&IK)!==A0)B=!1;if(B){if($.flags|=16777216,(Z&335544128)===Z)if($.stateNode.complete)$.flags|=8192;else if(hN())$.flags|=8192;else throw N3=$B,EZ}else $.flags&=-16777217}function ZN($,B){if(B.type!=="stylesheet"||(B.state.loading&_4)!==R3)$.flags&=-16777217;else if($.flags|=16777216,!Sv(B))if(hN())$.flags|=8192;else throw N3=$B,EZ}function v8($,B){B!==null&&($.flags|=4),$.flags&16384&&(B=$.tag!==22?F4():536870912,$.lanes|=B,q3|=B)}function B$($,B){if(!i0)switch($.tailMode){case"hidden":B=$.tail;for(var X=null;B!==null;)B.alternate!==null&&(X=B),B=B.sibling;X===null?$.tail=null:X.sibling=null;break;case"collapsed":X=$.tail;for(var Y=null;X!==null;)X.alternate!==null&&(Y=X),X=X.sibling;Y===null?B||$.tail===null?$.tail=null:$.tail.sibling=null:Y.sibling=null}}function R2($){var B=$.alternate!==null&&$.alternate.child===$.child,X=0,Y=0;if(B)if(($.mode&k0)!==A0){for(var{selfBaseDuration:Z,child:G}=$;G!==null;)X|=G.lanes|G.childLanes,Y|=G.subtreeFlags&65011712,Y|=G.flags&65011712,Z+=G.treeBaseDuration,G=G.sibling;$.treeBaseDuration=Z}else for(Z=$.child;Z!==null;)X|=Z.lanes|Z.childLanes,Y|=Z.subtreeFlags&65011712,Y|=Z.flags&65011712,Z.return=$,Z=Z.sibling;else if(($.mode&k0)!==A0){Z=$.actualDuration,G=$.selfBaseDuration;for(var z=$.child;z!==null;)X|=z.lanes|z.childLanes,Y|=z.subtreeFlags,Y|=z.flags,Z+=z.actualDuration,G+=z.treeBaseDuration,z=z.sibling;$.actualDuration=Z,$.treeBaseDuration=G}else for(Z=$.child;Z!==null;)X|=Z.lanes|Z.childLanes,Y|=Z.subtreeFlags,Y|=Z.flags,Z.return=$,Z=Z.sibling;return $.subtreeFlags|=Y,$.childLanes=X,B}function Wq($,B,X){var Y=B.pendingProps;switch(QX(B),B.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return R2(B),null;case 1:return R2(B),null;case 3:if(X=B.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),B.memoizedState.cache!==Y&&(B.flags|=2048),w7(p2,B),z0(B),X.pendingContext&&(X.context=X.pendingContext,X.pendingContext=null),$===null||$.child===null)y3(B)?(qX(),M7(B)):$===null||$.memoizedState.isDehydrated&&(B.flags&256)===0||(B.flags|=1024,LX());return R2(B),null;case 26:var{type:Z,memoizedState:G}=B;return $===null?(M7(B),G!==null?(R2(B),ZN(B,G)):(R2(B),LY(B,Z,null,Y,X))):G?G!==$.memoizedState?(M7(B),R2(B),ZN(B,G)):(R2(B),B.flags&=-16777217):($=$.memoizedProps,$!==Y&&M7(B),R2(B),LY(B,Z,$,Y,X)),null;case 27:if(a(B),X=G2(G5.current),Z=B.type,$!==null&&B.stateNode!=null)$.memoizedProps!==Y&&M7(B);else{if(!Y){if(B.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return R2(B),null}$=e(),y3(B)?oz(B,$):($=Iv(Z,Y,X,$,!0),B.stateNode=$,M7(B))}return R2(B),null;case 5:if(a(B),Z=B.type,$!==null&&B.stateNode!=null)$.memoizedProps!==Y&&M7(B);else{if(!Y){if(B.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return R2(B),null}var z=e();if(y3(B))oz(B,z);else{switch(G=G2(G5.current),tB(Z,z.ancestorInfo),z=z.context,G=O8(G),z){case C6:G=G.createElementNS(t3,Z);break;case IB:G=G.createElementNS(x8,Z);break;default:switch(Z){case"svg":G=G.createElementNS(t3,Z);break;case"math":G=G.createElementNS(x8,Z);break;case"script":G=G.createElement("div"),G.innerHTML="<script></script>",G=G.removeChild(G.firstChild);break;case"select":G=typeof Y.is==="string"?G.createElement("select",{is:Y.is}):G.createElement("select"),Y.multiple?G.multiple=!0:Y.size&&(G.size=Y.size);break;default:G=typeof Y.is==="string"?G.createElement(Z,{is:Y.is}):G.createElement(Z),Z.indexOf("-")===-1&&(Z!==Z.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",Z),Object.prototype.toString.call(G)!=="[object HTMLUnknownElement]"||C4.call(QQ,Z)||(QQ[Z]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",Z)))}}G[Q1]=B,G[F1]=Y;$:for(z=B.child;z!==null;){if(z.tag===5||z.tag===6)G.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===B)break $;for(;z.sibling===null;){if(z.return===null||z.return===B)break $;z=z.return}z.sibling.return=z.return,z=z.sibling}B.stateNode=G;$:switch(H1(G,Z,Y),Z){case"button":case"input":case"select":case"textarea":Y=!!Y.autoFocus;break $;case"img":Y=!0;break $;default:Y=!1}Y&&M7(B)}}return R2(B),LY(B,B.type,$===null?null:$.memoizedProps,B.pendingProps,X),null;case 6:if($&&B.stateNode!=null)$.memoizedProps!==Y&&M7(B);else{if(typeof Y!=="string"&&B.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if($=G2(G5.current),X=e(),y3(B)){if($=B.stateNode,X=B.memoizedProps,Z=!v7,Y=null,G=L1,G!==null)switch(G.tag){case 3:Z&&(Z=Av($,X,Y),Z!==null&&(d5(B,0).serverProps=Z));break;case 27:case 5:Y=G.memoizedProps,Z&&(Z=Av($,X,Y),Z!==null&&(d5(B,0).serverProps=Z))}$[Q1]=B,$=$.nodeValue===X||Y!==null&&Y.suppressHydrationWarning===!0||vv($.nodeValue,X)?!0:!1,$||a7(B,!0)}else Z=X.ancestorInfo.current,Z!=null&&F9(Y,Z.tag,X.ancestorInfo.implicitRootScope),$=O8($).createTextNode(Y),$[Q1]=B,B.stateNode=$}return R2(B),null;case 31:if(X=B.memoizedState,$===null||$.memoizedState!==null){if(Y=y3(B),X!==null){if($===null){if(!Y)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if($=B.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");$[Q1]=B,R2(B),(B.mode&k0)!==A0&&X!==null&&($=B.child,$!==null&&(B.treeBaseDuration-=$.treeBaseDuration))}else qX(),p5(),(B.flags&128)===0&&(X=B.memoizedState=null),B.flags|=4,R2(B),(B.mode&k0)!==A0&&X!==null&&($=B.child,$!==null&&(B.treeBaseDuration-=$.treeBaseDuration));$=!1}else X=LX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=X),$=!0;if(!$){if(B.flags&256)return s1(B),B;return s1(B),null}if((B.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return R2(B),null;case 13:if(Y=B.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(Z=Y,G=y3(B),Z!==null&&Z.dehydrated!==null){if($===null){if(!G)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(G=B.memoizedState,G=G!==null?G.dehydrated:null,!G)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");G[Q1]=B,R2(B),(B.mode&k0)!==A0&&Z!==null&&(Z=B.child,Z!==null&&(B.treeBaseDuration-=Z.treeBaseDuration))}else qX(),p5(),(B.flags&128)===0&&(Z=B.memoizedState=null),B.flags|=4,R2(B),(B.mode&k0)!==A0&&Z!==null&&(Z=B.child,Z!==null&&(B.treeBaseDuration-=Z.treeBaseDuration));Z=!1}else Z=LX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=Z),Z=!0;if(!Z){if(B.flags&256)return s1(B),B;return s1(B),null}}if(s1(B),(B.flags&128)!==0)return B.lanes=X,(B.mode&k0)!==A0&&o6(B),B;return X=Y!==null,$=$!==null&&$.memoizedState!==null,X&&(Y=B.child,Z=null,Y.alternate!==null&&Y.alternate.memoizedState!==null&&Y.alternate.memoizedState.cachePool!==null&&(Z=Y.alternate.memoizedState.cachePool.pool),G=null,Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(G=Y.memoizedState.cachePool.pool),G!==Z&&(Y.flags|=2048)),X!==$&&X&&(B.child.flags|=8192),v8(B,B.updateQueue),R2(B),(B.mode&k0)!==A0&&X&&($=B.child,$!==null&&(B.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return z0(B),$===null&&TY(B.stateNode.containerInfo),R2(B),null;case 10:return w7(B.type,B),R2(B),null;case 19:if(S0(l2,B),Y=B.memoizedState,Y===null)return R2(B),null;if(Z=(B.flags&128)!==0,G=Y.rendering,G===null)if(Z)B$(Y,!1);else{if(x2!==k7||$!==null&&($.flags&128)!==0)for($=B.child;$!==null;){if(G=o9($),G!==null){B.flags|=128,B$(Y,!1),$=G.updateQueue,B.updateQueue=$,v8(B,$),B.subtreeFlags=0,$=X;for(X=B.child;X!==null;)Ez(X,$),X=X.sibling;return M0(l2,l2.current&K6|p$,B),i0&&O7(B,Y.treeForkCount),B.child}$=$.sibling}Y.tail!==null&&G1()>LB&&(B.flags|=128,Z=!0,B$(Y,!1),B.lanes=4194304)}else{if(!Z)if($=o9(G),$!==null){if(B.flags|=128,Z=!0,$=$.updateQueue,B.updateQueue=$,v8(B,$),B$(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!G.alternate&&!i0)return R2(B),null}else 2*G1()-Y.renderingStartTime>LB&&X!==536870912&&(B.flags|=128,Z=!0,B$(Y,!1),B.lanes=4194304);Y.isBackwards?(G.sibling=B.child,B.child=G):($=Y.last,$!==null?$.sibling=G:B.child=G,Y.last=G)}if(Y.tail!==null)return $=Y.tail,Y.rendering=$,Y.tail=$.sibling,Y.renderingStartTime=G1(),$.sibling=null,X=l2.current,X=Z?X&K6|p$:X&K6,M0(l2,X,B),i0&&O7(B,Y.treeForkCount),$;return R2(B),null;case 22:case 23:return s1(B),PX(B),Y=B.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(B.flags|=8192):Y&&(B.flags|=8192),Y?(X&536870912)!==0&&(B.flags&128)===0&&(R2(B),B.subtreeFlags&6&&(B.flags|=8192)):R2(B),X=B.updateQueue,X!==null&&v8(B,X.retryQueue),X=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(X=$.memoizedState.cachePool.pool),Y=null,B.memoizedState!==null&&B.memoizedState.cachePool!==null&&(Y=B.memoizedState.cachePool.pool),Y!==X&&(B.flags|=2048),$!==null&&S0(z3,B),null;case 24:return X=null,$!==null&&(X=$.memoizedState.cache),B.memoizedState.cache!==X&&(B.flags|=2048),w7(p2,B),R2(B),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+B.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Nq($,B){switch(QX(B),B.tag){case 1:return $=B.flags,$&65536?(B.flags=$&-65537|128,(B.mode&k0)!==A0&&o6(B),B):null;case 3:return w7(p2,B),z0(B),$=B.flags,($&65536)!==0&&($&128)===0?(B.flags=$&-65537|128,B):null;case 26:case 27:case 5:return a(B),null;case 31:if(B.memoizedState!==null){if(s1(B),B.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");p5()}return $=B.flags,$&65536?(B.flags=$&-65537|128,(B.mode&k0)!==A0&&o6(B),B):null;case 13:if(s1(B),$=B.memoizedState,$!==null&&$.dehydrated!==null){if(B.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");p5()}return $=B.flags,$&65536?(B.flags=$&-65537|128,(B.mode&k0)!==A0&&o6(B),B):null;case 19:return S0(l2,B),null;case 4:return z0(B),null;case 10:return w7(B.type,B),null;case 22:case 23:return s1(B),PX(B),$!==null&&S0(z3,B),$=B.flags,$&65536?(B.flags=$&-65537|128,(B.mode&k0)!==A0&&o6(B),B):null;case 24:return w7(p2,B),null;case 25:return null;default:return null}}function GN($,B){switch(QX(B),B.tag){case 3:w7(p2,B),z0(B);break;case 26:case 27:case 5:a(B);break;case 4:z0(B);break;case 31:B.memoizedState!==null&&s1(B);break;case 13:s1(B);break;case 19:S0(l2,B);break;case 10:w7(B.type,B);break;case 22:case 23:s1(B),PX(B),$!==null&&S0(z3,B);break;case 24:w7(p2,B)}}function r4($){return($.mode&k0)!==A0}function zN($,B){r4($)?(i4(),X$(B,$),s4()):X$(B,$)}function qY($,B,X){r4($)?(i4(),j3(X,$,B),s4()):j3(X,$,B)}function X$($,B){try{var X=B.updateQueue,Y=X!==null?X.lastEffect:null;if(Y!==null){var Z=Y.next;X=Z;do{if((X.tag&$)===$&&(Y=void 0,($&b1)!==XB&&(P6=!0),Y=s(B,fK,X),($&b1)!==XB&&(P6=!1),Y!==void 0&&typeof Y!=="function")){var G=void 0;G=(X.tag&X4)!==0?"useLayoutEffect":(X.tag&b1)!==0?"useInsertionEffect":"useEffect";var z=void 0;z=Y===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Y.then==="function"?`
|
|
136
|
+
https://react.dev/link/unsafe-component-lifecycles`,U,j,M!==null?`
|
|
137
|
+
`+M:"",_!==null?`
|
|
138
|
+
`+_:"",V!==null?`
|
|
139
|
+
`+V:""))}}U=X.stateNode,M=h(J)||"Component",U.render||(J.prototype&&typeof J.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",M):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",M)),!U.getInitialState||U.getInitialState.isReactClassApproved||U.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",M),U.getDefaultProps&&!U.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",M),U.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",M),J.childContextTypes&&!uO.has(J)&&(uO.add(J),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",M)),J.contextTypes&&!mO.has(J)&&(mO.add(J),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",M)),typeof U.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",M),J.prototype&&J.prototype.isPureReactComponent&&typeof U.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",h(J)||"A pure component"),typeof U.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",M),typeof U.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",M),typeof U.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",M),typeof U.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",M),_=U.props!==q,U.props!==void 0&&_&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",M),U.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",M,M),typeof U.getSnapshotBeforeUpdate!=="function"||typeof U.componentDidUpdate==="function"||hO.has(J)||(hO.add(J),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",h(J))),typeof U.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",M),typeof U.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",M),typeof J.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",M),(_=U.state)&&(typeof _!=="object"||u5(_))&&console.error("%s.state: must be set to an object or null",M),typeof U.getChildContext==="function"&&typeof J.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",M),U=X.stateNode,U.props=q,U.state=X.memoizedState,U.refs={},TK(X),M=J.contextType,U.context=typeof M==="object"&&M!==null?K5(M):n6,U.state===q&&(M=h(J)||"Component",xO.has(M)||(xO.add(M),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",M))),X.mode&R4&&s2.recordLegacyContextWarning(X,U),s2.recordUnsafeLifecycleWarnings(X,U),U.state=X.memoizedState,M=J.getDerivedStateFromProps,typeof M==="function"&&(XW(X,J,M,q),U.state=X.memoizedState),typeof J.getDerivedStateFromProps==="function"||typeof U.getSnapshotBeforeUpdate==="function"||typeof U.UNSAFE_componentWillMount!=="function"&&typeof U.componentWillMount!=="function"||(M=U.state,typeof U.componentWillMount==="function"&&U.componentWillMount(),typeof U.UNSAFE_componentWillMount==="function"&&U.UNSAFE_componentWillMount(),M!==U.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",E(X)||"Component"),nH.enqueueReplaceState(U,U.state,null)),A3(X,q,U,W),O3(),U.state=X.memoizedState),typeof U.componentDidMount==="function"&&(X.flags|=4194308),(X.mode&n2)!==J1&&(X.flags|=134217728),U=!0}else if(Z===null){U=X.stateNode;var l=X.memoizedProps;_=o7(J,l),U.props=_;var d=U.context;V=J.contextType,M=n6,typeof V==="object"&&V!==null&&(M=K5(V)),j=J.getDerivedStateFromProps,V=typeof j==="function"||typeof U.getSnapshotBeforeUpdate==="function",l=X.pendingProps!==l,V||typeof U.UNSAFE_componentWillReceiveProps!=="function"&&typeof U.componentWillReceiveProps!=="function"||(l||d!==M)&&rM(X,U,q,M),Q7=!1;var m=X.memoizedState;U.state=m,A3(X,q,U,W),O3(),d=X.memoizedState,l||m!==d||Q7?(typeof j==="function"&&(XW(X,J,j,q),d=X.memoizedState),(_=Q7||cM(X,J,_,q,m,d,M))?(V||typeof U.UNSAFE_componentWillMount!=="function"&&typeof U.componentWillMount!=="function"||(typeof U.componentWillMount==="function"&&U.componentWillMount(),typeof U.UNSAFE_componentWillMount==="function"&&U.UNSAFE_componentWillMount()),typeof U.componentDidMount==="function"&&(X.flags|=4194308),(X.mode&n2)!==J1&&(X.flags|=134217728)):(typeof U.componentDidMount==="function"&&(X.flags|=4194308),(X.mode&n2)!==J1&&(X.flags|=134217728),X.memoizedProps=q,X.memoizedState=d),U.props=q,U.state=d,U.context=M,U=_):(typeof U.componentDidMount==="function"&&(X.flags|=4194308),(X.mode&n2)!==J1&&(X.flags|=134217728),U=!1)}else{U=X.stateNode,VK(Z,X),M=X.memoizedProps,V=o7(J,M),U.props=V,j=X.pendingProps,m=U.context,d=J.contextType,_=n6,typeof d==="object"&&d!==null&&(_=K5(d)),l=J.getDerivedStateFromProps,(d=typeof l==="function"||typeof U.getSnapshotBeforeUpdate==="function")||typeof U.UNSAFE_componentWillReceiveProps!=="function"&&typeof U.componentWillReceiveProps!=="function"||(M!==j||m!==_)&&rM(X,U,q,_),Q7=!1,m=X.memoizedState,U.state=m,A3(X,q,U,W),O3();var X0=X.memoizedState;M!==j||m!==X0||Q7||Z!==null&&Z.dependencies!==null&&G$(Z.dependencies)?(typeof l==="function"&&(XW(X,J,l,q),X0=X.memoizedState),(V=Q7||cM(X,J,V,q,m,X0,_)||Z!==null&&Z.dependencies!==null&&G$(Z.dependencies))?(d||typeof U.UNSAFE_componentWillUpdate!=="function"&&typeof U.componentWillUpdate!=="function"||(typeof U.componentWillUpdate==="function"&&U.componentWillUpdate(q,X0,_),typeof U.UNSAFE_componentWillUpdate==="function"&&U.UNSAFE_componentWillUpdate(q,X0,_)),typeof U.componentDidUpdate==="function"&&(X.flags|=4),typeof U.getSnapshotBeforeUpdate==="function"&&(X.flags|=1024)):(typeof U.componentDidUpdate!=="function"||M===Z.memoizedProps&&m===Z.memoizedState||(X.flags|=4),typeof U.getSnapshotBeforeUpdate!=="function"||M===Z.memoizedProps&&m===Z.memoizedState||(X.flags|=1024),X.memoizedProps=q,X.memoizedState=X0),U.props=q,U.state=X0,U.context=_,U=V):(typeof U.componentDidUpdate!=="function"||M===Z.memoizedProps&&m===Z.memoizedState||(X.flags|=4),typeof U.getSnapshotBeforeUpdate!=="function"||M===Z.memoizedProps&&m===Z.memoizedState||(X.flags|=1024),U=!1)}if(_=U,y$(Z,X),M=(X.flags&128)!==0,_||M){if(_=X.stateNode,h0(X),M&&typeof J.getDerivedStateFromError!=="function")J=null,S4=-1;else if(J=KO(_),X.mode&R4){X1(!0);try{KO(_)}finally{X1(!1)}}X.flags|=1,Z!==null&&M?(X.child=H8(X,Z.child,null,W),X.child=H8(X,null,J,W)):Y4(Z,X,J,W),X.memoizedState=_.state,Z=X.child}else Z=e9(Z,X,W);return W=X.stateNode,U&&W.props!==q&&(XX||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",E(X)||"a component"),XX=!0),Z}function qN(Z,X,J,q){return i7(),X.flags|=256,Y4(Z,X,J,q),X.child}function qW(Z,X){X&&X.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
140
|
+
%s.childContextTypes = ...`,X.displayName||X.name||"Component"),typeof X.getDerivedStateFromProps==="function"&&(Z=h(X)||"Unknown",cO[Z]||(console.error("%s: Function components do not support getDerivedStateFromProps.",Z),cO[Z]=!0)),typeof X.contextType==="object"&&X.contextType!==null&&(X=h(X)||"Unknown",dO[X]||(console.error("%s: Function components do not support contextType.",X),dO[X]=!0))}function GW(Z){return{baseLanes:Z,cachePool:$M()}}function KW(Z,X,J){return Z=Z!==null?Z.childLanes&~J:0,X&&(Z|=i4),Z}function GN(Z,X,J){var q,W=X.pendingProps;H(X)&&(X.flags|=128);var U=!1,M=(X.flags&128)!==0;if((q=M)||(q=Z!==null&&Z.memoizedState===null?!1:(P5.current&LQ)!==0),q&&(U=!0,X.flags&=-129),q=(X.flags&32)!==0,X.flags&=-33,Z===null){if(E1){if(U?v6(X):x6(X),(Z=$5)?(J=jR(Z,C2),J=J!==null&&J.data!==R8?J:null,J!==null&&(q={dehydrated:J,treeContext:nL(),retryLane:536870912,hydrationErrors:null},X.memoizedState=q,q=rL(J),q.return=X,X.child=q,K4=X,$5=null)):J=null,J===null)throw Y$(X,Z),E6(X);return fW(J)?X.lanes=32:X.lanes=536870912,null}var _=W.children;if(W=W.fallback,U){x6(X);var V=X.mode;return _=g$({mode:"hidden",children:_},V),W=l7(W,V,J,null),_.return=X,W.return=X,_.sibling=W,X.child=_,W=X.child,W.memoizedState=GW(J),W.childLanes=KW(Z,q,J),X.memoizedState=tH,P3(null,W)}return v6(X),WW(X,_)}var j=Z.memoizedState;if(j!==null){var l=j.dehydrated;if(l!==null){if(M)X.flags&256?(v6(X),X.flags&=-257,X=HW(Z,X,J)):X.memoizedState!==null?(x6(X),X.child=Z.child,X.flags|=128,X=null):(x6(X),_=W.fallback,V=X.mode,W=g$({mode:"visible",children:W.children},V),_=l7(_,V,J,null),_.flags|=2,W.return=X,_.return=X,W.sibling=_,X.child=W,H8(X,Z.child,null,J),W=X.child,W.memoizedState=GW(J),W.childLanes=KW(Z,q,J),X.memoizedState=tH,X=P3(null,W));else if(v6(X),oL(),(J&536870912)!==0&&m$(X),fW(l)){if(q=l.nextSibling&&l.nextSibling.dataset,q){_=q.dgst;var d=q.msg;V=q.stck;var m=q.cstck}U=d,q=_,W=V,l=m,_=U,V=l,_=_?Error(_):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),_.stack=W||"",_.digest=q,q=V===void 0?null:V,W={value:_,source:null,stack:q},typeof q==="string"&&EH.set(_,W),F3(W),X=HW(Z,X,J)}else if(E5||FZ(Z,X,J,!1),q=(J&Z.childLanes)!==0,E5||q){if(q=s1,q!==null&&(W=X5(q,J),W!==0&&W!==j.retryLane))throw j.retryLane=W,M4(Z,W),L5(q,Z,W),oH;uW(l)||u$(),X=HW(Z,X,J)}else uW(l)?(X.flags|=192,X.child=Z.child,X=null):(Z=j.treeContext,$5=Y2(l.nextSibling),K4=X,E1=!0,s6=null,g9=!1,W2=null,C2=!1,Z!==null&&sL(X,Z),X=WW(X,W.children),X.flags|=4096);return X}}if(U)return x6(X),_=W.fallback,V=X.mode,m=Z.child,l=m.sibling,W=n9(m,{mode:"hidden",children:W.children}),W.subtreeFlags=m.subtreeFlags&65011712,l!==null?_=n9(l,_):(_=l7(_,V,J,null),_.flags|=2),_.return=X,W.return=X,W.sibling=_,X.child=W,P3(null,W),W=X.child,_=Z.child.memoizedState,_===null?_=GW(J):(V=_.cachePool,V!==null?(m=j5._currentValue,V=V.parent!==m?{parent:m,pool:m}:V):V=$M(),_={baseLanes:_.baseLanes|J,cachePool:V}),W.memoizedState=_,W.childLanes=KW(Z,q,J),X.memoizedState=tH,P3(Z.child,W);return j!==null&&(J&62914560)===J&&(J&Z.lanes)!==0&&m$(X),v6(X),J=Z.child,Z=J.sibling,J=n9(J,{mode:"visible",children:W.children}),J.return=X,J.sibling=null,Z!==null&&(q=X.deletions,q===null?(X.deletions=[Z],X.flags|=16):q.push(Z)),X.child=J,X.memoizedState=null,J}function WW(Z,X){return X=g$({mode:"visible",children:X},Z.mode),X.return=Z,Z.child=X}function g$(Z,X){return Z=O(22,Z,null,X),Z.lanes=0,Z}function HW(Z,X,J){return H8(X,Z.child,null,J),Z=WW(X,X.pendingProps.children),Z.flags|=2,X.memoizedState=null,Z}function KN(Z,X,J){Z.lanes|=X;var q=Z.alternate;q!==null&&(q.lanes|=X),MK(Z.return,X,J)}function BW(Z,X,J,q,W,U){var M=Z.memoizedState;M===null?Z.memoizedState={isBackwards:X,rendering:null,renderingStartTime:0,last:q,tail:J,tailMode:W,treeForkCount:U}:(M.isBackwards=X,M.rendering=null,M.renderingStartTime=0,M.last=q,M.tail=J,M.tailMode=W,M.treeForkCount=U)}function WN(Z,X,J){var q=X.pendingProps,W=q.revealOrder,U=q.tail,M=q.children,_=P5.current;if((q=(_&LQ)!==0)?(_=_&oZ|LQ,X.flags|=128):_&=oZ,n(P5,_,X),_=W==null?"null":W,W!=="forwards"&&W!=="unstable_legacy-backwards"&&W!=="together"&&W!=="independent"&&!rO[_])if(rO[_]=!0,W==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(W==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof W==="string")switch(W.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',W,W.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',W,W.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',W)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',W);if(_=U==null?"null":U,!bY[_])if(U==null){if(W==="forwards"||W==="backwards"||W==="unstable_legacy-backwards")bY[_]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else U!=="visible"&&U!=="collapsed"&&U!=="hidden"?(bY[_]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',U)):W!=="forwards"&&W!=="backwards"&&W!=="unstable_legacy-backwards"&&(bY[_]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',U));Z:if((W==="forwards"||W==="backwards"||W==="unstable_legacy-backwards")&&M!==void 0&&M!==null&&M!==!1)if(u5(M)){for(_=0;_<M.length;_++)if(!FM(M[_],_))break Z}else if(_=c(M),typeof _==="function"){if(_=_.call(M))for(var V=_.next(),j=0;!V.done;V=_.next()){if(!FM(V.value,j))break Z;j++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',W);if(Y4(Z,X,M,J),E1?(S6(),M=ZQ):M=0,!q&&Z!==null&&(Z.flags&128)!==0)Z:for(Z=X.child;Z!==null;){if(Z.tag===13)Z.memoizedState!==null&&KN(Z,J,X);else if(Z.tag===19)KN(Z,J,X);else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===X)break Z;for(;Z.sibling===null;){if(Z.return===null||Z.return===X)break Z;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}switch(W){case"forwards":J=X.child;for(W=null;J!==null;)Z=J.alternate,Z!==null&&R$(Z)===null&&(W=J),J=J.sibling;J=W,J===null?(W=X.child,X.child=null):(W=J.sibling,J.sibling=null),BW(X,!1,W,J,U,M);break;case"backwards":case"unstable_legacy-backwards":J=null,W=X.child;for(X.child=null;W!==null;){if(Z=W.alternate,Z!==null&&R$(Z)===null){X.child=W;break}Z=W.sibling,W.sibling=J,J=W,W=Z}BW(X,!0,J,null,U,M);break;case"together":BW(X,!1,null,null,void 0,M);break;default:X.memoizedState=null}return X.child}function e9(Z,X,J){if(Z!==null&&(X.dependencies=Z.dependencies),S4=-1,Y7|=X.lanes,(J&X.childLanes)===0)if(Z!==null){if(FZ(Z,X,J,!1),(J&X.childLanes)===0)return null}else return null;if(Z!==null&&X.child!==Z.child)throw Error("Resuming work not yet implemented.");if(X.child!==null){Z=X.child,J=n9(Z,Z.pendingProps),X.child=J;for(J.return=X;Z.sibling!==null;)Z=Z.sibling,J=J.sibling=n9(Z,Z.pendingProps),J.return=X;J.sibling=null}return X.child}function UW(Z,X){if((Z.lanes&X)!==0)return!0;return Z=Z.dependencies,Z!==null&&G$(Z)?!0:!1}function JS(Z,X,J){switch(X.tag){case 3:o(X,X.stateNode.containerInfo),b6(X,j5,Z.memoizedState.cache),i7();break;case 27:case 5:e(X);break;case 4:o(X,X.stateNode.containerInfo);break;case 10:b6(X,X.type,X.memoizedProps.value);break;case 12:(J&X.childLanes)!==0&&(X.flags|=4),X.flags|=2048;var q=X.stateNode;q.effectDuration=-0,q.passiveEffectDuration=-0;break;case 31:if(X.memoizedState!==null)return X.flags|=128,CK(X),null;break;case 13:if(q=X.memoizedState,q!==null){if(q.dehydrated!==null)return v6(X),X.flags|=128,null;if((J&X.child.childLanes)!==0)return GN(Z,X,J);return v6(X),Z=e9(Z,X,J),Z!==null?Z.sibling:null}v6(X);break;case 19:var W=(Z.flags&128)!==0;if(q=(J&X.childLanes)!==0,q||(FZ(Z,X,J,!1),q=(J&X.childLanes)!==0),W){if(q)return WN(Z,X,J);X.flags|=128}if(W=X.memoizedState,W!==null&&(W.rendering=null,W.tail=null,W.lastEffect=null),n(P5,P5.current,X),q)break;else return null;case 22:return X.lanes=0,XN(Z,X,J,X.pendingProps);case 24:b6(X,j5,Z.memoizedState.cache)}return e9(Z,X,J)}function zW(Z,X,J){if(X._debugNeedsRemount&&Z!==null){J=WK(X.type,X.key,X.pendingProps,X._debugOwner||null,X.mode,X.lanes),J._debugStack=X._debugStack,J._debugTask=X._debugTask;var q=X.return;if(q===null)throw Error("Cannot swap the root fiber.");if(Z.alternate=null,X.alternate=null,J.index=X.index,J.sibling=X.sibling,J.return=X.return,J.ref=X.ref,J._debugInfo=X._debugInfo,X===q.child)q.child=J;else{var W=q.child;if(W===null)throw Error("Expected parent to have a child.");for(;W.sibling!==X;)if(W=W.sibling,W===null)throw Error("Expected to find the previous sibling.");W.sibling=J}return X=q.deletions,X===null?(q.deletions=[Z],q.flags|=16):X.push(Z),J.flags|=2,J}if(Z!==null)if(Z.memoizedProps!==X.pendingProps||X.type!==Z.type)E5=!0;else{if(!UW(Z,J)&&(X.flags&128)===0)return E5=!1,JS(Z,X,J);E5=(Z.flags&131072)!==0?!0:!1}else{if(E5=!1,q=E1)S6(),q=(X.flags&1048576)!==0;q&&(q=X.index,S6(),aL(X,ZQ,q))}switch(X.lanes=0,X.tag){case 16:Z:if(q=X.pendingProps,Z=y6(X.elementType),X.type=Z,typeof Z==="function")KK(Z)?(q=o7(Z,q),X.tag=1,X.type=Z=p7(Z),X=YN(null,X,Z,q,J)):(X.tag=0,qW(X,Z),X.type=Z=p7(Z),X=YW(null,X,Z,q,J));else{if(Z!==void 0&&Z!==null){if(W=Z.$$typeof,W===f3){X.tag=11,X.type=Z=GK(Z),X=tM(null,X,Z,q,J);break Z}else if(W===ZY){X.tag=14,X=eM(null,X,Z,q,J);break Z}}throw X="",Z!==null&&typeof Z==="object"&&Z.$$typeof===q2&&(X=" Did you wrap a component in React.lazy() more than once?"),J=h(Z)||Z,Error("Element type is invalid. Received a promise that resolves to: "+J+". Lazy element type must resolve to a class or function."+X)}return X;case 0:return YW(Z,X,X.type,X.pendingProps,J);case 1:return q=X.type,W=o7(q,X.pendingProps),YN(Z,X,q,W,J);case 3:Z:{if(o(X,X.stateNode.containerInfo),Z===null)throw Error("Should have a current fiber. This is a bug in React.");q=X.pendingProps;var U=X.memoizedState;W=U.element,VK(Z,X),A3(X,q,null,J);var M=X.memoizedState;if(q=M.cache,b6(X,j5,q),q!==U.cache&&NK(X,[j5],J,!0),O3(),q=M.element,U.isDehydrated)if(U={element:q,isDehydrated:!1,cache:M.cache},X.updateQueue.baseState=U,X.memoizedState=U,X.flags&256){X=qN(Z,X,q,J);break Z}else if(q!==W){W=Z2(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),X),F3(W),X=qN(Z,X,q,J);break Z}else{switch(Z=X.stateNode.containerInfo,Z.nodeType){case 9:Z=Z.body;break;default:Z=Z.nodeName==="HTML"?Z.ownerDocument.body:Z}$5=Y2(Z.firstChild),K4=X,E1=!0,s6=null,g9=!1,W2=null,C2=!0,J=IO(X,null,q,J);for(X.child=J;J;)J.flags=J.flags&-3|4096,J=J.sibling}else{if(i7(),q===W){X=e9(Z,X,J);break Z}Y4(Z,X,q,J)}X=X.child}return X;case 26:return y$(Z,X),Z===null?(J=gR(X.type,null,X.pendingProps,null))?X.memoizedState=J:E1||(J=X.type,Z=X.pendingProps,q=z0(l6.current),q=d$(q).createElement(J),q[G4]=X,q[C4]=Z,q4(q,J,Z),i0(q),X.stateNode=q):X.memoizedState=gR(X.type,Z.memoizedProps,X.pendingProps,Z.memoizedState),null;case 27:return e(X),Z===null&&E1&&(q=z0(l6.current),W=G0(),q=X.stateNode=bR(X.type,X.pendingProps,q,W,!1),g9||(W=OR(q,X.type,X.pendingProps,W),W!==null&&(d7(X,0).serverProps=W)),K4=X,C2=!0,W=$5,f6(X.type)?(AB=W,$5=Y2(q.firstChild)):$5=W),Y4(Z,X,X.pendingProps.children,J),y$(Z,X),Z===null&&(X.flags|=4194304),X.child;case 5:return Z===null&&E1&&(U=G0(),q=eG(X.type,U.ancestorInfo),W=$5,(M=!W)||(M=iS(W,X.type,X.pendingProps,C2),M!==null?(X.stateNode=M,g9||(U=OR(M,X.type,X.pendingProps,U),U!==null&&(d7(X,0).serverProps=U)),K4=X,$5=Y2(M.firstChild),C2=!1,U=!0):U=!1,M=!U),M&&(q&&Y$(X,W),E6(X))),e(X),W=X.type,U=X.pendingProps,M=Z!==null?Z.memoizedProps:null,q=U.children,kW(W,U)?q=null:M!==null&&kW(W,M)&&(X.flags|=32),X.memoizedState!==null&&(W=DK(Z,X,nD,null,null,J),yQ._currentValue=W),y$(Z,X),Y4(Z,X,q,J),X.child;case 6:return Z===null&&E1&&(J=X.pendingProps,Z=G0(),q=Z.ancestorInfo.current,J=q!=null?nJ(J,q.tag,Z.ancestorInfo.implicitRootScope):!0,Z=$5,(q=!Z)||(q=cS(Z,X.pendingProps,C2),q!==null?(X.stateNode=q,K4=X,$5=null,q=!0):q=!1,q=!q),q&&(J&&Y$(X,Z),E6(X))),null;case 13:return GN(Z,X,J);case 4:return o(X,X.stateNode.containerInfo),q=X.pendingProps,Z===null?X.child=H8(X,null,q,J):Y4(Z,X,q,J),X.child;case 11:return tM(Z,X,X.type,X.pendingProps,J);case 7:return Y4(Z,X,X.pendingProps,J),X.child;case 8:return Y4(Z,X,X.pendingProps.children,J),X.child;case 12:return X.flags|=4,X.flags|=2048,q=X.stateNode,q.effectDuration=-0,q.passiveEffectDuration=-0,Y4(Z,X,X.pendingProps.children,J),X.child;case 10:return q=X.type,W=X.pendingProps,U=W.value,"value"in W||aO||(aO=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),b6(X,q,U),Y4(Z,X,W.children,J),X.child;case 9:return W=X.type._context,q=X.pendingProps.children,typeof q!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),c7(X),W=K5(W),q=mH(q,W,void 0),X.flags|=1,Y4(Z,X,q,J),X.child;case 14:return eM(Z,X,X.type,X.pendingProps,J);case 15:return ZN(Z,X,X.type,X.pendingProps,J);case 19:return WN(Z,X,J);case 31:return QS(Z,X,J);case 22:return XN(Z,X,J,X.pendingProps);case 24:return c7(X),q=K5(j5),Z===null?(W=AK(),W===null&&(W=s1,U=RK(),W.pooledCache=U,r7(U),U!==null&&(W.pooledCacheLanes|=J),W=U),X.memoizedState={parent:q,cache:W},TK(X),b6(X,j5,W)):((Z.lanes&J)!==0&&(VK(Z,X),A3(X,null,null,J),O3()),W=Z.memoizedState,U=X.memoizedState,W.parent!==q?(W={parent:q,cache:q},X.memoizedState=W,X.lanes===0&&(X.memoizedState=X.updateQueue.baseState=W),b6(X,j5,q)):(q=U.cache,b6(X,j5,q),q!==W.cache&&NK(X,[j5],J,!0))),Y4(Z,X,X.pendingProps.children,J),X.child;case 29:throw X.pendingProps}throw Error("Unknown unit of work tag ("+X.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Z6(Z){Z.flags|=4}function FW(Z,X,J,q,W){if(X=(Z.mode&Tb)!==J1)X=!1;if(X){if(Z.flags|=16777216,(W&335544128)===W)if(Z.stateNode.complete)Z.flags|=8192;else if(pN())Z.flags|=8192;else throw W8=wY,fH}else Z.flags&=-16777217}function HN(Z,X){if(X.type!=="stylesheet"||(X.state.loading&b2)!==A8)Z.flags&=-16777217;else if(Z.flags|=16777216,!mR(X))if(pN())Z.flags|=8192;else throw W8=wY,fH}function h$(Z,X){X!==null&&(Z.flags|=4),Z.flags&16384&&(X=Z.tag!==22?K0():536870912,Z.lanes|=X,L8|=X)}function w3(Z,X){if(!E1)switch(Z.tailMode){case"hidden":X=Z.tail;for(var J=null;X!==null;)X.alternate!==null&&(J=X),X=X.sibling;J===null?Z.tail=null:J.sibling=null;break;case"collapsed":J=Z.tail;for(var q=null;J!==null;)J.alternate!==null&&(q=J),J=J.sibling;q===null?X||Z.tail===null?Z.tail=null:Z.tail.sibling=null:q.sibling=null}}function t1(Z){var X=Z.alternate!==null&&Z.alternate.child===Z.child,J=0,q=0;if(X)if((Z.mode&N1)!==J1){for(var{selfBaseDuration:W,child:U}=Z;U!==null;)J|=U.lanes|U.childLanes,q|=U.subtreeFlags&65011712,q|=U.flags&65011712,W+=U.treeBaseDuration,U=U.sibling;Z.treeBaseDuration=W}else for(W=Z.child;W!==null;)J|=W.lanes|W.childLanes,q|=W.subtreeFlags&65011712,q|=W.flags&65011712,W.return=Z,W=W.sibling;else if((Z.mode&N1)!==J1){W=Z.actualDuration,U=Z.selfBaseDuration;for(var M=Z.child;M!==null;)J|=M.lanes|M.childLanes,q|=M.subtreeFlags,q|=M.flags,W+=M.actualDuration,U+=M.treeBaseDuration,M=M.sibling;Z.actualDuration=W,Z.treeBaseDuration=U}else for(W=Z.child;W!==null;)J|=W.lanes|W.childLanes,q|=W.subtreeFlags,q|=W.flags,W.return=Z,W=W.sibling;return Z.subtreeFlags|=q,Z.childLanes=J,X}function $S(Z,X,J){var q=X.pendingProps;switch(zK(X),X.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return t1(X),null;case 1:return t1(X),null;case 3:if(J=X.stateNode,q=null,Z!==null&&(q=Z.memoizedState.cache),X.memoizedState.cache!==q&&(X.flags|=2048),o9(j5,X),H0(X),J.pendingContext&&(J.context=J.pendingContext,J.pendingContext=null),Z===null||Z.child===null)zZ(X)?(LK(),Z6(X)):Z===null||Z.memoizedState.isDehydrated&&(X.flags&256)===0||(X.flags|=1024,FK());return t1(X),null;case 26:var{type:W,memoizedState:U}=X;return Z===null?(Z6(X),U!==null?(t1(X),HN(X,U)):(t1(X),FW(X,W,null,q,J))):U?U!==Z.memoizedState?(Z6(X),t1(X),HN(X,U)):(t1(X),X.flags&=-16777217):(Z=Z.memoizedProps,Z!==q&&Z6(X),t1(X),FW(X,W,Z,q,J)),null;case 27:if(U0(X),J=z0(l6.current),W=X.type,Z!==null&&X.stateNode!=null)Z.memoizedProps!==q&&Z6(X);else{if(!q){if(X.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return t1(X),null}Z=G0(),zZ(X)?tL(X,Z):(Z=bR(W,q,J,Z,!0),X.stateNode=Z,Z6(X))}return t1(X),null;case 5:if(U0(X),W=X.type,Z!==null&&X.stateNode!=null)Z.memoizedProps!==q&&Z6(X);else{if(!q){if(X.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return t1(X),null}var M=G0();if(zZ(X))tL(X,M);else{switch(U=z0(l6.current),eG(W,M.ancestorInfo),M=M.context,U=d$(U),M){case WX:U=U.createElementNS(yZ,W);break;case tY:U=U.createElementNS(GY,W);break;default:switch(W){case"svg":U=U.createElementNS(yZ,W);break;case"math":U=U.createElementNS(GY,W);break;case"script":U=U.createElement("div"),U.innerHTML="<script></script>",U=U.removeChild(U.firstChild);break;case"select":U=typeof q.is==="string"?U.createElement("select",{is:q.is}):U.createElement("select"),q.multiple?U.multiple=!0:q.size&&(U.size=q.size);break;default:U=typeof q.is==="string"?U.createElement(W,{is:q.is}):U.createElement(W),W.indexOf("-")===-1&&(W!==W.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",W),Object.prototype.toString.call(U)!=="[object HTMLUnknownElement]"||r2.call(RA,W)||(RA[W]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",W)))}}U[G4]=X,U[C4]=q;Z:for(M=X.child;M!==null;){if(M.tag===5||M.tag===6)U.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===X)break Z;for(;M.sibling===null;){if(M.return===null||M.return===X)break Z;M=M.return}M.sibling.return=M.return,M=M.sibling}X.stateNode=U;Z:switch(q4(U,W,q),W){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break Z;case"img":q=!0;break Z;default:q=!1}q&&Z6(X)}}return t1(X),FW(X,X.type,Z===null?null:Z.memoizedProps,X.pendingProps,J),null;case 6:if(Z&&X.stateNode!=null)Z.memoizedProps!==q&&Z6(X);else{if(typeof q!=="string"&&X.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(Z=z0(l6.current),J=G0(),zZ(X)){if(Z=X.stateNode,J=X.memoizedProps,W=!g9,q=null,U=K4,U!==null)switch(U.tag){case 3:W&&(W=SR(Z,J,q),W!==null&&(d7(X,0).serverProps=W));break;case 27:case 5:q=U.memoizedProps,W&&(W=SR(Z,J,q),W!==null&&(d7(X,0).serverProps=W))}Z[G4]=X,Z=Z.nodeValue===J||q!==null&&q.suppressHydrationWarning===!0||LR(Z.nodeValue,J)?!0:!1,Z||E6(X,!0)}else W=J.ancestorInfo.current,W!=null&&nJ(q,W.tag,J.ancestorInfo.implicitRootScope),Z=d$(Z).createTextNode(q),Z[G4]=X,X.stateNode=Z}return t1(X),null;case 31:if(J=X.memoizedState,Z===null||Z.memoizedState!==null){if(q=zZ(X),J!==null){if(Z===null){if(!q)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(Z=X.memoizedState,Z=Z!==null?Z.dehydrated:null,!Z)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");Z[G4]=X,t1(X),(X.mode&N1)!==J1&&J!==null&&(Z=X.child,Z!==null&&(X.treeBaseDuration-=Z.treeBaseDuration))}else LK(),i7(),(X.flags&128)===0&&(J=X.memoizedState=null),X.flags|=4,t1(X),(X.mode&N1)!==J1&&J!==null&&(Z=X.child,Z!==null&&(X.treeBaseDuration-=Z.treeBaseDuration));Z=!1}else J=FK(),Z!==null&&Z.memoizedState!==null&&(Z.memoizedState.hydrationErrors=J),Z=!0;if(!Z){if(X.flags&256)return J2(X),X;return J2(X),null}if((X.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return t1(X),null;case 13:if(q=X.memoizedState,Z===null||Z.memoizedState!==null&&Z.memoizedState.dehydrated!==null){if(W=q,U=zZ(X),W!==null&&W.dehydrated!==null){if(Z===null){if(!U)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(U=X.memoizedState,U=U!==null?U.dehydrated:null,!U)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");U[G4]=X,t1(X),(X.mode&N1)!==J1&&W!==null&&(W=X.child,W!==null&&(X.treeBaseDuration-=W.treeBaseDuration))}else LK(),i7(),(X.flags&128)===0&&(W=X.memoizedState=null),X.flags|=4,t1(X),(X.mode&N1)!==J1&&W!==null&&(W=X.child,W!==null&&(X.treeBaseDuration-=W.treeBaseDuration));W=!1}else W=FK(),Z!==null&&Z.memoizedState!==null&&(Z.memoizedState.hydrationErrors=W),W=!0;if(!W){if(X.flags&256)return J2(X),X;return J2(X),null}}if(J2(X),(X.flags&128)!==0)return X.lanes=J,(X.mode&N1)!==J1&&N3(X),X;return J=q!==null,Z=Z!==null&&Z.memoizedState!==null,J&&(q=X.child,W=null,q.alternate!==null&&q.alternate.memoizedState!==null&&q.alternate.memoizedState.cachePool!==null&&(W=q.alternate.memoizedState.cachePool.pool),U=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(U=q.memoizedState.cachePool.pool),U!==W&&(q.flags|=2048)),J!==Z&&J&&(X.child.flags|=8192),h$(X,X.updateQueue),t1(X),(X.mode&N1)!==J1&&J&&(Z=X.child,Z!==null&&(X.treeBaseDuration-=Z.treeBaseDuration)),null;case 4:return H0(X),Z===null&&EW(X.stateNode.containerInfo),t1(X),null;case 10:return o9(X.type,X),t1(X),null;case 19:if(t(P5,X),q=X.memoizedState,q===null)return t1(X),null;if(W=(X.flags&128)!==0,U=q.rendering,U===null)if(W)w3(q,!1);else{if(z5!==L6||Z!==null&&(Z.flags&128)!==0)for(Z=X.child;Z!==null;){if(U=R$(Z),U!==null){X.flags|=128,w3(q,!1),Z=U.updateQueue,X.updateQueue=Z,h$(X,Z),X.subtreeFlags=0,Z=J;for(J=X.child;J!==null;)cL(J,Z),J=J.sibling;return n(P5,P5.current&oZ|LQ,X),E1&&s9(X,q.treeForkCount),X.child}Z=Z.sibling}q.tail!==null&&o5()>mY&&(X.flags|=128,W=!0,w3(q,!1),X.lanes=4194304)}else{if(!W)if(Z=R$(U),Z!==null){if(X.flags|=128,W=!0,Z=Z.updateQueue,X.updateQueue=Z,h$(X,Z),w3(q,!0),q.tail===null&&q.tailMode==="hidden"&&!U.alternate&&!E1)return t1(X),null}else 2*o5()-q.renderingStartTime>mY&&J!==536870912&&(X.flags|=128,W=!0,w3(q,!1),X.lanes=4194304);q.isBackwards?(U.sibling=X.child,X.child=U):(Z=q.last,Z!==null?Z.sibling=U:X.child=U,q.last=U)}if(q.tail!==null)return Z=q.tail,q.rendering=Z,q.tail=Z.sibling,q.renderingStartTime=o5(),Z.sibling=null,J=P5.current,J=W?J&oZ|LQ:J&oZ,n(P5,J,X),E1&&s9(X,q.treeForkCount),Z;return t1(X),null;case 22:case 23:return J2(X),wK(X),q=X.memoizedState!==null,Z!==null?Z.memoizedState!==null!==q&&(X.flags|=8192):q&&(X.flags|=8192),q?(J&536870912)!==0&&(X.flags&128)===0&&(t1(X),X.subtreeFlags&6&&(X.flags|=8192)):t1(X),J=X.updateQueue,J!==null&&h$(X,J.retryQueue),J=null,Z!==null&&Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(J=Z.memoizedState.cachePool.pool),q=null,X.memoizedState!==null&&X.memoizedState.cachePool!==null&&(q=X.memoizedState.cachePool.pool),q!==J&&(X.flags|=2048),Z!==null&&t(G8,X),null;case 24:return J=null,Z!==null&&(J=Z.memoizedState.cache),X.memoizedState.cache!==J&&(X.flags|=2048),o9(j5,X),t1(X),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+X.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function YS(Z,X){switch(zK(X),X.tag){case 1:return Z=X.flags,Z&65536?(X.flags=Z&-65537|128,(X.mode&N1)!==J1&&N3(X),X):null;case 3:return o9(j5,X),H0(X),Z=X.flags,(Z&65536)!==0&&(Z&128)===0?(X.flags=Z&-65537|128,X):null;case 26:case 27:case 5:return U0(X),null;case 31:if(X.memoizedState!==null){if(J2(X),X.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");i7()}return Z=X.flags,Z&65536?(X.flags=Z&-65537|128,(X.mode&N1)!==J1&&N3(X),X):null;case 13:if(J2(X),Z=X.memoizedState,Z!==null&&Z.dehydrated!==null){if(X.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");i7()}return Z=X.flags,Z&65536?(X.flags=Z&-65537|128,(X.mode&N1)!==J1&&N3(X),X):null;case 19:return t(P5,X),null;case 4:return H0(X),null;case 10:return o9(X.type,X),null;case 22:case 23:return J2(X),wK(X),Z!==null&&t(G8,X),Z=X.flags,Z&65536?(X.flags=Z&-65537|128,(X.mode&N1)!==J1&&N3(X),X):null;case 24:return o9(j5,X),null;case 25:return null;default:return null}}function BN(Z,X){switch(zK(X),X.tag){case 3:o9(j5,X),H0(X);break;case 26:case 27:case 5:U0(X);break;case 4:H0(X);break;case 31:X.memoizedState!==null&&J2(X);break;case 13:J2(X);break;case 19:t(P5,X);break;case 10:o9(X.type,X);break;case 22:case 23:J2(X),wK(X),Z!==null&&t(G8,X);break;case 24:o9(j5,X)}}function A9(Z){return(Z.mode&N1)!==J1}function UN(Z,X){A9(Z)?(O9(),C3(X,Z),_9()):C3(X,Z)}function LW(Z,X,J){A9(Z)?(O9(),_Z(J,Z,X),_9()):_Z(J,Z,X)}function C3(Z,X){try{var J=X.updateQueue,q=J!==null?J.lastEffect:null;if(q!==null){var W=q.next;J=W;do{if((J.tag&Z)===Z&&(q=void 0,(Z&E4)!==jY&&(qX=!0),q=R0(X,jb,J),(Z&E4)!==jY&&(qX=!1),q!==void 0&&typeof q!=="function")){var U=void 0;U=(J.tag&B2)!==0?"useLayoutEffect":(J.tag&E4)!==0?"useInsertionEffect":"useEffect";var M=void 0;M=q===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof q.then==="function"?`
|
|
141
141
|
|
|
142
|
-
It looks like you wrote `+
|
|
142
|
+
It looks like you wrote `+U+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
143
143
|
|
|
144
|
-
`+
|
|
144
|
+
`+U+`(() => {
|
|
145
145
|
async function fetchData() {
|
|
146
146
|
// You can await here
|
|
147
147
|
const response = await MyAPI.getData(someId);
|
|
@@ -150,11 +150,11 @@ It looks like you wrote `+G+`(async () => ...) or returned a Promise. Instead, w
|
|
|
150
150
|
fetchData();
|
|
151
151
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
152
152
|
|
|
153
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+Y,s(B,function(W,J){console.error("%s must not return anything besides a function, which is used for clean-up.%s",W,J)},G,z)}X=X.next}while(X!==Z)}}catch(W){H2(B,B.return,W)}}function j3($,B,X){try{var Y=B.updateQueue,Z=Y!==null?Y.lastEffect:null;if(Z!==null){var G=Z.next;Y=G;do{if((Y.tag&$)===$){var z=Y.inst,W=z.destroy;W!==void 0&&(z.destroy=void 0,($&b1)!==XB&&(P6=!0),Z=B,s(Z,yK,Z,X,W),($&b1)!==XB&&(P6=!1))}Y=Y.next}while(Y!==G)}}catch(J){H2(B,B.return,J)}}function WN($,B){r4($)?(i4(),X$(B,$),s4()):X$(B,$)}function gY($,B,X){r4($)?(i4(),j3(X,$,B),s4()):j3(X,$,B)}function NN($){var B=$.updateQueue;if(B!==null){var X=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||R6||(X.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",i($)||"instance"),X.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",i($)||"instance"));try{s($,JW,B,X)}catch(Y){H2($,$.return,Y)}}}function vq($,B,X){return $.getSnapshotBeforeUpdate(B,X)}function Jq($,B){var{memoizedProps:X,memoizedState:Y}=B;B=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||R6||(B.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",i($)||"instance"),B.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",i($)||"instance"));try{var Z=r5($.type,X),G=s($,vq,B,Z,Y);X=dH,G!==void 0||X.has($.type)||(X.add($.type),s($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",i($))})),B.__reactInternalSnapshotBeforeUpdate=G}catch(z){H2($,$.return,z)}}function vN($,B,X){X.props=r5($.type,$.memoizedProps),X.state=$.memoizedState,r4($)?(i4(),s($,NH,$,B,X),s4()):s($,NH,$,B,X)}function Hq($){var B=$.ref;if(B!==null){switch($.tag){case 26:case 27:case 5:var X=$.stateNode;break;case 30:X=$.stateNode;break;default:X=$.stateNode}if(typeof B==="function")if(r4($))try{i4(),$.refCleanup=B(X)}finally{s4()}else $.refCleanup=B(X);else typeof B==="string"?console.error("String refs are no longer supported."):B.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",i($)),B.current=X}}function Y$($,B){try{s($,Hq,$)}catch(X){H2($,B,X)}}function n4($,B){var{ref:X,refCleanup:Y}=$;if(X!==null)if(typeof Y==="function")try{if(r4($))try{i4(),s($,Y)}finally{s4($)}else s($,Y)}catch(Z){H2($,B,Z)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof X==="function")try{if(r4($))try{i4(),s($,X,null)}finally{s4($)}else s($,X,null)}catch(Z){H2($,B,Z)}else X.current=null}function JN($,B,X,Y){var Z=$.memoizedProps,G=Z.id,z=Z.onCommit;Z=Z.onRender,B=B===null?"mount":"update",r8&&(B="nested-update"),typeof Z==="function"&&Z(G,B,$.actualDuration,$.treeBaseDuration,$.actualStartTime,X),typeof z==="function"&&z(G,B,Y,X)}function Qq($,B,X,Y){var Z=$.memoizedProps;$=Z.id,Z=Z.onPostCommit,B=B===null?"mount":"update",r8&&(B="nested-update"),typeof Z==="function"&&Z($,B,Y,X)}function HN($){var{type:B,memoizedProps:X,stateNode:Y}=$;try{s($,hq,Y,B,X,$)}catch(Z){H2($,$.return,Z)}}function KY($,B,X){try{s($,jq,$.stateNode,$.type,X,B,$)}catch(Y){H2($,$.return,Y)}}function QN($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&Y5($.type)||$.tag===4}function UY($){$:for(;;){for(;$.sibling===null;){if($.return===null||QN($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&Y5($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function OY($,B,X){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,B?(wv(X),(X.nodeType===9?X.body:X.nodeName==="HTML"?X.ownerDocument.body:X).insertBefore($,B)):(wv(X),B=X.nodeType===9?X.body:X.nodeName==="HTML"?X.ownerDocument.body:X,B.appendChild($),X=X._reactRootContainer,X!==null&&X!==void 0||B.onclick!==null||(B.onclick=K7));else if(Y!==4&&(Y===27&&Y5($.type)&&(X=$.stateNode,B=null),$=$.child,$!==null))for(OY($,B,X),$=$.sibling;$!==null;)OY($,B,X),$=$.sibling}function J8($,B,X){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,B?X.insertBefore($,B):X.appendChild($);else if(Y!==4&&(Y===27&&Y5($.type)&&(X=$.stateNode),$=$.child,$!==null))for(J8($,B,X),$=$.sibling;$!==null;)J8($,B,X),$=$.sibling}function Lq($){for(var B,X=$.return;X!==null;){if(QN(X)){B=X;break}X=X.return}if(B==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(B.tag){case 27:B=B.stateNode,X=UY($),J8($,X,B);break;case 5:X=B.stateNode,B.flags&32&&(Ov(X),B.flags&=-33),B=UY($),J8($,B,X);break;case 3:case 4:B=B.stateNode.containerInfo,X=UY($),OY($,X,B);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function LN($){var{stateNode:B,memoizedProps:X}=$;try{s($,$g,$.type,X,B,$)}catch(Y){H2($,$.return,Y)}}function qN($,B){return B.tag===31?(B=B.memoizedState,$.memoizedState!==null&&B===null):B.tag===13?($=$.memoizedState,B=B.memoizedState,$!==null&&$.dehydrated!==null&&(B===null||B.dehydrated===null)):B.tag===3?$.memoizedState.isDehydrated&&(B.flags&256)===0:!1}function qq($,B){if($=$.containerInfo,UG=TB,$=Tz($),BX($)){if("selectionStart"in $)var X={start:$.selectionStart,end:$.selectionEnd};else $:{X=(X=$.ownerDocument)&&X.defaultView||window;var Y=X.getSelection&&X.getSelection();if(Y&&Y.rangeCount!==0){X=Y.anchorNode;var{anchorOffset:Z,focusNode:G}=Y;Y=Y.focusOffset;try{X.nodeType,G.nodeType}catch(r){X=null;break $}var z=0,W=-1,J=-1,Q=0,A=0,P=$,O=null;B:for(;;){for(var f;;){if(P!==X||Z!==0&&P.nodeType!==3||(W=z+Z),P!==G||Y!==0&&P.nodeType!==3||(J=z+Y),P.nodeType===3&&(z+=P.nodeValue.length),(f=P.firstChild)===null)break;O=P,P=f}for(;;){if(P===$)break B;if(O===X&&++Q===Z&&(W=z),O===G&&++A===Y&&(J=z),(f=P.nextSibling)!==null)break;P=O,O=P.parentNode}P=f}X=W===-1||J===-1?null:{start:W,end:J}}else X=null}X=X||{start:0,end:0}}else X=null;OG={focusedElem:$,selectionRange:X},TB=!1;for(W1=B;W1!==null;)if(B=W1,$=B.child,(B.subtreeFlags&1028)!==0&&$!==null)$.return=B,W1=$;else for(;W1!==null;){switch($=B=W1,X=$.alternate,Z=$.flags,$.tag){case 0:if((Z&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(X=0;X<$.length;X++)Z=$[X],Z.ref.impl=Z.nextImpl;break;case 11:case 15:break;case 1:(Z&1024)!==0&&X!==null&&Jq($,X);break;case 3:if((Z&1024)!==0){if($=$.stateNode.containerInfo,X=$.nodeType,X===9)jY($);else if(X===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":jY($);break;default:$.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((Z&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if($=B.sibling,$!==null){$.return=B.return,W1=$;break}W1=B.return}}function gN($,B,X){var Y=o1(),Z=p4(),G=o4(),z=a4(),W=X.flags;switch(X.tag){case 0:case 11:case 15:t4($,X),W&4&&zN(X,X4|w4);break;case 1:if(t4($,X),W&4)if($=X.stateNode,B===null)X.type.defaultProps||"ref"in X.memoizedProps||R6||($.props!==X.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",i(X)||"instance"),$.state!==X.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",i(X)||"instance")),r4(X)?(i4(),s(X,VZ,X,$),s4()):s(X,VZ,X,$);else{var J=r5(X.type,B.memoizedProps);B=B.memoizedState,X.type.defaultProps||"ref"in X.memoizedProps||R6||($.props!==X.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",i(X)||"instance"),$.state!==X.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",i(X)||"instance")),r4(X)?(i4(),s(X,GH,X,$,J,B,$.__reactInternalSnapshotBeforeUpdate),s4()):s(X,GH,X,$,J,B,$.__reactInternalSnapshotBeforeUpdate)}W&64&&NN(X),W&512&&Y$(X,X.return);break;case 3:if(B=R7(),t4($,X),W&64&&(W=X.updateQueue,W!==null)){if(J=null,X.child!==null)switch(X.child.tag){case 27:case 5:J=X.child.stateNode;break;case 1:J=X.child.stateNode}try{s(X,JW,W,J)}catch(A){H2(X,X.return,A)}}$.effectDuration+=k9(B);break;case 27:B===null&&W&4&&LN(X);case 26:case 5:if(t4($,X),B===null){if(W&4)HN(X);else if(W&64){$=X.type,B=X.memoizedProps,J=X.stateNode;try{s(X,kq,J,$,B,X)}catch(A){H2(X,X.return,A)}}}W&512&&Y$(X,X.return);break;case 12:if(W&4){W=R7(),t4($,X),$=X.stateNode,$.effectDuration+=c6(W);try{s(X,JN,X,B,L5,$.effectDuration)}catch(A){H2(X,X.return,A)}}else t4($,X);break;case 31:t4($,X),W&4&&ON($,X);break;case 13:t4($,X),W&4&&wN($,X),W&64&&($=X.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(W=Fq.bind(null,X),rq($,W))));break;case 22:if(W=X.memoizedState!==null||h7,!W){B=B!==null&&B.memoizedState!==null||s2,J=h7;var Q=s2;h7=W,(s2=B)&&!Q?(e4($,X,(X.subtreeFlags&8772)!==0),(X.mode&k0)!==A0&&0<=g0&&0<=O0&&0.05<O0-g0&&b9(X,g0,O0)):t4($,X),h7=J,s2=Q}break;case 30:break;default:t4($,X)}(X.mode&k0)!==A0&&0<=g0&&0<=O0&&((j2||0.05<u2)&&l4(X,g0,O0,u2,T2),X.alternate===null&&X.return!==null&&X.return.alternate!==null&&0.05<O0-g0&&(qN(X.return.alternate,X.return)||D4(X,g0,O0,"Mount"))),a1(Y),c4(Z),T2=G,j2=z}function KN($){var B=$.alternate;B!==null&&($.alternate=null,KN(B)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(B=$.stateNode,B!==null&&o(B)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function F7($,B,X){for(X=X.child;X!==null;)UN($,B,X),X=X.sibling}function UN($,B,X){if(U1&&typeof U1.onCommitFiberUnmount==="function")try{U1.onCommitFiberUnmount(r3,X)}catch(Q){G7||(G7=!0,console.error("React instrumentation encountered an error: %o",Q))}var Y=o1(),Z=p4(),G=o4(),z=a4();switch(X.tag){case 26:s2||n4(X,B),F7($,B,X),X.memoizedState?X.memoizedState.count--:X.stateNode&&($=X.stateNode,$.parentNode.removeChild($));break;case 27:s2||n4(X,B);var W=i2,J=j1;Y5(X.type)&&(i2=X.stateNode,j1=!1),F7($,B,X),s(X,Q$,X.stateNode),i2=W,j1=J;break;case 5:s2||n4(X,B);case 6:if(W=i2,J=j1,i2=null,F7($,B,X),i2=W,j1=J,i2!==null)if(j1)try{s(X,Dq,i2,X.stateNode)}catch(Q){H2(X,B,Q)}else try{s(X,Eq,i2,X.stateNode)}catch(Q){H2(X,B,Q)}break;case 18:i2!==null&&(j1?($=i2,Rv($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,X.stateNode),o3($)):Rv(i2,X.stateNode));break;case 4:W=i2,J=j1,i2=X.stateNode.containerInfo,j1=!0,F7($,B,X),i2=W,j1=J;break;case 0:case 11:case 14:case 15:j3(b1,X,B),s2||qY(X,B,X4),F7($,B,X);break;case 1:s2||(n4(X,B),W=X.stateNode,typeof W.componentWillUnmount==="function"&&vN(X,B,W)),F7($,B,X);break;case 21:F7($,B,X);break;case 22:s2=(W=s2)||X.memoizedState!==null,F7($,B,X),s2=W;break;default:F7($,B,X)}(X.mode&k0)!==A0&&0<=g0&&0<=O0&&(j2||0.05<u2)&&l4(X,g0,O0,u2,T2),a1(Y),c4(Z),T2=G,j2=z}function ON($,B){if(B.memoizedState===null&&($=B.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{s(B,tq,$)}catch(X){H2(B,B.return,X)}}}function wN($,B){if(B.memoizedState===null&&($=B.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{s(B,eq,$)}catch(X){H2(B,B.return,X)}}function gq($){switch($.tag){case 31:case 13:case 19:var B=$.stateNode;return B===null&&(B=$.stateNode=new pH),B;case 22:return $=$.stateNode,B=$._retryCache,B===null&&(B=$._retryCache=new pH),B;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function H8($,B){var X=gq($);B.forEach(function(Y){if(!X.has(Y)){if(X.add(Y),z7)if(_6!==null&&M6!==null)W$(M6,_6);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var Z=Aq.bind(null,$,Y);Y.then(Z,Z)}})}function h1($,B){var X=B.deletions;if(X!==null)for(var Y=0;Y<X.length;Y++){var Z=$,G=B,z=X[Y],W=o1(),J=G;$:for(;J!==null;){switch(J.tag){case 27:if(Y5(J.type)){i2=J.stateNode,j1=!1;break $}break;case 5:i2=J.stateNode,j1=!1;break $;case 3:case 4:i2=J.stateNode.containerInfo,j1=!0;break $}J=J.return}if(i2===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");UN(Z,G,z),i2=null,j1=!1,(z.mode&k0)!==A0&&0<=g0&&0<=O0&&0.05<O0-g0&&D4(z,g0,O0,"Unmount"),a1(W),Z=z,G=Z.alternate,G!==null&&(G.return=null),Z.return=null}if(B.subtreeFlags&13886)for(B=B.child;B!==null;)RN(B,$),B=B.sibling}function RN($,B){var X=o1(),Y=p4(),Z=o4(),G=a4(),z=$.alternate,W=$.flags;switch($.tag){case 0:case 11:case 14:case 15:h1(B,$),k1($),W&4&&(j3(b1|w4,$,$.return),X$(b1|w4,$),qY($,$.return,X4|w4));break;case 1:if(h1(B,$),k1($),W&512&&(s2||z===null||n4(z,z.return)),W&64&&h7&&(W=$.updateQueue,W!==null&&(z=W.callbacks,z!==null))){var J=W.shared.hiddenCallbacks;W.shared.hiddenCallbacks=J===null?z:J.concat(z)}break;case 26:if(J=S4,h1(B,$),k1($),W&512&&(s2||z===null||n4(z,z.return)),W&4){var Q=z!==null?z.memoizedState:null;if(W=$.memoizedState,z===null)if(W===null)if($.stateNode===null){$:{W=$.type,z=$.memoizedProps,J=J.ownerDocument||J;B:switch(W){case"title":if(Q=J.getElementsByTagName("title")[0],!Q||Q[w$]||Q[Q1]||Q.namespaceURI===t3||Q.hasAttribute("itemprop"))Q=J.createElement(W),J.head.insertBefore(Q,J.querySelector("head > title"));H1(Q,W,z),Q[Q1]=$,H0(Q),W=Q;break $;case"link":var A=fv("link","href",J).get(W+(z.href||""));if(A){for(var P=0;P<A.length;P++)if(Q=A[P],Q.getAttribute("href")===(z.href==null||z.href===""?null:z.href)&&Q.getAttribute("rel")===(z.rel==null?null:z.rel)&&Q.getAttribute("title")===(z.title==null?null:z.title)&&Q.getAttribute("crossorigin")===(z.crossOrigin==null?null:z.crossOrigin)){A.splice(P,1);break B}}Q=J.createElement(W),H1(Q,W,z),J.head.appendChild(Q);break;case"meta":if(A=fv("meta","content",J).get(W+(z.content||""))){for(P=0;P<A.length;P++)if(Q=A[P],m0(z.content,"content"),Q.getAttribute("content")===(z.content==null?null:""+z.content)&&Q.getAttribute("name")===(z.name==null?null:z.name)&&Q.getAttribute("property")===(z.property==null?null:z.property)&&Q.getAttribute("http-equiv")===(z.httpEquiv==null?null:z.httpEquiv)&&Q.getAttribute("charset")===(z.charSet==null?null:z.charSet)){A.splice(P,1);break B}}Q=J.createElement(W),H1(Q,W,z),J.head.appendChild(Q);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+W+'". This is a bug in React.')}Q[Q1]=$,H0(Q),W=Q}$.stateNode=W}else yv(J,$.type,$.stateNode);else $.stateNode=Tv(J,W,$.memoizedProps);else Q!==W?(Q===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):Q.count--,W===null?yv(J,$.type,$.stateNode):Tv(J,W,$.memoizedProps)):W===null&&$.stateNode!==null&&KY($,$.memoizedProps,z.memoizedProps)}break;case 27:h1(B,$),k1($),W&512&&(s2||z===null||n4(z,z.return)),z!==null&&W&4&&KY($,$.memoizedProps,z.memoizedProps);break;case 5:if(h1(B,$),k1($),W&512&&(s2||z===null||n4(z,z.return)),$.flags&32){J=$.stateNode;try{s($,Ov,J)}catch(X0){H2($,$.return,X0)}}W&4&&$.stateNode!=null&&(J=$.memoizedProps,KY($,J,z!==null?z.memoizedProps:J)),W&1024&&(tZ=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(h1(B,$),k1($),W&4){if($.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");W=$.memoizedProps,z=z!==null?z.memoizedProps:W,J=$.stateNode;try{s($,Vq,J,z,W)}catch(X0){H2($,$.return,X0)}}break;case 3:if(J=R7(),bB=null,Q=S4,S4=w8(B.containerInfo),h1(B,$),S4=Q,k1($),W&4&&z!==null&&z.memoizedState.isDehydrated)try{s($,nq,B.containerInfo)}catch(X0){H2($,$.return,X0)}tZ&&(tZ=!1,_N($)),B.effectDuration+=k9(J);break;case 4:W=S4,S4=w8($.stateNode.containerInfo),h1(B,$),k1($),S4=W;break;case 12:W=R7(),h1(B,$),k1($),$.stateNode.effectDuration+=c6(W);break;case 31:h1(B,$),k1($),W&4&&(W=$.updateQueue,W!==null&&($.updateQueue=null,H8($,W)));break;case 13:h1(B,$),k1($),$.child.flags&8192&&$.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(QB=G1()),W&4&&(W=$.updateQueue,W!==null&&($.updateQueue=null,H8($,W)));break;case 22:J=$.memoizedState!==null;var O=z!==null&&z.memoizedState!==null,f=h7,r=s2;if(h7=f||J,s2=r||O,h1(B,$),s2=r,h7=f,O&&!J&&!f&&!r&&($.mode&k0)!==A0&&0<=g0&&0<=O0&&0.05<O0-g0&&b9($,g0,O0),k1($),W&8192)$:for(B=$.stateNode,B._visibility=J?B._visibility&~C$:B._visibility|C$,!J||z===null||O||h7||s2||(n5($),($.mode&k0)!==A0&&0<=g0&&0<=O0&&0.05<O0-g0&&D4($,g0,O0,"Disconnect")),z=null,B=$;;){if(B.tag===5||B.tag===26){if(z===null){O=z=B;try{Q=O.stateNode,J?s(O,dq,Q):s(O,oq,O.stateNode,O.memoizedProps)}catch(X0){H2(O,O.return,X0)}}}else if(B.tag===6){if(z===null){O=B;try{A=O.stateNode,J?s(O,pq,A):s(O,aq,A,O.memoizedProps)}catch(X0){H2(O,O.return,X0)}}}else if(B.tag===18){if(z===null){O=B;try{P=O.stateNode,J?s(O,lq,P):s(O,cq,O.stateNode)}catch(X0){H2(O,O.return,X0)}}}else if((B.tag!==22&&B.tag!==23||B.memoizedState===null||B===$)&&B.child!==null){B.child.return=B,B=B.child;continue}if(B===$)break $;for(;B.sibling===null;){if(B.return===null||B.return===$)break $;z===B&&(z=null),B=B.return}z===B&&(z=null),B.sibling.return=B.return,B=B.sibling}W&4&&(W=$.updateQueue,W!==null&&(z=W.retryQueue,z!==null&&(W.retryQueue=null,H8($,z))));break;case 19:h1(B,$),k1($),W&4&&(W=$.updateQueue,W!==null&&($.updateQueue=null,H8($,W)));break;case 30:break;case 21:break;default:h1(B,$),k1($)}($.mode&k0)!==A0&&0<=g0&&0<=O0&&((j2||0.05<u2)&&l4($,g0,O0,u2,T2),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<O0-g0&&(qN($.return.alternate,$.return)||D4($,g0,O0,"Mount"))),a1(X),c4(Y),T2=Z,j2=G}function k1($){var B=$.flags;if(B&2){try{s($,Lq,$)}catch(X){H2($,$.return,X)}$.flags&=-3}B&4096&&($.flags&=-4097)}function _N($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var B=$;_N(B),B.tag===5&&B.flags&1024&&B.stateNode.reset(),$=$.sibling}}function t4($,B){if(B.subtreeFlags&8772)for(B=B.child;B!==null;)gN($,B.alternate,B),B=B.sibling}function MN($){var B=o1(),X=p4(),Y=o4(),Z=a4();switch($.tag){case 0:case 11:case 14:case 15:qY($,$.return,X4),n5($);break;case 1:n4($,$.return);var G=$.stateNode;typeof G.componentWillUnmount==="function"&&vN($,$.return,G),n5($);break;case 27:s($,Q$,$.stateNode);case 26:case 5:n4($,$.return),n5($);break;case 22:$.memoizedState===null&&n5($);break;case 30:n5($);break;default:n5($)}($.mode&k0)!==A0&&0<=g0&&0<=O0&&(j2||0.05<u2)&&l4($,g0,O0,u2,T2),a1(B),c4(X),T2=Y,j2=Z}function n5($){for($=$.child;$!==null;)MN($),$=$.sibling}function FN($,B,X,Y){var Z=o1(),G=p4(),z=o4(),W=a4(),J=X.flags;switch(X.tag){case 0:case 11:case 15:e4($,X,Y),zN(X,X4);break;case 1:if(e4($,X,Y),B=X.stateNode,typeof B.componentDidMount==="function"&&s(X,VZ,X,B),B=X.updateQueue,B!==null){$=X.stateNode;try{s(X,nL,B,$)}catch(Q){H2(X,X.return,Q)}}Y&&J&64&&NN(X),Y$(X,X.return);break;case 27:LN(X);case 26:case 5:e4($,X,Y),Y&&B===null&&J&4&&HN(X),Y$(X,X.return);break;case 12:if(Y&&J&4){J=R7(),e4($,X,Y),Y=X.stateNode,Y.effectDuration+=c6(J);try{s(X,JN,X,B,L5,Y.effectDuration)}catch(Q){H2(X,X.return,Q)}}else e4($,X,Y);break;case 31:e4($,X,Y),Y&&J&4&&ON($,X);break;case 13:e4($,X,Y),Y&&J&4&&wN($,X);break;case 22:X.memoizedState===null&&e4($,X,Y),Y$(X,X.return);break;case 30:break;default:e4($,X,Y)}(X.mode&k0)!==A0&&0<=g0&&0<=O0&&(j2||0.05<u2)&&l4(X,g0,O0,u2,T2),a1(Z),c4(G),T2=z,j2=W}function e4($,B,X){X=X&&(B.subtreeFlags&8772)!==0;for(B=B.child;B!==null;)FN($,B.alternate,B,X),B=B.sibling}function wY($,B){var X=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(X=$.memoizedState.cachePool.pool),$=null,B.memoizedState!==null&&B.memoizedState.cachePool!==null&&($=B.memoizedState.cachePool.pool),$!==X&&($!=null&&o5($),X!=null&&p6(X))}function RY($,B){$=null,B.alternate!==null&&($=B.alternate.memoizedState.cache),B=B.memoizedState.cache,B!==$&&(o5(B),$!=null&&p6($))}function b4($,B,X,Y,Z){if(B.subtreeFlags&10256||B.actualDuration!==0&&(B.alternate===null||B.alternate.child!==B.child))for(B=B.child;B!==null;){var G=B.sibling;AN($,B,X,Y,G!==null?G.actualStartTime:Z),B=G}}function AN($,B,X,Y,Z){var G=o1(),z=p4(),W=o4(),J=a4(),Q=v5,A=B.flags;switch(B.tag){case 0:case 11:case 15:(B.mode&k0)!==A0&&0<B.actualStartTime&&(B.flags&1)!==0&&C9(B,B.actualStartTime,Z,e2,X),b4($,B,X,Y,Z),A&2048&&WN(B,C1|w4);break;case 1:(B.mode&k0)!==A0&&0<B.actualStartTime&&((B.flags&128)!==0?YX(B,B.actualStartTime,Z,[]):(B.flags&1)!==0&&C9(B,B.actualStartTime,Z,e2,X)),b4($,B,X,Y,Z);break;case 3:var P=R7(),O=e2;e2=B.alternate!==null&&B.alternate.memoizedState.isDehydrated&&(B.flags&256)===0,b4($,B,X,Y,Z),e2=O,A&2048&&(X=null,B.alternate!==null&&(X=B.alternate.memoizedState.cache),Y=B.memoizedState.cache,Y!==X&&(o5(Y),X!=null&&p6(X))),$.passiveEffectDuration+=k9(P);break;case 12:if(A&2048){A=R7(),b4($,B,X,Y,Z),$=B.stateNode,$.passiveEffectDuration+=c6(A);try{s(B,Qq,B,B.alternate,L5,$.passiveEffectDuration)}catch(f){H2(B,B.return,f)}}else b4($,B,X,Y,Z);break;case 31:A=e2,P=B.alternate!==null?B.alternate.memoizedState:null,O=B.memoizedState,P!==null&&O===null?(O=B.deletions,O!==null&&0<O.length&&O[0].tag===18?(e2=!1,P=P.hydrationErrors,P!==null&&YX(B,B.actualStartTime,Z,P)):e2=!0):e2=!1,b4($,B,X,Y,Z),e2=A;break;case 13:A=e2,P=B.alternate!==null?B.alternate.memoizedState:null,O=B.memoizedState,P===null||P.dehydrated===null||O!==null&&O.dehydrated!==null?e2=!1:(O=B.deletions,O!==null&&0<O.length&&O[0].tag===18?(e2=!1,P=P.hydrationErrors,P!==null&&YX(B,B.actualStartTime,Z,P)):e2=!0),b4($,B,X,Y,Z),e2=A;break;case 23:break;case 22:O=B.stateNode,P=B.alternate,B.memoizedState!==null?O._visibility&I7?b4($,B,X,Y,Z):Z$($,B,X,Y,Z):O._visibility&I7?b4($,B,X,Y,Z):(O._visibility|=I7,V3($,B,X,Y,(B.subtreeFlags&10256)!==0||B.actualDuration!==0&&(B.alternate===null||B.alternate.child!==B.child),Z),(B.mode&k0)===A0||e2||($=B.actualStartTime,0<=$&&0.05<Z-$&&b9(B,$,Z),0<=g0&&0<=O0&&0.05<O0-g0&&b9(B,g0,O0))),A&2048&&wY(P,B);break;case 24:b4($,B,X,Y,Z),A&2048&&RY(B.alternate,B);break;default:b4($,B,X,Y,Z)}if((B.mode&k0)!==A0){if($=!e2&&B.alternate===null&&B.return!==null&&B.return.alternate!==null)X=B.actualStartTime,0<=X&&0.05<Z-X&&D4(B,X,Z,"Mount");0<=g0&&0<=O0&&((j2||0.05<u2)&&l4(B,g0,O0,u2,T2),$&&0.05<O0-g0&&D4(B,g0,O0,"Mount"))}a1(G),c4(z),T2=W,j2=J,v5=Q}function V3($,B,X,Y,Z,G){Z=Z&&((B.subtreeFlags&10256)!==0||B.actualDuration!==0&&(B.alternate===null||B.alternate.child!==B.child));for(B=B.child;B!==null;){var z=B.sibling;PN($,B,X,Y,Z,z!==null?z.actualStartTime:G),B=z}}function PN($,B,X,Y,Z,G){var z=o1(),W=p4(),J=o4(),Q=a4(),A=v5;Z&&(B.mode&k0)!==A0&&0<B.actualStartTime&&(B.flags&1)!==0&&C9(B,B.actualStartTime,G,e2,X);var P=B.flags;switch(B.tag){case 0:case 11:case 15:V3($,B,X,Y,Z,G),WN(B,C1);break;case 23:break;case 22:var O=B.stateNode;B.memoizedState!==null?O._visibility&I7?V3($,B,X,Y,Z,G):Z$($,B,X,Y,G):(O._visibility|=I7,V3($,B,X,Y,Z,G)),Z&&P&2048&&wY(B.alternate,B);break;case 24:V3($,B,X,Y,Z,G),Z&&P&2048&&RY(B.alternate,B);break;default:V3($,B,X,Y,Z,G)}(B.mode&k0)!==A0&&0<=g0&&0<=O0&&(j2||0.05<u2)&&l4(B,g0,O0,u2,T2),a1(z),c4(W),T2=J,j2=Q,v5=A}function Z$($,B,X,Y,Z){if(B.subtreeFlags&10256||B.actualDuration!==0&&(B.alternate===null||B.alternate.child!==B.child))for(var G=B.child;G!==null;){B=G.sibling;var z=$,W=X,J=Y,Q=B!==null?B.actualStartTime:Z,A=v5;(G.mode&k0)!==A0&&0<G.actualStartTime&&(G.flags&1)!==0&&C9(G,G.actualStartTime,Q,e2,W);var P=G.flags;switch(G.tag){case 22:Z$(z,G,W,J,Q),P&2048&&wY(G.alternate,G);break;case 24:Z$(z,G,W,J,Q),P&2048&&RY(G.alternate,G);break;default:Z$(z,G,W,J,Q)}v5=A,G=B}}function E3($,B,X){if($.subtreeFlags&s$)for($=$.child;$!==null;)IN($,B,X),$=$.sibling}function IN($,B,X){switch($.tag){case 26:E3($,B,X),$.flags&s$&&$.memoizedState!==null&&Yg(X,S4,$.memoizedState,$.memoizedProps);break;case 5:E3($,B,X);break;case 3:case 4:var Y=S4;S4=w8($.stateNode.containerInfo),E3($,B,X),S4=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=s$,s$=16777216,E3($,B,X),s$=Y):E3($,B,X));break;default:E3($,B,X)}}function bN($){var B=$.alternate;if(B!==null&&($=B.child,$!==null)){B.child=null;do B=$.sibling,$.sibling=null,$=B;while($!==null)}}function G$($){var B=$.deletions;if(($.flags&16)!==0){if(B!==null)for(var X=0;X<B.length;X++){var Y=B[X],Z=o1();W1=Y,TN(Y,$),(Y.mode&k0)!==A0&&0<=g0&&0<=O0&&0.05<O0-g0&&D4(Y,g0,O0,"Unmount"),a1(Z)}bN($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)CN($),$=$.sibling}function CN($){var B=o1(),X=p4(),Y=o4(),Z=a4();switch($.tag){case 0:case 11:case 15:G$($),$.flags&2048&&gY($,$.return,C1|w4);break;case 3:var G=R7();G$($),$.stateNode.passiveEffectDuration+=k9(G);break;case 12:G=R7(),G$($),$.stateNode.passiveEffectDuration+=c6(G);break;case 22:G=$.stateNode,$.memoizedState!==null&&G._visibility&I7&&($.return===null||$.return.tag!==13)?(G._visibility&=~I7,Q8($),($.mode&k0)!==A0&&0<=g0&&0<=O0&&0.05<O0-g0&&D4($,g0,O0,"Disconnect")):G$($);break;default:G$($)}($.mode&k0)!==A0&&0<=g0&&0<=O0&&(j2||0.05<u2)&&l4($,g0,O0,u2,T2),a1(B),c4(X),j2=Z,T2=Y}function Q8($){var B=$.deletions;if(($.flags&16)!==0){if(B!==null)for(var X=0;X<B.length;X++){var Y=B[X],Z=o1();W1=Y,TN(Y,$),(Y.mode&k0)!==A0&&0<=g0&&0<=O0&&0.05<O0-g0&&D4(Y,g0,O0,"Unmount"),a1(Z)}bN($)}for($=$.child;$!==null;)mN($),$=$.sibling}function mN($){var B=o1(),X=p4(),Y=o4(),Z=a4();switch($.tag){case 0:case 11:case 15:gY($,$.return,C1),Q8($);break;case 22:var G=$.stateNode;G._visibility&I7&&(G._visibility&=~I7,Q8($));break;default:Q8($)}($.mode&k0)!==A0&&0<=g0&&0<=O0&&(j2||0.05<u2)&&l4($,g0,O0,u2,T2),a1(B),c4(X),j2=Z,T2=Y}function TN($,B){for(;W1!==null;){var X=W1,Y=X,Z=B,G=o1(),z=p4(),W=o4(),J=a4();switch(Y.tag){case 0:case 11:case 15:gY(Y,Z,C1);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(Z=Y.memoizedState.cachePool.pool,Z!=null&&o5(Z));break;case 24:p6(Y.memoizedState.cache)}if((Y.mode&k0)!==A0&&0<=g0&&0<=O0&&(j2||0.05<u2)&&l4(Y,g0,O0,u2,T2),a1(G),c4(z),j2=J,T2=W,Y=X.child,Y!==null)Y.return=X,W1=Y;else $:for(X=$;W1!==null;){if(Y=W1,G=Y.sibling,z=Y.return,KN(Y),Y===X){W1=null;break $}if(G!==null){G.return=z,W1=G;break $}W1=z}}}function Kq(){kK.forEach(function($){return $()})}function fN(){var $=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return $||x.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),$}function i1($){if((Z2&$1)!==N1&&V0!==0)return V0&-V0;var B=x.T;return B!==null?(B._updatedFibers||(B._updatedFibers=new Set),B._updatedFibers.add($),CY()):C()}function yN(){if(E1===0)if((V0&536870912)===0||i0){var $=f8;f8<<=1,(f8&3932160)===0&&(f8=262144),E1=$}else E1=536870912;return $=B4.current,$!==null&&($.flags|=32),E1}function k2($,B,X){if(P6&&console.error("useInsertionEffect must not schedule updates."),vG&&(KB=!0),$===O2&&(q2===Q3||q2===L3)||$.cancelPendingCommit!==null)l3($,0),B5($,V0,E1,!1);if(W4($,X),(Z2&$1)!==N1&&$===O2){if(Z7)switch(B.tag){case 0:case 11:case 15:$=l0&&i(l0)||"Unknown",GQ.has($)||(GQ.add($),B=i(B)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",B,$,$));break;case 1:ZQ||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),ZQ=!0)}}else z7&&C3($,B,X),Iq(B),$===O2&&((Z2&$1)===N1&&(M5|=X),x2===w5&&B5($,V0,E1,!1)),$7($)}function SN($,B,X){if((Z2&($1|Y4))!==N1)throw Error("Should not already be working.");if(V0!==0&&l0!==null){var Y=l0,Z=G1();switch(nJ){case n$:case Q3:var G=u$;A2&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",G,Z,H4,void 0,"primary-light")):console.timeStamp("Suspended",G,Z,H4,void 0,"primary-light"));break;case L3:G=u$,A2&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",G,Z,H4,void 0,"primary-light")):console.timeStamp("Action",G,Z,H4,void 0,"primary-light"));break;default:A2&&(Y=Z-u$,3>Y||console.timeStamp("Blocked",u$,Z,H4,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}G=(X=!X&&(B&127)===0&&(B&$.expiredLanes)===0||W0($,B))?Oq($,B):MY($,B,!0);var z=X;do{if(G===k7){F6&&!X&&B5($,B,0,!1),B=q2,u$=c2(),nJ=B;break}else{if(Y=G1(),Z=$.current.alternate,z&&!Uq(Z)){p1(B),Z=z1,G=Y,!A2||G<=Z||(D2?D2.run(console.timeStamp.bind(console,"Teared Render",Z,G,s0,o0,"error")):console.timeStamp("Teared Render",Z,G,s0,o0,"error")),t5(B,Y),G=MY($,B,!1),z=!1;continue}if(G===H3){if(z=B,$.errorRecoveryDisabledLanes&z)var W=0;else W=$.pendingLanes&-536870913,W=W!==0?W:W&536870912?536870912:0;if(W!==0){p1(B),ZX(z1,Y,B,D2),t5(B,Y),B=W;$:{Y=$,G=z,z=e$;var J=Y.current.memoizedState.isDehydrated;if(J&&(l3(Y,W).flags|=256),W=MY(Y,W,!1),W!==H3){if(BG&&!J){Y.errorRecoveryDisabledLanes|=G,M5|=G,G=w5;break $}Y=m1,m1=z,Y!==null&&(m1===null?m1=Y:m1.push.apply(m1,Y))}G=W}if(z=!1,G!==H3)continue;else Y=G1()}}if(G===r$){p1(B),ZX(z1,Y,B,D2),t5(B,Y),l3($,0),B5($,B,0,!0);break}$:{switch(X=$,G){case k7:case r$:throw Error("Root did not complete. This is a bug in React.");case w5:if((B&4194048)!==B)break;case NB:p1(B),Sz(z1,Y,B,D2),t5(B,Y),Z=B,(Z&127)!==0?a8=Y:(Z&4194048)!==0&&(s8=Y),B5(X,B,E1,!R5);break $;case H3:m1=null;break;case WB:case cH:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)FY(X,Z,B,m1,$9,HB,E1,M5,q3,G,null,null,z1,Y);else{if((B&62914560)===B&&(z=QB+sH-G1(),10<z)){if(B5(X,B,E1,!R5),n2(X,0,!0)!==0)break $;u4=B,X.timeoutHandle=LQ(uN.bind(null,X,Z,m1,$9,HB,B,E1,M5,q3,R5,G,"Throttled",z1,Y),z);break $}uN(X,Z,m1,$9,HB,B,E1,M5,q3,R5,G,null,z1,Y)}}}break}while(1);$7($)}function uN($,B,X,Y,Z,G,z,W,J,Q,A,P,O,f){$.timeoutHandle=w3;var r=B.subtreeFlags,X0=null;if(r&8192||(r&16785408)===16785408){if(X0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:K7},IN(B,G,X0),r=(G&62914560)===G?QB-G1():(G&4194048)===G?aH-G1():0,r=Zg(X0,r),r!==null){u4=G,$.cancelPendingCommit=r(FY.bind(null,$,B,G,X,Y,Z,z,W,J,A,X0,X0.waitingForViewTransition?"Waiting for the previous Animation":0<X0.count?0<X0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":X0.imgCount===1?"Suspended on an Image":0<X0.imgCount?"Suspended on Images":null,O,f)),B5($,G,z,!Q);return}}FY($,B,G,X,Y,Z,z,W,J,A,X0,P,O,f)}function Uq($){for(var B=$;;){var X=B.tag;if((X===0||X===11||X===15)&&B.flags&16384&&(X=B.updateQueue,X!==null&&(X=X.stores,X!==null)))for(var Y=0;Y<X.length;Y++){var Z=X[Y],G=Z.getSnapshot;Z=Z.value;try{if(!P1(G(),Z))return!1}catch(z){return!1}}if(X=B.child,B.subtreeFlags&16384&&X!==null)X.return=B,B=X;else{if(B===$)break;for(;B.sibling===null;){if(B.return===null||B.return===$)return!0;B=B.return}B.sibling.return=B.return,B=B.sibling}}return!0}function B5($,B,X,Y){B&=~XG,B&=~M5,$.suspendedLanes|=B,$.pingedLanes&=~B,Y&&($.warmLanes|=B),Y=$.expirationTimes;for(var Z=B;0<Z;){var G=31-M1(Z),z=1<<G;Y[G]=-1,Z&=~z}X!==0&&V4($,X,B)}function D3(){return(Z2&($1|Y4))===N1?(N$(0,!1),!1):!0}function _Y(){if(l0!==null){if(q2===V1)var $=l0.return;else $=l0,u9(),yX($),q6=null,d$=0,$=l0;for(;$!==null;)GN($.alternate,$),$=$.return;l0=null}}function t5($,B){($&127)!==0&&(q5=B),($&4194048)!==0&&(H7=B),($&62914560)!==0&&(iJ=B),($&2080374784)!==0&&(rJ=B)}function l3($,B){A2&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",o0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",o0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",o0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",o0,"primary-light"));var X=z1;if(z1=c2(),V0!==0&&0<X){if(p1(V0),x2===WB||x2===w5)Sz(X,z1,B,D2);else{var Y=z1,Z=D2;if(A2&&!(Y<=X)){var G=(B&738197653)===B?"tertiary-dark":"primary-dark",z=(B&536870912)===B?"Prewarm":(B&201326741)===B?"Interrupted Hydration":"Interrupted Render";Z?Z.run(console.timeStamp.bind(console,z,X,Y,s0,o0,G)):console.timeStamp(z,X,Y,s0,o0,G)}}t5(V0,z1)}if(X=D2,D2=null,(B&127)!==0){D2=f$,Z=0<=J7&&J7<q5?q5:J7,Y=0<=Y3&&Y3<q5?q5:Y3,G=0<=Y?Y:0<=Z?Z:z1,0<=a8?(p1(2),uz(a8,G,B,X)):(i8&127)!==0&&(p1(2),l6(q5,G,y7)),X=Z;var W=Y,J=y$,Q=0<H6,A=g5===T$,P=g5===o8;if(Z=z1,Y=f$,G=uZ,z=xZ,A2){if(s0="Blocking",0<X?X>Z&&(X=Z):X=Z,0<W?W>X&&(W=X):W=X,J!==null&&X>W){var O=Q?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,Q?"Consecutive":"Event: "+J,W,X,s0,o0,O)):console.timeStamp(Q?"Consecutive":"Event: "+J,W,X,s0,o0,O)}Z>X&&(W=A?"error":(B&738197653)===B?"tertiary-light":"primary-light",A=P?"Promise Resolved":A?"Cascading Update":5<Z-X?"Update Blocked":"Update",P=[],z!=null&&P.push(["Component name",z]),G!=null&&P.push(["Method name",G]),X={start:X,end:Z,detail:{devtools:{properties:P,track:s0,trackGroup:o0,color:W}}},Y?Y.run(performance.measure.bind(performance,A,X)):performance.measure(A,X))}J7=-1.1,g5=0,xZ=uZ=null,a8=-1.1,H6=Y3,Y3=-1.1,q5=c2()}if((B&4194048)!==0&&(D2=S$,Z=0<=f7&&f7<H7?H7:f7,X=0<=U4&&U4<H7?H7:U4,Y=0<=K5&&K5<H7?H7:K5,G=0<=Y?Y:0<=X?X:z1,0<=s8?(p1(256),uz(s8,G,B,D2)):(i8&4194048)!==0&&(p1(256),l6(H7,G,y7)),P=Y,W=Z3,J=0<U5,Q=hZ===o8,G=z1,Y=S$,z=aJ,A=sJ,A2&&(s0="Transition",0<X?X>G&&(X=G):X=G,0<Z?Z>X&&(Z=X):Z=X,0<P?P>Z&&(P=Z):P=Z,Z>P&&W!==null&&(O=J?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,J?"Consecutive":"Event: "+W,P,Z,s0,o0,O)):console.timeStamp(J?"Consecutive":"Event: "+W,P,Z,s0,o0,O)),X>Z&&(Y?Y.run(console.timeStamp.bind(console,"Action",Z,X,s0,o0,"primary-dark")):console.timeStamp("Action",Z,X,s0,o0,"primary-dark")),G>X&&(Z=Q?"Promise Resolved":5<G-X?"Update Blocked":"Update",P=[],A!=null&&P.push(["Component name",A]),z!=null&&P.push(["Method name",z]),X={start:X,end:G,detail:{devtools:{properties:P,track:s0,trackGroup:o0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,Z,X)):performance.measure(Z,X))),U4=f7=-1.1,hZ=0,s8=-1.1,U5=K5,K5=-1.1,H7=c2()),(B&62914560)!==0&&(i8&62914560)!==0&&(p1(4194304),l6(iJ,z1,y7)),(B&2080374784)!==0&&(i8&2080374784)!==0&&(p1(268435456),l6(rJ,z1,y7)),X=$.timeoutHandle,X!==w3&&($.timeoutHandle=w3,rK(X)),X=$.cancelPendingCommit,X!==null&&($.cancelPendingCommit=null,X()),u4=0,_Y(),O2=$,l0=X=U7($.current,null),V0=B,q2=V1,Z4=null,R5=!1,F6=W0($,B),BG=!1,x2=k7,q3=E1=XG=M5=_5=0,m1=e$=null,HB=!1,(B&8)!==0&&(B|=B&32),Y=$.entangledLanes,Y!==0)for($=$.entanglements,Y&=B;0<Y;)Z=31-M1(Y),G=1<<Z,B|=$[Z],Y&=~G;return L7=B,m9(),$=DJ(),1000<$-EJ&&(x.recentlyCreatedOwnerStacks=0,EJ=$),f4.discardPendingWarnings(),X}function xN($,B){f0=null,x.H=a$,x.getCurrentStack=null,Z7=!1,t1=null,B===L6||B===e8?(B=XW(),q2=n$):B===EZ?(B=XW(),q2=oH):q2=B===rZ?$G:B!==null&&typeof B==="object"&&typeof B.then==="function"?t$:vB,Z4=B;var X=l0;X===null?(x2=r$,G8($,c1(B,$.current))):X.mode&k0&&wX(X)}function hN(){var $=B4.current;return $===null?!0:(V0&4194048)===V0?O4===null?!0:!1:(V0&62914560)===V0||(V0&536870912)!==0?$===O4:!1}function kN(){var $=x.H;return x.H=a$,$===null?a$:$}function jN(){var $=x.A;return x.A=hK,$}function L8($){D2===null&&(D2=$._debugTask==null?null:$._debugTask)}function q8(){x2=w5,R5||(V0&4194048)!==V0&&B4.current!==null||(F6=!0),(_5&134217727)===0&&(M5&134217727)===0||O2===null||B5(O2,V0,E1,!1)}function MY($,B,X){var Y=Z2;Z2|=$1;var Z=kN(),G=jN();if(O2!==$||V0!==B){if(z7){var z=$.memoizedUpdaters;0<z.size&&(W$($,V0),z.clear()),h2($,B)}$9=null,l3($,B)}B=!1,z=x2;$:do try{if(q2!==V1&&l0!==null){var W=l0,J=Z4;switch(q2){case $G:_Y(),z=NB;break $;case n$:case Q3:case L3:case t$:B4.current===null&&(B=!0);var Q=q2;if(q2=V1,Z4=null,d3($,W,J,Q),X&&F6){z=k7;break $}break;default:Q=q2,q2=V1,Z4=null,d3($,W,J,Q)}}VN(),z=x2;break}catch(A){xN($,A)}while(1);return B&&$.shellSuspendCounter++,u9(),Z2=Y,x.H=Z,x.A=G,l0===null&&(O2=null,V0=0,m9()),z}function VN(){for(;l0!==null;)EN(l0)}function Oq($,B){var X=Z2;Z2|=$1;var Y=kN(),Z=jN();if(O2!==$||V0!==B){if(z7){var G=$.memoizedUpdaters;0<G.size&&(W$($,V0),G.clear()),h2($,B)}$9=null,LB=G1()+iH,l3($,B)}else F6=W0($,B);$:do try{if(q2!==V1&&l0!==null)B:switch(B=l0,G=Z4,q2){case vB:q2=V1,Z4=null,d3($,B,G,vB);break;case Q3:case L3:if($W(G)){q2=V1,Z4=null,DN(B);break}B=function(){q2!==Q3&&q2!==L3||O2!==$||(q2=JB),$7($)},G.then(B,B);break $;case n$:q2=JB;break $;case oH:q2=eZ;break $;case JB:$W(G)?(q2=V1,Z4=null,DN(B)):(q2=V1,Z4=null,d3($,B,G,JB));break;case eZ:var z=null;switch(l0.tag){case 26:z=l0.memoizedState;case 5:case 27:var W=l0;if(z?Sv(z):W.stateNode.complete){q2=V1,Z4=null;var J=W.sibling;if(J!==null)l0=J;else{var Q=W.return;Q!==null?(l0=Q,g8(Q)):l0=null}break B}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}q2=V1,Z4=null,d3($,B,G,eZ);break;case t$:q2=V1,Z4=null,d3($,B,G,t$);break;case $G:_Y(),x2=NB;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?VN():wq();break}catch(A){xN($,A)}while(1);if(u9(),x.H=Y,x.A=Z,Z2=X,l0!==null)return k7;return O2=null,V0=0,m9(),x2}function wq(){for(;l0!==null&&!Ug();)EN(l0)}function EN($){var B=$.alternate;($.mode&k0)!==A0?(OX($),B=s($,QY,B,$,L7),wX($)):B=s($,QY,B,$,L7),$.memoizedProps=$.pendingProps,B===null?g8($):l0=B}function DN($){var B=s($,Rq,$);$.memoizedProps=$.pendingProps,B===null?g8($):l0=B}function Rq($){var B=$.alternate,X=($.mode&k0)!==A0;switch(X&&OX($),$.tag){case 15:case 0:B=tW(B,$,$.pendingProps,$.type,void 0,V0);break;case 11:B=tW(B,$,$.pendingProps,$.type.render,$.ref,V0);break;case 5:yX($);default:GN(B,$),$=l0=Ez($,L7),B=QY(B,$,L7)}return X&&wX($),B}function d3($,B,X,Y){u9(),yX(B),q6=null,d$=0;var Z=B.return;try{if(Zq($,Z,B,X,V0)){x2=r$,G8($,c1(X,$.current)),l0=null;return}}catch(G){if(Z!==null)throw l0=Z,G;x2=r$,G8($,c1(X,$.current)),l0=null;return}if(B.flags&32768){if(i0||Y===vB)$=!0;else if(F6||(V0&536870912)!==0)$=!1;else if(R5=$=!0,Y===Q3||Y===L3||Y===n$||Y===t$)Y=B4.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);lN(B,$)}else g8(B)}function g8($){var B=$;do{if((B.flags&32768)!==0){lN(B,R5);return}var X=B.alternate;if($=B.return,OX(B),X=s(B,Wq,X,B,L7),(B.mode&k0)!==A0&&iz(B),X!==null){l0=X;return}if(B=B.sibling,B!==null){l0=B;return}l0=B=$}while(B!==null);x2===k7&&(x2=cH)}function lN($,B){do{var X=Nq($.alternate,$);if(X!==null){X.flags&=32767,l0=X;return}if(($.mode&k0)!==A0){iz($),X=$.actualDuration;for(var Y=$.child;Y!==null;)X+=Y.actualDuration,Y=Y.sibling;$.actualDuration=X}if(X=$.return,X!==null&&(X.flags|=32768,X.subtreeFlags=0,X.deletions=null),!B&&($=$.sibling,$!==null)){l0=$;return}l0=$=X}while($!==null);x2=NB,l0=null}function FY($,B,X,Y,Z,G,z,W,J,Q,A,P,O,f){$.cancelPendingCommit=null;do z$();while(r2!==A5);if(f4.flushLegacyContextWarning(),f4.flushPendingUnsafeLifecycleWarnings(),(Z2&($1|Y4))!==N1)throw Error("Should not already be working.");if(p1(X),Q===H3?ZX(O,f,X,D2):Y!==null?cL(O,f,X,Y,B!==null&&B.alternate!==null&&B.alternate.memoizedState.isDehydrated&&(B.flags&256)!==0,D2):pL(O,f,X,D2),B!==null){if(X===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),B===$.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(G=B.lanes|B.childLanes,G|=mZ,h5($,X,G,z,W,J),$===O2&&(l0=O2=null,V0=0),A6=B,P5=$,u4=X,GG=G,WG=Z,BQ=Y,zG=f,XQ=P,x4=qB,YQ=null,B.actualDuration!==0||(B.subtreeFlags&10256)!==0||(B.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,Pq(i3,function(){return z9=window.event,x4===qB&&(x4=ZG),aN(),null})):($.callbackNode=null,$.callbackPriority=0),T7=null,L5=c2(),P!==null&&oL(f,L5,P,D2),Y=(B.flags&13878)!==0,(B.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,Z=Q2.p,Q2.p=e1,z=Z2,Z2|=Y4;try{qq($,B,X)}finally{Z2=z,Q2.p=Z,x.T=Y}}r2=nH,dN(),pN(),cN()}}function dN(){if(r2===nH){r2=A5;var $=P5,B=A6,X=u4,Y=(B.flags&13878)!==0;if((B.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var Z=Q2.p;Q2.p=e1;var G=Z2;Z2|=Y4;try{_6=X,M6=$,j9(),RN(B,$),M6=_6=null,X=OG;var z=Tz($.containerInfo),W=X.focusedElem,J=X.selectionRange;if(z!==W&&W&&W.ownerDocument&&mz(W.ownerDocument.documentElement,W)){if(J!==null&&BX(W)){var{start:Q,end:A}=J;if(A===void 0&&(A=Q),"selectionStart"in W)W.selectionStart=Q,W.selectionEnd=Math.min(A,W.value.length);else{var P=W.ownerDocument||document,O=P&&P.defaultView||window;if(O.getSelection){var f=O.getSelection(),r=W.textContent.length,X0=Math.min(J.start,r),_2=J.end===void 0?X0:Math.min(J.end,r);!f.extend&&X0>_2&&(z=_2,_2=X0,X0=z);var t0=Cz(W,X0),U=Cz(W,_2);if(t0&&U&&(f.rangeCount!==1||f.anchorNode!==t0.node||f.anchorOffset!==t0.offset||f.focusNode!==U.node||f.focusOffset!==U.offset)){var w=P.createRange();w.setStart(t0.node,t0.offset),f.removeAllRanges(),X0>_2?(f.addRange(w),f.extend(U.node,U.offset)):(w.setEnd(U.node,U.offset),f.addRange(w))}}}}P=[];for(f=W;f=f.parentNode;)f.nodeType===1&&P.push({element:f,left:f.scrollLeft,top:f.scrollTop});typeof W.focus==="function"&&W.focus();for(W=0;W<P.length;W++){var M=P[W];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}TB=!!UG,OG=UG=null}finally{Z2=G,Q2.p=Z,x.T=Y}}$.current=B,r2=tH}}function pN(){if(r2===tH){r2=A5;var $=YQ;if($!==null){L5=c2();var B=m7,X=L5;!A2||X<=B||(y7?y7.run(console.timeStamp.bind(console,$,B,X,s0,o0,"secondary-light")):console.timeStamp($,B,X,s0,o0,"secondary-light"))}$=P5,B=A6,X=u4;var Y=(B.flags&8772)!==0;if((B.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var Z=Q2.p;Q2.p=e1;var G=Z2;Z2|=Y4;try{_6=X,M6=$,j9(),gN($,B.alternate,B),M6=_6=null}finally{Z2=G,Q2.p=Z,x.T=Y}}$=zG,B=XQ,m7=c2(),$=B===null?$:L5,B=m7,X=x4===YG,Y=D2,T7!==null?xz($,B,T7,!1,Y):!A2||B<=$||(Y?Y.run(console.timeStamp.bind(console,X?"Commit Interrupted View Transition":"Commit",$,B,s0,o0,X?"error":"secondary-dark")):console.timeStamp(X?"Commit Interrupted View Transition":"Commit",$,B,s0,o0,X?"error":"secondary-dark")),r2=eH}}function cN(){if(r2===$Q||r2===eH){if(r2===$Q){var $=m7;m7=c2();var B=m7,X=x4===YG;!A2||B<=$||(y7?y7.run(console.timeStamp.bind(console,X?"Interrupted View Transition":"Starting Animation",$,B,s0,o0,X?"error":"secondary-light")):console.timeStamp(X?"Interrupted View Transition":"Starting Animation",$,B,s0,o0,X?" error":"secondary-light")),x4!==YG&&(x4=rH)}r2=A5,Og(),$=P5;var Y=A6;B=u4,X=BQ;var Z=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;Z?r2=gB:(r2=A5,A6=P5=null,oN($,$.pendingLanes),g3=0,X9=null);var G=$.pendingLanes;if(G===0&&(F5=null),Z||nN($),G=H(B),Y=Y.stateNode,U1&&typeof U1.onCommitFiberRoot==="function")try{var z=(Y.current.flags&128)===128;switch(G){case e1:var W=WZ;break;case m4:W=NZ;break;case W7:W=i3;break;case S8:W=vZ;break;default:W=i3}U1.onCommitFiberRoot(r3,Y,W,z)}catch(P){G7||(G7=!0,console.error("React instrumentation encountered an error: %o",P))}if(z7&&$.memoizedUpdaters.clear(),Kq(),X!==null){z=x.T,W=Q2.p,Q2.p=e1,x.T=null;try{var J=$.onRecoverableError;for(Y=0;Y<X.length;Y++){var Q=X[Y],A=_q(Q.stack);s(Q.source,J,Q.value,A)}}finally{x.T=z,Q2.p=W}}(u4&3)!==0&&z$(),$7($),G=$.pendingLanes,(B&261930)!==0&&(G&42)!==0?(n8=!0,$===NG?B9++:(B9=0,NG=$)):B9=0,Z||t5(B,m7),N$(0,!1)}}function _q($){return $={componentStack:$},Object.defineProperty($,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),$}function oN($,B){($.pooledCacheLanes&=B)===0&&(B=$.pooledCache,B!=null&&($.pooledCache=null,p6(B)))}function z$(){return dN(),pN(),cN(),aN()}function aN(){if(r2!==gB)return!1;var $=P5,B=GG;GG=0;var X=H(u4),Y=W7===0||W7>X?W7:X;X=x.T;var Z=Q2.p;try{Q2.p=Y,x.T=null;var G=WG;WG=null,Y=P5;var z=u4;if(r2=A5,A6=P5=null,u4=0,(Z2&($1|Y4))!==N1)throw Error("Cannot flush passive effects while already rendering.");p1(z),vG=!0,KB=!1;var W=0;if(T7=null,W=G1(),x4===rH)l6(m7,W,y7);else{var J=m7,Q=W,A=x4===ZG;!A2||Q<=J||(D2?D2.run(console.timeStamp.bind(console,A?"Waiting for Paint":"Waiting",J,Q,s0,o0,"secondary-light")):console.timeStamp(A?"Waiting for Paint":"Waiting",J,Q,s0,o0,"secondary-light"))}J=Z2,Z2|=Y4;var P=Y.current;j9(),CN(P);var O=Y.current;P=zG,j9(),AN(Y,O,z,G,P),nN(Y),Z2=J;var f=G1();if(O=W,P=D2,T7!==null?xz(O,f,T7,!0,P):!A2||f<=O||(P?P.run(console.timeStamp.bind(console,"Remaining Effects",O,f,s0,o0,"secondary-dark")):console.timeStamp("Remaining Effects",O,f,s0,o0,"secondary-dark")),t5(z,f),N$(0,!1),KB?Y===X9?g3++:(g3=0,X9=Y):g3=0,KB=vG=!1,U1&&typeof U1.onPostCommitFiberRoot==="function")try{U1.onPostCommitFiberRoot(r3,Y)}catch(X0){G7||(G7=!0,console.error("React instrumentation encountered an error: %o",X0))}var r=Y.current.stateNode;return r.effectDuration=0,r.passiveEffectDuration=0,!0}finally{Q2.p=Z,x.T=X,oN($,B)}}function sN($,B,X){B=c1(X,B),rz(B),B=BY($.stateNode,B,2),$=n7($,B,2),$!==null&&(W4($,2),$7($))}function H2($,B,X){if(P6=!1,$.tag===3)sN($,$,X);else{for(;B!==null;){if(B.tag===3){sN(B,$,X);return}if(B.tag===1){var Y=B.stateNode;if(typeof B.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(F5===null||!F5.has(Y))){$=c1(X,$),rz($),X=XY(2),Y=n7(B,X,2),Y!==null&&(YY(X,Y,B,$),W4(Y,2),$7(Y));return}}B=B.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
153
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+q,R0(X,function(_,V){console.error("%s must not return anything besides a function, which is used for clean-up.%s",_,V)},U,M)}J=J.next}while(J!==W)}}catch(_){u1(X,X.return,_)}}function _Z(Z,X,J){try{var q=X.updateQueue,W=q!==null?q.lastEffect:null;if(W!==null){var U=W.next;q=U;do{if((q.tag&Z)===Z){var M=q.inst,_=M.destroy;_!==void 0&&(M.destroy=void 0,(Z&E4)!==jY&&(qX=!0),W=X,R0(W,Db,W,J,_),(Z&E4)!==jY&&(qX=!1))}q=q.next}while(q!==U)}}catch(V){u1(X,X.return,V)}}function zN(Z,X){A9(Z)?(O9(),C3(X,Z),_9()):C3(X,Z)}function MW(Z,X,J){A9(Z)?(O9(),_Z(J,Z,X),_9()):_Z(J,Z,X)}function FN(Z){var X=Z.updateQueue;if(X!==null){var J=Z.stateNode;Z.type.defaultProps||"ref"in Z.memoizedProps||XX||(J.props!==Z.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",E(Z)||"instance"),J.state!==Z.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",E(Z)||"instance"));try{R0(Z,MM,X,J)}catch(q){u1(Z,Z.return,q)}}}function qS(Z,X,J){return Z.getSnapshotBeforeUpdate(X,J)}function GS(Z,X){var{memoizedProps:J,memoizedState:q}=X;X=Z.stateNode,Z.type.defaultProps||"ref"in Z.memoizedProps||XX||(X.props!==Z.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",E(Z)||"instance"),X.state!==Z.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",E(Z)||"instance"));try{var W=o7(Z.type,J),U=R0(Z,qS,X,W,q);J=nO,U!==void 0||J.has(Z.type)||(J.add(Z.type),R0(Z,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",E(Z))})),X.__reactInternalSnapshotBeforeUpdate=U}catch(M){u1(Z,Z.return,M)}}function LN(Z,X,J){J.props=o7(Z.type,Z.memoizedProps),J.state=Z.memoizedState,A9(Z)?(O9(),R0(Z,FO,Z,X,J),_9()):R0(Z,FO,Z,X,J)}function KS(Z){var X=Z.ref;if(X!==null){switch(Z.tag){case 26:case 27:case 5:var J=Z.stateNode;break;case 30:J=Z.stateNode;break;default:J=Z.stateNode}if(typeof X==="function")if(A9(Z))try{O9(),Z.refCleanup=X(J)}finally{_9()}else Z.refCleanup=X(J);else typeof X==="string"?console.error("String refs are no longer supported."):X.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",E(Z)),X.current=J}}function j3(Z,X){try{R0(Z,KS,Z)}catch(J){u1(Z,X,J)}}function I9(Z,X){var{ref:J,refCleanup:q}=Z;if(J!==null)if(typeof q==="function")try{if(A9(Z))try{O9(),R0(Z,q)}finally{_9(Z)}else R0(Z,q)}catch(W){u1(Z,X,W)}finally{Z.refCleanup=null,Z=Z.alternate,Z!=null&&(Z.refCleanup=null)}else if(typeof J==="function")try{if(A9(Z))try{O9(),R0(Z,J,null)}finally{_9(Z)}else R0(Z,J,null)}catch(W){u1(Z,X,W)}else J.current=null}function MN(Z,X,J,q){var W=Z.memoizedProps,U=W.id,M=W.onCommit;W=W.onRender,X=X===null?"mount":"update",IY&&(X="nested-update"),typeof W==="function"&&W(U,X,Z.actualDuration,Z.treeBaseDuration,Z.actualStartTime,J),typeof M==="function"&&M(U,X,q,J)}function WS(Z,X,J,q){var W=Z.memoizedProps;Z=W.id,W=W.onPostCommit,X=X===null?"mount":"update",IY&&(X="nested-update"),typeof W==="function"&&W(Z,X,q,J)}function NN(Z){var{type:X,memoizedProps:J,stateNode:q}=Z;try{R0(Z,yS,q,X,J,Z)}catch(W){u1(Z,Z.return,W)}}function NW(Z,X,J){try{R0(Z,hS,Z.stateNode,Z.type,J,X,Z)}catch(q){u1(Z,Z.return,q)}}function RN(Z){return Z.tag===5||Z.tag===3||Z.tag===26||Z.tag===27&&f6(Z.type)||Z.tag===4}function RW(Z){Z:for(;;){for(;Z.sibling===null;){if(Z.return===null||RN(Z.return))return null;Z=Z.return}Z.sibling.return=Z.return;for(Z=Z.sibling;Z.tag!==5&&Z.tag!==6&&Z.tag!==18;){if(Z.tag===27&&f6(Z.type))continue Z;if(Z.flags&2)continue Z;if(Z.child===null||Z.tag===4)continue Z;else Z.child.return=Z,Z=Z.child}if(!(Z.flags&2))return Z.stateNode}}function _W(Z,X,J){var q=Z.tag;if(q===5||q===6)Z=Z.stateNode,X?(PR(J),(J.nodeType===9?J.body:J.nodeName==="HTML"?J.ownerDocument.body:J).insertBefore(Z,X)):(PR(J),X=J.nodeType===9?J.body:J.nodeName==="HTML"?J.ownerDocument.body:J,X.appendChild(Z),J=J._reactRootContainer,J!==null&&J!==void 0||X.onclick!==null||(X.onclick=a9));else if(q!==4&&(q===27&&f6(Z.type)&&(J=Z.stateNode,X=null),Z=Z.child,Z!==null))for(_W(Z,X,J),Z=Z.sibling;Z!==null;)_W(Z,X,J),Z=Z.sibling}function v$(Z,X,J){var q=Z.tag;if(q===5||q===6)Z=Z.stateNode,X?J.insertBefore(Z,X):J.appendChild(Z);else if(q!==4&&(q===27&&f6(Z.type)&&(J=Z.stateNode),Z=Z.child,Z!==null))for(v$(Z,X,J),Z=Z.sibling;Z!==null;)v$(Z,X,J),Z=Z.sibling}function HS(Z){for(var X,J=Z.return;J!==null;){if(RN(J)){X=J;break}J=J.return}if(X==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(X.tag){case 27:X=X.stateNode,J=RW(Z),v$(Z,J,X);break;case 5:J=X.stateNode,X.flags&32&&(VR(J),X.flags&=-33),X=RW(Z),v$(Z,X,J);break;case 3:case 4:X=X.stateNode.containerInfo,J=RW(Z),_W(Z,J,X);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function _N(Z){var{stateNode:X,memoizedProps:J}=Z;try{R0(Z,oS,Z.type,J,X,Z)}catch(q){u1(Z,Z.return,q)}}function ON(Z,X){return X.tag===31?(X=X.memoizedState,Z.memoizedState!==null&&X===null):X.tag===13?(Z=Z.memoizedState,X=X.memoizedState,Z!==null&&Z.dehydrated!==null&&(X===null||X.dehydrated===null)):X.tag===3?Z.memoizedState.isDehydrated&&(X.flags&256)===0:!1}function BS(Z,X){if(Z=Z.containerInfo,RB=Qq,Z=vL(Z),QK(Z)){if("selectionStart"in Z)var J={start:Z.selectionStart,end:Z.selectionEnd};else Z:{J=(J=Z.ownerDocument)&&J.defaultView||window;var q=J.getSelection&&J.getSelection();if(q&&q.rangeCount!==0){J=q.anchorNode;var{anchorOffset:W,focusNode:U}=q;q=q.focusOffset;try{J.nodeType,U.nodeType}catch(j0){J=null;break Z}var M=0,_=-1,V=-1,j=0,l=0,d=Z,m=null;X:for(;;){for(var X0;;){if(d!==J||W!==0&&d.nodeType!==3||(_=M+W),d!==U||q!==0&&d.nodeType!==3||(V=M+q),d.nodeType===3&&(M+=d.nodeValue.length),(X0=d.firstChild)===null)break;m=d,d=X0}for(;;){if(d===Z)break X;if(m===J&&++j===W&&(_=M),m===U&&++l===q&&(V=M),(X0=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=X0}J=_===-1||V===-1?null:{start:_,end:V}}else J=null}J=J||{start:0,end:0}}else J=null;_B={focusedElem:Z,selectionRange:J},Qq=!1;for(e5=X;e5!==null;)if(X=e5,Z=X.child,(X.subtreeFlags&1028)!==0&&Z!==null)Z.return=X,e5=Z;else for(;e5!==null;){switch(Z=X=e5,J=Z.alternate,W=Z.flags,Z.tag){case 0:if((W&4)!==0&&(Z=Z.updateQueue,Z=Z!==null?Z.events:null,Z!==null))for(J=0;J<Z.length;J++)W=Z[J],W.ref.impl=W.nextImpl;break;case 11:case 15:break;case 1:(W&1024)!==0&&J!==null&&GS(Z,J);break;case 3:if((W&1024)!==0){if(Z=Z.stateNode.containerInfo,J=Z.nodeType,J===9)mW(Z);else if(J===1)switch(Z.nodeName){case"HEAD":case"HTML":case"BODY":mW(Z);break;default:Z.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((W&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(Z=X.sibling,Z!==null){Z.return=X.return,e5=Z;break}e5=X.return}}function AN(Z,X,J){var q=X2(),W=L9(),U=N9(),M=R9(),_=J.flags;switch(J.tag){case 0:case 11:case 15:T9(Z,J),_&4&&UN(J,B2|S2);break;case 1:if(T9(Z,J),_&4)if(Z=J.stateNode,X===null)J.type.defaultProps||"ref"in J.memoizedProps||XX||(Z.props!==J.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",E(J)||"instance"),Z.state!==J.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",E(J)||"instance")),A9(J)?(O9(),R0(J,uH,J,Z),_9()):R0(J,uH,J,Z);else{var V=o7(J.type,X.memoizedProps);X=X.memoizedState,J.type.defaultProps||"ref"in J.memoizedProps||XX||(Z.props!==J.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",E(J)||"instance"),Z.state!==J.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",E(J)||"instance")),A9(J)?(O9(),R0(J,BO,J,Z,V,X,Z.__reactInternalSnapshotBeforeUpdate),_9()):R0(J,BO,J,Z,V,X,Z.__reactInternalSnapshotBeforeUpdate)}_&64&&FN(J),_&512&&j3(J,J.return);break;case 3:if(X=t9(),T9(Z,J),_&64&&(_=J.updateQueue,_!==null)){if(V=null,J.child!==null)switch(J.child.tag){case 27:case 5:V=J.child.stateNode;break;case 1:V=J.child.stateNode}try{R0(J,MM,_,V)}catch(l){u1(J,J.return,l)}}Z.effectDuration+=W$(X);break;case 27:X===null&&_&4&&_N(J);case 26:case 5:if(T9(Z,J),X===null){if(_&4)NN(J);else if(_&64){Z=J.type,X=J.memoizedProps,V=J.stateNode;try{R0(J,gS,V,Z,X,J)}catch(l){u1(J,J.return,l)}}}_&512&&j3(J,J.return);break;case 12:if(_&4){_=t9(),T9(Z,J),Z=J.stateNode,Z.effectDuration+=M3(_);try{R0(J,MN,J,X,o6,Z.effectDuration)}catch(l){u1(J,J.return,l)}}else T9(Z,J);break;case 31:T9(Z,J),_&4&&VN(Z,J);break;case 13:T9(Z,J),_&4&&PN(Z,J),_&64&&(Z=J.memoizedState,Z!==null&&(Z=Z.dehydrated,Z!==null&&(_=OS.bind(null,J),rS(Z,_))));break;case 22:if(_=J.memoizedState!==null||F6,!_){X=X!==null&&X.memoizedState!==null||b5,V=F6;var j=b5;F6=_,(b5=X)&&!j?(V9(Z,J,(J.subtreeFlags&8772)!==0),(J.mode&N1)!==J1&&0<=n0&&0<=Z1&&0.05<Z1-n0&&eJ(J,n0,Z1)):T9(Z,J),F6=V,b5=j}break;case 30:break;default:T9(Z,J)}(J.mode&N1)!==J1&&0<=n0&&0<=Z1&&((M5||0.05<U5)&&z9(J,n0,Z1,U5,W5),J.alternate===null&&J.return!==null&&J.return.alternate!==null&&0.05<Z1-n0&&(ON(J.return.alternate,J.return)||U9(J,n0,Z1,"Mount"))),Q2(q),M9(W),W5=U,M5=M}function IN(Z){var X=Z.alternate;X!==null&&(Z.alternate=null,IN(X)),Z.child=null,Z.deletions=null,Z.sibling=null,Z.tag===5&&(X=Z.stateNode,X!==null&&I0(X)),Z.stateNode=null,Z._debugOwner=null,Z.return=null,Z.dependencies=null,Z.memoizedProps=null,Z.memoizedState=null,Z.pendingProps=null,Z.stateNode=null,Z.updateQueue=null}function X6(Z,X,J){for(J=J.child;J!==null;)TN(Z,X,J),J=J.sibling}function TN(Z,X,J){if(N4&&typeof N4.onCommitFiberUnmount==="function")try{N4.onCommitFiberUnmount(EZ,J)}catch(j){S9||(S9=!0,console.error("React instrumentation encountered an error: %o",j))}var q=X2(),W=L9(),U=N9(),M=R9();switch(J.tag){case 26:b5||I9(J,X),X6(Z,X,J),J.memoizedState?J.memoizedState.count--:J.stateNode&&(Z=J.stateNode,Z.parentNode.removeChild(Z));break;case 27:b5||I9(J,X);var _=y5,V=l4;f6(J.type)&&(y5=J.stateNode,l4=!1),X6(Z,X,J),R0(J,x3,J.stateNode),y5=_,l4=V;break;case 5:b5||I9(J,X);case 6:if(_=y5,V=l4,y5=null,X6(Z,X,J),y5=_,l4=V,y5!==null)if(l4)try{R0(J,kS,y5,J.stateNode)}catch(j){u1(J,X,j)}else try{R0(J,xS,y5,J.stateNode)}catch(j){u1(J,X,j)}break;case 18:y5!==null&&(l4?(Z=y5,wR(Z.nodeType===9?Z.body:Z.nodeName==="HTML"?Z.ownerDocument.body:Z,J.stateNode),CZ(Z)):wR(y5,J.stateNode));break;case 4:_=y5,V=l4,y5=J.stateNode.containerInfo,l4=!0,X6(Z,X,J),y5=_,l4=V;break;case 0:case 11:case 14:case 15:_Z(E4,J,X),b5||LW(J,X,B2),X6(Z,X,J);break;case 1:b5||(I9(J,X),_=J.stateNode,typeof _.componentWillUnmount==="function"&&LN(J,X,_)),X6(Z,X,J);break;case 21:X6(Z,X,J);break;case 22:b5=(_=b5)||J.memoizedState!==null,X6(Z,X,J),b5=_;break;default:X6(Z,X,J)}(J.mode&N1)!==J1&&0<=n0&&0<=Z1&&(M5||0.05<U5)&&z9(J,n0,Z1,U5,W5),Q2(q),M9(W),W5=U,M5=M}function VN(Z,X){if(X.memoizedState===null&&(Z=X.alternate,Z!==null&&(Z=Z.memoizedState,Z!==null))){Z=Z.dehydrated;try{R0(X,nS,Z)}catch(J){u1(X,X.return,J)}}}function PN(Z,X){if(X.memoizedState===null&&(Z=X.alternate,Z!==null&&(Z=Z.memoizedState,Z!==null&&(Z=Z.dehydrated,Z!==null))))try{R0(X,sS,Z)}catch(J){u1(X,X.return,J)}}function US(Z){switch(Z.tag){case 31:case 13:case 19:var X=Z.stateNode;return X===null&&(X=Z.stateNode=new sO),X;case 22:return Z=Z.stateNode,X=Z._retryCache,X===null&&(X=Z._retryCache=new sO),X;default:throw Error("Unexpected Suspense handler tag ("+Z.tag+"). This is a bug in React.")}}function x$(Z,X){var J=US(Z);X.forEach(function(q){if(!J.has(q)){if(J.add(q),E9)if(QX!==null&&JX!==null)b3(JX,QX);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var W=AS.bind(null,Z,q);q.then(W,W)}})}function f4(Z,X){var J=X.deletions;if(J!==null)for(var q=0;q<J.length;q++){var W=Z,U=X,M=J[q],_=X2(),V=U;Z:for(;V!==null;){switch(V.tag){case 27:if(f6(V.type)){y5=V.stateNode,l4=!1;break Z}break;case 5:y5=V.stateNode,l4=!1;break Z;case 3:case 4:y5=V.stateNode.containerInfo,l4=!0;break Z}V=V.return}if(y5===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");TN(W,U,M),y5=null,l4=!1,(M.mode&N1)!==J1&&0<=n0&&0<=Z1&&0.05<Z1-n0&&U9(M,n0,Z1,"Unmount"),Q2(_),W=M,U=W.alternate,U!==null&&(U.return=null),W.return=null}if(X.subtreeFlags&13886)for(X=X.child;X!==null;)wN(X,Z),X=X.sibling}function wN(Z,X){var J=X2(),q=L9(),W=N9(),U=R9(),M=Z.alternate,_=Z.flags;switch(Z.tag){case 0:case 11:case 14:case 15:f4(X,Z),p4(Z),_&4&&(_Z(E4|S2,Z,Z.return),C3(E4|S2,Z),LW(Z,Z.return,B2|S2));break;case 1:if(f4(X,Z),p4(Z),_&512&&(b5||M===null||I9(M,M.return)),_&64&&F6&&(_=Z.updateQueue,_!==null&&(M=_.callbacks,M!==null))){var V=_.shared.hiddenCallbacks;_.shared.hiddenCallbacks=V===null?M:V.concat(M)}break;case 26:if(V=t2,f4(X,Z),p4(Z),_&512&&(b5||M===null||I9(M,M.return)),_&4){var j=M!==null?M.memoizedState:null;if(_=Z.memoizedState,M===null)if(_===null)if(Z.stateNode===null){Z:{_=Z.type,M=Z.memoizedProps,V=V.ownerDocument||V;X:switch(_){case"title":if(j=V.getElementsByTagName("title")[0],!j||j[d3]||j[G4]||j.namespaceURI===yZ||j.hasAttribute("itemprop"))j=V.createElement(_),V.head.insertBefore(j,V.querySelector("head > title"));q4(j,_,M),j[G4]=Z,i0(j),_=j;break Z;case"link":var l=xR("link","href",V).get(_+(M.href||""));if(l){for(var d=0;d<l.length;d++)if(j=l[d],j.getAttribute("href")===(M.href==null||M.href===""?null:M.href)&&j.getAttribute("rel")===(M.rel==null?null:M.rel)&&j.getAttribute("title")===(M.title==null?null:M.title)&&j.getAttribute("crossorigin")===(M.crossOrigin==null?null:M.crossOrigin)){l.splice(d,1);break X}}j=V.createElement(_),q4(j,_,M),V.head.appendChild(j);break;case"meta":if(l=xR("meta","content",V).get(_+(M.content||""))){for(d=0;d<l.length;d++)if(j=l[d],s0(M.content,"content"),j.getAttribute("content")===(M.content==null?null:""+M.content)&&j.getAttribute("name")===(M.name==null?null:M.name)&&j.getAttribute("property")===(M.property==null?null:M.property)&&j.getAttribute("http-equiv")===(M.httpEquiv==null?null:M.httpEquiv)&&j.getAttribute("charset")===(M.charSet==null?null:M.charSet)){l.splice(d,1);break X}}j=V.createElement(_),q4(j,_,M),V.head.appendChild(j);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+_+'". This is a bug in React.')}j[G4]=Z,i0(j),_=j}Z.stateNode=_}else kR(V,Z.type,Z.stateNode);else Z.stateNode=vR(V,_,Z.memoizedProps);else j!==_?(j===null?M.stateNode!==null&&(M=M.stateNode,M.parentNode.removeChild(M)):j.count--,_===null?kR(V,Z.type,Z.stateNode):vR(V,_,Z.memoizedProps)):_===null&&Z.stateNode!==null&&NW(Z,Z.memoizedProps,M.memoizedProps)}break;case 27:f4(X,Z),p4(Z),_&512&&(b5||M===null||I9(M,M.return)),M!==null&&_&4&&NW(Z,Z.memoizedProps,M.memoizedProps);break;case 5:if(f4(X,Z),p4(Z),_&512&&(b5||M===null||I9(M,M.return)),Z.flags&32){V=Z.stateNode;try{R0(Z,VR,V)}catch(g0){u1(Z,Z.return,g0)}}_&4&&Z.stateNode!=null&&(V=Z.memoizedProps,NW(Z,V,M!==null?M.memoizedProps:V)),_&1024&&(eH=!0,Z.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(f4(X,Z),p4(Z),_&4){if(Z.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");_=Z.memoizedProps,M=M!==null?M.memoizedProps:_,V=Z.stateNode;try{R0(Z,vS,V,M,_)}catch(g0){u1(Z,Z.return,g0)}}break;case 3:if(V=t9(),eY=null,j=t2,t2=i$(X.containerInfo),f4(X,Z),t2=j,p4(Z),_&4&&M!==null&&M.memoizedState.isDehydrated)try{R0(Z,aS,X.containerInfo)}catch(g0){u1(Z,Z.return,g0)}eH&&(eH=!1,CN(Z)),X.effectDuration+=W$(V);break;case 4:_=t2,t2=i$(Z.stateNode.containerInfo),f4(X,Z),p4(Z),t2=_;break;case 12:_=t9(),f4(X,Z),p4(Z),Z.stateNode.effectDuration+=M3(_);break;case 31:f4(X,Z),p4(Z),_&4&&(_=Z.updateQueue,_!==null&&(Z.updateQueue=null,x$(Z,_)));break;case 13:f4(X,Z),p4(Z),Z.child.flags&8192&&Z.memoizedState!==null!==(M!==null&&M.memoizedState!==null)&&(kY=o5()),_&4&&(_=Z.updateQueue,_!==null&&(Z.updateQueue=null,x$(Z,_)));break;case 22:V=Z.memoizedState!==null;var m=M!==null&&M.memoizedState!==null,X0=F6,j0=b5;if(F6=X0||V,b5=j0||m,f4(X,Z),b5=j0,F6=X0,m&&!V&&!X0&&!j0&&(Z.mode&N1)!==J1&&0<=n0&&0<=Z1&&0.05<Z1-n0&&eJ(Z,n0,Z1),p4(Z),_&8192)Z:for(X=Z.stateNode,X._visibility=V?X._visibility&~e3:X._visibility|e3,!V||M===null||m||F6||b5||(t7(Z),(Z.mode&N1)!==J1&&0<=n0&&0<=Z1&&0.05<Z1-n0&&U9(Z,n0,Z1,"Disconnect")),M=null,X=Z;;){if(X.tag===5||X.tag===26){if(M===null){m=M=X;try{j=m.stateNode,V?R0(m,uS,j):R0(m,lS,m.stateNode,m.memoizedProps)}catch(g0){u1(m,m.return,g0)}}}else if(X.tag===6){if(M===null){m=X;try{l=m.stateNode,V?R0(m,fS,l):R0(m,dS,l,m.memoizedProps)}catch(g0){u1(m,m.return,g0)}}}else if(X.tag===18){if(M===null){m=X;try{d=m.stateNode,V?R0(m,mS,d):R0(m,pS,m.stateNode)}catch(g0){u1(m,m.return,g0)}}}else if((X.tag!==22&&X.tag!==23||X.memoizedState===null||X===Z)&&X.child!==null){X.child.return=X,X=X.child;continue}if(X===Z)break Z;for(;X.sibling===null;){if(X.return===null||X.return===Z)break Z;M===X&&(M=null),X=X.return}M===X&&(M=null),X.sibling.return=X.return,X=X.sibling}_&4&&(_=Z.updateQueue,_!==null&&(M=_.retryQueue,M!==null&&(_.retryQueue=null,x$(Z,M))));break;case 19:f4(X,Z),p4(Z),_&4&&(_=Z.updateQueue,_!==null&&(Z.updateQueue=null,x$(Z,_)));break;case 30:break;case 21:break;default:f4(X,Z),p4(Z)}(Z.mode&N1)!==J1&&0<=n0&&0<=Z1&&((M5||0.05<U5)&&z9(Z,n0,Z1,U5,W5),Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null&&0.05<Z1-n0&&(ON(Z.return.alternate,Z.return)||U9(Z,n0,Z1,"Mount"))),Q2(J),M9(q),W5=W,M5=U}function p4(Z){var X=Z.flags;if(X&2){try{R0(Z,HS,Z)}catch(J){u1(Z,Z.return,J)}Z.flags&=-3}X&4096&&(Z.flags&=-4097)}function CN(Z){if(Z.subtreeFlags&1024)for(Z=Z.child;Z!==null;){var X=Z;CN(X),X.tag===5&&X.flags&1024&&X.stateNode.reset(),Z=Z.sibling}}function T9(Z,X){if(X.subtreeFlags&8772)for(X=X.child;X!==null;)AN(Z,X.alternate,X),X=X.sibling}function jN(Z){var X=X2(),J=L9(),q=N9(),W=R9();switch(Z.tag){case 0:case 11:case 14:case 15:LW(Z,Z.return,B2),t7(Z);break;case 1:I9(Z,Z.return);var U=Z.stateNode;typeof U.componentWillUnmount==="function"&&LN(Z,Z.return,U),t7(Z);break;case 27:R0(Z,x3,Z.stateNode);case 26:case 5:I9(Z,Z.return),t7(Z);break;case 22:Z.memoizedState===null&&t7(Z);break;case 30:t7(Z);break;default:t7(Z)}(Z.mode&N1)!==J1&&0<=n0&&0<=Z1&&(M5||0.05<U5)&&z9(Z,n0,Z1,U5,W5),Q2(X),M9(J),W5=q,M5=W}function t7(Z){for(Z=Z.child;Z!==null;)jN(Z),Z=Z.sibling}function DN(Z,X,J,q){var W=X2(),U=L9(),M=N9(),_=R9(),V=J.flags;switch(J.tag){case 0:case 11:case 15:V9(Z,J,q),UN(J,B2);break;case 1:if(V9(Z,J,q),X=J.stateNode,typeof X.componentDidMount==="function"&&R0(J,uH,J,X),X=J.updateQueue,X!==null){Z=J.stateNode;try{R0(J,aD,X,Z)}catch(j){u1(J,J.return,j)}}q&&V&64&&FN(J),j3(J,J.return);break;case 27:_N(J);case 26:case 5:V9(Z,J,q),q&&X===null&&V&4&&NN(J),j3(J,J.return);break;case 12:if(q&&V&4){V=t9(),V9(Z,J,q),q=J.stateNode,q.effectDuration+=M3(V);try{R0(J,MN,J,X,o6,q.effectDuration)}catch(j){u1(J,J.return,j)}}else V9(Z,J,q);break;case 31:V9(Z,J,q),q&&V&4&&VN(Z,J);break;case 13:V9(Z,J,q),q&&V&4&&PN(Z,J);break;case 22:J.memoizedState===null&&V9(Z,J,q),j3(J,J.return);break;case 30:break;default:V9(Z,J,q)}(J.mode&N1)!==J1&&0<=n0&&0<=Z1&&(M5||0.05<U5)&&z9(J,n0,Z1,U5,W5),Q2(W),M9(U),W5=M,M5=_}function V9(Z,X,J){J=J&&(X.subtreeFlags&8772)!==0;for(X=X.child;X!==null;)DN(Z,X.alternate,X,J),X=X.sibling}function OW(Z,X){var J=null;Z!==null&&Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(J=Z.memoizedState.cachePool.pool),Z=null,X.memoizedState!==null&&X.memoizedState.cachePool!==null&&(Z=X.memoizedState.cachePool.pool),Z!==J&&(Z!=null&&r7(Z),J!=null&&L3(J))}function AW(Z,X){Z=null,X.alternate!==null&&(Z=X.alternate.memoizedState.cache),X=X.memoizedState.cache,X!==Z&&(r7(X),Z!=null&&L3(Z))}function c2(Z,X,J,q,W){if(X.subtreeFlags&10256||X.actualDuration!==0&&(X.alternate===null||X.alternate.child!==X.child))for(X=X.child;X!==null;){var U=X.sibling;SN(Z,X,J,q,U!==null?U.actualStartTime:W),X=U}}function SN(Z,X,J,q,W){var U=X2(),M=L9(),_=N9(),V=R9(),j=r6,l=X.flags;switch(X.tag){case 0:case 11:case 15:(X.mode&N1)!==J1&&0<X.actualStartTime&&(X.flags&1)!==0&&Z$(X,X.actualStartTime,W,f5,J),c2(Z,X,J,q,W),l&2048&&zN(X,b4|S2);break;case 1:(X.mode&N1)!==J1&&0<X.actualStartTime&&((X.flags&128)!==0?$K(X,X.actualStartTime,W,[]):(X.flags&1)!==0&&Z$(X,X.actualStartTime,W,f5,J)),c2(Z,X,J,q,W);break;case 3:var d=t9(),m=f5;f5=X.alternate!==null&&X.alternate.memoizedState.isDehydrated&&(X.flags&256)===0,c2(Z,X,J,q,W),f5=m,l&2048&&(J=null,X.alternate!==null&&(J=X.alternate.memoizedState.cache),q=X.memoizedState.cache,q!==J&&(r7(q),J!=null&&L3(J))),Z.passiveEffectDuration+=W$(d);break;case 12:if(l&2048){l=t9(),c2(Z,X,J,q,W),Z=X.stateNode,Z.passiveEffectDuration+=M3(l);try{R0(X,WS,X,X.alternate,o6,Z.passiveEffectDuration)}catch(X0){u1(X,X.return,X0)}}else c2(Z,X,J,q,W);break;case 31:l=f5,d=X.alternate!==null?X.alternate.memoizedState:null,m=X.memoizedState,d!==null&&m===null?(m=X.deletions,m!==null&&0<m.length&&m[0].tag===18?(f5=!1,d=d.hydrationErrors,d!==null&&$K(X,X.actualStartTime,W,d)):f5=!0):f5=!1,c2(Z,X,J,q,W),f5=l;break;case 13:l=f5,d=X.alternate!==null?X.alternate.memoizedState:null,m=X.memoizedState,d===null||d.dehydrated===null||m!==null&&m.dehydrated!==null?f5=!1:(m=X.deletions,m!==null&&0<m.length&&m[0].tag===18?(f5=!1,d=d.hydrationErrors,d!==null&&$K(X,X.actualStartTime,W,d)):f5=!0),c2(Z,X,J,q,W),f5=l;break;case 23:break;case 22:m=X.stateNode,d=X.alternate,X.memoizedState!==null?m._visibility&$6?c2(Z,X,J,q,W):D3(Z,X,J,q,W):m._visibility&$6?c2(Z,X,J,q,W):(m._visibility|=$6,OZ(Z,X,J,q,(X.subtreeFlags&10256)!==0||X.actualDuration!==0&&(X.alternate===null||X.alternate.child!==X.child),W),(X.mode&N1)===J1||f5||(Z=X.actualStartTime,0<=Z&&0.05<W-Z&&eJ(X,Z,W),0<=n0&&0<=Z1&&0.05<Z1-n0&&eJ(X,n0,Z1))),l&2048&&OW(d,X);break;case 24:c2(Z,X,J,q,W),l&2048&&AW(X.alternate,X);break;default:c2(Z,X,J,q,W)}if((X.mode&N1)!==J1){if(Z=!f5&&X.alternate===null&&X.return!==null&&X.return.alternate!==null)J=X.actualStartTime,0<=J&&0.05<W-J&&U9(X,J,W,"Mount");0<=n0&&0<=Z1&&((M5||0.05<U5)&&z9(X,n0,Z1,U5,W5),Z&&0.05<Z1-n0&&U9(X,n0,Z1,"Mount"))}Q2(U),M9(M),W5=_,M5=V,r6=j}function OZ(Z,X,J,q,W,U){W=W&&((X.subtreeFlags&10256)!==0||X.actualDuration!==0&&(X.alternate===null||X.alternate.child!==X.child));for(X=X.child;X!==null;){var M=X.sibling;EN(Z,X,J,q,W,M!==null?M.actualStartTime:U),X=M}}function EN(Z,X,J,q,W,U){var M=X2(),_=L9(),V=N9(),j=R9(),l=r6;W&&(X.mode&N1)!==J1&&0<X.actualStartTime&&(X.flags&1)!==0&&Z$(X,X.actualStartTime,U,f5,J);var d=X.flags;switch(X.tag){case 0:case 11:case 15:OZ(Z,X,J,q,W,U),zN(X,b4);break;case 23:break;case 22:var m=X.stateNode;X.memoizedState!==null?m._visibility&$6?OZ(Z,X,J,q,W,U):D3(Z,X,J,q,U):(m._visibility|=$6,OZ(Z,X,J,q,W,U)),W&&d&2048&&OW(X.alternate,X);break;case 24:OZ(Z,X,J,q,W,U),W&&d&2048&&AW(X.alternate,X);break;default:OZ(Z,X,J,q,W,U)}(X.mode&N1)!==J1&&0<=n0&&0<=Z1&&(M5||0.05<U5)&&z9(X,n0,Z1,U5,W5),Q2(M),M9(_),W5=V,M5=j,r6=l}function D3(Z,X,J,q,W){if(X.subtreeFlags&10256||X.actualDuration!==0&&(X.alternate===null||X.alternate.child!==X.child))for(var U=X.child;U!==null;){X=U.sibling;var M=Z,_=J,V=q,j=X!==null?X.actualStartTime:W,l=r6;(U.mode&N1)!==J1&&0<U.actualStartTime&&(U.flags&1)!==0&&Z$(U,U.actualStartTime,j,f5,_);var d=U.flags;switch(U.tag){case 22:D3(M,U,_,V,j),d&2048&&OW(U.alternate,U);break;case 24:D3(M,U,_,V,j),d&2048&&AW(U.alternate,U);break;default:D3(M,U,_,V,j)}r6=l,U=X}}function AZ(Z,X,J){if(Z.subtreeFlags&_Q)for(Z=Z.child;Z!==null;)bN(Z,X,J),Z=Z.sibling}function bN(Z,X,J){switch(Z.tag){case 26:AZ(Z,X,J),Z.flags&_Q&&Z.memoizedState!==null&&ZE(J,t2,Z.memoizedState,Z.memoizedProps);break;case 5:AZ(Z,X,J);break;case 3:case 4:var q=t2;t2=i$(Z.stateNode.containerInfo),AZ(Z,X,J),t2=q;break;case 22:Z.memoizedState===null&&(q=Z.alternate,q!==null&&q.memoizedState!==null?(q=_Q,_Q=16777216,AZ(Z,X,J),_Q=q):AZ(Z,X,J));break;default:AZ(Z,X,J)}}function yN(Z){var X=Z.alternate;if(X!==null&&(Z=X.child,Z!==null)){X.child=null;do X=Z.sibling,Z.sibling=null,Z=X;while(Z!==null)}}function S3(Z){var X=Z.deletions;if((Z.flags&16)!==0){if(X!==null)for(var J=0;J<X.length;J++){var q=X[J],W=X2();e5=q,vN(q,Z),(q.mode&N1)!==J1&&0<=n0&&0<=Z1&&0.05<Z1-n0&&U9(q,n0,Z1,"Unmount"),Q2(W)}yN(Z)}if(Z.subtreeFlags&10256)for(Z=Z.child;Z!==null;)gN(Z),Z=Z.sibling}function gN(Z){var X=X2(),J=L9(),q=N9(),W=R9();switch(Z.tag){case 0:case 11:case 15:S3(Z),Z.flags&2048&&MW(Z,Z.return,b4|S2);break;case 3:var U=t9();S3(Z),Z.stateNode.passiveEffectDuration+=W$(U);break;case 12:U=t9(),S3(Z),Z.stateNode.passiveEffectDuration+=M3(U);break;case 22:U=Z.stateNode,Z.memoizedState!==null&&U._visibility&$6&&(Z.return===null||Z.return.tag!==13)?(U._visibility&=~$6,k$(Z),(Z.mode&N1)!==J1&&0<=n0&&0<=Z1&&0.05<Z1-n0&&U9(Z,n0,Z1,"Disconnect")):S3(Z);break;default:S3(Z)}(Z.mode&N1)!==J1&&0<=n0&&0<=Z1&&(M5||0.05<U5)&&z9(Z,n0,Z1,U5,W5),Q2(X),M9(J),M5=W,W5=q}function k$(Z){var X=Z.deletions;if((Z.flags&16)!==0){if(X!==null)for(var J=0;J<X.length;J++){var q=X[J],W=X2();e5=q,vN(q,Z),(q.mode&N1)!==J1&&0<=n0&&0<=Z1&&0.05<Z1-n0&&U9(q,n0,Z1,"Unmount"),Q2(W)}yN(Z)}for(Z=Z.child;Z!==null;)hN(Z),Z=Z.sibling}function hN(Z){var X=X2(),J=L9(),q=N9(),W=R9();switch(Z.tag){case 0:case 11:case 15:MW(Z,Z.return,b4),k$(Z);break;case 22:var U=Z.stateNode;U._visibility&$6&&(U._visibility&=~$6,k$(Z));break;default:k$(Z)}(Z.mode&N1)!==J1&&0<=n0&&0<=Z1&&(M5||0.05<U5)&&z9(Z,n0,Z1,U5,W5),Q2(X),M9(J),M5=W,W5=q}function vN(Z,X){for(;e5!==null;){var J=e5,q=J,W=X,U=X2(),M=L9(),_=N9(),V=R9();switch(q.tag){case 0:case 11:case 15:MW(q,W,b4);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(W=q.memoizedState.cachePool.pool,W!=null&&r7(W));break;case 24:L3(q.memoizedState.cache)}if((q.mode&N1)!==J1&&0<=n0&&0<=Z1&&(M5||0.05<U5)&&z9(q,n0,Z1,U5,W5),Q2(U),M9(M),M5=V,W5=_,q=J.child,q!==null)q.return=J,e5=q;else Z:for(J=Z;e5!==null;){if(q=e5,U=q.sibling,M=q.return,IN(q),q===J){e5=null;break Z}if(U!==null){U.return=M,e5=U;break Z}e5=M}}}function zS(){gb.forEach(function(Z){return Z()})}function xN(){var Z=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return Z||q0.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),Z}function $2(Z){if((x1&p5)!==Z4&&_1!==0)return _1&-_1;var X=q0.T;return X!==null?(X._updatedFibers||(X._updatedFibers=new Set),X._updatedFibers.add(Z),DW()):i()}function kN(){if(i4===0)if((_1&536870912)===0||E1){var Z=JY;JY<<=1,(JY&3932160)===0&&(JY=262144),i4=Z}else i4=536870912;return Z=H2.current,Z!==null&&(Z.flags|=32),i4}function L5(Z,X,J){if(qX&&console.error("useInsertionEffect must not schedule updates."),HB&&(pY=!0),Z===s1&&(l1===z8||l1===F8)||Z.cancelPendingCommit!==null)TZ(Z,0),m6(Z,_1,i4,!1);if(b0(Z,J),(x1&p5)!==Z4&&Z===s1){if(D9)switch(X.tag){case 0:case 11:case 15:Z=A1&&E(A1)||"Unknown",BA.has(Z)||(BA.add(Z),X=E(X)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",X,Z,Z));break;case 1:HA||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),HA=!0)}}else E9&&R2(Z,X,J),TS(X),Z===s1&&((x1&p5)===Z4&&(q7|=J),z5===J7&&m6(Z,_1,i4,!1)),P9(Z)}function mN(Z,X,J){if((x1&(p5|U2))!==Z4)throw Error("Should not already be working.");if(_1!==0&&A1!==null){var q=A1,W=o5();switch(JO){case IQ:case z8:var U=YQ;J5&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",U,W,I2,void 0,"primary-light")):console.timeStamp("Suspended",U,W,I2,void 0,"primary-light"));break;case F8:U=YQ,J5&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",U,W,I2,void 0,"primary-light")):console.timeStamp("Action",U,W,I2,void 0,"primary-light"));break;default:J5&&(q=W-YQ,3>q||console.timeStamp("Blocked",YQ,W,I2,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}U=(J=!J&&(X&127)===0&&(X&Z.expiredLanes)===0||v0(Z,X))?LS(Z,X):TW(Z,X,!0);var M=J;do{if(U===L6){$X&&!J&&m6(Z,X,0,!1),X=l1,YQ=D5(),JO=X;break}else{if(q=o5(),W=Z.current.alternate,M&&!FS(W)){e4(X),W=t5,U=q,!J5||U<=W||(O5?O5.run(console.timeStamp.bind(console,"Teared Render",W,U,w1,P1,"error")):console.timeStamp("Teared Render",W,U,w1,P1,"error")),e7(X,q),U=TW(Z,X,!1),M=!1;continue}if(U===U8){if(M=X,Z.errorRecoveryDisabledLanes&M)var _=0;else _=Z.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){e4(X),YK(t5,q,X,O5),e7(X,q),X=_;Z:{q=Z,U=M,M=VQ;var V=q.current.memoizedState.isDehydrated;if(V&&(TZ(q,_).flags|=256),_=TW(q,_,!1),_!==U8){if(QB&&!V){q.errorRecoveryDisabledLanes|=U,q7|=U,U=J7;break Z}q=y4,y4=M,q!==null&&(y4===null?y4=q:y4.push.apply(y4,q))}U=_}if(M=!1,U!==U8)continue;else q=o5()}}if(U===AQ){e4(X),YK(t5,q,X,O5),e7(X,q),TZ(Z,0),m6(Z,X,0,!0);break}Z:{switch(J=Z,U){case L6:case AQ:throw Error("Root did not complete. This is a bug in React.");case J7:if((X&4194048)!==X)break;case gY:e4(X),mL(t5,q,X,O5),e7(X,q),W=X,(W&127)!==0?_Y=q:(W&4194048)!==0&&(OY=q),m6(J,X,i4,!$7);break Z;case U8:y4=null;break;case yY:case oO:break;default:throw Error("Unknown root exit status.")}if(q0.actQueue!==null)VW(J,W,X,y4,PQ,xY,i4,q7,L8,U,null,null,t5,q);else{if((X&62914560)===X&&(M=kY+ZA-o5(),10<M)){if(m6(J,X,i4,!$7),V5(J,0,!0)!==0)break Z;e2=X,J.timeoutHandle=_A(uN.bind(null,J,W,y4,PQ,xY,X,i4,q7,L8,$7,U,"Throttled",t5,q),M);break Z}uN(J,W,y4,PQ,xY,X,i4,q7,L8,$7,U,null,t5,q)}}}break}while(1);P9(Z)}function uN(Z,X,J,q,W,U,M,_,V,j,l,d,m,X0){Z.timeoutHandle=O8;var j0=X.subtreeFlags,g0=null;if(j0&8192||(j0&16785408)===16785408){if(g0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:a9},bN(X,U,g0),j0=(U&62914560)===U?kY-o5():(U&4194048)===U?eO-o5():0,j0=XE(g0,j0),j0!==null){e2=U,Z.cancelPendingCommit=j0(VW.bind(null,Z,X,U,J,q,W,M,_,V,l,g0,g0.waitingForViewTransition?"Waiting for the previous Animation":0<g0.count?0<g0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":g0.imgCount===1?"Suspended on an Image":0<g0.imgCount?"Suspended on Images":null,m,X0)),m6(Z,U,M,!j);return}}VW(Z,X,U,J,q,W,M,_,V,l,g0,d,m,X0)}function FS(Z){for(var X=Z;;){var J=X.tag;if((J===0||J===11||J===15)&&X.flags&16384&&(J=X.updateQueue,J!==null&&(J=J.stores,J!==null)))for(var q=0;q<J.length;q++){var W=J[q],U=W.getSnapshot;W=W.value;try{if(!D4(U(),W))return!1}catch(M){return!1}}if(J=X.child,X.subtreeFlags&16384&&J!==null)J.return=X,X=J;else{if(X===Z)break;for(;X.sibling===null;){if(X.return===null||X.return===Z)return!0;X=X.return}X.sibling.return=X.return,X=X.sibling}}return!0}function m6(Z,X,J,q){X&=~JB,X&=~q7,Z.suspendedLanes|=X,Z.pingedLanes&=~X,q&&(Z.warmLanes|=X),q=Z.expirationTimes;for(var W=X;0<W;){var U=31-w4(W),M=1<<U;q[U]=-1,W&=~M}J!==0&&I1(Z,J,X)}function IZ(){return(x1&(p5|U2))===Z4?(y3(0,!1),!1):!0}function IW(){if(A1!==null){if(l1===d4)var Z=A1.return;else Z=A1,q$(),yK(Z),nZ=null,FQ=0,Z=A1;for(;Z!==null;)BN(Z.alternate,Z),Z=Z.return;A1=null}}function e7(Z,X){(Z&127)!==0&&(t6=X),(Z&4194048)!==0&&(v9=X),(Z&62914560)!==0&&(XO=X),(Z&2080374784)!==0&&(QO=X)}function TZ(Z,X){J5&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",P1,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",P1,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",P1,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",P1,"primary-light"));var J=t5;if(t5=D5(),_1!==0&&0<J){if(e4(_1),z5===yY||z5===J7)mL(J,t5,X,O5);else{var q=t5,W=O5;if(J5&&!(q<=J)){var U=(X&738197653)===X?"tertiary-dark":"primary-dark",M=(X&536870912)===X?"Prewarm":(X&201326741)===X?"Interrupted Hydration":"Interrupted Render";W?W.run(console.timeStamp.bind(console,M,J,q,w1,P1,U)):console.timeStamp(M,J,q,w1,P1,U)}}e7(_1,t5)}if(J=O5,O5=null,(X&127)!==0){O5=QQ,W=0<=h9&&h9<t6?t6:h9,q=0<=$8&&$8<t6?t6:$8,U=0<=q?q:0<=W?W:t5,0<=_Y?(e4(2),uL(_Y,U,X,J)):(AY&127)!==0&&(e4(2),z3(t6,U,H6)),J=W;var _=q,V=JQ,j=0<cZ,l=e6===XQ,d=e6===RY;if(W=t5,q=QQ,U=hH,M=vH,J5){if(w1="Blocking",0<J?J>W&&(J=W):J=W,0<_?_>J&&(_=J):_=J,V!==null&&J>_){var m=j?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,j?"Consecutive":"Event: "+V,_,J,w1,P1,m)):console.timeStamp(j?"Consecutive":"Event: "+V,_,J,w1,P1,m)}W>J&&(_=l?"error":(X&738197653)===X?"tertiary-light":"primary-light",l=d?"Promise Resolved":l?"Cascading Update":5<W-J?"Update Blocked":"Update",d=[],M!=null&&d.push(["Component name",M]),U!=null&&d.push(["Method name",U]),J={start:J,end:W,detail:{devtools:{properties:d,track:w1,trackGroup:P1,color:_}}},q?q.run(performance.measure.bind(performance,l,J)):performance.measure(l,J))}h9=-1.1,e6=0,vH=hH=null,_Y=-1.1,cZ=$8,$8=-1.1,t6=D5()}if((X&4194048)!==0&&(O5=$Q,W=0<=W6&&W6<v9?v9:W6,J=0<=j2&&j2<v9?v9:j2,q=0<=Z7&&Z7<v9?v9:Z7,U=0<=q?q:0<=J?J:t5,0<=OY?(e4(256),uL(OY,U,X,O5)):(AY&4194048)!==0&&(e4(256),z3(v9,U,H6)),d=q,_=Y8,V=0<X7,j=xH===RY,U=t5,q=$Q,M=e_,l=ZO,J5&&(w1="Transition",0<J?J>U&&(J=U):J=U,0<W?W>J&&(W=J):W=J,0<d?d>W&&(d=W):d=W,W>d&&_!==null&&(m=V?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,V?"Consecutive":"Event: "+_,d,W,w1,P1,m)):console.timeStamp(V?"Consecutive":"Event: "+_,d,W,w1,P1,m)),J>W&&(q?q.run(console.timeStamp.bind(console,"Action",W,J,w1,P1,"primary-dark")):console.timeStamp("Action",W,J,w1,P1,"primary-dark")),U>J&&(W=j?"Promise Resolved":5<U-J?"Update Blocked":"Update",d=[],l!=null&&d.push(["Component name",l]),M!=null&&d.push(["Method name",M]),J={start:J,end:U,detail:{devtools:{properties:d,track:w1,trackGroup:P1,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,W,J)):performance.measure(W,J))),j2=W6=-1.1,xH=0,OY=-1.1,X7=Z7,Z7=-1.1,v9=D5()),(X&62914560)!==0&&(AY&62914560)!==0&&(e4(4194304),z3(XO,t5,H6)),(X&2080374784)!==0&&(AY&2080374784)!==0&&(e4(268435456),z3(QO,t5,H6)),J=Z.timeoutHandle,J!==O8&&(Z.timeoutHandle=O8,rb(J)),J=Z.cancelPendingCommit,J!==null&&(Z.cancelPendingCommit=null,J()),e2=0,IW(),s1=Z,A1=J=n9(Z.current,null),_1=X,l1=d4,z2=null,$7=!1,$X=v0(Z,X),QB=!1,z5=L6,L8=i4=JB=q7=Y7=0,y4=VQ=null,xY=!1,(X&8)!==0&&(X|=X&32),q=Z.entangledLanes,q!==0)for(Z=Z.entanglements,q&=X;0<q;)W=31-w4(q),U=1<<W,X|=Z[W],q&=~U;return k9=X,X$(),Z=r_(),1000<Z-c_&&(q0.recentlyCreatedOwnerStacks=0,c_=Z),s2.discardPendingWarnings(),J}function fN(Z,X){K1=null,q0.H=RQ,q0.getCurrentStack=null,D9=!1,G2=null,X===aZ||X===PY?(X=KM(),l1=IQ):X===fH?(X=KM(),l1=tO):l1=X===oH?XB:X!==null&&typeof X==="object"&&typeof X.then==="function"?TQ:hY,z2=X;var J=A1;J===null?(z5=AQ,E$(Z,Z2(X,Z.current))):J.mode&N1&&OK(J)}function pN(){var Z=H2.current;return Z===null?!0:(_1&4194048)===_1?D2===null?!0:!1:(_1&62914560)===_1||(_1&536870912)!==0?Z===D2:!1}function lN(){var Z=q0.H;return q0.H=RQ,Z===null?RQ:Z}function dN(){var Z=q0.A;return q0.A=yb,Z}function m$(Z){O5===null&&(O5=Z._debugTask==null?null:Z._debugTask)}function u$(){z5=J7,$7||(_1&4194048)!==_1&&H2.current!==null||($X=!0),(Y7&134217727)===0&&(q7&134217727)===0||s1===null||m6(s1,_1,i4,!1)}function TW(Z,X,J){var q=x1;x1|=p5;var W=lN(),U=dN();if(s1!==Z||_1!==X){if(E9){var M=Z.memoizedUpdaters;0<M.size&&(b3(Z,_1),M.clear()),c1(Z,X)}PQ=null,TZ(Z,X)}X=!1,M=z5;Z:do try{if(l1!==d4&&A1!==null){var _=A1,V=z2;switch(l1){case XB:IW(),M=gY;break Z;case IQ:case z8:case F8:case TQ:H2.current===null&&(X=!0);var j=l1;if(l1=d4,z2=null,VZ(Z,_,V,j),J&&$X){M=L6;break Z}break;default:j=l1,l1=d4,z2=null,VZ(Z,_,V,j)}}iN(),M=z5;break}catch(l){fN(Z,l)}while(1);return X&&Z.shellSuspendCounter++,q$(),x1=q,q0.H=W,q0.A=U,A1===null&&(s1=null,_1=0,X$()),M}function iN(){for(;A1!==null;)cN(A1)}function LS(Z,X){var J=x1;x1|=p5;var q=lN(),W=dN();if(s1!==Z||_1!==X){if(E9){var U=Z.memoizedUpdaters;0<U.size&&(b3(Z,_1),U.clear()),c1(Z,X)}PQ=null,mY=o5()+XA,TZ(Z,X)}else $X=v0(Z,X);Z:do try{if(l1!==d4&&A1!==null)X:switch(X=A1,U=z2,l1){case hY:l1=d4,z2=null,VZ(Z,X,U,hY);break;case z8:case F8:if(qM(U)){l1=d4,z2=null,rN(X);break}X=function(){l1!==z8&&l1!==F8||s1!==Z||(l1=vY),P9(Z)},U.then(X,X);break Z;case IQ:l1=vY;break Z;case tO:l1=ZB;break Z;case vY:qM(U)?(l1=d4,z2=null,rN(X)):(l1=d4,z2=null,VZ(Z,X,U,vY));break;case ZB:var M=null;switch(A1.tag){case 26:M=A1.memoizedState;case 5:case 27:var _=A1;if(M?mR(M):_.stateNode.complete){l1=d4,z2=null;var V=_.sibling;if(V!==null)A1=V;else{var j=_.return;j!==null?(A1=j,f$(j)):A1=null}break X}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}l1=d4,z2=null,VZ(Z,X,U,ZB);break;case TQ:l1=d4,z2=null,VZ(Z,X,U,TQ);break;case XB:IW(),z5=gY;break Z;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}q0.actQueue!==null?iN():MS();break}catch(l){fN(Z,l)}while(1);if(q$(),q0.H=q,q0.A=W,x1=J,A1!==null)return L6;return s1=null,_1=0,X$(),z5}function MS(){for(;A1!==null&&!FE();)cN(A1)}function cN(Z){var X=Z.alternate;(Z.mode&N1)!==J1?(_K(Z),X=R0(Z,zW,X,Z,k9),OK(Z)):X=R0(Z,zW,X,Z,k9),Z.memoizedProps=Z.pendingProps,X===null?f$(Z):A1=X}function rN(Z){var X=R0(Z,NS,Z);Z.memoizedProps=Z.pendingProps,X===null?f$(Z):A1=X}function NS(Z){var X=Z.alternate,J=(Z.mode&N1)!==J1;switch(J&&_K(Z),Z.tag){case 15:case 0:X=$N(X,Z,Z.pendingProps,Z.type,void 0,_1);break;case 11:X=$N(X,Z,Z.pendingProps,Z.type.render,Z.ref,_1);break;case 5:yK(Z);default:BN(X,Z),Z=A1=cL(Z,k9),X=zW(X,Z,k9)}return J&&OK(Z),X}function VZ(Z,X,J,q){q$(),yK(X),nZ=null,FQ=0;var W=X.return;try{if(XS(Z,W,X,J,_1)){z5=AQ,E$(Z,Z2(J,Z.current)),A1=null;return}}catch(U){if(W!==null)throw A1=W,U;z5=AQ,E$(Z,Z2(J,Z.current)),A1=null;return}if(X.flags&32768){if(E1||q===hY)Z=!0;else if($X||(_1&536870912)!==0)Z=!1;else if($7=Z=!0,q===z8||q===F8||q===IQ||q===TQ)q=H2.current,q!==null&&q.tag===13&&(q.flags|=16384);aN(X,Z)}else f$(X)}function f$(Z){var X=Z;do{if((X.flags&32768)!==0){aN(X,$7);return}var J=X.alternate;if(Z=X.return,_K(X),J=R0(X,$S,J,X,k9),(X.mode&N1)!==J1&&XM(X),J!==null){A1=J;return}if(X=X.sibling,X!==null){A1=X;return}A1=X=Z}while(X!==null);z5===L6&&(z5=oO)}function aN(Z,X){do{var J=YS(Z.alternate,Z);if(J!==null){J.flags&=32767,A1=J;return}if((Z.mode&N1)!==J1){XM(Z),J=Z.actualDuration;for(var q=Z.child;q!==null;)J+=q.actualDuration,q=q.sibling;Z.actualDuration=J}if(J=Z.return,J!==null&&(J.flags|=32768,J.subtreeFlags=0,J.deletions=null),!X&&(Z=Z.sibling,Z!==null)){A1=Z;return}A1=Z=J}while(Z!==null);z5=gY,A1=null}function VW(Z,X,J,q,W,U,M,_,V,j,l,d,m,X0){Z.cancelPendingCommit=null;do E3();while(g5!==K7);if(s2.flushLegacyContextWarning(),s2.flushPendingUnsafeLifecycleWarnings(),(x1&(p5|U2))!==Z4)throw Error("Should not already be working.");if(e4(J),j===U8?YK(m,X0,J,O5):q!==null?pD(m,X0,J,q,X!==null&&X.alternate!==null&&X.alternate.memoizedState.isDehydrated&&(X.flags&256)!==0,O5):fD(m,X0,J,O5),X!==null){if(J===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),X===Z.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(U=X.lanes|X.childLanes,U|=SH,B1(Z,J,U,M,_,V),Z===s1&&(A1=s1=null,_1=0),YX=X,W7=Z,e2=J,qB=U,KB=W,GA=q,GB=X0,KA=d,Z9=uY,WA=null,X.actualDuration!==0||(X.subtreeFlags&10256)!==0||(X.flags&10256)!==0?(Z.callbackNode=null,Z.callbackPriority=0,IS(SZ,function(){return EQ=window.event,Z9===uY&&(Z9=YB),eN(),null})):(Z.callbackNode=null,Z.callbackPriority=0),K6=null,o6=D5(),d!==null&&lD(X0,o6,d,O5),q=(X.flags&13878)!==0,(X.subtreeFlags&13878)!==0||q){q=q0.T,q0.T=null,W=f1.p,f1.p=K2,M=x1,x1|=U2;try{BS(Z,X,J)}finally{x1=M,f1.p=W,q0.T=q}}g5=JA,nN(),sN(),oN()}}function nN(){if(g5===JA){g5=K7;var Z=W7,X=YX,J=e2,q=(X.flags&13878)!==0;if((X.subtreeFlags&13878)!==0||q){q=q0.T,q0.T=null;var W=f1.p;f1.p=K2;var U=x1;x1|=U2;try{QX=J,JX=Z,H$(),wN(X,Z),JX=QX=null,J=_B;var M=vL(Z.containerInfo),_=J.focusedElem,V=J.selectionRange;if(M!==_&&_&&_.ownerDocument&&hL(_.ownerDocument.documentElement,_)){if(V!==null&&QK(_)){var{start:j,end:l}=V;if(l===void 0&&(l=j),"selectionStart"in _)_.selectionStart=j,_.selectionEnd=Math.min(l,_.value.length);else{var d=_.ownerDocument||document,m=d&&d.defaultView||window;if(m.getSelection){var X0=m.getSelection(),j0=_.textContent.length,g0=Math.min(V.start,j0),e1=V.end===void 0?g0:Math.min(V.end,j0);!X0.extend&&g0>e1&&(M=e1,e1=g0,g0=M);var g1=gL(_,g0),x=gL(_,e1);if(g1&&x&&(X0.rangeCount!==1||X0.anchorNode!==g1.node||X0.anchorOffset!==g1.offset||X0.focusNode!==x.node||X0.focusOffset!==x.offset)){var u=d.createRange();u.setStart(g1.node,g1.offset),X0.removeAllRanges(),g0>e1?(X0.addRange(u),X0.extend(x.node,x.offset)):(u.setEnd(x.node,x.offset),X0.addRange(u))}}}}d=[];for(X0=_;X0=X0.parentNode;)X0.nodeType===1&&d.push({element:X0,left:X0.scrollLeft,top:X0.scrollTop});typeof _.focus==="function"&&_.focus();for(_=0;_<d.length;_++){var p=d[_];p.element.scrollLeft=p.left,p.element.scrollTop=p.top}}Qq=!!RB,_B=RB=null}finally{x1=U,f1.p=W,q0.T=q}}Z.current=X,g5=$A}}function sN(){if(g5===$A){g5=K7;var Z=WA;if(Z!==null){o6=D5();var X=G6,J=o6;!J5||J<=X||(H6?H6.run(console.timeStamp.bind(console,Z,X,J,w1,P1,"secondary-light")):console.timeStamp(Z,X,J,w1,P1,"secondary-light"))}Z=W7,X=YX,J=e2;var q=(X.flags&8772)!==0;if((X.subtreeFlags&8772)!==0||q){q=q0.T,q0.T=null;var W=f1.p;f1.p=K2;var U=x1;x1|=U2;try{QX=J,JX=Z,H$(),AN(Z,X.alternate,X),JX=QX=null}finally{x1=U,f1.p=W,q0.T=q}}Z=GB,X=KA,G6=D5(),Z=X===null?Z:o6,X=G6,J=Z9===$B,q=O5,K6!==null?fL(Z,X,K6,!1,q):!J5||X<=Z||(q?q.run(console.timeStamp.bind(console,J?"Commit Interrupted View Transition":"Commit",Z,X,w1,P1,J?"error":"secondary-dark")):console.timeStamp(J?"Commit Interrupted View Transition":"Commit",Z,X,w1,P1,J?"error":"secondary-dark")),g5=YA}}function oN(){if(g5===qA||g5===YA){if(g5===qA){var Z=G6;G6=D5();var X=G6,J=Z9===$B;!J5||X<=Z||(H6?H6.run(console.timeStamp.bind(console,J?"Interrupted View Transition":"Starting Animation",Z,X,w1,P1,J?"error":"secondary-light")):console.timeStamp(J?"Interrupted View Transition":"Starting Animation",Z,X,w1,P1,J?" error":"secondary-light")),Z9!==$B&&(Z9=QA)}g5=K7,LE(),Z=W7;var q=YX;X=e2,J=GA;var W=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;W?g5=fY:(g5=K7,YX=W7=null,tN(Z,Z.pendingLanes),M8=0,CQ=null);var U=Z.pendingLanes;if(U===0&&(G7=null),W||JR(Z),U=w(X),q=q.stateNode,N4&&typeof N4.onCommitFiberRoot==="function")try{var M=(q.current.flags&128)===128;switch(U){case K2:var _=KH;break;case a2:_=WH;break;case b9:_=SZ;break;case YY:_=HH;break;default:_=SZ}N4.onCommitFiberRoot(EZ,q,_,M)}catch(d){S9||(S9=!0,console.error("React instrumentation encountered an error: %o",d))}if(E9&&Z.memoizedUpdaters.clear(),zS(),J!==null){M=q0.T,_=f1.p,f1.p=K2,q0.T=null;try{var V=Z.onRecoverableError;for(q=0;q<J.length;q++){var j=J[q],l=RS(j.stack);R0(j.source,V,j.value,l)}}finally{q0.T=M,f1.p=_}}(e2&3)!==0&&E3(),P9(Z),U=Z.pendingLanes,(X&261930)!==0&&(U&42)!==0?(TY=!0,Z===WB?wQ++:(wQ=0,WB=Z)):wQ=0,W||e7(X,G6),y3(0,!1)}}function RS(Z){return Z={componentStack:Z},Object.defineProperty(Z,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),Z}function tN(Z,X){(Z.pooledCacheLanes&=X)===0&&(X=Z.pooledCache,X!=null&&(Z.pooledCache=null,L3(X)))}function E3(){return nN(),sN(),oN(),eN()}function eN(){if(g5!==fY)return!1;var Z=W7,X=qB;qB=0;var J=w(e2),q=b9===0||b9>J?b9:J;J=q0.T;var W=f1.p;try{f1.p=q,q0.T=null;var U=KB;KB=null,q=W7;var M=e2;if(g5=K7,YX=W7=null,e2=0,(x1&(p5|U2))!==Z4)throw Error("Cannot flush passive effects while already rendering.");e4(M),HB=!0,pY=!1;var _=0;if(K6=null,_=o5(),Z9===QA)z3(G6,_,H6);else{var V=G6,j=_,l=Z9===YB;!J5||j<=V||(O5?O5.run(console.timeStamp.bind(console,l?"Waiting for Paint":"Waiting",V,j,w1,P1,"secondary-light")):console.timeStamp(l?"Waiting for Paint":"Waiting",V,j,w1,P1,"secondary-light"))}V=x1,x1|=U2;var d=q.current;H$(),gN(d);var m=q.current;d=GB,H$(),SN(q,m,M,U,d),JR(q),x1=V;var X0=o5();if(m=_,d=O5,K6!==null?fL(m,X0,K6,!0,d):!J5||X0<=m||(d?d.run(console.timeStamp.bind(console,"Remaining Effects",m,X0,w1,P1,"secondary-dark")):console.timeStamp("Remaining Effects",m,X0,w1,P1,"secondary-dark")),e7(M,X0),y3(0,!1),pY?q===CQ?M8++:(M8=0,CQ=q):M8=0,pY=HB=!1,N4&&typeof N4.onPostCommitFiberRoot==="function")try{N4.onPostCommitFiberRoot(EZ,q)}catch(g0){S9||(S9=!0,console.error("React instrumentation encountered an error: %o",g0))}var j0=q.current.stateNode;return j0.effectDuration=0,j0.passiveEffectDuration=0,!0}finally{f1.p=W,q0.T=J,tN(Z,X)}}function ZR(Z,X,J){X=Z2(J,X),QM(X),X=QW(Z.stateNode,X,2),Z=h6(Z,X,2),Z!==null&&(b0(Z,2),P9(Z))}function u1(Z,X,J){if(qX=!1,Z.tag===3)ZR(Z,Z,J);else{for(;X!==null;){if(X.tag===3){ZR(X,Z,J);return}if(X.tag===1){var q=X.stateNode;if(typeof X.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(G7===null||!G7.has(q))){Z=Z2(J,Z),QM(Z),J=JW(2),q=h6(X,J,2),q!==null&&($W(J,q,X,Z),b0(q,2),P9(q));return}}X=X.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
154
154
|
|
|
155
155
|
Error message:
|
|
156
156
|
|
|
157
|
-
%s`,
|
|
157
|
+
%s`,J)}}function PW(Z,X,J){var q=Z.pingCache;if(q===null){q=Z.pingCache=new hb;var W=new Set;q.set(X,W)}else W=q.get(X),W===void 0&&(W=new Set,q.set(X,W));W.has(J)||(QB=!0,W.add(J),q=_S.bind(null,Z,X,J),E9&&b3(Z,J),X.then(q,q))}function _S(Z,X,J){var q=Z.pingCache;q!==null&&q.delete(X),Z.pingedLanes|=Z.suspendedLanes&J,Z.warmLanes&=~J,(J&127)!==0?0>h9&&(t6=h9=D5(),QQ=NY("Promise Resolved"),e6=RY):(J&4194048)!==0&&0>j2&&(v9=j2=D5(),$Q=NY("Promise Resolved"),xH=RY),xN()&&q0.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
158
158
|
|
|
159
159
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
160
160
|
|
|
@@ -163,7 +163,7 @@ act(() => {
|
|
|
163
163
|
});
|
|
164
164
|
/* assert on the output */
|
|
165
165
|
|
|
166
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),
|
|
166
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),s1===Z&&(_1&J)===J&&(z5===J7||z5===yY&&(_1&62914560)===_1&&o5()-kY<ZA?(x1&p5)===Z4&&TZ(Z,0):JB|=J,L8===_1&&(L8=0)),P9(Z)}function XR(Z,X){X===0&&(X=K0()),Z=M4(Z,X),Z!==null&&(b0(Z,X),P9(Z))}function OS(Z){var X=Z.memoizedState,J=0;X!==null&&(J=X.retryLane),XR(Z,J)}function AS(Z,X){var J=0;switch(Z.tag){case 31:case 13:var{stateNode:q,memoizedState:W}=Z;W!==null&&(J=W.retryLane);break;case 19:q=Z.stateNode;break;case 22:q=Z.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}q!==null&&q.delete(X),XR(Z,J)}function wW(Z,X,J){if((X.subtreeFlags&67117056)!==0)for(X=X.child;X!==null;){var q=Z,W=X,U=W.type===e$;U=J||U,W.tag!==22?W.flags&67108864?U&&R0(W,QR,q,W):wW(q,W,U):W.memoizedState===null&&(U&&W.flags&8192?R0(W,QR,q,W):W.subtreeFlags&67108864&&R0(W,wW,q,W,U)),X=X.sibling}}function QR(Z,X){X1(!0);try{jN(X),hN(X),DN(Z,X.alternate,X,!1),EN(Z,X,0,null,!1,0)}finally{X1(!1)}}function JR(Z){var X=!0;Z.current.mode&(R4|n2)||(X=!1),wW(Z,Z.current,X)}function $R(Z){if((x1&p5)===Z4){var X=Z.tag;if(X===3||X===1||X===0||X===11||X===14||X===15){if(X=E(Z)||"ReactComponent",lY!==null){if(lY.has(X))return;lY.add(X)}else lY=new Set([X]);R0(Z,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function b3(Z,X){E9&&Z.memoizedUpdaters.forEach(function(J){R2(Z,J,X)})}function IS(Z,X){var J=q0.actQueue;return J!==null?(J.push(X),kb):GH(Z,X)}function TS(Z){xN()&&q0.actQueue===null&&R0(Z,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
167
167
|
|
|
168
168
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
169
169
|
|
|
@@ -172,127 +172,177 @@ act(() => {
|
|
|
172
172
|
});
|
|
173
173
|
/* assert on the output */
|
|
174
174
|
|
|
175
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,i($))})}function $7($){$!==I6&&$.next===null&&(I6===null?OB=I6=$:I6=I6.next=$),wB=!0,x.actQueue!==null?HG||(HG=!0,Xv()):JG||(JG=!0,Xv())}function N$($,B){if(!QG&&wB){QG=!0;do{var X=!1;for(var Y=OB;Y!==null;){if(!B)if($!==0){var Z=Y.pendingLanes;if(Z===0)var G=0;else{var{suspendedLanes:z,pingedLanes:W}=Y;G=(1<<31-M1(42|$)+1)-1,G&=Z&~(z&~W),G=G&201326741?G&201326741|1:G?G|2:0}G!==0&&(X=!0,Bv(Y,G))}else G=V0,G=n2(Y,Y===O2?G:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==w3),(G&3)===0||W0(Y,G)||(X=!0,Bv(Y,G));Y=Y.next}}while(X);QG=!1}}function bq(){z9=window.event,IY()}function IY(){wB=HG=JG=!1;var $=0;I5!==0&&uq()&&($=I5);for(var B=G1(),X=null,Y=OB;Y!==null;){var Z=Y.next,G=eN(Y,B);if(G===0)Y.next=null,X===null?OB=Z:X.next=Z,Z===null&&(I6=X);else if(X=Y,$!==0||(G&3)!==0)wB=!0;Y=Z}r2!==A5&&r2!==gB||N$($,!1),I5!==0&&(I5=0)}function eN($,B){for(var{suspendedLanes:X,pingedLanes:Y,expirationTimes:Z}=$,G=$.pendingLanes&-62914561;0<G;){var z=31-M1(G),W=1<<z,J=Z[z];if(J===-1){if((W&X)===0||(W&Y)!==0)Z[z]=S1(W,B)}else J<=B&&($.expiredLanes|=W);G&=~W}if(B=O2,X=V0,X=n2($,$===B?X:0,$.cancelPendingCommit!==null||$.timeoutHandle!==w3),Y=$.callbackNode,X===0||$===B&&(q2===Q3||q2===L3)||$.cancelPendingCommit!==null)return Y!==null&&bY(Y),$.callbackNode=null,$.callbackPriority=0;if((X&3)===0||W0($,X)){if(B=X&-X,B!==$.callbackPriority||x.actQueue!==null&&Y!==LG)bY(Y);else return B;switch(H(X)){case e1:case m4:X=NZ;break;case W7:X=i3;break;case S8:X=vZ;break;default:X=i3}return Y=$v.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),X=LG):X=zZ(X,Y),$.callbackPriority=B,$.callbackNode=X,B}return Y!==null&&bY(Y),$.callbackPriority=2,$.callbackNode=null,2}function $v($,B){if(n8=r8=!1,z9=window.event,r2!==A5&&r2!==gB)return $.callbackNode=null,$.callbackPriority=0,null;var X=$.callbackNode;if(x4===qB&&(x4=ZG),z$()&&$.callbackNode!==X)return null;var Y=V0;if(Y=n2($,$===O2?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==w3),Y===0)return null;return SN($,Y,B),eN($,G1()),$.callbackNode!=null&&$.callbackNode===X?$v.bind(null,$):null}function Bv($,B){if(z$())return null;r8=n8,n8=!1,SN($,B,!0)}function bY($){$!==LG&&$!==null&&Kg($)}function Xv(){x.actQueue!==null&&x.actQueue.push(function(){return IY(),null}),nK(function(){(Z2&($1|Y4))!==N1?zZ(WZ,bq):IY()})}function CY(){if(I5===0){var $=G3;$===0&&($=T8,T8<<=1,(T8&261888)===0&&(T8=256)),I5=$}return I5}function Yv($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return m0($,"action"),V6(""+$)}function Zv($,B){var X=B.ownerDocument.createElement("input");return X.name=B.name,X.value=B.value,$.id&&X.setAttribute("form",$.id),B.parentNode.insertBefore(X,B),$=new FormData($),X.parentNode.removeChild(X),$}function Cq($,B,X,Y,Z){if(B==="submit"&&X&&X.stateNode===Z){var G=Yv((Z[F1]||null).action),z=Y.submitter;z&&(B=(B=z[F1]||null)?Yv(B.formAction):z.getAttribute("formAction"),B!==null&&(G=B,z=null));var W=new j8("action","action",null,Y,Z);$.push({event:W,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(I5!==0){var J=z?Zv(Z,z):new FormData(Z),Q={pending:!0,data:J,method:Z.method,action:G};Object.freeze(Q),sX(X,Q,null,J)}}else typeof G==="function"&&(W.preventDefault(),J=z?Zv(Z,z):new FormData(Z),Q={pending:!0,data:J,method:Z.method,action:G},Object.freeze(Q),sX(X,Q,G,J))},currentTarget:Z}]})}}function K8($,B,X){$.currentTarget=X;try{B($)}catch(Y){PZ(Y)}$.currentTarget=null}function Gv($,B){B=(B&4)!==0;for(var X=0;X<$.length;X++){var Y=$[X];$:{var Z=void 0,G=Y.event;if(Y=Y.listeners,B)for(var z=Y.length-1;0<=z;z--){var W=Y[z],J=W.instance,Q=W.currentTarget;if(W=W.listener,J!==Z&&G.isPropagationStopped())break $;J!==null?s(J,K8,G,W,Q):K8(G,W,Q),Z=J}else for(z=0;z<Y.length;z++){if(W=Y[z],J=W.instance,Q=W.currentTarget,W=W.listener,J!==Z&&G.isPropagationStopped())break $;J!==null?s(J,K8,G,W,Q):K8(G,W,Q),Z=J}}}}function n0($,B){qG.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var X=B[JZ];X===void 0&&(X=B[JZ]=new Set);var Y=$+"__bubble";X.has(Y)||(zv(B,$,2,!1),X.add(Y))}function mY($,B,X){qG.has($)&&!B&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',$);var Y=0;B&&(Y|=4),zv(X,$,Y,B)}function TY($){if(!$[RB]){$[RB]=!0,XJ.forEach(function(X){X!=="selectionchange"&&(qG.has(X)||mY(X,!1,$),mY(X,!0,$))});var B=$.nodeType===9?$:$.ownerDocument;B===null||B[RB]||(B[RB]=!0,mY("selectionchange",!1,B))}}function zv($,B,X,Y){switch(Vv(B)){case e1:var Z=Ng;break;case m4:Z=vg;break;default:Z=oY}X=Z.bind(null,B,X,$),Z=void 0,!gZ||B!=="touchstart"&&B!=="touchmove"&&B!=="wheel"||(Z=!0),Y?Z!==void 0?$.addEventListener(B,X,{capture:!0,passive:Z}):$.addEventListener(B,X,!0):Z!==void 0?$.addEventListener(B,X,{passive:Z}):$.addEventListener(B,X,!1)}function fY($,B,X,Y,Z){var G=Y;if((B&1)===0&&(B&2)===0&&Y!==null)$:for(;;){if(Y===null)return;var z=Y.tag;if(z===3||z===4){var W=Y.stateNode.containerInfo;if(W===Z)break;if(z===4)for(z=Y.return;z!==null;){var J=z.tag;if((J===3||J===4)&&z.stateNode.containerInfo===Z)return;z=z.return}for(;W!==null;){if(z=y(W),z===null)return;if(J=z.tag,J===5||J===6||J===26||J===27){Y=G=z;continue $}W=W.parentNode}}Y=Y.return}Uz(function(){var Q=G,A=eB(X),P=[];$:{var O=VJ.get($);if(O!==void 0){var f=j8,r=$;switch($){case"keypress":if(A9(X)===0)break $;case"keydown":case"keyup":f=YK;break;case"focusin":r="focus",f=wZ;break;case"focusout":r="blur",f=wZ;break;case"beforeblur":case"afterblur":f=wZ;break;case"click":if(X.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=PJ;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=cg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=zK;break;case xJ:case hJ:case kJ:f=sg;break;case jJ:f=NK;break;case"scroll":case"scrollend":f=dg;break;case"wheel":f=JK;break;case"copy":case"cut":case"paste":f=rg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=bJ;break;case"toggle":case"beforetoggle":f=QK}var X0=(B&4)!==0,_2=!X0&&($==="scroll"||$==="scrollend"),t0=X0?O!==null?O+"Capture":null:O;X0=[];for(var U=Q,w;U!==null;){var M=U;if(w=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||w===null||t0===null||(M=E6(U,t0),M!=null&&X0.push(v$(U,M,w))),_2)break;U=U.return}0<X0.length&&(O=new f(O,r,null,X,A),P.push({event:O,listeners:X0}))}}if((B&7)===0){$:{if(O=$==="mouseover"||$==="pointerover",f=$==="mouseout"||$==="pointerout",O&&X!==R$&&(r=X.relatedTarget||X.fromElement)&&(y(r)||r[W5]))break $;if(f||O){if(O=A.window===A?A:(O=A.ownerDocument)?O.defaultView||O.parentWindow:window,f){if(r=X.relatedTarget||X.toElement,f=Q,r=r?y(r):null,r!==null&&(_2=K0(r),X0=r.tag,r!==_2||X0!==5&&X0!==27&&X0!==6))r=null}else f=null,r=Q;if(f!==r){if(X0=PJ,M="onMouseLeave",t0="onMouseEnter",U="mouse",$==="pointerout"||$==="pointerover")X0=bJ,M="onPointerLeave",t0="onPointerEnter",U="pointer";if(_2=f==null?O:N0(f),w=r==null?O:N0(r),O=new X0(M,U+"leave",f,X,A),O.target=_2,O.relatedTarget=w,M=null,y(A)===Q&&(X0=new X0(t0,U+"enter",r,X,A),X0.target=w,X0.relatedTarget=_2,M=X0),_2=M,f&&r)B:{X0=mq,t0=f,U=r,w=0;for(M=t0;M;M=X0(M))w++;M=0;for(var h=U;h;h=X0(h))M++;for(;0<w-M;)t0=X0(t0),w--;for(;0<M-w;)U=X0(U),M--;for(;w--;){if(t0===U||U!==null&&t0===U.alternate){X0=t0;break B}t0=X0(t0),U=X0(U)}X0=null}else X0=null;f!==null&&Wv(P,O,f,X0,!1),r!==null&&_2!==null&&Wv(P,_2,r,X0,!0)}}}$:{if(O=Q?N0(Q):window,f=O.nodeName&&O.nodeName.toLowerCase(),f==="select"||f==="input"&&O.type==="file")var $0=Az;else if(Mz(O))if(SJ)$0=DL;else{$0=VL;var y0=jL}else f=O.nodeName,!f||f.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?Q&&j6(Q.elementType)&&($0=Az):$0=EL;if($0&&($0=$0($,Q))){Fz(P,$0,X,A);break $}y0&&y0($,O,Q),$==="focusout"&&Q&&O.type==="number"&&Q.memoizedProps.value!=null&&aB(O,"number",O.value)}switch(y0=Q?N0(Q):window,$){case"focusin":if(Mz(y0)||y0.contentEditable==="true")Y6=y0,_Z=Q,b$=null;break;case"focusout":b$=_Z=Y6=null;break;case"mousedown":MZ=!0;break;case"contextmenu":case"mouseup":case"dragend":MZ=!1,fz(P,X,A);break;case"selectionchange":if(KK)break;case"keydown":case"keyup":fz(P,X,A)}var q0;if(RZ)$:{switch($){case"compositionstart":var J0="onCompositionStart";break $;case"compositionend":J0="onCompositionEnd";break $;case"compositionupdate":J0="onCompositionUpdate";break $}J0=void 0}else X6?Rz($,X)&&(J0="onCompositionEnd"):$==="keydown"&&X.keyCode===CJ&&(J0="onCompositionStart");if(J0&&(mJ&&X.locale!=="ko"&&(X6||J0!=="onCompositionStart"?J0==="onCompositionEnd"&&X6&&(q0=Oz()):(N5=A,KZ=("value"in N5)?N5.value:N5.textContent,X6=!0)),y0=U8(Q,J0),0<y0.length&&(J0=new IJ(J0,$,null,X,A),P.push({event:J0,listeners:y0}),q0?J0.data=q0:(q0=_z(X),q0!==null&&(J0.data=q0)))),q0=qK?uL($,X):xL($,X))J0=U8(Q,"onBeforeInput"),0<J0.length&&(y0=new tg("onBeforeInput","beforeinput",null,X,A),P.push({event:y0,listeners:J0}),y0.data=q0);Cq(P,$,Q,X,A)}Gv(P,B)})}function v$($,B,X){return{instance:$,listener:B,currentTarget:X}}function U8($,B){for(var X=B+"Capture",Y=[];$!==null;){var Z=$,G=Z.stateNode;if(Z=Z.tag,Z!==5&&Z!==26&&Z!==27||G===null||(Z=E6($,X),Z!=null&&Y.unshift(v$($,Z,G)),Z=E6($,B),Z!=null&&Y.push(v$($,Z,G))),$.tag===3)return Y;$=$.return}return[]}function mq($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function Wv($,B,X,Y,Z){for(var G=B._reactName,z=[];X!==null&&X!==Y;){var W=X,J=W.alternate,Q=W.stateNode;if(W=W.tag,J!==null&&J===Y)break;W!==5&&W!==26&&W!==27||Q===null||(J=Q,Z?(Q=E6(X,G),Q!=null&&z.unshift(v$(X,Q,J))):Z||(Q=E6(X,G),Q!=null&&z.push(v$(X,Q,J)))),X=X.return}z.length!==0&&$.push({event:B,listeners:z})}function yY($,B){TL($,B),$!=="input"&&$!=="textarea"&&$!=="select"||B==null||B.value!==null||FJ||(FJ=!0,$==="select"&&B.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",$):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",$));var X={registrationNameDependencies:e5,possibleRegistrationNames:HZ};j6($)||typeof B.is==="string"||yL($,B,X),B.contentEditable&&!B.suppressContentEditableWarning&&B.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Z1($,B,X,Y){B!==X&&(X=X5(X),X5(B)!==X&&(Y[$]=B))}function Tq($,B,X){B.forEach(function(Y){X[Jv(Y)]=Y==="style"?uY($):$.getAttribute(Y)})}function B7($,B){B===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",$,$,$):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",$,typeof B)}function Nv($,B){return $=$.namespaceURI===x8||$.namespaceURI===t3?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=B,$.innerHTML}function X5($){return a0($)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",r0($)),u0($)),(typeof $==="string"?$:""+$).replace(lK,`
|
|
176
|
-
`).replace(dK,"")}function vv($,B){return B=X5(B),X5($)===B?!0:!1}function K2($,B,X,Y,Z,G){switch(X){case"children":if(typeof Y==="string")F9(Y,B,!1),B==="body"||B==="textarea"&&Y===""||k6($,Y);else if(typeof Y==="number"||typeof Y==="bigint")F9(""+Y,B,!1),B!=="body"&&k6($,""+Y);break;case"className":R9($,"class",Y);break;case"tabIndex":R9($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":R9($,X,Y);break;case"style":qz($,Y,G);break;case"data":if(B!=="object"){R9($,"data",Y);break}case"src":case"href":if(Y===""&&(B!=="a"||X!=="href")){X==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',X,X):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',X,X),$.removeAttribute(X);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(X);break}m0(Y,X),Y=V6(""+Y),$.setAttribute(X,Y);break;case"action":case"formAction":if(Y!=null&&(B==="form"?X==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof Y==="function"&&(Z.encType==null&&Z.method==null||FB||(FB=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),Z.target==null||MB||(MB=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):B==="input"||B==="button"?X==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):B!=="input"||Z.type==="submit"||Z.type==="image"||_B?B!=="button"||Z.type==null||Z.type==="submit"||_B?typeof Y==="function"&&(Z.name==null||NQ||(NQ=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),Z.formEncType==null&&Z.formMethod==null||FB||(FB=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),Z.formTarget==null||MB||(MB=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(_B=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(_B=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):X==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof Y==="function"){$.setAttribute(X,"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 G==="function"&&(X==="formAction"?(B!=="input"&&K2($,B,"name",Z.name,Z,null),K2($,B,"formEncType",Z.formEncType,Z,null),K2($,B,"formMethod",Z.formMethod,Z,null),K2($,B,"formTarget",Z.formTarget,Z,null)):(K2($,B,"encType",Z.encType,Z,null),K2($,B,"method",Z.method,Z,null),K2($,B,"target",Z.target,Z,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(X);break}m0(Y,X),Y=V6(""+Y),$.setAttribute(X,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&B7(X,Y),$.onclick=K7);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&B7(X,Y),n0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&B7(X,Y),n0("scrollend",$));break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(X=Y.__html,X!=null){if(Z.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=X}}break;case"multiple":$.multiple=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"muted":$.muted=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Y==null||typeof Y==="function"||typeof Y==="boolean"||typeof Y==="symbol"){$.removeAttribute("xlink:href");break}m0(Y,X),X=V6(""+Y),$.setAttributeNS(K3,"xlink:href",X);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(m0(Y,X),$.setAttribute(X,""+Y)):$.removeAttribute(X);break;case"inert":Y!==""||AB[X]||(AB[X]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",X));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":Y&&typeof Y!=="function"&&typeof Y!=="symbol"?$.setAttribute(X,""):$.removeAttribute(X);break;case"capture":case"download":Y===!0?$.setAttribute(X,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(m0(Y,X),$.setAttribute(X,Y)):$.removeAttribute(X);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(m0(Y,X),$.setAttribute(X,Y)):$.removeAttribute(X);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(X):(m0(Y,X),$.setAttribute(X,Y));break;case"popover":n0("beforetoggle",$),n0("toggle",$),w9($,"popover",Y);break;case"xlinkActuate":g7($,K3,"xlink:actuate",Y);break;case"xlinkArcrole":g7($,K3,"xlink:arcrole",Y);break;case"xlinkRole":g7($,K3,"xlink:role",Y);break;case"xlinkShow":g7($,K3,"xlink:show",Y);break;case"xlinkTitle":g7($,K3,"xlink:title",Y);break;case"xlinkType":g7($,K3,"xlink:type",Y);break;case"xmlBase":g7($,gG,"xml:base",Y);break;case"xmlLang":g7($,gG,"xml:lang",Y);break;case"xmlSpace":g7($,gG,"xml:space",Y);break;case"is":G!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),w9($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":vQ||Y==null||typeof Y!=="object"||(vQ=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<X.length)||X[0]!=="o"&&X[0]!=="O"||X[1]!=="n"&&X[1]!=="N"?(X=gz(X),w9($,X,Y)):e5.hasOwnProperty(X)&&Y!=null&&typeof Y!=="function"&&B7(X,Y)}}function SY($,B,X,Y,Z,G){switch(X){case"style":qz($,Y,G);break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(X=Y.__html,X!=null){if(Z.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=X}}break;case"children":typeof Y==="string"?k6($,Y):(typeof Y==="number"||typeof Y==="bigint")&&k6($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&B7(X,Y),n0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&B7(X,Y),n0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&B7(X,Y),$.onclick=K7);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(e5.hasOwnProperty(X))Y!=null&&typeof Y!=="function"&&B7(X,Y);else $:{if(X[0]==="o"&&X[1]==="n"&&(Z=X.endsWith("Capture"),B=X.slice(2,Z?X.length-7:void 0),G=$[F1]||null,G=G!=null?G[X]:null,typeof G==="function"&&$.removeEventListener(B,G,Z),typeof Y==="function")){typeof G!=="function"&&G!==null&&(X in $?$[X]=null:$.hasAttribute(X)&&$.removeAttribute(X)),$.addEventListener(B,Y,Z);break $}X in $?$[X]=Y:Y===!0?$.setAttribute(X,""):w9($,X,Y)}}}function H1($,B,X){switch(yY(B,X),B){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":n0("error",$),n0("load",$);var Y=!1,Z=!1,G;for(G in X)if(X.hasOwnProperty(G)){var z=X[G];if(z!=null)switch(G){case"src":Y=!0;break;case"srcSet":Z=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(B+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:K2($,B,G,z,X,null)}}Z&&K2($,B,"srcSet",X.srcSet,X,null),Y&&K2($,B,"src",X.src,X,null);return;case"input":A4("input",X),n0("invalid",$);var W=G=z=Z=null,J=null,Q=null;for(Y in X)if(X.hasOwnProperty(Y)){var A=X[Y];if(A!=null)switch(Y){case"name":Z=A;break;case"type":z=A;break;case"checked":J=A;break;case"defaultChecked":Q=A;break;case"value":G=A;break;case"defaultValue":W=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(B+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:K2($,B,Y,A,X,null)}}tG($,X),eG($,G,W,J,Q,z,Z,!1);return;case"select":A4("select",X),n0("invalid",$),Y=z=G=null;for(Z in X)if(X.hasOwnProperty(Z)&&(W=X[Z],W!=null))switch(Z){case"value":G=W;break;case"defaultValue":z=W;break;case"multiple":Y=W;default:K2($,B,Z,W,X,null)}Xz($,X),B=G,X=z,$.multiple=!!Y,B!=null?m3($,!!Y,B,!1):X!=null&&m3($,!!Y,X,!0);return;case"textarea":A4("textarea",X),n0("invalid",$),G=Z=Y=null;for(z in X)if(X.hasOwnProperty(z)&&(W=X[z],W!=null))switch(z){case"value":Y=W;break;case"defaultValue":Z=W;break;case"children":G=W;break;case"dangerouslySetInnerHTML":if(W!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:K2($,B,z,W,X,null)}Yz($,X),Gz($,Y,Z,G);return;case"option":$z($,X);for(J in X)if(X.hasOwnProperty(J)&&(Y=X[J],Y!=null))switch(J){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:K2($,B,J,Y,X,null)}return;case"dialog":n0("beforetoggle",$),n0("toggle",$),n0("cancel",$),n0("close",$);break;case"iframe":case"object":n0("load",$);break;case"video":case"audio":for(Y=0;Y<Y9.length;Y++)n0(Y9[Y],$);break;case"image":n0("error",$),n0("load",$);break;case"details":n0("toggle",$);break;case"embed":case"source":case"link":n0("error",$),n0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in X)if(X.hasOwnProperty(Q)&&(Y=X[Q],Y!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(B+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:K2($,B,Q,Y,X,null)}return;default:if(j6(B)){for(A in X)X.hasOwnProperty(A)&&(Y=X[A],Y!==void 0&&SY($,B,A,Y,X,void 0));return}}for(W in X)X.hasOwnProperty(W)&&(Y=X[W],Y!=null&&K2($,B,W,Y,X,null))}function fq($,B,X,Y){switch(yY(B,Y),B){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var Z=null,G=null,z=null,W=null,J=null,Q=null,A=null;for(f in X){var P=X[f];if(X.hasOwnProperty(f)&&P!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":J=P;default:Y.hasOwnProperty(f)||K2($,B,f,null,Y,P)}}for(var O in Y){var f=Y[O];if(P=X[O],Y.hasOwnProperty(O)&&(f!=null||P!=null))switch(O){case"type":G=f;break;case"name":Z=f;break;case"checked":Q=f;break;case"defaultChecked":A=f;break;case"value":z=f;break;case"defaultValue":W=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(B+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:f!==P&&K2($,B,O,f,Y,P)}}B=X.type==="checkbox"||X.type==="radio"?X.checked!=null:X.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,B||!Y||WQ||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),WQ=!0),!B||Y||zQ||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),zQ=!0),oB($,z,W,J,Q,A,G,Z);return;case"select":f=z=W=O=null;for(G in X)if(J=X[G],X.hasOwnProperty(G)&&J!=null)switch(G){case"value":break;case"multiple":f=J;default:Y.hasOwnProperty(G)||K2($,B,G,null,Y,J)}for(Z in Y)if(G=Y[Z],J=X[Z],Y.hasOwnProperty(Z)&&(G!=null||J!=null))switch(Z){case"value":O=G;break;case"defaultValue":W=G;break;case"multiple":z=G;default:G!==J&&K2($,B,Z,G,Y,J)}Y=W,B=z,X=f,O!=null?m3($,!!B,O,!1):!!X!==!!B&&(Y!=null?m3($,!!B,Y,!0):m3($,!!B,B?[]:"",!1));return;case"textarea":f=O=null;for(W in X)if(Z=X[W],X.hasOwnProperty(W)&&Z!=null&&!Y.hasOwnProperty(W))switch(W){case"value":break;case"children":break;default:K2($,B,W,null,Y,Z)}for(z in Y)if(Z=Y[z],G=X[z],Y.hasOwnProperty(z)&&(Z!=null||G!=null))switch(z){case"value":O=Z;break;case"defaultValue":f=Z;break;case"children":break;case"dangerouslySetInnerHTML":if(Z!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Z!==G&&K2($,B,z,Z,Y,G)}Zz($,O,f);return;case"option":for(var r in X)if(O=X[r],X.hasOwnProperty(r)&&O!=null&&!Y.hasOwnProperty(r))switch(r){case"selected":$.selected=!1;break;default:K2($,B,r,null,Y,O)}for(J in Y)if(O=Y[J],f=X[J],Y.hasOwnProperty(J)&&O!==f&&(O!=null||f!=null))switch(J){case"selected":$.selected=O&&typeof O!=="function"&&typeof O!=="symbol";break;default:K2($,B,J,O,Y,f)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var X0 in X)O=X[X0],X.hasOwnProperty(X0)&&O!=null&&!Y.hasOwnProperty(X0)&&K2($,B,X0,null,Y,O);for(Q in Y)if(O=Y[Q],f=X[Q],Y.hasOwnProperty(Q)&&O!==f&&(O!=null||f!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(B+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:K2($,B,Q,O,Y,f)}return;default:if(j6(B)){for(var _2 in X)O=X[_2],X.hasOwnProperty(_2)&&O!==void 0&&!Y.hasOwnProperty(_2)&&SY($,B,_2,void 0,Y,O);for(A in Y)O=Y[A],f=X[A],!Y.hasOwnProperty(A)||O===f||O===void 0&&f===void 0||SY($,B,A,O,Y,f);return}}for(var t0 in X)O=X[t0],X.hasOwnProperty(t0)&&O!=null&&!Y.hasOwnProperty(t0)&&K2($,B,t0,null,Y,O);for(P in Y)O=Y[P],f=X[P],!Y.hasOwnProperty(P)||O===f||O==null&&f==null||K2($,B,P,O,Y,f)}function Jv($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function uY($){var B={};$=$.style;for(var X=0;X<$.length;X++){var Y=$[X];B[Y]=$.getPropertyValue(Y)}return B}function Hv($,B,X){if(B!=null&&typeof B!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var Y,Z=Y="",G;for(G in B)if(B.hasOwnProperty(G)){var z=B[G];z!=null&&typeof z!=="boolean"&&z!==""&&(G.indexOf("--")===0?(J2(z,G),Y+=Z+G+":"+(""+z).trim()):typeof z!=="number"||z===0||_J.has(G)?(J2(z,G),Y+=Z+G.replace(KJ,"-$1").toLowerCase().replace(UJ,"-ms-")+":"+(""+z).trim()):Y+=Z+G.replace(KJ,"-$1").toLowerCase().replace(UJ,"-ms-")+":"+z+"px",Z=";")}Y=Y||null,B=$.getAttribute("style"),B!==Y&&(Y=X5(Y),X5(B)!==Y&&(X.style=uY($)))}}function J4($,B,X,Y,Z,G){if(Z.delete(X),$=$.getAttribute(X),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(m0(Y,B),$===""+Y)return}Z1(B,$,Y,G)}function Qv($,B,X,Y,Z,G){if(Z.delete(X),$=$.getAttribute(X),$===null){switch(typeof Y){case"function":case"symbol":return}if(!Y)return}else switch(typeof Y){case"function":case"symbol":break;default:if(Y)return}Z1(B,$,Y,G)}function xY($,B,X,Y,Z,G){if(Z.delete(X),$=$.getAttribute(X),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":break;default:if(m0(Y,X),$===""+Y)return}Z1(B,$,Y,G)}function Lv($,B,X,Y,Z,G){if(Z.delete(X),$=$.getAttribute(X),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(Y))return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(!isNaN(Y)&&(m0(Y,B),$===""+Y))return}Z1(B,$,Y,G)}function hY($,B,X,Y,Z,G){if(Z.delete(X),$=$.getAttribute(X),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(m0(Y,B),X=V6(""+Y),$===X)return}Z1(B,$,Y,G)}function qv($,B,X,Y){for(var Z={},G=new Set,z=$.attributes,W=0;W<z.length;W++)switch(z[W].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:G.add(z[W].name)}if(j6(B)){for(var J in X)if(X.hasOwnProperty(J)){var Q=X[J];if(Q!=null){if(e5.hasOwnProperty(J))typeof Q!=="function"&&B7(J,Q);else if(X.suppressHydrationWarning!==!0)switch(J){case"children":typeof Q!=="string"&&typeof Q!=="number"||Z1("children",$.textContent,Q,Z);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=$.innerHTML,Q=Q?Q.__html:void 0,Q!=null&&(Q=Nv($,Q),Z1(J,z,Q,Z));continue;case"style":G.delete(J),Hv($,Q,Z);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":G.delete(J.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",J);continue;case"className":G.delete("class"),z=iG($,"class",Q),Z1("className",z,Q,Z);continue;default:Y.context===j7&&B!=="svg"&&B!=="math"?G.delete(J.toLowerCase()):G.delete(J),z=iG($,J,Q),Z1(J,z,Q,Z)}}}}else for(Q in X)if(X.hasOwnProperty(Q)&&(J=X[Q],J!=null)){if(e5.hasOwnProperty(Q))typeof J!=="function"&&B7(Q,J);else if(X.suppressHydrationWarning!==!0)switch(Q){case"children":typeof J!=="string"&&typeof J!=="number"||Z1("children",$.textContent,J,Z);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=$.innerHTML,J=J?J.__html:void 0,J!=null&&(J=Nv($,J),z!==J&&(Z[Q]={__html:z}));continue;case"className":J4($,Q,"class",J,G,Z);continue;case"tabIndex":J4($,Q,"tabindex",J,G,Z);continue;case"style":G.delete(Q),Hv($,J,Z);continue;case"multiple":G.delete(Q),Z1(Q,$.multiple,J,Z);continue;case"muted":G.delete(Q),Z1(Q,$.muted,J,Z);continue;case"autoFocus":G.delete("autofocus"),Z1(Q,$.autofocus,J,Z);continue;case"data":if(B!=="object"){G.delete(Q),z=$.getAttribute("data"),Z1(Q,z,J,Z);continue}case"src":case"href":if(!(J!==""||B==="a"&&Q==="href"||B==="object"&&Q==="data")){Q==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Q,Q):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Q,Q);continue}hY($,Q,Q,J,G,Z);continue;case"action":case"formAction":if(z=$.getAttribute(Q),typeof J==="function"){G.delete(Q.toLowerCase()),Q==="formAction"?(G.delete("name"),G.delete("formenctype"),G.delete("formmethod"),G.delete("formtarget")):(G.delete("enctype"),G.delete("method"),G.delete("target"));continue}else if(z===pK){G.delete(Q.toLowerCase()),Z1(Q,"function",J,Z);continue}hY($,Q,Q.toLowerCase(),J,G,Z);continue;case"xlinkHref":hY($,Q,"xlink:href",J,G,Z);continue;case"contentEditable":xY($,Q,"contenteditable",J,G,Z);continue;case"spellCheck":xY($,Q,"spellcheck",J,G,Z);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":xY($,Q,Q,J,G,Z);continue;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":Qv($,Q,Q.toLowerCase(),J,G,Z);continue;case"capture":case"download":$:{W=$;var A=z=Q,P=Z;if(G.delete(A),W=W.getAttribute(A),W===null)switch(typeof J){case"undefined":case"function":case"symbol":break $;default:if(J===!1)break $}else if(J!=null)switch(typeof J){case"function":case"symbol":break;case"boolean":if(J===!0&&W==="")break $;break;default:if(m0(J,z),W===""+J)break $}Z1(z,W,J,P)}continue;case"cols":case"rows":case"size":case"span":$:{if(W=$,A=z=Q,P=Z,G.delete(A),W=W.getAttribute(A),W===null)switch(typeof J){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(J)||1>J)break $}else if(J!=null)switch(typeof J){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(J)||1>J)&&(m0(J,z),W===""+J))break $}Z1(z,W,J,P)}continue;case"rowSpan":Lv($,Q,"rowspan",J,G,Z);continue;case"start":Lv($,Q,Q,J,G,Z);continue;case"xHeight":J4($,Q,"x-height",J,G,Z);continue;case"xlinkActuate":J4($,Q,"xlink:actuate",J,G,Z);continue;case"xlinkArcrole":J4($,Q,"xlink:arcrole",J,G,Z);continue;case"xlinkRole":J4($,Q,"xlink:role",J,G,Z);continue;case"xlinkShow":J4($,Q,"xlink:show",J,G,Z);continue;case"xlinkTitle":J4($,Q,"xlink:title",J,G,Z);continue;case"xlinkType":J4($,Q,"xlink:type",J,G,Z);continue;case"xmlBase":J4($,Q,"xml:base",J,G,Z);continue;case"xmlLang":J4($,Q,"xml:lang",J,G,Z);continue;case"xmlSpace":J4($,Q,"xml:space",J,G,Z);continue;case"inert":J!==""||AB[Q]||(AB[Q]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",Q)),Qv($,Q,Q,J,G,Z);continue;default:if(!(2<Q.length)||Q[0]!=="o"&&Q[0]!=="O"||Q[1]!=="n"&&Q[1]!=="N"){W=gz(Q),z=!1,Y.context===j7&&B!=="svg"&&B!=="math"?G.delete(W.toLowerCase()):(A=Q.toLowerCase(),A=h8.hasOwnProperty(A)?h8[A]||null:null,A!==null&&A!==Q&&(z=!0,G.delete(A)),G.delete(W));$:if(A=$,P=W,W=J,k5(P))if(A.hasAttribute(P))A=A.getAttribute(P),m0(W,P),W=A===""+W?W:A;else{switch(typeof W){case"function":case"symbol":break $;case"boolean":if(A=P.toLowerCase().slice(0,5),A!=="data-"&&A!=="aria-")break $}W=W===void 0?void 0:null}else W=void 0;z||Z1(Q,W,J,Z)}}}return 0<G.size&&X.suppressHydrationWarning!==!0&&Tq($,G,Z),Object.keys(Z).length===0?null:Z}function yq($,B){switch($.length){case 0:return"";case 1:return $[0];case 2:return $[0]+" "+B+" "+$[1];default:return $.slice(0,-1).join(", ")+", "+B+" "+$[$.length-1]}}function gv($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Sq(){if(typeof performance.getEntriesByType==="function"){for(var $=0,B=0,X=performance.getEntriesByType("resource"),Y=0;Y<X.length;Y++){var Z=X[Y],G=Z.transferSize,z=Z.initiatorType,W=Z.duration;if(G&&W&&gv(z)){z=0,W=Z.responseEnd;for(Y+=1;Y<X.length;Y++){var J=X[Y],Q=J.startTime;if(Q>W)break;var{transferSize:A,initiatorType:P}=J;A&&gv(P)&&(J=J.responseEnd,z+=A*(J<W?1:(W-Q)/(J-Q)))}if(--Y,B+=8*(G+z)/(Z.duration/1000),$++,10<$)break}}if(0<$)return B/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function O8($){return $.nodeType===9?$:$.ownerDocument}function Kv($){switch($){case t3:return C6;case x8:return IB;default:return j7}}function Uv($,B){if($===j7)switch(B){case"svg":return C6;case"math":return IB;default:return j7}return $===C6&&B==="foreignObject"?j7:$}function kY($,B){return $==="textarea"||$==="noscript"||typeof B.children==="string"||typeof B.children==="number"||typeof B.children==="bigint"||typeof B.dangerouslySetInnerHTML==="object"&&B.dangerouslySetInnerHTML!==null&&B.dangerouslySetInnerHTML.__html!=null}function uq(){var $=window.event;if($&&$.type==="popstate"){if($===wG)return!1;return wG=$,!0}return wG=null,!1}function J$(){var $=window.event;return $&&$!==z9?$.type:null}function H$(){var $=window.event;return $&&$!==z9?$.timeStamp:-1.1}function xq($){setTimeout(function(){throw $})}function hq($,B,X){switch(B){case"button":case"input":case"select":case"textarea":X.autoFocus&&$.focus();break;case"img":X.src?$.src=X.src:X.srcSet&&($.srcset=X.srcSet)}}function kq(){}function jq($,B,X,Y){fq($,B,X,Y),$[F1]=Y}function Ov($){k6($,"")}function Vq($,B,X){$.nodeValue=X}function wv($){if(!$.__reactWarnedAboutChildrenConflict){var B=$[F1]||null;if(B!==null){var X=n($);X!==null&&(typeof B.children==="string"||typeof B.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,s(X,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):B.dangerouslySetInnerHTML!=null&&($.__reactWarnedAboutChildrenConflict=!0,s(X,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Y5($){return $==="head"}function Eq($,B){$.removeChild(B)}function Dq($,B){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(B)}function Rv($,B){var X=B,Y=0;do{var Z=X.nextSibling;if($.removeChild(X),Z&&Z.nodeType===8)if(X=Z.data,X===G9||X===PB){if(Y===0){$.removeChild(Z),o3(B);return}Y--}else if(X===Z9||X===b5||X===O3||X===b6||X===U3)Y++;else if(X===oK)Q$($.ownerDocument.documentElement);else if(X===sK){X=$.ownerDocument.head,Q$(X);for(var G=X.firstChild;G;){var{nextSibling:z,nodeName:W}=G;G[w$]||W==="SCRIPT"||W==="STYLE"||W==="LINK"&&G.rel.toLowerCase()==="stylesheet"||X.removeChild(G),G=z}}else X===aK&&Q$($.ownerDocument.body);X=Z}while(X);o3(B)}function _v($,B){var X=$;$=0;do{var Y=X.nextSibling;if(X.nodeType===1?B?(X._stashedDisplay=X.style.display,X.style.display="none"):(X.style.display=X._stashedDisplay||"",X.getAttribute("style")===""&&X.removeAttribute("style")):X.nodeType===3&&(B?(X._stashedText=X.nodeValue,X.nodeValue=""):X.nodeValue=X._stashedText||""),Y&&Y.nodeType===8)if(X=Y.data,X===G9)if($===0)break;else $--;else X!==Z9&&X!==b5&&X!==O3&&X!==b6||$++;X=Y}while(X)}function lq($){_v($,!0)}function dq($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function pq($){$.nodeValue=""}function cq($){_v($,!1)}function oq($,B){B=B[iK],B=B!==void 0&&B!==null&&B.hasOwnProperty("display")?B.display:null,$.style.display=B==null||typeof B==="boolean"?"":(""+B).trim()}function aq($,B){$.nodeValue=B}function jY($){var B=$.firstChild;B&&B.nodeType===10&&(B=B.nextSibling);for(;B;){var X=B;switch(B=B.nextSibling,X.nodeName){case"HTML":case"HEAD":case"BODY":jY(X),o(X);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(X.rel.toLowerCase()==="stylesheet")continue}$.removeChild(X)}}function sq($,B,X,Y){for(;$.nodeType===1;){var Z=X;if($.nodeName.toLowerCase()!==B.toLowerCase()){if(!Y&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!Y)if(B==="input"&&$.type==="hidden"){m0(Z.name,"name");var G=Z.name==null?null:""+Z.name;if(Z.type==="hidden"&&$.getAttribute("name")===G)return $}else return $;else if(!$[w$])switch(B){case"meta":if(!$.hasAttribute("itemprop"))break;return $;case"link":if(G=$.getAttribute("rel"),G==="stylesheet"&&$.hasAttribute("data-precedence"))break;else if(G!==Z.rel||$.getAttribute("href")!==(Z.href==null||Z.href===""?null:Z.href)||$.getAttribute("crossorigin")!==(Z.crossOrigin==null?null:Z.crossOrigin)||$.getAttribute("title")!==(Z.title==null?null:Z.title))break;return $;case"style":if($.hasAttribute("data-precedence"))break;return $;case"script":if(G=$.getAttribute("src"),(G!==(Z.src==null?null:Z.src)||$.getAttribute("type")!==(Z.type==null?null:Z.type)||$.getAttribute("crossorigin")!==(Z.crossOrigin==null?null:Z.crossOrigin))&&G&&$.hasAttribute("async")&&!$.hasAttribute("itemprop"))break;return $;default:return $}if($=r1($.nextSibling),$===null)break}return null}function iq($,B,X){if(B==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!X)return null;if($=r1($.nextSibling),$===null)return null}return $}function Mv($,B){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!B)return null;if($=r1($.nextSibling),$===null)return null}return $}function VY($){return $.data===b5||$.data===O3}function EY($){return $.data===b6||$.data===b5&&$.ownerDocument.readyState!==HQ}function rq($,B){var X=$.ownerDocument;if($.data===O3)$._reactRetry=B;else if($.data!==b5||X.readyState!==HQ)B();else{var Y=function(){B(),X.removeEventListener("DOMContentLoaded",Y)};X.addEventListener("DOMContentLoaded",Y),$._reactRetry=Y}}function r1($){for(;$!=null;$=$.nextSibling){var B=$.nodeType;if(B===1||B===3)break;if(B===8){if(B=$.data,B===Z9||B===b6||B===b5||B===O3||B===U3||B===KG||B===JQ)break;if(B===G9||B===PB)return null}}return $}function Fv($){if($.nodeType===1){for(var B=$.nodeName.toLowerCase(),X={},Y=$.attributes,Z=0;Z<Y.length;Z++){var G=Y[Z];X[Jv(G.name)]=G.name.toLowerCase()==="style"?uY($):G.value}return{type:B,props:X}}return $.nodeType===8?$.data===U3?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function Av($,B,X){return X===null||X[cK]!==!0?($.nodeValue===B?$=null:(B=X5(B),$=X5($.nodeValue)===B?null:$.nodeValue),$):null}function DY($){$=$.nextSibling;for(var B=0;$;){if($.nodeType===8){var X=$.data;if(X===G9||X===PB){if(B===0)return r1($.nextSibling);B--}else X!==Z9&&X!==b6&&X!==b5&&X!==O3&&X!==U3||B++}$=$.nextSibling}return null}function Pv($){$=$.previousSibling;for(var B=0;$;){if($.nodeType===8){var X=$.data;if(X===Z9||X===b6||X===b5||X===O3||X===U3){if(B===0)return $;B--}else X!==G9&&X!==PB||B++}$=$.previousSibling}return null}function nq($){o3($)}function tq($){o3($)}function eq($){o3($)}function Iv($,B,X,Y,Z){switch(Z&&tB($,Y.ancestorInfo),B=O8(X),$){case"html":if($=B.documentElement,!$)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"head":if($=B.head,!$)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"body":if($=B.body,!$)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return $;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function $g($,B,X,Y){if(!X[W5]&&n(X)){var Z=X.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",Z,Z,Z)}switch($){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(Z=X.attributes;Z.length;)X.removeAttributeNode(Z[0]);H1(X,$,B),X[Q1]=Y,X[F1]=B}function Q$($){for(var B=$.attributes;B.length;)$.removeAttributeNode(B[0]);o($)}function w8($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function bv($,B,X){var Y=m6;if(Y&&typeof B==="string"&&B){var Z=v4(B);Z='link[rel="'+$+'"][href="'+Z+'"]',typeof X==="string"&&(Z+='[crossorigin="'+X+'"]'),UQ.has(Z)||(UQ.add(Z),$={rel:$,crossOrigin:X,href:B},Y.querySelector(Z)===null&&(B=Y.createElement("link"),H1(B,"link",$),H0(B),Y.head.appendChild(B)))}}function Cv($,B,X,Y){var Z=(Z=G5.current)?w8(Z):null;if(!Z)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch($){case"meta":case"title":return null;case"style":return typeof X.precedence==="string"&&typeof X.href==="string"?(X=p3(X.href),B=I0(Z).hoistableStyles,Y=B.get(X),Y||(Y={type:"style",instance:null,count:0,state:null},B.set(X,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(X.rel==="stylesheet"&&typeof X.href==="string"&&typeof X.precedence==="string"){$=p3(X.href);var G=I0(Z).hoistableStyles,z=G.get($);if(!z&&(Z=Z.ownerDocument||Z,z={type:"stylesheet",instance:null,count:0,state:{loading:R3,preload:null}},G.set($,z),(G=Z.querySelector(L$($)))&&!G._p&&(z.instance=G,z.state.loading=W9|_4),!M4.has($))){var W={rel:"preload",as:"style",href:X.href,crossOrigin:X.crossOrigin,integrity:X.integrity,media:X.media,hrefLang:X.hrefLang,referrerPolicy:X.referrerPolicy};M4.set($,W),G||Bg(Z,$,W,z.state)}if(B&&Y===null)throw X=`
|
|
175
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,E(Z))})}function P9(Z){Z!==GX&&Z.next===null&&(GX===null?dY=GX=Z:GX=GX.next=Z),iY=!0,q0.actQueue!==null?UB||(UB=!0,KR()):BB||(BB=!0,KR())}function y3(Z,X){if(!zB&&iY){zB=!0;do{var J=!1;for(var q=dY;q!==null;){if(!X)if(Z!==0){var W=q.pendingLanes;if(W===0)var U=0;else{var{suspendedLanes:M,pingedLanes:_}=q;U=(1<<31-w4(42|Z)+1)-1,U&=W&~(M&~_),U=U&201326741?U&201326741|1:U?U|2:0}U!==0&&(J=!0,GR(q,U))}else U=_1,U=V5(q,q===s1?U:0,q.cancelPendingCommit!==null||q.timeoutHandle!==O8),(U&3)===0||v0(q,U)||(J=!0,GR(q,U));q=q.next}}while(J);zB=!1}}function VS(){EQ=window.event,CW()}function CW(){iY=UB=BB=!1;var Z=0;H7!==0&&ES()&&(Z=H7);for(var X=o5(),J=null,q=dY;q!==null;){var W=q.next,U=YR(q,X);if(U===0)q.next=null,J===null?dY=W:J.next=W,W===null&&(GX=J);else if(J=q,Z!==0||(U&3)!==0)iY=!0;q=W}g5!==K7&&g5!==fY||y3(Z,!1),H7!==0&&(H7=0)}function YR(Z,X){for(var{suspendedLanes:J,pingedLanes:q,expirationTimes:W}=Z,U=Z.pendingLanes&-62914561;0<U;){var M=31-w4(U),_=1<<M,V=W[M];if(V===-1){if((_&J)===0||(_&q)!==0)W[M]=L4(_,X)}else V<=X&&(Z.expiredLanes|=_);U&=~_}if(X=s1,J=_1,J=V5(Z,Z===X?J:0,Z.cancelPendingCommit!==null||Z.timeoutHandle!==O8),q=Z.callbackNode,J===0||Z===X&&(l1===z8||l1===F8)||Z.cancelPendingCommit!==null)return q!==null&&jW(q),Z.callbackNode=null,Z.callbackPriority=0;if((J&3)===0||v0(Z,J)){if(X=J&-J,X!==Z.callbackPriority||q0.actQueue!==null&&q!==FB)jW(q);else return X;switch(w(J)){case K2:case a2:J=WH;break;case b9:J=SZ;break;case YY:J=HH;break;default:J=SZ}return q=qR.bind(null,Z),q0.actQueue!==null?(q0.actQueue.push(q),J=FB):J=GH(J,q),Z.callbackPriority=X,Z.callbackNode=J,X}return q!==null&&jW(q),Z.callbackPriority=2,Z.callbackNode=null,2}function qR(Z,X){if(TY=IY=!1,EQ=window.event,g5!==K7&&g5!==fY)return Z.callbackNode=null,Z.callbackPriority=0,null;var J=Z.callbackNode;if(Z9===uY&&(Z9=YB),E3()&&Z.callbackNode!==J)return null;var q=_1;if(q=V5(Z,Z===s1?q:0,Z.cancelPendingCommit!==null||Z.timeoutHandle!==O8),q===0)return null;return mN(Z,q,X),YR(Z,o5()),Z.callbackNode!=null&&Z.callbackNode===J?qR.bind(null,Z):null}function GR(Z,X){if(E3())return null;IY=TY,TY=!1,mN(Z,X,!0)}function jW(Z){Z!==FB&&Z!==null&&zE(Z)}function KR(){q0.actQueue!==null&&q0.actQueue.push(function(){return CW(),null}),ab(function(){(x1&(p5|U2))!==Z4?GH(KH,VS):CW()})}function DW(){if(H7===0){var Z=q8;Z===0&&(Z=QY,QY<<=1,(QY&261888)===0&&(QY=256)),H7=Z}return H7}function WR(Z){if(Z==null||typeof Z==="symbol"||typeof Z==="boolean")return null;if(typeof Z==="function")return Z;return s0(Z,"action"),H3(""+Z)}function HR(Z,X){var J=X.ownerDocument.createElement("input");return J.name=X.name,J.value=X.value,Z.id&&J.setAttribute("form",Z.id),X.parentNode.insertBefore(J,X),Z=new FormData(Z),J.parentNode.removeChild(J),Z}function PS(Z,X,J,q,W){if(X==="submit"&&J&&J.stateNode===W){var U=WR((W[C4]||null).action),M=q.submitter;M&&(X=(X=M[C4]||null)?WR(X.formAction):M.getAttribute("formAction"),X!==null&&(U=X,M=null));var _=new HY("action","action",null,q,W);Z.push({event:_,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(H7!==0){var V=M?HR(W,M):new FormData(W),j={pending:!0,data:V,method:W.method,action:U};Object.freeze(j),nK(J,j,null,V)}}else typeof U==="function"&&(_.preventDefault(),V=M?HR(W,M):new FormData(W),j={pending:!0,data:V,method:W.method,action:U},Object.freeze(j),nK(J,j,U,V))},currentTarget:W}]})}}function p$(Z,X,J){Z.currentTarget=J;try{X(Z)}catch(q){wH(q)}Z.currentTarget=null}function BR(Z,X){X=(X&4)!==0;for(var J=0;J<Z.length;J++){var q=Z[J];Z:{var W=void 0,U=q.event;if(q=q.listeners,X)for(var M=q.length-1;0<=M;M--){var _=q[M],V=_.instance,j=_.currentTarget;if(_=_.listener,V!==W&&U.isPropagationStopped())break Z;V!==null?R0(V,p$,U,_,j):p$(U,_,j),W=V}else for(M=0;M<q.length;M++){if(_=q[M],V=_.instance,j=_.currentTarget,_=_.listener,V!==W&&U.isPropagationStopped())break Z;V!==null?R0(V,p$,U,_,j):p$(U,_,j),W=V}}}}function y1(Z,X){LB.has(Z)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',Z);var J=X[BH];J===void 0&&(J=X[BH]=new Set);var q=Z+"__bubble";J.has(q)||(UR(X,Z,2,!1),J.add(q))}function SW(Z,X,J){LB.has(Z)&&!X&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',Z);var q=0;X&&(q|=4),UR(J,Z,q,X)}function EW(Z){if(!Z[cY]){Z[cY]=!0,K_.forEach(function(J){J!=="selectionchange"&&(LB.has(J)||SW(J,!1,Z),SW(J,!0,Z))});var X=Z.nodeType===9?Z:Z.ownerDocument;X===null||X[cY]||(X[cY]=!0,SW("selectionchange",!1,X))}}function UR(Z,X,J,q){switch(iR(X)){case K2:var W=YE;break;case a2:W=qE;break;default:W=rW}J=W.bind(null,X,J,Z),W=void 0,!MH||X!=="touchstart"&&X!=="touchmove"&&X!=="wheel"||(W=!0),q?W!==void 0?Z.addEventListener(X,J,{capture:!0,passive:W}):Z.addEventListener(X,J,!0):W!==void 0?Z.addEventListener(X,J,{passive:W}):Z.addEventListener(X,J,!1)}function bW(Z,X,J,q,W){var U=q;if((X&1)===0&&(X&2)===0&&q!==null)Z:for(;;){if(q===null)return;var M=q.tag;if(M===3||M===4){var _=q.stateNode.containerInfo;if(_===W)break;if(M===4)for(M=q.return;M!==null;){var V=M.tag;if((V===3||V===4)&&M.stateNode.containerInfo===W)return;M=M.return}for(;_!==null;){if(M=Q0(_),M===null)return;if(V=M.tag,V===5||V===6||V===26||V===27){q=U=M;continue Z}_=_.parentNode}}q=q.return}TL(function(){var j=U,l=ZK(J),d=[];Z:{var m=i_.get(Z);if(m!==void 0){var X0=HY,j0=Z;switch(Z){case"keypress":if(sJ(J)===0)break Z;case"keydown":case"keyup":X0=Zb;break;case"focusin":j0="focus",X0=OH;break;case"focusout":j0="blur",X0=OH;break;case"beforeblur":case"afterblur":X0=OH;break;case"click":if(J.button===2)break Z;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X0=E_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X0=pE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X0=Jb;break;case f_:case p_:case l_:X0=iE;break;case d_:X0=Yb;break;case"scroll":case"scrollend":X0=uE;break;case"wheel":X0=Gb;break;case"copy":case"cut":case"paste":X0=rE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X0=y_;break;case"toggle":case"beforetoggle":X0=Wb}var g0=(X&4)!==0,e1=!g0&&(Z==="scroll"||Z==="scrollend"),g1=g0?m!==null?m+"Capture":null:m;g0=[];for(var x=j,u;x!==null;){var p=x;if(u=p.stateNode,p=p.tag,p!==5&&p!==26&&p!==27||u===null||g1===null||(p=B3(x,g1),p!=null&&g0.push(g3(x,p,u))),e1)break;x=x.return}0<g0.length&&(m=new X0(m,j0,null,J,l),d.push({event:m,listeners:g0}))}}if((X&7)===0){Z:{if(m=Z==="mouseover"||Z==="pointerover",X0=Z==="mouseout"||Z==="pointerout",m&&J!==i3&&(j0=J.relatedTarget||J.fromElement)&&(Q0(j0)||j0[i6]))break Z;if(X0||m){if(m=l.window===l?l:(m=l.ownerDocument)?m.defaultView||m.parentWindow:window,X0){if(j0=J.relatedTarget||J.toElement,X0=j,j0=j0?Q0(j0):null,j0!==null&&(e1=y(j0),g0=j0.tag,j0!==e1||g0!==5&&g0!==27&&g0!==6))j0=null}else X0=null,j0=j;if(X0!==j0){if(g0=E_,p="onMouseLeave",g1="onMouseEnter",x="mouse",Z==="pointerout"||Z==="pointerover")g0=y_,p="onPointerLeave",g1="onPointerEnter",x="pointer";if(e1=X0==null?m:m0(X0),u=j0==null?m:m0(j0),m=new g0(p,x+"leave",X0,J,l),m.target=e1,m.relatedTarget=u,p=null,Q0(l)===j&&(g0=new g0(g1,x+"enter",j0,J,l),g0.target=u,g0.relatedTarget=e1,p=g0),e1=p,X0&&j0)X:{g0=wS,g1=X0,x=j0,u=0;for(p=g1;p;p=g0(p))u++;p=0;for(var F0=x;F0;F0=g0(F0))p++;for(;0<u-p;)g1=g0(g1),u--;for(;0<p-u;)x=g0(x),p--;for(;u--;){if(g1===x||x!==null&&g1===x.alternate){g0=g1;break X}g1=g0(g1),x=g0(x)}g0=null}else g0=null;X0!==null&&zR(d,m,X0,g0,!1),j0!==null&&e1!==null&&zR(d,e1,j0,g0,!0)}}}Z:{if(m=j?m0(j):window,X0=m.nodeName&&m.nodeName.toLowerCase(),X0==="select"||X0==="input"&&m.type==="file")var E0=SL;else if(jL(m))if(m_)E0=kD;else{E0=vD;var W1=hD}else X0=m.nodeName,!X0||X0.toLowerCase()!=="input"||m.type!=="checkbox"&&m.type!=="radio"?j&&W3(j.elementType)&&(E0=SL):E0=xD;if(E0&&(E0=E0(Z,j))){DL(d,E0,J,l);break Z}W1&&W1(Z,m,j),Z==="focusout"&&j&&m.type==="number"&&j.memoizedProps.value!=null&&aG(m,"number",m.value)}switch(W1=j?m0(j):window,Z){case"focusin":if(jL(W1)||W1.contentEditable==="true")kZ=W1,IH=j,t3=null;break;case"focusout":t3=IH=kZ=null;break;case"mousedown":TH=!0;break;case"contextmenu":case"mouseup":case"dragend":TH=!1,xL(d,J,l);break;case"selectionchange":if(zb)break;case"keydown":case"keyup":xL(d,J,l)}var r0;if(AH)Z:{switch(Z){case"compositionstart":var d0="onCompositionStart";break Z;case"compositionend":d0="onCompositionEnd";break Z;case"compositionupdate":d0="onCompositionUpdate";break Z}d0=void 0}else xZ?wL(Z,J)&&(d0="onCompositionEnd"):Z==="keydown"&&J.keyCode===g_&&(d0="onCompositionStart");if(d0&&(h_&&J.locale!=="ko"&&(xZ||d0!=="onCompositionStart"?d0==="onCompositionEnd"&&xZ&&(r0=VL()):(c6=l,NH=("value"in c6)?c6.value:c6.textContent,xZ=!0)),W1=l$(j,d0),0<W1.length&&(d0=new b_(d0,Z,null,J,l),d.push({event:d0,listeners:W1}),r0?d0.data=r0:(r0=CL(J),r0!==null&&(d0.data=r0)))),r0=Bb?ED(Z,J):bD(Z,J))d0=l$(j,"onBeforeInput"),0<d0.length&&(W1=new nE("onBeforeInput","beforeinput",null,J,l),d.push({event:W1,listeners:d0}),W1.data=r0);PS(d,Z,j,J,l)}BR(d,X)})}function g3(Z,X,J){return{instance:Z,listener:X,currentTarget:J}}function l$(Z,X){for(var J=X+"Capture",q=[];Z!==null;){var W=Z,U=W.stateNode;if(W=W.tag,W!==5&&W!==26&&W!==27||U===null||(W=B3(Z,J),W!=null&&q.unshift(g3(Z,W,U)),W=B3(Z,X),W!=null&&q.push(g3(Z,W,U))),Z.tag===3)return q;Z=Z.return}return[]}function wS(Z){if(Z===null)return null;do Z=Z.return;while(Z&&Z.tag!==5&&Z.tag!==27);return Z?Z:null}function zR(Z,X,J,q,W){for(var U=X._reactName,M=[];J!==null&&J!==q;){var _=J,V=_.alternate,j=_.stateNode;if(_=_.tag,V!==null&&V===q)break;_!==5&&_!==26&&_!==27||j===null||(V=j,W?(j=B3(J,U),j!=null&&M.unshift(g3(J,j,V))):W||(j=B3(J,U),j!=null&&M.push(g3(J,j,V)))),J=J.return}M.length!==0&&Z.push({event:X,listeners:M})}function yW(Z,X){CD(Z,X),Z!=="input"&&Z!=="textarea"&&Z!=="select"||X==null||X.value!==null||D_||(D_=!0,Z==="select"&&X.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",Z):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",Z));var J={registrationNameDependencies:Z8,possibleRegistrationNames:UH};W3(Z)||typeof X.is==="string"||DD(Z,X,J),X.contentEditable&&!X.suppressContentEditableWarning&&X.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function s5(Z,X,J,q){X!==J&&(J=u6(J),u6(X)!==J&&(q[Z]=X))}function CS(Z,X,J){X.forEach(function(q){J[MR(q)]=q==="style"?hW(Z):Z.getAttribute(q)})}function w9(Z,X){X===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",Z,Z,Z):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",Z,typeof X)}function FR(Z,X){return Z=Z.namespaceURI===GY||Z.namespaceURI===yZ?Z.ownerDocument.createElementNS(Z.namespaceURI,Z.tagName):Z.ownerDocument.createElement(Z.tagName),Z.innerHTML=X,Z.innerHTML}function u6(Z){return H1(Z)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Y1(Z)),e0(Z)),(typeof Z==="string"?Z:""+Z).replace(mb,`
|
|
176
|
+
`).replace(ub,"")}function LR(Z,X){return X=u6(X),u6(Z)===X?!0:!1}function a1(Z,X,J,q,W,U){switch(J){case"children":if(typeof q==="string")nJ(q,X,!1),X==="body"||X==="textarea"&&q===""||K3(Z,q);else if(typeof q==="number"||typeof q==="bigint")nJ(""+q,X,!1),X!=="body"&&K3(Z,""+q);break;case"className":cJ(Z,"class",q);break;case"tabIndex":cJ(Z,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":cJ(Z,J,q);break;case"style":OL(Z,q,U);break;case"data":if(X!=="object"){cJ(Z,"data",q);break}case"src":case"href":if(q===""&&(X!=="a"||J!=="href")){J==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',J,J):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',J,J),Z.removeAttribute(J);break}if(q==null||typeof q==="function"||typeof q==="symbol"||typeof q==="boolean"){Z.removeAttribute(J);break}s0(q,J),q=H3(""+q),Z.setAttribute(J,q);break;case"action":case"formAction":if(q!=null&&(X==="form"?J==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof q==="function"&&(W.encType==null&&W.method==null||nY||(nY=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),W.target==null||aY||(aY=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):X==="input"||X==="button"?J==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):X!=="input"||W.type==="submit"||W.type==="image"||rY?X!=="button"||W.type==null||W.type==="submit"||rY?typeof q==="function"&&(W.name==null||FA||(FA=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),W.formEncType==null&&W.formMethod==null||nY||(nY=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),W.formTarget==null||aY||(aY=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(rY=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(rY=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):J==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof q==="function"){Z.setAttribute(J,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof U==="function"&&(J==="formAction"?(X!=="input"&&a1(Z,X,"name",W.name,W,null),a1(Z,X,"formEncType",W.formEncType,W,null),a1(Z,X,"formMethod",W.formMethod,W,null),a1(Z,X,"formTarget",W.formTarget,W,null)):(a1(Z,X,"encType",W.encType,W,null),a1(Z,X,"method",W.method,W,null),a1(Z,X,"target",W.target,W,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){Z.removeAttribute(J);break}s0(q,J),q=H3(""+q),Z.setAttribute(J,q);break;case"onClick":q!=null&&(typeof q!=="function"&&w9(J,q),Z.onclick=a9);break;case"onScroll":q!=null&&(typeof q!=="function"&&w9(J,q),y1("scroll",Z));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&w9(J,q),y1("scrollend",Z));break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(J=q.__html,J!=null){if(W.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");Z.innerHTML=J}}break;case"multiple":Z.multiple=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"muted":Z.muted=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(q==null||typeof q==="function"||typeof q==="boolean"||typeof q==="symbol"){Z.removeAttribute("xlink:href");break}s0(q,J),J=H3(""+q),Z.setAttributeNS(N8,"xlink:href",J);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(s0(q,J),Z.setAttribute(J,""+q)):Z.removeAttribute(J);break;case"inert":q!==""||sY[J]||(sY[J]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",J));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":q&&typeof q!=="function"&&typeof q!=="symbol"?Z.setAttribute(J,""):Z.removeAttribute(J);break;case"capture":case"download":q===!0?Z.setAttribute(J,""):q!==!1&&q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(s0(q,J),Z.setAttribute(J,q)):Z.removeAttribute(J);break;case"cols":case"rows":case"size":case"span":q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&!isNaN(q)&&1<=q?(s0(q,J),Z.setAttribute(J,q)):Z.removeAttribute(J);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?Z.removeAttribute(J):(s0(q,J),Z.setAttribute(J,q));break;case"popover":y1("beforetoggle",Z),y1("toggle",Z),iJ(Z,"popover",q);break;case"xlinkActuate":r9(Z,N8,"xlink:actuate",q);break;case"xlinkArcrole":r9(Z,N8,"xlink:arcrole",q);break;case"xlinkRole":r9(Z,N8,"xlink:role",q);break;case"xlinkShow":r9(Z,N8,"xlink:show",q);break;case"xlinkTitle":r9(Z,N8,"xlink:title",q);break;case"xlinkType":r9(Z,N8,"xlink:type",q);break;case"xmlBase":r9(Z,MB,"xml:base",q);break;case"xmlLang":r9(Z,MB,"xml:lang",q);break;case"xmlSpace":r9(Z,MB,"xml:space",q);break;case"is":U!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),iJ(Z,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":LA||q==null||typeof q!=="object"||(LA=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",q));default:!(2<J.length)||J[0]!=="o"&&J[0]!=="O"||J[1]!=="n"&&J[1]!=="N"?(J=AL(J),iJ(Z,J,q)):Z8.hasOwnProperty(J)&&q!=null&&typeof q!=="function"&&w9(J,q)}}function gW(Z,X,J,q,W,U){switch(J){case"style":OL(Z,q,U);break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(J=q.__html,J!=null){if(W.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");Z.innerHTML=J}}break;case"children":typeof q==="string"?K3(Z,q):(typeof q==="number"||typeof q==="bigint")&&K3(Z,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&w9(J,q),y1("scroll",Z));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&w9(J,q),y1("scrollend",Z));break;case"onClick":q!=null&&(typeof q!=="function"&&w9(J,q),Z.onclick=a9);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Z8.hasOwnProperty(J))q!=null&&typeof q!=="function"&&w9(J,q);else Z:{if(J[0]==="o"&&J[1]==="n"&&(W=J.endsWith("Capture"),X=J.slice(2,W?J.length-7:void 0),U=Z[C4]||null,U=U!=null?U[J]:null,typeof U==="function"&&Z.removeEventListener(X,U,W),typeof q==="function")){typeof U!=="function"&&U!==null&&(J in Z?Z[J]=null:Z.hasAttribute(J)&&Z.removeAttribute(J)),Z.addEventListener(X,q,W);break Z}J in Z?Z[J]=q:q===!0?Z.setAttribute(J,""):iJ(Z,J,q)}}}function q4(Z,X,J){switch(yW(X,J),X){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":y1("error",Z),y1("load",Z);var q=!1,W=!1,U;for(U in J)if(J.hasOwnProperty(U)){var M=J[U];if(M!=null)switch(U){case"src":q=!0;break;case"srcSet":W=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(X+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:a1(Z,X,U,M,J,null)}}W&&a1(Z,X,"srcSet",J.srcSet,J,null),q&&a1(Z,X,"src",J.src,J,null);return;case"input":D6("input",J),y1("invalid",Z);var _=U=M=W=null,V=null,j=null;for(q in J)if(J.hasOwnProperty(q)){var l=J[q];if(l!=null)switch(q){case"name":W=l;break;case"type":M=l;break;case"checked":V=l;break;case"defaultChecked":j=l;break;case"value":U=l;break;case"defaultValue":_=l;break;case"children":case"dangerouslySetInnerHTML":if(l!=null)throw Error(X+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:a1(Z,X,q,l,J,null)}}$L(Z,J),YL(Z,U,_,V,j,M,W,!1);return;case"select":D6("select",J),y1("invalid",Z),q=M=U=null;for(W in J)if(J.hasOwnProperty(W)&&(_=J[W],_!=null))switch(W){case"value":U=_;break;case"defaultValue":M=_;break;case"multiple":q=_;default:a1(Z,X,W,_,J,null)}KL(Z,J),X=U,J=M,Z.multiple=!!q,X!=null?HZ(Z,!!q,X,!1):J!=null&&HZ(Z,!!q,J,!0);return;case"textarea":D6("textarea",J),y1("invalid",Z),U=W=q=null;for(M in J)if(J.hasOwnProperty(M)&&(_=J[M],_!=null))switch(M){case"value":q=_;break;case"defaultValue":W=_;break;case"children":U=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:a1(Z,X,M,_,J,null)}WL(Z,J),BL(Z,q,W,U);return;case"option":qL(Z,J);for(V in J)if(J.hasOwnProperty(V)&&(q=J[V],q!=null))switch(V){case"selected":Z.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:a1(Z,X,V,q,J,null)}return;case"dialog":y1("beforetoggle",Z),y1("toggle",Z),y1("cancel",Z),y1("close",Z);break;case"iframe":case"object":y1("load",Z);break;case"video":case"audio":for(q=0;q<jQ.length;q++)y1(jQ[q],Z);break;case"image":y1("error",Z),y1("load",Z);break;case"details":y1("toggle",Z);break;case"embed":case"source":case"link":y1("error",Z),y1("load",Z);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(j in J)if(J.hasOwnProperty(j)&&(q=J[j],q!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(X+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:a1(Z,X,j,q,J,null)}return;default:if(W3(X)){for(l in J)J.hasOwnProperty(l)&&(q=J[l],q!==void 0&&gW(Z,X,l,q,J,void 0));return}}for(_ in J)J.hasOwnProperty(_)&&(q=J[_],q!=null&&a1(Z,X,_,q,J,null))}function jS(Z,X,J,q){switch(yW(X,q),X){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var W=null,U=null,M=null,_=null,V=null,j=null,l=null;for(X0 in J){var d=J[X0];if(J.hasOwnProperty(X0)&&d!=null)switch(X0){case"checked":break;case"value":break;case"defaultValue":V=d;default:q.hasOwnProperty(X0)||a1(Z,X,X0,null,q,d)}}for(var m in q){var X0=q[m];if(d=J[m],q.hasOwnProperty(m)&&(X0!=null||d!=null))switch(m){case"type":U=X0;break;case"name":W=X0;break;case"checked":j=X0;break;case"defaultChecked":l=X0;break;case"value":M=X0;break;case"defaultValue":_=X0;break;case"children":case"dangerouslySetInnerHTML":if(X0!=null)throw Error(X+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:X0!==d&&a1(Z,X,m,X0,q,d)}}X=J.type==="checkbox"||J.type==="radio"?J.checked!=null:J.value!=null,q=q.type==="checkbox"||q.type==="radio"?q.checked!=null:q.value!=null,X||!q||zA||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),zA=!0),!X||q||UA||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),UA=!0),rG(Z,M,_,V,j,l,U,W);return;case"select":X0=M=_=m=null;for(U in J)if(V=J[U],J.hasOwnProperty(U)&&V!=null)switch(U){case"value":break;case"multiple":X0=V;default:q.hasOwnProperty(U)||a1(Z,X,U,null,q,V)}for(W in q)if(U=q[W],V=J[W],q.hasOwnProperty(W)&&(U!=null||V!=null))switch(W){case"value":m=U;break;case"defaultValue":_=U;break;case"multiple":M=U;default:U!==V&&a1(Z,X,W,U,q,V)}q=_,X=M,J=X0,m!=null?HZ(Z,!!X,m,!1):!!J!==!!X&&(q!=null?HZ(Z,!!X,q,!0):HZ(Z,!!X,X?[]:"",!1));return;case"textarea":X0=m=null;for(_ in J)if(W=J[_],J.hasOwnProperty(_)&&W!=null&&!q.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:a1(Z,X,_,null,q,W)}for(M in q)if(W=q[M],U=J[M],q.hasOwnProperty(M)&&(W!=null||U!=null))switch(M){case"value":m=W;break;case"defaultValue":X0=W;break;case"children":break;case"dangerouslySetInnerHTML":if(W!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:W!==U&&a1(Z,X,M,W,q,U)}HL(Z,m,X0);return;case"option":for(var j0 in J)if(m=J[j0],J.hasOwnProperty(j0)&&m!=null&&!q.hasOwnProperty(j0))switch(j0){case"selected":Z.selected=!1;break;default:a1(Z,X,j0,null,q,m)}for(V in q)if(m=q[V],X0=J[V],q.hasOwnProperty(V)&&m!==X0&&(m!=null||X0!=null))switch(V){case"selected":Z.selected=m&&typeof m!=="function"&&typeof m!=="symbol";break;default:a1(Z,X,V,m,q,X0)}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 g0 in J)m=J[g0],J.hasOwnProperty(g0)&&m!=null&&!q.hasOwnProperty(g0)&&a1(Z,X,g0,null,q,m);for(j in q)if(m=q[j],X0=J[j],q.hasOwnProperty(j)&&m!==X0&&(m!=null||X0!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(X+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:a1(Z,X,j,m,q,X0)}return;default:if(W3(X)){for(var e1 in J)m=J[e1],J.hasOwnProperty(e1)&&m!==void 0&&!q.hasOwnProperty(e1)&&gW(Z,X,e1,void 0,q,m);for(l in q)m=q[l],X0=J[l],!q.hasOwnProperty(l)||m===X0||m===void 0&&X0===void 0||gW(Z,X,l,m,q,X0);return}}for(var g1 in J)m=J[g1],J.hasOwnProperty(g1)&&m!=null&&!q.hasOwnProperty(g1)&&a1(Z,X,g1,null,q,m);for(d in q)m=q[d],X0=J[d],!q.hasOwnProperty(d)||m===X0||m==null&&X0==null||a1(Z,X,d,m,q,X0)}function MR(Z){switch(Z){case"class":return"className";case"for":return"htmlFor";default:return Z}}function hW(Z){var X={};Z=Z.style;for(var J=0;J<Z.length;J++){var q=Z[J];X[q]=Z.getPropertyValue(q)}return X}function NR(Z,X,J){if(X!=null&&typeof X!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var q,W=q="",U;for(U in X)if(X.hasOwnProperty(U)){var M=X[U];M!=null&&typeof M!=="boolean"&&M!==""&&(U.indexOf("--")===0?(h1(M,U),q+=W+U+":"+(""+M).trim()):typeof M!=="number"||M===0||C_.has(U)?(h1(M,U),q+=W+U.replace(I_,"-$1").toLowerCase().replace(T_,"-ms-")+":"+(""+M).trim()):q+=W+U.replace(I_,"-$1").toLowerCase().replace(T_,"-ms-")+":"+M+"px",W=";")}q=q||null,X=Z.getAttribute("style"),X!==q&&(q=u6(q),u6(X)!==q&&(J.style=hW(Z)))}}function A2(Z,X,J,q,W,U){if(W.delete(J),Z=Z.getAttribute(J),Z===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(s0(q,X),Z===""+q)return}s5(X,Z,q,U)}function RR(Z,X,J,q,W,U){if(W.delete(J),Z=Z.getAttribute(J),Z===null){switch(typeof q){case"function":case"symbol":return}if(!q)return}else switch(typeof q){case"function":case"symbol":break;default:if(q)return}s5(X,Z,q,U)}function vW(Z,X,J,q,W,U){if(W.delete(J),Z=Z.getAttribute(J),Z===null)switch(typeof q){case"undefined":case"function":case"symbol":return}else if(q!=null)switch(typeof q){case"function":case"symbol":break;default:if(s0(q,J),Z===""+q)return}s5(X,Z,q,U)}function _R(Z,X,J,q,W,U){if(W.delete(J),Z=Z.getAttribute(J),Z===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(q))return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!isNaN(q)&&(s0(q,X),Z===""+q))return}s5(X,Z,q,U)}function xW(Z,X,J,q,W,U){if(W.delete(J),Z=Z.getAttribute(J),Z===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(s0(q,X),J=H3(""+q),Z===J)return}s5(X,Z,q,U)}function OR(Z,X,J,q){for(var W={},U=new Set,M=Z.attributes,_=0;_<M.length;_++)switch(M[_].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:U.add(M[_].name)}if(W3(X)){for(var V in J)if(J.hasOwnProperty(V)){var j=J[V];if(j!=null){if(Z8.hasOwnProperty(V))typeof j!=="function"&&w9(V,j);else if(J.suppressHydrationWarning!==!0)switch(V){case"children":typeof j!=="string"&&typeof j!=="number"||s5("children",Z.textContent,j,W);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":M=Z.innerHTML,j=j?j.__html:void 0,j!=null&&(j=FR(Z,j),s5(V,M,j,W));continue;case"style":U.delete(V),NR(Z,j,W);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":U.delete(V.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",V);continue;case"className":U.delete("class"),M=XL(Z,"class",j),s5("className",M,j,W);continue;default:q.context===M6&&X!=="svg"&&X!=="math"?U.delete(V.toLowerCase()):U.delete(V),M=XL(Z,V,j),s5(V,M,j,W)}}}}else for(j in J)if(J.hasOwnProperty(j)&&(V=J[j],V!=null)){if(Z8.hasOwnProperty(j))typeof V!=="function"&&w9(j,V);else if(J.suppressHydrationWarning!==!0)switch(j){case"children":typeof V!=="string"&&typeof V!=="number"||s5("children",Z.textContent,V,W);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":M=Z.innerHTML,V=V?V.__html:void 0,V!=null&&(V=FR(Z,V),M!==V&&(W[j]={__html:M}));continue;case"className":A2(Z,j,"class",V,U,W);continue;case"tabIndex":A2(Z,j,"tabindex",V,U,W);continue;case"style":U.delete(j),NR(Z,V,W);continue;case"multiple":U.delete(j),s5(j,Z.multiple,V,W);continue;case"muted":U.delete(j),s5(j,Z.muted,V,W);continue;case"autoFocus":U.delete("autofocus"),s5(j,Z.autofocus,V,W);continue;case"data":if(X!=="object"){U.delete(j),M=Z.getAttribute("data"),s5(j,M,V,W);continue}case"src":case"href":if(!(V!==""||X==="a"&&j==="href"||X==="object"&&j==="data")){j==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',j,j):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',j,j);continue}xW(Z,j,j,V,U,W);continue;case"action":case"formAction":if(M=Z.getAttribute(j),typeof V==="function"){U.delete(j.toLowerCase()),j==="formAction"?(U.delete("name"),U.delete("formenctype"),U.delete("formmethod"),U.delete("formtarget")):(U.delete("enctype"),U.delete("method"),U.delete("target"));continue}else if(M===fb){U.delete(j.toLowerCase()),s5(j,"function",V,W);continue}xW(Z,j,j.toLowerCase(),V,U,W);continue;case"xlinkHref":xW(Z,j,"xlink:href",V,U,W);continue;case"contentEditable":vW(Z,j,"contenteditable",V,U,W);continue;case"spellCheck":vW(Z,j,"spellcheck",V,U,W);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":vW(Z,j,j,V,U,W);continue;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":RR(Z,j,j.toLowerCase(),V,U,W);continue;case"capture":case"download":Z:{_=Z;var l=M=j,d=W;if(U.delete(l),_=_.getAttribute(l),_===null)switch(typeof V){case"undefined":case"function":case"symbol":break Z;default:if(V===!1)break Z}else if(V!=null)switch(typeof V){case"function":case"symbol":break;case"boolean":if(V===!0&&_==="")break Z;break;default:if(s0(V,M),_===""+V)break Z}s5(M,_,V,d)}continue;case"cols":case"rows":case"size":case"span":Z:{if(_=Z,l=M=j,d=W,U.delete(l),_=_.getAttribute(l),_===null)switch(typeof V){case"undefined":case"function":case"symbol":case"boolean":break Z;default:if(isNaN(V)||1>V)break Z}else if(V!=null)switch(typeof V){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(V)||1>V)&&(s0(V,M),_===""+V))break Z}s5(M,_,V,d)}continue;case"rowSpan":_R(Z,j,"rowspan",V,U,W);continue;case"start":_R(Z,j,j,V,U,W);continue;case"xHeight":A2(Z,j,"x-height",V,U,W);continue;case"xlinkActuate":A2(Z,j,"xlink:actuate",V,U,W);continue;case"xlinkArcrole":A2(Z,j,"xlink:arcrole",V,U,W);continue;case"xlinkRole":A2(Z,j,"xlink:role",V,U,W);continue;case"xlinkShow":A2(Z,j,"xlink:show",V,U,W);continue;case"xlinkTitle":A2(Z,j,"xlink:title",V,U,W);continue;case"xlinkType":A2(Z,j,"xlink:type",V,U,W);continue;case"xmlBase":A2(Z,j,"xml:base",V,U,W);continue;case"xmlLang":A2(Z,j,"xml:lang",V,U,W);continue;case"xmlSpace":A2(Z,j,"xml:space",V,U,W);continue;case"inert":V!==""||sY[j]||(sY[j]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",j)),RR(Z,j,j,V,U,W);continue;default:if(!(2<j.length)||j[0]!=="o"&&j[0]!=="O"||j[1]!=="n"&&j[1]!=="N"){_=AL(j),M=!1,q.context===M6&&X!=="svg"&&X!=="math"?U.delete(_.toLowerCase()):(l=j.toLowerCase(),l=KY.hasOwnProperty(l)?KY[l]||null:null,l!==null&&l!==j&&(M=!0,U.delete(l)),U.delete(_));Z:if(l=Z,d=_,_=V,Y3(d))if(l.hasAttribute(d))l=l.getAttribute(d),s0(_,d),_=l===""+_?_:l;else{switch(typeof _){case"function":case"symbol":break Z;case"boolean":if(l=d.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-")break Z}_=_===void 0?void 0:null}else _=void 0;M||s5(j,_,V,W)}}}return 0<U.size&&J.suppressHydrationWarning!==!0&&CS(Z,U,W),Object.keys(W).length===0?null:W}function DS(Z,X){switch(Z.length){case 0:return"";case 1:return Z[0];case 2:return Z[0]+" "+X+" "+Z[1];default:return Z.slice(0,-1).join(", ")+", "+X+" "+Z[Z.length-1]}}function AR(Z){switch(Z){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function SS(){if(typeof performance.getEntriesByType==="function"){for(var Z=0,X=0,J=performance.getEntriesByType("resource"),q=0;q<J.length;q++){var W=J[q],U=W.transferSize,M=W.initiatorType,_=W.duration;if(U&&_&&AR(M)){M=0,_=W.responseEnd;for(q+=1;q<J.length;q++){var V=J[q],j=V.startTime;if(j>_)break;var{transferSize:l,initiatorType:d}=V;l&&AR(d)&&(V=V.responseEnd,M+=l*(V<_?1:(_-j)/(V-j)))}if(--q,X+=8*(U+M)/(W.duration/1000),Z++,10<Z)break}}if(0<Z)return X/Z/1e6}return navigator.connection&&(Z=navigator.connection.downlink,typeof Z==="number")?Z:5}function d$(Z){return Z.nodeType===9?Z:Z.ownerDocument}function IR(Z){switch(Z){case yZ:return WX;case GY:return tY;default:return M6}}function TR(Z,X){if(Z===M6)switch(X){case"svg":return WX;case"math":return tY;default:return M6}return Z===WX&&X==="foreignObject"?M6:Z}function kW(Z,X){return Z==="textarea"||Z==="noscript"||typeof X.children==="string"||typeof X.children==="number"||typeof X.children==="bigint"||typeof X.dangerouslySetInnerHTML==="object"&&X.dangerouslySetInnerHTML!==null&&X.dangerouslySetInnerHTML.__html!=null}function ES(){var Z=window.event;if(Z&&Z.type==="popstate"){if(Z===OB)return!1;return OB=Z,!0}return OB=null,!1}function h3(){var Z=window.event;return Z&&Z!==EQ?Z.type:null}function v3(){var Z=window.event;return Z&&Z!==EQ?Z.timeStamp:-1.1}function bS(Z){setTimeout(function(){throw Z})}function yS(Z,X,J){switch(X){case"button":case"input":case"select":case"textarea":J.autoFocus&&Z.focus();break;case"img":J.src?Z.src=J.src:J.srcSet&&(Z.srcset=J.srcSet)}}function gS(){}function hS(Z,X,J,q){jS(Z,X,J,q),Z[C4]=q}function VR(Z){K3(Z,"")}function vS(Z,X,J){Z.nodeValue=J}function PR(Z){if(!Z.__reactWarnedAboutChildrenConflict){var X=Z[C4]||null;if(X!==null){var J=D0(Z);J!==null&&(typeof X.children==="string"||typeof X.children==="number"?(Z.__reactWarnedAboutChildrenConflict=!0,R0(J,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):X.dangerouslySetInnerHTML!=null&&(Z.__reactWarnedAboutChildrenConflict=!0,R0(J,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function f6(Z){return Z==="head"}function xS(Z,X){Z.removeChild(X)}function kS(Z,X){(Z.nodeType===9?Z.body:Z.nodeName==="HTML"?Z.ownerDocument.body:Z).removeChild(X)}function wR(Z,X){var J=X,q=0;do{var W=J.nextSibling;if(Z.removeChild(J),W&&W.nodeType===8)if(J=W.data,J===SQ||J===oY){if(q===0){Z.removeChild(W),CZ(X);return}q--}else if(J===DQ||J===B7||J===_8||J===KX||J===R8)q++;else if(J===lb)x3(Z.ownerDocument.documentElement);else if(J===ib){J=Z.ownerDocument.head,x3(J);for(var U=J.firstChild;U;){var{nextSibling:M,nodeName:_}=U;U[d3]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&U.rel.toLowerCase()==="stylesheet"||J.removeChild(U),U=M}}else J===db&&x3(Z.ownerDocument.body);J=W}while(J);CZ(X)}function CR(Z,X){var J=Z;Z=0;do{var q=J.nextSibling;if(J.nodeType===1?X?(J._stashedDisplay=J.style.display,J.style.display="none"):(J.style.display=J._stashedDisplay||"",J.getAttribute("style")===""&&J.removeAttribute("style")):J.nodeType===3&&(X?(J._stashedText=J.nodeValue,J.nodeValue=""):J.nodeValue=J._stashedText||""),q&&q.nodeType===8)if(J=q.data,J===SQ)if(Z===0)break;else Z--;else J!==DQ&&J!==B7&&J!==_8&&J!==KX||Z++;J=q}while(J)}function mS(Z){CR(Z,!0)}function uS(Z){Z=Z.style,typeof Z.setProperty==="function"?Z.setProperty("display","none","important"):Z.display="none"}function fS(Z){Z.nodeValue=""}function pS(Z){CR(Z,!1)}function lS(Z,X){X=X[cb],X=X!==void 0&&X!==null&&X.hasOwnProperty("display")?X.display:null,Z.style.display=X==null||typeof X==="boolean"?"":(""+X).trim()}function dS(Z,X){Z.nodeValue=X}function mW(Z){var X=Z.firstChild;X&&X.nodeType===10&&(X=X.nextSibling);for(;X;){var J=X;switch(X=X.nextSibling,J.nodeName){case"HTML":case"HEAD":case"BODY":mW(J),I0(J);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(J.rel.toLowerCase()==="stylesheet")continue}Z.removeChild(J)}}function iS(Z,X,J,q){for(;Z.nodeType===1;){var W=J;if(Z.nodeName.toLowerCase()!==X.toLowerCase()){if(!q&&(Z.nodeName!=="INPUT"||Z.type!=="hidden"))break}else if(!q)if(X==="input"&&Z.type==="hidden"){s0(W.name,"name");var U=W.name==null?null:""+W.name;if(W.type==="hidden"&&Z.getAttribute("name")===U)return Z}else return Z;else if(!Z[d3])switch(X){case"meta":if(!Z.hasAttribute("itemprop"))break;return Z;case"link":if(U=Z.getAttribute("rel"),U==="stylesheet"&&Z.hasAttribute("data-precedence"))break;else if(U!==W.rel||Z.getAttribute("href")!==(W.href==null||W.href===""?null:W.href)||Z.getAttribute("crossorigin")!==(W.crossOrigin==null?null:W.crossOrigin)||Z.getAttribute("title")!==(W.title==null?null:W.title))break;return Z;case"style":if(Z.hasAttribute("data-precedence"))break;return Z;case"script":if(U=Z.getAttribute("src"),(U!==(W.src==null?null:W.src)||Z.getAttribute("type")!==(W.type==null?null:W.type)||Z.getAttribute("crossorigin")!==(W.crossOrigin==null?null:W.crossOrigin))&&U&&Z.hasAttribute("async")&&!Z.hasAttribute("itemprop"))break;return Z;default:return Z}if(Z=Y2(Z.nextSibling),Z===null)break}return null}function cS(Z,X,J){if(X==="")return null;for(;Z.nodeType!==3;){if((Z.nodeType!==1||Z.nodeName!=="INPUT"||Z.type!=="hidden")&&!J)return null;if(Z=Y2(Z.nextSibling),Z===null)return null}return Z}function jR(Z,X){for(;Z.nodeType!==8;){if((Z.nodeType!==1||Z.nodeName!=="INPUT"||Z.type!=="hidden")&&!X)return null;if(Z=Y2(Z.nextSibling),Z===null)return null}return Z}function uW(Z){return Z.data===B7||Z.data===_8}function fW(Z){return Z.data===KX||Z.data===B7&&Z.ownerDocument.readyState!==NA}function rS(Z,X){var J=Z.ownerDocument;if(Z.data===_8)Z._reactRetry=X;else if(Z.data!==B7||J.readyState!==NA)X();else{var q=function(){X(),J.removeEventListener("DOMContentLoaded",q)};J.addEventListener("DOMContentLoaded",q),Z._reactRetry=q}}function Y2(Z){for(;Z!=null;Z=Z.nextSibling){var X=Z.nodeType;if(X===1||X===3)break;if(X===8){if(X=Z.data,X===DQ||X===KX||X===B7||X===_8||X===R8||X===NB||X===MA)break;if(X===SQ||X===oY)return null}}return Z}function DR(Z){if(Z.nodeType===1){for(var X=Z.nodeName.toLowerCase(),J={},q=Z.attributes,W=0;W<q.length;W++){var U=q[W];J[MR(U.name)]=U.name.toLowerCase()==="style"?hW(Z):U.value}return{type:X,props:J}}return Z.nodeType===8?Z.data===R8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:Z.nodeValue}function SR(Z,X,J){return J===null||J[pb]!==!0?(Z.nodeValue===X?Z=null:(X=u6(X),Z=u6(Z.nodeValue)===X?null:Z.nodeValue),Z):null}function pW(Z){Z=Z.nextSibling;for(var X=0;Z;){if(Z.nodeType===8){var J=Z.data;if(J===SQ||J===oY){if(X===0)return Y2(Z.nextSibling);X--}else J!==DQ&&J!==KX&&J!==B7&&J!==_8&&J!==R8||X++}Z=Z.nextSibling}return null}function ER(Z){Z=Z.previousSibling;for(var X=0;Z;){if(Z.nodeType===8){var J=Z.data;if(J===DQ||J===KX||J===B7||J===_8||J===R8){if(X===0)return Z;X--}else J!==SQ&&J!==oY||X++}Z=Z.previousSibling}return null}function aS(Z){CZ(Z)}function nS(Z){CZ(Z)}function sS(Z){CZ(Z)}function bR(Z,X,J,q,W){switch(W&&eG(Z,q.ancestorInfo),X=d$(J),Z){case"html":if(Z=X.documentElement,!Z)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return Z;case"head":if(Z=X.head,!Z)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return Z;case"body":if(Z=X.body,!Z)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return Z;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function oS(Z,X,J,q){if(!J[i6]&&D0(J)){var W=J.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",W,W,W)}switch(Z){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(W=J.attributes;W.length;)J.removeAttributeNode(W[0]);q4(J,Z,X),J[G4]=q,J[C4]=X}function x3(Z){for(var X=Z.attributes;X.length;)Z.removeAttributeNode(X[0]);I0(Z)}function i$(Z){return typeof Z.getRootNode==="function"?Z.getRootNode():Z.nodeType===9?Z:Z.ownerDocument}function yR(Z,X,J){var q=HX;if(q&&typeof X==="string"&&X){var W=O2(X);W='link[rel="'+Z+'"][href="'+W+'"]',typeof J==="string"&&(W+='[crossorigin="'+J+'"]'),TA.has(W)||(TA.add(W),Z={rel:Z,crossOrigin:J,href:X},q.querySelector(W)===null&&(X=q.createElement("link"),q4(X,"link",Z),i0(X),q.head.appendChild(X)))}}function gR(Z,X,J,q){var W=(W=l6.current)?i$(W):null;if(!W)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(Z){case"meta":case"title":return null;case"style":return typeof J.precedence==="string"&&typeof J.href==="string"?(J=PZ(J.href),X=q1(W).hoistableStyles,q=X.get(J),q||(q={type:"style",instance:null,count:0,state:null},X.set(J,q)),q):{type:"void",instance:null,count:0,state:null};case"link":if(J.rel==="stylesheet"&&typeof J.href==="string"&&typeof J.precedence==="string"){Z=PZ(J.href);var U=q1(W).hoistableStyles,M=U.get(Z);if(!M&&(W=W.ownerDocument||W,M={type:"stylesheet",instance:null,count:0,state:{loading:A8,preload:null}},U.set(Z,M),(U=W.querySelector(k3(Z)))&&!U._p&&(M.instance=U,M.state.loading=bQ|b2),!y2.has(Z))){var _={rel:"preload",as:"style",href:J.href,crossOrigin:J.crossOrigin,integrity:J.integrity,media:J.media,hrefLang:J.hrefLang,referrerPolicy:J.referrerPolicy};y2.set(Z,_),U||tS(W,Z,_,M.state)}if(X&&q===null)throw J=`
|
|
177
177
|
|
|
178
|
-
- `+
|
|
179
|
-
+ `+
|
|
178
|
+
- `+c$(X)+`
|
|
179
|
+
+ `+c$(J),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+J);return M}if(X&&q!==null)throw J=`
|
|
180
180
|
|
|
181
|
-
- `+
|
|
182
|
-
+ `+R8(X),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+X);return null;case"script":return B=X.async,X=X.src,typeof X==="string"&&B&&typeof B!=="function"&&typeof B!=="symbol"?(X=c3(X),B=I0(Z).hoistableScripts,Y=B.get(X),Y||(Y={type:"script",instance:null,count:0,state:null},B.set(X,Y)),Y):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+$+'". this is a bug in React.')}}function R8($){var B=0,X="<link";return typeof $.rel==="string"?(B++,X+=' rel="'+$.rel+'"'):C4.call($,"rel")&&(B++,X+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(B++,X+=' href="'+$.href+'"'):C4.call($,"href")&&(B++,X+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(B++,X+=' precedence="'+$.precedence+'"'):C4.call($,"precedence")&&(B++,X+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>B&&(X+=" ..."),X+" />"}function p3($){return'href="'+v4($)+'"'}function L$($){return'link[rel="stylesheet"]['+$+"]"}function mv($){return c0({},$,{"data-precedence":$.precedence,precedence:null})}function Bg($,B,X,Y){$.querySelector('link[rel="preload"][as="style"]['+B+"]")?Y.loading=W9:(B=$.createElement("link"),Y.preload=B,B.addEventListener("load",function(){return Y.loading|=W9}),B.addEventListener("error",function(){return Y.loading|=gQ}),H1(B,"link",X),H0(B),$.head.appendChild(B))}function c3($){return'[src="'+v4($)+'"]'}function q$($){return"script[async]"+$}function Tv($,B,X){if(B.count++,B.instance===null)switch(B.type){case"style":var Y=$.querySelector('style[data-href~="'+v4(X.href)+'"]');if(Y)return B.instance=Y,H0(Y),Y;var Z=c0({},X,{"data-href":X.href,"data-precedence":X.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),H0(Y),H1(Y,"style",Z),_8(Y,X.precedence,$),B.instance=Y;case"stylesheet":Z=p3(X.href);var G=$.querySelector(L$(Z));if(G)return B.state.loading|=_4,B.instance=G,H0(G),G;Y=mv(X),(Z=M4.get(Z))&&lY(Y,Z),G=($.ownerDocument||$).createElement("link"),H0(G);var z=G;return z._p=new Promise(function(W,J){z.onload=W,z.onerror=J}),H1(G,"link",Y),B.state.loading|=_4,_8(G,X.precedence,$),B.instance=G;case"script":if(G=c3(X.src),Z=$.querySelector(q$(G)))return B.instance=Z,H0(Z),Z;if(Y=X,Z=M4.get(G))Y=c0({},X),dY(Y,Z);return $=$.ownerDocument||$,Z=$.createElement("script"),H0(Z),H1(Z,"link",Y),$.head.appendChild(Z),B.instance=Z;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+B.type+'". this is a bug in React.')}else B.type==="stylesheet"&&(B.state.loading&_4)===R3&&(Y=B.instance,B.state.loading|=_4,_8(Y,X.precedence,$));return B.instance}function _8($,B,X){for(var Y=X.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),Z=Y.length?Y[Y.length-1]:null,G=Z,z=0;z<Y.length;z++){var W=Y[z];if(W.dataset.precedence===B)G=W;else if(G!==Z)break}G?G.parentNode.insertBefore($,G.nextSibling):(B=X.nodeType===9?X.head:X,B.insertBefore($,B.firstChild))}function lY($,B){$.crossOrigin==null&&($.crossOrigin=B.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=B.referrerPolicy),$.title==null&&($.title=B.title)}function dY($,B){$.crossOrigin==null&&($.crossOrigin=B.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=B.referrerPolicy),$.integrity==null&&($.integrity=B.integrity)}function fv($,B,X){if(bB===null){var Y=new Map,Z=bB=new Map;Z.set(X,Y)}else Z=bB,Y=Z.get(X),Y||(Y=new Map,Z.set(X,Y));if(Y.has($))return Y;Y.set($,null),X=X.getElementsByTagName($);for(Z=0;Z<X.length;Z++){var G=X[Z];if(!(G[w$]||G[Q1]||$==="link"&&G.getAttribute("rel")==="stylesheet")&&G.namespaceURI!==t3){var z=G.getAttribute(B)||"";z=$+z;var W=Y.get(z);W?W.push(G):Y.set(z,[G])}}return Y}function yv($,B,X){$=$.ownerDocument||$,$.head.insertBefore(X,B==="title"?$.querySelector("head > title"):null)}function Xg($,B,X){var Y=!X.ancestorInfo.containerTagInScope;if(X.context===C6||B.itemProp!=null)return!Y||B.itemProp==null||$!=="meta"&&$!=="title"&&$!=="style"&&$!=="link"&&$!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",$,$),!1;switch($){case"meta":case"title":return!0;case"style":if(typeof B.precedence!=="string"||typeof B.href!=="string"||B.href===""){Y&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof B.rel!=="string"||typeof B.href!=="string"||B.href===""||B.onLoad||B.onError){if(B.rel==="stylesheet"&&typeof B.precedence==="string"){$=B.href;var{onError:Z,disabled:G}=B;X=[],B.onLoad&&X.push("`onLoad`"),Z&&X.push("`onError`"),G!=null&&X.push("`disabled`"),Z=yq(X,"and"),Z+=X.length===1?" prop":" props",G=X.length===1?"an "+Z:"the "+Z,X.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',$,G,Z)}Y&&(typeof B.rel!=="string"||typeof B.href!=="string"||B.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(B.onError||B.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(B.rel){case"stylesheet":return $=B.precedence,B=B.disabled,typeof $!=="string"&&Y&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof $==="string"&&B==null;default:return!0}case"script":if($=B.async&&typeof B.async!=="function"&&typeof B.async!=="symbol",!$||B.onLoad||B.onError||!B.src||typeof B.src!=="string"){Y&&($?B.onLoad||B.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":Y&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",$)}return!1}function Sv($){return $.type==="stylesheet"&&($.state.loading&KQ)===R3?!1:!0}function Yg($,B,X,Y){if(X.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(X.state.loading&_4)===R3){if(X.instance===null){var Z=p3(Y.href),G=B.querySelector(L$(Z));if(G){B=G._p,B!==null&&typeof B==="object"&&typeof B.then==="function"&&($.count++,$=M8.bind($),B.then($,$)),X.state.loading|=_4,X.instance=G,H0(G);return}G=B.ownerDocument||B,Y=mv(Y),(Z=M4.get(Z))&&lY(Y,Z),G=G.createElement("link"),H0(G);var z=G;z._p=new Promise(function(W,J){z.onload=W,z.onerror=J}),H1(G,"link",Y),X.instance=G}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(X,B),(B=X.state.preload)&&(X.state.loading&KQ)===R3&&($.count++,X=M8.bind($),B.addEventListener("load",X),B.addEventListener("error",X))}}function Zg($,B){return $.stylesheets&&$.count===0&&F8($,$.stylesheets),0<$.count||0<$.imgCount?function(X){var Y=setTimeout(function(){if($.stylesheets&&F8($,$.stylesheets),$.unsuspend){var G=$.unsuspend;$.unsuspend=null,G()}},tK+B);0<$.imgBytes&&_G===0&&(_G=125*Sq()*$U);var Z=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&F8($,$.stylesheets),$.unsuspend)){var G=$.unsuspend;$.unsuspend=null,G()}},($.imgBytes>_G?50:eK)+B);return $.unsuspend=X,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(Z)}}:null}function M8(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)F8(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function F8($,B){$.stylesheets=null,$.unsuspend!==null&&($.count++,CB=new Map,B.forEach(Gg,$),CB=null,M8.call($))}function Gg($,B){if(!(B.state.loading&_4)){var X=CB.get($);if(X)var Y=X.get(MG);else{X=new Map,CB.set($,X);for(var Z=$.querySelectorAll("link[data-precedence],style[data-precedence]"),G=0;G<Z.length;G++){var z=Z[G];if(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")X.set(z.dataset.precedence,z),Y=z}Y&&X.set(MG,Y)}Z=B.instance,z=Z.getAttribute("data-precedence"),G=X.get(z)||Y,G===Y&&X.set(MG,Z),X.set(z,Z),this.count++,Y=M8.bind(this),Z.addEventListener("load",Y),Z.addEventListener("error",Y),G?G.parentNode.insertBefore(Z,G.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(Z,$.firstChild)),B.state.loading|=_4}}function zg($,B,X,Y,Z,G,z,W,J){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=w3,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=z4(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=z4(0),this.hiddenUpdates=z4(null),this.identifierPrefix=Y,this.onUncaughtError=Z,this.onCaughtError=G,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=J,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,$=this.pendingUpdatersLaneMap=[];for(B=0;31>B;B++)$.push(new Set);this._debugRootType=X?"hydrateRoot()":"createRoot()"}function uv($,B,X,Y,Z,G,z,W,J,Q,A,P){return $=new zg($,B,X,z,J,Q,A,P,W),B=PK,G===!0&&(B|=O1|T4),B|=k0,G=T(3,null,null,B),$.current=G,G.stateNode=$,B=UX(),o5(B),$.pooledCache=B,o5(B),G.memoizedState={element:Y,isDehydrated:X,cache:B},MX(G),$}function xv($){if(!$)return H5;return $=H5,$}function pY($,B,X,Y,Z,G){if(U1&&typeof U1.onScheduleFiberRoot==="function")try{U1.onScheduleFiberRoot(r3,Y,X)}catch(z){G7||(G7=!0,console.error("React instrumentation encountered an error: %o",z))}Z=xv(Z),Y.context===null?Y.context=Z:Y.pendingContext=Z,Z7&&t1!==null&&!_Q&&(_Q=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
181
|
+
- `+c$(X)+`
|
|
182
|
+
+ `+c$(J),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+J);return null;case"script":return X=J.async,J=J.src,typeof J==="string"&&X&&typeof X!=="function"&&typeof X!=="symbol"?(J=wZ(J),X=q1(W).hoistableScripts,q=X.get(J),q||(q={type:"script",instance:null,count:0,state:null},X.set(J,q)),q):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+Z+'". this is a bug in React.')}}function c$(Z){var X=0,J="<link";return typeof Z.rel==="string"?(X++,J+=' rel="'+Z.rel+'"'):r2.call(Z,"rel")&&(X++,J+=' rel="'+(Z.rel===null?"null":"invalid type "+typeof Z.rel)+'"'),typeof Z.href==="string"?(X++,J+=' href="'+Z.href+'"'):r2.call(Z,"href")&&(X++,J+=' href="'+(Z.href===null?"null":"invalid type "+typeof Z.href)+'"'),typeof Z.precedence==="string"?(X++,J+=' precedence="'+Z.precedence+'"'):r2.call(Z,"precedence")&&(X++,J+=" precedence={"+(Z.precedence===null?"null":"invalid type "+typeof Z.precedence)+"}"),Object.getOwnPropertyNames(Z).length>X&&(J+=" ..."),J+" />"}function PZ(Z){return'href="'+O2(Z)+'"'}function k3(Z){return'link[rel="stylesheet"]['+Z+"]"}function hR(Z){return V1({},Z,{"data-precedence":Z.precedence,precedence:null})}function tS(Z,X,J,q){Z.querySelector('link[rel="preload"][as="style"]['+X+"]")?q.loading=bQ:(X=Z.createElement("link"),q.preload=X,X.addEventListener("load",function(){return q.loading|=bQ}),X.addEventListener("error",function(){return q.loading|=AA}),q4(X,"link",J),i0(X),Z.head.appendChild(X))}function wZ(Z){return'[src="'+O2(Z)+'"]'}function m3(Z){return"script[async]"+Z}function vR(Z,X,J){if(X.count++,X.instance===null)switch(X.type){case"style":var q=Z.querySelector('style[data-href~="'+O2(J.href)+'"]');if(q)return X.instance=q,i0(q),q;var W=V1({},J,{"data-href":J.href,"data-precedence":J.precedence,href:null,precedence:null});return q=(Z.ownerDocument||Z).createElement("style"),i0(q),q4(q,"style",W),r$(q,J.precedence,Z),X.instance=q;case"stylesheet":W=PZ(J.href);var U=Z.querySelector(k3(W));if(U)return X.state.loading|=b2,X.instance=U,i0(U),U;q=hR(J),(W=y2.get(W))&&lW(q,W),U=(Z.ownerDocument||Z).createElement("link"),i0(U);var M=U;return M._p=new Promise(function(_,V){M.onload=_,M.onerror=V}),q4(U,"link",q),X.state.loading|=b2,r$(U,J.precedence,Z),X.instance=U;case"script":if(U=wZ(J.src),W=Z.querySelector(m3(U)))return X.instance=W,i0(W),W;if(q=J,W=y2.get(U))q=V1({},J),dW(q,W);return Z=Z.ownerDocument||Z,W=Z.createElement("script"),i0(W),q4(W,"link",q),Z.head.appendChild(W),X.instance=W;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+X.type+'". this is a bug in React.')}else X.type==="stylesheet"&&(X.state.loading&b2)===A8&&(q=X.instance,X.state.loading|=b2,r$(q,J.precedence,Z));return X.instance}function r$(Z,X,J){for(var q=J.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),W=q.length?q[q.length-1]:null,U=W,M=0;M<q.length;M++){var _=q[M];if(_.dataset.precedence===X)U=_;else if(U!==W)break}U?U.parentNode.insertBefore(Z,U.nextSibling):(X=J.nodeType===9?J.head:J,X.insertBefore(Z,X.firstChild))}function lW(Z,X){Z.crossOrigin==null&&(Z.crossOrigin=X.crossOrigin),Z.referrerPolicy==null&&(Z.referrerPolicy=X.referrerPolicy),Z.title==null&&(Z.title=X.title)}function dW(Z,X){Z.crossOrigin==null&&(Z.crossOrigin=X.crossOrigin),Z.referrerPolicy==null&&(Z.referrerPolicy=X.referrerPolicy),Z.integrity==null&&(Z.integrity=X.integrity)}function xR(Z,X,J){if(eY===null){var q=new Map,W=eY=new Map;W.set(J,q)}else W=eY,q=W.get(J),q||(q=new Map,W.set(J,q));if(q.has(Z))return q;q.set(Z,null),J=J.getElementsByTagName(Z);for(W=0;W<J.length;W++){var U=J[W];if(!(U[d3]||U[G4]||Z==="link"&&U.getAttribute("rel")==="stylesheet")&&U.namespaceURI!==yZ){var M=U.getAttribute(X)||"";M=Z+M;var _=q.get(M);_?_.push(U):q.set(M,[U])}}return q}function kR(Z,X,J){Z=Z.ownerDocument||Z,Z.head.insertBefore(J,X==="title"?Z.querySelector("head > title"):null)}function eS(Z,X,J){var q=!J.ancestorInfo.containerTagInScope;if(J.context===WX||X.itemProp!=null)return!q||X.itemProp==null||Z!=="meta"&&Z!=="title"&&Z!=="style"&&Z!=="link"&&Z!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",Z,Z),!1;switch(Z){case"meta":case"title":return!0;case"style":if(typeof X.precedence!=="string"||typeof X.href!=="string"||X.href===""){q&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof X.rel!=="string"||typeof X.href!=="string"||X.href===""||X.onLoad||X.onError){if(X.rel==="stylesheet"&&typeof X.precedence==="string"){Z=X.href;var{onError:W,disabled:U}=X;J=[],X.onLoad&&J.push("`onLoad`"),W&&J.push("`onError`"),U!=null&&J.push("`disabled`"),W=DS(J,"and"),W+=J.length===1?" prop":" props",U=J.length===1?"an "+W:"the "+W,J.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',Z,U,W)}q&&(typeof X.rel!=="string"||typeof X.href!=="string"||X.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(X.onError||X.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(X.rel){case"stylesheet":return Z=X.precedence,X=X.disabled,typeof Z!=="string"&&q&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof Z==="string"&&X==null;default:return!0}case"script":if(Z=X.async&&typeof X.async!=="function"&&typeof X.async!=="symbol",!Z||X.onLoad||X.onError||!X.src||typeof X.src!=="string"){q&&(Z?X.onLoad||X.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":q&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",Z)}return!1}function mR(Z){return Z.type==="stylesheet"&&(Z.state.loading&IA)===A8?!1:!0}function ZE(Z,X,J,q){if(J.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&(J.state.loading&b2)===A8){if(J.instance===null){var W=PZ(q.href),U=X.querySelector(k3(W));if(U){X=U._p,X!==null&&typeof X==="object"&&typeof X.then==="function"&&(Z.count++,Z=a$.bind(Z),X.then(Z,Z)),J.state.loading|=b2,J.instance=U,i0(U);return}U=X.ownerDocument||X,q=hR(q),(W=y2.get(W))&&lW(q,W),U=U.createElement("link"),i0(U);var M=U;M._p=new Promise(function(_,V){M.onload=_,M.onerror=V}),q4(U,"link",q),J.instance=U}Z.stylesheets===null&&(Z.stylesheets=new Map),Z.stylesheets.set(J,X),(X=J.state.preload)&&(J.state.loading&IA)===A8&&(Z.count++,J=a$.bind(Z),X.addEventListener("load",J),X.addEventListener("error",J))}}function XE(Z,X){return Z.stylesheets&&Z.count===0&&n$(Z,Z.stylesheets),0<Z.count||0<Z.imgCount?function(J){var q=setTimeout(function(){if(Z.stylesheets&&n$(Z,Z.stylesheets),Z.unsuspend){var U=Z.unsuspend;Z.unsuspend=null,U()}},nb+X);0<Z.imgBytes&&IB===0&&(IB=125*SS()*ob);var W=setTimeout(function(){if(Z.waitingForImages=!1,Z.count===0&&(Z.stylesheets&&n$(Z,Z.stylesheets),Z.unsuspend)){var U=Z.unsuspend;Z.unsuspend=null,U()}},(Z.imgBytes>IB?50:sb)+X);return Z.unsuspend=J,function(){Z.unsuspend=null,clearTimeout(q),clearTimeout(W)}}:null}function a$(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)n$(this,this.stylesheets);else if(this.unsuspend){var Z=this.unsuspend;this.unsuspend=null,Z()}}}function n$(Z,X){Z.stylesheets=null,Z.unsuspend!==null&&(Z.count++,Zq=new Map,X.forEach(QE,Z),Zq=null,a$.call(Z))}function QE(Z,X){if(!(X.state.loading&b2)){var J=Zq.get(Z);if(J)var q=J.get(TB);else{J=new Map,Zq.set(Z,J);for(var W=Z.querySelectorAll("link[data-precedence],style[data-precedence]"),U=0;U<W.length;U++){var M=W[U];if(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")J.set(M.dataset.precedence,M),q=M}q&&J.set(TB,q)}W=X.instance,M=W.getAttribute("data-precedence"),U=J.get(M)||q,U===q&&J.set(TB,W),J.set(M,W),this.count++,q=a$.bind(this),W.addEventListener("load",q),W.addEventListener("error",q),U?U.parentNode.insertBefore(W,U.nextSibling):(Z=Z.nodeType===9?Z.head:Z,Z.insertBefore(W,Z.firstChild)),X.state.loading|=b2}}function JE(Z,X,J,q,W,U,M,_,V){this.tag=1,this.containerInfo=Z,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=O8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=W0(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=W0(0),this.hiddenUpdates=W0(null),this.identifierPrefix=q,this.onUncaughtError=W,this.onCaughtError=U,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,Z=this.pendingUpdatersLaneMap=[];for(X=0;31>X;X++)Z.push(new Set);this._debugRootType=J?"hydrateRoot()":"createRoot()"}function uR(Z,X,J,q,W,U,M,_,V,j,l,d){return Z=new JE(Z,X,J,M,V,j,l,d,_),X=Ib,U===!0&&(X|=R4|n2),X|=N1,U=O(3,null,null,X),Z.current=U,U.stateNode=Z,X=RK(),r7(X),Z.pooledCache=X,r7(X),U.memoizedState={element:q,isDehydrated:J,cache:X},TK(U),Z}function fR(Z){if(!Z)return n6;return Z=n6,Z}function iW(Z,X,J,q,W,U){if(N4&&typeof N4.onScheduleFiberRoot==="function")try{N4.onScheduleFiberRoot(EZ,q,J)}catch(M){S9||(S9=!0,console.error("React instrumentation encountered an error: %o",M))}W=fR(W),q.context===null?q.context=W:q.pendingContext=W,D9&&G2!==null&&!CA&&(CA=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
183
183
|
|
|
184
|
-
Check the render method of %s.`,i(t1)||"Unknown")),Y=r7(B),Y.payload={element:X},G=G===void 0?null:G,G!==null&&(typeof G!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",G),Y.callback=G),X=n7($,Y,B),X!==null&&(d4(B,"root.render()",null),k2(X,$,B),s6(X,$,B))}function hv($,B){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var X=$.retryLane;$.retryLane=X!==0&&X<B?X:B}}function cY($,B){hv($,B),($=$.alternate)&&hv($,B)}function kv($){if($.tag===13||$.tag===31){var B=K1($,67108864);B!==null&&k2(B,$,67108864),cY($,67108864)}}function jv($){if($.tag===13||$.tag===31){var B=i1($);B=c7(B);var X=K1($,B);X!==null&&k2(X,$,B),cY($,B)}}function Wg(){return t1}function Ng($,B,X,Y){var Z=x.T;x.T=null;var G=Q2.p;try{Q2.p=e1,oY($,B,X,Y)}finally{Q2.p=G,x.T=Z}}function vg($,B,X,Y){var Z=x.T;x.T=null;var G=Q2.p;try{Q2.p=m4,oY($,B,X,Y)}finally{Q2.p=G,x.T=Z}}function oY($,B,X,Y){if(TB){var Z=aY(Y);if(Z===null)fY($,B,Y,fB,X),Ev($,Y);else if(Jg(Z,$,B,X,Y))Y.stopPropagation();else if(Ev($,Y),B&4&&-1<XU.indexOf($)){for(;Z!==null;){var G=n(Z);if(G!==null)switch(G.tag){case 3:if(G=G.stateNode,G.current.memoizedState.isDehydrated){var z=g1(G.pendingLanes);if(z!==0){var W=G;W.pendingLanes|=2;for(W.entangledLanes|=2;z;){var J=1<<31-M1(z);W.entanglements[1]|=J,z&=~J}$7(G),(Z2&($1|Y4))===N1&&(LB=G1()+iH,N$(0,!1))}}break;case 31:case 13:W=K1(G,2),W!==null&&k2(W,G,2),D3(),cY(G,2)}if(G=aY(Y),G===null&&fY($,B,Y,fB,X),G===Z)break;Z=G}Z!==null&&Y.stopPropagation()}else fY($,B,Y,null,X)}}function aY($){return $=eB($),sY($)}function sY($){if(fB=null,$=y($),$!==null){var B=K0($);if(B===null)$=null;else{var X=B.tag;if(X===13){if($=_0(B),$!==null)return $;$=null}else if(X===31){if($=k(B),$!==null)return $;$=null}else if(X===3){if(B.stateNode.current.memoizedState.isDehydrated)return B.tag===3?B.stateNode.containerInfo:null;$=null}else B!==$&&($=null)}}return fB=$,null}function Vv($){switch($){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 e1;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 m4;case"message":switch(wg()){case WZ:return e1;case NZ:return m4;case i3:case Rg:return W7;case vZ:return S8;default:return W7}default:return W7}}function Ev($,B){switch($){case"focusin":case"focusout":C5=null;break;case"dragenter":case"dragleave":m5=null;break;case"mouseover":case"mouseout":T5=null;break;case"pointerover":case"pointerout":v9.delete(B.pointerId);break;case"gotpointercapture":case"lostpointercapture":J9.delete(B.pointerId)}}function g$($,B,X,Y,Z,G){if($===null||$.nativeEvent!==G)return $={blockedOn:B,domEventName:X,eventSystemFlags:Y,nativeEvent:G,targetContainers:[Z]},B!==null&&(B=n(B),B!==null&&kv(B)),$;return $.eventSystemFlags|=Y,B=$.targetContainers,Z!==null&&B.indexOf(Z)===-1&&B.push(Z),$}function Jg($,B,X,Y,Z){switch(B){case"focusin":return C5=g$(C5,$,B,X,Y,Z),!0;case"dragenter":return m5=g$(m5,$,B,X,Y,Z),!0;case"mouseover":return T5=g$(T5,$,B,X,Y,Z),!0;case"pointerover":var G=Z.pointerId;return v9.set(G,g$(v9.get(G)||null,$,B,X,Y,Z)),!0;case"gotpointercapture":return G=Z.pointerId,J9.set(G,g$(J9.get(G)||null,$,B,X,Y,Z)),!0}return!1}function Dv($){var B=y($.target);if(B!==null){var X=K0(B);if(X!==null){if(B=X.tag,B===13){if(B=_0(X),B!==null){$.blockedOn=B,l($.priority,function(){jv(X)});return}}else if(B===31){if(B=k(X),B!==null){$.blockedOn=B,l($.priority,function(){jv(X)});return}}else if(B===3&&X.stateNode.current.memoizedState.isDehydrated){$.blockedOn=X.tag===3?X.stateNode.containerInfo:null;return}}}$.blockedOn=null}function A8($){if($.blockedOn!==null)return!1;for(var B=$.targetContainers;0<B.length;){var X=aY($.nativeEvent);if(X===null){X=$.nativeEvent;var Y=new X.constructor(X.type,X),Z=Y;R$!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),R$=Z,X.target.dispatchEvent(Y),R$===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),R$=null}else return B=n(X),B!==null&&kv(B),$.blockedOn=X,!1;B.shift()}return!0}function lv($,B,X){A8($)&&X.delete(B)}function Hg(){FG=!1,C5!==null&&A8(C5)&&(C5=null),m5!==null&&A8(m5)&&(m5=null),T5!==null&&A8(T5)&&(T5=null),v9.forEach(lv),J9.forEach(lv)}function P8($,B){$.blockedOn===B&&($.blockedOn=null,FG||(FG=!0,z2.unstable_scheduleCallback(z2.unstable_NormalPriority,Hg)))}function dv($){yB!==$&&(yB=$,z2.unstable_scheduleCallback(z2.unstable_NormalPriority,function(){yB===$&&(yB=null);for(var B=0;B<$.length;B+=3){var X=$[B],Y=$[B+1],Z=$[B+2];if(typeof Y!=="function")if(sY(Y||X)===null)continue;else break;var G=n(X);G!==null&&($.splice(B,3),B-=3,X={pending:!0,data:Z,method:X.method,action:Y},Object.freeze(X),sX(G,X,Y,Z))}}))}function o3($){function B(J){return P8(J,$)}C5!==null&&P8(C5,$),m5!==null&&P8(m5,$),T5!==null&&P8(T5,$),v9.forEach(B),J9.forEach(B);for(var X=0;X<f5.length;X++){var Y=f5[X];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<f5.length&&(X=f5[0],X.blockedOn===null);)Dv(X),X.blockedOn===null&&f5.shift();if(X=($.ownerDocument||$).$$reactFormReplay,X!=null)for(Y=0;Y<X.length;Y+=3){var Z=X[Y],G=X[Y+1],z=Z[F1]||null;if(typeof G==="function")z||dv(X);else if(z){var W=null;if(G&&G.hasAttribute("formAction")){if(Z=G,z=G[F1]||null)W=z.formAction;else if(sY(Z)!==null)continue}else W=z.action;typeof W==="function"?X[Y+1]=W:(X.splice(Y,3),Y-=3),dv(X)}}}function pv(){function $(G){G.canIntercept&&G.info==="react-transition"&&G.intercept({handler:function(){return new Promise(function(z){return Z=z})},focusReset:"manual",scroll:"manual"})}function B(){Z!==null&&(Z(),Z=null),Y||setTimeout(X,20)}function X(){if(!Y&&!navigation.transition){var G=navigation.currentEntry;G&&G.url!=null&&navigation.navigate(G.url,{state:G.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var Y=!1,Z=null;return navigation.addEventListener("navigate",$),navigation.addEventListener("navigatesuccess",B),navigation.addEventListener("navigateerror",B),setTimeout(X,100),function(){Y=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",B),navigation.removeEventListener("navigateerror",B),Z!==null&&(Z(),Z=null)}}}function iY($){this._internalRoot=$}function I8($){this._internalRoot=$}function cv($){$[W5]&&($._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c0=Object.assign,Qg=Symbol.for("react.element"),X7=Symbol.for("react.transitional.element"),a3=Symbol.for("react.portal"),s3=Symbol.for("react.fragment"),b8=Symbol.for("react.strict_mode"),rY=Symbol.for("react.profiler"),nY=Symbol.for("react.consumer"),Y7=Symbol.for("react.context"),K$=Symbol.for("react.forward_ref"),tY=Symbol.for("react.suspense"),eY=Symbol.for("react.suspense_list"),C8=Symbol.for("react.memo"),n1=Symbol.for("react.lazy"),$Z=Symbol.for("react.activity"),Lg=Symbol.for("react.memo_cache_sentinel"),ov=Symbol.iterator,qg=Symbol.for("react.client.reference"),t2=Array.isArray,x=T6.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q2=PG.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,gg=Object.freeze({pending:!1,data:null,method:null,action:null}),BZ=[],XZ=[],A7=-1,Z5=B2(null),U$=B2(null),G5=B2(null),m8=B2(null),O$=0,av,sv,iv,rv,nv,tv,ev;u.__reactDisabledLog=!0;var YZ,$J,ZZ=!1,GZ=new(typeof WeakMap==="function"?WeakMap:Map),t1=null,Z7=!1,C4=Object.prototype.hasOwnProperty,zZ=z2.unstable_scheduleCallback,Kg=z2.unstable_cancelCallback,Ug=z2.unstable_shouldYield,Og=z2.unstable_requestPaint,G1=z2.unstable_now,wg=z2.unstable_getCurrentPriorityLevel,WZ=z2.unstable_ImmediatePriority,NZ=z2.unstable_UserBlockingPriority,i3=z2.unstable_NormalPriority,Rg=z2.unstable_LowPriority,vZ=z2.unstable_IdlePriority,_g=z2.log,Mg=z2.unstable_setDisableYieldValue,r3=null,U1=null,G7=!1,z7=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",M1=Math.clz32?Math.clz32:y1,Fg=Math.log,Ag=Math.LN2,T8=256,f8=262144,y8=4194304,e1=2,m4=8,W7=32,S8=268435456,z5=Math.random().toString(36).slice(2),Q1="__reactFiber$"+z5,F1="__reactProps$"+z5,W5="__reactContainer$"+z5,JZ="__reactEvents$"+z5,Pg="__reactListeners$"+z5,Ig="__reactHandles$"+z5,BJ="__reactResources$"+z5,w$="__reactMarker$"+z5,XJ=new Set,e5={},HZ={},bg={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Cg=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]*$"),YJ={},ZJ={},mg=/[\n"\\]/g,GJ=!1,zJ=!1,WJ=!1,NJ=!1,vJ=!1,JJ=!1,HJ=["value","defaultValue"],QJ=!1,LJ=/["'&<>\n\t]|^\s|\s$/,Tg="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),qJ="applet caption html table td th marquee object template foreignObject desc title".split(" "),fg=qJ.concat(["button"]),yg="dd dt li option optgroup p rp rt".split(" "),gJ={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},u8={},QZ={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},KJ=/([A-Z])/g,UJ=/^ms-/,Sg=/^(?:webkit|moz|o)[A-Z]/,ug=/^-ms-/,xg=/-(.)/g,OJ=/;\s*$/,n3={},LZ={},wJ=!1,RJ=!1,_J=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(" ")),x8="http://www.w3.org/1998/Math/MathML",t3="http://www.w3.org/2000/svg",hg=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"]]),h8={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},MJ={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},e3={},kg=RegExp("^(aria)-[: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]*$"),jg=RegExp("^(aria)[A-Z][: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]*$"),FJ=!1,A1={},AJ=/^on./,Vg=/^on[^A-Z]/,Eg=RegExp("^(aria)-[: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]*$"),Dg=RegExp("^(aria)[A-Z][: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]*$"),lg=/^[\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,R$=null,$6=null,B6=null,qZ=!1,N7=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gZ=!1;if(N7)try{var _$={};Object.defineProperty(_$,"passive",{get:function(){gZ=!0}}),window.addEventListener("test",_$,_$),window.removeEventListener("test",_$,_$)}catch($){gZ=!1}var N5=null,KZ=null,k8=null,$3={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},j8=u1($3),M$=c0({},$3,{view:0,detail:0}),dg=u1(M$),UZ,OZ,F$,V8=c0({},M$,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$X,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==F$&&(F$&&$.type==="mousemove"?(UZ=$.screenX-F$.screenX,OZ=$.screenY-F$.screenY):OZ=UZ=0,F$=$),UZ},movementY:function($){return"movementY"in $?$.movementY:OZ}}),PJ=u1(V8),pg=c0({},V8,{dataTransfer:0}),cg=u1(pg),og=c0({},M$,{relatedTarget:0}),wZ=u1(og),ag=c0({},$3,{animationName:0,elapsedTime:0,pseudoElement:0}),sg=u1(ag),ig=c0({},$3,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),rg=u1(ig),ng=c0({},$3,{data:0}),IJ=u1(ng),tg=IJ,eg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$K={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"},BK={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},XK=c0({},M$,{key:function($){if($.key){var B=eg[$.key]||$.key;if(B!=="Unidentified")return B}return $.type==="keypress"?($=A9($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?$K[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$X,charCode:function($){return $.type==="keypress"?A9($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?A9($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),YK=u1(XK),ZK=c0({},V8,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bJ=u1(ZK),GK=c0({},M$,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$X}),zK=u1(GK),WK=c0({},$3,{propertyName:0,elapsedTime:0,pseudoElement:0}),NK=u1(WK),vK=c0({},V8,{deltaX:function($){return"deltaX"in $?$.deltaX:("wheelDeltaX"in $)?-$.wheelDeltaX:0},deltaY:function($){return"deltaY"in $?$.deltaY:("wheelDeltaY"in $)?-$.wheelDeltaY:("wheelDelta"in $)?-$.wheelDelta:0},deltaZ:0,deltaMode:0}),JK=u1(vK),HK=c0({},$3,{newState:0,oldState:0}),QK=u1(HK),LK=[9,13,27,32],CJ=229,RZ=N7&&"CompositionEvent"in window,A$=null;N7&&"documentMode"in document&&(A$=document.documentMode);var qK=N7&&"TextEvent"in window&&!A$,mJ=N7&&(!RZ||A$&&8<A$&&11>=A$),TJ=32,fJ=String.fromCharCode(TJ),yJ=!1,X6=!1,gK={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},P$=null,I$=null,SJ=!1;N7&&(SJ=hL("input")&&(!document.documentMode||9<document.documentMode));var P1=typeof Object.is==="function"?Object.is:lL,KK=N7&&"documentMode"in document&&11>=document.documentMode,Y6=null,_Z=null,b$=null,MZ=!1,Z6={animationend:V5("Animation","AnimationEnd"),animationiteration:V5("Animation","AnimationIteration"),animationstart:V5("Animation","AnimationStart"),transitionrun:V5("Transition","TransitionRun"),transitionstart:V5("Transition","TransitionStart"),transitioncancel:V5("Transition","TransitionCancel"),transitionend:V5("Transition","TransitionEnd")},FZ={},uJ={};N7&&(uJ=document.createElement("div").style,("AnimationEvent"in window)||(delete Z6.animationend.animation,delete Z6.animationiteration.animation,delete Z6.animationstart.animation),("TransitionEvent"in window)||delete Z6.transitionend.transition);var xJ=E5("animationend"),hJ=E5("animationiteration"),kJ=E5("animationstart"),UK=E5("transitionrun"),OK=E5("transitionstart"),wK=E5("transitioncancel"),jJ=E5("transitionend"),VJ=new Map,AZ="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(" ");AZ.push("scrollEnd");var EJ=0;if(typeof performance==="object"&&typeof performance.now==="function")var RK=performance,DJ=function(){return RK.now()};else{var _K=Date;DJ=function(){return _K.now()}}var PZ=typeof reportError==="function"?reportError:function($){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $==="object"&&$!==null&&typeof $.message==="string"?String($.message):String($),error:$});if(!window.dispatchEvent(B))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",$);return}console.error($)},MK="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",E8=0,IZ=1,bZ=2,CZ=3,D8="– ",l8="+ ",lJ=" ",A2=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",H4="Components ⚛",o0="Scheduler ⚛",s0="Blocking",v5=!1,P7={color:"primary",properties:null,tooltipText:"",track:H4},J5={start:-0,end:-0,detail:{devtools:P7}},FK=["Changed Props",""],dJ="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",AK=["Changed Props",dJ],C$=1,I7=2,Q4=[],G6=0,mZ=0,H5={};Object.freeze(H5);var L4=null,z6=null,A0=0,PK=1,k0=2,O1=8,T4=16,IK=32,pJ=!1;try{var cJ=Object.preventExtensions({});}catch($){pJ=!0}var TZ=new WeakMap,W6=[],N6=0,d8=null,m$=0,q4=[],g4=0,B3=null,b7=1,C7="",L1=null,P2=null,i0=!1,v7=!1,$4=null,Q5=null,K4=!1,fZ=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),yZ=B2(null),SZ=B2(null),oJ={},p8=null,v6=null,J6=!1,bK=typeof AbortController<"u"?AbortController:function(){var $=[],B=this.signal={aborted:!1,addEventListener:function(X,Y){$.push(Y)}};this.abort=function(){B.aborted=!0,$.forEach(function(X){return X()})}},CK=z2.unstable_scheduleCallback,mK=z2.unstable_NormalPriority,p2={$$typeof:Y7,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},c2=z2.unstable_now,c8=console.createTask?console.createTask:function(){return null},T$=1,o8=2,z1=-0,L5=-0,m7=-0,T7=null,I1=-1.1,X3=-0,u2=-0,g0=-1.1,O0=-1.1,T2=null,j2=!1,q5=-0,J7=-1.1,f$=null,g5=0,uZ=null,xZ=null,Y3=-1.1,y$=null,H6=-1.1,a8=-1.1,H7=-0,f7=-1.1,U4=-1.1,hZ=0,S$=null,aJ=null,sJ=null,K5=-1.1,Z3=null,U5=-1.1,s8=-1.1,iJ=-0,rJ=-0,i8=0,y7=null,nJ=0,u$=-1.1,r8=!1,n8=!1,x$=null,kZ=0,G3=0,Q6=null,tJ=x.S;x.S=function($,B){if(aH=G1(),typeof B==="object"&&B!==null&&typeof B.then==="function"){if(0>f7&&0>U4){f7=c2();var X=H$(),Y=J$();if(X!==U5||Y!==Z3)U5=-1.1;K5=X,Z3=Y}iL($,B)}tJ!==null&&tJ($,B)};var z3=B2(null),f4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},h$=[],k$=[],j$=[],V$=[],E$=[],D$=[],W3=new Set;f4.recordUnsafeLifecycleWarnings=function($,B){W3.has($.type)||(typeof B.componentWillMount==="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0&&h$.push($),$.mode&O1&&typeof B.UNSAFE_componentWillMount==="function"&&k$.push($),typeof B.componentWillReceiveProps==="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&j$.push($),$.mode&O1&&typeof B.UNSAFE_componentWillReceiveProps==="function"&&V$.push($),typeof B.componentWillUpdate==="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0&&E$.push($),$.mode&O1&&typeof B.UNSAFE_componentWillUpdate==="function"&&D$.push($))},f4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<h$.length&&(h$.forEach(function(W){$.add(i(W)||"Component"),W3.add(W.type)}),h$=[]);var B=new Set;0<k$.length&&(k$.forEach(function(W){B.add(i(W)||"Component"),W3.add(W.type)}),k$=[]);var X=new Set;0<j$.length&&(j$.forEach(function(W){X.add(i(W)||"Component"),W3.add(W.type)}),j$=[]);var Y=new Set;0<V$.length&&(V$.forEach(function(W){Y.add(i(W)||"Component"),W3.add(W.type)}),V$=[]);var Z=new Set;0<E$.length&&(E$.forEach(function(W){Z.add(i(W)||"Component"),W3.add(W.type)}),E$=[]);var G=new Set;if(0<D$.length&&(D$.forEach(function(W){G.add(i(W)||"Component"),W3.add(W.type)}),D$=[]),0<B.size){var z=_(B);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
184
|
+
Check the render method of %s.`,E(G2)||"Unknown")),q=g6(X),q.payload={element:J},U=U===void 0?null:U,U!==null&&(typeof U!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",U),q.callback=U),J=h6(Z,q,X),J!==null&&(F9(X,"root.render()",null),L5(J,Z,X),_3(J,Z,X))}function pR(Z,X){if(Z=Z.memoizedState,Z!==null&&Z.dehydrated!==null){var J=Z.retryLane;Z.retryLane=J!==0&&J<X?J:X}}function cW(Z,X){pR(Z,X),(Z=Z.alternate)&&pR(Z,X)}function lR(Z){if(Z.tag===13||Z.tag===31){var X=M4(Z,67108864);X!==null&&L5(X,Z,67108864),cW(Z,67108864)}}function dR(Z){if(Z.tag===13||Z.tag===31){var X=$2(Z);X=n5(X);var J=M4(Z,X);J!==null&&L5(J,Z,X),cW(Z,X)}}function $E(){return G2}function YE(Z,X,J,q){var W=q0.T;q0.T=null;var U=f1.p;try{f1.p=K2,rW(Z,X,J,q)}finally{f1.p=U,q0.T=W}}function qE(Z,X,J,q){var W=q0.T;q0.T=null;var U=f1.p;try{f1.p=a2,rW(Z,X,J,q)}finally{f1.p=U,q0.T=W}}function rW(Z,X,J,q){if(Qq){var W=aW(q);if(W===null)bW(Z,X,q,Jq,J),cR(Z,q);else if(GE(W,Z,X,J,q))q.stopPropagation();else if(cR(Z,q),X&4&&-1<eb.indexOf(Z)){for(;W!==null;){var U=D0(W);if(U!==null)switch(U.tag){case 3:if(U=U.stateNode,U.current.memoizedState.isDehydrated){var M=a5(U.pendingLanes);if(M!==0){var _=U;_.pendingLanes|=2;for(_.entangledLanes|=2;M;){var V=1<<31-w4(M);_.entanglements[1]|=V,M&=~V}P9(U),(x1&(p5|U2))===Z4&&(mY=o5()+XA,y3(0,!1))}}break;case 31:case 13:_=M4(U,2),_!==null&&L5(_,U,2),IZ(),cW(U,2)}if(U=aW(q),U===null&&bW(Z,X,q,Jq,J),U===W)break;W=U}W!==null&&q.stopPropagation()}else bW(Z,X,q,null,J)}}function aW(Z){return Z=ZK(Z),nW(Z)}function nW(Z){if(Jq=null,Z=Q0(Z),Z!==null){var X=y(Z);if(X===null)Z=null;else{var J=X.tag;if(J===13){if(Z=k(X),Z!==null)return Z;Z=null}else if(J===31){if(Z=f(X),Z!==null)return Z;Z=null}else if(J===3){if(X.stateNode.current.memoizedState.isDehydrated)return X.tag===3?X.stateNode.containerInfo:null;Z=null}else X!==Z&&(Z=null)}}return Jq=Z,null}function iR(Z){switch(Z){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 K2;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 a2;case"message":switch(ME()){case KH:return K2;case WH:return a2;case SZ:case NE:return b9;case HH:return YY;default:return b9}default:return b9}}function cR(Z,X){switch(Z){case"focusin":case"focusout":U7=null;break;case"dragenter":case"dragleave":z7=null;break;case"mouseover":case"mouseout":F7=null;break;case"pointerover":case"pointerout":gQ.delete(X.pointerId);break;case"gotpointercapture":case"lostpointercapture":hQ.delete(X.pointerId)}}function u3(Z,X,J,q,W,U){if(Z===null||Z.nativeEvent!==U)return Z={blockedOn:X,domEventName:J,eventSystemFlags:q,nativeEvent:U,targetContainers:[W]},X!==null&&(X=D0(X),X!==null&&lR(X)),Z;return Z.eventSystemFlags|=q,X=Z.targetContainers,W!==null&&X.indexOf(W)===-1&&X.push(W),Z}function GE(Z,X,J,q,W){switch(X){case"focusin":return U7=u3(U7,Z,X,J,q,W),!0;case"dragenter":return z7=u3(z7,Z,X,J,q,W),!0;case"mouseover":return F7=u3(F7,Z,X,J,q,W),!0;case"pointerover":var U=W.pointerId;return gQ.set(U,u3(gQ.get(U)||null,Z,X,J,q,W)),!0;case"gotpointercapture":return U=W.pointerId,hQ.set(U,u3(hQ.get(U)||null,Z,X,J,q,W)),!0}return!1}function rR(Z){var X=Q0(Z.target);if(X!==null){var J=y(X);if(J!==null){if(X=J.tag,X===13){if(X=k(J),X!==null){Z.blockedOn=X,M0(Z.priority,function(){dR(J)});return}}else if(X===31){if(X=f(J),X!==null){Z.blockedOn=X,M0(Z.priority,function(){dR(J)});return}}else if(X===3&&J.stateNode.current.memoizedState.isDehydrated){Z.blockedOn=J.tag===3?J.stateNode.containerInfo:null;return}}}Z.blockedOn=null}function s$(Z){if(Z.blockedOn!==null)return!1;for(var X=Z.targetContainers;0<X.length;){var J=aW(Z.nativeEvent);if(J===null){J=Z.nativeEvent;var q=new J.constructor(J.type,J),W=q;i3!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),i3=W,J.target.dispatchEvent(q),i3===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),i3=null}else return X=D0(J),X!==null&&lR(X),Z.blockedOn=J,!1;X.shift()}return!0}function aR(Z,X,J){s$(Z)&&J.delete(X)}function KE(){VB=!1,U7!==null&&s$(U7)&&(U7=null),z7!==null&&s$(z7)&&(z7=null),F7!==null&&s$(F7)&&(F7=null),gQ.forEach(aR),hQ.forEach(aR)}function o$(Z,X){Z.blockedOn===X&&(Z.blockedOn=null,VB||(VB=!0,k1.unstable_scheduleCallback(k1.unstable_NormalPriority,KE)))}function nR(Z){$q!==Z&&($q=Z,k1.unstable_scheduleCallback(k1.unstable_NormalPriority,function(){$q===Z&&($q=null);for(var X=0;X<Z.length;X+=3){var J=Z[X],q=Z[X+1],W=Z[X+2];if(typeof q!=="function")if(nW(q||J)===null)continue;else break;var U=D0(J);U!==null&&(Z.splice(X,3),X-=3,J={pending:!0,data:W,method:J.method,action:q},Object.freeze(J),nK(U,J,q,W))}}))}function CZ(Z){function X(V){return o$(V,Z)}U7!==null&&o$(U7,Z),z7!==null&&o$(z7,Z),F7!==null&&o$(F7,Z),gQ.forEach(X),hQ.forEach(X);for(var J=0;J<L7.length;J++){var q=L7[J];q.blockedOn===Z&&(q.blockedOn=null)}for(;0<L7.length&&(J=L7[0],J.blockedOn===null);)rR(J),J.blockedOn===null&&L7.shift();if(J=(Z.ownerDocument||Z).$$reactFormReplay,J!=null)for(q=0;q<J.length;q+=3){var W=J[q],U=J[q+1],M=W[C4]||null;if(typeof U==="function")M||nR(J);else if(M){var _=null;if(U&&U.hasAttribute("formAction")){if(W=U,M=U[C4]||null)_=M.formAction;else if(nW(W)!==null)continue}else _=M.action;typeof _==="function"?J[q+1]=_:(J.splice(q,3),q-=3),nR(J)}}}function sR(){function Z(U){U.canIntercept&&U.info==="react-transition"&&U.intercept({handler:function(){return new Promise(function(M){return W=M})},focusReset:"manual",scroll:"manual"})}function X(){W!==null&&(W(),W=null),q||setTimeout(J,20)}function J(){if(!q&&!navigation.transition){var U=navigation.currentEntry;U&&U.url!=null&&navigation.navigate(U.url,{state:U.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var q=!1,W=null;return navigation.addEventListener("navigate",Z),navigation.addEventListener("navigatesuccess",X),navigation.addEventListener("navigateerror",X),setTimeout(J,100),function(){q=!0,navigation.removeEventListener("navigate",Z),navigation.removeEventListener("navigatesuccess",X),navigation.removeEventListener("navigateerror",X),W!==null&&(W(),W=null)}}}function sW(Z){this._internalRoot=Z}function t$(Z){this._internalRoot=Z}function oR(Z){Z[i6]&&(Z._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var V1=Object.assign,WE=Symbol.for("react.element"),C9=Symbol.for("react.transitional.element"),jZ=Symbol.for("react.portal"),DZ=Symbol.for("react.fragment"),e$=Symbol.for("react.strict_mode"),oW=Symbol.for("react.profiler"),tW=Symbol.for("react.consumer"),j9=Symbol.for("react.context"),f3=Symbol.for("react.forward_ref"),eW=Symbol.for("react.suspense"),ZH=Symbol.for("react.suspense_list"),ZY=Symbol.for("react.memo"),q2=Symbol.for("react.lazy"),XH=Symbol.for("react.activity"),HE=Symbol.for("react.memo_cache_sentinel"),tR=Symbol.iterator,BE=Symbol.for("react.client.reference"),u5=Array.isArray,q0=BX.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,f1=CB.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,UE=Object.freeze({pending:!1,data:null,method:null,action:null}),QH=[],JH=[],Q6=-1,p6=_0(null),p3=_0(null),l6=_0(null),XY=_0(null),l3=0,eR,Z_,X_,Q_,J_,$_,Y_;T.__reactDisabledLog=!0;var $H,q_,YH=!1,qH=new(typeof WeakMap==="function"?WeakMap:Map),G2=null,D9=!1,r2=Object.prototype.hasOwnProperty,GH=k1.unstable_scheduleCallback,zE=k1.unstable_cancelCallback,FE=k1.unstable_shouldYield,LE=k1.unstable_requestPaint,o5=k1.unstable_now,ME=k1.unstable_getCurrentPriorityLevel,KH=k1.unstable_ImmediatePriority,WH=k1.unstable_UserBlockingPriority,SZ=k1.unstable_NormalPriority,NE=k1.unstable_LowPriority,HH=k1.unstable_IdlePriority,RE=k1.log,_E=k1.unstable_setDisableYieldValue,EZ=null,N4=null,S9=!1,E9=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",w4=Math.clz32?Math.clz32:F4,OE=Math.log,AE=Math.LN2,QY=256,JY=262144,$Y=4194304,K2=2,a2=8,b9=32,YY=268435456,d6=Math.random().toString(36).slice(2),G4="__reactFiber$"+d6,C4="__reactProps$"+d6,i6="__reactContainer$"+d6,BH="__reactEvents$"+d6,IE="__reactListeners$"+d6,TE="__reactHandles$"+d6,G_="__reactResources$"+d6,d3="__reactMarker$"+d6,K_=new Set,Z8={},UH={},VE={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},PE=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]*$"),W_={},H_={},wE=/[\n"\\]/g,B_=!1,U_=!1,z_=!1,F_=!1,L_=!1,M_=!1,N_=["value","defaultValue"],R_=!1,__=/["'&<>\n\t]|^\s|\s$/,CE="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),O_="applet caption html table td th marquee object template foreignObject desc title".split(" "),jE=O_.concat(["button"]),DE="dd dt li option optgroup p rp rt".split(" "),A_={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},qY={},zH={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},I_=/([A-Z])/g,T_=/^ms-/,SE=/^(?:webkit|moz|o)[A-Z]/,EE=/^-ms-/,bE=/-(.)/g,V_=/;\s*$/,bZ={},FH={},P_=!1,w_=!1,C_=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(" ")),GY="http://www.w3.org/1998/Math/MathML",yZ="http://www.w3.org/2000/svg",yE=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"]]),KY={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},j_={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},gZ={},gE=RegExp("^(aria)-[: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]*$"),hE=RegExp("^(aria)[A-Z][: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]*$"),D_=!1,j4={},S_=/^on./,vE=/^on[^A-Z]/,xE=RegExp("^(aria)-[: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]*$"),kE=RegExp("^(aria)[A-Z][: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]*$"),mE=/^[\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,i3=null,hZ=null,vZ=null,LH=!1,y9=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),MH=!1;if(y9)try{var c3={};Object.defineProperty(c3,"passive",{get:function(){MH=!0}}),window.addEventListener("test",c3,c3),window.removeEventListener("test",c3,c3)}catch(Z){MH=!1}var c6=null,NH=null,WY=null,X8={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(Z){return Z.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},HY=m4(X8),r3=V1({},X8,{view:0,detail:0}),uE=m4(r3),RH,_H,a3,BY=V1({},r3,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:XK,button:0,buttons:0,relatedTarget:function(Z){return Z.relatedTarget===void 0?Z.fromElement===Z.srcElement?Z.toElement:Z.fromElement:Z.relatedTarget},movementX:function(Z){if("movementX"in Z)return Z.movementX;return Z!==a3&&(a3&&Z.type==="mousemove"?(RH=Z.screenX-a3.screenX,_H=Z.screenY-a3.screenY):_H=RH=0,a3=Z),RH},movementY:function(Z){return"movementY"in Z?Z.movementY:_H}}),E_=m4(BY),fE=V1({},BY,{dataTransfer:0}),pE=m4(fE),lE=V1({},r3,{relatedTarget:0}),OH=m4(lE),dE=V1({},X8,{animationName:0,elapsedTime:0,pseudoElement:0}),iE=m4(dE),cE=V1({},X8,{clipboardData:function(Z){return"clipboardData"in Z?Z.clipboardData:window.clipboardData}}),rE=m4(cE),aE=V1({},X8,{data:0}),b_=m4(aE),nE=b_,sE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oE={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"},tE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},eE=V1({},r3,{key:function(Z){if(Z.key){var X=sE[Z.key]||Z.key;if(X!=="Unidentified")return X}return Z.type==="keypress"?(Z=sJ(Z),Z===13?"Enter":String.fromCharCode(Z)):Z.type==="keydown"||Z.type==="keyup"?oE[Z.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:XK,charCode:function(Z){return Z.type==="keypress"?sJ(Z):0},keyCode:function(Z){return Z.type==="keydown"||Z.type==="keyup"?Z.keyCode:0},which:function(Z){return Z.type==="keypress"?sJ(Z):Z.type==="keydown"||Z.type==="keyup"?Z.keyCode:0}}),Zb=m4(eE),Xb=V1({},BY,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),y_=m4(Xb),Qb=V1({},r3,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:XK}),Jb=m4(Qb),$b=V1({},X8,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yb=m4($b),qb=V1({},BY,{deltaX:function(Z){return"deltaX"in Z?Z.deltaX:("wheelDeltaX"in Z)?-Z.wheelDeltaX:0},deltaY:function(Z){return"deltaY"in Z?Z.deltaY:("wheelDeltaY"in Z)?-Z.wheelDeltaY:("wheelDelta"in Z)?-Z.wheelDelta:0},deltaZ:0,deltaMode:0}),Gb=m4(qb),Kb=V1({},X8,{newState:0,oldState:0}),Wb=m4(Kb),Hb=[9,13,27,32],g_=229,AH=y9&&"CompositionEvent"in window,n3=null;y9&&"documentMode"in document&&(n3=document.documentMode);var Bb=y9&&"TextEvent"in window&&!n3,h_=y9&&(!AH||n3&&8<n3&&11>=n3),v_=32,x_=String.fromCharCode(v_),k_=!1,xZ=!1,Ub={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},s3=null,o3=null,m_=!1;y9&&(m_=yD("input")&&(!document.documentMode||9<document.documentMode));var D4=typeof Object.is==="function"?Object.is:mD,zb=y9&&"documentMode"in document&&11>=document.documentMode,kZ=null,IH=null,t3=null,TH=!1,mZ={animationend:u7("Animation","AnimationEnd"),animationiteration:u7("Animation","AnimationIteration"),animationstart:u7("Animation","AnimationStart"),transitionrun:u7("Transition","TransitionRun"),transitionstart:u7("Transition","TransitionStart"),transitioncancel:u7("Transition","TransitionCancel"),transitionend:u7("Transition","TransitionEnd")},VH={},u_={};y9&&(u_=document.createElement("div").style,("AnimationEvent"in window)||(delete mZ.animationend.animation,delete mZ.animationiteration.animation,delete mZ.animationstart.animation),("TransitionEvent"in window)||delete mZ.transitionend.transition);var f_=f7("animationend"),p_=f7("animationiteration"),l_=f7("animationstart"),Fb=f7("transitionrun"),Lb=f7("transitionstart"),Mb=f7("transitioncancel"),d_=f7("transitionend"),i_=new Map,PH="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(" ");PH.push("scrollEnd");var c_=0;if(typeof performance==="object"&&typeof performance.now==="function")var Nb=performance,r_=function(){return Nb.now()};else{var Rb=Date;r_=function(){return Rb.now()}}var wH=typeof reportError==="function"?reportError:function(Z){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var X=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(X))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",Z);return}console.error(Z)},_b="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",UY=0,CH=1,jH=2,DH=3,zY="– ",FY="+ ",a_=" ",J5=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",I2="Components ⚛",P1="Scheduler ⚛",w1="Blocking",r6=!1,J6={color:"primary",properties:null,tooltipText:"",track:I2},a6={start:-0,end:-0,detail:{devtools:J6}},Ob=["Changed Props",""],n_="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",Ab=["Changed Props",n_],e3=1,$6=2,T2=[],uZ=0,SH=0,n6={};Object.freeze(n6);var V2=null,fZ=null,J1=0,Ib=1,N1=2,R4=8,n2=16,Tb=32,s_=!1;try{var o_=Object.preventExtensions({});}catch(Z){s_=!0}var EH=new WeakMap,pZ=[],lZ=0,LY=null,ZQ=0,P2=[],w2=0,Q8=null,Y6=1,q6="",K4=null,$5=null,E1=!1,g9=!1,W2=null,s6=null,C2=!1,bH=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),yH=_0(null),gH=_0(null),t_={},MY=null,dZ=null,iZ=!1,Vb=typeof AbortController<"u"?AbortController:function(){var Z=[],X=this.signal={aborted:!1,addEventListener:function(J,q){Z.push(q)}};this.abort=function(){X.aborted=!0,Z.forEach(function(J){return J()})}},Pb=k1.unstable_scheduleCallback,wb=k1.unstable_NormalPriority,j5={$$typeof:j9,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},D5=k1.unstable_now,NY=console.createTask?console.createTask:function(){return null},XQ=1,RY=2,t5=-0,o6=-0,G6=-0,K6=null,S4=-1.1,J8=-0,U5=-0,n0=-1.1,Z1=-1.1,W5=null,M5=!1,t6=-0,h9=-1.1,QQ=null,e6=0,hH=null,vH=null,$8=-1.1,JQ=null,cZ=-1.1,_Y=-1.1,v9=-0,W6=-1.1,j2=-1.1,xH=0,$Q=null,e_=null,ZO=null,Z7=-1.1,Y8=null,X7=-1.1,OY=-1.1,XO=-0,QO=-0,AY=0,H6=null,JO=0,YQ=-1.1,IY=!1,TY=!1,qQ=null,kH=0,q8=0,rZ=null,$O=q0.S;q0.S=function(Z,X){if(eO=o5(),typeof X==="object"&&X!==null&&typeof X.then==="function"){if(0>W6&&0>j2){W6=D5();var J=v3(),q=h3();if(J!==X7||q!==Y8)X7=-1.1;Z7=J,Y8=q}cD(Z,X)}$O!==null&&$O(Z,X)};var G8=_0(null),s2={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},GQ=[],KQ=[],WQ=[],HQ=[],BQ=[],UQ=[],K8=new Set;s2.recordUnsafeLifecycleWarnings=function(Z,X){K8.has(Z.type)||(typeof X.componentWillMount==="function"&&X.componentWillMount.__suppressDeprecationWarning!==!0&&GQ.push(Z),Z.mode&R4&&typeof X.UNSAFE_componentWillMount==="function"&&KQ.push(Z),typeof X.componentWillReceiveProps==="function"&&X.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&WQ.push(Z),Z.mode&R4&&typeof X.UNSAFE_componentWillReceiveProps==="function"&&HQ.push(Z),typeof X.componentWillUpdate==="function"&&X.componentWillUpdate.__suppressDeprecationWarning!==!0&&BQ.push(Z),Z.mode&R4&&typeof X.UNSAFE_componentWillUpdate==="function"&&UQ.push(Z))},s2.flushPendingUnsafeLifecycleWarnings=function(){var Z=new Set;0<GQ.length&&(GQ.forEach(function(_){Z.add(E(_)||"Component"),K8.add(_.type)}),GQ=[]);var X=new Set;0<KQ.length&&(KQ.forEach(function(_){X.add(E(_)||"Component"),K8.add(_.type)}),KQ=[]);var J=new Set;0<WQ.length&&(WQ.forEach(function(_){J.add(E(_)||"Component"),K8.add(_.type)}),WQ=[]);var q=new Set;0<HQ.length&&(HQ.forEach(function(_){q.add(E(_)||"Component"),K8.add(_.type)}),HQ=[]);var W=new Set;0<BQ.length&&(BQ.forEach(function(_){W.add(E(_)||"Component"),K8.add(_.type)}),BQ=[]);var U=new Set;if(0<UQ.length&&(UQ.forEach(function(_){U.add(E(_)||"Component"),K8.add(_.type)}),UQ=[]),0<X.size){var M=L(X);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
185
185
|
|
|
186
186
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
187
187
|
|
|
188
|
-
Please update the following components: %s`,
|
|
188
|
+
Please update the following components: %s`,M)}0<q.size&&(M=L(q),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
189
189
|
|
|
190
190
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
191
191
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
192
192
|
|
|
193
|
-
Please update the following components: %s`,
|
|
193
|
+
Please update the following components: %s`,M)),0<U.size&&(M=L(U),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
194
194
|
|
|
195
195
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
196
196
|
|
|
197
|
-
Please update the following components: %s`,
|
|
197
|
+
Please update the following components: %s`,M)),0<Z.size&&(M=L(Z),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
198
198
|
|
|
199
199
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
200
200
|
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
201
201
|
|
|
202
|
-
Please update the following components: %s`,
|
|
202
|
+
Please update the following components: %s`,M)),0<J.size&&(M=L(J),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
203
203
|
|
|
204
204
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
205
205
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
206
206
|
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
207
207
|
|
|
208
|
-
Please update the following components: %s`,
|
|
208
|
+
Please update the following components: %s`,M)),0<W.size&&(M=L(W),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
209
209
|
|
|
210
210
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
211
211
|
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
212
212
|
|
|
213
|
-
Please update the following components: %s`,
|
|
213
|
+
Please update the following components: %s`,M))};var VY=new Map,YO=new Set;s2.recordLegacyContextWarning=function(Z,X){var J=null;for(var q=Z;q!==null;)q.mode&R4&&(J=q),q=q.return;J===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!YO.has(Z.type)&&(q=VY.get(J),Z.type.contextTypes!=null||Z.type.childContextTypes!=null||X!==null&&typeof X.getChildContext==="function")&&(q===void 0&&(q=[],VY.set(J,q)),q.push(Z))},s2.flushLegacyContextWarning=function(){VY.forEach(function(Z){if(Z.length!==0){var X=Z[0],J=new Set;Z.forEach(function(W){J.add(E(W)||"Component"),YO.add(W.type)});var q=L(J);R0(X,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
214
214
|
|
|
215
215
|
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
216
216
|
|
|
217
217
|
Please update the following components: %s
|
|
218
218
|
|
|
219
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,q)})}})},s2.discardPendingWarnings=function(){GQ=[],KQ=[],WQ=[],HQ=[],BQ=[],UQ=[],VY=new Map};var qO={react_stack_bottom_frame:function(Z,X,J){var q=D9;D9=!0;try{return Z(X,J)}finally{D9=q}}},mH=qO.react_stack_bottom_frame.bind(qO),GO={react_stack_bottom_frame:function(Z){var X=D9;D9=!0;try{return Z.render()}finally{D9=X}}},KO=GO.react_stack_bottom_frame.bind(GO),WO={react_stack_bottom_frame:function(Z,X){try{X.componentDidMount()}catch(J){u1(Z,Z.return,J)}}},uH=WO.react_stack_bottom_frame.bind(WO),HO={react_stack_bottom_frame:function(Z,X,J,q,W){try{X.componentDidUpdate(J,q,W)}catch(U){u1(Z,Z.return,U)}}},BO=HO.react_stack_bottom_frame.bind(HO),UO={react_stack_bottom_frame:function(Z,X){var J=X.stack;Z.componentDidCatch(X.value,{componentStack:J!==null?J:""})}},Cb=UO.react_stack_bottom_frame.bind(UO),zO={react_stack_bottom_frame:function(Z,X,J){try{J.componentWillUnmount()}catch(q){u1(Z,X,q)}}},FO=zO.react_stack_bottom_frame.bind(zO),LO={react_stack_bottom_frame:function(Z){var X=Z.create;return Z=Z.inst,X=X(),Z.destroy=X}},jb=LO.react_stack_bottom_frame.bind(LO),MO={react_stack_bottom_frame:function(Z,X,J){try{J()}catch(q){u1(Z,X,q)}}},Db=MO.react_stack_bottom_frame.bind(MO),NO={react_stack_bottom_frame:function(Z){var X=Z._init;return X(Z._payload)}},Sb=NO.react_stack_bottom_frame.bind(NO),aZ=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),fH=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),PY=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),wY={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},W8=null,zQ=!1,nZ=null,FQ=0,R1=null,pH,RO=pH=!1,_O={},OO={},AO={};N=function(Z,X,J){if(J!==null&&typeof J==="object"&&J._store&&(!J._store.validated&&J.key==null||J._store.validated===2)){if(typeof J._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");J._store.validated=1;var q=E(Z),W=q||"null";if(!_O[W]){_O[W]=!0,J=J._owner,Z=Z._debugOwner;var U="";Z&&typeof Z.tag==="number"&&(W=E(Z))&&(U=`
|
|
220
220
|
|
|
221
|
-
Check the render method of \``+
|
|
221
|
+
Check the render method of \``+W+"`."),U||q&&(U=`
|
|
222
222
|
|
|
223
|
-
Check the top-level render call using <`+Y+">.");var z="";X!=null&&$!==X&&(Y=null,typeof X.tag==="number"?Y=i(X):typeof X.name==="string"&&(Y=X.name),Y&&(z=" It was passed a child from "+Y+".")),s(B,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',G,z)})}}};var v3=WW(!0),KH=WW(!1),UH=0,OH=1,wH=2,lZ=3,O5=!1,RH=!1,dZ=null,pZ=!1,g6=B2(null),BB=B2(0),B4=B2(null),O4=null,K6=1,p$=2,l2=B2(0),XB=0,w4=1,b1=2,X4=4,C1=8,U6,_H=new Set,MH=new Set,cZ=new Set,FH=new Set,S7=0,f0=null,U2=null,o2=null,YB=!1,O6=!1,J3=!1,ZB=0,c$=0,u7=null,uK=0,xK=25,S=null,R4=null,x7=-1,o$=!1,a$={readContext:m2,use:$5,useCallback:E2,useContext:E2,useEffect:E2,useImperativeHandle:E2,useLayoutEffect:E2,useInsertionEffect:E2,useMemo:E2,useReducer:E2,useRef:E2,useState:E2,useDebugValue:E2,useDeferredValue:E2,useTransition:E2,useSyncExternalStore:E2,useId:E2,useHostTransitionStatus:E2,useFormState:E2,useActionState:E2,useOptimistic:E2,useMemoCache:E2,useCacheRefresh:E2};a$.useEffectEvent=E2;var oZ=null,AH=null,aZ=null,PH=null,Q7=null,y4=null,GB=null;oZ={readContext:function($){return m2($)},use:$5,useCallback:function($,B){return S="useCallback",p0(),u3(B),pX($,B)},useContext:function($){return S="useContext",p0(),m2($)},useEffect:function($,B){return S="useEffect",p0(),u3(B),t9($,B)},useImperativeHandle:function($,B,X){return S="useImperativeHandle",p0(),u3(X),dX($,B,X)},useInsertionEffect:function($,B){S="useInsertionEffect",p0(),u3(B),s5(4,b1,$,B)},useLayoutEffect:function($,B){return S="useLayoutEffect",p0(),u3(B),lX($,B)},useMemo:function($,B){S="useMemo",p0(),u3(B);var X=x.H;x.H=Q7;try{return cX($,B)}finally{x.H=X}},useReducer:function($,B,X){S="useReducer",p0();var Y=x.H;x.H=Q7;try{return SX($,B,X)}finally{x.H=Y}},useRef:function($){return S="useRef",p0(),EX($)},useState:function($){S="useState",p0();var B=x.H;x.H=Q7;try{return kX($)}finally{x.H=B}},useDebugValue:function(){S="useDebugValue",p0()},useDeferredValue:function($,B){return S="useDeferredValue",p0(),oX($,B)},useTransition:function(){return S="useTransition",p0(),iX()},useSyncExternalStore:function($,B,X){return S="useSyncExternalStore",p0(),xX($,B,X)},useId:function(){return S="useId",p0(),rX()},useFormState:function($,B){return S="useFormState",p0(),a9(),h3($,B)},useActionState:function($,B){return S="useActionState",p0(),h3($,B)},useOptimistic:function($){return S="useOptimistic",p0(),jX($)},useHostTransitionStatus:i5,useMemoCache:a5,useCacheRefresh:function(){return S="useCacheRefresh",p0(),nX()},useEffectEvent:function($){return S="useEffectEvent",p0(),DX($)}},AH={readContext:function($){return m2($)},use:$5,useCallback:function($,B){return S="useCallback",d(),pX($,B)},useContext:function($){return S="useContext",d(),m2($)},useEffect:function($,B){return S="useEffect",d(),t9($,B)},useImperativeHandle:function($,B,X){return S="useImperativeHandle",d(),dX($,B,X)},useInsertionEffect:function($,B){S="useInsertionEffect",d(),s5(4,b1,$,B)},useLayoutEffect:function($,B){return S="useLayoutEffect",d(),lX($,B)},useMemo:function($,B){S="useMemo",d();var X=x.H;x.H=Q7;try{return cX($,B)}finally{x.H=X}},useReducer:function($,B,X){S="useReducer",d();var Y=x.H;x.H=Q7;try{return SX($,B,X)}finally{x.H=Y}},useRef:function($){return S="useRef",d(),EX($)},useState:function($){S="useState",d();var B=x.H;x.H=Q7;try{return kX($)}finally{x.H=B}},useDebugValue:function(){S="useDebugValue",d()},useDeferredValue:function($,B){return S="useDeferredValue",d(),oX($,B)},useTransition:function(){return S="useTransition",d(),iX()},useSyncExternalStore:function($,B,X){return S="useSyncExternalStore",d(),xX($,B,X)},useId:function(){return S="useId",d(),rX()},useActionState:function($,B){return S="useActionState",d(),h3($,B)},useFormState:function($,B){return S="useFormState",d(),a9(),h3($,B)},useOptimistic:function($){return S="useOptimistic",d(),jX($)},useHostTransitionStatus:i5,useMemoCache:a5,useCacheRefresh:function(){return S="useCacheRefresh",d(),nX()},useEffectEvent:function($){return S="useEffectEvent",d(),DX($)}},aZ={readContext:function($){return m2($)},use:$5,useCallback:function($,B){return S="useCallback",d(),B8($,B)},useContext:function($){return S="useContext",d(),m2($)},useEffect:function($,B){S="useEffect",d(),x1(2048,C1,$,B)},useImperativeHandle:function($,B,X){return S="useImperativeHandle",d(),$8($,B,X)},useInsertionEffect:function($,B){return S="useInsertionEffect",d(),x1(4,b1,$,B)},useLayoutEffect:function($,B){return S="useLayoutEffect",d(),x1(4,X4,$,B)},useMemo:function($,B){S="useMemo",d();var X=x.H;x.H=y4;try{return X8($,B)}finally{x.H=X}},useReducer:function($,B,X){S="useReducer",d();var Y=x.H;x.H=y4;try{return x3($,B,X)}finally{x.H=Y}},useRef:function(){return S="useRef",d(),L2().memoizedState},useState:function(){S="useState",d();var $=x.H;x.H=y4;try{return x3(I4)}finally{x.H=$}},useDebugValue:function(){S="useDebugValue",d()},useDeferredValue:function($,B){return S="useDeferredValue",d(),mW($,B)},useTransition:function(){return S="useTransition",d(),xW()},useSyncExternalStore:function($,B,X){return S="useSyncExternalStore",d(),i9($,B,X)},useId:function(){return S="useId",d(),L2().memoizedState},useFormState:function($){return S="useFormState",d(),a9(),r9($)},useActionState:function($){return S="useActionState",d(),r9($)},useOptimistic:function($,B){return S="useOptimistic",d(),wW($,B)},useHostTransitionStatus:i5,useMemoCache:a5,useCacheRefresh:function(){return S="useCacheRefresh",d(),L2().memoizedState},useEffectEvent:function($){return S="useEffectEvent",d(),e9($)}},PH={readContext:function($){return m2($)},use:$5,useCallback:function($,B){return S="useCallback",d(),B8($,B)},useContext:function($){return S="useContext",d(),m2($)},useEffect:function($,B){S="useEffect",d(),x1(2048,C1,$,B)},useImperativeHandle:function($,B,X){return S="useImperativeHandle",d(),$8($,B,X)},useInsertionEffect:function($,B){return S="useInsertionEffect",d(),x1(4,b1,$,B)},useLayoutEffect:function($,B){return S="useLayoutEffect",d(),x1(4,X4,$,B)},useMemo:function($,B){S="useMemo",d();var X=x.H;x.H=GB;try{return X8($,B)}finally{x.H=X}},useReducer:function($,B,X){S="useReducer",d();var Y=x.H;x.H=GB;try{return t6($,B,X)}finally{x.H=Y}},useRef:function(){return S="useRef",d(),L2().memoizedState},useState:function(){S="useState",d();var $=x.H;x.H=GB;try{return t6(I4)}finally{x.H=$}},useDebugValue:function(){S="useDebugValue",d()},useDeferredValue:function($,B){return S="useDeferredValue",d(),TW($,B)},useTransition:function(){return S="useTransition",d(),hW()},useSyncExternalStore:function($,B,X){return S="useSyncExternalStore",d(),i9($,B,X)},useId:function(){return S="useId",d(),L2().memoizedState},useFormState:function($){return S="useFormState",d(),a9(),n9($)},useActionState:function($){return S="useActionState",d(),n9($)},useOptimistic:function($,B){return S="useOptimistic",d(),_W($,B)},useHostTransitionStatus:i5,useMemoCache:a5,useCacheRefresh:function(){return S="useCacheRefresh",d(),L2().memoizedState},useEffectEvent:function($){return S="useEffectEvent",d(),e9($)}},Q7={readContext:function($){return b(),m2($)},use:function($){return F(),$5($)},useCallback:function($,B){return S="useCallback",F(),p0(),pX($,B)},useContext:function($){return S="useContext",F(),p0(),m2($)},useEffect:function($,B){return S="useEffect",F(),p0(),t9($,B)},useImperativeHandle:function($,B,X){return S="useImperativeHandle",F(),p0(),dX($,B,X)},useInsertionEffect:function($,B){S="useInsertionEffect",F(),p0(),s5(4,b1,$,B)},useLayoutEffect:function($,B){return S="useLayoutEffect",F(),p0(),lX($,B)},useMemo:function($,B){S="useMemo",F(),p0();var X=x.H;x.H=Q7;try{return cX($,B)}finally{x.H=X}},useReducer:function($,B,X){S="useReducer",F(),p0();var Y=x.H;x.H=Q7;try{return SX($,B,X)}finally{x.H=Y}},useRef:function($){return S="useRef",F(),p0(),EX($)},useState:function($){S="useState",F(),p0();var B=x.H;x.H=Q7;try{return kX($)}finally{x.H=B}},useDebugValue:function(){S="useDebugValue",F(),p0()},useDeferredValue:function($,B){return S="useDeferredValue",F(),p0(),oX($,B)},useTransition:function(){return S="useTransition",F(),p0(),iX()},useSyncExternalStore:function($,B,X){return S="useSyncExternalStore",F(),p0(),xX($,B,X)},useId:function(){return S="useId",F(),p0(),rX()},useFormState:function($,B){return S="useFormState",F(),p0(),h3($,B)},useActionState:function($,B){return S="useActionState",F(),p0(),h3($,B)},useOptimistic:function($){return S="useOptimistic",F(),p0(),jX($)},useMemoCache:function($){return F(),a5($)},useHostTransitionStatus:i5,useCacheRefresh:function(){return S="useCacheRefresh",p0(),nX()},useEffectEvent:function($){return S="useEffectEvent",F(),p0(),DX($)}},y4={readContext:function($){return b(),m2($)},use:function($){return F(),$5($)},useCallback:function($,B){return S="useCallback",F(),d(),B8($,B)},useContext:function($){return S="useContext",F(),d(),m2($)},useEffect:function($,B){S="useEffect",F(),d(),x1(2048,C1,$,B)},useImperativeHandle:function($,B,X){return S="useImperativeHandle",F(),d(),$8($,B,X)},useInsertionEffect:function($,B){return S="useInsertionEffect",F(),d(),x1(4,b1,$,B)},useLayoutEffect:function($,B){return S="useLayoutEffect",F(),d(),x1(4,X4,$,B)},useMemo:function($,B){S="useMemo",F(),d();var X=x.H;x.H=y4;try{return X8($,B)}finally{x.H=X}},useReducer:function($,B,X){S="useReducer",F(),d();var Y=x.H;x.H=y4;try{return x3($,B,X)}finally{x.H=Y}},useRef:function(){return S="useRef",F(),d(),L2().memoizedState},useState:function(){S="useState",F(),d();var $=x.H;x.H=y4;try{return x3(I4)}finally{x.H=$}},useDebugValue:function(){S="useDebugValue",F(),d()},useDeferredValue:function($,B){return S="useDeferredValue",F(),d(),mW($,B)},useTransition:function(){return S="useTransition",F(),d(),xW()},useSyncExternalStore:function($,B,X){return S="useSyncExternalStore",F(),d(),i9($,B,X)},useId:function(){return S="useId",F(),d(),L2().memoizedState},useFormState:function($){return S="useFormState",F(),d(),r9($)},useActionState:function($){return S="useActionState",F(),d(),r9($)},useOptimistic:function($,B){return S="useOptimistic",F(),d(),wW($,B)},useMemoCache:function($){return F(),a5($)},useHostTransitionStatus:i5,useCacheRefresh:function(){return S="useCacheRefresh",d(),L2().memoizedState},useEffectEvent:function($){return S="useEffectEvent",F(),d(),e9($)}},GB={readContext:function($){return b(),m2($)},use:function($){return F(),$5($)},useCallback:function($,B){return S="useCallback",F(),d(),B8($,B)},useContext:function($){return S="useContext",F(),d(),m2($)},useEffect:function($,B){S="useEffect",F(),d(),x1(2048,C1,$,B)},useImperativeHandle:function($,B,X){return S="useImperativeHandle",F(),d(),$8($,B,X)},useInsertionEffect:function($,B){return S="useInsertionEffect",F(),d(),x1(4,b1,$,B)},useLayoutEffect:function($,B){return S="useLayoutEffect",F(),d(),x1(4,X4,$,B)},useMemo:function($,B){S="useMemo",F(),d();var X=x.H;x.H=y4;try{return X8($,B)}finally{x.H=X}},useReducer:function($,B,X){S="useReducer",F(),d();var Y=x.H;x.H=y4;try{return t6($,B,X)}finally{x.H=Y}},useRef:function(){return S="useRef",F(),d(),L2().memoizedState},useState:function(){S="useState",F(),d();var $=x.H;x.H=y4;try{return t6(I4)}finally{x.H=$}},useDebugValue:function(){S="useDebugValue",F(),d()},useDeferredValue:function($,B){return S="useDeferredValue",F(),d(),TW($,B)},useTransition:function(){return S="useTransition",F(),d(),hW()},useSyncExternalStore:function($,B,X){return S="useSyncExternalStore",F(),d(),i9($,B,X)},useId:function(){return S="useId",F(),d(),L2().memoizedState},useFormState:function($){return S="useFormState",F(),d(),n9($)},useActionState:function($){return S="useActionState",F(),d(),n9($)},useOptimistic:function($,B){return S="useOptimistic",F(),d(),_W($,B)},useMemoCache:function($){return F(),a5($)},useHostTransitionStatus:i5,useCacheRefresh:function(){return S="useCacheRefresh",d(),L2().memoizedState},useEffectEvent:function($){return S="useEffectEvent",F(),d(),e9($)}};var IH={},bH=new Set,CH=new Set,mH=new Set,TH=new Set,fH=new Set,yH=new Set,SH=new Set,uH=new Set,xH=new Set,hH=new Set;Object.freeze(IH);var sZ={enqueueSetState:function($,B,X){$=$._reactInternals;var Y=i1($),Z=r7(Y);Z.payload=B,X!==void 0&&X!==null&&(eX(X),Z.callback=X),B=n7($,Z,Y),B!==null&&(d4(Y,"this.setState()",$),k2(B,$,Y),s6(B,$,Y))},enqueueReplaceState:function($,B,X){$=$._reactInternals;var Y=i1($),Z=r7(Y);Z.tag=OH,Z.payload=B,X!==void 0&&X!==null&&(eX(X),Z.callback=X),B=n7($,Z,Y),B!==null&&(d4(Y,"this.replaceState()",$),k2(B,$,Y),s6(B,$,Y))},enqueueForceUpdate:function($,B){$=$._reactInternals;var X=i1($),Y=r7(X);Y.tag=wH,B!==void 0&&B!==null&&(eX(B),Y.callback=B),B=n7($,Y,X),B!==null&&(d4(X,"this.forceUpdate()",$),k2(B,$,X),s6(B,$,X))}},w6=null,iZ=null,rZ=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),a2=!1,kH={},jH={},VH={},EH={},R6=!1,DH={},zB={},nZ={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},lH=!1,dH=null;dH=new Set;var h7=!1,s2=!1,tZ=!1,pH=typeof WeakSet==="function"?WeakSet:Set,W1=null,_6=null,M6=null,i2=null,j1=!1,S4=null,e2=!1,s$=8192,hK={getCacheForType:function($){var B=m2(p2),X=B.data.get($);return X===void 0&&(X=$(),B.data.set($,X)),X},cacheSignal:function(){return m2(p2).controller.signal},getOwner:function(){return t1}};if(typeof Symbol==="function"&&Symbol.for){var i$=Symbol.for;i$("selector.component"),i$("selector.has_pseudo_class"),i$("selector.role"),i$("selector.test_id"),i$("selector.text")}var kK=[],jK=typeof WeakMap==="function"?WeakMap:Map,N1=0,$1=2,Y4=4,k7=0,r$=1,H3=2,WB=3,w5=4,NB=6,cH=5,Z2=N1,O2=null,l0=null,V0=0,V1=0,vB=1,Q3=2,n$=3,oH=4,eZ=5,t$=6,JB=7,$G=8,L3=9,q2=V1,Z4=null,R5=!1,F6=!1,BG=!1,L7=0,x2=k7,_5=0,M5=0,XG=0,E1=0,q3=0,e$=null,m1=null,HB=!1,QB=0,aH=0,sH=300,LB=1/0,iH=500,$9=null,D2=null,F5=null,qB=0,YG=1,ZG=2,rH=3,A5=0,nH=1,tH=2,eH=3,$Q=4,gB=5,r2=0,P5=null,A6=null,u4=0,GG=0,zG=-0,WG=null,BQ=null,XQ=null,x4=qB,YQ=null,VK=50,B9=0,NG=null,vG=!1,KB=!1,EK=50,g3=0,X9=null,P6=!1,UB=null,ZQ=!1,GQ=new Set,DK={},OB=null,I6=null,JG=!1,HG=!1,wB=!1,QG=!1,I5=0,LG={};(function(){for(var $=0;$<AZ.length;$++){var B=AZ[$],X=B.toLowerCase();B=B[0].toUpperCase()+B.slice(1),P4(X,"on"+B)}P4(xJ,"onAnimationEnd"),P4(hJ,"onAnimationIteration"),P4(kJ,"onAnimationStart"),P4("dblclick","onDoubleClick"),P4("focusin","onFocus"),P4("focusout","onBlur"),P4(UK,"onTransitionRun"),P4(OK,"onTransitionStart"),P4(wK,"onTransitionCancel"),P4(jJ,"onTransitionEnd")})(),F2("onMouseEnter",["mouseout","mouseover"]),F2("onMouseLeave",["mouseout","mouseover"]),F2("onPointerEnter",["pointerout","pointerover"]),F2("onPointerLeave",["pointerout","pointerover"]),Y2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Y2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Y2("onBeforeInput",["compositionend","keypress","textInput","paste"]),Y2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Y2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Y2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Y9="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(" "),qG=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Y9)),RB="_reactListening"+Math.random().toString(36).slice(2),zQ=!1,WQ=!1,_B=!1,NQ=!1,MB=!1,FB=!1,vQ=!1,AB={},lK=/\r\n?/g,dK=/\u0000|\uFFFD/g,K3="http://www.w3.org/1999/xlink",gG="http://www.w3.org/XML/1998/namespace",pK="javascript:throw new Error('React form unexpectedly submitted.')",cK="suppressHydrationWarning",U3="&",PB="/&",Z9="$",G9="/$",b5="$?",O3="$~",b6="$!",oK="html",aK="body",sK="head",KG="F!",JQ="F",HQ="loading",iK="style",j7=0,C6=1,IB=2,UG=null,OG=null,QQ={dialog:!0,webview:!0},wG=null,z9=void 0,LQ=typeof setTimeout==="function"?setTimeout:void 0,rK=typeof clearTimeout==="function"?clearTimeout:void 0,w3=-1,qQ=typeof Promise==="function"?Promise:void 0,nK=typeof queueMicrotask==="function"?queueMicrotask:typeof qQ<"u"?function($){return qQ.resolve(null).then($).catch(xq)}:LQ,RG=null,R3=0,W9=1,gQ=2,KQ=3,_4=4,M4=new Map,UQ=new Set,V7=Q2.d;Q2.d={f:function(){var $=V7.f(),B=D3();return $||B},r:function($){var B=n($);B!==null&&B.tag===5&&B.type==="form"?uW(B):V7.r($)},D:function($){V7.D($),bv("dns-prefetch",$,null)},C:function($,B){V7.C($,B),bv("preconnect",$,B)},L:function($,B,X){V7.L($,B,X);var Y=m6;if(Y&&$&&B){var Z='link[rel="preload"][as="'+v4(B)+'"]';B==="image"?X&&X.imageSrcSet?(Z+='[imagesrcset="'+v4(X.imageSrcSet)+'"]',typeof X.imageSizes==="string"&&(Z+='[imagesizes="'+v4(X.imageSizes)+'"]')):Z+='[href="'+v4($)+'"]':Z+='[href="'+v4($)+'"]';var G=Z;switch(B){case"style":G=p3($);break;case"script":G=c3($)}M4.has(G)||($=c0({rel:"preload",href:B==="image"&&X&&X.imageSrcSet?void 0:$,as:B},X),M4.set(G,$),Y.querySelector(Z)!==null||B==="style"&&Y.querySelector(L$(G))||B==="script"&&Y.querySelector(q$(G))||(B=Y.createElement("link"),H1(B,"link",$),H0(B),Y.head.appendChild(B)))}},m:function($,B){V7.m($,B);var X=m6;if(X&&$){var Y=B&&typeof B.as==="string"?B.as:"script",Z='link[rel="modulepreload"][as="'+v4(Y)+'"][href="'+v4($)+'"]',G=Z;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":G=c3($)}if(!M4.has(G)&&($=c0({rel:"modulepreload",href:$},B),M4.set(G,$),X.querySelector(Z)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(X.querySelector(q$(G)))return}Y=X.createElement("link"),H1(Y,"link",$),H0(Y),X.head.appendChild(Y)}}},X:function($,B){V7.X($,B);var X=m6;if(X&&$){var Y=I0(X).hoistableScripts,Z=c3($),G=Y.get(Z);G||(G=X.querySelector(q$(Z)),G||($=c0({src:$,async:!0},B),(B=M4.get(Z))&&dY($,B),G=X.createElement("script"),H0(G),H1(G,"link",$),X.head.appendChild(G)),G={type:"script",instance:G,count:1,state:null},Y.set(Z,G))}},S:function($,B,X){V7.S($,B,X);var Y=m6;if(Y&&$){var Z=I0(Y).hoistableStyles,G=p3($);B=B||"default";var z=Z.get(G);if(!z){var W={loading:R3,preload:null};if(z=Y.querySelector(L$(G)))W.loading=W9|_4;else{$=c0({rel:"stylesheet",href:$,"data-precedence":B},X),(X=M4.get(G))&&lY($,X);var J=z=Y.createElement("link");H0(J),H1(J,"link",$),J._p=new Promise(function(Q,A){J.onload=Q,J.onerror=A}),J.addEventListener("load",function(){W.loading|=W9}),J.addEventListener("error",function(){W.loading|=gQ}),W.loading|=_4,_8(z,B,Y)}z={type:"stylesheet",instance:z,count:1,state:W},Z.set(G,z)}}},M:function($,B){V7.M($,B);var X=m6;if(X&&$){var Y=I0(X).hoistableScripts,Z=c3($),G=Y.get(Z);G||(G=X.querySelector(q$(Z)),G||($=c0({src:$,async:!0,type:"module"},B),(B=M4.get(Z))&&dY($,B),G=X.createElement("script"),H0(G),H1(G,"link",$),X.head.appendChild(G)),G={type:"script",instance:G,count:1,state:null},Y.set(Z,G))}}};var m6=typeof document>"u"?null:document,bB=null,tK=60000,eK=800,$U=500,_G=0,MG=null,CB=null,_3=gg,N9={$$typeof:Y7,Provider:null,Consumer:null,_currentValue:_3,_currentValue2:_3,_threadCount:0},OQ="%c%s%c",wQ="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",RQ="",mB=" ",BU=Function.prototype.bind,_Q=!1,MQ=null,FQ=null,AQ=null,PQ=null,IQ=null,bQ=null,CQ=null,mQ=null,TQ=null,fQ=null;MQ=function($,B,X,Y){B=N($,B),B!==null&&(X=v(B.memoizedState,X,0,Y),B.memoizedState=X,B.baseState=X,$.memoizedProps=c0({},$.memoizedProps),X=K1($,2),X!==null&&k2(X,$,2))},FQ=function($,B,X){B=N($,B),B!==null&&(X=q(B.memoizedState,X,0),B.memoizedState=X,B.baseState=X,$.memoizedProps=c0({},$.memoizedProps),X=K1($,2),X!==null&&k2(X,$,2))},AQ=function($,B,X,Y){B=N($,B),B!==null&&(X=L(B.memoizedState,X,Y),B.memoizedState=X,B.baseState=X,$.memoizedProps=c0({},$.memoizedProps),X=K1($,2),X!==null&&k2(X,$,2))},PQ=function($,B,X){$.pendingProps=v($.memoizedProps,B,0,X),$.alternate&&($.alternate.pendingProps=$.pendingProps),B=K1($,2),B!==null&&k2(B,$,2)},IQ=function($,B){$.pendingProps=q($.memoizedProps,B,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),B=K1($,2),B!==null&&k2(B,$,2)},bQ=function($,B,X){$.pendingProps=L($.memoizedProps,B,X),$.alternate&&($.alternate.pendingProps=$.pendingProps),B=K1($,2),B!==null&&k2(B,$,2)},CQ=function($){var B=K1($,2);B!==null&&k2(B,$,2)},mQ=function($){var B=F4(),X=K1($,B);X!==null&&k2(X,$,B)},TQ=function($){K=$},fQ=function($){R=$};var TB=!0,fB=null,FG=!1,C5=null,m5=null,T5=null,v9=new Map,J9=new Map,f5=[],XU="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(" "),yB=null;if(I8.prototype.render=iY.prototype.render=function($){var B=this._internalRoot;if(B===null)throw Error("Cannot update an unmounted root.");var X=arguments;typeof X[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Z0(X[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof X[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),X=$;var Y=B.current,Z=i1(Y);pY(Y,Z,X,B,null,null)},I8.prototype.unmount=iY.prototype.unmount=function(){var $=arguments;if(typeof $[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),$=this._internalRoot,$!==null){this._internalRoot=null;var B=$.containerInfo;(Z2&($1|Y4))!==N1&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),pY($.current,2,null,$,null,null),D3(),B[W5]=null}},I8.prototype.unstable_scheduleHydration=function($){if($){var B=C();$={blockedOn:null,target:$,priority:B};for(var X=0;X<f5.length&&B!==0&&B<f5[X].priority;X++);f5.splice(X,0,$),X===0&&Dv($)}},function(){var $=T6.version;if($!=="19.2.3")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
224
|
-
- react: `+(
|
|
223
|
+
Check the top-level render call using <`+q+">.");var M="";J!=null&&Z!==J&&(q=null,typeof J.tag==="number"?q=E(J):typeof J.name==="string"&&(q=J.name),q&&(M=" It was passed a child from "+q+".")),R0(X,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',U,M)})}}};var H8=zM(!0),IO=zM(!1),TO=0,VO=1,PO=2,lH=3,Q7=!1,wO=!1,dH=null,iH=!1,sZ=_0(null),CY=_0(0),H2=_0(null),D2=null,oZ=1,LQ=2,P5=_0(0),jY=0,S2=1,E4=2,B2=4,b4=8,tZ,CO=new Set,jO=new Set,cH=new Set,DO=new Set,B6=0,K1=null,n1=null,S5=null,DY=!1,eZ=!1,B8=!1,SY=0,MQ=0,U6=null,Eb=0,bb=25,$0=null,E2=null,z6=-1,NQ=!1,RQ={readContext:K5,use:k6,useCallback:_5,useContext:_5,useEffect:_5,useImperativeHandle:_5,useLayoutEffect:_5,useInsertionEffect:_5,useMemo:_5,useReducer:_5,useRef:_5,useState:_5,useDebugValue:_5,useDeferredValue:_5,useTransition:_5,useSyncExternalStore:_5,useId:_5,useHostTransitionStatus:_5,useFormState:_5,useActionState:_5,useOptimistic:_5,useMemoCache:_5,useCacheRefresh:_5};RQ.useEffectEvent=_5;var rH=null,SO=null,aH=null,EO=null,x9=null,o2=null,EY=null;rH={readContext:function(Z){return K5(Z)},use:k6,useCallback:function(Z,X){return $0="useCallback",T1(),LZ(X),iK(Z,X)},useContext:function(Z){return $0="useContext",T1(),K5(Z)},useEffect:function(Z,X){return $0="useEffect",T1(),LZ(X),V$(Z,X)},useImperativeHandle:function(Z,X,J){return $0="useImperativeHandle",T1(),LZ(J),dK(Z,X,J)},useInsertionEffect:function(Z,X){$0="useInsertionEffect",T1(),LZ(X),n7(4,E4,Z,X)},useLayoutEffect:function(Z,X){return $0="useLayoutEffect",T1(),LZ(X),lK(Z,X)},useMemo:function(Z,X){$0="useMemo",T1(),LZ(X);var J=q0.H;q0.H=x9;try{return cK(Z,X)}finally{q0.H=J}},useReducer:function(Z,X,J){$0="useReducer",T1();var q=q0.H;q0.H=x9;try{return gK(Z,X,J)}finally{q0.H=q}},useRef:function(Z){return $0="useRef",T1(),fK(Z)},useState:function(Z){$0="useState",T1();var X=q0.H;q0.H=x9;try{return kK(Z)}finally{q0.H=X}},useDebugValue:function(){$0="useDebugValue",T1()},useDeferredValue:function(Z,X){return $0="useDeferredValue",T1(),rK(Z,X)},useTransition:function(){return $0="useTransition",T1(),sK()},useSyncExternalStore:function(Z,X,J){return $0="useSyncExternalStore",T1(),vK(Z,X,J)},useId:function(){return $0="useId",T1(),oK()},useFormState:function(Z,X){return $0="useFormState",T1(),_$(),NZ(Z,X)},useActionState:function(Z,X){return $0="useActionState",T1(),NZ(Z,X)},useOptimistic:function(Z){return $0="useOptimistic",T1(),mK(Z)},useHostTransitionStatus:s7,useMemoCache:a7,useCacheRefresh:function(){return $0="useCacheRefresh",T1(),tK()},useEffectEvent:function(Z){return $0="useEffectEvent",T1(),pK(Z)}},SO={readContext:function(Z){return K5(Z)},use:k6,useCallback:function(Z,X){return $0="useCallback",O0(),iK(Z,X)},useContext:function(Z){return $0="useContext",O0(),K5(Z)},useEffect:function(Z,X){return $0="useEffect",O0(),V$(Z,X)},useImperativeHandle:function(Z,X,J){return $0="useImperativeHandle",O0(),dK(Z,X,J)},useInsertionEffect:function(Z,X){$0="useInsertionEffect",O0(),n7(4,E4,Z,X)},useLayoutEffect:function(Z,X){return $0="useLayoutEffect",O0(),lK(Z,X)},useMemo:function(Z,X){$0="useMemo",O0();var J=q0.H;q0.H=x9;try{return cK(Z,X)}finally{q0.H=J}},useReducer:function(Z,X,J){$0="useReducer",O0();var q=q0.H;q0.H=x9;try{return gK(Z,X,J)}finally{q0.H=q}},useRef:function(Z){return $0="useRef",O0(),fK(Z)},useState:function(Z){$0="useState",O0();var X=q0.H;q0.H=x9;try{return kK(Z)}finally{q0.H=X}},useDebugValue:function(){$0="useDebugValue",O0()},useDeferredValue:function(Z,X){return $0="useDeferredValue",O0(),rK(Z,X)},useTransition:function(){return $0="useTransition",O0(),sK()},useSyncExternalStore:function(Z,X,J){return $0="useSyncExternalStore",O0(),vK(Z,X,J)},useId:function(){return $0="useId",O0(),oK()},useActionState:function(Z,X){return $0="useActionState",O0(),NZ(Z,X)},useFormState:function(Z,X){return $0="useFormState",O0(),_$(),NZ(Z,X)},useOptimistic:function(Z){return $0="useOptimistic",O0(),mK(Z)},useHostTransitionStatus:s7,useMemoCache:a7,useCacheRefresh:function(){return $0="useCacheRefresh",O0(),tK()},useEffectEvent:function(Z){return $0="useEffectEvent",O0(),pK(Z)}},aH={readContext:function(Z){return K5(Z)},use:k6,useCallback:function(Z,X){return $0="useCallback",O0(),C$(Z,X)},useContext:function(Z){return $0="useContext",O0(),K5(Z)},useEffect:function(Z,X){$0="useEffect",O0(),u4(2048,b4,Z,X)},useImperativeHandle:function(Z,X,J){return $0="useImperativeHandle",O0(),w$(Z,X,J)},useInsertionEffect:function(Z,X){return $0="useInsertionEffect",O0(),u4(4,E4,Z,X)},useLayoutEffect:function(Z,X){return $0="useLayoutEffect",O0(),u4(4,B2,Z,X)},useMemo:function(Z,X){$0="useMemo",O0();var J=q0.H;q0.H=o2;try{return j$(Z,X)}finally{q0.H=J}},useReducer:function(Z,X,J){$0="useReducer",O0();var q=q0.H;q0.H=o2;try{return MZ(Z,X,J)}finally{q0.H=q}},useRef:function(){return $0="useRef",O0(),p1().memoizedState},useState:function(){$0="useState",O0();var Z=q0.H;q0.H=o2;try{return MZ(i2)}finally{q0.H=Z}},useDebugValue:function(){$0="useDebugValue",O0()},useDeferredValue:function(Z,X){return $0="useDeferredValue",O0(),hM(Z,X)},useTransition:function(){return $0="useTransition",O0(),fM()},useSyncExternalStore:function(Z,X,J){return $0="useSyncExternalStore",O0(),A$(Z,X,J)},useId:function(){return $0="useId",O0(),p1().memoizedState},useFormState:function(Z){return $0="useFormState",O0(),_$(),I$(Z)},useActionState:function(Z){return $0="useActionState",O0(),I$(Z)},useOptimistic:function(Z,X){return $0="useOptimistic",O0(),PM(Z,X)},useHostTransitionStatus:s7,useMemoCache:a7,useCacheRefresh:function(){return $0="useCacheRefresh",O0(),p1().memoizedState},useEffectEvent:function(Z){return $0="useEffectEvent",O0(),P$(Z)}},EO={readContext:function(Z){return K5(Z)},use:k6,useCallback:function(Z,X){return $0="useCallback",O0(),C$(Z,X)},useContext:function(Z){return $0="useContext",O0(),K5(Z)},useEffect:function(Z,X){$0="useEffect",O0(),u4(2048,b4,Z,X)},useImperativeHandle:function(Z,X,J){return $0="useImperativeHandle",O0(),w$(Z,X,J)},useInsertionEffect:function(Z,X){return $0="useInsertionEffect",O0(),u4(4,E4,Z,X)},useLayoutEffect:function(Z,X){return $0="useLayoutEffect",O0(),u4(4,B2,Z,X)},useMemo:function(Z,X){$0="useMemo",O0();var J=q0.H;q0.H=EY;try{return j$(Z,X)}finally{q0.H=J}},useReducer:function(Z,X,J){$0="useReducer",O0();var q=q0.H;q0.H=EY;try{return T3(Z,X,J)}finally{q0.H=q}},useRef:function(){return $0="useRef",O0(),p1().memoizedState},useState:function(){$0="useState",O0();var Z=q0.H;q0.H=EY;try{return T3(i2)}finally{q0.H=Z}},useDebugValue:function(){$0="useDebugValue",O0()},useDeferredValue:function(Z,X){return $0="useDeferredValue",O0(),vM(Z,X)},useTransition:function(){return $0="useTransition",O0(),pM()},useSyncExternalStore:function(Z,X,J){return $0="useSyncExternalStore",O0(),A$(Z,X,J)},useId:function(){return $0="useId",O0(),p1().memoizedState},useFormState:function(Z){return $0="useFormState",O0(),_$(),T$(Z)},useActionState:function(Z){return $0="useActionState",O0(),T$(Z)},useOptimistic:function(Z,X){return $0="useOptimistic",O0(),CM(Z,X)},useHostTransitionStatus:s7,useMemoCache:a7,useCacheRefresh:function(){return $0="useCacheRefresh",O0(),p1().memoizedState},useEffectEvent:function(Z){return $0="useEffectEvent",O0(),P$(Z)}},x9={readContext:function(Z){return F(),K5(Z)},use:function(Z){return z(),k6(Z)},useCallback:function(Z,X){return $0="useCallback",z(),T1(),iK(Z,X)},useContext:function(Z){return $0="useContext",z(),T1(),K5(Z)},useEffect:function(Z,X){return $0="useEffect",z(),T1(),V$(Z,X)},useImperativeHandle:function(Z,X,J){return $0="useImperativeHandle",z(),T1(),dK(Z,X,J)},useInsertionEffect:function(Z,X){$0="useInsertionEffect",z(),T1(),n7(4,E4,Z,X)},useLayoutEffect:function(Z,X){return $0="useLayoutEffect",z(),T1(),lK(Z,X)},useMemo:function(Z,X){$0="useMemo",z(),T1();var J=q0.H;q0.H=x9;try{return cK(Z,X)}finally{q0.H=J}},useReducer:function(Z,X,J){$0="useReducer",z(),T1();var q=q0.H;q0.H=x9;try{return gK(Z,X,J)}finally{q0.H=q}},useRef:function(Z){return $0="useRef",z(),T1(),fK(Z)},useState:function(Z){$0="useState",z(),T1();var X=q0.H;q0.H=x9;try{return kK(Z)}finally{q0.H=X}},useDebugValue:function(){$0="useDebugValue",z(),T1()},useDeferredValue:function(Z,X){return $0="useDeferredValue",z(),T1(),rK(Z,X)},useTransition:function(){return $0="useTransition",z(),T1(),sK()},useSyncExternalStore:function(Z,X,J){return $0="useSyncExternalStore",z(),T1(),vK(Z,X,J)},useId:function(){return $0="useId",z(),T1(),oK()},useFormState:function(Z,X){return $0="useFormState",z(),T1(),NZ(Z,X)},useActionState:function(Z,X){return $0="useActionState",z(),T1(),NZ(Z,X)},useOptimistic:function(Z){return $0="useOptimistic",z(),T1(),mK(Z)},useMemoCache:function(Z){return z(),a7(Z)},useHostTransitionStatus:s7,useCacheRefresh:function(){return $0="useCacheRefresh",T1(),tK()},useEffectEvent:function(Z){return $0="useEffectEvent",z(),T1(),pK(Z)}},o2={readContext:function(Z){return F(),K5(Z)},use:function(Z){return z(),k6(Z)},useCallback:function(Z,X){return $0="useCallback",z(),O0(),C$(Z,X)},useContext:function(Z){return $0="useContext",z(),O0(),K5(Z)},useEffect:function(Z,X){$0="useEffect",z(),O0(),u4(2048,b4,Z,X)},useImperativeHandle:function(Z,X,J){return $0="useImperativeHandle",z(),O0(),w$(Z,X,J)},useInsertionEffect:function(Z,X){return $0="useInsertionEffect",z(),O0(),u4(4,E4,Z,X)},useLayoutEffect:function(Z,X){return $0="useLayoutEffect",z(),O0(),u4(4,B2,Z,X)},useMemo:function(Z,X){$0="useMemo",z(),O0();var J=q0.H;q0.H=o2;try{return j$(Z,X)}finally{q0.H=J}},useReducer:function(Z,X,J){$0="useReducer",z(),O0();var q=q0.H;q0.H=o2;try{return MZ(Z,X,J)}finally{q0.H=q}},useRef:function(){return $0="useRef",z(),O0(),p1().memoizedState},useState:function(){$0="useState",z(),O0();var Z=q0.H;q0.H=o2;try{return MZ(i2)}finally{q0.H=Z}},useDebugValue:function(){$0="useDebugValue",z(),O0()},useDeferredValue:function(Z,X){return $0="useDeferredValue",z(),O0(),hM(Z,X)},useTransition:function(){return $0="useTransition",z(),O0(),fM()},useSyncExternalStore:function(Z,X,J){return $0="useSyncExternalStore",z(),O0(),A$(Z,X,J)},useId:function(){return $0="useId",z(),O0(),p1().memoizedState},useFormState:function(Z){return $0="useFormState",z(),O0(),I$(Z)},useActionState:function(Z){return $0="useActionState",z(),O0(),I$(Z)},useOptimistic:function(Z,X){return $0="useOptimistic",z(),O0(),PM(Z,X)},useMemoCache:function(Z){return z(),a7(Z)},useHostTransitionStatus:s7,useCacheRefresh:function(){return $0="useCacheRefresh",O0(),p1().memoizedState},useEffectEvent:function(Z){return $0="useEffectEvent",z(),O0(),P$(Z)}},EY={readContext:function(Z){return F(),K5(Z)},use:function(Z){return z(),k6(Z)},useCallback:function(Z,X){return $0="useCallback",z(),O0(),C$(Z,X)},useContext:function(Z){return $0="useContext",z(),O0(),K5(Z)},useEffect:function(Z,X){$0="useEffect",z(),O0(),u4(2048,b4,Z,X)},useImperativeHandle:function(Z,X,J){return $0="useImperativeHandle",z(),O0(),w$(Z,X,J)},useInsertionEffect:function(Z,X){return $0="useInsertionEffect",z(),O0(),u4(4,E4,Z,X)},useLayoutEffect:function(Z,X){return $0="useLayoutEffect",z(),O0(),u4(4,B2,Z,X)},useMemo:function(Z,X){$0="useMemo",z(),O0();var J=q0.H;q0.H=o2;try{return j$(Z,X)}finally{q0.H=J}},useReducer:function(Z,X,J){$0="useReducer",z(),O0();var q=q0.H;q0.H=o2;try{return T3(Z,X,J)}finally{q0.H=q}},useRef:function(){return $0="useRef",z(),O0(),p1().memoizedState},useState:function(){$0="useState",z(),O0();var Z=q0.H;q0.H=o2;try{return T3(i2)}finally{q0.H=Z}},useDebugValue:function(){$0="useDebugValue",z(),O0()},useDeferredValue:function(Z,X){return $0="useDeferredValue",z(),O0(),vM(Z,X)},useTransition:function(){return $0="useTransition",z(),O0(),pM()},useSyncExternalStore:function(Z,X,J){return $0="useSyncExternalStore",z(),O0(),A$(Z,X,J)},useId:function(){return $0="useId",z(),O0(),p1().memoizedState},useFormState:function(Z){return $0="useFormState",z(),O0(),T$(Z)},useActionState:function(Z){return $0="useActionState",z(),O0(),T$(Z)},useOptimistic:function(Z,X){return $0="useOptimistic",z(),O0(),CM(Z,X)},useMemoCache:function(Z){return z(),a7(Z)},useHostTransitionStatus:s7,useCacheRefresh:function(){return $0="useCacheRefresh",O0(),p1().memoizedState},useEffectEvent:function(Z){return $0="useEffectEvent",z(),O0(),P$(Z)}};var bO={},yO=new Set,gO=new Set,hO=new Set,vO=new Set,xO=new Set,kO=new Set,mO=new Set,uO=new Set,fO=new Set,pO=new Set;Object.freeze(bO);var nH={enqueueSetState:function(Z,X,J){Z=Z._reactInternals;var q=$2(Z),W=g6(q);W.payload=X,J!==void 0&&J!==null&&(ZW(J),W.callback=J),X=h6(Z,W,q),X!==null&&(F9(q,"this.setState()",Z),L5(X,Z,q),_3(X,Z,q))},enqueueReplaceState:function(Z,X,J){Z=Z._reactInternals;var q=$2(Z),W=g6(q);W.tag=VO,W.payload=X,J!==void 0&&J!==null&&(ZW(J),W.callback=J),X=h6(Z,W,q),X!==null&&(F9(q,"this.replaceState()",Z),L5(X,Z,q),_3(X,Z,q))},enqueueForceUpdate:function(Z,X){Z=Z._reactInternals;var J=$2(Z),q=g6(J);q.tag=PO,X!==void 0&&X!==null&&(ZW(X),q.callback=X),X=h6(Z,q,J),X!==null&&(F9(J,"this.forceUpdate()",Z),L5(X,Z,J),_3(X,Z,J))}},ZX=null,sH=null,oH=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),E5=!1,lO={},dO={},iO={},cO={},XX=!1,rO={},bY={},tH={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},aO=!1,nO=null;nO=new Set;var F6=!1,b5=!1,eH=!1,sO=typeof WeakSet==="function"?WeakSet:Set,e5=null,QX=null,JX=null,y5=null,l4=!1,t2=null,f5=!1,_Q=8192,yb={getCacheForType:function(Z){var X=K5(j5),J=X.data.get(Z);return J===void 0&&(J=Z(),X.data.set(Z,J)),J},cacheSignal:function(){return K5(j5).controller.signal},getOwner:function(){return G2}};if(typeof Symbol==="function"&&Symbol.for){var OQ=Symbol.for;OQ("selector.component"),OQ("selector.has_pseudo_class"),OQ("selector.role"),OQ("selector.test_id"),OQ("selector.text")}var gb=[],hb=typeof WeakMap==="function"?WeakMap:Map,Z4=0,p5=2,U2=4,L6=0,AQ=1,U8=2,yY=3,J7=4,gY=6,oO=5,x1=Z4,s1=null,A1=null,_1=0,d4=0,hY=1,z8=2,IQ=3,tO=4,ZB=5,TQ=6,vY=7,XB=8,F8=9,l1=d4,z2=null,$7=!1,$X=!1,QB=!1,k9=0,z5=L6,Y7=0,q7=0,JB=0,i4=0,L8=0,VQ=null,y4=null,xY=!1,kY=0,eO=0,ZA=300,mY=1/0,XA=500,PQ=null,O5=null,G7=null,uY=0,$B=1,YB=2,QA=3,K7=0,JA=1,$A=2,YA=3,qA=4,fY=5,g5=0,W7=null,YX=null,e2=0,qB=0,GB=-0,KB=null,GA=null,KA=null,Z9=uY,WA=null,vb=50,wQ=0,WB=null,HB=!1,pY=!1,xb=50,M8=0,CQ=null,qX=!1,lY=null,HA=!1,BA=new Set,kb={},dY=null,GX=null,BB=!1,UB=!1,iY=!1,zB=!1,H7=0,FB={};(function(){for(var Z=0;Z<PH.length;Z++){var X=PH[Z],J=X.toLowerCase();X=X[0].toUpperCase()+X.slice(1),d2(J,"on"+X)}d2(f_,"onAnimationEnd"),d2(p_,"onAnimationIteration"),d2(l_,"onAnimationStart"),d2("dblclick","onDoubleClick"),d2("focusin","onFocus"),d2("focusout","onBlur"),d2(Fb,"onTransitionRun"),d2(Lb,"onTransitionStart"),d2(Mb,"onTransitionCancel"),d2(d_,"onTransitionEnd")})(),Q5("onMouseEnter",["mouseout","mouseover"]),Q5("onMouseLeave",["mouseout","mouseover"]),Q5("onPointerEnter",["pointerout","pointerover"]),Q5("onPointerLeave",["pointerout","pointerover"]),S1("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),S1("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),S1("onBeforeInput",["compositionend","keypress","textInput","paste"]),S1("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),S1("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),S1("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jQ="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(" "),LB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jQ)),cY="_reactListening"+Math.random().toString(36).slice(2),UA=!1,zA=!1,rY=!1,FA=!1,aY=!1,nY=!1,LA=!1,sY={},mb=/\r\n?/g,ub=/\u0000|\uFFFD/g,N8="http://www.w3.org/1999/xlink",MB="http://www.w3.org/XML/1998/namespace",fb="javascript:throw new Error('React form unexpectedly submitted.')",pb="suppressHydrationWarning",R8="&",oY="/&",DQ="$",SQ="/$",B7="$?",_8="$~",KX="$!",lb="html",db="body",ib="head",NB="F!",MA="F",NA="loading",cb="style",M6=0,WX=1,tY=2,RB=null,_B=null,RA={dialog:!0,webview:!0},OB=null,EQ=void 0,_A=typeof setTimeout==="function"?setTimeout:void 0,rb=typeof clearTimeout==="function"?clearTimeout:void 0,O8=-1,OA=typeof Promise==="function"?Promise:void 0,ab=typeof queueMicrotask==="function"?queueMicrotask:typeof OA<"u"?function(Z){return OA.resolve(null).then(Z).catch(bS)}:_A,AB=null,A8=0,bQ=1,AA=2,IA=3,b2=4,y2=new Map,TA=new Set,N6=f1.d;f1.d={f:function(){var Z=N6.f(),X=IZ();return Z||X},r:function(Z){var X=D0(Z);X!==null&&X.tag===5&&X.type==="form"?uM(X):N6.r(Z)},D:function(Z){N6.D(Z),yR("dns-prefetch",Z,null)},C:function(Z,X){N6.C(Z,X),yR("preconnect",Z,X)},L:function(Z,X,J){N6.L(Z,X,J);var q=HX;if(q&&Z&&X){var W='link[rel="preload"][as="'+O2(X)+'"]';X==="image"?J&&J.imageSrcSet?(W+='[imagesrcset="'+O2(J.imageSrcSet)+'"]',typeof J.imageSizes==="string"&&(W+='[imagesizes="'+O2(J.imageSizes)+'"]')):W+='[href="'+O2(Z)+'"]':W+='[href="'+O2(Z)+'"]';var U=W;switch(X){case"style":U=PZ(Z);break;case"script":U=wZ(Z)}y2.has(U)||(Z=V1({rel:"preload",href:X==="image"&&J&&J.imageSrcSet?void 0:Z,as:X},J),y2.set(U,Z),q.querySelector(W)!==null||X==="style"&&q.querySelector(k3(U))||X==="script"&&q.querySelector(m3(U))||(X=q.createElement("link"),q4(X,"link",Z),i0(X),q.head.appendChild(X)))}},m:function(Z,X){N6.m(Z,X);var J=HX;if(J&&Z){var q=X&&typeof X.as==="string"?X.as:"script",W='link[rel="modulepreload"][as="'+O2(q)+'"][href="'+O2(Z)+'"]',U=W;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":U=wZ(Z)}if(!y2.has(U)&&(Z=V1({rel:"modulepreload",href:Z},X),y2.set(U,Z),J.querySelector(W)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(J.querySelector(m3(U)))return}q=J.createElement("link"),q4(q,"link",Z),i0(q),J.head.appendChild(q)}}},X:function(Z,X){N6.X(Z,X);var J=HX;if(J&&Z){var q=q1(J).hoistableScripts,W=wZ(Z),U=q.get(W);U||(U=J.querySelector(m3(W)),U||(Z=V1({src:Z,async:!0},X),(X=y2.get(W))&&dW(Z,X),U=J.createElement("script"),i0(U),q4(U,"link",Z),J.head.appendChild(U)),U={type:"script",instance:U,count:1,state:null},q.set(W,U))}},S:function(Z,X,J){N6.S(Z,X,J);var q=HX;if(q&&Z){var W=q1(q).hoistableStyles,U=PZ(Z);X=X||"default";var M=W.get(U);if(!M){var _={loading:A8,preload:null};if(M=q.querySelector(k3(U)))_.loading=bQ|b2;else{Z=V1({rel:"stylesheet",href:Z,"data-precedence":X},J),(J=y2.get(U))&&lW(Z,J);var V=M=q.createElement("link");i0(V),q4(V,"link",Z),V._p=new Promise(function(j,l){V.onload=j,V.onerror=l}),V.addEventListener("load",function(){_.loading|=bQ}),V.addEventListener("error",function(){_.loading|=AA}),_.loading|=b2,r$(M,X,q)}M={type:"stylesheet",instance:M,count:1,state:_},W.set(U,M)}}},M:function(Z,X){N6.M(Z,X);var J=HX;if(J&&Z){var q=q1(J).hoistableScripts,W=wZ(Z),U=q.get(W);U||(U=J.querySelector(m3(W)),U||(Z=V1({src:Z,async:!0,type:"module"},X),(X=y2.get(W))&&dW(Z,X),U=J.createElement("script"),i0(U),q4(U,"link",Z),J.head.appendChild(U)),U={type:"script",instance:U,count:1,state:null},q.set(W,U))}}};var HX=typeof document>"u"?null:document,eY=null,nb=60000,sb=800,ob=500,IB=0,TB=null,Zq=null,I8=UE,yQ={$$typeof:j9,Provider:null,Consumer:null,_currentValue:I8,_currentValue2:I8,_threadCount:0},VA="%c%s%c",PA="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",wA="",Xq=" ",tb=Function.prototype.bind,CA=!1,jA=null,DA=null,SA=null,EA=null,bA=null,yA=null,gA=null,hA=null,vA=null,xA=null;jA=function(Z,X,J,q){X=Q(Z,X),X!==null&&(J=$(X.memoizedState,J,0,q),X.memoizedState=J,X.baseState=J,Z.memoizedProps=V1({},Z.memoizedProps),J=M4(Z,2),J!==null&&L5(J,Z,2))},DA=function(Z,X,J){X=Q(Z,X),X!==null&&(J=K(X.memoizedState,J,0),X.memoizedState=J,X.baseState=J,Z.memoizedProps=V1({},Z.memoizedProps),J=M4(Z,2),J!==null&&L5(J,Z,2))},SA=function(Z,X,J,q){X=Q(Z,X),X!==null&&(J=Y(X.memoizedState,J,q),X.memoizedState=J,X.baseState=J,Z.memoizedProps=V1({},Z.memoizedProps),J=M4(Z,2),J!==null&&L5(J,Z,2))},EA=function(Z,X,J){Z.pendingProps=$(Z.memoizedProps,X,0,J),Z.alternate&&(Z.alternate.pendingProps=Z.pendingProps),X=M4(Z,2),X!==null&&L5(X,Z,2)},bA=function(Z,X){Z.pendingProps=K(Z.memoizedProps,X,0),Z.alternate&&(Z.alternate.pendingProps=Z.pendingProps),X=M4(Z,2),X!==null&&L5(X,Z,2)},yA=function(Z,X,J){Z.pendingProps=Y(Z.memoizedProps,X,J),Z.alternate&&(Z.alternate.pendingProps=Z.pendingProps),X=M4(Z,2),X!==null&&L5(X,Z,2)},gA=function(Z){var X=M4(Z,2);X!==null&&L5(X,Z,2)},hA=function(Z){var X=K0(),J=M4(Z,X);J!==null&&L5(J,Z,X)},vA=function(Z){B=Z},xA=function(Z){H=Z};var Qq=!0,Jq=null,VB=!1,U7=null,z7=null,F7=null,gQ=new Map,hQ=new Map,L7=[],eb="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(" "),$q=null;if(t$.prototype.render=sW.prototype.render=function(Z){var X=this._internalRoot;if(X===null)throw Error("Cannot update an unmounted root.");var J=arguments;typeof J[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):b(J[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof J[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),J=Z;var q=X.current,W=$2(q);iW(q,W,J,X,null,null)},t$.prototype.unmount=sW.prototype.unmount=function(){var Z=arguments;if(typeof Z[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),Z=this._internalRoot,Z!==null){this._internalRoot=null;var X=Z.containerInfo;(x1&(p5|U2))!==Z4&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),iW(Z.current,2,null,Z,null,null),IZ(),X[i6]=null}},t$.prototype.unstable_scheduleHydration=function(Z){if(Z){var X=i();Z={blockedOn:null,target:Z,priority:X};for(var J=0;J<L7.length&&X!==0&&X<L7[J].priority;J++);L7.splice(J,0,Z),J===0&&rR(Z)}},function(){var Z=BX.version;if(Z!=="19.2.3")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
224
|
+
- react: `+(Z+`
|
|
225
225
|
- react-dom: 19.2.3
|
|
226
|
-
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),
|
|
227
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}
|
|
226
|
+
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),f1.findDOMNode=function(Z){var X=Z._reactInternals;if(X===void 0){if(typeof Z.render==="function")throw Error("Unable to find node on an unmounted component.");throw Z=Object.keys(Z).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+Z)}return Z=s(X),Z=Z!==null?g(Z):null,Z=Z===null?null:Z.stateNode,Z},!function(){var Z={bundleType:1,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:q0,reconcilerVersion:"19.2.3"};return Z.overrideHookState=jA,Z.overrideHookStateDeletePath=DA,Z.overrideHookStateRenamePath=SA,Z.overrideProps=EA,Z.overridePropsDeletePath=bA,Z.overridePropsRenamePath=yA,Z.scheduleUpdate=gA,Z.scheduleRetry=hA,Z.setErrorHandler=vA,Z.setSuspenseHandler=xA,Z.scheduleRefresh=C,Z.scheduleRoot=A,Z.setRefreshHandler=D,Z.getCurrentFiber=$E,D1(Z)}()&&y9&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var kA=window.location.protocol;/^(https?|file):$/.test(kA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(kA==="file:"?`
|
|
227
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Wy.createRoot=function(Z,X){if(!b(Z))throw Error("Target container is not a DOM element.");oR(Z);var J=!1,q="",W=aM,U=nM,M=sM;return X!==null&&X!==void 0&&(X.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof X==="object"&&X!==null&&X.$$typeof===C9&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
228
228
|
|
|
229
229
|
let root = createRoot(domContainer);
|
|
230
|
-
root.render(<App />);`),
|
|
230
|
+
root.render(<App />);`),X.unstable_strictMode===!0&&(J=!0),X.identifierPrefix!==void 0&&(q=X.identifierPrefix),X.onUncaughtError!==void 0&&(W=X.onUncaughtError),X.onCaughtError!==void 0&&(U=X.onCaughtError),X.onRecoverableError!==void 0&&(M=X.onRecoverableError)),X=uR(Z,1,!1,null,null,J,q,null,W,U,M,sR),Z[i6]=X.current,EW(Z),new sW(X)},Wy.hydrateRoot=function(Z,X,J){if(!b(Z))throw Error("Target container is not a DOM element.");oR(Z),X===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,W="",U=aM,M=nM,_=sM,V=null;return J!==null&&J!==void 0&&(J.unstable_strictMode===!0&&(q=!0),J.identifierPrefix!==void 0&&(W=J.identifierPrefix),J.onUncaughtError!==void 0&&(U=J.onUncaughtError),J.onCaughtError!==void 0&&(M=J.onCaughtError),J.onRecoverableError!==void 0&&(_=J.onRecoverableError),J.formState!==void 0&&(V=J.formState)),X=uR(Z,1,!0,X,J!=null?J:null,q,W,V,U,M,_,sR),X.context=fR(null),J=X.current,q=$2(J),q=n5(q),W=g6(q),W.callback=null,h6(J,W,q),F9(q,"hydrateRoot()",null),J=q,X.current.lanes=J,b0(X,J),P9(X),Z[i6]=X.current,EW(Z),new t$(X)},Wy.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var iA=_4((Ei,dA)=>{var Hy=J0(lA());dA.exports=Hy});var l5=_4((iy)=>{var b8=J0(k0());(function(){function Q(T){if(T==null)return null;if(typeof T==="function")return T.$$typeof===E?null:T.displayName||T.name||null;if(typeof T==="string")return T;switch(T){case D:return"Fragment";case y:return"Profiler";case b:return"StrictMode";case s:return"Suspense";case g:return"SuspenseList";case Z0:return"Activity"}if(typeof T==="object")switch(typeof T.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),T.$$typeof){case C:return"Portal";case f:return T.displayName||"Context";case k:return(T._context.displayName||"Context")+".Consumer";case a:var B0=T.render;return T=T.displayName,T||(T=B0.displayName||B0.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case c:return B0=T.displayName||null,B0!==null?B0:Q(T.type)||"Memo";case h:B0=T._payload,T=T._init;try{return Q(T(B0))}catch(r){}}return null}function $(T){return""+T}function Y(T){try{$(T);var B0=!1}catch(L0){B0=!0}if(B0){B0=console;var r=B0.error,S=typeof Symbol==="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object";return r.call(B0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",S),$(T)}}function G(T){if(T===D)return"<>";if(typeof T==="object"&&T!==null&&T.$$typeof===h)return"<...>";try{var B0=Q(T);return B0?"<"+B0+">":"<...>"}catch(r){return"<...>"}}function K(){var T=_0.A;return T===null?null:T.getOwner()}function H(){return Error("react-stack-top-frame")}function B(T){if(t.call(T,"key")){var B0=Object.getOwnPropertyDescriptor(T,"key").get;if(B0&&B0.isReactWarning)return!1}return T.key!==void 0}function z(T,B0){function r(){o||(o=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",B0))}r.isReactWarning=!0,Object.defineProperty(T,"key",{get:r,configurable:!0})}function F(){var T=Q(this.type);return H0[T]||(H0[T]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),T=this.props.ref,T!==void 0?T:null}function R(T,B0,r,S,L0,A0){var V0=r.ref;return T={$$typeof:A,type:T,key:B0,props:r,_owner:S},(V0!==void 0?V0:null)!==null?Object.defineProperty(T,"ref",{enumerable:!1,get:F}):Object.defineProperty(T,"ref",{enumerable:!1,value:null}),T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(T,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(T,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:L0}),Object.defineProperty(T,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A0}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T}function N(T,B0,r,S,L0,A0){var V0=B0.children;if(V0!==void 0)if(S)if(n(V0)){for(S=0;S<V0.length;S++)L(V0[S]);Object.freeze&&Object.freeze(V0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else L(V0);if(t.call(B0,"key")){V0=Q(T);var C0=Object.keys(B0).filter(function($1){return $1!=="key"});S=0<C0.length?"{key: someKey, "+C0.join(": ..., ")+": ...}":"{key: someKey}",U0[V0+S]||(C0=0<C0.length?"{"+C0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
231
231
|
let props = %s;
|
|
232
232
|
<%s {...props} />
|
|
233
233
|
React keys must be passed directly to JSX without using spread:
|
|
234
234
|
let props = %s;
|
|
235
|
-
<%s key={someKey} {...props} />`,P0,$2,S2,$2),a[$2+P0]=!0)}if($2=null,F0!==void 0&&(L(F0),$2=""+F0),K(G0)&&(L(G0.key),$2=""+G0.key),"key"in G0){F0={};for(var V2 in G0)V2!=="key"&&(F0[V2]=G0[V2])}else F0=G0;return $2&&F(F0,typeof u==="function"?u.displayName||u.name||"Unknown":u),E(u,$2,F0,q(),x0,C2)}function _(u){T(u)?u._store&&(u._store.validated=1):typeof u==="object"&&u!==null&&u.$$typeof===p&&(u._payload.status==="fulfilled"?T(u._payload.value)&&u._payload.value._store&&(u._payload.value._store.validated=1):u._store&&(u._store.validated=1))}function T(u){return typeof u==="object"&&u!==null&&u.$$typeof===t}var t=Symbol.for("react.transitional.element"),B0=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),Z0=Symbol.for("react.strict_mode"),K0=Symbol.for("react.profiler"),_0=Symbol.for("react.consumer"),k=Symbol.for("react.context"),Y0=Symbol.for("react.forward_ref"),v0=Symbol.for("react.suspense"),C0=Symbol.for("react.suspense_list"),e0=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),D0=Symbol.for("react.activity"),i=Symbol.for("react.client.reference"),B2=A3.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,S0=Object.prototype.hasOwnProperty,M0=Array.isArray,G2=console.createTask?console.createTask:function(){return null};A3={react_stack_bottom_frame:function(u){return u()}};var c,z0={},e=A3.react_stack_bottom_frame.bind(A3,R)(),U0=G2(g(R)),a={};qU.Fragment=j,qU.jsxDEV=function(u,G0,F0,P0){var x0=1e4>B2.recentlyCreatedOwnerStacks++;return I(u,G0,F0,P0,x0?Error("react-stack-top-frame"):e,x0?G2(g(u)):U0)}})()});var _L=w0(EQ(),1);var f1=w0(w1(),1);function uB(N){return{...N,status:N.status,priority:N.priority,createdAt:new Date(N.createdAt),updatedAt:new Date(N.updatedAt),timeEntries:N.timeEntries.map((v)=>({...v,startedAt:new Date(v.startedAt),endedAt:v.endedAt?new Date(v.endedAt):void 0}))}}var y5={async getTasks(){let N=await fetch("/api/tasks");if(!N.ok)throw Error("Failed to fetch tasks");return(await N.json()).map(uB)},async getTask(N){let v=await fetch(`/api/tasks/${N}`);if(!v.ok)throw Error(`Failed to fetch task ${N}`);let L=await v.json();return uB(L)},async updateTask(N,v){let L=await fetch(`/api/tasks/${N}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)});if(!L.ok)throw Error(`Failed to update task ${N}`);let g=await L.json();return uB(g)},async createTask(N){let v=await fetch("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(N)});if(!v.ok)throw Error("Failed to create task");let L=await v.json();return uB(L)}},{createTask:DQ,updateTask:f6,getTasks:Dw,getTask:lw}=y5;function lQ(N){try{let v=window.location.protocol==="https:"?"wss:":"ws:",L=new WebSocket(`${v}//${window.location.host}/ws`);return L.onmessage=(g)=>{try{let q=JSON.parse(g.data);N(q)}catch(q){console.error("Failed to parse WebSocket message:",q)}},L.onerror=(g)=>{console.error("WebSocket error:",g)},L.onclose=()=>{console.log("WebSocket connection closed")},L}catch(v){return console.error("Failed to create WebSocket connection:",v),null}}var S5=w0(w1(),1);var d0=w0(W2(),1),xB={Search:()=>d0.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d0.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Close:()=>d0.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d0.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Task:()=>d0.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d0.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Document:()=>d0.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d0.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};function IG({onTaskSelect:N,onDocSelect:v}){let{isDark:L}=w2(),[g,q]=S5.useState(""),[R,K]=S5.useState([]),[F,b]=S5.useState([]),[E,I]=S5.useState(!1),[_,T]=S5.useState(!1),t=L?"bg-gray-800":"bg-white",B0=L?"text-gray-200":"text-gray-900",j=L?"text-gray-400":"text-gray-600",Z0=L?"border-gray-700":"border-gray-200",K0=L?"hover:bg-gray-700":"hover:bg-gray-50",_0=L?"bg-gray-700":"bg-white";S5.useEffect(()=>{if(g.length<2){K([]),b([]),T(!1);return}let p=setTimeout(()=>{k()},300);return()=>clearTimeout(p)},[g]);let k=async()=>{I(!0);try{let D0=await(await fetch(`http://localhost:3456/api/search?q=${encodeURIComponent(g)}`)).json();K(D0.tasks||[]),b(D0.docs||[]),T(!0)}catch(p){console.error("Search failed:",p)}finally{I(!1)}},Y0=()=>{q(""),K([]),b([]),T(!1)},v0=(p)=>{if(N)N(p);Y0()},C0=(p)=>{if(v)v(p);Y0()},e0=R.length+F.length;return d0.jsxDEV("div",{className:"relative w-full max-w-2xl",children:[d0.jsxDEV("div",{className:"relative",children:[d0.jsxDEV("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:d0.jsxDEV(xB.Search,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),d0.jsxDEV("input",{type:"text",value:g,onChange:(p)=>q(p.target.value),placeholder:"Search tasks and docs...",className:`w-full pl-10 pr-10 py-2 rounded-lg border ${Z0} ${_0} ${B0} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this),g&&d0.jsxDEV("button",{type:"button",onClick:Y0,className:`absolute inset-y-0 right-0 pr-3 flex items-center ${j} ${K0} rounded-r-lg transition-colors`,children:d0.jsxDEV(xB.Close,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_&&g.length>=2&&d0.jsxDEV("div",{className:`absolute z-50 w-full mt-2 ${t} rounded-lg border ${Z0} shadow-lg max-h-96 overflow-y-auto`,children:[E&&d0.jsxDEV("div",{className:"p-4 text-center",children:d0.jsxDEV("span",{className:j,children:"Searching..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),!E&&e0===0&&d0.jsxDEV("div",{className:"p-4 text-center",children:d0.jsxDEV("span",{className:j,children:['No results found for "',g,'"']},void 0,!0,void 0,this)},void 0,!1,void 0,this),!E&&e0>0&&d0.jsxDEV("div",{className:"py-2",children:[R.length>0&&d0.jsxDEV("div",{children:[d0.jsxDEV("div",{className:`px-4 py-2 ${j} text-xs font-semibold uppercase`,children:["Tasks (",R.length,")"]},void 0,!0,void 0,this),R.map((p)=>d0.jsxDEV("button",{type:"button",onClick:()=>v0(p),className:`w-full text-left px-4 py-2 ${K0} transition-colors flex items-start gap-3`,children:[d0.jsxDEV(xB.Task,{},void 0,!1,void 0,this),d0.jsxDEV("div",{className:"flex-1 min-w-0",children:[d0.jsxDEV("div",{className:"flex items-center gap-2",children:[d0.jsxDEV("span",{className:`text-xs ${j} font-mono`,children:p.id},void 0,!1,void 0,this),d0.jsxDEV("span",{className:`text-xs px-1.5 py-0.5 rounded ${p.priority==="high"?"bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-200":p.priority==="medium"?"bg-yellow-100 text-yellow-700 dark:bg-yellow-900 dark:text-yellow-200":"bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300"}`,children:p.priority},void 0,!1,void 0,this)]},void 0,!0,void 0,this),d0.jsxDEV("p",{className:`font-medium ${B0} mt-1`,children:p.title},void 0,!1,void 0,this),p.description&&d0.jsxDEV("p",{className:`text-sm ${j} line-clamp-1 mt-1`,children:p.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},p.id,!0,void 0,this))]},void 0,!0,void 0,this),F.length>0&&d0.jsxDEV("div",{className:R.length>0?"mt-2 pt-2 border-t border-gray-700":"",children:[d0.jsxDEV("div",{className:`px-4 py-2 ${j} text-xs font-semibold uppercase`,children:["Documentation (",F.length,")"]},void 0,!0,void 0,this),F.map((p)=>d0.jsxDEV("button",{type:"button",onClick:()=>C0(p),className:`w-full text-left px-4 py-2 ${K0} transition-colors flex items-start gap-3`,children:[d0.jsxDEV(xB.Document,{},void 0,!1,void 0,this),d0.jsxDEV("div",{className:"flex-1 min-w-0",children:[d0.jsxDEV("p",{className:`font-medium ${B0}`,children:p.metadata.title},void 0,!1,void 0,this),p.metadata.description&&d0.jsxDEV("p",{className:`text-sm ${j} line-clamp-1 mt-1`,children:p.metadata.description},void 0,!1,void 0,this),p.metadata.tags&&p.metadata.tags.length>0&&d0.jsxDEV("div",{className:"flex gap-1 mt-1",children:p.metadata.tags.slice(0,3).map((D0)=>d0.jsxDEV("span",{className:`text-xs px-1.5 py-0.5 rounded ${L?"bg-blue-900 text-blue-200":"bg-blue-100 text-blue-700"}`,children:D0},D0,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},p.filename,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var q1=w0(W2(),1),hB={Kanban:()=>q1.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q1.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"},void 0,!1,void 0,this)},void 0,!1,void 0,this),List:()=>q1.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q1.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Document:()=>q1.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q1.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Settings:()=>q1.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[q1.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"},void 0,!1,void 0,this),q1.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},gU=[{id:"kanban",label:"Kanban",icon:hB.Kanban},{id:"tasks",label:"Tasks",icon:hB.List},{id:"docs",label:"Docs",icon:hB.Document},{id:"config",label:"Config",icon:hB.Settings}];function bG({currentPage:N}){let{isDark:v}=w2(),L=v?"bg-gray-800":"bg-white",g=v?"text-gray-300":"text-gray-600",q=v?"text-white":"text-gray-900",R=v?"hover:bg-gray-700":"hover:bg-gray-100",K=v?"bg-gray-700":"bg-gray-200";return q1.jsxDEV("aside",{className:`w-64 ${L} shadow-lg h-screen sticky top-0 flex flex-col`,children:[q1.jsxDEV("div",{className:"p-6 border-b border-gray-700",children:q1.jsxDEV("h2",{className:`text-xl font-bold ${q}`,children:"◆ Knowns.dev"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q1.jsxDEV("nav",{className:"flex-1 p-4 space-y-2",children:gU.map((F)=>{let b=F.icon,E=N===F.id,I=F.id==="kanban"?"#/":`#/${F.id}`;return q1.jsxDEV("a",{href:I,className:`w-full flex items-center gap-3 px-4 py-3 rounded-lg transition-colors ${E?`${K} ${q} font-medium`:`${g} ${R}`}`,children:[q1.jsxDEV(b,{},void 0,!1,void 0,this),q1.jsxDEV("span",{children:F.label},void 0,!1,void 0,this)]},F.id,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var M2=w0(w1(),1);function mG(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var I3=mG();function iQ(N){I3=N}var q9={exec:()=>null};function v2(N,v=""){let L=typeof N=="string"?N:N.source,g={replace:(q,R)=>{let K=typeof R=="string"?R:R.source;return K=K.replace(T1.caret,"$1"),L=L.replace(q,K),g},getRegex:()=>new RegExp(L,v)};return g}var KU=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),T1={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:(N)=>new RegExp(`^( {0,3}${N})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(N)=>new RegExp(`^ {0,${Math.min(3,N-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(N)=>new RegExp(`^ {0,${Math.min(3,N-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(N)=>new RegExp(`^ {0,${Math.min(3,N-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(N)=>new RegExp(`^ {0,${Math.min(3,N-1)}}#`),htmlBeginRegex:(N)=>new RegExp(`^ {0,${Math.min(3,N-1)}}<(?:[a-z].*>|!--)`,"i")},UU=/^(?:[ \t]*(?:\n|$))+/,OU=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,wU=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,g9=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,RU=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,TG=/(?:[*+-]|\d{1,9}[.)])/,rQ=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,nQ=v2(rQ).replace(/bull/g,TG).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),_U=v2(rQ).replace(/bull/g,TG).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),fG=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,MU=/^[^\n]+/,yG=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,FU=v2(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",yG).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),AU=v2(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,TG).getRegex(),DB="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",SG=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,PU=v2("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",SG).replace("tag",DB).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),tQ=v2(fG).replace("hr",g9).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",DB).getRegex(),IU=v2(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",tQ).getRegex(),uG={blockquote:IU,code:OU,def:FU,fences:wU,heading:RU,hr:g9,html:PU,lheading:nQ,list:AU,newline:UU,paragraph:tQ,table:q9,text:MU},dQ=v2("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",g9).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",DB).getRegex(),bU={...uG,lheading:_U,table:dQ,paragraph:v2(fG).replace("hr",g9).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",dQ).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",DB).getRegex()},CU={...uG,html:v2(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",SG).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:q9,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:v2(fG).replace("hr",g9).replace("heading",` *#{1,6} *[^
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
235
|
+
<%s key={someKey} {...props} />`,S,V0,C0,V0),U0[V0+S]=!0)}if(V0=null,r!==void 0&&(Y(r),V0=""+r),B(B0)&&(Y(B0.key),V0=""+B0.key),"key"in B0){r={};for(var u0 in B0)u0!=="key"&&(r[u0]=B0[u0])}else r=B0;return V0&&z(r,typeof T==="function"?T.displayName||T.name||"Unknown":T),R(T,V0,r,K(),L0,A0)}function L(T){O(T)?T._store&&(T._store.validated=1):typeof T==="object"&&T!==null&&T.$$typeof===h&&(T._payload.status==="fulfilled"?O(T._payload.value)&&T._payload.value._store&&(T._payload.value._store.validated=1):T._store&&(T._store.validated=1))}function O(T){return typeof T==="object"&&T!==null&&T.$$typeof===A}var A=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),f=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),Z0=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),_0=b8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,t=Object.prototype.hasOwnProperty,n=Array.isArray,z0=console.createTask?console.createTask:function(){return null};b8={react_stack_bottom_frame:function(T){return T()}};var o,H0={},G0=b8.react_stack_bottom_frame.bind(b8,H)(),e=z0(G(H)),U0={};iy.Fragment=D,iy.jsx=function(T,B0,r){var S=1e4>_0.recentlyCreatedOwnerStacks++;return N(T,B0,r,!1,S?Error("react-stack-top-frame"):G0,S?z0(G(T)):e)},iy.jsxs=function(T,B0,r){var S=1e4>_0.recentlyCreatedOwnerStacks++;return N(T,B0,r,!0,S?Error("react-stack-top-frame"):G0,S?z0(G(T)):e)}})()});var Q1=_4((mg)=>{var g8=J0(k0());(function(){function Q(T){if(T==null)return null;if(typeof T==="function")return T.$$typeof===E?null:T.displayName||T.name||null;if(typeof T==="string")return T;switch(T){case D:return"Fragment";case y:return"Profiler";case b:return"StrictMode";case s:return"Suspense";case g:return"SuspenseList";case Z0:return"Activity"}if(typeof T==="object")switch(typeof T.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),T.$$typeof){case C:return"Portal";case f:return T.displayName||"Context";case k:return(T._context.displayName||"Context")+".Consumer";case a:var B0=T.render;return T=T.displayName,T||(T=B0.displayName||B0.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case c:return B0=T.displayName||null,B0!==null?B0:Q(T.type)||"Memo";case h:B0=T._payload,T=T._init;try{return Q(T(B0))}catch(r){}}return null}function $(T){return""+T}function Y(T){try{$(T);var B0=!1}catch(L0){B0=!0}if(B0){B0=console;var r=B0.error,S=typeof Symbol==="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object";return r.call(B0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",S),$(T)}}function G(T){if(T===D)return"<>";if(typeof T==="object"&&T!==null&&T.$$typeof===h)return"<...>";try{var B0=Q(T);return B0?"<"+B0+">":"<...>"}catch(r){return"<...>"}}function K(){var T=_0.A;return T===null?null:T.getOwner()}function H(){return Error("react-stack-top-frame")}function B(T){if(t.call(T,"key")){var B0=Object.getOwnPropertyDescriptor(T,"key").get;if(B0&&B0.isReactWarning)return!1}return T.key!==void 0}function z(T,B0){function r(){o||(o=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",B0))}r.isReactWarning=!0,Object.defineProperty(T,"key",{get:r,configurable:!0})}function F(){var T=Q(this.type);return H0[T]||(H0[T]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),T=this.props.ref,T!==void 0?T:null}function R(T,B0,r,S,L0,A0){var V0=r.ref;return T={$$typeof:A,type:T,key:B0,props:r,_owner:S},(V0!==void 0?V0:null)!==null?Object.defineProperty(T,"ref",{enumerable:!1,get:F}):Object.defineProperty(T,"ref",{enumerable:!1,value:null}),T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(T,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(T,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:L0}),Object.defineProperty(T,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A0}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T}function N(T,B0,r,S,L0,A0){var V0=B0.children;if(V0!==void 0)if(S)if(n(V0)){for(S=0;S<V0.length;S++)L(V0[S]);Object.freeze&&Object.freeze(V0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else L(V0);if(t.call(B0,"key")){V0=Q(T);var C0=Object.keys(B0).filter(function($1){return $1!=="key"});S=0<C0.length?"{key: someKey, "+C0.join(": ..., ")+": ...}":"{key: someKey}",U0[V0+S]||(C0=0<C0.length?"{"+C0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
236
|
+
let props = %s;
|
|
237
|
+
<%s {...props} />
|
|
238
|
+
React keys must be passed directly to JSX without using spread:
|
|
239
|
+
let props = %s;
|
|
240
|
+
<%s key={someKey} {...props} />`,S,V0,C0,V0),U0[V0+S]=!0)}if(V0=null,r!==void 0&&(Y(r),V0=""+r),B(B0)&&(Y(B0.key),V0=""+B0.key),"key"in B0){r={};for(var u0 in B0)u0!=="key"&&(r[u0]=B0[u0])}else r=B0;return V0&&z(r,typeof T==="function"?T.displayName||T.name||"Unknown":T),R(T,V0,r,K(),L0,A0)}function L(T){O(T)?T._store&&(T._store.validated=1):typeof T==="object"&&T!==null&&T.$$typeof===h&&(T._payload.status==="fulfilled"?O(T._payload.value)&&T._payload.value._store&&(T._payload.value._store.validated=1):T._store&&(T._store.validated=1))}function O(T){return typeof T==="object"&&T!==null&&T.$$typeof===A}var A=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),f=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),Z0=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),_0=g8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,t=Object.prototype.hasOwnProperty,n=Array.isArray,z0=console.createTask?console.createTask:function(){return null};g8={react_stack_bottom_frame:function(T){return T()}};var o,H0={},G0=g8.react_stack_bottom_frame.bind(g8,H)(),e=z0(G(H)),U0={};mg.Fragment=D,mg.jsxDEV=function(T,B0,r,S){var L0=1e4>_0.recentlyCreatedOwnerStacks++;return N(T,B0,r,S,L0?Error("react-stack-top-frame"):G0,L0?z0(G(T)):e)}})()});var jw=_4((Ee,Cw)=>{var Tw=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Um=/\n/g,zm=/^\s*/,Fm=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Lm=/^:\s*/,Mm=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Nm=/^[;\s]*/,Rm=/^\s+|\s+$/g,_m=`
|
|
241
|
+
`,Vw="/",Pw="*",n8="",Om="comment",Am="declaration";function Im(Q,$){if(typeof Q!=="string")throw TypeError("First argument must be a string");if(!Q)return[];$=$||{};var Y=1,G=1;function K(C){var D=C.match(Um);if(D)Y+=D.length;var b=C.lastIndexOf(_m);G=~b?C.length-b:G+C.length}function H(){var C={line:Y,column:G};return function(D){return D.position=new B(C),R(),D}}function B(C){this.start=C,this.end={line:Y,column:G},this.source=$.source}B.prototype.content=Q;function z(C){var D=Error($.source+":"+Y+":"+G+": "+C);if(D.reason=C,D.filename=$.source,D.line=Y,D.column=G,D.source=Q,$.silent);else throw D}function F(C){var D=C.exec(Q);if(!D)return;var b=D[0];return K(b),Q=Q.slice(b.length),D}function R(){F(zm)}function N(C){var D;C=C||[];while(D=L())if(D!==!1)C.push(D);return C}function L(){var C=H();if(Vw!=Q.charAt(0)||Pw!=Q.charAt(1))return;var D=2;while(n8!=Q.charAt(D)&&(Pw!=Q.charAt(D)||Vw!=Q.charAt(D+1)))++D;if(D+=2,n8===Q.charAt(D-1))return z("End of comment missing");var b=Q.slice(2,D-2);return G+=2,K(b),Q=Q.slice(D),G+=2,C({type:Om,comment:b})}function O(){var C=H(),D=F(Fm);if(!D)return;if(L(),!F(Lm))return z("property missing ':'");var b=F(Mm),y=C({type:Am,property:ww(D[0].replace(Tw,n8)),value:b?ww(b[0].replace(Tw,n8)):n8});return F(Nm),y}function A(){var C=[];N(C);var D;while(D=O())if(D!==!1)C.push(D),N(C);return C}return R(),A()}function ww(Q){return Q?Q.replace(Rm,n8):n8}Cw.exports=Im});var Dw=_4((PJ)=>{var Tm=PJ&&PJ.__importDefault||function(Q){return Q&&Q.__esModule?Q:{default:Q}};Object.defineProperty(PJ,"__esModule",{value:!0});PJ.default=Pm;var Vm=Tm(jw());function Pm(Q,$){let Y=null;if(!Q||typeof Q!=="string")return Y;let G=(0,Vm.default)(Q),K=typeof $==="function";return G.forEach((H)=>{if(H.type!=="declaration")return;let{property:B,value:z}=H;if(K)$(B,z,H);else if(z)Y=Y||{},Y[B]=z}),Y}});var yw=_4((Ew)=>{Object.defineProperty(Ew,"__esModule",{value:!0});Ew.camelCase=void 0;var wm=/^--[a-zA-Z0-9_-]+$/,Cm=/-([a-z])/g,jm=/^[^-]+$/,Dm=/^-(webkit|moz|ms|o|khtml)-/,Sm=/^-(ms)-/,Em=function(Q){return!Q||jm.test(Q)||wm.test(Q)},bm=function(Q,$){return $.toUpperCase()},Sw=function(Q,$){return"".concat($,"-")},ym=function(Q,$){if($===void 0)$={};if(Em(Q))return Q;if(Q=Q.toLowerCase(),$.reactCompat)Q=Q.replace(Sm,Sw);else Q=Q.replace(Dm,Sw);return Q.replace(Cm,bm)};Ew.camelCase=ym});var hw=_4((wz,gw)=>{var gm=wz&&wz.__importDefault||function(Q){return Q&&Q.__esModule?Q:{default:Q}},hm=gm(Dw()),vm=yw();function Pz(Q,$){var Y={};if(!Q||typeof Q!=="string")return Y;return(0,hm.default)(Q,function(G,K){if(G&&K)Y[(0,vm.camelCase)(G,$)]=K}),Y}Pz.default=Pz;gw.exports=Pz});var BC=_4((W20,HC)=>{var dX=1000,iX=dX*60,cX=iX*60,QZ=cX*24,If=QZ*7,Tf=QZ*365.25;HC.exports=function(Q,$){$=$||{};var Y=typeof Q;if(Y==="string"&&Q.length>0)return Vf(Q);else if(Y==="number"&&isFinite(Q))return $.long?wf(Q):Pf(Q);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(Q))};function Vf(Q){if(Q=String(Q),Q.length>100)return;var $=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(Q);if(!$)return;var Y=parseFloat($[1]),G=($[2]||"ms").toLowerCase();switch(G){case"years":case"year":case"yrs":case"yr":case"y":return Y*Tf;case"weeks":case"week":case"w":return Y*If;case"days":case"day":case"d":return Y*QZ;case"hours":case"hour":case"hrs":case"hr":case"h":return Y*cX;case"minutes":case"minute":case"mins":case"min":case"m":return Y*iX;case"seconds":case"second":case"secs":case"sec":case"s":return Y*dX;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return Y;default:return}}function Pf(Q){var $=Math.abs(Q);if($>=QZ)return Math.round(Q/QZ)+"d";if($>=cX)return Math.round(Q/cX)+"h";if($>=iX)return Math.round(Q/iX)+"m";if($>=dX)return Math.round(Q/dX)+"s";return Q+"ms"}function wf(Q){var $=Math.abs(Q);if($>=QZ)return AG(Q,$,QZ,"day");if($>=cX)return AG(Q,$,cX,"hour");if($>=iX)return AG(Q,$,iX,"minute");if($>=dX)return AG(Q,$,dX,"second");return Q+" ms"}function AG(Q,$,Y,G){var K=$>=Y*1.5;return Math.round(Q/Y)+" "+G+(K?"s":"")}});var zC=_4((H20,UC)=>{function Cf(Q){Y.debug=Y,Y.default=Y,Y.coerce=F,Y.disable=B,Y.enable=K,Y.enabled=z,Y.humanize=BC(),Y.destroy=R,Object.keys(Q).forEach((N)=>{Y[N]=Q[N]}),Y.names=[],Y.skips=[],Y.formatters={};function $(N){let L=0;for(let O=0;O<N.length;O++)L=(L<<5)-L+N.charCodeAt(O),L|=0;return Y.colors[Math.abs(L)%Y.colors.length]}Y.selectColor=$;function Y(N){let L,O=null,A,C;function D(...b){if(!D.enabled)return;let y=D,k=Number(new Date),f=k-(L||k);if(y.diff=f,y.prev=L,y.curr=k,L=k,b[0]=Y.coerce(b[0]),typeof b[0]!=="string")b.unshift("%O");let a=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(g,c)=>{if(g==="%%")return"%";a++;let h=Y.formatters[c];if(typeof h==="function"){let Z0=b[a];g=h.call(y,Z0),b.splice(a,1),a--}return g}),Y.formatArgs.call(y,b),(y.log||Y.log).apply(y,b)}if(D.namespace=N,D.useColors=Y.useColors(),D.color=Y.selectColor(N),D.extend=G,D.destroy=Y.destroy,Object.defineProperty(D,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(O!==null)return O;if(A!==Y.namespaces)A=Y.namespaces,C=Y.enabled(N);return C},set:(b)=>{O=b}}),typeof Y.init==="function")Y.init(D);return D}function G(N,L){let O=Y(this.namespace+(typeof L>"u"?":":L)+N);return O.log=this.log,O}function K(N){Y.save(N),Y.namespaces=N,Y.names=[],Y.skips=[];let L=(typeof N==="string"?N:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let O of L)if(O[0]==="-")Y.skips.push(O.slice(1));else Y.names.push(O)}function H(N,L){let O=0,A=0,C=-1,D=0;while(O<N.length)if(A<L.length&&(L[A]===N[O]||L[A]==="*"))if(L[A]==="*")C=A,D=O,A++;else O++,A++;else if(C!==-1)A=C+1,D++,O=D;else return!1;while(A<L.length&&L[A]==="*")A++;return A===L.length}function B(){let N=[...Y.names,...Y.skips.map((L)=>"-"+L)].join(",");return Y.enable(""),N}function z(N){for(let L of Y.skips)if(H(N,L))return!1;for(let L of Y.names)if(H(N,L))return!0;return!1}function F(N){if(N instanceof Error)return N.stack||N.message;return N}function R(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return Y.enable(Y.load()),Y}UC.exports=Cf});var LC=_4((FC,IG)=>{FC.formatArgs=Df;FC.save=Sf;FC.load=Ef;FC.useColors=jf;FC.storage=bf();FC.destroy=(()=>{let Q=!1;return()=>{if(!Q)Q=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();FC.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function jf(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let Q;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(Q=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(Q[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Df(Q){if(Q[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+Q[0]+(this.useColors?"%c ":" ")+"+"+IG.exports.humanize(this.diff),!this.useColors)return;let $="color: "+this.color;Q.splice(1,0,$,"color: inherit");let Y=0,G=0;Q[0].replace(/%[a-zA-Z%]/g,(K)=>{if(K==="%%")return;if(Y++,K==="%c")G=Y}),Q.splice(G,0,$)}FC.log=console.debug||console.log||(()=>{});function Sf(Q){try{if(Q)FC.storage.setItem("debug",Q);else FC.storage.removeItem("debug")}catch($){}}function Ef(){let Q;try{Q=FC.storage.getItem("debug")||FC.storage.getItem("DEBUG")}catch($){}if(!Q&&typeof process<"u"&&"env"in process)Q=process.env.DEBUG;return Q}function bf(){try{return localStorage}catch(Q){}}IG.exports=zC()(FC);var{formatters:yf}=IG.exports;yf.j=function(Q){try{return JSON.stringify(Q)}catch($){return"[UnexpectedJSONParseError]: "+$.message}}});var Hj=_4((i60,Wj)=>{var hG=Object.prototype.hasOwnProperty,Kj=Object.prototype.toString,Qj=Object.defineProperty,Jj=Object.getOwnPropertyDescriptor,$j=function($){if(typeof Array.isArray==="function")return Array.isArray($);return Kj.call($)==="[object Array]"},Yj=function($){if(!$||Kj.call($)!=="[object Object]")return!1;var Y=hG.call($,"constructor"),G=$.constructor&&$.constructor.prototype&&hG.call($.constructor.prototype,"isPrototypeOf");if($.constructor&&!Y&&!G)return!1;var K;for(K in $);return typeof K>"u"||hG.call($,K)},qj=function($,Y){if(Qj&&Y.name==="__proto__")Qj($,Y.name,{enumerable:!0,configurable:!0,value:Y.newValue,writable:!0});else $[Y.name]=Y.newValue},Gj=function($,Y){if(Y==="__proto__"){if(!hG.call($,Y))return;else if(Jj)return Jj($,Y).value}return $[Y]};Wj.exports=function Q(){var $,Y,G,K,H,B,z=arguments[0],F=1,R=arguments.length,N=!1;if(typeof z==="boolean")N=z,z=arguments[1]||{},F=2;if(z==null||typeof z!=="object"&&typeof z!=="function")z={};for(;F<R;++F)if($=arguments[F],$!=null){for(Y in $)if(G=Gj(z,Y),K=Gj($,Y),z!==K){if(N&&K&&(Yj(K)||(H=$j(K)))){if(H)H=!1,B=G&&$j(G)?G:[];else B=G&&Yj(G)?G:{};qj(z,{name:Y,newValue:Q(N,B,K)})}else if(typeof K<"u")qj(z,{name:Y,newValue:K})}}return z}});var RD=J0(iA(),1);var J4=J0(k0(),1);function vQ(Q){return{...Q,status:Q.status,priority:Q.priority,createdAt:new Date(Q.createdAt),updatedAt:new Date(Q.updatedAt),timeEntries:Q.timeEntries.map(($)=>({...$,startedAt:new Date($.startedAt),endedAt:$.endedAt?new Date($.endedAt):void 0}))}}var P8={async getTasks(){let Q=await fetch("/api/tasks");if(!Q.ok)throw Error("Failed to fetch tasks");return(await Q.json()).map(vQ)},async getTask(Q){let $=await fetch(`/api/tasks/${Q}`);if(!$.ok)throw Error(`Failed to fetch task ${Q}`);let Y=await $.json();return vQ(Y)},async updateTask(Q,$){let Y=await fetch(`/api/tasks/${Q}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify($)});if(!Y.ok)throw Error(`Failed to update task ${Q}`);let G=await Y.json();return vQ(G)},async createTask(Q){let $=await fetch("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Q)});if(!$.ok)throw Error("Failed to create task");let Y=await $.json();return vQ(Y)}},{createTask:cA,updateTask:UX,getTasks:bi,getTask:yi}=P8;function rA(Q){try{let $=window.location.protocol==="https:"?"wss:":"ws:",Y=new WebSocket(`${$}//${window.location.host}/ws`);return Y.onmessage=(G)=>{try{let K=JSON.parse(G.data),H={...K,task:K.task?vQ(K.task):void 0};Q(H)}catch(K){console.error("Failed to parse WebSocket message:",K)}},Y.onerror=(G)=>{console.error("WebSocket error:",G)},Y.onclose=()=>{console.log("WebSocket connection closed")},Y}catch($){return console.error("Failed to create WebSocket connection:",$),null}}var Gq=J0(k0(),1);var aA=(Q)=>Q.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),By=(Q)=>Q.replace(/^([A-Z])|[\s-_]+(\w)/g,($,Y,G)=>G?G.toUpperCase():Y.toLowerCase()),jB=(Q)=>{let $=By(Q);return $.charAt(0).toUpperCase()+$.slice(1)},qq=(...Q)=>Q.filter(($,Y,G)=>{return Boolean($)&&$.trim()!==""&&G.indexOf($)===Y}).join(" ").trim(),nA=(Q)=>{for(let $ in Q)if($.startsWith("aria-")||$==="role"||$==="title")return!0};var xQ=J0(k0(),1);var sA={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"};var oA=xQ.forwardRef(({color:Q="currentColor",size:$=24,strokeWidth:Y=2,absoluteStrokeWidth:G,className:K="",children:H,iconNode:B,...z},F)=>xQ.createElement("svg",{ref:F,...sA,width:$,height:$,stroke:Q,strokeWidth:G?Number(Y)*24/Number($):Y,className:qq("lucide",K),...!H&&!nA(z)&&{"aria-hidden":"true"},...z},[...B.map(([R,N])=>xQ.createElement(R,N)),...Array.isArray(H)?H:[H]]));var f0=(Q,$)=>{let Y=Gq.forwardRef(({className:G,...K},H)=>Gq.createElement(oA,{ref:H,iconNode:$,className:qq(`lucide-${aA(jB(Q))}`,`lucide-${Q}`,G),...K}));return Y.displayName=jB(Q),Y};var Uy=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],kQ=f0("archive",Uy);var zy=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],w8=f0("arrow-up",zy);var Fy=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],M7=f0("check",Fy);var Ly=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mQ=f0("chevron-down",Ly);var My=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],uQ=f0("chevron-right",My);var Ny=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]],_6=f0("clipboard-check",Ny);var Ry=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],C8=f0("clipboard-list",Ry);var _y=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],fQ=f0("clock",_y);var Oy=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],pQ=f0("code",Oy);var Ay=[["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"}]],lQ=f0("copy",Ay);var Iy=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],dQ=f0("eye-off",Iy);var Ty=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],iQ=f0("eye",Ty);var Vy=[["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"}]],O4=f0("file-text",Vy);var Py=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],cQ=f0("folder-open",Py);var wy=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],zX=f0("folder",wy);var Cy=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],N7=f0("funnel",Cy);var jy=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],rQ=f0("layout-dashboard",jy);var Dy=[["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"}]],j8=f0("list-todo",Dy);var Sy=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],aQ=f0("moon",Sy);var Ey=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],R7=f0("panel-left",Ey);var by=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],nQ=f0("pause",by);var yy=[["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"}]],D8=f0("pencil",yy);var gy=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],FX=f0("play",gy);var hy=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],X4=f0("plus",hy);var vy=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M7 12h.01",key:"eqddd0"}]],_7=f0("rectangle-ellipsis",vy);var xy=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],S8=f0("search",xy);var ky=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],E8=f0("settings",ky);var my=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],sQ=f0("square",my);var uy=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],oQ=f0("sun",uy);var fy=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],F2=f0("text-align-start",fy);var py=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],m9=f0("trash-2",py);var ly=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],O6=f0("user",ly);var dy=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],L2=f0("x",dy);var j1=J0(k0(),1);var h5=J0(k0(),1);var eA=J0(k0(),1);function tA(Q,$){if(typeof Q==="function")return Q($);else if(Q!==null&&Q!==void 0)Q.current=$}function M2(...Q){return($)=>{let Y=!1,G=Q.map((K)=>{let H=tA(K,$);if(!Y&&typeof H=="function")Y=!0;return H});if(Y)return()=>{for(let K=0;K<G.length;K++){let H=G[K];if(typeof H=="function")H();else tA(Q[K],null)}}}}function W4(...Q){return eA.useCallback(M2(...Q),Q)}var Kq=J0(l5(),1),cy=Symbol.for("react.lazy"),Wq=h5[" use ".trim().toString()];function ry(Q){return typeof Q==="object"&&Q!==null&&"then"in Q}function ZI(Q){return Q!=null&&typeof Q==="object"&&"$$typeof"in Q&&Q.$$typeof===cy&&"_payload"in Q&&ry(Q._payload)}function tQ(Q){let $=ay(Q),Y=h5.forwardRef((G,K)=>{let{children:H,...B}=G;if(ZI(H)&&typeof Wq==="function")H=Wq(H._payload);let z=h5.Children.toArray(H),F=z.find(sy);if(F){let R=F.props.children,N=z.map((L)=>{if(L===F){if(h5.Children.count(R)>1)return h5.Children.only(null);return h5.isValidElement(R)?R.props.children:null}else return L});return Kq.jsx($,{...B,ref:K,children:h5.isValidElement(R)?h5.cloneElement(R,void 0,N):null})}return Kq.jsx($,{...B,ref:K,children:H})});return Y.displayName=`${Q}.Slot`,Y}var O7=tQ("Slot");function ay(Q){let $=h5.forwardRef((Y,G)=>{let{children:K,...H}=Y;if(ZI(K)&&typeof Wq==="function")K=Wq(K._payload);if(h5.isValidElement(K)){let B=ty(K),z=oy(H,K.props);if(K.type!==h5.Fragment)z.ref=G?M2(G,B):B;return h5.cloneElement(K,z)}return h5.Children.count(K)>1?h5.Children.only(null):null});return $.displayName=`${Q}.SlotClone`,$}var ny=Symbol("radix.slottable");function sy(Q){return h5.isValidElement(Q)&&typeof Q.type==="function"&&"__radixId"in Q.type&&Q.type.__radixId===ny}function oy(Q,$){let Y={...$};for(let G in $){let K=Q[G],H=$[G];if(/^on[A-Z]/.test(G)){if(K&&H)Y[G]=(...z)=>{let F=H(...z);return K(...z),F};else if(K)Y[G]=K}else if(G==="style")Y[G]={...K,...H};else if(G==="className")Y[G]=[K,H].filter(Boolean).join(" ")}return{...Q,...Y}}function ty(Q){let $=Object.getOwnPropertyDescriptor(Q.props,"ref")?.get,Y=$&&"isReactWarning"in $&&$.isReactWarning;if(Y)return Q.ref;if($=Object.getOwnPropertyDescriptor(Q,"ref")?.get,Y=$&&"isReactWarning"in $&&$.isReactWarning,Y)return Q.props.ref;return Q.props.ref||Q.ref}function XI(Q){var $,Y,G="";if(typeof Q=="string"||typeof Q=="number")G+=Q;else if(typeof Q=="object")if(Array.isArray(Q)){var K=Q.length;for($=0;$<K;$++)Q[$]&&(Y=XI(Q[$]))&&(G&&(G+=" "),G+=Y)}else for(Y in Q)Q[Y]&&(G&&(G+=" "),G+=Y);return G}function Hq(){for(var Q,$,Y=0,G="",K=arguments.length;Y<K;Y++)(Q=arguments[Y])&&($=XI(Q))&&(G&&(G+=" "),G+=$);return G}var QI=(Q)=>typeof Q==="boolean"?`${Q}`:Q===0?"0":Q,JI=Hq,LX=(Q,$)=>(Y)=>{var G;if(($===null||$===void 0?void 0:$.variants)==null)return JI(Q,Y===null||Y===void 0?void 0:Y.class,Y===null||Y===void 0?void 0:Y.className);let{variants:K,defaultVariants:H}=$,B=Object.keys(K).map((R)=>{let N=Y===null||Y===void 0?void 0:Y[R],L=H===null||H===void 0?void 0:H[R];if(N===null)return null;let O=QI(N)||QI(L);return K[R][O]}),z=Y&&Object.entries(Y).reduce((R,N)=>{let[L,O]=N;if(O===void 0)return R;return R[L]=O,R},{}),F=$===null||$===void 0?void 0:(G=$.compoundVariants)===null||G===void 0?void 0:G.reduce((R,N)=>{let{class:L,className:O,...A}=N;return Object.entries(A).every((C)=>{let[D,b]=C;return Array.isArray(b)?b.includes({...H,...z}[D]):{...H,...z}[D]===b})?[...R,L,O]:R},[]);return JI(Q,B,F,Y===null||Y===void 0?void 0:Y.class,Y===null||Y===void 0?void 0:Y.className)};var Bq=J0(k0(),1),DB=768;function Uq(){let[Q,$]=Bq.useState(void 0);return Bq.useEffect(()=>{let Y=window.matchMedia(`(max-width: ${DB-1}px)`),G=()=>{$(window.innerWidth<DB)};return Y.addEventListener("change",G),$(window.innerWidth<DB),()=>Y.removeEventListener("change",G)},[]),!!Q}var ey=(Q,$)=>{let Y=Array(Q.length+$.length);for(let G=0;G<Q.length;G++)Y[G]=Q[G];for(let G=0;G<$.length;G++)Y[Q.length+G]=$[G];return Y},Zg=(Q,$)=>({classGroupId:Q,validator:$}),KI=(Q=new Map,$=null,Y)=>({nextPart:Q,validators:$,classGroupId:Y});var $I=[];var Xg=(Q)=>{let $=Jg(Q),{conflictingClassGroups:Y,conflictingClassGroupModifiers:G}=Q;return{getClassGroupId:(B)=>{if(B.startsWith("[")&&B.endsWith("]"))return Qg(B);let z=B.split("-"),F=z[0]===""&&z.length>1?1:0;return WI(z,F,$)},getConflictingClassGroupIds:(B,z)=>{if(z){let F=G[B],R=Y[B];if(F){if(R)return ey(R,F);return F}return R||$I}return Y[B]||$I}}},WI=(Q,$,Y)=>{if(Q.length-$===0)return Y.classGroupId;let K=Q[$],H=Y.nextPart.get(K);if(H){let R=WI(Q,$+1,H);if(R)return R}let B=Y.validators;if(B===null)return;let z=$===0?Q.join("-"):Q.slice($).join("-"),F=B.length;for(let R=0;R<F;R++){let N=B[R];if(N.validator(z))return N.classGroupId}return},Qg=(Q)=>Q.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let $=Q.slice(1,-1),Y=$.indexOf(":"),G=$.slice(0,Y);return G?"arbitrary.."+G:void 0})(),Jg=(Q)=>{let{theme:$,classGroups:Y}=Q;return $g(Y,$)},$g=(Q,$)=>{let Y=KI();for(let G in Q){let K=Q[G];bB(K,Y,G,$)}return Y},bB=(Q,$,Y,G)=>{let K=Q.length;for(let H=0;H<K;H++){let B=Q[H];Yg(B,$,Y,G)}},Yg=(Q,$,Y,G)=>{if(typeof Q==="string"){qg(Q,$,Y);return}if(typeof Q==="function"){Gg(Q,$,Y,G);return}Kg(Q,$,Y,G)},qg=(Q,$,Y)=>{let G=Q===""?$:HI($,Q);G.classGroupId=Y},Gg=(Q,$,Y,G)=>{if(Wg(Q)){bB(Q(G),$,Y,G);return}if($.validators===null)$.validators=[];$.validators.push(Zg(Y,Q))},Kg=(Q,$,Y,G)=>{let K=Object.entries(Q),H=K.length;for(let B=0;B<H;B++){let[z,F]=K[B];bB(F,HI($,z),Y,G)}},HI=(Q,$)=>{let Y=Q,G=$.split("-"),K=G.length;for(let H=0;H<K;H++){let B=G[H],z=Y.nextPart.get(B);if(!z)z=KI(),Y.nextPart.set(B,z);Y=z}return Y},Wg=(Q)=>("isThemeGetter"in Q)&&Q.isThemeGetter===!0,Hg=(Q)=>{if(Q<1)return{get:()=>{return},set:()=>{}};let $=0,Y=Object.create(null),G=Object.create(null),K=(H,B)=>{if(Y[H]=B,$++,$>Q)$=0,G=Y,Y=Object.create(null)};return{get(H){let B=Y[H];if(B!==void 0)return B;if((B=G[H])!==void 0)return K(H,B),B},set(H,B){if(H in Y)Y[H]=B;else K(H,B)}}};var Bg=[],YI=(Q,$,Y,G,K)=>({modifiers:Q,hasImportantModifier:$,baseClassName:Y,maybePostfixModifierPosition:G,isExternal:K}),Ug=(Q)=>{let{prefix:$,experimentalParseClassName:Y}=Q,G=(K)=>{let H=[],B=0,z=0,F=0,R,N=K.length;for(let D=0;D<N;D++){let b=K[D];if(B===0&&z===0){if(b===":"){H.push(K.slice(F,D)),F=D+1;continue}if(b==="/"){R=D;continue}}if(b==="[")B++;else if(b==="]")B--;else if(b==="(")z++;else if(b===")")z--}let L=H.length===0?K:K.slice(F),O=L,A=!1;if(L.endsWith("!"))O=L.slice(0,-1),A=!0;else if(L.startsWith("!"))O=L.slice(1),A=!0;let C=R&&R>F?R-F:void 0;return YI(H,A,O,C)};if($){let K=$+":",H=G;G=(B)=>B.startsWith(K)?H(B.slice(K.length)):YI(Bg,!1,B,void 0,!0)}if(Y){let K=G;G=(H)=>Y({className:H,parseClassName:K})}return G},zg=(Q)=>{let $=new Map;return Q.orderSensitiveModifiers.forEach((Y,G)=>{$.set(Y,1e6+G)}),(Y)=>{let G=[],K=[];for(let H=0;H<Y.length;H++){let B=Y[H],z=B[0]==="[",F=$.has(B);if(z||F){if(K.length>0)K.sort(),G.push(...K),K=[];G.push(B)}else K.push(B)}if(K.length>0)K.sort(),G.push(...K);return G}},Fg=(Q)=>({cache:Hg(Q.cacheSize),parseClassName:Ug(Q),sortModifiers:zg(Q),...Xg(Q)}),Lg=/\s+/,Mg=(Q,$)=>{let{parseClassName:Y,getClassGroupId:G,getConflictingClassGroupIds:K,sortModifiers:H}=$,B=[],z=Q.trim().split(Lg),F="";for(let R=z.length-1;R>=0;R-=1){let N=z[R],{isExternal:L,modifiers:O,hasImportantModifier:A,baseClassName:C,maybePostfixModifierPosition:D}=Y(N);if(L){F=N+(F.length>0?" "+F:F);continue}let b=!!D,y=G(b?C.substring(0,D):C);if(!y){if(!b){F=N+(F.length>0?" "+F:F);continue}if(y=G(C),!y){F=N+(F.length>0?" "+F:F);continue}b=!1}let k=O.length===0?"":O.length===1?O[0]:H(O).join(":"),f=A?k+"!":k,a=f+y;if(B.indexOf(a)>-1)continue;B.push(a);let s=K(y,b);for(let g=0;g<s.length;++g){let c=s[g];B.push(f+c)}F=N+(F.length>0?" "+F:F)}return F},Ng=(...Q)=>{let $=0,Y,G,K="";while($<Q.length)if(Y=Q[$++]){if(G=BI(Y))K&&(K+=" "),K+=G}return K},BI=(Q)=>{if(typeof Q==="string")return Q;let $,Y="";for(let G=0;G<Q.length;G++)if(Q[G]){if($=BI(Q[G]))Y&&(Y+=" "),Y+=$}return Y},Rg=(Q,...$)=>{let Y,G,K,H,B=(F)=>{let R=$.reduce((N,L)=>L(N),Q());return Y=Fg(R),G=Y.cache.get,K=Y.cache.set,H=z,z(F)},z=(F)=>{let R=G(F);if(R)return R;let N=Mg(F,Y);return K(F,N),N};return H=B,(...F)=>H(Ng(...F))},_g=[],d5=(Q)=>{let $=(Y)=>Y[Q]||_g;return $.isThemeGetter=!0,$},UI=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zI=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Og=/^\d+\/\d+$/,Ag=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ig=/\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$/,Tg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Vg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,MX=(Q)=>Og.test(Q),C1=(Q)=>!!Q&&!Number.isNaN(Number(Q)),A7=(Q)=>!!Q&&Number.isInteger(Number(Q)),SB=(Q)=>Q.endsWith("%")&&C1(Q.slice(0,-1)),A6=(Q)=>Ag.test(Q),wg=()=>!0,Cg=(Q)=>Ig.test(Q)&&!Tg.test(Q),FI=()=>!1,jg=(Q)=>Vg.test(Q),Dg=(Q)=>Pg.test(Q),Sg=(Q)=>!p0(Q)&&!l0(Q),Eg=(Q)=>NX(Q,NI,FI),p0=(Q)=>UI.test(Q),y8=(Q)=>NX(Q,RI,Cg),EB=(Q)=>NX(Q,vg,C1),qI=(Q)=>NX(Q,LI,FI),bg=(Q)=>NX(Q,MI,Dg),zq=(Q)=>NX(Q,_I,jg),l0=(Q)=>zI.test(Q),eQ=(Q)=>RX(Q,RI),yg=(Q)=>RX(Q,xg),GI=(Q)=>RX(Q,LI),gg=(Q)=>RX(Q,NI),hg=(Q)=>RX(Q,MI),Fq=(Q)=>RX(Q,_I,!0),NX=(Q,$,Y)=>{let G=UI.exec(Q);if(G){if(G[1])return $(G[1]);return Y(G[2])}return!1},RX=(Q,$,Y=!1)=>{let G=zI.exec(Q);if(G){if(G[1])return $(G[1]);return Y}return!1},LI=(Q)=>Q==="position"||Q==="percentage",MI=(Q)=>Q==="image"||Q==="url",NI=(Q)=>Q==="length"||Q==="size"||Q==="bg-size",RI=(Q)=>Q==="length",vg=(Q)=>Q==="number",xg=(Q)=>Q==="family-name",_I=(Q)=>Q==="shadow";var kg=()=>{let Q=d5("color"),$=d5("font"),Y=d5("text"),G=d5("font-weight"),K=d5("tracking"),H=d5("leading"),B=d5("breakpoint"),z=d5("container"),F=d5("spacing"),R=d5("radius"),N=d5("shadow"),L=d5("inset-shadow"),O=d5("text-shadow"),A=d5("drop-shadow"),C=d5("blur"),D=d5("perspective"),b=d5("aspect"),y=d5("ease"),k=d5("animate"),f=()=>["auto","avoid","all","avoid-page","page","left","right","column"],a=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],s=()=>[...a(),l0,p0],g=()=>["auto","hidden","clip","visible","scroll"],c=()=>["auto","contain","none"],h=()=>[l0,p0,F],Z0=()=>[MX,"full","auto",...h()],E=()=>[A7,"none","subgrid",l0,p0],_0=()=>["auto",{span:["full",A7,l0,p0]},A7,l0,p0],t=()=>[A7,"auto",l0,p0],n=()=>["auto","min","max","fr",l0,p0],z0=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],o=()=>["start","end","center","stretch","center-safe","end-safe"],H0=()=>["auto",...h()],G0=()=>[MX,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...h()],e=()=>[Q,l0,p0],U0=()=>[...a(),GI,qI,{position:[l0,p0]}],T=()=>["no-repeat",{repeat:["","x","y","space","round"]}],B0=()=>["auto","cover","contain",gg,Eg,{size:[l0,p0]}],r=()=>[SB,eQ,y8],S=()=>["","none","full",R,l0,p0],L0=()=>["",C1,eQ,y8],A0=()=>["solid","dashed","dotted","double"],V0=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C0=()=>[C1,SB,GI,qI],u0=()=>["","none",C,l0,p0],$1=()=>["none",C1,l0,p0],v1=()=>["none",C1,l0,p0],R0=()=>[C1,l0,p0],h0=()=>[MX,"full",...h()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[A6],breakpoint:[A6],color:[wg],container:[A6],"drop-shadow":[A6],ease:["in","out","in-out"],font:[Sg],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[A6],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[A6],shadow:[A6],spacing:["px",C1],text:[A6],"text-shadow":[A6],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",MX,p0,l0,b]}],container:["container"],columns:[{columns:[C1,p0,l0,z]}],"break-after":[{"break-after":f()}],"break-before":[{"break-before":f()}],"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:s()}],overflow:[{overflow:g()}],"overflow-x":[{"overflow-x":g()}],"overflow-y":[{"overflow-y":g()}],overscroll:[{overscroll:c()}],"overscroll-x":[{"overscroll-x":c()}],"overscroll-y":[{"overscroll-y":c()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z0()}],"inset-x":[{"inset-x":Z0()}],"inset-y":[{"inset-y":Z0()}],start:[{start:Z0()}],end:[{end:Z0()}],top:[{top:Z0()}],right:[{right:Z0()}],bottom:[{bottom:Z0()}],left:[{left:Z0()}],visibility:["visible","invisible","collapse"],z:[{z:[A7,"auto",l0,p0]}],basis:[{basis:[MX,"full","auto",z,...h()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[C1,MX,"auto","initial","none",p0]}],grow:[{grow:["",C1,l0,p0]}],shrink:[{shrink:["",C1,l0,p0]}],order:[{order:[A7,"first","last","none",l0,p0]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:_0()}],"col-start":[{"col-start":t()}],"col-end":[{"col-end":t()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:_0()}],"row-start":[{"row-start":t()}],"row-end":[{"row-end":t()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":n()}],"auto-rows":[{"auto-rows":n()}],gap:[{gap:h()}],"gap-x":[{"gap-x":h()}],"gap-y":[{"gap-y":h()}],"justify-content":[{justify:[...z0(),"normal"]}],"justify-items":[{"justify-items":[...o(),"normal"]}],"justify-self":[{"justify-self":["auto",...o()]}],"align-content":[{content:["normal",...z0()]}],"align-items":[{items:[...o(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...o(),{baseline:["","last"]}]}],"place-content":[{"place-content":z0()}],"place-items":[{"place-items":[...o(),"baseline"]}],"place-self":[{"place-self":["auto",...o()]}],p:[{p:h()}],px:[{px:h()}],py:[{py:h()}],ps:[{ps:h()}],pe:[{pe:h()}],pt:[{pt:h()}],pr:[{pr:h()}],pb:[{pb:h()}],pl:[{pl:h()}],m:[{m:H0()}],mx:[{mx:H0()}],my:[{my:H0()}],ms:[{ms:H0()}],me:[{me:H0()}],mt:[{mt:H0()}],mr:[{mr:H0()}],mb:[{mb:H0()}],ml:[{ml:H0()}],"space-x":[{"space-x":h()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":h()}],"space-y-reverse":["space-y-reverse"],size:[{size:G0()}],w:[{w:[z,"screen",...G0()]}],"min-w":[{"min-w":[z,"screen","none",...G0()]}],"max-w":[{"max-w":[z,"screen","none","prose",{screen:[B]},...G0()]}],h:[{h:["screen","lh",...G0()]}],"min-h":[{"min-h":["screen","lh","none",...G0()]}],"max-h":[{"max-h":["screen","lh",...G0()]}],"font-size":[{text:["base",Y,eQ,y8]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[G,l0,EB]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",SB,p0]}],"font-family":[{font:[yg,p0,$]}],"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:[K,l0,p0]}],"line-clamp":[{"line-clamp":[C1,"none",l0,EB]}],leading:[{leading:[H,...h()]}],"list-image":[{"list-image":["none",l0,p0]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",l0,p0]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:e()}],"text-color":[{text:e()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A0(),"wavy"]}],"text-decoration-thickness":[{decoration:[C1,"from-font","auto",l0,y8]}],"text-decoration-color":[{decoration:e()}],"underline-offset":[{"underline-offset":[C1,"auto",l0,p0]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l0,p0]}],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",l0,p0]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U0()}],"bg-repeat":[{bg:T()}],"bg-size":[{bg:B0()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},A7,l0,p0],radial:["",l0,p0],conic:[A7,l0,p0]},hg,bg]}],"bg-color":[{bg:e()}],"gradient-from-pos":[{from:r()}],"gradient-via-pos":[{via:r()}],"gradient-to-pos":[{to:r()}],"gradient-from":[{from:e()}],"gradient-via":[{via:e()}],"gradient-to":[{to:e()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:L0()}],"border-w-x":[{"border-x":L0()}],"border-w-y":[{"border-y":L0()}],"border-w-s":[{"border-s":L0()}],"border-w-e":[{"border-e":L0()}],"border-w-t":[{"border-t":L0()}],"border-w-r":[{"border-r":L0()}],"border-w-b":[{"border-b":L0()}],"border-w-l":[{"border-l":L0()}],"divide-x":[{"divide-x":L0()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L0()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...A0(),"hidden","none"]}],"divide-style":[{divide:[...A0(),"hidden","none"]}],"border-color":[{border:e()}],"border-color-x":[{"border-x":e()}],"border-color-y":[{"border-y":e()}],"border-color-s":[{"border-s":e()}],"border-color-e":[{"border-e":e()}],"border-color-t":[{"border-t":e()}],"border-color-r":[{"border-r":e()}],"border-color-b":[{"border-b":e()}],"border-color-l":[{"border-l":e()}],"divide-color":[{divide:e()}],"outline-style":[{outline:[...A0(),"none","hidden"]}],"outline-offset":[{"outline-offset":[C1,l0,p0]}],"outline-w":[{outline:["",C1,eQ,y8]}],"outline-color":[{outline:e()}],shadow:[{shadow:["","none",N,Fq,zq]}],"shadow-color":[{shadow:e()}],"inset-shadow":[{"inset-shadow":["none",L,Fq,zq]}],"inset-shadow-color":[{"inset-shadow":e()}],"ring-w":[{ring:L0()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:e()}],"ring-offset-w":[{"ring-offset":[C1,y8]}],"ring-offset-color":[{"ring-offset":e()}],"inset-ring-w":[{"inset-ring":L0()}],"inset-ring-color":[{"inset-ring":e()}],"text-shadow":[{"text-shadow":["none",O,Fq,zq]}],"text-shadow-color":[{"text-shadow":e()}],opacity:[{opacity:[C1,l0,p0]}],"mix-blend":[{"mix-blend":[...V0(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":V0()}],"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":[C1]}],"mask-image-linear-from-pos":[{"mask-linear-from":C0()}],"mask-image-linear-to-pos":[{"mask-linear-to":C0()}],"mask-image-linear-from-color":[{"mask-linear-from":e()}],"mask-image-linear-to-color":[{"mask-linear-to":e()}],"mask-image-t-from-pos":[{"mask-t-from":C0()}],"mask-image-t-to-pos":[{"mask-t-to":C0()}],"mask-image-t-from-color":[{"mask-t-from":e()}],"mask-image-t-to-color":[{"mask-t-to":e()}],"mask-image-r-from-pos":[{"mask-r-from":C0()}],"mask-image-r-to-pos":[{"mask-r-to":C0()}],"mask-image-r-from-color":[{"mask-r-from":e()}],"mask-image-r-to-color":[{"mask-r-to":e()}],"mask-image-b-from-pos":[{"mask-b-from":C0()}],"mask-image-b-to-pos":[{"mask-b-to":C0()}],"mask-image-b-from-color":[{"mask-b-from":e()}],"mask-image-b-to-color":[{"mask-b-to":e()}],"mask-image-l-from-pos":[{"mask-l-from":C0()}],"mask-image-l-to-pos":[{"mask-l-to":C0()}],"mask-image-l-from-color":[{"mask-l-from":e()}],"mask-image-l-to-color":[{"mask-l-to":e()}],"mask-image-x-from-pos":[{"mask-x-from":C0()}],"mask-image-x-to-pos":[{"mask-x-to":C0()}],"mask-image-x-from-color":[{"mask-x-from":e()}],"mask-image-x-to-color":[{"mask-x-to":e()}],"mask-image-y-from-pos":[{"mask-y-from":C0()}],"mask-image-y-to-pos":[{"mask-y-to":C0()}],"mask-image-y-from-color":[{"mask-y-from":e()}],"mask-image-y-to-color":[{"mask-y-to":e()}],"mask-image-radial":[{"mask-radial":[l0,p0]}],"mask-image-radial-from-pos":[{"mask-radial-from":C0()}],"mask-image-radial-to-pos":[{"mask-radial-to":C0()}],"mask-image-radial-from-color":[{"mask-radial-from":e()}],"mask-image-radial-to-color":[{"mask-radial-to":e()}],"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":a()}],"mask-image-conic-pos":[{"mask-conic":[C1]}],"mask-image-conic-from-pos":[{"mask-conic-from":C0()}],"mask-image-conic-to-pos":[{"mask-conic-to":C0()}],"mask-image-conic-from-color":[{"mask-conic-from":e()}],"mask-image-conic-to-color":[{"mask-conic-to":e()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U0()}],"mask-repeat":[{mask:T()}],"mask-size":[{mask:B0()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",l0,p0]}],filter:[{filter:["","none",l0,p0]}],blur:[{blur:u0()}],brightness:[{brightness:[C1,l0,p0]}],contrast:[{contrast:[C1,l0,p0]}],"drop-shadow":[{"drop-shadow":["","none",A,Fq,zq]}],"drop-shadow-color":[{"drop-shadow":e()}],grayscale:[{grayscale:["",C1,l0,p0]}],"hue-rotate":[{"hue-rotate":[C1,l0,p0]}],invert:[{invert:["",C1,l0,p0]}],saturate:[{saturate:[C1,l0,p0]}],sepia:[{sepia:["",C1,l0,p0]}],"backdrop-filter":[{"backdrop-filter":["","none",l0,p0]}],"backdrop-blur":[{"backdrop-blur":u0()}],"backdrop-brightness":[{"backdrop-brightness":[C1,l0,p0]}],"backdrop-contrast":[{"backdrop-contrast":[C1,l0,p0]}],"backdrop-grayscale":[{"backdrop-grayscale":["",C1,l0,p0]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C1,l0,p0]}],"backdrop-invert":[{"backdrop-invert":["",C1,l0,p0]}],"backdrop-opacity":[{"backdrop-opacity":[C1,l0,p0]}],"backdrop-saturate":[{"backdrop-saturate":[C1,l0,p0]}],"backdrop-sepia":[{"backdrop-sepia":["",C1,l0,p0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":h()}],"border-spacing-x":[{"border-spacing-x":h()}],"border-spacing-y":[{"border-spacing-y":h()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",l0,p0]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[C1,"initial",l0,p0]}],ease:[{ease:["linear","initial",y,l0,p0]}],delay:[{delay:[C1,l0,p0]}],animate:[{animate:["none",k,l0,p0]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[D,l0,p0]}],"perspective-origin":[{"perspective-origin":s()}],rotate:[{rotate:$1()}],"rotate-x":[{"rotate-x":$1()}],"rotate-y":[{"rotate-y":$1()}],"rotate-z":[{"rotate-z":$1()}],scale:[{scale:v1()}],"scale-x":[{"scale-x":v1()}],"scale-y":[{"scale-y":v1()}],"scale-z":[{"scale-z":v1()}],"scale-3d":["scale-3d"],skew:[{skew:R0()}],"skew-x":[{"skew-x":R0()}],"skew-y":[{"skew-y":R0()}],transform:[{transform:[l0,p0,"","none","gpu","cpu"]}],"transform-origin":[{origin:s()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:h0()}],"translate-x":[{"translate-x":h0()}],"translate-y":[{"translate-y":h0()}],"translate-z":[{"translate-z":h0()}],"translate-none":["translate-none"],accent:[{accent:e()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:e()}],"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",l0,p0]}],"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":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"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",l0,p0]}],fill:[{fill:["none",...e()]}],"stroke-w":[{stroke:[C1,eQ,y8,EB]}],stroke:[{stroke:["none",...e()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]}};var OI=Rg(kg);function a0(...Q){return OI(Hq(Q))}var AI=J0(k0(),1);var II=J0(Q1(),1),ug=LX("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),yB=AI.forwardRef(({className:Q,variant:$,size:Y,asChild:G=!1,...K},H)=>{return II.jsxDEV(G?O7:"button",{className:a0(ug({variant:$,size:Y,className:Q})),ref:H,...K},void 0,!1,void 0,this)});yB.displayName="Button";var TI=J0(k0(),1);var VI=J0(Q1(),1),gB=TI.forwardRef(({className:Q,type:$,...Y},G)=>{return VI.jsxDEV("input",{type:$,className:a0("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",Q),ref:G,...Y},void 0,!1,void 0,this)});gB.displayName="Input";var bI=J0(k0(),1);var DI=J0(k0(),1);var PI=J0(k0(),1),fg=J0(V8(),1);var wI=J0(l5(),1),pg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],CI=pg.reduce((Q,$)=>{let Y=tQ(`Primitive.${$}`),G=PI.forwardRef((K,H)=>{let{asChild:B,...z}=K,F=B?Y:$;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return wI.jsx(F,{...z,ref:H})});return G.displayName=`Primitive.${$}`,{...Q,[$]:G}},{});var SI=J0(l5(),1),lg="Separator",jI="horizontal",dg=["horizontal","vertical"],EI=DI.forwardRef((Q,$)=>{let{decorative:Y,orientation:G=jI,...K}=Q,H=ig(G)?G:jI,z=Y?{role:"none"}:{"aria-orientation":H==="vertical"?H:void 0,role:"separator"};return SI.jsx(CI.div,{"data-orientation":H,...z,...K,ref:$})});EI.displayName=lg;function ig(Q){return dg.includes(Q)}var hB=EI;var yI=J0(Q1(),1),ZJ=bI.forwardRef(({className:Q,orientation:$="horizontal",decorative:Y=!0,...G},K)=>yI.jsxDEV(hB,{ref:K,decorative:Y,orientation:$,className:a0("shrink-0 bg-border",$==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",Q),...G},void 0,!1,void 0,this));ZJ.displayName=hB.displayName;var YJ=J0(k0(),1);var q5=J0(k0(),1);var Ua=!!(typeof window<"u"&&window.document&&window.document.createElement);function H4(Q,$,{checkForDefaultPrevented:Y=!0}={}){return function(K){if(Q?.(K),Y===!1||!K.defaultPrevented)return $?.(K)}}var g2=J0(k0(),1),vB=J0(l5(),1);function gI(Q,$){let Y=g2.createContext($),G=(H)=>{let{children:B,...z}=H,F=g2.useMemo(()=>z,Object.values(z));return vB.jsx(Y.Provider,{value:F,children:B})};G.displayName=Q+"Provider";function K(H){let B=g2.useContext(Y);if(B)return B;if($!==void 0)return $;throw Error(`\`${H}\` must be used within \`${Q}\``)}return[G,K]}function _X(Q,$=[]){let Y=[];function G(H,B){let z=g2.createContext(B),F=Y.length;Y=[...Y,B];let R=(L)=>{let{scope:O,children:A,...C}=L,D=O?.[Q]?.[F]||z,b=g2.useMemo(()=>C,Object.values(C));return vB.jsx(D.Provider,{value:b,children:A})};R.displayName=H+"Provider";function N(L,O){let A=O?.[Q]?.[F]||z,C=g2.useContext(A);if(C)return C;if(B!==void 0)return B;throw Error(`\`${L}\` must be used within \`${H}\``)}return[R,N]}let K=()=>{let H=Y.map((B)=>{return g2.createContext(B)});return function(z){let F=z?.[Q]||H;return g2.useMemo(()=>({[`__scope${Q}`]:{...z,[Q]:F}}),[z,F])}};return K.scopeName=Q,[G,rg(K,...$)]}function rg(...Q){let $=Q[0];if(Q.length===1)return $;let Y=()=>{let G=Q.map((K)=>({useScope:K(),scopeName:K.scopeName}));return function(H){let B=G.reduce((z,{useScope:F,scopeName:R})=>{let L=F(H)[`__scope${R}`];return{...z,...L}},{});return g2.useMemo(()=>({[`__scope${$.scopeName}`]:B}),[B])}};return Y.scopeName=$.scopeName,Y}var xB=J0(k0(),1);var hI=J0(k0(),1),c4=globalThis?.document?hI.useLayoutEffect:()=>{};var ag=xB[" useId ".trim().toString()]||(()=>{return}),ng=0;function N2(Q){let[$,Y]=xB.useState(ag());return c4(()=>{if(!Q)Y((G)=>G??String(ng++))},[Q]),Q||($?`radix-${$}`:"")}var h2=J0(k0(),1);var Mq=J0(k0(),1);var sg=h2[" useInsertionEffect ".trim().toString()]||c4;function Lq({prop:Q,defaultProp:$,onChange:Y=()=>{},caller:G}){let[K,H,B]=og({defaultProp:$,onChange:Y}),z=Q!==void 0,F=z?Q:K;{let N=h2.useRef(Q!==void 0);h2.useEffect(()=>{let L=N.current;if(L!==z)console.warn(`${G} is changing from ${L?"controlled":"uncontrolled"} to ${z?"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.`);N.current=z},[z,G])}let R=h2.useCallback((N)=>{if(z){let L=tg(N)?N(Q):N;if(L!==Q)B.current?.(L)}else H(N)},[z,Q,H,B]);return[F,R]}function og({defaultProp:Q,onChange:$}){let[Y,G]=h2.useState(Q),K=h2.useRef(Y),H=h2.useRef($);return sg(()=>{H.current=$},[$]),h2.useEffect(()=>{if(K.current!==Y)H.current?.(Y),K.current=Y},[Y,K]),[Y,G,H]}function tg(Q){return typeof Q==="function"}var _a=Symbol("RADIX:SYNC_STATE");var N5=J0(k0(),1);var xI=J0(k0(),1),kI=J0(V8(),1);var i5=J0(k0(),1);var Nq=J0(l5(),1);function vI(Q){let $=eg(Q),Y=i5.forwardRef((G,K)=>{let{children:H,...B}=G,z=i5.Children.toArray(H),F=z.find(Xh);if(F){let R=F.props.children,N=z.map((L)=>{if(L===F){if(i5.Children.count(R)>1)return i5.Children.only(null);return i5.isValidElement(R)?R.props.children:null}else return L});return Nq.jsx($,{...B,ref:K,children:i5.isValidElement(R)?i5.cloneElement(R,void 0,N):null})}return Nq.jsx($,{...B,ref:K,children:H})});return Y.displayName=`${Q}.Slot`,Y}function eg(Q){let $=i5.forwardRef((Y,G)=>{let{children:K,...H}=Y;if(i5.isValidElement(K)){let B=Jh(K),z=Qh(H,K.props);if(K.type!==i5.Fragment)z.ref=G?M2(G,B):B;return i5.cloneElement(K,z)}return i5.Children.count(K)>1?i5.Children.only(null):null});return $.displayName=`${Q}.SlotClone`,$}var Zh=Symbol("radix.slottable");function Xh(Q){return i5.isValidElement(Q)&&typeof Q.type==="function"&&"__radixId"in Q.type&&Q.type.__radixId===Zh}function Qh(Q,$){let Y={...$};for(let G in $){let K=Q[G],H=$[G];if(/^on[A-Z]/.test(G)){if(K&&H)Y[G]=(...z)=>{let F=H(...z);return K(...z),F};else if(K)Y[G]=K}else if(G==="style")Y[G]={...K,...H};else if(G==="className")Y[G]=[K,H].filter(Boolean).join(" ")}return{...Q,...Y}}function Jh(Q){let $=Object.getOwnPropertyDescriptor(Q.props,"ref")?.get,Y=$&&"isReactWarning"in $&&$.isReactWarning;if(Y)return Q.ref;if($=Object.getOwnPropertyDescriptor(Q,"ref")?.get,Y=$&&"isReactWarning"in $&&$.isReactWarning,Y)return Q.props.ref;return Q.props.ref||Q.ref}var mI=J0(l5(),1),$h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],A5=$h.reduce((Q,$)=>{let Y=vI(`Primitive.${$}`),G=xI.forwardRef((K,H)=>{let{asChild:B,...z}=K,F=B?Y:$;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return mI.jsx(F,{...z,ref:H})});return G.displayName=`Primitive.${$}`,{...Q,[$]:G}},{});function uI(Q,$){if(Q)kI.flushSync(()=>Q.dispatchEvent($))}var OX=J0(k0(),1);function u9(Q){let $=OX.useRef(Q);return OX.useEffect(()=>{$.current=Q}),OX.useMemo(()=>(...Y)=>$.current?.(...Y),[])}var fI=J0(k0(),1);function pI(Q,$=globalThis?.document){let Y=u9(Q);fI.useEffect(()=>{let G=(K)=>{if(K.key==="Escape")Y(K)};return $.addEventListener("keydown",G,{capture:!0}),()=>$.removeEventListener("keydown",G,{capture:!0})},[Y,$])}var mB=J0(l5(),1),Yh="DismissableLayer",kB="dismissableLayer.update",qh="dismissableLayer.pointerDownOutside",Gh="dismissableLayer.focusOutside",lI,iI=N5.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),XJ=N5.forwardRef((Q,$)=>{let{disableOutsidePointerEvents:Y=!1,onEscapeKeyDown:G,onPointerDownOutside:K,onFocusOutside:H,onInteractOutside:B,onDismiss:z,...F}=Q,R=N5.useContext(iI),[N,L]=N5.useState(null),O=N?.ownerDocument??globalThis?.document,[,A]=N5.useState({}),C=W4($,(c)=>L(c)),D=Array.from(R.layers),[b]=[...R.layersWithOutsidePointerEventsDisabled].slice(-1),y=D.indexOf(b),k=N?D.indexOf(N):-1,f=R.layersWithOutsidePointerEventsDisabled.size>0,a=k>=y,s=Hh((c)=>{let h=c.target,Z0=[...R.branches].some((E)=>E.contains(h));if(!a||Z0)return;if(K?.(c),B?.(c),!c.defaultPrevented)z?.()},O),g=Bh((c)=>{let h=c.target;if([...R.branches].some((E)=>E.contains(h)))return;if(H?.(c),B?.(c),!c.defaultPrevented)z?.()},O);return pI((c)=>{if(k!==R.layers.size-1)return;if(G?.(c),!c.defaultPrevented&&z)c.preventDefault(),z()},O),N5.useEffect(()=>{if(!N)return;if(Y){if(R.layersWithOutsidePointerEventsDisabled.size===0)lI=O.body.style.pointerEvents,O.body.style.pointerEvents="none";R.layersWithOutsidePointerEventsDisabled.add(N)}return R.layers.add(N),dI(),()=>{if(Y&&R.layersWithOutsidePointerEventsDisabled.size===1)O.body.style.pointerEvents=lI}},[N,O,Y,R]),N5.useEffect(()=>{return()=>{if(!N)return;R.layers.delete(N),R.layersWithOutsidePointerEventsDisabled.delete(N),dI()}},[N,R]),N5.useEffect(()=>{let c=()=>A({});return document.addEventListener(kB,c),()=>document.removeEventListener(kB,c)},[]),mB.jsx(A5.div,{...F,ref:C,style:{pointerEvents:f?a?"auto":"none":void 0,...Q.style},onFocusCapture:H4(Q.onFocusCapture,g.onFocusCapture),onBlurCapture:H4(Q.onBlurCapture,g.onBlurCapture),onPointerDownCapture:H4(Q.onPointerDownCapture,s.onPointerDownCapture)})});XJ.displayName=Yh;var Kh="DismissableLayerBranch",Wh=N5.forwardRef((Q,$)=>{let Y=N5.useContext(iI),G=N5.useRef(null),K=W4($,G);return N5.useEffect(()=>{let H=G.current;if(H)return Y.branches.add(H),()=>{Y.branches.delete(H)}},[Y.branches]),mB.jsx(A5.div,{...Q,ref:K})});Wh.displayName=Kh;function Hh(Q,$=globalThis?.document){let Y=u9(Q),G=N5.useRef(!1),K=N5.useRef(()=>{});return N5.useEffect(()=>{let H=(z)=>{if(z.target&&!G.current){let R=function(){cI(qh,Y,N,{discrete:!0})};var F=R;let N={originalEvent:z};if(z.pointerType==="touch")$.removeEventListener("click",K.current),K.current=R,$.addEventListener("click",K.current,{once:!0});else R()}else $.removeEventListener("click",K.current);G.current=!1},B=window.setTimeout(()=>{$.addEventListener("pointerdown",H)},0);return()=>{window.clearTimeout(B),$.removeEventListener("pointerdown",H),$.removeEventListener("click",K.current)}},[$,Y]),{onPointerDownCapture:()=>G.current=!0}}function Bh(Q,$=globalThis?.document){let Y=u9(Q),G=N5.useRef(!1);return N5.useEffect(()=>{let K=(H)=>{if(H.target&&!G.current)cI(Gh,Y,{originalEvent:H},{discrete:!1})};return $.addEventListener("focusin",K),()=>$.removeEventListener("focusin",K)},[$,Y]),{onFocusCapture:()=>G.current=!0,onBlurCapture:()=>G.current=!1}}function dI(){let Q=new CustomEvent(kB);document.dispatchEvent(Q)}function cI(Q,$,Y,{discrete:G}){let K=Y.originalEvent.target,H=new CustomEvent(Q,{bubbles:!1,cancelable:!0,detail:Y});if($)K.addEventListener(Q,$,{once:!0});if(G)uI(K,H);else K.dispatchEvent(H)}var v2=J0(k0(),1);var oI=J0(l5(),1),uB="focusScope.autoFocusOnMount",fB="focusScope.autoFocusOnUnmount",rI={bubbles:!1,cancelable:!0},Uh="FocusScope",pB=v2.forwardRef((Q,$)=>{let{loop:Y=!1,trapped:G=!1,onMountAutoFocus:K,onUnmountAutoFocus:H,...B}=Q,[z,F]=v2.useState(null),R=u9(K),N=u9(H),L=v2.useRef(null),O=W4($,(D)=>F(D)),A=v2.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v2.useEffect(()=>{if(G){let k=function(g){if(A.paused||!z)return;let c=g.target;if(z.contains(c))L.current=c;else I7(L.current,{select:!0})},f=function(g){if(A.paused||!z)return;let c=g.relatedTarget;if(c===null)return;if(!z.contains(c))I7(L.current,{select:!0})},a=function(g){if(document.activeElement!==document.body)return;for(let h of g)if(h.removedNodes.length>0)I7(z)};var D=k,b=f,y=a;document.addEventListener("focusin",k),document.addEventListener("focusout",f);let s=new MutationObserver(a);if(z)s.observe(z,{childList:!0,subtree:!0});return()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",f),s.disconnect()}}},[G,z,A.paused]),v2.useEffect(()=>{if(z){nI.add(A);let D=document.activeElement;if(!z.contains(D)){let y=new CustomEvent(uB,rI);if(z.addEventListener(uB,R),z.dispatchEvent(y),!y.defaultPrevented){if(zh(Rh(tI(z)),{select:!0}),document.activeElement===D)I7(z)}}return()=>{z.removeEventListener(uB,R),setTimeout(()=>{let y=new CustomEvent(fB,rI);if(z.addEventListener(fB,N),z.dispatchEvent(y),!y.defaultPrevented)I7(D??document.body,{select:!0});z.removeEventListener(fB,N),nI.remove(A)},0)}}},[z,R,N,A]);let C=v2.useCallback((D)=>{if(!Y&&!G)return;if(A.paused)return;let b=D.key==="Tab"&&!D.altKey&&!D.ctrlKey&&!D.metaKey,y=document.activeElement;if(b&&y){let k=D.currentTarget,[f,a]=Fh(k);if(!(f&&a)){if(y===k)D.preventDefault()}else if(!D.shiftKey&&y===a){if(D.preventDefault(),Y)I7(f,{select:!0})}else if(D.shiftKey&&y===f){if(D.preventDefault(),Y)I7(a,{select:!0})}}},[Y,G,A.paused]);return oI.jsx(A5.div,{tabIndex:-1,...B,ref:O,onKeyDown:C})});pB.displayName=Uh;function zh(Q,{select:$=!1}={}){let Y=document.activeElement;for(let G of Q)if(I7(G,{select:$}),document.activeElement!==Y)return}function Fh(Q){let $=tI(Q),Y=aI($,Q),G=aI($.reverse(),Q);return[Y,G]}function tI(Q){let $=[],Y=document.createTreeWalker(Q,NodeFilter.SHOW_ELEMENT,{acceptNode:(G)=>{let K=G.tagName==="INPUT"&&G.type==="hidden";if(G.disabled||G.hidden||K)return NodeFilter.FILTER_SKIP;return G.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(Y.nextNode())$.push(Y.currentNode);return $}function aI(Q,$){for(let Y of Q)if(!Lh(Y,{upTo:$}))return Y}function Lh(Q,{upTo:$}){if(getComputedStyle(Q).visibility==="hidden")return!0;while(Q){if($!==void 0&&Q===$)return!1;if(getComputedStyle(Q).display==="none")return!0;Q=Q.parentElement}return!1}function Mh(Q){return Q instanceof HTMLInputElement&&"select"in Q}function I7(Q,{select:$=!1}={}){if(Q&&Q.focus){let Y=document.activeElement;if(Q.focus({preventScroll:!0}),Q!==Y&&Mh(Q)&&$)Q.select()}}var nI=Nh();function Nh(){let Q=[];return{add($){let Y=Q[0];if($!==Y)Y?.pause();Q=sI(Q,$),Q.unshift($)},remove($){Q=sI(Q,$),Q[0]?.resume()}}}function sI(Q,$){let Y=[...Q],G=Y.indexOf($);if(G!==-1)Y.splice(G,1);return Y}function Rh(Q){return Q.filter(($)=>$.tagName!=="A")}var Rq=J0(k0(),1),eI=J0(V8(),1);var ZT=J0(l5(),1),_h="Portal",QJ=Rq.forwardRef((Q,$)=>{let{container:Y,...G}=Q,[K,H]=Rq.useState(!1);c4(()=>H(!0),[]);let B=Y||K&&globalThis?.document?.body;return B?eI.default.createPortal(ZT.jsx(A5.div,{...G,ref:$}),B):null});QJ.displayName=_h;var r4=J0(k0(),1);var XT=J0(k0(),1);function Oh(Q,$){return XT.useReducer((Y,G)=>{return $[Y][G]??Y},Q)}var T7=(Q)=>{let{present:$,children:Y}=Q,G=Ah($),K=typeof Y==="function"?Y({present:G.isPresent}):r4.Children.only(Y),H=W4(G.ref,Ih(K));return typeof Y==="function"||G.isPresent?r4.cloneElement(K,{ref:H}):null};T7.displayName="Presence";function Ah(Q){let[$,Y]=r4.useState(),G=r4.useRef(null),K=r4.useRef(Q),H=r4.useRef("none"),B=Q?"mounted":"unmounted",[z,F]=Oh(B,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r4.useEffect(()=>{let R=_q(G.current);H.current=z==="mounted"?R:"none"},[z]),c4(()=>{let R=G.current,N=K.current;if(N!==Q){let O=H.current,A=_q(R);if(Q)F("MOUNT");else if(A==="none"||R?.display==="none")F("UNMOUNT");else if(N&&O!==A)F("ANIMATION_OUT");else F("UNMOUNT");K.current=Q}},[Q,F]),c4(()=>{if($){let R,N=$.ownerDocument.defaultView??window,L=(A)=>{let D=_q(G.current).includes(CSS.escape(A.animationName));if(A.target===$&&D){if(F("ANIMATION_END"),!K.current){let b=$.style.animationFillMode;$.style.animationFillMode="forwards",R=N.setTimeout(()=>{if($.style.animationFillMode==="forwards")$.style.animationFillMode=b})}}},O=(A)=>{if(A.target===$)H.current=_q(G.current)};return $.addEventListener("animationstart",O),$.addEventListener("animationcancel",L),$.addEventListener("animationend",L),()=>{N.clearTimeout(R),$.removeEventListener("animationstart",O),$.removeEventListener("animationcancel",L),$.removeEventListener("animationend",L)}}else F("ANIMATION_END")},[$,F]),{isPresent:["mounted","unmountSuspended"].includes(z),ref:r4.useCallback((R)=>{G.current=R?getComputedStyle(R):null,Y(R)},[])}}function _q(Q){return Q?.animationName||"none"}function Ih(Q){let $=Object.getOwnPropertyDescriptor(Q.props,"ref")?.get,Y=$&&"isReactWarning"in $&&$.isReactWarning;if(Y)return Q.ref;if($=Object.getOwnPropertyDescriptor(Q,"ref")?.get,Y=$&&"isReactWarning"in $&&$.isReactWarning,Y)return Q.props.ref;return Q.props.ref||Q.ref}var JT=J0(k0(),1),lB=0;function $T(){JT.useEffect(()=>{let Q=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",Q[0]??QT()),document.body.insertAdjacentElement("beforeend",Q[1]??QT()),lB++,()=>{if(lB===1)document.querySelectorAll("[data-radix-focus-guard]").forEach(($)=>$.remove());lB--}},[])}function QT(){let Q=document.createElement("span");return Q.setAttribute("data-radix-focus-guard",""),Q.tabIndex=0,Q.style.outline="none",Q.style.opacity="0",Q.style.position="fixed",Q.style.pointerEvents="none",Q}var a4=function(){return a4=Object.assign||function($){for(var Y,G=1,K=arguments.length;G<K;G++){Y=arguments[G];for(var H in Y)if(Object.prototype.hasOwnProperty.call(Y,H))$[H]=Y[H]}return $},a4.apply(this,arguments)};function Oq(Q,$){var Y={};for(var G in Q)if(Object.prototype.hasOwnProperty.call(Q,G)&&$.indexOf(G)<0)Y[G]=Q[G];if(Q!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var K=0,G=Object.getOwnPropertySymbols(Q);K<G.length;K++)if($.indexOf(G[K])<0&&Object.prototype.propertyIsEnumerable.call(Q,G[K]))Y[G[K]]=Q[G[K]]}return Y}function YT(Q,$,Y){if(Y||arguments.length===2){for(var G=0,K=$.length,H;G<K;G++)if(H||!(G in $)){if(!H)H=Array.prototype.slice.call($,0,G);H[G]=$[G]}}return Q.concat(H||Array.prototype.slice.call($))}var Pq=J0(k0(),1);var A4=J0(k0(),1);var h8="right-scroll-bar-position",v8="width-before-scroll-bar",dB="with-scroll-bars-hidden",iB="--removed-body-scroll-bar-size";function Aq(Q,$){if(typeof Q==="function")Q($);else if(Q)Q.current=$;return Q}var qT=J0(k0(),1);function GT(Q,$){var Y=qT.useState(function(){return{value:Q,callback:$,facade:{get current(){return Y.value},set current(G){var K=Y.value;if(K!==G)Y.value=G,Y.callback(G,K)}}}})[0];return Y.callback=$,Y.facade}var Iq=J0(k0(),1);var Th=typeof window<"u"?Iq.useLayoutEffect:Iq.useEffect,KT=new WeakMap;function cB(Q,$){var Y=GT($||null,function(G){return Q.forEach(function(K){return Aq(K,G)})});return Th(function(){var G=KT.get(Y);if(G){var K=new Set(G),H=new Set(Q),B=Y.current;K.forEach(function(z){if(!H.has(z))Aq(z,null)}),H.forEach(function(z){if(!K.has(z))Aq(z,B)})}KT.set(Y,Q)},[Q]),Y}function Vh(Q){return Q}function Ph(Q,$){if($===void 0)$=Vh;var Y=[],G=!1,K={read:function(){if(G)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");if(Y.length)return Y[Y.length-1];return Q},useMedium:function(H){var B=$(H,G);return Y.push(B),function(){Y=Y.filter(function(z){return z!==B})}},assignSyncMedium:function(H){G=!0;while(Y.length){var B=Y;Y=[],B.forEach(H)}Y={push:function(z){return H(z)},filter:function(){return Y}}},assignMedium:function(H){G=!0;var B=[];if(Y.length){var z=Y;Y=[],z.forEach(H),B=Y}var F=function(){var N=B;B=[],N.forEach(H)},R=function(){return Promise.resolve().then(F)};R(),Y={push:function(N){B.push(N),R()},filter:function(N){return B=B.filter(N),Y}}}};return K}function rB(Q){if(Q===void 0)Q={};var $=Ph(null);return $.options=a4({async:!0,ssr:!1},Q),$}var WT=J0(k0(),1),HT=function(Q){var $=Q.sideCar,Y=Oq(Q,["sideCar"]);if(!$)throw Error("Sidecar: please provide `sideCar` property to import the right car");var G=$.read();if(!G)throw Error("Sidecar medium not found");return WT.createElement(G,a4({},Y))};HT.isSideCarExport=!0;function aB(Q,$){return Q.useMedium($),HT}var Tq=rB();var nB=function(){return},JJ=A4.forwardRef(function(Q,$){var Y=A4.useRef(null),G=A4.useState({onScrollCapture:nB,onWheelCapture:nB,onTouchMoveCapture:nB}),K=G[0],H=G[1],B=Q.forwardProps,z=Q.children,F=Q.className,R=Q.removeScrollBar,N=Q.enabled,L=Q.shards,O=Q.sideCar,A=Q.noRelative,C=Q.noIsolation,D=Q.inert,b=Q.allowPinchZoom,y=Q.as,k=y===void 0?"div":y,f=Q.gapMode,a=Oq(Q,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),s=O,g=cB([Y,$]),c=a4(a4({},a),K);return A4.createElement(A4.Fragment,null,N&&A4.createElement(s,{sideCar:Tq,removeScrollBar:R,shards:L,noRelative:A,noIsolation:C,inert:D,setCallbacks:H,allowPinchZoom:!!b,lockRef:Y,gapMode:f}),B?A4.cloneElement(A4.Children.only(z),a4(a4({},c),{ref:g})):A4.createElement(k,a4({},c,{className:F,ref:g}),z))});JJ.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};JJ.classNames={fullWidth:v8,zeroRight:h8};var H5=J0(k0(),1);var IX=J0(k0(),1);var zT=J0(k0(),1);var BT;var UT=function(){if(BT)return BT;if(typeof __webpack_nonce__<"u")return __webpack_nonce__;return};function wh(){if(!document)return null;var Q=document.createElement("style");Q.type="text/css";var $=UT();if($)Q.setAttribute("nonce",$);return Q}function Ch(Q,$){if(Q.styleSheet)Q.styleSheet.cssText=$;else Q.appendChild(document.createTextNode($))}function jh(Q){var $=document.head||document.getElementsByTagName("head")[0];$.appendChild(Q)}var sB=function(){var Q=0,$=null;return{add:function(Y){if(Q==0){if($=wh())Ch($,Y),jh($)}Q++},remove:function(){if(Q--,!Q&&$)$.parentNode&&$.parentNode.removeChild($),$=null}}};var oB=function(){var Q=sB();return function($,Y){zT.useEffect(function(){return Q.add($),function(){Q.remove()}},[$&&Y])}};var $J=function(){var Q=oB(),$=function(Y){var{styles:G,dynamic:K}=Y;return Q(G,K),null};return $};var Dh={left:0,top:0,right:0,gap:0},tB=function(Q){return parseInt(Q||"",10)||0},Sh=function(Q){var $=window.getComputedStyle(document.body),Y=$[Q==="padding"?"paddingLeft":"marginLeft"],G=$[Q==="padding"?"paddingTop":"marginTop"],K=$[Q==="padding"?"paddingRight":"marginRight"];return[tB(Y),tB(G),tB(K)]},eB=function(Q){if(Q===void 0)Q="margin";if(typeof window>"u")return Dh;var $=Sh(Q),Y=document.documentElement.clientWidth,G=window.innerWidth;return{left:$[0],top:$[1],right:$[2],gap:Math.max(0,G-Y+$[2]-$[0])}};var Eh=$J(),AX="data-scroll-locked",bh=function(Q,$,Y,G){var{left:K,top:H,right:B,gap:z}=Q;if(Y===void 0)Y="margin";return`
|
|
242
|
+
.`.concat(dB,` {
|
|
243
|
+
overflow: hidden `).concat(G,`;
|
|
244
|
+
padding-right: `).concat(z,"px ").concat(G,`;
|
|
245
|
+
}
|
|
246
|
+
body[`).concat(AX,`] {
|
|
247
|
+
overflow: hidden `).concat(G,`;
|
|
248
|
+
overscroll-behavior: contain;
|
|
249
|
+
`).concat([$&&"position: relative ".concat(G,";"),Y==="margin"&&`
|
|
250
|
+
padding-left: `.concat(K,`px;
|
|
251
|
+
padding-top: `).concat(H,`px;
|
|
252
|
+
padding-right: `).concat(B,`px;
|
|
253
|
+
margin-left:0;
|
|
254
|
+
margin-top:0;
|
|
255
|
+
margin-right: `).concat(z,"px ").concat(G,`;
|
|
256
|
+
`),Y==="padding"&&"padding-right: ".concat(z,"px ").concat(G,";")].filter(Boolean).join(""),`
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.`).concat(h8,` {
|
|
260
|
+
right: `).concat(z,"px ").concat(G,`;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.`).concat(v8,` {
|
|
264
|
+
margin-right: `).concat(z,"px ").concat(G,`;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.`).concat(h8," .").concat(h8,` {
|
|
268
|
+
right: 0 `).concat(G,`;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.`).concat(v8," .").concat(v8,` {
|
|
272
|
+
margin-right: 0 `).concat(G,`;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
body[`).concat(AX,`] {
|
|
276
|
+
`).concat(iB,": ").concat(z,`px;
|
|
277
|
+
}
|
|
278
|
+
`)},FT=function(){var Q=parseInt(document.body.getAttribute(AX)||"0",10);return isFinite(Q)?Q:0},yh=function(){IX.useEffect(function(){return document.body.setAttribute(AX,(FT()+1).toString()),function(){var Q=FT()-1;if(Q<=0)document.body.removeAttribute(AX);else document.body.setAttribute(AX,Q.toString())}},[])},ZU=function(Q){var{noRelative:$,noImportant:Y,gapMode:G}=Q,K=G===void 0?"margin":G;yh();var H=IX.useMemo(function(){return eB(K)},[K]);return IX.createElement(Eh,{styles:bh(H,!$,K,!Y?"!important":"")})};var XU=!1;if(typeof window<"u")try{TX=Object.defineProperty({},"passive",{get:function(){return XU=!0,!0}}),window.addEventListener("test",TX,TX),window.removeEventListener("test",TX,TX)}catch(Q){XU=!1}var TX,x8=XU?{passive:!1}:!1;var gh=function(Q){return Q.tagName==="TEXTAREA"},LT=function(Q,$){if(!(Q instanceof Element))return!1;var Y=window.getComputedStyle(Q);return Y[$]!=="hidden"&&!(Y.overflowY===Y.overflowX&&!gh(Q)&&Y[$]==="visible")},hh=function(Q){return LT(Q,"overflowY")},vh=function(Q){return LT(Q,"overflowX")},QU=function(Q,$){var Y=$.ownerDocument,G=$;do{if(typeof ShadowRoot<"u"&&G instanceof ShadowRoot)G=G.host;var K=MT(Q,G);if(K){var H=NT(Q,G),B=H[1],z=H[2];if(B>z)return!0}G=G.parentNode}while(G&&G!==Y.body);return!1},xh=function(Q){var{scrollTop:$,scrollHeight:Y,clientHeight:G}=Q;return[$,Y,G]},kh=function(Q){var{scrollLeft:$,scrollWidth:Y,clientWidth:G}=Q;return[$,Y,G]},MT=function(Q,$){return Q==="v"?hh($):vh($)},NT=function(Q,$){return Q==="v"?xh($):kh($)},mh=function(Q,$){return Q==="h"&&$==="rtl"?-1:1},RT=function(Q,$,Y,G,K){var H=mh(Q,window.getComputedStyle($).direction),B=H*G,z=Y.target,F=$.contains(z),R=!1,N=B>0,L=0,O=0;do{if(!z)break;var A=NT(Q,z),C=A[0],D=A[1],b=A[2],y=D-b-H*C;if(C||y){if(MT(Q,z))L+=y,O+=C}var k=z.parentNode;z=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!F&&z!==document.body||F&&($.contains(z)||$===z));if(N&&(K&&Math.abs(L)<1||!K&&B>L))R=!0;else if(!N&&(K&&Math.abs(O)<1||!K&&-B>O))R=!0;return R};var Vq=function(Q){return"changedTouches"in Q?[Q.changedTouches[0].clientX,Q.changedTouches[0].clientY]:[0,0]},_T=function(Q){return[Q.deltaX,Q.deltaY]},OT=function(Q){return Q&&"current"in Q?Q.current:Q},uh=function(Q,$){return Q[0]===$[0]&&Q[1]===$[1]},fh=function(Q){return`
|
|
279
|
+
.block-interactivity-`.concat(Q,` {pointer-events: none;}
|
|
280
|
+
.allow-interactivity-`).concat(Q,` {pointer-events: all;}
|
|
281
|
+
`)},ph=0,VX=[];function AT(Q){var $=H5.useRef([]),Y=H5.useRef([0,0]),G=H5.useRef(),K=H5.useState(ph++)[0],H=H5.useState($J)[0],B=H5.useRef(Q);H5.useEffect(function(){B.current=Q},[Q]),H5.useEffect(function(){if(Q.inert){document.body.classList.add("block-interactivity-".concat(K));var D=YT([Q.lockRef.current],(Q.shards||[]).map(OT),!0).filter(Boolean);return D.forEach(function(b){return b.classList.add("allow-interactivity-".concat(K))}),function(){document.body.classList.remove("block-interactivity-".concat(K)),D.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(K))})}}return},[Q.inert,Q.lockRef.current,Q.shards]);var z=H5.useCallback(function(D,b){if("touches"in D&&D.touches.length===2||D.type==="wheel"&&D.ctrlKey)return!B.current.allowPinchZoom;var y=Vq(D),k=Y.current,f="deltaX"in D?D.deltaX:k[0]-y[0],a="deltaY"in D?D.deltaY:k[1]-y[1],s,g=D.target,c=Math.abs(f)>Math.abs(a)?"h":"v";if("touches"in D&&c==="h"&&g.type==="range")return!1;var h=window.getSelection(),Z0=h&&h.anchorNode,E=Z0?Z0===g||Z0.contains(g):!1;if(E)return!1;var _0=QU(c,g);if(!_0)return!0;if(_0)s=c;else s=c==="v"?"h":"v",_0=QU(c,g);if(!_0)return!1;if(!G.current&&"changedTouches"in D&&(f||a))G.current=s;if(!s)return!0;var t=G.current||s;return RT(t,b,D,t==="h"?f:a,!0)},[]),F=H5.useCallback(function(D){var b=D;if(!VX.length||VX[VX.length-1]!==H)return;var y="deltaY"in b?_T(b):Vq(b),k=$.current.filter(function(s){return s.name===b.type&&(s.target===b.target||b.target===s.shadowParent)&&uh(s.delta,y)})[0];if(k&&k.should){if(b.cancelable)b.preventDefault();return}if(!k){var f=(B.current.shards||[]).map(OT).filter(Boolean).filter(function(s){return s.contains(b.target)}),a=f.length>0?z(b,f[0]):!B.current.noIsolation;if(a){if(b.cancelable)b.preventDefault()}}},[]),R=H5.useCallback(function(D,b,y,k){var f={name:D,delta:b,target:y,should:k,shadowParent:lh(y)};$.current.push(f),setTimeout(function(){$.current=$.current.filter(function(a){return a!==f})},1)},[]),N=H5.useCallback(function(D){Y.current=Vq(D),G.current=void 0},[]),L=H5.useCallback(function(D){R(D.type,_T(D),D.target,z(D,Q.lockRef.current))},[]),O=H5.useCallback(function(D){R(D.type,Vq(D),D.target,z(D,Q.lockRef.current))},[]);H5.useEffect(function(){return VX.push(H),Q.setCallbacks({onScrollCapture:L,onWheelCapture:L,onTouchMoveCapture:O}),document.addEventListener("wheel",F,x8),document.addEventListener("touchmove",F,x8),document.addEventListener("touchstart",N,x8),function(){VX=VX.filter(function(D){return D!==H}),document.removeEventListener("wheel",F,x8),document.removeEventListener("touchmove",F,x8),document.removeEventListener("touchstart",N,x8)}},[]);var{removeScrollBar:A,inert:C}=Q;return H5.createElement(H5.Fragment,null,C?H5.createElement(H,{styles:fh(K)}):null,A?H5.createElement(ZU,{noRelative:Q.noRelative,gapMode:Q.gapMode}):null)}function lh(Q){var $=null;while(Q!==null){if(Q instanceof ShadowRoot)$=Q.host,Q=Q.host;Q=Q.parentNode}return $}var IT=aB(Tq,AT);var TT=Pq.forwardRef(function(Q,$){return Pq.createElement(JJ,a4({},Q,{ref:$,sideCar:IT}))});TT.classNames=JJ.classNames;var JU=TT;var dh=function(Q){if(typeof document>"u")return null;var $=Array.isArray(Q)?Q[0]:Q;return $.ownerDocument.body},PX=new WeakMap,wq=new WeakMap,Cq={},$U=0,VT=function(Q){return Q&&(Q.host||VT(Q.parentNode))},ih=function(Q,$){return $.map(function(Y){if(Q.contains(Y))return Y;var G=VT(Y);if(G&&Q.contains(G))return G;return console.error("aria-hidden",Y,"in not contained inside",Q,". Doing nothing"),null}).filter(function(Y){return Boolean(Y)})},ch=function(Q,$,Y,G){var K=ih($,Array.isArray(Q)?Q:[Q]);if(!Cq[Y])Cq[Y]=new WeakMap;var H=Cq[Y],B=[],z=new Set,F=new Set(K),R=function(L){if(!L||z.has(L))return;z.add(L),R(L.parentNode)};K.forEach(R);var N=function(L){if(!L||F.has(L))return;Array.prototype.forEach.call(L.children,function(O){if(z.has(O))N(O);else try{var A=O.getAttribute(G),C=A!==null&&A!=="false",D=(PX.get(O)||0)+1,b=(H.get(O)||0)+1;if(PX.set(O,D),H.set(O,b),B.push(O),D===1&&C)wq.set(O,!0);if(b===1)O.setAttribute(Y,"true");if(!C)O.setAttribute(G,"true")}catch(y){console.error("aria-hidden: cannot operate on ",O,y)}})};return N($),z.clear(),$U++,function(){if(B.forEach(function(L){var O=PX.get(L)-1,A=H.get(L)-1;if(PX.set(L,O),H.set(L,A),!O){if(!wq.has(L))L.removeAttribute(G);wq.delete(L)}if(!A)L.removeAttribute(Y)}),$U--,!$U)PX=new WeakMap,PX=new WeakMap,wq=new WeakMap,Cq={}}},PT=function(Q,$,Y){if(Y===void 0)Y="data-aria-hidden";var G=Array.from(Array.isArray(Q)?Q:[Q]),K=$||dh(Q);if(!K)return function(){return null};return G.push.apply(G,Array.from(K.querySelectorAll("[aria-live], script"))),ch(G,K,Y,"aria-hidden")};var c5=J0(k0(),1);var jq=J0(l5(),1);function wT(Q){let $=rh(Q),Y=c5.forwardRef((G,K)=>{let{children:H,...B}=G,z=c5.Children.toArray(H),F=z.find(nh);if(F){let R=F.props.children,N=z.map((L)=>{if(L===F){if(c5.Children.count(R)>1)return c5.Children.only(null);return c5.isValidElement(R)?R.props.children:null}else return L});return jq.jsx($,{...B,ref:K,children:c5.isValidElement(R)?c5.cloneElement(R,void 0,N):null})}return jq.jsx($,{...B,ref:K,children:H})});return Y.displayName=`${Q}.Slot`,Y}function rh(Q){let $=c5.forwardRef((Y,G)=>{let{children:K,...H}=Y;if(c5.isValidElement(K)){let B=oh(K),z=sh(H,K.props);if(K.type!==c5.Fragment)z.ref=G?M2(G,B):B;return c5.cloneElement(K,z)}return c5.Children.count(K)>1?c5.Children.only(null):null});return $.displayName=`${Q}.SlotClone`,$}var ah=Symbol("radix.slottable");function nh(Q){return c5.isValidElement(Q)&&typeof Q.type==="function"&&"__radixId"in Q.type&&Q.type.__radixId===ah}function sh(Q,$){let Y={...$};for(let G in $){let K=Q[G],H=$[G];if(/^on[A-Z]/.test(G)){if(K&&H)Y[G]=(...z)=>{let F=H(...z);return K(...z),F};else if(K)Y[G]=K}else if(G==="style")Y[G]={...K,...H};else if(G==="className")Y[G]=[K,H].filter(Boolean).join(" ")}return{...Q,...Y}}function oh(Q){let $=Object.getOwnPropertyDescriptor(Q.props,"ref")?.get,Y=$&&"isReactWarning"in $&&$.isReactWarning;if(Y)return Q.ref;if($=Object.getOwnPropertyDescriptor(Q,"ref")?.get,Y=$&&"isReactWarning"in $&&$.isReactWarning,Y)return Q.props.ref;return Q.props.ref||Q.ref}var o1=J0(l5(),1),Sq="Dialog",[CT,Ns]=_X(Sq),[th,X9]=CT(Sq),jT=(Q)=>{let{__scopeDialog:$,children:Y,open:G,defaultOpen:K,onOpenChange:H,modal:B=!0}=Q,z=q5.useRef(null),F=q5.useRef(null),[R,N]=Lq({prop:G,defaultProp:K??!1,onChange:H,caller:Sq});return o1.jsx(th,{scope:$,triggerRef:z,contentRef:F,contentId:N2(),titleId:N2(),descriptionId:N2(),open:R,onOpenChange:N,onOpenToggle:q5.useCallback(()=>N((L)=>!L),[N]),modal:B,children:Y})};jT.displayName=Sq;var DT="DialogTrigger",eh=q5.forwardRef((Q,$)=>{let{__scopeDialog:Y,...G}=Q,K=X9(DT,Y),H=W4($,K.triggerRef);return o1.jsx(A5.button,{type:"button","aria-haspopup":"dialog","aria-expanded":K.open,"aria-controls":K.contentId,"data-state":GU(K.open),...G,ref:H,onClick:H4(Q.onClick,K.onOpenToggle)})});eh.displayName=DT;var YU="DialogPortal",[Zv,ST]=CT(YU,{forceMount:void 0}),ET=(Q)=>{let{__scopeDialog:$,forceMount:Y,children:G,container:K}=Q,H=X9(YU,$);return o1.jsx(Zv,{scope:$,forceMount:Y,children:q5.Children.map(G,(B)=>o1.jsx(T7,{present:Y||H.open,children:o1.jsx(QJ,{asChild:!0,container:K,children:B})}))})};ET.displayName=YU;var Dq="DialogOverlay",bT=q5.forwardRef((Q,$)=>{let Y=ST(Dq,Q.__scopeDialog),{forceMount:G=Y.forceMount,...K}=Q,H=X9(Dq,Q.__scopeDialog);return H.modal?o1.jsx(T7,{present:G||H.open,children:o1.jsx(Qv,{...K,ref:$})}):null});bT.displayName=Dq;var Xv=wT("DialogOverlay.RemoveScroll"),Qv=q5.forwardRef((Q,$)=>{let{__scopeDialog:Y,...G}=Q,K=X9(Dq,Y);return o1.jsx(JU,{as:Xv,allowPinchZoom:!0,shards:[K.contentRef],children:o1.jsx(A5.div,{"data-state":GU(K.open),...G,ref:$,style:{pointerEvents:"auto",...G.style}})})}),k8="DialogContent",yT=q5.forwardRef((Q,$)=>{let Y=ST(k8,Q.__scopeDialog),{forceMount:G=Y.forceMount,...K}=Q,H=X9(k8,Q.__scopeDialog);return o1.jsx(T7,{present:G||H.open,children:H.modal?o1.jsx(Jv,{...K,ref:$}):o1.jsx($v,{...K,ref:$})})});yT.displayName=k8;var Jv=q5.forwardRef((Q,$)=>{let Y=X9(k8,Q.__scopeDialog),G=q5.useRef(null),K=W4($,Y.contentRef,G);return q5.useEffect(()=>{let H=G.current;if(H)return PT(H)},[]),o1.jsx(gT,{...Q,ref:K,trapFocus:Y.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H4(Q.onCloseAutoFocus,(H)=>{H.preventDefault(),Y.triggerRef.current?.focus()}),onPointerDownOutside:H4(Q.onPointerDownOutside,(H)=>{let B=H.detail.originalEvent,z=B.button===0&&B.ctrlKey===!0;if(B.button===2||z)H.preventDefault()}),onFocusOutside:H4(Q.onFocusOutside,(H)=>H.preventDefault())})}),$v=q5.forwardRef((Q,$)=>{let Y=X9(k8,Q.__scopeDialog),G=q5.useRef(!1),K=q5.useRef(!1);return o1.jsx(gT,{...Q,ref:$,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:(H)=>{if(Q.onCloseAutoFocus?.(H),!H.defaultPrevented){if(!G.current)Y.triggerRef.current?.focus();H.preventDefault()}G.current=!1,K.current=!1},onInteractOutside:(H)=>{if(Q.onInteractOutside?.(H),!H.defaultPrevented){if(G.current=!0,H.detail.originalEvent.type==="pointerdown")K.current=!0}let B=H.target;if(Y.triggerRef.current?.contains(B))H.preventDefault();if(H.detail.originalEvent.type==="focusin"&&K.current)H.preventDefault()}})}),gT=q5.forwardRef((Q,$)=>{let{__scopeDialog:Y,trapFocus:G,onOpenAutoFocus:K,onCloseAutoFocus:H,...B}=Q,z=X9(k8,Y),F=q5.useRef(null),R=W4($,F);return $T(),o1.jsxs(o1.Fragment,{children:[o1.jsx(pB,{asChild:!0,loop:!0,trapped:G,onMountAutoFocus:K,onUnmountAutoFocus:H,children:o1.jsx(XJ,{role:"dialog",id:z.contentId,"aria-describedby":z.descriptionId,"aria-labelledby":z.titleId,"data-state":GU(z.open),...B,ref:R,onDismiss:()=>z.onOpenChange(!1)})}),o1.jsxs(o1.Fragment,{children:[o1.jsx(Yv,{titleId:z.titleId}),o1.jsx(Gv,{contentRef:F,descriptionId:z.descriptionId})]})]})}),qU="DialogTitle",hT=q5.forwardRef((Q,$)=>{let{__scopeDialog:Y,...G}=Q,K=X9(qU,Y);return o1.jsx(A5.h2,{id:K.titleId,...G,ref:$})});hT.displayName=qU;var vT="DialogDescription",xT=q5.forwardRef((Q,$)=>{let{__scopeDialog:Y,...G}=Q,K=X9(vT,Y);return o1.jsx(A5.p,{id:K.descriptionId,...G,ref:$})});xT.displayName=vT;var kT="DialogClose",mT=q5.forwardRef((Q,$)=>{let{__scopeDialog:Y,...G}=Q,K=X9(kT,Y);return o1.jsx(A5.button,{type:"button",...G,ref:$,onClick:H4(Q.onClick,()=>K.onOpenChange(!1))})});mT.displayName=kT;function GU(Q){return Q?"open":"closed"}var uT="DialogTitleWarning",[Rs,fT]=gI(uT,{contentName:k8,titleName:qU,docsSlug:"dialog"}),Yv=({titleId:Q})=>{let $=fT(uT),Y=`\`${$.contentName}\` requires a \`${$.titleName}\` for the component to be accessible for screen reader users.
|
|
282
|
+
|
|
283
|
+
If you want to hide the \`${$.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
284
|
+
|
|
285
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${$.docsSlug}`;return q5.useEffect(()=>{if(Q){if(!document.getElementById(Q))console.error(Y)}},[Y,Q]),null},qv="DialogDescriptionWarning",Gv=({contentRef:Q,descriptionId:$})=>{let G=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fT(qv).contentName}}.`;return q5.useEffect(()=>{let K=Q.current?.getAttribute("aria-describedby");if($&&K){if(!document.getElementById($))console.warn(G)}},[G,Q,$]),null},wX=jT;var CX=ET,V7=bT,P7=yT,jX=hT,DX=xT,Eq=mT;var x2=J0(Q1(),1),pT=wX;var Wv=CX,lT=YJ.forwardRef(({className:Q,...$},Y)=>x2.jsxDEV(V7,{className:a0("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",Q),...$,ref:Y},void 0,!1,void 0,this));lT.displayName=V7.displayName;var Hv=LX("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),WU=YJ.forwardRef(({side:Q="right",className:$,children:Y,...G},K)=>x2.jsxDEV(Wv,{children:[x2.jsxDEV(lT,{},void 0,!1,void 0,this),x2.jsxDEV(P7,{ref:K,className:a0(Hv({side:Q}),$),...G,children:[x2.jsxDEV(Eq,{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-secondary",children:[x2.jsxDEV(L2,{className:"h-4 w-4"},void 0,!1,void 0,this),x2.jsxDEV("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y]},void 0,!0,void 0,this)]},void 0,!0,void 0,this));WU.displayName=P7.displayName;var HU=({className:Q,...$})=>x2.jsxDEV("div",{className:a0("flex flex-col space-y-2 text-center sm:text-left",Q),...$},void 0,!1,void 0,this);HU.displayName="SheetHeader";var Bv=({className:Q,...$})=>x2.jsxDEV("div",{className:a0("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",Q),...$},void 0,!1,void 0,this);Bv.displayName="SheetFooter";var BU=YJ.forwardRef(({className:Q,...$},Y)=>x2.jsxDEV(jX,{ref:Y,className:a0("text-lg font-semibold text-foreground",Q),...$},void 0,!1,void 0,this));BU.displayName=jX.displayName;var UU=YJ.forwardRef(({className:Q,...$},Y)=>x2.jsxDEV(DX,{ref:Y,className:a0("text-sm text-muted-foreground",Q),...$},void 0,!1,void 0,this));UU.displayName=DX.displayName;var dT=J0(Q1(),1);function zU({className:Q,...$}){return dT.jsxDEV("div",{className:a0("animate-pulse rounded-md bg-primary/10",Q),...$},void 0,!1,void 0,this)}var TP=J0(k0(),1);var O1=J0(k0(),1);var s4=J0(k0(),1);var rT=["top","right","bottom","left"];var{min:f9,max:g4,round:GJ,floor:KJ}=Math,Q9=(Q)=>({x:Q,y:Q}),Uv={left:"right",right:"left",bottom:"top",top:"bottom"},zv={start:"end",end:"start"};function yq(Q,$,Y){return g4(Q,f9($,Y))}function p9(Q,$){return typeof Q==="function"?Q($):Q}function l9(Q){return Q.split("-")[0]}function m8(Q){return Q.split("-")[1]}function gq(Q){return Q==="x"?"y":"x"}function hq(Q){return Q==="y"?"height":"width"}var Fv=new Set(["top","bottom"]);function J9(Q){return Fv.has(l9(Q))?"y":"x"}function vq(Q){return gq(J9(Q))}function aT(Q,$,Y){if(Y===void 0)Y=!1;let G=m8(Q),K=vq(Q),H=hq(K),B=K==="x"?G===(Y?"end":"start")?"right":"left":G==="start"?"bottom":"top";if($.reference[H]>$.floating[H])B=qJ(B);return[B,qJ(B)]}function nT(Q){let $=qJ(Q);return[bq(Q),$,bq($)]}function bq(Q){return Q.replace(/start|end/g,($)=>zv[$])}var iT=["left","right"],cT=["right","left"],Lv=["top","bottom"],Mv=["bottom","top"];function Nv(Q,$,Y){switch(Q){case"top":case"bottom":if(Y)return $?cT:iT;return $?iT:cT;case"left":case"right":return $?Lv:Mv;default:return[]}}function sT(Q,$,Y,G){let K=m8(Q),H=Nv(l9(Q),Y==="start",G);if(K){if(H=H.map((B)=>B+"-"+K),$)H=H.concat(H.map(bq))}return H}function qJ(Q){return Q.replace(/left|right|bottom|top/g,($)=>Uv[$])}function Rv(Q){return{top:0,right:0,bottom:0,left:0,...Q}}function FU(Q){return typeof Q!=="number"?Rv(Q):{top:Q,right:Q,bottom:Q,left:Q}}function u8(Q){let{x:$,y:Y,width:G,height:K}=Q;return{width:G,height:K,top:Y,left:$,right:$+G,bottom:Y+K,x:$,y:Y}}function oT(Q,$,Y){let{reference:G,floating:K}=Q,H=J9($),B=vq($),z=hq(B),F=l9($),R=H==="y",N=G.x+G.width/2-K.width/2,L=G.y+G.height/2-K.height/2,O=G[z]/2-K[z]/2,A;switch(F){case"top":A={x:N,y:G.y-K.height};break;case"bottom":A={x:N,y:G.y+G.height};break;case"right":A={x:G.x+G.width,y:L};break;case"left":A={x:G.x-K.width,y:L};break;default:A={x:G.x,y:G.y}}switch(m8($)){case"start":A[B]-=O*(Y&&R?-1:1);break;case"end":A[B]+=O*(Y&&R?-1:1);break}return A}var ZV=async(Q,$,Y)=>{let{placement:G="bottom",strategy:K="absolute",middleware:H=[],platform:B}=Y,z=H.filter(Boolean),F=await(B.isRTL==null?void 0:B.isRTL($)),R=await B.getElementRects({reference:Q,floating:$,strategy:K}),{x:N,y:L}=oT(R,G,F),O=G,A={},C=0;for(let D=0;D<z.length;D++){let{name:b,fn:y}=z[D],{x:k,y:f,data:a,reset:s}=await y({x:N,y:L,initialPlacement:G,placement:O,strategy:K,middlewareData:A,rects:R,platform:B,elements:{reference:Q,floating:$}});if(N=k!=null?k:N,L=f!=null?f:L,A={...A,[b]:{...A[b],...a}},s&&C<=50){if(C++,typeof s==="object"){if(s.placement)O=s.placement;if(s.rects)R=s.rects===!0?await B.getElementRects({reference:Q,floating:$,strategy:K}):s.rects;({x:N,y:L}=oT(R,O,F))}D=-1}}return{x:N,y:L,placement:O,strategy:K,middlewareData:A}};async function SX(Q,$){var Y;if($===void 0)$={};let{x:G,y:K,platform:H,rects:B,elements:z,strategy:F}=Q,{boundary:R="clippingAncestors",rootBoundary:N="viewport",elementContext:L="floating",altBoundary:O=!1,padding:A=0}=p9($,Q),C=FU(A),b=z[O?L==="floating"?"reference":"floating":L],y=u8(await H.getClippingRect({element:((Y=await(H.isElement==null?void 0:H.isElement(b)))!=null?Y:!0)?b:b.contextElement||await(H.getDocumentElement==null?void 0:H.getDocumentElement(z.floating)),boundary:R,rootBoundary:N,strategy:F})),k=L==="floating"?{x:G,y:K,width:B.floating.width,height:B.floating.height}:B.reference,f=await(H.getOffsetParent==null?void 0:H.getOffsetParent(z.floating)),a=await(H.isElement==null?void 0:H.isElement(f))?await(H.getScale==null?void 0:H.getScale(f))||{x:1,y:1}:{x:1,y:1},s=u8(H.convertOffsetParentRelativeRectToViewportRelativeRect?await H.convertOffsetParentRelativeRectToViewportRelativeRect({elements:z,rect:k,offsetParent:f,strategy:F}):k);return{top:(y.top-s.top+C.top)/a.y,bottom:(s.bottom-y.bottom+C.bottom)/a.y,left:(y.left-s.left+C.left)/a.x,right:(s.right-y.right+C.right)/a.x}}var XV=(Q)=>({name:"arrow",options:Q,async fn($){let{x:Y,y:G,placement:K,rects:H,platform:B,elements:z,middlewareData:F}=$,{element:R,padding:N=0}=p9(Q,$)||{};if(R==null)return{};let L=FU(N),O={x:Y,y:G},A=vq(K),C=hq(A),D=await B.getDimensions(R),b=A==="y",y=b?"top":"left",k=b?"bottom":"right",f=b?"clientHeight":"clientWidth",a=H.reference[C]+H.reference[A]-O[A]-H.floating[C],s=O[A]-H.reference[A],g=await(B.getOffsetParent==null?void 0:B.getOffsetParent(R)),c=g?g[f]:0;if(!c||!await(B.isElement==null?void 0:B.isElement(g)))c=z.floating[f]||H.floating[C];let h=a/2-s/2,Z0=c/2-D[C]/2-1,E=f9(L[y],Z0),_0=f9(L[k],Z0),t=E,n=c-D[C]-_0,z0=c/2-D[C]/2+h,o=yq(t,z0,n),H0=!F.arrow&&m8(K)!=null&&z0!==o&&H.reference[C]/2-(z0<t?E:_0)-D[C]/2<0,G0=H0?z0<t?z0-t:z0-n:0;return{[A]:O[A]+G0,data:{[A]:o,centerOffset:z0-o-G0,...H0&&{alignmentOffset:G0}},reset:H0}}});var QV=function(Q){if(Q===void 0)Q={};return{name:"flip",options:Q,async fn($){var Y,G;let{placement:K,middlewareData:H,rects:B,initialPlacement:z,platform:F,elements:R}=$,{mainAxis:N=!0,crossAxis:L=!0,fallbackPlacements:O,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:D=!0,...b}=p9(Q,$);if((Y=H.arrow)!=null&&Y.alignmentOffset)return{};let y=l9(K),k=J9(z),f=l9(z)===z,a=await(F.isRTL==null?void 0:F.isRTL(R.floating)),s=O||(f||!D?[qJ(z)]:nT(z)),g=C!=="none";if(!O&&g)s.push(...sT(z,D,C,a));let c=[z,...s],h=await SX($,b),Z0=[],E=((G=H.flip)==null?void 0:G.overflows)||[];if(N)Z0.push(h[y]);if(L){let z0=aT(K,B,a);Z0.push(h[z0[0]],h[z0[1]])}if(E=[...E,{placement:K,overflows:Z0}],!Z0.every((z0)=>z0<=0)){var _0,t;let z0=(((_0=H.flip)==null?void 0:_0.index)||0)+1,o=c[z0];if(o){if(!(L==="alignment"?k!==J9(o):!1)||E.every((e)=>J9(e.placement)===k?e.overflows[0]>0:!0))return{data:{index:z0,overflows:E},reset:{placement:o}}}let H0=(t=E.filter((G0)=>G0.overflows[0]<=0).sort((G0,e)=>G0.overflows[1]-e.overflows[1])[0])==null?void 0:t.placement;if(!H0)switch(A){case"bestFit":{var n;let G0=(n=E.filter((e)=>{if(g){let U0=J9(e.placement);return U0===k||U0==="y"}return!0}).map((e)=>[e.placement,e.overflows.filter((U0)=>U0>0).reduce((U0,T)=>U0+T,0)]).sort((e,U0)=>e[1]-U0[1])[0])==null?void 0:n[0];if(G0)H0=G0;break}case"initialPlacement":H0=z;break}if(K!==H0)return{reset:{placement:H0}}}return{}}}};function tT(Q,$){return{top:Q.top-$.height,right:Q.right-$.width,bottom:Q.bottom-$.height,left:Q.left-$.width}}function eT(Q){return rT.some(($)=>Q[$]>=0)}var JV=function(Q){if(Q===void 0)Q={};return{name:"hide",options:Q,async fn($){let{rects:Y}=$,{strategy:G="referenceHidden",...K}=p9(Q,$);switch(G){case"referenceHidden":{let H=await SX($,{...K,elementContext:"reference"}),B=tT(H,Y.reference);return{data:{referenceHiddenOffsets:B,referenceHidden:eT(B)}}}case"escaped":{let H=await SX($,{...K,altBoundary:!0}),B=tT(H,Y.floating);return{data:{escapedOffsets:B,escaped:eT(B)}}}default:return{}}}}};var $V=new Set(["left","top"]);async function _v(Q,$){let{placement:Y,platform:G,elements:K}=Q,H=await(G.isRTL==null?void 0:G.isRTL(K.floating)),B=l9(Y),z=m8(Y),F=J9(Y)==="y",R=$V.has(B)?-1:1,N=H&&F?-1:1,L=p9($,Q),{mainAxis:O,crossAxis:A,alignmentAxis:C}=typeof L==="number"?{mainAxis:L,crossAxis:0,alignmentAxis:null}:{mainAxis:L.mainAxis||0,crossAxis:L.crossAxis||0,alignmentAxis:L.alignmentAxis};if(z&&typeof C==="number")A=z==="end"?C*-1:C;return F?{x:A*N,y:O*R}:{x:O*R,y:A*N}}var YV=function(Q){if(Q===void 0)Q=0;return{name:"offset",options:Q,async fn($){var Y,G;let{x:K,y:H,placement:B,middlewareData:z}=$,F=await _v($,Q);if(B===((Y=z.offset)==null?void 0:Y.placement)&&(G=z.arrow)!=null&&G.alignmentOffset)return{};return{x:K+F.x,y:H+F.y,data:{...F,placement:B}}}}},qV=function(Q){if(Q===void 0)Q={};return{name:"shift",options:Q,async fn($){let{x:Y,y:G,placement:K}=$,{mainAxis:H=!0,crossAxis:B=!1,limiter:z={fn:(b)=>{let{x:y,y:k}=b;return{x:y,y:k}}},...F}=p9(Q,$),R={x:Y,y:G},N=await SX($,F),L=J9(l9(K)),O=gq(L),A=R[O],C=R[L];if(H){let b=O==="y"?"top":"left",y=O==="y"?"bottom":"right",k=A+N[b],f=A-N[y];A=yq(k,A,f)}if(B){let b=L==="y"?"top":"left",y=L==="y"?"bottom":"right",k=C+N[b],f=C-N[y];C=yq(k,C,f)}let D=z.fn({...$,[O]:A,[L]:C});return{...D,data:{x:D.x-Y,y:D.y-G,enabled:{[O]:H,[L]:B}}}}}},GV=function(Q){if(Q===void 0)Q={};return{options:Q,fn($){let{x:Y,y:G,placement:K,rects:H,middlewareData:B}=$,{offset:z=0,mainAxis:F=!0,crossAxis:R=!0}=p9(Q,$),N={x:Y,y:G},L=J9(K),O=gq(L),A=N[O],C=N[L],D=p9(z,$),b=typeof D==="number"?{mainAxis:D,crossAxis:0}:{mainAxis:0,crossAxis:0,...D};if(F){let f=O==="y"?"height":"width",a=H.reference[O]-H.floating[f]+b.mainAxis,s=H.reference[O]+H.reference[f]-b.mainAxis;if(A<a)A=a;else if(A>s)A=s}if(R){var y,k;let f=O==="y"?"width":"height",a=$V.has(l9(K)),s=H.reference[L]-H.floating[f]+(a?((y=B.offset)==null?void 0:y[L])||0:0)+(a?0:b.crossAxis),g=H.reference[L]+H.reference[f]+(a?0:((k=B.offset)==null?void 0:k[L])||0)-(a?b.crossAxis:0);if(C<s)C=s;else if(C>g)C=g}return{[O]:A,[L]:C}}}},KV=function(Q){if(Q===void 0)Q={};return{name:"size",options:Q,async fn($){var Y,G;let{placement:K,rects:H,platform:B,elements:z}=$,{apply:F=()=>{},...R}=p9(Q,$),N=await SX($,R),L=l9(K),O=m8(K),A=J9(K)==="y",{width:C,height:D}=H.floating,b,y;if(L==="top"||L==="bottom")b=L,y=O===(await(B.isRTL==null?void 0:B.isRTL(z.floating))?"start":"end")?"left":"right";else y=L,b=O==="end"?"top":"bottom";let k=D-N.top-N.bottom,f=C-N.left-N.right,a=f9(D-N[b],k),s=f9(C-N[y],f),g=!$.middlewareData.shift,c=a,h=s;if((Y=$.middlewareData.shift)!=null&&Y.enabled.x)h=f;if((G=$.middlewareData.shift)!=null&&G.enabled.y)c=k;if(g&&!O){let E=g4(N.left,0),_0=g4(N.right,0),t=g4(N.top,0),n=g4(N.bottom,0);if(A)h=C-2*(E!==0||_0!==0?E+_0:g4(N.left,N.right));else c=D-2*(t!==0||n!==0?t+n:g4(N.top,N.bottom))}await F({...$,availableWidth:h,availableHeight:c});let Z0=await B.getDimensions(z.floating);if(C!==Z0.width||D!==Z0.height)return{reset:{rects:!0}};return{}}}};function xq(){return typeof window<"u"}function p8(Q){if(HV(Q))return(Q.nodeName||"").toLowerCase();return"#document"}function n4(Q){var $;return(Q==null||($=Q.ownerDocument)==null?void 0:$.defaultView)||window}function $9(Q){var $;return($=(HV(Q)?Q.ownerDocument:Q.document)||window.document)==null?void 0:$.documentElement}function HV(Q){if(!xq())return!1;return Q instanceof Node||Q instanceof n4(Q).Node}function k2(Q){if(!xq())return!1;return Q instanceof Element||Q instanceof n4(Q).Element}function Y9(Q){if(!xq())return!1;return Q instanceof HTMLElement||Q instanceof n4(Q).HTMLElement}function WV(Q){if(!xq()||typeof ShadowRoot>"u")return!1;return Q instanceof ShadowRoot||Q instanceof n4(Q).ShadowRoot}var Ov=new Set(["inline","contents"]);function EX(Q){let{overflow:$,overflowX:Y,overflowY:G,display:K}=m2(Q);return/auto|scroll|overlay|hidden|clip/.test($+G+Y)&&!Ov.has(K)}var Av=new Set(["table","td","th"]);function BV(Q){return Av.has(p8(Q))}var Iv=[":popover-open",":modal"];function WJ(Q){return Iv.some(($)=>{try{return Q.matches($)}catch(Y){return!1}})}var Tv=["transform","translate","scale","rotate","perspective"],Vv=["transform","translate","scale","rotate","perspective","filter"],Pv=["paint","layout","strict","content"];function kq(Q){let $=mq(),Y=k2(Q)?m2(Q):Q;return Tv.some((G)=>Y[G]?Y[G]!=="none":!1)||(Y.containerType?Y.containerType!=="normal":!1)||!$&&(Y.backdropFilter?Y.backdropFilter!=="none":!1)||!$&&(Y.filter?Y.filter!=="none":!1)||Vv.some((G)=>(Y.willChange||"").includes(G))||Pv.some((G)=>(Y.contain||"").includes(G))}function UV(Q){let $=I6(Q);while(Y9($)&&!l8($)){if(kq($))return $;else if(WJ($))return null;$=I6($)}return null}function mq(){if(typeof CSS>"u"||!CSS.supports)return!1;return CSS.supports("-webkit-backdrop-filter","none")}var wv=new Set(["html","body","#document"]);function l8(Q){return wv.has(p8(Q))}function m2(Q){return n4(Q).getComputedStyle(Q)}function HJ(Q){if(k2(Q))return{scrollLeft:Q.scrollLeft,scrollTop:Q.scrollTop};return{scrollLeft:Q.scrollX,scrollTop:Q.scrollY}}function I6(Q){if(p8(Q)==="html")return Q;let $=Q.assignedSlot||Q.parentNode||WV(Q)&&Q.host||$9(Q);return WV($)?$.host:$}function zV(Q){let $=I6(Q);if(l8($))return Q.ownerDocument?Q.ownerDocument.body:Q.body;if(Y9($)&&EX($))return $;return zV($)}function f8(Q,$,Y){var G;if($===void 0)$=[];if(Y===void 0)Y=!0;let K=zV(Q),H=K===((G=Q.ownerDocument)==null?void 0:G.body),B=n4(K);if(H){let z=uq(B);return $.concat(B,B.visualViewport||[],EX(K)?K:[],z&&Y?f8(z):[])}return $.concat(K,f8(K,[],Y))}function uq(Q){return Q.parent&&Object.getPrototypeOf(Q.parent)?Q.frameElement:null}function NV(Q){let $=m2(Q),Y=parseFloat($.width)||0,G=parseFloat($.height)||0,K=Y9(Q),H=K?Q.offsetWidth:Y,B=K?Q.offsetHeight:G,z=GJ(Y)!==H||GJ(G)!==B;if(z)Y=H,G=B;return{width:Y,height:G,$:z}}function MU(Q){return!k2(Q)?Q.contextElement:Q}function bX(Q){let $=MU(Q);if(!Y9($))return Q9(1);let Y=$.getBoundingClientRect(),{width:G,height:K,$:H}=NV($),B=(H?GJ(Y.width):Y.width)/G,z=(H?GJ(Y.height):Y.height)/K;if(!B||!Number.isFinite(B))B=1;if(!z||!Number.isFinite(z))z=1;return{x:B,y:z}}var Cv=Q9(0);function RV(Q){let $=n4(Q);if(!mq()||!$.visualViewport)return Cv;return{x:$.visualViewport.offsetLeft,y:$.visualViewport.offsetTop}}function jv(Q,$,Y){if($===void 0)$=!1;if(!Y||$&&Y!==n4(Q))return!1;return $}function d8(Q,$,Y,G){if($===void 0)$=!1;if(Y===void 0)Y=!1;let K=Q.getBoundingClientRect(),H=MU(Q),B=Q9(1);if($)if(G){if(k2(G))B=bX(G)}else B=bX(Q);let z=jv(H,Y,G)?RV(H):Q9(0),F=(K.left+z.x)/B.x,R=(K.top+z.y)/B.y,N=K.width/B.x,L=K.height/B.y;if(H){let O=n4(H),A=G&&k2(G)?n4(G):G,C=O,D=uq(C);while(D&&G&&A!==C){let b=bX(D),y=D.getBoundingClientRect(),k=m2(D),f=y.left+(D.clientLeft+parseFloat(k.paddingLeft))*b.x,a=y.top+(D.clientTop+parseFloat(k.paddingTop))*b.y;F*=b.x,R*=b.y,N*=b.x,L*=b.y,F+=f,R+=a,C=n4(D),D=uq(C)}}return u8({width:N,height:L,x:F,y:R})}function fq(Q,$){let Y=HJ(Q).scrollLeft;if(!$)return d8($9(Q)).left+Y;return $.left+Y}function _V(Q,$){let Y=Q.getBoundingClientRect(),G=Y.left+$.scrollLeft-fq(Q,Y),K=Y.top+$.scrollTop;return{x:G,y:K}}function Dv(Q){let{elements:$,rect:Y,offsetParent:G,strategy:K}=Q,H=K==="fixed",B=$9(G),z=$?WJ($.floating):!1;if(G===B||z&&H)return Y;let F={scrollLeft:0,scrollTop:0},R=Q9(1),N=Q9(0),L=Y9(G);if(L||!L&&!H){if(p8(G)!=="body"||EX(B))F=HJ(G);if(Y9(G)){let A=d8(G);R=bX(G),N.x=A.x+G.clientLeft,N.y=A.y+G.clientTop}}let O=B&&!L&&!H?_V(B,F):Q9(0);return{width:Y.width*R.x,height:Y.height*R.y,x:Y.x*R.x-F.scrollLeft*R.x+N.x+O.x,y:Y.y*R.y-F.scrollTop*R.y+N.y+O.y}}function Sv(Q){return Array.from(Q.getClientRects())}function Ev(Q){let $=$9(Q),Y=HJ(Q),G=Q.ownerDocument.body,K=g4($.scrollWidth,$.clientWidth,G.scrollWidth,G.clientWidth),H=g4($.scrollHeight,$.clientHeight,G.scrollHeight,G.clientHeight),B=-Y.scrollLeft+fq(Q),z=-Y.scrollTop;if(m2(G).direction==="rtl")B+=g4($.clientWidth,G.clientWidth)-K;return{width:K,height:H,x:B,y:z}}var FV=25;function bv(Q,$){let Y=n4(Q),G=$9(Q),K=Y.visualViewport,H=G.clientWidth,B=G.clientHeight,z=0,F=0;if(K){H=K.width,B=K.height;let N=mq();if(!N||N&&$==="fixed")z=K.offsetLeft,F=K.offsetTop}let R=fq(G);if(R<=0){let N=G.ownerDocument,L=N.body,O=getComputedStyle(L),A=N.compatMode==="CSS1Compat"?parseFloat(O.marginLeft)+parseFloat(O.marginRight)||0:0,C=Math.abs(G.clientWidth-L.clientWidth-A);if(C<=FV)H-=C}else if(R<=FV)H+=R;return{width:H,height:B,x:z,y:F}}var yv=new Set(["absolute","fixed"]);function gv(Q,$){let Y=d8(Q,!0,$==="fixed"),G=Y.top+Q.clientTop,K=Y.left+Q.clientLeft,H=Y9(Q)?bX(Q):Q9(1),B=Q.clientWidth*H.x,z=Q.clientHeight*H.y,F=K*H.x,R=G*H.y;return{width:B,height:z,x:F,y:R}}function LV(Q,$,Y){let G;if($==="viewport")G=bv(Q,Y);else if($==="document")G=Ev($9(Q));else if(k2($))G=gv($,Y);else{let K=RV(Q);G={x:$.x-K.x,y:$.y-K.y,width:$.width,height:$.height}}return u8(G)}function OV(Q,$){let Y=I6(Q);if(Y===$||!k2(Y)||l8(Y))return!1;return m2(Y).position==="fixed"||OV(Y,$)}function hv(Q,$){let Y=$.get(Q);if(Y)return Y;let G=f8(Q,[],!1).filter((z)=>k2(z)&&p8(z)!=="body"),K=null,H=m2(Q).position==="fixed",B=H?I6(Q):Q;while(k2(B)&&!l8(B)){let z=m2(B),F=kq(B);if(!F&&z.position==="fixed")K=null;if(H?!F&&!K:!F&&z.position==="static"&&!!K&&yv.has(K.position)||EX(B)&&!F&&OV(Q,B))G=G.filter((N)=>N!==B);else K=z;B=I6(B)}return $.set(Q,G),G}function vv(Q){let{element:$,boundary:Y,rootBoundary:G,strategy:K}=Q,B=[...Y==="clippingAncestors"?WJ($)?[]:hv($,this._c):[].concat(Y),G],z=B[0],F=B.reduce((R,N)=>{let L=LV($,N,K);return R.top=g4(L.top,R.top),R.right=f9(L.right,R.right),R.bottom=f9(L.bottom,R.bottom),R.left=g4(L.left,R.left),R},LV($,z,K));return{width:F.right-F.left,height:F.bottom-F.top,x:F.left,y:F.top}}function xv(Q){let{width:$,height:Y}=NV(Q);return{width:$,height:Y}}function kv(Q,$,Y){let G=Y9($),K=$9($),H=Y==="fixed",B=d8(Q,!0,H,$),z={scrollLeft:0,scrollTop:0},F=Q9(0);function R(){F.x=fq(K)}if(G||!G&&!H){if(p8($)!=="body"||EX(K))z=HJ($);if(G){let A=d8($,!0,H,$);F.x=A.x+$.clientLeft,F.y=A.y+$.clientTop}else if(K)R()}if(H&&!G&&K)R();let N=K&&!G&&!H?_V(K,z):Q9(0),L=B.left+z.scrollLeft-F.x-N.x,O=B.top+z.scrollTop-F.y-N.y;return{x:L,y:O,width:B.width,height:B.height}}function LU(Q){return m2(Q).position==="static"}function MV(Q,$){if(!Y9(Q)||m2(Q).position==="fixed")return null;if($)return $(Q);let Y=Q.offsetParent;if($9(Q)===Y)Y=Y.ownerDocument.body;return Y}function AV(Q,$){let Y=n4(Q);if(WJ(Q))return Y;if(!Y9(Q)){let K=I6(Q);while(K&&!l8(K)){if(k2(K)&&!LU(K))return K;K=I6(K)}return Y}let G=MV(Q,$);while(G&&BV(G)&&LU(G))G=MV(G,$);if(G&&l8(G)&&LU(G)&&!kq(G))return Y;return G||UV(Q)||Y}var mv=async function(Q){let $=this.getOffsetParent||AV,Y=this.getDimensions,G=await Y(Q.floating);return{reference:kv(Q.reference,await $(Q.floating),Q.strategy),floating:{x:0,y:0,width:G.width,height:G.height}}};function uv(Q){return m2(Q).direction==="rtl"}var IV={convertOffsetParentRelativeRectToViewportRelativeRect:Dv,getDocumentElement:$9,getClippingRect:vv,getOffsetParent:AV,getElementRects:mv,getClientRects:Sv,getDimensions:xv,getScale:bX,isElement:k2,isRTL:uv};function TV(Q,$){return Q.x===$.x&&Q.y===$.y&&Q.width===$.width&&Q.height===$.height}function fv(Q,$){let Y=null,G,K=$9(Q);function H(){var z;clearTimeout(G),(z=Y)==null||z.disconnect(),Y=null}function B(z,F){if(z===void 0)z=!1;if(F===void 0)F=1;H();let R=Q.getBoundingClientRect(),{left:N,top:L,width:O,height:A}=R;if(!z)$();if(!O||!A)return;let C=KJ(L),D=KJ(K.clientWidth-(N+O)),b=KJ(K.clientHeight-(L+A)),y=KJ(N),f={rootMargin:-C+"px "+-D+"px "+-b+"px "+-y+"px",threshold:g4(0,f9(1,F))||1},a=!0;function s(g){let c=g[0].intersectionRatio;if(c!==F){if(!a)return B();if(!c)G=setTimeout(()=>{B(!1,0.0000001)},1000);else B(!1,c)}if(c===1&&!TV(R,Q.getBoundingClientRect()))B();a=!1}try{Y=new IntersectionObserver(s,{...f,root:K.ownerDocument})}catch(g){Y=new IntersectionObserver(s,f)}Y.observe(Q)}return B(!0),H}function NU(Q,$,Y,G){if(G===void 0)G={};let{ancestorScroll:K=!0,ancestorResize:H=!0,elementResize:B=typeof ResizeObserver==="function",layoutShift:z=typeof IntersectionObserver==="function",animationFrame:F=!1}=G,R=MU(Q),N=K||H?[...R?f8(R):[],...f8($)]:[];N.forEach((y)=>{K&&y.addEventListener("scroll",Y,{passive:!0}),H&&y.addEventListener("resize",Y)});let L=R&&z?fv(R,Y):null,O=-1,A=null;if(B){if(A=new ResizeObserver((y)=>{let[k]=y;if(k&&k.target===R&&A)A.unobserve($),cancelAnimationFrame(O),O=requestAnimationFrame(()=>{var f;(f=A)==null||f.observe($)});Y()}),R&&!F)A.observe(R);A.observe($)}let C,D=F?d8(Q):null;if(F)b();function b(){let y=d8(Q);if(D&&!TV(D,y))Y();D=y,C=requestAnimationFrame(b)}return Y(),()=>{var y;if(N.forEach((k)=>{K&&k.removeEventListener("scroll",Y),H&&k.removeEventListener("resize",Y)}),L==null||L(),(y=A)==null||y.disconnect(),A=null,F)cancelAnimationFrame(C)}}var VV=YV;var PV=qV,wV=QV,CV=KV,jV=JV,RU=XV;var DV=GV,_U=(Q,$,Y)=>{let G=new Map,K={platform:IV,...Y},H={...K.platform,_c:G};return ZV(Q,$,{...K,platform:H})};var v5=J0(k0(),1),EV=J0(k0(),1),bV=J0(V8(),1),pv=typeof document<"u",lv=function(){},pq=pv?EV.useLayoutEffect:lv;function lq(Q,$){if(Q===$)return!0;if(typeof Q!==typeof $)return!1;if(typeof Q==="function"&&Q.toString()===$.toString())return!0;let Y,G,K;if(Q&&$&&typeof Q==="object"){if(Array.isArray(Q)){if(Y=Q.length,Y!==$.length)return!1;for(G=Y;G--!==0;)if(!lq(Q[G],$[G]))return!1;return!0}if(K=Object.keys(Q),Y=K.length,Y!==Object.keys($).length)return!1;for(G=Y;G--!==0;)if(!{}.hasOwnProperty.call($,K[G]))return!1;for(G=Y;G--!==0;){let H=K[G];if(H==="_owner"&&Q.$$typeof)continue;if(!lq(Q[H],$[H]))return!1}return!0}return Q!==Q&&$!==$}function yV(Q){if(typeof window>"u")return 1;return(Q.ownerDocument.defaultView||window).devicePixelRatio||1}function SV(Q,$){let Y=yV(Q);return Math.round($*Y)/Y}function OU(Q){let $=v5.useRef(Q);return pq(()=>{$.current=Q}),$}function gV(Q){if(Q===void 0)Q={};let{placement:$="bottom",strategy:Y="absolute",middleware:G=[],platform:K,elements:{reference:H,floating:B}={},transform:z=!0,whileElementsMounted:F,open:R}=Q,[N,L]=v5.useState({x:0,y:0,strategy:Y,placement:$,middlewareData:{},isPositioned:!1}),[O,A]=v5.useState(G);if(!lq(O,G))A(G);let[C,D]=v5.useState(null),[b,y]=v5.useState(null),k=v5.useCallback((e)=>{if(e!==g.current)g.current=e,D(e)},[]),f=v5.useCallback((e)=>{if(e!==c.current)c.current=e,y(e)},[]),a=H||C,s=B||b,g=v5.useRef(null),c=v5.useRef(null),h=v5.useRef(N),Z0=F!=null,E=OU(F),_0=OU(K),t=OU(R),n=v5.useCallback(()=>{if(!g.current||!c.current)return;let e={placement:$,strategy:Y,middleware:O};if(_0.current)e.platform=_0.current;_U(g.current,c.current,e).then((U0)=>{let T={...U0,isPositioned:t.current!==!1};if(z0.current&&!lq(h.current,T))h.current=T,bV.flushSync(()=>{L(T)})})},[O,$,Y,_0,t]);pq(()=>{if(R===!1&&h.current.isPositioned)h.current.isPositioned=!1,L((e)=>({...e,isPositioned:!1}))},[R]);let z0=v5.useRef(!1);pq(()=>{return z0.current=!0,()=>{z0.current=!1}},[]),pq(()=>{if(a)g.current=a;if(s)c.current=s;if(a&&s){if(E.current)return E.current(a,s,n);n()}},[a,s,n,E,Z0]);let o=v5.useMemo(()=>({reference:g,floating:c,setReference:k,setFloating:f}),[k,f]),H0=v5.useMemo(()=>({reference:a,floating:s}),[a,s]),G0=v5.useMemo(()=>{let e={position:Y,left:0,top:0};if(!H0.floating)return e;let U0=SV(H0.floating,N.x),T=SV(H0.floating,N.y);if(z)return{...e,transform:"translate("+U0+"px, "+T+"px)",...yV(H0.floating)>=1.5&&{willChange:"transform"}};return{position:Y,left:U0,top:T}},[Y,z,H0.floating,N.x,N.y]);return v5.useMemo(()=>({...N,update:n,refs:o,elements:H0,floatingStyles:G0}),[N,n,o,H0,G0])}var dv=(Q)=>{function $(Y){return{}.hasOwnProperty.call(Y,"current")}return{name:"arrow",options:Q,fn(Y){let{element:G,padding:K}=typeof Q==="function"?Q(Y):Q;if(G&&$(G)){if(G.current!=null)return RU({element:G.current,padding:K}).fn(Y);return{}}if(G)return RU({element:G,padding:K}).fn(Y);return{}}}},hV=(Q,$)=>({...VV(Q),options:[Q,$]}),vV=(Q,$)=>({...PV(Q),options:[Q,$]}),xV=(Q,$)=>({...DV(Q),options:[Q,$]}),kV=(Q,$)=>({...wV(Q),options:[Q,$]}),mV=(Q,$)=>({...CV(Q),options:[Q,$]});var uV=(Q,$)=>({...jV(Q),options:[Q,$]});var fV=(Q,$)=>({...dv(Q),options:[Q,$]});var pV=J0(k0(),1);var AU=J0(l5(),1),iv="Arrow",lV=pV.forwardRef((Q,$)=>{let{children:Y,width:G=10,height:K=5,...H}=Q;return AU.jsx(A5.svg,{...H,ref:$,width:G,height:K,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:Q.asChild?Y:AU.jsx("polygon",{points:"0,0 30,0 15,10"})})});lV.displayName=iv;var dV=lV;var iV=J0(k0(),1);function cV(Q){let[$,Y]=iV.useState(void 0);return c4(()=>{if(Q){Y({width:Q.offsetWidth,height:Q.offsetHeight});let G=new ResizeObserver((K)=>{if(!Array.isArray(K))return;if(!K.length)return;let H=K[0],B,z;if("borderBoxSize"in H){let F=H.borderBoxSize,R=Array.isArray(F)?F[0]:F;B=R.inlineSize,z=R.blockSize}else B=Q.offsetWidth,z=Q.offsetHeight;Y({width:B,height:z})});return G.observe(Q,{box:"border-box"}),()=>G.unobserve(Q)}else Y(void 0)},[Q]),$}var w7=J0(l5(),1);var IU="Popper",[rV,TU]=_X(IU),[rv,aV]=rV(IU),nV=(Q)=>{let{__scopePopper:$,children:Y}=Q,[G,K]=s4.useState(null);return w7.jsx(rv,{scope:$,anchor:G,onAnchorChange:K,children:Y})};nV.displayName=IU;var sV="PopperAnchor",oV=s4.forwardRef((Q,$)=>{let{__scopePopper:Y,virtualRef:G,...K}=Q,H=aV(sV,Y),B=s4.useRef(null),z=W4($,B),F=s4.useRef(null);return s4.useEffect(()=>{let R=F.current;if(F.current=G?.current||B.current,R!==F.current)H.onAnchorChange(F.current)}),G?null:w7.jsx(A5.div,{...K,ref:z})});oV.displayName=sV;var VU="PopperContent",[av,nv]=rV(VU),tV=s4.forwardRef((Q,$)=>{let{__scopePopper:Y,side:G="bottom",sideOffset:K=0,align:H="center",alignOffset:B=0,arrowPadding:z=0,avoidCollisions:F=!0,collisionBoundary:R=[],collisionPadding:N=0,sticky:L="partial",hideWhenDetached:O=!1,updatePositionStrategy:A="optimized",onPlaced:C,...D}=Q,b=aV(VU,Y),[y,k]=s4.useState(null),f=W4($,(C0)=>k(C0)),[a,s]=s4.useState(null),g=cV(a),c=g?.width??0,h=g?.height??0,Z0=G+(H!=="center"?"-"+H:""),E=typeof N==="number"?N:{top:0,right:0,bottom:0,left:0,...N},_0=Array.isArray(R)?R:[R],t=_0.length>0,n={padding:E,boundary:_0.filter(ov),altBoundary:t},{refs:z0,floatingStyles:o,placement:H0,isPositioned:G0,middlewareData:e}=gV({strategy:"fixed",placement:Z0,whileElementsMounted:(...C0)=>{return NU(...C0,{animationFrame:A==="always"})},elements:{reference:b.anchor},middleware:[hV({mainAxis:K+h,alignmentAxis:B}),F&&vV({mainAxis:!0,crossAxis:!1,limiter:L==="partial"?xV():void 0,...n}),F&&kV({...n}),mV({...n,apply:({elements:C0,rects:u0,availableWidth:$1,availableHeight:v1})=>{let{width:R0,height:h0}=u0.reference,Y1=C0.floating.style;Y1.setProperty("--radix-popper-available-width",`${$1}px`),Y1.setProperty("--radix-popper-available-height",`${v1}px`),Y1.setProperty("--radix-popper-anchor-width",`${R0}px`),Y1.setProperty("--radix-popper-anchor-height",`${h0}px`)}}),a&&fV({element:a,padding:z}),tv({arrowWidth:c,arrowHeight:h}),O&&uV({strategy:"referenceHidden",...n})]}),[U0,T]=XP(H0),B0=u9(C);c4(()=>{if(G0)B0?.()},[G0,B0]);let r=e.arrow?.x,S=e.arrow?.y,L0=e.arrow?.centerOffset!==0,[A0,V0]=s4.useState();return c4(()=>{if(y)V0(window.getComputedStyle(y).zIndex)},[y]),w7.jsx("div",{ref:z0.setFloating,"data-radix-popper-content-wrapper":"",style:{...o,transform:G0?o.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:A0,["--radix-popper-transform-origin"]:[e.transformOrigin?.x,e.transformOrigin?.y].join(" "),...e.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:Q.dir,children:w7.jsx(av,{scope:Y,placedSide:U0,onArrowChange:s,arrowX:r,arrowY:S,shouldHideArrow:L0,children:w7.jsx(A5.div,{"data-side":U0,"data-align":T,...D,ref:f,style:{...D.style,animation:!G0?"none":void 0}})})})});tV.displayName=VU;var eV="PopperArrow",sv={top:"bottom",right:"left",bottom:"top",left:"right"},ZP=s4.forwardRef(function($,Y){let{__scopePopper:G,...K}=$,H=nv(eV,G),B=sv[H.placedSide];return w7.jsx("span",{ref:H.onArrowChange,style:{position:"absolute",left:H.arrowX,top:H.arrowY,[B]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[H.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[H.placedSide],visibility:H.shouldHideArrow?"hidden":void 0},children:w7.jsx(dV,{...K,ref:Y,style:{...K.style,display:"block"}})})});ZP.displayName=eV;function ov(Q){return Q!==null}var tv=(Q)=>({name:"transformOrigin",options:Q,fn($){let{placement:Y,rects:G,middlewareData:K}=$,B=K.arrow?.centerOffset!==0,z=B?0:Q.arrowWidth,F=B?0:Q.arrowHeight,[R,N]=XP(Y),L={start:"0%",center:"50%",end:"100%"}[N],O=(K.arrow?.x??0)+z/2,A=(K.arrow?.y??0)+F/2,C="",D="";if(R==="bottom")C=B?L:`${O}px`,D=`${-F}px`;else if(R==="top")C=B?L:`${O}px`,D=`${G.floating.height+F}px`;else if(R==="right")C=`${-F}px`,D=B?L:`${A}px`;else if(R==="left")C=`${G.floating.width+F}px`,D=B?L:`${A}px`;return{data:{x:C,y:D}}}});function XP(Q){let[$,Y="center"]=Q.split("-");return[$,Y]}var QP=nV,JP=oV,$P=tV,YP=ZP;var BJ=J0(k0(),1);var dq=J0(l5(),1);var Zx=Symbol("radix.slottable");function qP(Q){let $=({children:Y})=>{return dq.jsx(dq.Fragment,{children:Y})};return $.displayName=`${Q}.Slottable`,$.__radixId=Zx,$}var GP=J0(k0(),1);var KP=J0(l5(),1),Xx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Qx="VisuallyHidden",WP=GP.forwardRef((Q,$)=>{return KP.jsx(A5.span,{...Q,ref:$,style:{...Xx,...Q.style}})});WP.displayName=Qx;var HP=WP;var x5=J0(l5(),1),[iq,Uo]=_X("Tooltip",[TU]),cq=TU(),BP="TooltipProvider",$x=700,PU="tooltip.open",[Yx,CU]=iq(BP),UP=(Q)=>{let{__scopeTooltip:$,delayDuration:Y=$x,skipDelayDuration:G=300,disableHoverableContent:K=!1,children:H}=Q,B=O1.useRef(!0),z=O1.useRef(!1),F=O1.useRef(0);return O1.useEffect(()=>{let R=F.current;return()=>window.clearTimeout(R)},[]),x5.jsx(Yx,{scope:$,isOpenDelayedRef:B,delayDuration:Y,onOpen:O1.useCallback(()=>{window.clearTimeout(F.current),B.current=!1},[]),onClose:O1.useCallback(()=>{window.clearTimeout(F.current),F.current=window.setTimeout(()=>B.current=!0,G)},[G]),isPointerInTransitRef:z,onPointerInTransitChange:O1.useCallback((R)=>{z.current=R},[]),disableHoverableContent:K,children:H})};UP.displayName=BP;var UJ="Tooltip",[qx,zJ]=iq(UJ),zP=(Q)=>{let{__scopeTooltip:$,children:Y,open:G,defaultOpen:K,onOpenChange:H,disableHoverableContent:B,delayDuration:z}=Q,F=CU(UJ,Q.__scopeTooltip),R=cq($),[N,L]=O1.useState(null),O=N2(),A=O1.useRef(0),C=B??F.disableHoverableContent,D=z??F.delayDuration,b=O1.useRef(!1),[y,k]=Lq({prop:G,defaultProp:K??!1,onChange:(c)=>{if(c)F.onOpen(),document.dispatchEvent(new CustomEvent(PU));else F.onClose();H?.(c)},caller:UJ}),f=O1.useMemo(()=>{return y?b.current?"delayed-open":"instant-open":"closed"},[y]),a=O1.useCallback(()=>{window.clearTimeout(A.current),A.current=0,b.current=!1,k(!0)},[k]),s=O1.useCallback(()=>{window.clearTimeout(A.current),A.current=0,k(!1)},[k]),g=O1.useCallback(()=>{window.clearTimeout(A.current),A.current=window.setTimeout(()=>{b.current=!0,k(!0),A.current=0},D)},[D,k]);return O1.useEffect(()=>{return()=>{if(A.current)window.clearTimeout(A.current),A.current=0}},[]),x5.jsx(QP,{...R,children:x5.jsx(qx,{scope:$,contentId:O,open:y,stateAttribute:f,trigger:N,onTriggerChange:L,onTriggerEnter:O1.useCallback(()=>{if(F.isOpenDelayedRef.current)g();else a()},[F.isOpenDelayedRef,g,a]),onTriggerLeave:O1.useCallback(()=>{if(C)s();else window.clearTimeout(A.current),A.current=0},[s,C]),onOpen:a,onClose:s,disableHoverableContent:C,children:Y})})};zP.displayName=UJ;var wU="TooltipTrigger",FP=O1.forwardRef((Q,$)=>{let{__scopeTooltip:Y,...G}=Q,K=zJ(wU,Y),H=CU(wU,Y),B=cq(Y),z=O1.useRef(null),F=W4($,z,K.onTriggerChange),R=O1.useRef(!1),N=O1.useRef(!1),L=O1.useCallback(()=>R.current=!1,[]);return O1.useEffect(()=>{return()=>document.removeEventListener("pointerup",L)},[L]),x5.jsx(JP,{asChild:!0,...B,children:x5.jsx(A5.button,{"aria-describedby":K.open?K.contentId:void 0,"data-state":K.stateAttribute,...G,ref:F,onPointerMove:H4(Q.onPointerMove,(O)=>{if(O.pointerType==="touch")return;if(!N.current&&!H.isPointerInTransitRef.current)K.onTriggerEnter(),N.current=!0}),onPointerLeave:H4(Q.onPointerLeave,()=>{K.onTriggerLeave(),N.current=!1}),onPointerDown:H4(Q.onPointerDown,()=>{if(K.open)K.onClose();R.current=!0,document.addEventListener("pointerup",L,{once:!0})}),onFocus:H4(Q.onFocus,()=>{if(!R.current)K.onOpen()}),onBlur:H4(Q.onBlur,K.onClose),onClick:H4(Q.onClick,K.onClose)})})});FP.displayName=wU;var jU="TooltipPortal",[Gx,Kx]=iq(jU,{forceMount:void 0}),LP=(Q)=>{let{__scopeTooltip:$,forceMount:Y,children:G,container:K}=Q,H=zJ(jU,$);return x5.jsx(Gx,{scope:$,forceMount:Y,children:x5.jsx(T7,{present:Y||H.open,children:x5.jsx(QJ,{asChild:!0,container:K,children:G})})})};LP.displayName=jU;var yX="TooltipContent",MP=O1.forwardRef((Q,$)=>{let Y=Kx(yX,Q.__scopeTooltip),{forceMount:G=Y.forceMount,side:K="top",...H}=Q,B=zJ(yX,Q.__scopeTooltip);return x5.jsx(T7,{present:G||B.open,children:B.disableHoverableContent?x5.jsx(NP,{side:K,...H,ref:$}):x5.jsx(Wx,{side:K,...H,ref:$})})}),Wx=O1.forwardRef((Q,$)=>{let Y=zJ(yX,Q.__scopeTooltip),G=CU(yX,Q.__scopeTooltip),K=O1.useRef(null),H=W4($,K),[B,z]=O1.useState(null),{trigger:F,onClose:R}=Y,N=K.current,{onPointerInTransitChange:L}=G,O=O1.useCallback(()=>{z(null),L(!1)},[L]),A=O1.useCallback((C,D)=>{let b=C.currentTarget,y={x:C.clientX,y:C.clientY},k=Fx(y,b.getBoundingClientRect()),f=Lx(y,k),a=Mx(D.getBoundingClientRect()),s=Rx([...f,...a]);z(s),L(!0)},[L]);return O1.useEffect(()=>{return()=>O()},[O]),O1.useEffect(()=>{if(F&&N){let C=(b)=>A(b,N),D=(b)=>A(b,F);return F.addEventListener("pointerleave",C),N.addEventListener("pointerleave",D),()=>{F.removeEventListener("pointerleave",C),N.removeEventListener("pointerleave",D)}}},[F,N,A,O]),O1.useEffect(()=>{if(B){let C=(D)=>{let b=D.target,y={x:D.clientX,y:D.clientY},k=F?.contains(b)||N?.contains(b),f=!Nx(y,B);if(k)O();else if(f)O(),R()};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[F,N,B,R,O]),x5.jsx(NP,{...Q,ref:H})}),[Hx,Bx]=iq(UJ,{isInside:!1}),Ux=qP("TooltipContent"),NP=O1.forwardRef((Q,$)=>{let{__scopeTooltip:Y,children:G,"aria-label":K,onEscapeKeyDown:H,onPointerDownOutside:B,...z}=Q,F=zJ(yX,Y),R=cq(Y),{onClose:N}=F;return O1.useEffect(()=>{return document.addEventListener(PU,N),()=>document.removeEventListener(PU,N)},[N]),O1.useEffect(()=>{if(F.trigger){let L=(O)=>{if(O.target?.contains(F.trigger))N()};return window.addEventListener("scroll",L,{capture:!0}),()=>window.removeEventListener("scroll",L,{capture:!0})}},[F.trigger,N]),x5.jsx(XJ,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:H,onPointerDownOutside:B,onFocusOutside:(L)=>L.preventDefault(),onDismiss:N,children:x5.jsxs($P,{"data-state":F.stateAttribute,...R,...z,ref:$,style:{...z.style,...{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}},children:[x5.jsx(Ux,{children:G}),x5.jsx(Hx,{scope:Y,isInside:!0,children:x5.jsx(HP,{id:F.contentId,role:"tooltip",children:K||G})})]})})});MP.displayName=yX;var RP="TooltipArrow",zx=O1.forwardRef((Q,$)=>{let{__scopeTooltip:Y,...G}=Q,K=cq(Y);return Bx(RP,Y).isInside?null:x5.jsx(YP,{...K,...G,ref:$})});zx.displayName=RP;function Fx(Q,$){let Y=Math.abs($.top-Q.y),G=Math.abs($.bottom-Q.y),K=Math.abs($.right-Q.x),H=Math.abs($.left-Q.x);switch(Math.min(Y,G,K,H)){case H:return"left";case K:return"right";case Y:return"top";case G:return"bottom";default:throw Error("unreachable")}}function Lx(Q,$,Y=5){let G=[];switch($){case"top":G.push({x:Q.x-Y,y:Q.y+Y},{x:Q.x+Y,y:Q.y+Y});break;case"bottom":G.push({x:Q.x-Y,y:Q.y-Y},{x:Q.x+Y,y:Q.y-Y});break;case"left":G.push({x:Q.x+Y,y:Q.y-Y},{x:Q.x+Y,y:Q.y+Y});break;case"right":G.push({x:Q.x-Y,y:Q.y-Y},{x:Q.x-Y,y:Q.y+Y});break}return G}function Mx(Q){let{top:$,right:Y,bottom:G,left:K}=Q;return[{x:K,y:$},{x:Y,y:$},{x:Y,y:G},{x:K,y:G}]}function Nx(Q,$){let{x:Y,y:G}=Q,K=!1;for(let H=0,B=$.length-1;H<$.length;B=H++){let z=$[H],F=$[B],R=z.x,N=z.y,L=F.x,O=F.y;if(N>G!==O>G&&Y<(L-R)*(G-N)/(O-N)+R)K=!K}return K}function Rx(Q){let $=Q.slice();return $.sort((Y,G)=>{if(Y.x<G.x)return-1;else if(Y.x>G.x)return 1;else if(Y.y<G.y)return-1;else if(Y.y>G.y)return 1;else return 0}),_x($)}function _x(Q){if(Q.length<=1)return Q.slice();let $=[];for(let G=0;G<Q.length;G++){let K=Q[G];while($.length>=2){let H=$[$.length-1],B=$[$.length-2];if((H.x-B.x)*(K.y-B.y)>=(H.y-B.y)*(K.x-B.x))$.pop();else break}$.push(K)}$.pop();let Y=[];for(let G=Q.length-1;G>=0;G--){let K=Q[G];while(Y.length>=2){let H=Y[Y.length-1],B=Y[Y.length-2];if((H.x-B.x)*(K.y-B.y)>=(H.y-B.y)*(K.x-B.x))Y.pop();else break}Y.push(K)}if(Y.pop(),$.length===1&&Y.length===1&&$[0].x===Y[0].x&&$[0].y===Y[0].y)return $;else return $.concat(Y)}var _P=UP,OP=zP,AP=FP,IP=LP,DU=MP;var SU=J0(Q1(),1),VP=_P,PP=OP,wP=AP,EU=TP.forwardRef(({className:Q,sideOffset:$=4,...Y},G)=>SU.jsxDEV(IP,{children:SU.jsxDEV(DU,{ref:G,sideOffset:$,className:a0("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",Q),...Y},void 0,!1,void 0,this)},void 0,!1,void 0,this));EU.displayName=DU.displayName;var L1=J0(Q1(),1),Ax="sidebar_state",Ix=604800,Tx="16rem",Vx="18rem",Px="3rem",wx="b",CP=j1.createContext(null);function gX(){let Q=j1.useContext(CP);if(!Q)throw Error("useSidebar must be used within a SidebarProvider.");return Q}var bU=j1.forwardRef(({defaultOpen:Q=!0,open:$,onOpenChange:Y,className:G,style:K,children:H,...B},z)=>{let F=Uq(),[R,N]=j1.useState(!1),[L,O]=j1.useState(Q),A=$??L,C=j1.useCallback((k)=>{let f=typeof k==="function"?k(A):k;if(Y)Y(f);else O(f);document.cookie=`${Ax}=${f}; path=/; max-age=${Ix}`},[Y,A]),D=j1.useCallback(()=>{return F?N((k)=>!k):C((k)=>!k)},[F,C,N]);j1.useEffect(()=>{let k=(f)=>{if(f.key===wx&&(f.metaKey||f.ctrlKey))f.preventDefault(),D()};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[D]);let b=A?"expanded":"collapsed",y=j1.useMemo(()=>({state:b,open:A,setOpen:C,isMobile:F,openMobile:R,setOpenMobile:N,toggleSidebar:D}),[b,A,C,F,R,N,D]);return L1.jsxDEV(CP.Provider,{value:y,children:L1.jsxDEV(VP,{delayDuration:0,children:L1.jsxDEV("div",{style:{"--sidebar-width":Tx,"--sidebar-width-icon":Px,...K},className:a0("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",G),ref:z,...B,children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});bU.displayName="SidebarProvider";var yU=j1.forwardRef(({side:Q="left",variant:$="sidebar",collapsible:Y="offcanvas",className:G,children:K,...H},B)=>{let{isMobile:z,state:F,openMobile:R,setOpenMobile:N}=gX();if(Y==="none")return L1.jsxDEV("div",{className:a0("flex h-full w-[var(--sidebar-width)] flex-col bg-sidebar text-sidebar-foreground",G),ref:B,...H,children:K},void 0,!1,void 0,this);if(z)return L1.jsxDEV(pT,{open:R,onOpenChange:N,...H,children:L1.jsxDEV(WU,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[var(--sidebar-width)] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Vx},side:Q,children:[L1.jsxDEV(HU,{className:"sr-only",children:[L1.jsxDEV(BU,{children:"Sidebar"},void 0,!1,void 0,this),L1.jsxDEV(UU,{children:"Displays the mobile sidebar."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L1.jsxDEV("div",{className:"flex h-full w-full flex-col",children:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return L1.jsxDEV("div",{ref:B,className:"group peer hidden text-sidebar-foreground md:block","data-state":F,"data-collapsible":F==="collapsed"?Y:"","data-variant":$,"data-side":Q,children:[L1.jsxDEV("div",{className:a0("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",$==="floating"||$==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")},void 0,!1,void 0,this),L1.jsxDEV("div",{className:a0("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] transition-[left,right,width] duration-200 ease-linear md:flex",Q==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",$==="floating"||$==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",G),...H,children:L1.jsxDEV("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});yU.displayName="Sidebar";var gU=j1.forwardRef(({className:Q,onClick:$,...Y},G)=>{let{toggleSidebar:K}=gX();return L1.jsxDEV(yB,{ref:G,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:a0("h-7 w-7",Q),onClick:(H)=>{$?.(H),K()},...Y,children:[L1.jsxDEV(R7,{},void 0,!1,void 0,this),L1.jsxDEV("span",{className:"sr-only",children:"Toggle Sidebar"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});gU.displayName="SidebarTrigger";var hU=j1.forwardRef(({className:Q,...$},Y)=>{let{toggleSidebar:G}=gX();return L1.jsxDEV("button",{ref:Y,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:G,title:"Toggle Sidebar",className:a0("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",Q),...$},void 0,!1,void 0,this)});hU.displayName="SidebarRail";var Cx=j1.forwardRef(({className:Q,...$},Y)=>{return L1.jsxDEV("main",{ref:Y,className:a0("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",Q),...$},void 0,!1,void 0,this)});Cx.displayName="SidebarInset";var jx=j1.forwardRef(({className:Q,...$},Y)=>{return L1.jsxDEV(gB,{ref:Y,"data-sidebar":"input",className:a0("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",Q),...$},void 0,!1,void 0,this)});jx.displayName="SidebarInput";var vU=j1.forwardRef(({className:Q,...$},Y)=>{return L1.jsxDEV("div",{ref:Y,"data-sidebar":"header",className:a0("flex flex-col gap-2 p-2",Q),...$},void 0,!1,void 0,this)});vU.displayName="SidebarHeader";var xU=j1.forwardRef(({className:Q,...$},Y)=>{return L1.jsxDEV("div",{ref:Y,"data-sidebar":"footer",className:a0("flex flex-col gap-2 p-2",Q),...$},void 0,!1,void 0,this)});xU.displayName="SidebarFooter";var Dx=j1.forwardRef(({className:Q,...$},Y)=>{return L1.jsxDEV(ZJ,{ref:Y,"data-sidebar":"separator",className:a0("mx-2 w-auto bg-sidebar-border",Q),...$},void 0,!1,void 0,this)});Dx.displayName="SidebarSeparator";var kU=j1.forwardRef(({className:Q,...$},Y)=>{return L1.jsxDEV("div",{ref:Y,"data-sidebar":"content",className:a0("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",Q),...$},void 0,!1,void 0,this)});kU.displayName="SidebarContent";var mU=j1.forwardRef(({className:Q,...$},Y)=>{return L1.jsxDEV("div",{ref:Y,"data-sidebar":"group",className:a0("relative flex w-full min-w-0 flex-col p-2",Q),...$},void 0,!1,void 0,this)});mU.displayName="SidebarGroup";var uU=j1.forwardRef(({className:Q,asChild:$=!1,...Y},G)=>{return L1.jsxDEV($?O7:"div",{ref:G,"data-sidebar":"group-label",className:a0("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",Q),...Y},void 0,!1,void 0,this)});uU.displayName="SidebarGroupLabel";var Sx=j1.forwardRef(({className:Q,asChild:$=!1,...Y},G)=>{return L1.jsxDEV($?O7:"button",{ref:G,"data-sidebar":"group-action",className:a0("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",Q),...Y},void 0,!1,void 0,this)});Sx.displayName="SidebarGroupAction";var fU=j1.forwardRef(({className:Q,...$},Y)=>L1.jsxDEV("div",{ref:Y,"data-sidebar":"group-content",className:a0("w-full text-sm",Q),...$},void 0,!1,void 0,this));fU.displayName="SidebarGroupContent";var FJ=j1.forwardRef(({className:Q,...$},Y)=>L1.jsxDEV("ul",{ref:Y,"data-sidebar":"menu",className:a0("flex w-full min-w-0 flex-col gap-1",Q),...$},void 0,!1,void 0,this));FJ.displayName="SidebarMenu";var hX=j1.forwardRef(({className:Q,...$},Y)=>L1.jsxDEV("li",{ref:Y,"data-sidebar":"menu-item",className:a0("group/menu-item relative",Q),...$},void 0,!1,void 0,this));hX.displayName="SidebarMenuItem";var Ex=LX("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),vX=j1.forwardRef(({asChild:Q=!1,isActive:$=!1,variant:Y="default",size:G="default",tooltip:K,className:H,...B},z)=>{let F=Q?O7:"button",{isMobile:R,state:N}=gX(),L=L1.jsxDEV(F,{ref:z,"data-sidebar":"menu-button","data-size":G,"data-active":$,className:a0(Ex({variant:Y,size:G}),H),...B},void 0,!1,void 0,this);if(!K)return L;if(typeof K==="string")K={children:K};return L1.jsxDEV(PP,{children:[L1.jsxDEV(wP,{asChild:!0,children:L},void 0,!1,void 0,this),L1.jsxDEV(EU,{side:"right",align:"center",hidden:N!=="collapsed"||R,...K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});vX.displayName="SidebarMenuButton";var bx=j1.forwardRef(({className:Q,asChild:$=!1,showOnHover:Y=!1,...G},K)=>{return L1.jsxDEV($?O7:"button",{ref:K,"data-sidebar":"menu-action",className:a0("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",Y&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",Q),...G},void 0,!1,void 0,this)});bx.displayName="SidebarMenuAction";var yx=j1.forwardRef(({className:Q,...$},Y)=>L1.jsxDEV("div",{ref:Y,"data-sidebar":"menu-badge",className:a0("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",Q),...$},void 0,!1,void 0,this));yx.displayName="SidebarMenuBadge";var gx=j1.forwardRef(({className:Q,showIcon:$=!1,...Y},G)=>{let K=j1.useMemo(()=>{return`${Math.floor(Math.random()*40)+50}%`},[]);return L1.jsxDEV("div",{ref:G,"data-sidebar":"menu-skeleton",className:a0("flex h-8 items-center gap-2 rounded-md px-2",Q),...Y,children:[$&&L1.jsxDEV(zU,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"},void 0,!1,void 0,this),L1.jsxDEV(zU,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":K}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});gx.displayName="SidebarMenuSkeleton";var hx=j1.forwardRef(({className:Q,...$},Y)=>L1.jsxDEV("ul",{ref:Y,"data-sidebar":"menu-sub",className:a0("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",Q),...$},void 0,!1,void 0,this));hx.displayName="SidebarMenuSub";var vx=j1.forwardRef(({...Q},$)=>L1.jsxDEV("li",{ref:$,...Q},void 0,!1,void 0,this));vx.displayName="SidebarMenuSubItem";var xx=j1.forwardRef(({asChild:Q=!1,size:$="md",isActive:Y,className:G,...K},H)=>{return L1.jsxDEV(Q?O7:"a",{ref:H,"data-sidebar":"menu-sub-button","data-size":$,"data-active":Y,className:a0("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",$==="sm"&&"text-xs",$==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",G),...K},void 0,!1,void 0,this)});xx.displayName="SidebarMenuSubButton";var U1=J0(Q1(),1),kx=[{id:"kanban",label:"Kanban",icon:rQ,href:"#/"},{id:"tasks",label:"Tasks",icon:j8,href:"#/tasks"},{id:"docs",label:"Docs",icon:O4,href:"#/docs"}];function jP({currentPage:Q,isDark:$,onToggleTheme:Y,onSearchClick:G}){let{state:K}=gX(),H=Uq(),B=K==="expanded";return U1.jsxDEV(yU,{collapsible:"icon",variant:H?"floating":"sidebar",children:[U1.jsxDEV(vU,{children:[U1.jsxDEV(FJ,{children:U1.jsxDEV(hX,{children:U1.jsxDEV(vX,{size:"lg",asChild:!0,children:U1.jsxDEV("a",{href:"#/",children:[U1.jsxDEV("div",{className:"flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground",children:U1.jsxDEV("span",{className:"text-lg font-bold",children:"◆"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U1.jsxDEV("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[U1.jsxDEV("span",{className:"truncate font-semibold",children:"Knowns.dev"},void 0,!1,void 0,this),U1.jsxDEV("span",{className:"truncate text-xs",children:"Task Management"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),B&&U1.jsxDEV("div",{className:"px-2 pb-2",children:U1.jsxDEV("button",{type:"button",onClick:G,className:"flex w-full items-center gap-2 rounded-lg border bg-background px-3 py-2 text-sm text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors",children:[U1.jsxDEV(S8,{className:"h-4 w-4"},void 0,!1,void 0,this),U1.jsxDEV("span",{children:"Search..."},void 0,!1,void 0,this),U1.jsxDEV("kbd",{className:"ml-auto pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100",children:[U1.jsxDEV("span",{className:"text-xs",children:"⌘"},void 0,!1,void 0,this),"K"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U1.jsxDEV(kU,{children:U1.jsxDEV(mU,{children:[U1.jsxDEV(uU,{children:"Navigation"},void 0,!1,void 0,this),U1.jsxDEV(fU,{children:U1.jsxDEV(FJ,{children:kx.map((z)=>{let F=Q===z.id;return U1.jsxDEV(hX,{children:U1.jsxDEV(vX,{asChild:!0,isActive:F,tooltip:z.label,children:U1.jsxDEV("a",{href:z.href,children:[U1.jsxDEV(z.icon,{},void 0,!1,void 0,this),U1.jsxDEV("span",{children:z.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},z.id,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),U1.jsxDEV(xU,{children:[U1.jsxDEV(FJ,{children:[U1.jsxDEV(hX,{children:U1.jsxDEV(vX,{asChild:!0,isActive:Q==="config",tooltip:"Settings",children:U1.jsxDEV("a",{href:"#/config",children:[U1.jsxDEV(E8,{},void 0,!1,void 0,this),U1.jsxDEV("span",{children:"Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),U1.jsxDEV(hX,{children:U1.jsxDEV(vX,{onClick:Y,tooltip:$?"Light mode":"Dark mode",children:[$?U1.jsxDEV(oQ,{},void 0,!1,void 0,this):U1.jsxDEV(aQ,{},void 0,!1,void 0,this),U1.jsxDEV("span",{children:$?"Light mode":"Dark mode"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B&&U1.jsxDEV("div",{className:"px-3 py-2 text-xs text-sidebar-foreground/50",children:U1.jsxDEV("div",{className:"flex items-center justify-between",children:[U1.jsxDEV("a",{href:"https://github.com/knowns-dev/knowns",target:"_blank",rel:"noopener noreferrer",className:"hover:text-sidebar-foreground transition-colors",children:"Knowns"},void 0,!1,void 0,this),U1.jsxDEV("span",{className:"font-mono",children:"0.1.5"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U1.jsxDEV(hU,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Z5=J0(k0(),1);function lU(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var c8=lU();function hP(Q){c8=Q}var RJ={exec:()=>null};function m1(Q,$=""){let Y=typeof Q=="string"?Q:Q.source,G={replace:(K,H)=>{let B=typeof H=="string"?H:H.source;return B=B.replace(h4.caret,"$1"),Y=Y.replace(K,B),G},getRegex:()=>new RegExp(Y,$)};return G}var mx=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),h4={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:(Q)=>new RegExp(`^( {0,3}${Q})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(Q)=>new RegExp(`^ {0,${Math.min(3,Q-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(Q)=>new RegExp(`^ {0,${Math.min(3,Q-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(Q)=>new RegExp(`^ {0,${Math.min(3,Q-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(Q)=>new RegExp(`^ {0,${Math.min(3,Q-1)}}#`),htmlBeginRegex:(Q)=>new RegExp(`^ {0,${Math.min(3,Q-1)}}<(?:[a-z].*>|!--)`,"i")},ux=/^(?:[ \t]*(?:\n|$))+/,fx=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,px=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,_J=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,lx=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,dU=/(?:[*+-]|\d{1,9}[.)])/,vP=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,xP=m1(vP).replace(/bull/g,dU).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),dx=m1(vP).replace(/bull/g,dU).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),iU=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ix=/^[^\n]+/,cU=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,cx=m1(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",cU).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),rx=m1(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,dU).getRegex(),oq="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",rU=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ax=m1("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",rU).replace("tag",oq).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),kP=m1(iU).replace("hr",_J).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",oq).getRegex(),nx=m1(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",kP).getRegex(),aU={blockquote:nx,code:fx,def:cx,fences:px,heading:lx,hr:_J,html:ax,lheading:xP,list:rx,newline:ux,paragraph:kP,table:RJ,text:ix},DP=m1("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",_J).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",oq).getRegex(),sx={...aU,lheading:dx,table:DP,paragraph:m1(iU).replace("hr",_J).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",DP).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",oq).getRegex()},ox={...aU,html:m1(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",rU).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:RJ,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:m1(iU).replace("hr",_J).replace("heading",` *#{1,6} *[^
|
|
286
|
+
]`).replace("lheading",xP).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},tx=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ex=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,mP=/^( {2,}|\\)\n(?!\s*$)/,Zk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,tq=/[\p{P}\p{S}]/u,nU=/[\s\p{P}\p{S}]/u,uP=/[^\s\p{P}\p{S}]/u,Xk=m1(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,nU).getRegex(),fP=/(?!~)[\p{P}\p{S}]/u,Qk=/(?!~)[\s\p{P}\p{S}]/u,Jk=/(?:[^\s\p{P}\p{S}]|~)/u,$k=m1(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",mx?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),pP=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Yk=m1(pP,"u").replace(/punct/g,tq).getRegex(),qk=m1(pP,"u").replace(/punct/g,fP).getRegex(),lP="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Gk=m1(lP,"gu").replace(/notPunctSpace/g,uP).replace(/punctSpace/g,nU).replace(/punct/g,tq).getRegex(),Kk=m1(lP,"gu").replace(/notPunctSpace/g,Jk).replace(/punctSpace/g,Qk).replace(/punct/g,fP).getRegex(),Wk=m1("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,uP).replace(/punctSpace/g,nU).replace(/punct/g,tq).getRegex(),Hk=m1(/\\(punct)/,"gu").replace(/punct/g,tq).getRegex(),Bk=m1(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Uk=m1(rU).replace("(?:-->|$)","-->").getRegex(),zk=m1("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Uk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),aq=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Fk=m1(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",aq).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),dP=m1(/^!?\[(label)\]\[(ref)\]/).replace("label",aq).replace("ref",cU).getRegex(),iP=m1(/^!?\[(ref)\](?:\[\])?/).replace("ref",cU).getRegex(),Lk=m1("reflink|nolink(?!\\()","g").replace("reflink",dP).replace("nolink",iP).getRegex(),SP=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,sU={_backpedal:RJ,anyPunctuation:Hk,autolink:Bk,blockSkip:$k,br:mP,code:ex,del:RJ,emStrongLDelim:Yk,emStrongRDelimAst:Gk,emStrongRDelimUnd:Wk,escape:tx,link:Fk,nolink:iP,punctuation:Xk,reflink:dP,reflinkSearch:Lk,tag:zk,text:Zk,url:RJ},Mk={...sU,link:m1(/^!?\[(label)\]\((.*?)\)/).replace("label",aq).getRegex(),reflink:m1(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",aq).getRegex()},pU={...sU,emStrongRDelimAst:Kk,emStrongLDelim:qk,url:m1(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",SP).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:m1(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",SP).getRegex()},Nk={...pU,br:m1(mP).replace("{2,}","*").getRegex(),text:m1(pU.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},rq={normal:aU,gfm:sx,pedantic:ox},LJ={normal:sU,gfm:pU,breaks:Nk,pedantic:Mk},Rk={"&":"&","<":"<",">":">",'"':""","'":"'"},EP=(Q)=>Rk[Q];function T6(Q,$){if($){if(h4.escapeTest.test(Q))return Q.replace(h4.escapeReplace,EP)}else if(h4.escapeTestNoEncode.test(Q))return Q.replace(h4.escapeReplaceNoEncode,EP);return Q}function bP(Q){try{Q=encodeURI(Q).replace(h4.percentDecode,"%")}catch{return null}return Q}function yP(Q,$){let Y=Q.replace(h4.findPipe,(H,B,z)=>{let F=!1,R=B;for(;--R>=0&&z[R]==="\\";)F=!F;return F?"|":" |"}),G=Y.split(h4.splitPipe),K=0;if(G[0].trim()||G.shift(),G.length>0&&!G.at(-1)?.trim()&&G.pop(),$)if(G.length>$)G.splice($);else for(;G.length<$;)G.push("");for(;K<G.length;K++)G[K]=G[K].trim().replace(h4.slashPipe,"|");return G}function MJ(Q,$,Y){let G=Q.length;if(G===0)return"";let K=0;for(;K<G;){let H=Q.charAt(G-K-1);if(H===$&&!Y)K++;else if(H!==$&&Y)K++;else break}return Q.slice(0,G-K)}function _k(Q,$){if(Q.indexOf($[1])===-1)return-1;let Y=0;for(let G=0;G<Q.length;G++)if(Q[G]==="\\")G++;else if(Q[G]===$[0])Y++;else if(Q[G]===$[1]&&(Y--,Y<0))return G;return Y>0?-2:-1}function gP(Q,$,Y,G,K){let H=$.href,B=$.title||null,z=Q[1].replace(K.other.outputLinkReplace,"$1");G.state.inLink=!0;let F={type:Q[0].charAt(0)==="!"?"image":"link",raw:Y,href:H,title:B,text:z,tokens:G.inlineTokens(z)};return G.state.inLink=!1,F}function Ok(Q,$,Y){let G=Q.match(Y.other.indentCodeCompensation);if(G===null)return $;let K=G[1];return $.split(`
|
|
287
|
+
`).map((H)=>{let B=H.match(Y.other.beginningSpace);if(B===null)return H;let[z]=B;return z.length>=K.length?H.slice(K.length):H}).join(`
|
|
288
|
+
`)}var nq=class{options;rules;lexer;constructor(Q){this.options=Q||c8}space(Q){let $=this.rules.block.newline.exec(Q);if($&&$[0].length>0)return{type:"space",raw:$[0]}}code(Q){let $=this.rules.block.code.exec(Q);if($){let Y=$[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:$[0],codeBlockStyle:"indented",text:this.options.pedantic?Y:MJ(Y,`
|
|
289
|
+
`)}}}fences(Q){let $=this.rules.block.fences.exec(Q);if($){let Y=$[0],G=Ok(Y,$[3]||"",this.rules);return{type:"code",raw:Y,lang:$[2]?$[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):$[2],text:G}}}heading(Q){let $=this.rules.block.heading.exec(Q);if($){let Y=$[2].trim();if(this.rules.other.endingHash.test(Y)){let G=MJ(Y,"#");(this.options.pedantic||!G||this.rules.other.endingSpaceChar.test(G))&&(Y=G.trim())}return{type:"heading",raw:$[0],depth:$[1].length,text:Y,tokens:this.lexer.inline(Y)}}}hr(Q){let $=this.rules.block.hr.exec(Q);if($)return{type:"hr",raw:MJ($[0],`
|
|
290
|
+
`)}}blockquote(Q){let $=this.rules.block.blockquote.exec(Q);if($){let Y=MJ($[0],`
|
|
241
291
|
`).split(`
|
|
242
|
-
`),
|
|
243
|
-
`),
|
|
244
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");
|
|
245
|
-
${
|
|
246
|
-
${
|
|
247
|
-
`+
|
|
248
|
-
`),
|
|
249
|
-
`+
|
|
250
|
-
`),
|
|
251
|
-
`);continue}}return{type:"blockquote",raw:
|
|
252
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,(
|
|
253
|
-
`,1)[0],
|
|
254
|
-
`,
|
|
255
|
-
`,1)[0],
|
|
256
|
-
`+
|
|
257
|
-
`+
|
|
258
|
-
`,
|
|
259
|
-
`):[],
|
|
260
|
-
|
|
261
|
-
`),this.blockTokens(
|
|
262
|
-
`:
|
|
292
|
+
`),G="",K="",H=[];for(;Y.length>0;){let B=!1,z=[],F;for(F=0;F<Y.length;F++)if(this.rules.other.blockquoteStart.test(Y[F]))z.push(Y[F]),B=!0;else if(!B)z.push(Y[F]);else break;Y=Y.slice(F);let R=z.join(`
|
|
293
|
+
`),N=R.replace(this.rules.other.blockquoteSetextReplace,`
|
|
294
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");G=G?`${G}
|
|
295
|
+
${R}`:R,K=K?`${K}
|
|
296
|
+
${N}`:N;let L=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(N,H,!0),this.lexer.state.top=L,Y.length===0)break;let O=H.at(-1);if(O?.type==="code")break;if(O?.type==="blockquote"){let A=O,C=A.raw+`
|
|
297
|
+
`+Y.join(`
|
|
298
|
+
`),D=this.blockquote(C);H[H.length-1]=D,G=G.substring(0,G.length-A.raw.length)+D.raw,K=K.substring(0,K.length-A.text.length)+D.text;break}else if(O?.type==="list"){let A=O,C=A.raw+`
|
|
299
|
+
`+Y.join(`
|
|
300
|
+
`),D=this.list(C);H[H.length-1]=D,G=G.substring(0,G.length-O.raw.length)+D.raw,K=K.substring(0,K.length-A.raw.length)+D.raw,Y=C.substring(H.at(-1).raw.length).split(`
|
|
301
|
+
`);continue}}return{type:"blockquote",raw:G,tokens:H,text:K}}}list(Q){let $=this.rules.block.list.exec(Q);if($){let Y=$[1].trim(),G=Y.length>1,K={type:"list",raw:"",ordered:G,start:G?+Y.slice(0,-1):"",loose:!1,items:[]};Y=G?`\\d{1,9}\\${Y.slice(-1)}`:`\\${Y}`,this.options.pedantic&&(Y=G?Y:"[*+-]");let H=this.rules.other.listItemRegex(Y),B=!1;for(;Q;){let F=!1,R="",N="";if(!($=H.exec(Q))||this.rules.block.hr.test(Q))break;R=$[0],Q=Q.substring(R.length);let L=$[2].split(`
|
|
302
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,(D)=>" ".repeat(3*D.length)),O=Q.split(`
|
|
303
|
+
`,1)[0],A=!L.trim(),C=0;if(this.options.pedantic?(C=2,N=L.trimStart()):A?C=$[1].length+1:(C=$[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,N=L.slice(C),C+=$[1].length),A&&this.rules.other.blankLine.test(O)&&(R+=O+`
|
|
304
|
+
`,Q=Q.substring(O.length+1),F=!0),!F){let D=this.rules.other.nextBulletRegex(C),b=this.rules.other.hrRegex(C),y=this.rules.other.fencesBeginRegex(C),k=this.rules.other.headingBeginRegex(C),f=this.rules.other.htmlBeginRegex(C);for(;Q;){let a=Q.split(`
|
|
305
|
+
`,1)[0],s;if(O=a,this.options.pedantic?(O=O.replace(this.rules.other.listReplaceNesting," "),s=O):s=O.replace(this.rules.other.tabCharGlobal," "),y.test(O)||k.test(O)||f.test(O)||D.test(O)||b.test(O))break;if(s.search(this.rules.other.nonSpaceChar)>=C||!O.trim())N+=`
|
|
306
|
+
`+s.slice(C);else{if(A||L.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||y.test(L)||k.test(L)||b.test(L))break;N+=`
|
|
307
|
+
`+O}!A&&!O.trim()&&(A=!0),R+=a+`
|
|
308
|
+
`,Q=Q.substring(a.length+1),L=s.slice(C)}}K.loose||(B?K.loose=!0:this.rules.other.doubleBlankLine.test(R)&&(B=!0)),K.items.push({type:"list_item",raw:R,task:!!this.options.gfm&&this.rules.other.listIsTask.test(N),loose:!1,text:N,tokens:[]}),K.raw+=R}let z=K.items.at(-1);if(z)z.raw=z.raw.trimEnd(),z.text=z.text.trimEnd();else return;K.raw=K.raw.trimEnd();for(let F of K.items){if(this.lexer.state.top=!1,F.tokens=this.lexer.blockTokens(F.text,[]),F.task){if(F.text=F.text.replace(this.rules.other.listReplaceTask,""),F.tokens[0]?.type==="text"||F.tokens[0]?.type==="paragraph"){F.tokens[0].raw=F.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),F.tokens[0].text=F.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let N=this.lexer.inlineQueue.length-1;N>=0;N--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[N].src)){this.lexer.inlineQueue[N].src=this.lexer.inlineQueue[N].src.replace(this.rules.other.listReplaceTask,"");break}}let R=this.rules.other.listTaskCheckbox.exec(F.raw);if(R){let N={type:"checkbox",raw:R[0]+" ",checked:R[0]!=="[ ]"};F.checked=N.checked,K.loose?F.tokens[0]&&["paragraph","text"].includes(F.tokens[0].type)&&"tokens"in F.tokens[0]&&F.tokens[0].tokens?(F.tokens[0].raw=N.raw+F.tokens[0].raw,F.tokens[0].text=N.raw+F.tokens[0].text,F.tokens[0].tokens.unshift(N)):F.tokens.unshift({type:"paragraph",raw:N.raw,text:N.raw,tokens:[N]}):F.tokens.unshift(N)}}if(!K.loose){let R=F.tokens.filter((L)=>L.type==="space"),N=R.length>0&&R.some((L)=>this.rules.other.anyLine.test(L.raw));K.loose=N}}if(K.loose)for(let F of K.items){F.loose=!0;for(let R of F.tokens)R.type==="text"&&(R.type="paragraph")}return K}}html(Q){let $=this.rules.block.html.exec(Q);if($)return{type:"html",block:!0,raw:$[0],pre:$[1]==="pre"||$[1]==="script"||$[1]==="style",text:$[0]}}def(Q){let $=this.rules.block.def.exec(Q);if($){let Y=$[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),G=$[2]?$[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",K=$[3]?$[3].substring(1,$[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):$[3];return{type:"def",tag:Y,raw:$[0],href:G,title:K}}}table(Q){let $=this.rules.block.table.exec(Q);if(!$||!this.rules.other.tableDelimiter.test($[2]))return;let Y=yP($[1]),G=$[2].replace(this.rules.other.tableAlignChars,"").split("|"),K=$[3]?.trim()?$[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
309
|
+
`):[],H={type:"table",raw:$[0],header:[],align:[],rows:[]};if(Y.length===G.length){for(let B of G)this.rules.other.tableAlignRight.test(B)?H.align.push("right"):this.rules.other.tableAlignCenter.test(B)?H.align.push("center"):this.rules.other.tableAlignLeft.test(B)?H.align.push("left"):H.align.push(null);for(let B=0;B<Y.length;B++)H.header.push({text:Y[B],tokens:this.lexer.inline(Y[B]),header:!0,align:H.align[B]});for(let B of K)H.rows.push(yP(B,H.header.length).map((z,F)=>({text:z,tokens:this.lexer.inline(z),header:!1,align:H.align[F]})));return H}}lheading(Q){let $=this.rules.block.lheading.exec(Q);if($)return{type:"heading",raw:$[0],depth:$[2].charAt(0)==="="?1:2,text:$[1],tokens:this.lexer.inline($[1])}}paragraph(Q){let $=this.rules.block.paragraph.exec(Q);if($){let Y=$[1].charAt($[1].length-1)===`
|
|
310
|
+
`?$[1].slice(0,-1):$[1];return{type:"paragraph",raw:$[0],text:Y,tokens:this.lexer.inline(Y)}}}text(Q){let $=this.rules.block.text.exec(Q);if($)return{type:"text",raw:$[0],text:$[0],tokens:this.lexer.inline($[0])}}escape(Q){let $=this.rules.inline.escape.exec(Q);if($)return{type:"escape",raw:$[0],text:$[1]}}tag(Q){let $=this.rules.inline.tag.exec(Q);if($)return!this.lexer.state.inLink&&this.rules.other.startATag.test($[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test($[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test($[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test($[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:$[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:$[0]}}link(Q){let $=this.rules.inline.link.exec(Q);if($){let Y=$[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(Y)){if(!this.rules.other.endAngleBracket.test(Y))return;let H=MJ(Y.slice(0,-1),"\\");if((Y.length-H.length)%2===0)return}else{let H=_k($[2],"()");if(H===-2)return;if(H>-1){let B=($[0].indexOf("!")===0?5:4)+$[1].length+H;$[2]=$[2].substring(0,H),$[0]=$[0].substring(0,B).trim(),$[3]=""}}let G=$[2],K="";if(this.options.pedantic){let H=this.rules.other.pedanticHrefTitle.exec(G);H&&(G=H[1],K=H[3])}else K=$[3]?$[3].slice(1,-1):"";return G=G.trim(),this.rules.other.startAngleBracket.test(G)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(Y)?G=G.slice(1):G=G.slice(1,-1)),gP($,{href:G&&G.replace(this.rules.inline.anyPunctuation,"$1"),title:K&&K.replace(this.rules.inline.anyPunctuation,"$1")},$[0],this.lexer,this.rules)}}reflink(Q,$){let Y;if((Y=this.rules.inline.reflink.exec(Q))||(Y=this.rules.inline.nolink.exec(Q))){let G=(Y[2]||Y[1]).replace(this.rules.other.multipleSpaceGlobal," "),K=$[G.toLowerCase()];if(!K){let H=Y[0].charAt(0);return{type:"text",raw:H,text:H}}return gP(Y,K,Y[0],this.lexer,this.rules)}}emStrong(Q,$,Y=""){let G=this.rules.inline.emStrongLDelim.exec(Q);if(!G||G[3]&&Y.match(this.rules.other.unicodeAlphaNumeric))return;if(!(G[1]||G[2])||!Y||this.rules.inline.punctuation.exec(Y)){let K=[...G[0]].length-1,H,B,z=K,F=0,R=G[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(R.lastIndex=0,$=$.slice(-1*Q.length+K);(G=R.exec($))!=null;){if(H=G[1]||G[2]||G[3]||G[4]||G[5]||G[6],!H)continue;if(B=[...H].length,G[3]||G[4]){z+=B;continue}else if((G[5]||G[6])&&K%3&&!((K+B)%3)){F+=B;continue}if(z-=B,z>0)continue;B=Math.min(B,B+z+F);let N=[...G[0]][0].length,L=Q.slice(0,K+G.index+N+B);if(Math.min(K,B)%2){let A=L.slice(1,-1);return{type:"em",raw:L,text:A,tokens:this.lexer.inlineTokens(A)}}let O=L.slice(2,-2);return{type:"strong",raw:L,text:O,tokens:this.lexer.inlineTokens(O)}}}}codespan(Q){let $=this.rules.inline.code.exec(Q);if($){let Y=$[2].replace(this.rules.other.newLineCharGlobal," "),G=this.rules.other.nonSpaceChar.test(Y),K=this.rules.other.startingSpaceChar.test(Y)&&this.rules.other.endingSpaceChar.test(Y);return G&&K&&(Y=Y.substring(1,Y.length-1)),{type:"codespan",raw:$[0],text:Y}}}br(Q){let $=this.rules.inline.br.exec(Q);if($)return{type:"br",raw:$[0]}}del(Q){let $=this.rules.inline.del.exec(Q);if($)return{type:"del",raw:$[0],text:$[2],tokens:this.lexer.inlineTokens($[2])}}autolink(Q){let $=this.rules.inline.autolink.exec(Q);if($){let Y,G;return $[2]==="@"?(Y=$[1],G="mailto:"+Y):(Y=$[1],G=Y),{type:"link",raw:$[0],text:Y,href:G,tokens:[{type:"text",raw:Y,text:Y}]}}}url(Q){let $;if($=this.rules.inline.url.exec(Q)){let Y,G;if($[2]==="@")Y=$[0],G="mailto:"+Y;else{let K;do K=$[0],$[0]=this.rules.inline._backpedal.exec($[0])?.[0]??"";while(K!==$[0]);Y=$[0],$[1]==="www."?G="http://"+$[0]:G=$[0]}return{type:"link",raw:$[0],text:Y,href:G,tokens:[{type:"text",raw:Y,text:Y}]}}}inlineText(Q){let $=this.rules.inline.text.exec(Q);if($){let Y=this.lexer.state.inRawBlock;return{type:"text",raw:$[0],text:$[0],escaped:Y}}}},q9=class Q{tokens;options;state;inlineQueue;tokenizer;constructor($){this.tokens=[],this.tokens.links=Object.create(null),this.options=$||c8,this.options.tokenizer=this.options.tokenizer||new nq,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let Y={other:h4,block:rq.normal,inline:LJ.normal};this.options.pedantic?(Y.block=rq.pedantic,Y.inline=LJ.pedantic):this.options.gfm&&(Y.block=rq.gfm,this.options.breaks?Y.inline=LJ.breaks:Y.inline=LJ.gfm),this.tokenizer.rules=Y}static get rules(){return{block:rq,inline:LJ}}static lex($,Y){return new Q(Y).lex($)}static lexInline($,Y){return new Q(Y).inlineTokens($)}lex($){$=$.replace(h4.carriageReturn,`
|
|
311
|
+
`),this.blockTokens($,this.tokens);for(let Y=0;Y<this.inlineQueue.length;Y++){let G=this.inlineQueue[Y];this.inlineTokens(G.src,G.tokens)}return this.inlineQueue=[],this.tokens}blockTokens($,Y=[],G=!1){for(this.options.pedantic&&($=$.replace(h4.tabCharGlobal," ").replace(h4.spaceLine,""));$;){let K;if(this.options.extensions?.block?.some((B)=>(K=B.call({lexer:this},$,Y))?($=$.substring(K.raw.length),Y.push(K),!0):!1))continue;if(K=this.tokenizer.space($)){$=$.substring(K.raw.length);let B=Y.at(-1);K.raw.length===1&&B!==void 0?B.raw+=`
|
|
312
|
+
`:Y.push(K);continue}if(K=this.tokenizer.code($)){$=$.substring(K.raw.length);let B=Y.at(-1);B?.type==="paragraph"||B?.type==="text"?(B.raw+=(B.raw.endsWith(`
|
|
263
313
|
`)?"":`
|
|
264
|
-
`)+
|
|
265
|
-
`+
|
|
314
|
+
`)+K.raw,B.text+=`
|
|
315
|
+
`+K.text,this.inlineQueue.at(-1).src=B.text):Y.push(K);continue}if(K=this.tokenizer.fences($)){$=$.substring(K.raw.length),Y.push(K);continue}if(K=this.tokenizer.heading($)){$=$.substring(K.raw.length),Y.push(K);continue}if(K=this.tokenizer.hr($)){$=$.substring(K.raw.length),Y.push(K);continue}if(K=this.tokenizer.blockquote($)){$=$.substring(K.raw.length),Y.push(K);continue}if(K=this.tokenizer.list($)){$=$.substring(K.raw.length),Y.push(K);continue}if(K=this.tokenizer.html($)){$=$.substring(K.raw.length),Y.push(K);continue}if(K=this.tokenizer.def($)){$=$.substring(K.raw.length);let B=Y.at(-1);B?.type==="paragraph"||B?.type==="text"?(B.raw+=(B.raw.endsWith(`
|
|
266
316
|
`)?"":`
|
|
267
|
-
`)+
|
|
268
|
-
`+
|
|
317
|
+
`)+K.raw,B.text+=`
|
|
318
|
+
`+K.raw,this.inlineQueue.at(-1).src=B.text):this.tokens.links[K.tag]||(this.tokens.links[K.tag]={href:K.href,title:K.title},Y.push(K));continue}if(K=this.tokenizer.table($)){$=$.substring(K.raw.length),Y.push(K);continue}if(K=this.tokenizer.lheading($)){$=$.substring(K.raw.length),Y.push(K);continue}let H=$;if(this.options.extensions?.startBlock){let B=1/0,z=$.slice(1),F;this.options.extensions.startBlock.forEach((R)=>{F=R.call({lexer:this},z),typeof F=="number"&&F>=0&&(B=Math.min(B,F))}),B<1/0&&B>=0&&(H=$.substring(0,B+1))}if(this.state.top&&(K=this.tokenizer.paragraph(H))){let B=Y.at(-1);G&&B?.type==="paragraph"?(B.raw+=(B.raw.endsWith(`
|
|
269
319
|
`)?"":`
|
|
270
|
-
`)+
|
|
271
|
-
`+
|
|
320
|
+
`)+K.raw,B.text+=`
|
|
321
|
+
`+K.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=B.text):Y.push(K),G=H.length!==$.length,$=$.substring(K.raw.length);continue}if(K=this.tokenizer.text($)){$=$.substring(K.raw.length);let B=Y.at(-1);B?.type==="text"?(B.raw+=(B.raw.endsWith(`
|
|
272
322
|
`)?"":`
|
|
273
|
-
`)+
|
|
274
|
-
`+
|
|
275
|
-
`;return
|
|
276
|
-
`:"<pre><code>"+(
|
|
277
|
-
`}blockquote({tokens:
|
|
278
|
-
${this.parser.parse(
|
|
279
|
-
`}html({text:
|
|
280
|
-
`}hr(
|
|
281
|
-
`}list(
|
|
282
|
-
`+
|
|
283
|
-
`}listitem(
|
|
284
|
-
`}checkbox({checked:
|
|
285
|
-
`}table(
|
|
323
|
+
`)+K.raw,B.text+=`
|
|
324
|
+
`+K.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=B.text):Y.push(K);continue}if($){let B="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(B);break}else throw Error(B)}}return this.state.top=!0,Y}inline($,Y=[]){return this.inlineQueue.push({src:$,tokens:Y}),Y}inlineTokens($,Y=[]){let G=$,K=null;if(this.tokens.links){let F=Object.keys(this.tokens.links);if(F.length>0)for(;(K=this.tokenizer.rules.inline.reflinkSearch.exec(G))!=null;)F.includes(K[0].slice(K[0].lastIndexOf("[")+1,-1))&&(G=G.slice(0,K.index)+"["+"a".repeat(K[0].length-2)+"]"+G.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(K=this.tokenizer.rules.inline.anyPunctuation.exec(G))!=null;)G=G.slice(0,K.index)+"++"+G.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let H;for(;(K=this.tokenizer.rules.inline.blockSkip.exec(G))!=null;)H=K[2]?K[2].length:0,G=G.slice(0,K.index+H)+"["+"a".repeat(K[0].length-H-2)+"]"+G.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);G=this.options.hooks?.emStrongMask?.call({lexer:this},G)??G;let B=!1,z="";for(;$;){B||(z=""),B=!1;let F;if(this.options.extensions?.inline?.some((N)=>(F=N.call({lexer:this},$,Y))?($=$.substring(F.raw.length),Y.push(F),!0):!1))continue;if(F=this.tokenizer.escape($)){$=$.substring(F.raw.length),Y.push(F);continue}if(F=this.tokenizer.tag($)){$=$.substring(F.raw.length),Y.push(F);continue}if(F=this.tokenizer.link($)){$=$.substring(F.raw.length),Y.push(F);continue}if(F=this.tokenizer.reflink($,this.tokens.links)){$=$.substring(F.raw.length);let N=Y.at(-1);F.type==="text"&&N?.type==="text"?(N.raw+=F.raw,N.text+=F.text):Y.push(F);continue}if(F=this.tokenizer.emStrong($,G,z)){$=$.substring(F.raw.length),Y.push(F);continue}if(F=this.tokenizer.codespan($)){$=$.substring(F.raw.length),Y.push(F);continue}if(F=this.tokenizer.br($)){$=$.substring(F.raw.length),Y.push(F);continue}if(F=this.tokenizer.del($)){$=$.substring(F.raw.length),Y.push(F);continue}if(F=this.tokenizer.autolink($)){$=$.substring(F.raw.length),Y.push(F);continue}if(!this.state.inLink&&(F=this.tokenizer.url($))){$=$.substring(F.raw.length),Y.push(F);continue}let R=$;if(this.options.extensions?.startInline){let N=1/0,L=$.slice(1),O;this.options.extensions.startInline.forEach((A)=>{O=A.call({lexer:this},L),typeof O=="number"&&O>=0&&(N=Math.min(N,O))}),N<1/0&&N>=0&&(R=$.substring(0,N+1))}if(F=this.tokenizer.inlineText(R)){$=$.substring(F.raw.length),F.raw.slice(-1)!=="_"&&(z=F.raw.slice(-1)),B=!0;let N=Y.at(-1);N?.type==="text"?(N.raw+=F.raw,N.text+=F.text):Y.push(F);continue}if($){let N="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(N);break}else throw Error(N)}}return Y}},sq=class{options;parser;constructor(Q){this.options=Q||c8}space(Q){return""}code({text:Q,lang:$,escaped:Y}){let G=($||"").match(h4.notSpaceStart)?.[0],K=Q.replace(h4.endingNewline,"")+`
|
|
325
|
+
`;return G?'<pre><code class="language-'+T6(G)+'">'+(Y?K:T6(K,!0))+`</code></pre>
|
|
326
|
+
`:"<pre><code>"+(Y?K:T6(K,!0))+`</code></pre>
|
|
327
|
+
`}blockquote({tokens:Q}){return`<blockquote>
|
|
328
|
+
${this.parser.parse(Q)}</blockquote>
|
|
329
|
+
`}html({text:Q}){return Q}def(Q){return""}heading({tokens:Q,depth:$}){return`<h${$}>${this.parser.parseInline(Q)}</h${$}>
|
|
330
|
+
`}hr(Q){return`<hr>
|
|
331
|
+
`}list(Q){let{ordered:$,start:Y}=Q,G="";for(let B=0;B<Q.items.length;B++){let z=Q.items[B];G+=this.listitem(z)}let K=$?"ol":"ul",H=$&&Y!==1?' start="'+Y+'"':"";return"<"+K+H+`>
|
|
332
|
+
`+G+"</"+K+`>
|
|
333
|
+
`}listitem(Q){return`<li>${this.parser.parse(Q.tokens)}</li>
|
|
334
|
+
`}checkbox({checked:Q}){return"<input "+(Q?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:Q}){return`<p>${this.parser.parseInline(Q)}</p>
|
|
335
|
+
`}table(Q){let $="",Y="";for(let K=0;K<Q.header.length;K++)Y+=this.tablecell(Q.header[K]);$+=this.tablerow({text:Y});let G="";for(let K=0;K<Q.rows.length;K++){let H=Q.rows[K];Y="";for(let B=0;B<H.length;B++)Y+=this.tablecell(H[B]);G+=this.tablerow({text:Y})}return G&&(G=`<tbody>${G}</tbody>`),`<table>
|
|
286
336
|
<thead>
|
|
287
|
-
|
|
288
|
-
`+
|
|
289
|
-
`}tablerow({text:
|
|
290
|
-
${
|
|
291
|
-
`}tablecell(
|
|
292
|
-
`}strong({tokens:
|
|
293
|
-
Please report this to https://github.com/markedjs/marked.`,
|
|
294
|
-
${
|
|
295
|
-
${
|
|
337
|
+
`+$+`</thead>
|
|
338
|
+
`+G+`</table>
|
|
339
|
+
`}tablerow({text:Q}){return`<tr>
|
|
340
|
+
${Q}</tr>
|
|
341
|
+
`}tablecell(Q){let $=this.parser.parseInline(Q.tokens),Y=Q.header?"th":"td";return(Q.align?`<${Y} align="${Q.align}">`:`<${Y}>`)+$+`</${Y}>
|
|
342
|
+
`}strong({tokens:Q}){return`<strong>${this.parser.parseInline(Q)}</strong>`}em({tokens:Q}){return`<em>${this.parser.parseInline(Q)}</em>`}codespan({text:Q}){return`<code>${T6(Q,!0)}</code>`}br(Q){return"<br>"}del({tokens:Q}){return`<del>${this.parser.parseInline(Q)}</del>`}link({href:Q,title:$,tokens:Y}){let G=this.parser.parseInline(Y),K=bP(Q);if(K===null)return G;Q=K;let H='<a href="'+Q+'"';return $&&(H+=' title="'+T6($)+'"'),H+=">"+G+"</a>",H}image({href:Q,title:$,text:Y,tokens:G}){G&&(Y=this.parser.parseInline(G,this.parser.textRenderer));let K=bP(Q);if(K===null)return T6(Y);Q=K;let H=`<img src="${Q}" alt="${Y}"`;return $&&(H+=` title="${T6($)}"`),H+=">",H}text(Q){return"tokens"in Q&&Q.tokens?this.parser.parseInline(Q.tokens):("escaped"in Q)&&Q.escaped?Q.text:T6(Q.text)}},oU=class{strong({text:Q}){return Q}em({text:Q}){return Q}codespan({text:Q}){return Q}del({text:Q}){return Q}html({text:Q}){return Q}text({text:Q}){return Q}link({text:Q}){return""+Q}image({text:Q}){return""+Q}br(){return""}checkbox({raw:Q}){return Q}},G9=class Q{options;renderer;textRenderer;constructor($){this.options=$||c8,this.options.renderer=this.options.renderer||new sq,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new oU}static parse($,Y){return new Q(Y).parse($)}static parseInline($,Y){return new Q(Y).parseInline($)}parse($){let Y="";for(let G=0;G<$.length;G++){let K=$[G];if(this.options.extensions?.renderers?.[K.type]){let B=K,z=this.options.extensions.renderers[B.type].call({parser:this},B);if(z!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(B.type)){Y+=z||"";continue}}let H=K;switch(H.type){case"space":{Y+=this.renderer.space(H);break}case"hr":{Y+=this.renderer.hr(H);break}case"heading":{Y+=this.renderer.heading(H);break}case"code":{Y+=this.renderer.code(H);break}case"table":{Y+=this.renderer.table(H);break}case"blockquote":{Y+=this.renderer.blockquote(H);break}case"list":{Y+=this.renderer.list(H);break}case"checkbox":{Y+=this.renderer.checkbox(H);break}case"html":{Y+=this.renderer.html(H);break}case"def":{Y+=this.renderer.def(H);break}case"paragraph":{Y+=this.renderer.paragraph(H);break}case"text":{Y+=this.renderer.text(H);break}default:{let B='Token with "'+H.type+'" type was not found.';if(this.options.silent)return console.error(B),"";throw Error(B)}}}return Y}parseInline($,Y=this.renderer){let G="";for(let K=0;K<$.length;K++){let H=$[K];if(this.options.extensions?.renderers?.[H.type]){let z=this.options.extensions.renderers[H.type].call({parser:this},H);if(z!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(H.type)){G+=z||"";continue}}let B=H;switch(B.type){case"escape":{G+=Y.text(B);break}case"html":{G+=Y.html(B);break}case"link":{G+=Y.link(B);break}case"image":{G+=Y.image(B);break}case"checkbox":{G+=Y.checkbox(B);break}case"strong":{G+=Y.strong(B);break}case"em":{G+=Y.em(B);break}case"codespan":{G+=Y.codespan(B);break}case"br":{G+=Y.br(B);break}case"del":{G+=Y.del(B);break}case"text":{G+=Y.text(B);break}default:{let z='Token with "'+B.type+'" type was not found.';if(this.options.silent)return console.error(z),"";throw Error(z)}}}return G}},NJ=class{options;block;constructor(Q){this.options=Q||c8}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(Q){return Q}postprocess(Q){return Q}processAllTokens(Q){return Q}emStrongMask(Q){return Q}provideLexer(){return this.block?q9.lex:q9.lexInline}provideParser(){return this.block?G9.parse:G9.parseInline}},Ak=class{defaults=lU();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=G9;Renderer=sq;TextRenderer=oU;Lexer=q9;Tokenizer=nq;Hooks=NJ;constructor(...Q){this.use(...Q)}walkTokens(Q,$){let Y=[];for(let G of Q)switch(Y=Y.concat($.call(this,G)),G.type){case"table":{let K=G;for(let H of K.header)Y=Y.concat(this.walkTokens(H.tokens,$));for(let H of K.rows)for(let B of H)Y=Y.concat(this.walkTokens(B.tokens,$));break}case"list":{let K=G;Y=Y.concat(this.walkTokens(K.items,$));break}default:{let K=G;this.defaults.extensions?.childTokens?.[K.type]?this.defaults.extensions.childTokens[K.type].forEach((H)=>{let B=K[H].flat(1/0);Y=Y.concat(this.walkTokens(B,$))}):K.tokens&&(Y=Y.concat(this.walkTokens(K.tokens,$)))}}return Y}use(...Q){let $=this.defaults.extensions||{renderers:{},childTokens:{}};return Q.forEach((Y)=>{let G={...Y};if(G.async=this.defaults.async||G.async||!1,Y.extensions&&(Y.extensions.forEach((K)=>{if(!K.name)throw Error("extension name required");if("renderer"in K){let H=$.renderers[K.name];H?$.renderers[K.name]=function(...B){let z=K.renderer.apply(this,B);return z===!1&&(z=H.apply(this,B)),z}:$.renderers[K.name]=K.renderer}if("tokenizer"in K){if(!K.level||K.level!=="block"&&K.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let H=$[K.level];H?H.unshift(K.tokenizer):$[K.level]=[K.tokenizer],K.start&&(K.level==="block"?$.startBlock?$.startBlock.push(K.start):$.startBlock=[K.start]:K.level==="inline"&&($.startInline?$.startInline.push(K.start):$.startInline=[K.start]))}"childTokens"in K&&K.childTokens&&($.childTokens[K.name]=K.childTokens)}),G.extensions=$),Y.renderer){let K=this.defaults.renderer||new sq(this.defaults);for(let H in Y.renderer){if(!(H in K))throw Error(`renderer '${H}' does not exist`);if(["options","parser"].includes(H))continue;let B=H,z=Y.renderer[B],F=K[B];K[B]=(...R)=>{let N=z.apply(K,R);return N===!1&&(N=F.apply(K,R)),N||""}}G.renderer=K}if(Y.tokenizer){let K=this.defaults.tokenizer||new nq(this.defaults);for(let H in Y.tokenizer){if(!(H in K))throw Error(`tokenizer '${H}' does not exist`);if(["options","rules","lexer"].includes(H))continue;let B=H,z=Y.tokenizer[B],F=K[B];K[B]=(...R)=>{let N=z.apply(K,R);return N===!1&&(N=F.apply(K,R)),N}}G.tokenizer=K}if(Y.hooks){let K=this.defaults.hooks||new NJ;for(let H in Y.hooks){if(!(H in K))throw Error(`hook '${H}' does not exist`);if(["options","block"].includes(H))continue;let B=H,z=Y.hooks[B],F=K[B];NJ.passThroughHooks.has(H)?K[B]=(R)=>{if(this.defaults.async&&NJ.passThroughHooksRespectAsync.has(H))return(async()=>{let L=await z.call(K,R);return F.call(K,L)})();let N=z.call(K,R);return F.call(K,N)}:K[B]=(...R)=>{if(this.defaults.async)return(async()=>{let L=await z.apply(K,R);return L===!1&&(L=await F.apply(K,R)),L})();let N=z.apply(K,R);return N===!1&&(N=F.apply(K,R)),N}}G.hooks=K}if(Y.walkTokens){let K=this.defaults.walkTokens,H=Y.walkTokens;G.walkTokens=function(B){let z=[];return z.push(H.call(this,B)),K&&(z=z.concat(K.call(this,B))),z}}this.defaults={...this.defaults,...G}}),this}setOptions(Q){return this.defaults={...this.defaults,...Q},this}lexer(Q,$){return q9.lex(Q,$??this.defaults)}parser(Q,$){return G9.parse(Q,$??this.defaults)}parseMarkdown(Q){return($,Y)=>{let G={...Y},K={...this.defaults,...G},H=this.onError(!!K.silent,!!K.async);if(this.defaults.async===!0&&G.async===!1)return H(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof $>"u"||$===null)return H(Error("marked(): input parameter is undefined or null"));if(typeof $!="string")return H(Error("marked(): input parameter is of type "+Object.prototype.toString.call($)+", string expected"));if(K.hooks&&(K.hooks.options=K,K.hooks.block=Q),K.async)return(async()=>{let B=K.hooks?await K.hooks.preprocess($):$,z=await(K.hooks?await K.hooks.provideLexer():Q?q9.lex:q9.lexInline)(B,K),F=K.hooks?await K.hooks.processAllTokens(z):z;K.walkTokens&&await Promise.all(this.walkTokens(F,K.walkTokens));let R=await(K.hooks?await K.hooks.provideParser():Q?G9.parse:G9.parseInline)(F,K);return K.hooks?await K.hooks.postprocess(R):R})().catch(H);try{K.hooks&&($=K.hooks.preprocess($));let B=(K.hooks?K.hooks.provideLexer():Q?q9.lex:q9.lexInline)($,K);K.hooks&&(B=K.hooks.processAllTokens(B)),K.walkTokens&&this.walkTokens(B,K.walkTokens);let z=(K.hooks?K.hooks.provideParser():Q?G9.parse:G9.parseInline)(B,K);return K.hooks&&(z=K.hooks.postprocess(z)),z}catch(B){return H(B)}}}onError(Q,$){return(Y)=>{if(Y.message+=`
|
|
343
|
+
Please report this to https://github.com/markedjs/marked.`,Q){let G="<p>An error occurred:</p><pre>"+T6(Y.message+"",!0)+"</pre>";return $?Promise.resolve(G):G}if($)return Promise.reject(Y);throw Y}}},i8=new Ak;function d1(Q,$){return i8.parse(Q,$)}d1.options=d1.setOptions=function(Q){return i8.setOptions(Q),d1.defaults=i8.defaults,hP(d1.defaults),d1};d1.getDefaults=lU;d1.defaults=c8;d1.use=function(...Q){return i8.use(...Q),d1.defaults=i8.defaults,hP(d1.defaults),d1};d1.walkTokens=function(Q,$){return i8.walkTokens(Q,$)};d1.parseInline=i8.parseInline;d1.Parser=G9;d1.parser=G9.parse;d1.Renderer=sq;d1.TextRenderer=oU;d1.Lexer=q9;d1.lexer=q9.lex;d1.Tokenizer=nq;d1.Hooks=NJ;d1.parse=d1;var{options:Eo,setOptions:bo,use:yo,walkTokens:go,parseInline:ho}=d1;var vo=G9.parse,xo=q9.lex;var K9=J0(k0(),1);var tU={description:{begin:"<!-- SECTION:DESCRIPTION:BEGIN -->",end:"<!-- SECTION:DESCRIPTION:END -->"},plan:{begin:"<!-- SECTION:PLAN:BEGIN -->",end:"<!-- SECTION:PLAN:END -->"},notes:{begin:"<!-- SECTION:NOTES:BEGIN -->",end:"<!-- SECTION:NOTES:END -->"},ac:{begin:"<!-- AC:BEGIN -->",end:"<!-- AC:END -->"}};function Ik(Q,$){let Y=tU[$];if(!Y)return Q;let G=Q.indexOf(Y.begin),K=Q.indexOf(Y.end);if(G===-1||K===-1)return Q;return Q.substring(G+Y.begin.length,K).trim()}function Tk(Q,$){let Y=tU[$];if(!Y)return Q;return`${Y.begin}
|
|
344
|
+
${Q.trim()}
|
|
345
|
+
${Y.end}`}function cP(Q,$){let Y=tU[$];if(!Y)return!1;return Q.includes(Y.begin)&&Q.includes(Y.end)}function rP(Q){return Q.replace(/<!--[\s\S]*?-->/g,"")}function xX(Q,$){if(!Q)return"";if(!$)return Q;return cP(Q,$)?Ik(Q,$):Q}function eU(Q,$,Y){if(!Q)return"";if(!Y)return Q;if(cP($,Y))return Tk(Q,Y);return Q}var C7=J0(Q1(),1),aP=K9.forwardRef(({markdown:Q,onChange:$,placeholder:Y,readOnly:G=!1,sectionType:K},H)=>{let{isDark:B}=F5(),z=K9.useRef(null),[F,R]=K9.useState(!1),[N,L]=K9.useState(()=>xX(Q,K)),O=xX(Q,K);K9.useEffect(()=>{L(O)},[O]);let A=(D)=>{let b=D.target.value;L(b);let y=eU(b,Q,K);$(y)};return K9.useImperativeHandle(H,()=>({setMarkdown:(D)=>{let b=xX(D,K);if(z.current)z.current.value=b},getMarkdown:()=>{let D=z.current?.value||"";return eU(D,Q,K)}}),[Q,K]),C7.jsxDEV("div",{className:`rounded-lg border transition-colors ${B?"border-gray-700 bg-gray-800":"border-gray-300 bg-white"}`,children:[C7.jsxDEV("div",{className:`flex items-center justify-between px-3 py-2 border-b ${B?"border-gray-700":"border-gray-300"}`,children:[C7.jsxDEV("div",{className:`text-xs ${B?"text-gray-400":"text-gray-500"}`,children:"Markdown supported"},void 0,!1,void 0,this),C7.jsxDEV("button",{type:"button",onClick:()=>R(!F),className:`text-xs px-2 py-1 rounded ${F?B?"bg-blue-600 text-white":"bg-blue-500 text-white":B?"bg-gray-700 text-gray-300 hover:bg-gray-600":"bg-gray-200 text-gray-700 hover:bg-gray-300"}`,children:F?"Edit":"Preview"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F?C7.jsxDEV("div",{className:`p-4 min-h-[150px] prose prose-sm max-w-none ${B?"prose-invert":""}`,dangerouslySetInnerHTML:(()=>{return{__html:d1.parse(N||"",{async:!1})}})()},void 0,!1,void 0,this):C7.jsxDEV("textarea",{ref:z,value:N,onChange:A,placeholder:Y||"Type markdown here...",readOnly:G,className:`w-full p-4 min-h-[150px] resize-y focus:outline-none font-mono text-sm ${B?"bg-gray-800 text-gray-200 placeholder-gray-500":"bg-white text-gray-900 placeholder-gray-400"}`},void 0,!1,void 0,this),C7.jsxDEV("style",{children:`
|
|
296
346
|
.prose h1 {
|
|
297
347
|
font-size: 2em;
|
|
298
348
|
font-weight: bold;
|
|
@@ -322,15 +372,15 @@ ${L.end}`}function zL(N,v){let L=jG[v];if(!L)return!1;return N.includes(L.begin)
|
|
|
322
372
|
}
|
|
323
373
|
|
|
324
374
|
.prose blockquote {
|
|
325
|
-
border-left: 3px solid ${
|
|
375
|
+
border-left: 3px solid ${B?"#60a5fa":"#3b82f6"};
|
|
326
376
|
padding-left: 1em;
|
|
327
377
|
margin: 1em 0;
|
|
328
|
-
color: ${
|
|
378
|
+
color: ${B?"#9ca3af":"#6b7280"};
|
|
329
379
|
}
|
|
330
380
|
|
|
331
381
|
.prose code {
|
|
332
|
-
background-color: ${
|
|
333
|
-
color: ${
|
|
382
|
+
background-color: ${B?"#374151":"#f3f4f6"};
|
|
383
|
+
color: ${B?"#60a5fa":"#ef4444"};
|
|
334
384
|
padding: 0.2em 0.4em;
|
|
335
385
|
border-radius: 0.25rem;
|
|
336
386
|
font-family: "Courier New", Courier, monospace;
|
|
@@ -338,8 +388,8 @@ ${L.end}`}function zL(N,v){let L=jG[v];if(!L)return!1;return N.includes(L.begin)
|
|
|
338
388
|
}
|
|
339
389
|
|
|
340
390
|
.prose pre {
|
|
341
|
-
background-color: ${
|
|
342
|
-
border: 1px solid ${
|
|
391
|
+
background-color: ${B?"#1f2937":"#f9fafb"};
|
|
392
|
+
border: 1px solid ${B?"#374151":"#e5e7eb"};
|
|
343
393
|
padding: 0.75em 1em;
|
|
344
394
|
border-radius: 0.375rem;
|
|
345
395
|
overflow-x: auto;
|
|
@@ -349,18 +399,18 @@ ${L.end}`}function zL(N,v){let L=jG[v];if(!L)return!1;return N.includes(L.begin)
|
|
|
349
399
|
.prose pre code {
|
|
350
400
|
background-color: transparent;
|
|
351
401
|
padding: 0;
|
|
352
|
-
color: ${
|
|
402
|
+
color: ${B?"#e5e7eb":"#1f2937"};
|
|
353
403
|
font-size: 0.875em;
|
|
354
404
|
}
|
|
355
405
|
|
|
356
406
|
.prose hr {
|
|
357
407
|
border: none;
|
|
358
|
-
border-top: 2px solid ${
|
|
408
|
+
border-top: 2px solid ${B?"#374151":"#e5e7eb"};
|
|
359
409
|
margin: 2em 0;
|
|
360
410
|
}
|
|
361
411
|
|
|
362
412
|
.prose a {
|
|
363
|
-
color: ${
|
|
413
|
+
color: ${B?"#60a5fa":"#3b82f6"};
|
|
364
414
|
text-decoration: underline;
|
|
365
415
|
}
|
|
366
416
|
|
|
@@ -371,61 +421,32 @@ ${L.end}`}function zL(N,v){let L=jG[v];if(!L)return!1;return N.includes(L.begin)
|
|
|
371
421
|
.prose em {
|
|
372
422
|
font-style: italic;
|
|
373
423
|
}
|
|
374
|
-
`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});NL.displayName="MarkdownEditor";var l7=NL;var V=w0(W2(),1),vL=[{value:"todo",label:"To Do",lightColor:"bg-gray-100 text-gray-700",darkColor:"bg-gray-700 text-gray-300"},{value:"in-progress",label:"In Progress",lightColor:"bg-blue-100 text-blue-700",darkColor:"bg-blue-900/50 text-blue-300"},{value:"in-review",label:"In Review",lightColor:"bg-purple-100 text-purple-700",darkColor:"bg-purple-900/50 text-purple-300"},{value:"done",label:"Done",lightColor:"bg-green-100 text-green-700",darkColor:"bg-green-900/50 text-green-300"},{value:"blocked",label:"Blocked",lightColor:"bg-red-100 text-red-700",darkColor:"bg-red-900/50 text-red-300"}],JL=[{value:"low",label:"Low",lightColor:"bg-gray-100 text-gray-600",darkColor:"bg-gray-700 text-gray-300"},{value:"medium",label:"Medium",lightColor:"bg-yellow-100 text-yellow-700",darkColor:"bg-yellow-900/50 text-yellow-300"},{value:"high",label:"High",lightColor:"bg-red-100 text-red-700",darkColor:"bg-red-900/50 text-red-300"}],d7={Close:()=>V.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:V.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Description:()=>V.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:V.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h7"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Checklist:()=>V.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:V.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),User:()=>V.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:V.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Plus:()=>V.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:V.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Trash:()=>V.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:V.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Parent:()=>V.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:V.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 10l7-7m0 0l7 7m-7-7v18"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};function EG({isOpen:N,allTasks:v,onClose:L,onCreated:g}){let{isDark:q}=w2(),R=M2.useRef(null),K=M2.useRef(null),F=M2.useRef(null),[b,E]=M2.useState(""),[I,_]=M2.useState(""),[T,t]=M2.useState("todo"),[B0,j]=M2.useState("medium"),[Z0,K0]=M2.useState(""),[_0,k]=M2.useState([]),[Y0,v0]=M2.useState(""),[C0,e0]=M2.useState([]),[p,D0]=M2.useState(!1),[i,B2]=M2.useState(null),[S0,M0]=M2.useState(!1),[G2,c]=M2.useState(""),[z0,e]=M2.useState(!1),[U0,a]=M2.useState(""),[u,G0]=M2.useState(!1),[F0,P0]=M2.useState(!1),x0=M2.useRef(null);M2.useEffect(()=>{if(N)R.current?.showModal(),setTimeout(()=>F.current?.focus(),100);else R.current?.close(),E(""),_(""),t("todo"),j("medium"),K0(""),k([]),v0(""),e0([]),B2(null),M0(!1),c(""),e(!1),a(""),G0(!1),P0(!1)},[N]),M2.useEffect(()=>{if(z0&&x0.current)x0.current.focus()},[z0]);let C2=(W0)=>{if(K.current&&!K.current.contains(W0.target))L()},$2=M2.useCallback((W0)=>{if(W0.key==="Escape"&&!z0&&!u)L()},[L,z0,u]),S2=()=>{if(!G2.trim())return;e0([...C0,{id:crypto.randomUUID(),text:G2.trim()}]),c(""),e(!1)},V2=(W0)=>{e0(C0.filter((S1)=>S1.id!==W0))},X1=()=>{if(!U0.trim())return;if(!_0.includes(U0.trim()))k([..._0,U0.trim()]);a(""),G0(!1)},l1=(W0)=>{k(_0.filter((S1)=>S1!==W0))},s=async(W0)=>{if(W0.preventDefault(),B2(null),!b.trim()){B2("Title is required");return}D0(!0);try{let S1={title:b.trim(),description:I.trim()||void 0,status:T,priority:B0,labels:_0,assignee:Z0.trim()||void 0,parent:Y0||void 0,acceptanceCriteria:C0.map((F4)=>({text:F4.text,completed:!1}))};await DQ(S1),M0(!0),setTimeout(()=>{g(),L()},800)}catch(S1){B2(S1 instanceof Error?S1.message:"Failed to create task")}finally{D0(!1)}},Q0=vL.find((W0)=>W0.value===T),r0=JL.find((W0)=>W0.value===B0),a0=Y0?v.find((W0)=>W0.id===Y0):null,u0=q?"bg-gray-800":"bg-gray-100",m0=q?"bg-gray-700":"bg-white",J2=q?"bg-gray-750":"bg-gray-50",L0=q?"text-gray-100":"text-gray-900",X2=q?"text-gray-300":"text-gray-700",T0=q?"text-gray-400":"text-gray-500",y1=q?"border-gray-600":"border-gray-200",g1=q?"bg-gray-600 border-gray-500 text-gray-100 placeholder-gray-400":"bg-white border-gray-200 text-gray-900 placeholder-gray-400",n2=q?"hover:bg-gray-600":"hover:bg-gray-100";return V.jsxDEV("dialog",{ref:R,className:"fixed inset-0 bg-transparent p-0 m-0 max-w-none w-full h-full backdrop:bg-black backdrop:bg-opacity-60",onClick:C2,onKeyDown:$2,"aria-labelledby":"create-task-title",children:V.jsxDEV("div",{className:"flex justify-center pt-12 pb-8 px-4 min-h-full",children:V.jsxDEV("div",{ref:K,className:`${u0} rounded-xl shadow-2xl w-full max-w-4xl max-h-[calc(100vh-80px)] overflow-hidden flex flex-col`,children:[V.jsxDEV("div",{className:"bg-gradient-to-r from-green-500 to-green-600 px-6 py-4 flex items-start justify-between",children:[V.jsxDEV("div",{className:"flex-1 min-w-0",children:[V.jsxDEV("span",{className:"text-green-100 text-sm font-medium",children:"New Task"},void 0,!1,void 0,this),V.jsxDEV("input",{ref:F,type:"text",value:b,onChange:(W0)=>E(W0.target.value),placeholder:"Enter task title...",className:"w-full text-xl font-bold bg-white/20 text-white placeholder-white/60 border-0 rounded px-2 py-1 mt-1 focus:outline-none focus:ring-2 focus:ring-white/50",disabled:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V.jsxDEV("button",{type:"button",onClick:L,className:"text-white/80 hover:text-white hover:bg-white/20 rounded-full p-2 ml-4 transition-colors","aria-label":"Close",children:V.jsxDEV(d7.Close,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),(S0||i)&&V.jsxDEV("div",{className:"px-6 pt-4",children:[S0&&V.jsxDEV("div",{className:`${q?"bg-green-900/50 border-green-700 text-green-300":"bg-green-50 border-green-200 text-green-700"} border px-4 py-2 rounded-lg text-sm`,children:"Task created successfully!"},void 0,!1,void 0,this),i&&V.jsxDEV("div",{className:`${q?"bg-red-900/50 border-red-700 text-red-300":"bg-red-50 border-red-200 text-red-700"} border px-4 py-2 rounded-lg text-sm`,children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V.jsxDEV("form",{onSubmit:s,className:"flex-1 overflow-y-auto",children:V.jsxDEV("div",{className:"flex flex-col md:flex-row",children:[V.jsxDEV("div",{className:"flex-1 p-6 space-y-6",children:[V.jsxDEV("section",{children:[V.jsxDEV("div",{className:"flex items-center gap-2 mb-3",children:[V.jsxDEV("span",{className:X2,children:V.jsxDEV(d7.Description,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),V.jsxDEV("h3",{className:`font-semibold ${X2}`,children:"Description"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V.jsxDEV(l7,{markdown:I,onChange:_,placeholder:"Add a more detailed description...",readOnly:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V.jsxDEV("section",{children:[V.jsxDEV("div",{className:"flex items-center justify-between mb-3",children:V.jsxDEV("div",{className:"flex items-center gap-2",children:[V.jsxDEV("span",{className:X2,children:V.jsxDEV(d7.Checklist,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),V.jsxDEV("h3",{className:`font-semibold ${X2}`,children:"Acceptance Criteria"},void 0,!1,void 0,this),C0.length>0&&V.jsxDEV("span",{className:`text-sm ${T0}`,children:["(",C0.length,")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),V.jsxDEV("div",{className:"space-y-2",children:C0.map((W0)=>V.jsxDEV("div",{className:`flex items-start gap-2 ${m0} rounded-lg px-3 py-2 group hover:shadow-sm transition-shadow`,children:[V.jsxDEV("input",{type:"checkbox",checked:!1,disabled:!0,className:"mt-1 w-4 h-4 rounded cursor-not-allowed opacity-50"},void 0,!1,void 0,this),V.jsxDEV("span",{className:`flex-1 text-sm ${X2}`,children:W0.text},void 0,!1,void 0,this),V.jsxDEV("button",{type:"button",onClick:()=>V2(W0.id),className:`opacity-0 group-hover:opacity-100 ${T0} hover:text-red-500 p-1 transition-all`,title:"Delete",children:V.jsxDEV(d7.Trash,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},W0.id,!0,void 0,this))},void 0,!1,void 0,this),z0?V.jsxDEV("div",{className:`mt-2 ${m0} rounded-lg px-3 py-2`,children:[V.jsxDEV("input",{ref:x0,type:"text",value:G2,onChange:(W0)=>c(W0.target.value),onKeyDown:(W0)=>{if(W0.key==="Enter"&&G2.trim())W0.preventDefault(),S2();if(W0.key==="Escape")c(""),e(!1)},placeholder:"Add an item...",className:`w-full border ${y1} rounded px-2 py-1.5 text-sm focus:outline-none focus:ring-2 focus:ring-green-500 ${g1}`,disabled:p},void 0,!1,void 0,this),V.jsxDEV("div",{className:"flex gap-2 mt-2",children:[V.jsxDEV("button",{type:"button",onClick:S2,className:"px-3 py-1 bg-green-600 text-white text-sm rounded hover:bg-green-700 transition-colors",disabled:!G2.trim()||p,children:"Add"},void 0,!1,void 0,this),V.jsxDEV("button",{type:"button",onClick:()=>{c(""),e(!1)},className:`px-3 py-1 ${X2} text-sm ${n2} rounded transition-colors`,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):V.jsxDEV("button",{type:"button",onClick:()=>e(!0),className:`mt-2 flex items-center gap-1 text-sm ${T0} hover:${X2} ${n2} px-3 py-2 rounded-lg transition-colors w-full`,disabled:p,children:[V.jsxDEV(d7.Plus,{},void 0,!1,void 0,this),V.jsxDEV("span",{children:"Add an item"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),V.jsxDEV("div",{className:`w-full md:w-64 ${J2} p-4 border-t md:border-t-0 md:border-l ${y1} space-y-4`,children:[V.jsxDEV("div",{children:[V.jsxDEV("label",{className:`block text-xs font-semibold ${T0} uppercase tracking-wide mb-2`,children:"Status"},void 0,!1,void 0,this),V.jsxDEV("select",{value:T,onChange:(W0)=>t(W0.target.value),className:`w-full rounded-lg px-3 py-2 text-sm font-medium border-0 cursor-pointer focus:outline-none focus:ring-2 focus:ring-green-500 ${q?Q0?.darkColor:Q0?.lightColor}`,disabled:p,children:vL.map((W0)=>V.jsxDEV("option",{value:W0.value,children:W0.label},W0.value,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V.jsxDEV("div",{children:[V.jsxDEV("label",{className:`block text-xs font-semibold ${T0} uppercase tracking-wide mb-2`,children:"Priority"},void 0,!1,void 0,this),V.jsxDEV("select",{value:B0,onChange:(W0)=>j(W0.target.value),className:`w-full rounded-lg px-3 py-2 text-sm font-medium border-0 cursor-pointer focus:outline-none focus:ring-2 focus:ring-green-500 ${q?r0?.darkColor:r0?.lightColor}`,disabled:p,children:JL.map((W0)=>V.jsxDEV("option",{value:W0.value,children:W0.label},W0.value,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V.jsxDEV("div",{children:[V.jsxDEV("label",{className:`block text-xs font-semibold ${T0} uppercase tracking-wide mb-2`,children:"Assignee"},void 0,!1,void 0,this),V.jsxDEV("div",{className:`flex items-center gap-2 ${m0} rounded-lg px-3 py-2 border ${y1}`,children:[V.jsxDEV("span",{className:T0,children:V.jsxDEV(d7.User,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),V.jsxDEV("input",{type:"text",value:Z0,onChange:(W0)=>K0(W0.target.value),placeholder:"@username",className:`flex-1 text-sm bg-transparent focus:outline-none ${L0}`,disabled:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),V.jsxDEV("div",{children:[V.jsxDEV("label",{className:`block text-xs font-semibold ${T0} uppercase tracking-wide mb-2`,children:"Labels"},void 0,!1,void 0,this),V.jsxDEV("div",{className:"flex flex-wrap gap-1 mb-2",children:_0.map((W0)=>V.jsxDEV("span",{className:`inline-flex items-center gap-1 text-xs ${q?"bg-blue-900/50 text-blue-300":"bg-blue-100 text-blue-700"} px-2 py-1 rounded-full group`,children:[W0,V.jsxDEV("button",{type:"button",onClick:()=>l1(W0),className:"opacity-0 group-hover:opacity-100 hover:text-red-500 transition-opacity",title:"Remove label",children:"x"},void 0,!1,void 0,this)]},W0,!0,void 0,this))},void 0,!1,void 0,this),u?V.jsxDEV("div",{children:[V.jsxDEV("input",{type:"text",value:U0,onChange:(W0)=>a(W0.target.value),onKeyDown:(W0)=>{if(W0.key==="Enter"&&U0.trim())W0.preventDefault(),X1();if(W0.key==="Escape")a(""),G0(!1)},placeholder:"Label name",className:`w-full border ${y1} rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-green-500 ${g1}`,disabled:p},void 0,!1,void 0,this),V.jsxDEV("div",{className:"flex gap-2 mt-2",children:[V.jsxDEV("button",{type:"button",onClick:X1,className:"px-3 py-1 bg-green-600 text-white text-sm rounded hover:bg-green-700 transition-colors",disabled:!U0.trim()||p,children:"Add"},void 0,!1,void 0,this),V.jsxDEV("button",{type:"button",onClick:()=>{a(""),G0(!1)},className:`px-3 py-1 ${X2} text-sm ${n2} rounded transition-colors`,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):V.jsxDEV("button",{type:"button",onClick:()=>G0(!0),className:`flex items-center gap-1 text-sm ${T0} hover:${X2} ${n2} px-2 py-1.5 rounded transition-colors`,disabled:p,children:[V.jsxDEV(d7.Plus,{},void 0,!1,void 0,this),V.jsxDEV("span",{children:"Add label"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),V.jsxDEV("div",{children:[V.jsxDEV("label",{className:`block text-xs font-semibold ${T0} uppercase tracking-wide mb-2`,children:"Parent Task"},void 0,!1,void 0,this),F0?V.jsxDEV("div",{children:[V.jsxDEV("select",{value:Y0,onChange:(W0)=>{v0(W0.target.value),P0(!1)},className:`w-full border ${y1} rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-green-500 ${g1}`,disabled:p,children:[V.jsxDEV("option",{value:"",children:"None"},void 0,!1,void 0,this),v.map((W0)=>V.jsxDEV("option",{value:W0.id,children:["#",W0.id," - ",W0.title]},W0.id,!0,void 0,this))]},void 0,!0,void 0,this),V.jsxDEV("button",{type:"button",onClick:()=>P0(!1),className:`mt-2 px-3 py-1 ${X2} text-sm ${n2} rounded transition-colors`,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):a0?V.jsxDEV("button",{type:"button",onClick:()=>P0(!0),className:`w-full flex items-center gap-2 ${m0} rounded-lg px-3 py-2 text-sm text-left ${n2} transition-colors border ${y1}`,disabled:p,children:[V.jsxDEV("span",{className:T0,children:V.jsxDEV(d7.Parent,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),V.jsxDEV("div",{className:"flex-1 min-w-0",children:[V.jsxDEV("span",{className:`text-xs ${T0} font-mono`,children:["#",a0.id]},void 0,!0,void 0,this),V.jsxDEV("p",{className:`${X2} truncate`,children:a0.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):V.jsxDEV("button",{type:"button",onClick:()=>P0(!0),className:`flex items-center gap-1 text-sm ${T0} hover:${X2} ${n2} px-2 py-1.5 rounded transition-colors`,disabled:p,children:[V.jsxDEV(d7.Plus,{},void 0,!1,void 0,this),V.jsxDEV("span",{children:"Set parent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),V.jsxDEV("div",{className:`border-t ${y1} px-6 py-4 ${J2} flex justify-end gap-3`,children:[V.jsxDEV("button",{type:"button",onClick:L,className:`px-4 py-2 text-sm ${X2} ${n2} rounded-lg transition-colors`,disabled:p,children:"Cancel"},void 0,!1,void 0,this),V.jsxDEV("button",{type:"button",onClick:s,className:"px-6 py-2 text-sm bg-green-600 text-white rounded-lg hover:bg-green-700 disabled:opacity-50 transition-colors font-medium",disabled:p||S0||!b.trim(),children:p?"Creating...":"Create Task"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var b3=w0(w1(),1);var b0=w0(W2(),1),HL={Settings:()=>b0.jsxDEV("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[b0.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"},void 0,!1,void 0,this),b0.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Save:()=>b0.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};function DG(){let{isDark:N}=w2(),[v,L]=b3.useState({}),[g,q]=b3.useState(!0),[R,K]=b3.useState(!1),[F,b]=b3.useState(null),E=N?"bg-gray-800":"bg-white",I=N?"text-gray-200":"text-gray-900",_=N?"text-gray-400":"text-gray-600",T=N?"border-gray-700":"border-gray-200",t=N?"bg-gray-700":"bg-white";b3.useEffect(()=>{fetch("http://localhost:3456/api/config").then((j)=>j.json()).then((j)=>{L(j.config||{}),q(!1)}).catch((j)=>{console.error("Failed to load config:",j),q(!1)})},[]);let B0=async()=>{K(!0),b(null);try{if(!(await fetch("http://localhost:3456/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)})).ok)throw Error("Failed to save config");b({type:"success",text:"Configuration saved successfully!"}),setTimeout(()=>b(null),3000)}catch(j){b({type:"error",text:j instanceof Error?j.message:"Failed to save config"})}finally{K(!1)}};if(g)return b0.jsxDEV("div",{className:"p-6 flex items-center justify-center h-64",children:b0.jsxDEV("div",{className:`text-lg ${_}`,children:"Loading configuration..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);return b0.jsxDEV("div",{className:"p-6 max-w-3xl",children:[b0.jsxDEV("div",{className:"mb-6 flex items-center gap-3",children:[b0.jsxDEV(HL.Settings,{},void 0,!1,void 0,this),b0.jsxDEV("h1",{className:`text-2xl font-bold ${I}`,children:"Configuration"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F&&b0.jsxDEV("div",{className:`mb-6 p-4 rounded-lg ${F.type==="success"?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"}`,children:F.text},void 0,!1,void 0,this),b0.jsxDEV("div",{className:`${E} rounded-lg border ${T} p-6 space-y-6`,children:[b0.jsxDEV("div",{children:[b0.jsxDEV("label",{className:`block text-sm font-medium ${I} mb-2`,children:"Default Assignee"},void 0,!1,void 0,this),b0.jsxDEV("input",{type:"text",value:v.defaultAssignee||"",onChange:(j)=>L({...v,defaultAssignee:j.target.value}),placeholder:"@username",className:`w-full px-3 py-2 rounded-lg border ${T} ${t} ${I} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this),b0.jsxDEV("p",{className:`mt-1 text-xs ${_}`,children:"Default assignee for new tasks (e.g., @claude)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b0.jsxDEV("div",{children:[b0.jsxDEV("label",{className:`block text-sm font-medium ${I} mb-2`,children:"Default Priority"},void 0,!1,void 0,this),b0.jsxDEV("select",{value:v.defaultPriority||"medium",onChange:(j)=>L({...v,defaultPriority:j.target.value}),className:`w-full px-3 py-2 rounded-lg border ${T} ${t} ${I} focus:outline-none focus:ring-2 focus:ring-blue-500`,children:[b0.jsxDEV("option",{value:"low",children:"Low"},void 0,!1,void 0,this),b0.jsxDEV("option",{value:"medium",children:"Medium"},void 0,!1,void 0,this),b0.jsxDEV("option",{value:"high",children:"High"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b0.jsxDEV("p",{className:`mt-1 text-xs ${_}`,children:"Default priority for new tasks"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b0.jsxDEV("div",{children:[b0.jsxDEV("label",{className:`block text-sm font-medium ${I} mb-2`,children:"Default Labels"},void 0,!1,void 0,this),b0.jsxDEV("input",{type:"text",value:v.defaultLabels?.join(", ")||"",onChange:(j)=>L({...v,defaultLabels:j.target.value.split(",").map((Z0)=>Z0.trim()).filter(Boolean)}),placeholder:"frontend, backend, ui",className:`w-full px-3 py-2 rounded-lg border ${T} ${t} ${I} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this),b0.jsxDEV("p",{className:`mt-1 text-xs ${_}`,children:"Comma-separated list of default labels for new tasks"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b0.jsxDEV("div",{children:[b0.jsxDEV("label",{className:`block text-sm font-medium ${I} mb-2`,children:"Time Format"},void 0,!1,void 0,this),b0.jsxDEV("select",{value:v.timeFormat||"24h",onChange:(j)=>L({...v,timeFormat:j.target.value}),className:`w-full px-3 py-2 rounded-lg border ${T} ${t} ${I} focus:outline-none focus:ring-2 focus:ring-blue-500`,children:[b0.jsxDEV("option",{value:"12h",children:"12-hour (AM/PM)"},void 0,!1,void 0,this),b0.jsxDEV("option",{value:"24h",children:"24-hour"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b0.jsxDEV("p",{className:`mt-1 text-xs ${_}`,children:"Time display format"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b0.jsxDEV("div",{children:[b0.jsxDEV("label",{className:`block text-sm font-medium ${I} mb-2`,children:"Default Editor"},void 0,!1,void 0,this),b0.jsxDEV("input",{type:"text",value:v.editor||"",onChange:(j)=>L({...v,editor:j.target.value}),placeholder:"code, vim, nano",className:`w-full px-3 py-2 rounded-lg border ${T} ${t} ${I} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this),b0.jsxDEV("p",{className:`mt-1 text-xs ${_}`,children:"Default editor command for editing files"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b0.jsxDEV("div",{children:[b0.jsxDEV("label",{className:`block text-sm font-medium ${I} mb-2`,children:"Visible Kanban Columns"},void 0,!1,void 0,this),b0.jsxDEV("div",{className:"space-y-2",children:["todo","in-progress","in-review","done","blocked"].map((j)=>{let Z0={todo:"To Do","in-progress":"In Progress","in-review":"In Review",done:"Done",blocked:"Blocked"},K0=v.visibleColumns?.includes(j)??!0;return b0.jsxDEV("label",{className:"flex items-center gap-2 cursor-pointer hover:opacity-80 transition-opacity",children:[b0.jsxDEV("input",{type:"checkbox",checked:K0,onChange:(_0)=>{let k=v.visibleColumns||["todo","in-progress","done"],Y0=_0.target.checked?[...k,j]:k.filter((v0)=>v0!==j);L({...v,visibleColumns:Y0})},className:"w-4 h-4 rounded border-gray-600 text-blue-600 focus:ring-blue-500 focus:ring-offset-gray-800"},void 0,!1,void 0,this),b0.jsxDEV("span",{className:I,children:Z0[j]},void 0,!1,void 0,this)]},j,!0,void 0,this)})},void 0,!1,void 0,this),b0.jsxDEV("p",{className:`mt-2 text-xs ${_}`,children:"Select which columns to show in the Kanban board"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b0.jsxDEV("div",{className:"pt-4 border-t border-gray-700",children:b0.jsxDEV("button",{type:"button",onClick:B0,disabled:R,className:"px-4 py-2 bg-blue-600 text-white text-sm font-medium rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2 transition-colors",children:[b0.jsxDEV(HL.Save,{},void 0,!1,void 0,this),R?"Saving...":"Save Configuration"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var f2=w0(w1(),1);var dB=w0(w1(),1);var S6=w0(W2(),1),QL=dB.forwardRef(({markdown:N,className:v="",sectionType:L,enableGFM:g=!1,onDocLinkClick:q},R)=>{let{isDark:K}=w2(),F=dB.useMemo(()=>{if(!N)return"";let b=new N2.Renderer,E=b.link.bind(b);b.link=({href:T,title:t,tokens:B0})=>{if(T&&/^task-\d+(.md)?$/.test(T)){let j=T.replace(".md",""),Z0="";if(B0&&B0.length>0)Z0=B0.map((_0)=>_0.raw||_0.text||"").join("");if(!Z0||Z0===T)Z0=j.split("-").map((_0)=>_0.charAt(0).toUpperCase()+_0.slice(1)).join(" ");return`<a href="${T}" class="task-link-badge inline-flex items-center gap-1 px-3 py-1 rounded-md text-sm font-medium transition-all hover:scale-105" data-task-id="${j}">${`<svg class="w-4 h-4 inline-block mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
375
|
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4" />
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
.doc-link-badge:hover {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
border-color: ${K?"rgba(34, 197, 94, 0.5)":"rgba(34, 197, 94, 0.5)"};
|
|
400
|
-
box-shadow: 0 0 0 3px ${K?"rgba(34, 197, 94, 0.1)":"rgba(34, 197, 94, 0.1)"};
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
/* Table styling */
|
|
404
|
-
.prose table {
|
|
405
|
-
width: 100%;
|
|
406
|
-
border-collapse: collapse;
|
|
407
|
-
margin: 1.5em 0;
|
|
408
|
-
}
|
|
409
|
-
.prose th {
|
|
410
|
-
background: ${K?"#374151":"#f3f4f6"};
|
|
411
|
-
color: ${K?"#f9fafb":"#111827"};
|
|
412
|
-
font-weight: 600;
|
|
413
|
-
padding: 0.75rem 1rem;
|
|
414
|
-
text-align: left;
|
|
415
|
-
border: 1px solid ${K?"#4b5563":"#e5e7eb"};
|
|
416
|
-
}
|
|
417
|
-
.prose td {
|
|
418
|
-
padding: 0.75rem 1rem;
|
|
419
|
-
border: 1px solid ${K?"#4b5563":"#e5e7eb"};
|
|
420
|
-
color: ${K?"#e5e7eb":"#374151"};
|
|
421
|
-
}
|
|
422
|
-
.prose tbody tr:nth-child(even) {
|
|
423
|
-
background: ${K?"#1f2937":"#f9fafb"};
|
|
424
|
-
}
|
|
425
|
-
.prose tbody tr:hover {
|
|
426
|
-
background: ${K?"#374151":"#f3f4f6"};
|
|
427
|
-
}
|
|
428
|
-
`},void 0,!1,void 0,this),S6.jsxDEV("div",{ref:R,className:`prose prose-sm max-w-none ${K?"prose-invert":""} ${v}`,style:{...K?{"--tw-prose-th-borders":"#374151","--tw-prose-td-borders":"#374151"}:{"--tw-prose-th-borders":"#e5e7eb","--tw-prose-td-borders":"#e5e7eb"}},dangerouslySetInnerHTML:{__html:F}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});QL.displayName="MarkdownRenderer";var u6=QL;var D=w0(W2(),1),G4={Plus:()=>D.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:D.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Document:()=>D.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:D.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Folder:()=>D.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:D.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),FolderOpen:()=>D.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:D.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),ChevronRight:()=>D.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:D.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this),ChevronDown:()=>D.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:D.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Edit:()=>D.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:D.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Save:()=>D.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:D.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Cancel:()=>D.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:D.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Copy:()=>D.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:D.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};function lG(){let{isDark:N}=w2(),[v,L]=f2.useState([]),[g,q]=f2.useState(!0),[R,K]=f2.useState(null),[F,b]=f2.useState(!1),[E,I]=f2.useState(""),[_,T]=f2.useState(!1),[t,B0]=f2.useState(!1),[j,Z0]=f2.useState(""),[K0,_0]=f2.useState(""),[k,Y0]=f2.useState(""),[v0,C0]=f2.useState(""),[e0,p]=f2.useState(""),[D0,i]=f2.useState(!1),[B2,S0]=f2.useState(new Set(["(root)"])),[M0,G2]=f2.useState(!1),c=f2.useRef(null),z0=N?"bg-gray-800":"bg-white",e=N?"text-gray-200":"text-gray-900",U0=N?"text-gray-400":"text-gray-600",a=N?"border-gray-700":"border-gray-200",u=N?"hover:bg-gray-700":"hover:bg-gray-50";f2.useEffect(()=>{F0()},[]);let G0=f2.useCallback(()=>{if(v.length===0)return;let r0=window.location.hash.match(/^#\/docs\/(.+)$/);if(r0){let u0=decodeURIComponent(r0[1]).replace(/^\.\//,"").replace(/^\//,""),m0=v.find((J2)=>{return J2.path===u0||J2.path.endsWith(`/${u0}`)||J2.filename===u0});if(m0&&m0!==R)K(m0),b(!1)}},[v,R]);f2.useEffect(()=>{G0()},[G0]),f2.useEffect(()=>{return window.addEventListener("hashchange",G0),()=>window.removeEventListener("hashchange",G0)},[G0]),f2.useEffect(()=>{let Q0=(a0)=>{let u0=a0.target;while(u0&&u0.tagName!=="A"&&u0!==c.current)u0=u0.parentElement;if(u0&&u0.tagName==="A"){let J2=u0.getAttribute("href");if(J2&&/^task-\d+(.md)?$/.test(J2)){a0.preventDefault();let L0=J2.replace(".md","");window.location.hash=`/tasks?task=${L0}`;return}if(J2&&(J2.endsWith(".md")||J2.includes(".md#"))){a0.preventDefault();let L0=J2.replace(/^\.\//,"").replace(/^\//,"");L0=L0.split("#")[0],window.location.hash=`/docs/${L0}`}}},r0=c.current;if(r0)return r0.addEventListener("click",Q0),()=>r0.removeEventListener("click",Q0)},[v,R]);let F0=()=>{fetch("http://localhost:6420/api/docs").then((Q0)=>Q0.json()).then((Q0)=>{L(Q0.docs||[]),q(!1)}).catch((Q0)=>{console.error("Failed to load docs:",Q0),q(!1)})},P0=async()=>{if(!j.trim()){alert("Please enter a title");return}i(!0);try{let Q0=k.split(",").map((a0)=>a0.trim()).filter((a0)=>a0);if(!(await fetch("http://localhost:6420/api/docs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:j,description:K0,tags:Q0,folder:v0,content:e0})})).ok)throw Error("Failed to create document");Z0(""),_0(""),Y0(""),C0(""),p(""),B0(!1),F0()}catch(Q0){console.error("Failed to create doc:",Q0),alert("Failed to create document. Please try again.")}finally{i(!1)}},x0=()=>{if(R)I(R.content),b(!0)},C2=()=>{if(R){let Q0=`${window.location.origin}${window.location.pathname}#/docs/${R.path}`;navigator.clipboard.writeText(Q0).then(()=>{G2(!0),setTimeout(()=>G2(!1),2000)})}},$2=async()=>{if(!R)return;T(!0);try{console.log("Saving doc:",R.filename,E),b(!1),F0()}catch(Q0){console.error("Failed to save doc:",Q0)}finally{T(!1)}},S2=()=>{b(!1),I("")},V2=(Q0)=>{S0((r0)=>{let a0=new Set(r0);if(a0.has(Q0))a0.delete(Q0);else a0.add(Q0);return a0})},X1=()=>{let Q0={name:"(root)",path:"",docs:[],children:new Map};for(let r0 of v)if(!r0.folder)Q0.docs.push(r0);else{let a0=r0.folder.split("/"),u0=Q0;for(let m0=0;m0<a0.length;m0++){let J2=a0[m0],L0=a0.slice(0,m0+1).join("/");if(!u0.children.has(J2))u0.children.set(J2,{name:J2,path:L0,docs:[],children:new Map});u0=u0.children.get(J2)}u0.docs.push(r0)}return Q0},l1=(Q0)=>{let r0=Q0.docs.length;for(let a0 of Q0.children.values())r0+=l1(a0);return r0},s=(Q0,r0=0)=>{let a0=[],u0=r0===0||B2.has(Q0.path),m0=`${r0*16}px`;if(r0>0){let J2=l1(Q0);a0.push(D.jsxDEV("button",{type:"button",onClick:()=>V2(Q0.path),className:`w-full flex items-center gap-2 px-3 py-2 ${u} ${e} transition-colors`,style:{paddingLeft:m0},children:[u0?D.jsxDEV(G4.ChevronDown,{},void 0,!1,void 0,this):D.jsxDEV(G4.ChevronRight,{},void 0,!1,void 0,this),u0?D.jsxDEV(G4.FolderOpen,{},void 0,!1,void 0,this):D.jsxDEV(G4.Folder,{},void 0,!1,void 0,this),D.jsxDEV("span",{className:"text-sm font-medium",children:Q0.name},void 0,!1,void 0,this),D.jsxDEV("span",{className:`text-xs ${U0}`,children:["(",J2,")"]},void 0,!0,void 0,this)]},`folder-${Q0.path}`,!0,void 0,this))}if(u0||r0===0){let J2=Array.from(Q0.children.values()).sort((X2,T0)=>X2.name.localeCompare(T0.name));for(let X2 of J2)a0.push(...s(X2,r0+1));let L0=[...Q0.docs].sort((X2,T0)=>X2.metadata.title.localeCompare(T0.metadata.title));for(let X2 of L0)a0.push(D.jsxDEV("button",{type:"button",onClick:()=>{window.location.hash=`/docs/${X2.path}`},className:`w-full text-left px-3 py-2 flex items-center gap-2 ${u} ${e} transition-colors ${R?.path===X2.path?N?"bg-gray-700":"bg-gray-100":""}`,style:{paddingLeft:`${(r0+1)*16}px`},children:[D.jsxDEV(G4.Document,{},void 0,!1,void 0,this),D.jsxDEV("div",{className:"flex-1 min-w-0",children:[D.jsxDEV("div",{className:"text-sm font-medium truncate",children:X2.metadata.title},void 0,!1,void 0,this),X2.metadata.description&&D.jsxDEV("div",{className:`text-xs ${U0} truncate`,children:X2.metadata.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},`doc-${X2.path}`,!0,void 0,this))}return a0};if(g)return D.jsxDEV("div",{className:"p-6 flex items-center justify-center h-64",children:D.jsxDEV("div",{className:`text-lg ${U0}`,children:"Loading documentation..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);return D.jsxDEV("div",{className:"p-6",children:[D.jsxDEV("div",{className:"mb-6 flex items-center justify-between",children:[D.jsxDEV("h1",{className:`text-2xl font-bold ${e}`,children:"Documentation"},void 0,!1,void 0,this),D.jsxDEV("button",{type:"button",onClick:()=>B0(!0),className:"px-4 py-2 bg-green-600 text-white text-sm font-medium rounded-lg hover:bg-green-700 flex items-center gap-2 transition-colors",children:[D.jsxDEV(G4.Plus,{},void 0,!1,void 0,this),"New Document"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[D.jsxDEV("div",{className:"lg:col-span-1",children:[D.jsxDEV("div",{className:`${z0} rounded-lg border ${a} overflow-hidden`,children:[D.jsxDEV("div",{className:`p-4 border-b ${a}`,children:D.jsxDEV("h2",{className:`font-semibold ${e}`,children:["All Documents (",v.length,")"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),D.jsxDEV("div",{className:"max-h-[600px] overflow-y-auto",children:s(X1())},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v.length===0&&D.jsxDEV("div",{className:`${z0} rounded-lg border ${a} p-8 text-center`,children:[D.jsxDEV(G4.Document,{},void 0,!1,void 0,this),D.jsxDEV("p",{className:`mt-2 ${U0}`,children:"No documentation found"},void 0,!1,void 0,this),D.jsxDEV("p",{className:`text-sm ${U0} mt-1`,children:["Create a doc with: ",D.jsxDEV("code",{className:"font-mono",children:'knowns doc create "Title"'},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.jsxDEV("div",{className:"lg:col-span-2",children:R?D.jsxDEV("div",{className:`${z0} rounded-lg border ${a} overflow-hidden`,children:[D.jsxDEV("div",{className:"p-6 border-b border-gray-700 flex items-start justify-between",children:[D.jsxDEV("div",{className:"flex-1",children:[D.jsxDEV("h2",{className:`text-2xl font-bold ${e} mb-2`,children:R.metadata.title},void 0,!1,void 0,this),R.metadata.description&&D.jsxDEV("p",{className:`${U0} mb-2`,children:R.metadata.description},void 0,!1,void 0,this),D.jsxDEV("button",{type:"button",onClick:C2,className:`flex items-center gap-2 px-2 py-1 rounded text-xs ${U0} ${u} transition-colors group`,title:"Click to copy URL",children:[D.jsxDEV(G4.Folder,{},void 0,!1,void 0,this),D.jsxDEV("span",{className:"font-mono",children:["/docs/",R.path]},void 0,!0,void 0,this),D.jsxDEV("span",{className:"opacity-0 group-hover:opacity-100 transition-opacity",children:M0?"✓":D.jsxDEV(G4.Copy,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D.jsxDEV("div",{className:`text-sm ${U0} mt-2`,children:["Last updated: ",new Date(R.metadata.updatedAt).toLocaleString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.jsxDEV("div",{className:"flex gap-2 ml-4",children:!F?D.jsxDEV("button",{type:"button",onClick:x0,className:"px-3 py-2 bg-blue-600 text-white text-sm font-medium rounded-lg hover:bg-blue-700 flex items-center gap-2 transition-colors",children:[D.jsxDEV(G4.Edit,{},void 0,!1,void 0,this),"Edit"]},void 0,!0,void 0,this):D.jsxDEV(D.Fragment,{children:[D.jsxDEV("button",{type:"button",onClick:$2,disabled:_,className:"px-3 py-2 bg-green-600 text-white text-sm font-medium rounded-lg hover:bg-green-700 disabled:opacity-50 flex items-center gap-2 transition-colors",children:[D.jsxDEV(G4.Save,{},void 0,!1,void 0,this),_?"Saving...":"Save"]},void 0,!0,void 0,this),D.jsxDEV("button",{type:"button",onClick:S2,disabled:_,className:`px-3 py-2 ${N?"bg-gray-700 hover:bg-gray-600":"bg-gray-200 hover:bg-gray-300"} ${e} text-sm font-medium rounded-lg disabled:opacity-50 flex items-center gap-2 transition-colors`,children:[D.jsxDEV(G4.Cancel,{},void 0,!1,void 0,this),"Cancel"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D.jsxDEV("div",{className:"p-6",children:F?D.jsxDEV(l7,{markdown:E,onChange:I,placeholder:"Write your documentation here..."},void 0,!1,void 0,this):D.jsxDEV(u6,{ref:c,markdown:R.content||"",className:e,enableGFM:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):D.jsxDEV("div",{className:`${z0} rounded-lg border ${a} p-12 text-center`,children:[D.jsxDEV(G4.Document,{},void 0,!1,void 0,this),D.jsxDEV("p",{className:`mt-4 ${U0}`,children:"Select a document to view its content"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),t&&D.jsxDEV("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4",children:D.jsxDEV("div",{className:`${z0} rounded-lg shadow-xl max-w-2xl w-full max-h-[90vh] overflow-y-auto`,children:[D.jsxDEV("div",{className:`p-6 border-b ${a}`,children:D.jsxDEV("h2",{className:`text-xl font-bold ${e}`,children:"Create New Document"},void 0,!1,void 0,this)},void 0,!1,void 0,this),D.jsxDEV("div",{className:"p-6 space-y-4",children:[D.jsxDEV("div",{children:[D.jsxDEV("label",{className:`block text-sm font-medium ${e} mb-2`,children:"Title *"},void 0,!1,void 0,this),D.jsxDEV("input",{type:"text",value:j,onChange:(Q0)=>Z0(Q0.target.value),placeholder:"Document title",className:`w-full px-3 py-2 rounded-lg border ${a} ${N?"bg-gray-700 text-gray-200":"bg-white text-gray-900"} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D.jsxDEV("div",{children:[D.jsxDEV("label",{className:`block text-sm font-medium ${e} mb-2`,children:"Description"},void 0,!1,void 0,this),D.jsxDEV("input",{type:"text",value:K0,onChange:(Q0)=>_0(Q0.target.value),placeholder:"Brief description",className:`w-full px-3 py-2 rounded-lg border ${a} ${N?"bg-gray-700 text-gray-200":"bg-white text-gray-900"} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D.jsxDEV("div",{children:[D.jsxDEV("label",{className:`block text-sm font-medium ${e} mb-2`,children:"Folder (optional)"},void 0,!1,void 0,this),D.jsxDEV("input",{type:"text",value:v0,onChange:(Q0)=>C0(Q0.target.value),placeholder:"api/auth, guides, etc. (leave empty for root)",className:`w-full px-3 py-2 rounded-lg border ${a} ${N?"bg-gray-700 text-gray-200":"bg-white text-gray-900"} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D.jsxDEV("div",{children:[D.jsxDEV("label",{className:`block text-sm font-medium ${e} mb-2`,children:"Tags (comma-separated)"},void 0,!1,void 0,this),D.jsxDEV("input",{type:"text",value:k,onChange:(Q0)=>Y0(Q0.target.value),placeholder:"guide, tutorial, api",className:`w-full px-3 py-2 rounded-lg border ${a} ${N?"bg-gray-700 text-gray-200":"bg-white text-gray-900"} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D.jsxDEV("div",{children:[D.jsxDEV("label",{className:`block text-sm font-medium ${e} mb-2`,children:"Content"},void 0,!1,void 0,this),D.jsxDEV(l7,{markdown:e0,onChange:p,placeholder:"Write your documentation here..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.jsxDEV("div",{className:`p-6 border-t ${a} flex justify-end gap-3`,children:[D.jsxDEV("button",{type:"button",onClick:()=>{B0(!1),Z0(""),_0(""),Y0(""),C0(""),p("")},disabled:D0,className:`px-4 py-2 ${N?"bg-gray-700 hover:bg-gray-600":"bg-gray-200 hover:bg-gray-300"} ${e} text-sm font-medium rounded-lg disabled:opacity-50 transition-colors`,children:"Cancel"},void 0,!1,void 0,this),D.jsxDEV("button",{type:"button",onClick:P0,disabled:D0||!j.trim(),className:"px-4 py-2 bg-green-600 text-white text-sm font-medium rounded-lg hover:bg-green-700 disabled:opacity-50 transition-colors",children:D0?"Creating...":"Create Document"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var U9=w0(w1(),1);var LL=w0(w1(),1);var B1=w0(W2(),1),BO={todo:{bg:"bg-gray-100",darkBg:"bg-gray-700",text:"text-gray-700",darkText:"text-gray-300",label:"To Do"},"in-progress":{bg:"bg-blue-100",darkBg:"bg-blue-900/50",text:"text-blue-700",darkText:"text-blue-300",label:"In Progress"},"in-review":{bg:"bg-purple-100",darkBg:"bg-purple-900/50",text:"text-purple-700",darkText:"text-purple-300",label:"In Review"},done:{bg:"bg-green-100",darkBg:"bg-green-900/50",text:"text-green-700",darkText:"text-green-300",label:"Done"},blocked:{bg:"bg-red-100",darkBg:"bg-red-900/50",text:"text-red-700",darkText:"text-red-300",label:"Blocked"}};function dG({task:N,onClick:v}){let{isDark:L}=w2(),g=(b)=>{b.dataTransfer.setData("taskId",N.id),b.dataTransfer.effectAllowed="move"},q=(b)=>{if(b.defaultPrevented)return;v?.()},R=N.acceptanceCriteria.filter((b)=>b.completed).length,K=N.acceptanceCriteria.length,F=BO[N.status];return B1.jsxDEV("button",{type:"button",className:`rounded-lg shadow hover:shadow-md transition-all p-3 cursor-pointer active:cursor-grabbing select-none w-full text-left ${L?"bg-gray-700 hover:bg-gray-650":"bg-white"}`,draggable:!0,onDragStart:g,onClick:q,"aria-label":`Task ${N.id}: ${N.title}`,children:[B1.jsxDEV("div",{className:"flex items-center justify-between gap-2 mb-1",children:[B1.jsxDEV("span",{className:`text-xs font-mono shrink-0 ${L?"text-gray-500":"text-gray-400"}`,children:["#",N.id]},void 0,!0,void 0,this),B1.jsxDEV("div",{className:"flex items-center gap-1 flex-wrap justify-end",children:[B1.jsxDEV("span",{className:`text-xs px-1.5 py-0.5 rounded font-medium ${L?`${F.darkBg} ${F.darkText}`:`${F.bg} ${F.text}`}`,children:F.label},void 0,!1,void 0,this),N.priority==="high"&&B1.jsxDEV("span",{className:`text-xs px-1.5 py-0.5 rounded font-medium ${L?"bg-red-900/50 text-red-300":"bg-red-100 text-red-700"}`,children:"HIGH"},void 0,!1,void 0,this),N.priority==="medium"&&B1.jsxDEV("span",{className:`text-xs px-1.5 py-0.5 rounded font-medium ${L?"bg-yellow-900/50 text-yellow-300":"bg-yellow-100 text-yellow-700"}`,children:"MED"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B1.jsxDEV("h3",{className:`font-medium text-sm mb-2 line-clamp-2 ${L?"text-gray-100":"text-gray-900"}`,children:N.title},void 0,!1,void 0,this),K>0&&B1.jsxDEV("div",{className:`flex items-center gap-2 text-xs mb-2 ${L?"text-gray-400":"text-gray-500"}`,children:[B1.jsxDEV("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:B1.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"},void 0,!1,void 0,this)},void 0,!1,void 0,this),B1.jsxDEV("span",{children:[R,"/",K]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N.labels.length>0&&B1.jsxDEV("div",{className:"flex flex-wrap gap-1 mb-2",children:N.labels.map((b)=>B1.jsxDEV("span",{className:`text-xs px-1.5 py-0.5 rounded ${L?"bg-blue-900/50 text-blue-300":"bg-blue-100 text-blue-700"}`,children:b},b,!1,void 0,this))},void 0,!1,void 0,this),N.assignee&&B1.jsxDEV("div",{className:`flex items-center gap-1 text-xs mt-2 ${L?"text-gray-400":"text-gray-600"}`,children:[B1.jsxDEV("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:B1.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),B1.jsxDEV("span",{children:N.assignee},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var x5=w0(W2(),1),XO={todo:"To Do","in-progress":"In Progress","in-review":"In Review",done:"Done",blocked:"Blocked"},YO={todo:"bg-gray-50 border-gray-200","in-progress":"bg-blue-50 border-blue-200","in-review":"bg-purple-50 border-purple-200",done:"bg-green-50 border-green-200",blocked:"bg-red-50 border-red-200"},ZO={todo:"bg-gray-800 border-gray-700","in-progress":"bg-blue-900/30 border-blue-800","in-review":"bg-purple-900/30 border-purple-800",done:"bg-green-900/30 border-green-800",blocked:"bg-red-900/30 border-red-800"};function pG({status:N,tasks:v,onDrop:L,onTaskClick:g}){let{isDark:q}=w2(),[R,K]=LL.useState(!1),F=(_)=>{_.preventDefault(),_.dataTransfer.dropEffect="move",K(!0)},b=()=>{K(!1)},E=(_)=>{_.preventDefault(),K(!1);let T=_.dataTransfer.getData("taskId");if(T)L(T,N)};return x5.jsxDEV("div",{className:`rounded-lg border-2 p-3 min-w-[280px] max-w-[320px] flex-shrink-0 transition-colors ${(q?ZO:YO)[N]} ${R?"ring-2 ring-blue-400 border-blue-400":""}`,onDragOver:F,onDragLeave:b,onDrop:E,children:[x5.jsxDEV("div",{className:"flex items-center justify-between mb-3",children:[x5.jsxDEV("h2",{className:`font-bold text-sm uppercase tracking-wide ${q?"text-gray-300":"text-gray-700"}`,children:XO[N]},void 0,!1,void 0,this),x5.jsxDEV("span",{className:`text-xs rounded-full px-2 py-1 font-medium ${q?"text-gray-400 bg-gray-700":"text-gray-500 bg-white"}`,children:v.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x5.jsxDEV("div",{className:"space-y-2 max-h-[calc(100vh-200px)] overflow-y-auto",children:v.length===0?x5.jsxDEV("div",{className:`text-center py-8 text-sm ${q?"text-gray-500":"text-gray-400"}`,children:"No tasks"},void 0,!1,void 0,this):v.map((_)=>x5.jsxDEV(dG,{task:_,onClick:()=>g(_)},_.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var g2=w0(w1(),1);var R1=w0(w1(),1);var R0=w0(W2(),1);function cG({task:N,onUpdate:v}){let{isDark:L}=w2(),[g,q]=R1.useState(!1),[R,K]=R1.useState(!1),[F,b]=R1.useState(0),[E,I]=R1.useState(null),[_,T]=R1.useState(!1),[t,B0]=R1.useState(""),[j,Z0]=R1.useState(""),[K0,_0]=R1.useState(""),[k,Y0]=R1.useState(!1),v0=L?"bg-gray-700":"bg-gray-50",C0=L?"text-gray-100":"text-gray-900",e0=L?"text-gray-300":"text-gray-700",p=L?"text-gray-400":"text-gray-500",D0=L?"border-gray-600":"border-gray-300",i=L?"bg-gray-600 border-gray-500 text-gray-100":"bg-white border-gray-300 text-gray-900";R1.useEffect(()=>{let a=N.timeEntries.find((u)=>!u.endedAt);if(a)q(!0),I(a.startedAt),b(Date.now()-a.startedAt.getTime());else q(!1),I(null),b(0)},[N.timeEntries]),R1.useEffect(()=>{let a;if(g&&!R&&E)a=window.setInterval(()=>{b(Date.now()-E.getTime())},1000);return()=>{if(a)clearInterval(a)}},[g,R,E]);let B2=async()=>{Y0(!0);try{let a={id:crypto.randomUUID(),startedAt:new Date,duration:0},u=await f6(N.id,{timeEntries:[...N.timeEntries,a]});v(u)}catch(a){console.error("Failed to start timer:",a)}finally{Y0(!1)}},S0=async()=>{let a=N.timeEntries.find((u)=>!u.endedAt);if(!a)return;Y0(!0);try{let u=new Date,G0=u.getTime()-a.startedAt.getTime(),F0=N.timeEntries.map((C2)=>C2.id===a.id?{...C2,endedAt:u,duration:G0}:C2),P0=F0.reduce((C2,$2)=>C2+$2.duration,0),x0=await f6(N.id,{timeEntries:F0,timeSpent:P0});v(x0),K(!1)}catch(u){console.error("Failed to stop timer:",u)}finally{Y0(!1)}},M0=()=>{K(!0)},G2=()=>{K(!1)},c=async(a)=>{a.preventDefault();let u=Number.parseInt(t,10)||0,G0=Number.parseInt(j,10)||0,F0=(u*60+G0)*60*1000;if(F0<=0)return;Y0(!0);try{let P0=new Date,x0=new Date(P0.getTime()-F0),C2={id:crypto.randomUUID(),startedAt:x0,endedAt:P0,duration:F0,note:K0.trim()||void 0},$2=[...N.timeEntries,C2],S2=$2.reduce((X1,l1)=>X1+l1.duration,0),V2=await f6(N.id,{timeEntries:$2,timeSpent:S2});v(V2),B0(""),Z0(""),_0(""),T(!1)}catch(P0){console.error("Failed to add manual time:",P0)}finally{Y0(!1)}},z0=R1.useCallback((a)=>{let u=Math.floor(a/1000),G0=Math.floor(u/3600),F0=Math.floor(u%3600/60),P0=u%60;return`${G0.toString().padStart(2,"0")}:${F0.toString().padStart(2,"0")}:${P0.toString().padStart(2,"0")}`},[]),e=R1.useCallback((a)=>{let u=Math.floor(a/3600000),G0=Math.floor(a%3600000/60000);if(u>0)return`${u}h ${G0}m`;return`${G0}m`},[]),U0=N.timeEntries.filter((a)=>a.endedAt);return R0.jsxDEV("div",{className:"space-y-4",children:[R0.jsxDEV("div",{className:`flex items-center justify-between ${v0} rounded-lg p-4`,children:R0.jsxDEV("div",{className:"text-center flex-1",children:[R0.jsxDEV("div",{className:`text-3xl font-mono font-bold ${C0}`,children:z0(F)},void 0,!1,void 0,this),R0.jsxDEV("div",{className:`text-xs ${p} mt-1`,children:g?R?"Paused":"Running":"Ready"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),R0.jsxDEV("div",{className:"flex justify-center gap-2",children:[!g?R0.jsxDEV("button",{type:"button",onClick:B2,disabled:k,className:"px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 disabled:opacity-50 flex items-center gap-2",children:[R0.jsxDEV("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:[R0.jsxDEV("title",{children:"Start"},void 0,!1,void 0,this),R0.jsxDEV("path",{d:"M8 5v14l11-7z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),"Start"]},void 0,!0,void 0,this):R0.jsxDEV(R0.Fragment,{children:[R?R0.jsxDEV("button",{type:"button",onClick:G2,disabled:k,className:"px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 disabled:opacity-50 flex items-center gap-2",children:[R0.jsxDEV("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:[R0.jsxDEV("title",{children:"Resume"},void 0,!1,void 0,this),R0.jsxDEV("path",{d:"M8 5v14l11-7z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),"Resume"]},void 0,!0,void 0,this):R0.jsxDEV("button",{type:"button",onClick:M0,disabled:k,className:"px-4 py-2 bg-yellow-600 text-white rounded hover:bg-yellow-700 disabled:opacity-50 flex items-center gap-2",children:[R0.jsxDEV("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:[R0.jsxDEV("title",{children:"Pause"},void 0,!1,void 0,this),R0.jsxDEV("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),"Pause"]},void 0,!0,void 0,this),R0.jsxDEV("button",{type:"button",onClick:S0,disabled:k,className:"px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 disabled:opacity-50 flex items-center gap-2",children:[R0.jsxDEV("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:[R0.jsxDEV("title",{children:"Stop"},void 0,!1,void 0,this),R0.jsxDEV("path",{d:"M6 6h12v12H6V6z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),"Stop"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("button",{type:"button",onClick:()=>T(!_),className:`px-4 py-2 border ${D0} rounded ${L?"hover:bg-gray-600 text-gray-300":"hover:bg-gray-50 text-gray-700"} text-sm`,disabled:k,children:"+ Manual Entry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_&&R0.jsxDEV("form",{onSubmit:c,className:`${v0} rounded-lg p-4 space-y-3`,children:[R0.jsxDEV("div",{className:"flex gap-4",children:[R0.jsxDEV("div",{children:[R0.jsxDEV("label",{htmlFor:"manual-hours",className:`block text-xs ${p} mb-1`,children:"Hours"},void 0,!1,void 0,this),R0.jsxDEV("input",{id:"manual-hours",type:"number",min:"0",value:t,onChange:(a)=>B0(a.target.value),className:`w-20 border rounded px-2 py-1 text-sm ${i}`,placeholder:"0",disabled:k},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("div",{children:[R0.jsxDEV("label",{htmlFor:"manual-minutes",className:`block text-xs ${p} mb-1`,children:"Minutes"},void 0,!1,void 0,this),R0.jsxDEV("input",{id:"manual-minutes",type:"number",min:"0",max:"59",value:j,onChange:(a)=>Z0(a.target.value),className:`w-20 border rounded px-2 py-1 text-sm ${i}`,placeholder:"0",disabled:k},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("div",{children:[R0.jsxDEV("label",{htmlFor:"manual-note",className:`block text-xs ${p} mb-1`,children:"Note (optional)"},void 0,!1,void 0,this),R0.jsxDEV("input",{id:"manual-note",type:"text",value:K0,onChange:(a)=>_0(a.target.value),className:`w-full border rounded px-2 py-1 text-sm ${i}`,placeholder:"What did you work on?",disabled:k},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("div",{className:"flex gap-2",children:[R0.jsxDEV("button",{type:"submit",className:"px-3 py-1 bg-blue-600 text-white rounded text-sm hover:bg-blue-700 disabled:opacity-50",disabled:k,children:"Add Time"},void 0,!1,void 0,this),R0.jsxDEV("button",{type:"button",onClick:()=>T(!1),className:`px-3 py-1 border ${D0} rounded text-sm ${L?"hover:bg-gray-600 text-gray-300":"hover:bg-gray-100 text-gray-700"}`,disabled:k,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("div",{className:`flex justify-between items-center py-2 border-t ${D0}`,children:[R0.jsxDEV("span",{className:`text-sm font-medium ${e0}`,children:"Total Time Spent"},void 0,!1,void 0,this),R0.jsxDEV("span",{className:`text-lg font-bold ${C0}`,children:e(N.timeSpent)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.length>0&&R0.jsxDEV("div",{children:[R0.jsxDEV("h4",{className:`text-sm font-medium ${e0} mb-2`,children:"Time Log"},void 0,!1,void 0,this),R0.jsxDEV("div",{className:"space-y-1 max-h-40 overflow-y-auto",children:U0.slice().reverse().map((a)=>R0.jsxDEV("div",{className:"flex justify-between items-center text-sm py-1",children:[R0.jsxDEV("div",{className:"flex-1",children:[R0.jsxDEV("span",{className:p,children:[a.startedAt.toLocaleDateString()," ",a.startedAt.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]},void 0,!0,void 0,this),a.note&&R0.jsxDEV("span",{className:`${L?"text-gray-500":"text-gray-400"} ml-2`,children:["- ",a.note]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("span",{className:`font-medium ${C0}`,children:e(a.duration)},void 0,!1,void 0,this)]},a.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var m=w0(W2(),1),qL=[{value:"todo",label:"To Do",lightColor:"bg-gray-100 text-gray-700",darkColor:"bg-gray-700 text-gray-300"},{value:"in-progress",label:"In Progress",lightColor:"bg-blue-100 text-blue-700",darkColor:"bg-blue-900/50 text-blue-300"},{value:"in-review",label:"In Review",lightColor:"bg-purple-100 text-purple-700",darkColor:"bg-purple-900/50 text-purple-300"},{value:"done",label:"Done",lightColor:"bg-green-100 text-green-700",darkColor:"bg-green-900/50 text-green-300"},{value:"blocked",label:"Blocked",lightColor:"bg-red-100 text-red-700",darkColor:"bg-red-900/50 text-red-300"}],gL=[{value:"low",label:"Low",lightColor:"bg-gray-100 text-gray-600",darkColor:"bg-gray-700 text-gray-300"},{value:"medium",label:"Medium",lightColor:"bg-yellow-100 text-yellow-700",darkColor:"bg-yellow-900/50 text-yellow-300"},{value:"high",label:"High",lightColor:"bg-red-100 text-red-700",darkColor:"bg-red-900/50 text-red-300"}],D1={Close:()=>m.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Description:()=>m.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h7"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Checklist:()=>m.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),User:()=>m.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Clock:()=>m.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Document:()=>m.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Note:()=>m.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Plus:()=>m.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Trash:()=>m.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Archive:()=>m.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Parent:()=>m.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 10l7-7m0 0l7 7m-7-7v18"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};function K9({task:N,allTasks:v,onClose:L,onUpdate:g,onDelete:q,onNavigateToTask:R}){let{isDark:K}=w2(),F=g2.useRef(null),b=g2.useRef(null),[E,I]=g2.useState(!1),[_,T]=g2.useState(""),[t,B0]=g2.useState(!1),[j,Z0]=g2.useState(""),[K0,_0]=g2.useState(!1),[k,Y0]=g2.useState(""),[v0,C0]=g2.useState(!1),[e0,p]=g2.useState(""),[D0,i]=g2.useState(!1),[B2,S0]=g2.useState(""),[M0,G2]=g2.useState(!1),[c,z0]=g2.useState(null),[e,U0]=g2.useState(""),[a,u]=g2.useState(""),[G0,F0]=g2.useState(!1),[P0,x0]=g2.useState(!1),[C2,$2]=g2.useState(""),S2=g2.useRef(null),V2=g2.useRef(null);g2.useEffect(()=>{if(N)T(N.title),Z0(N.description||""),Y0(N.implementationPlan||""),p(N.implementationNotes||""),$2(N.assignee||""),F.current?.showModal();else F.current?.close(),I(!1),B0(!1),_0(!1),C0(!1),G2(!1),z0(null),F0(!1),x0(!1)},[N]),g2.useEffect(()=>{let y=(N0)=>{let I0=N0.target;while(I0&&I0.tagName!=="A"&&I0!==b.current)I0=I0.parentElement;if(I0&&I0.tagName==="A"){let Y2=I0.getAttribute("href");if(Y2&&/^task-\d+(.md)?$/.test(Y2)){N0.preventDefault();let F2=Y2.replace(".md",""),A4=v.find((k5)=>`task-${k5.id}`===F2);if(A4&&R)R(A4.id);return}if(Y2&&(Y2.endsWith(".md")||Y2.includes(".md#"))){N0.preventDefault();let F2=Y2.replace(/^\.\//,"").replace(/^\//,"");window.location.hash=`/docs/${F2}`,L()}}},n=b.current;if(n)return n.addEventListener("click",y),()=>n.removeEventListener("click",y)},[v,R,L]),g2.useEffect(()=>{if(E&&S2.current)S2.current.focus()},[E]),g2.useEffect(()=>{if(M0&&V2.current)V2.current.focus()},[M0]);let X1=(y)=>{if(b.current&&!b.current.contains(y.target))L()},l1=g2.useCallback((y)=>{if(y.key==="Escape"&&!E&&!t&&!K0&&!v0&&!M0&&!G0)L()},[L,E,t,K0,v0,M0,G0]),s=async(y)=>{if(!N)return;i(!0);try{let n=await f6(N.id,y);g(n)}catch(n){console.error("Failed to update task:",n)}finally{i(!1)}},Q0=()=>{if(_.trim()&&_!==N?.title)s({title:_.trim()});I(!1)},r0=()=>{if(j!==N?.description)s({description:j||void 0});B0(!1)},a0=()=>{if(k!==N?.implementationPlan)s({implementationPlan:k||void 0});_0(!1)},u0=()=>{if(e0!==N?.implementationNotes)s({implementationNotes:e0||void 0});C0(!1)},m0=(y)=>s({status:y}),J2=(y)=>s({priority:y}),L0=()=>{let y=C2.trim();if(y!==N?.assignee)s({assignee:y||void 0});x0(!1)},X2=(y)=>{if(!N)return;let n=N.acceptanceCriteria.map((N0,I0)=>I0===y?{...N0,completed:!N0.completed}:N0);s({acceptanceCriteria:n})},T0=()=>{if(!N||!B2.trim())return;s({acceptanceCriteria:[...N.acceptanceCriteria,{text:B2.trim(),completed:!1}]}),S0(""),G2(!1)},y1=(y)=>{if(!N)return;s({acceptanceCriteria:N.acceptanceCriteria.filter((n,N0)=>N0!==y)})},g1=(y)=>{if(!N)return;let n=N.acceptanceCriteria[y];if(!n)return;z0(y),U0(n.text)},n2=()=>{if(!N||c===null)return;let y=N.acceptanceCriteria[c];if(!y)return;if(e.trim()&&e!==y.text)s({acceptanceCriteria:N.acceptanceCriteria.map((n,N0)=>N0===c?{...n,text:e.trim()}:n)});z0(null),U0("")},W0=()=>{if(!N||!a.trim())return;if(!N.labels.includes(a.trim()))s({labels:[...N.labels,a.trim()]});u(""),F0(!1)},S1=(y)=>{if(!N)return;s({labels:N.labels.filter((n)=>n!==y)})};if(!N)return null;let F4=N.acceptanceCriteria.filter((y)=>y.completed).length,z4=N.acceptanceCriteria.length,W4=z4>0?F4/z4*100:0,h5=qL.find((y)=>y.value===N.status),V4=gL.find((y)=>y.value===N.priority),q7=K?"bg-gray-800":"bg-gray-100",Y1=K?"bg-gray-700":"bg-white",c7=K?"bg-gray-750":"bg-gray-50",C3=K?"text-gray-100":"text-gray-900",h2=K?"text-gray-300":"text-gray-700",H=K?"text-gray-400":"text-gray-500",C=K?"border-gray-600":"border-gray-200",l=K?"bg-gray-600 border-gray-500 text-gray-100":"bg-white border-gray-300 text-gray-900",o=K?"hover:bg-gray-600":"hover:bg-gray-50";return m.jsxDEV("dialog",{ref:F,className:"fixed inset-0 bg-transparent p-0 m-0 max-w-none w-full h-full backdrop:bg-black backdrop:bg-opacity-60",onKeyDown:l1,"aria-labelledby":"modal-title",children:m.jsxDEV("div",{className:"flex justify-center pt-12 pb-8 px-4 min-h-full",onClick:X1,children:m.jsxDEV("div",{ref:b,className:`${q7} rounded-xl shadow-2xl w-full max-w-4xl max-h-[calc(100vh-80px)] overflow-hidden flex flex-col`,onClick:(y)=>y.stopPropagation(),children:[m.jsxDEV("div",{className:"bg-gradient-to-r from-blue-500 to-blue-600 px-6 py-4 flex items-start justify-between",children:[m.jsxDEV("div",{className:"flex-1 min-w-0",children:[m.jsxDEV("span",{className:"text-blue-100 text-sm font-mono",children:["#",N.id]},void 0,!0,void 0,this),E?m.jsxDEV("input",{ref:S2,type:"text",value:_,onChange:(y)=>T(y.target.value),onBlur:Q0,onKeyDown:(y)=>{if(y.key==="Enter")Q0();if(y.key==="Escape")T(N.title),I(!1)},className:"w-full text-xl font-bold bg-white/20 text-white placeholder-white/60 border-0 rounded px-2 py-1 mt-1 focus:outline-none focus:ring-2 focus:ring-white/50"},void 0,!1,void 0,this):m.jsxDEV("h2",{id:"modal-title",className:"text-xl font-bold text-white mt-1 cursor-pointer hover:bg-white/10 rounded px-2 py-1 -mx-2 truncate",onClick:()=>I(!0),onKeyDown:(y)=>y.key==="Enter"&&I(!0),children:N.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m.jsxDEV("button",{type:"button",onClick:L,className:"text-white/80 hover:text-white hover:bg-white/20 rounded-full p-2 ml-4 transition-colors","aria-label":"Close modal",children:m.jsxDEV(D1.Close,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m.jsxDEV("div",{className:"flex-1 overflow-y-auto",children:m.jsxDEV("div",{className:"flex flex-col md:flex-row",children:[m.jsxDEV("div",{className:"flex-1 p-6 space-y-6",children:[m.jsxDEV("section",{children:[m.jsxDEV("div",{className:`flex items-center gap-2 mb-3 ${h2}`,children:[m.jsxDEV(D1.Description,{},void 0,!1,void 0,this),m.jsxDEV("h3",{className:"font-semibold",children:"Description"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),t?m.jsxDEV("div",{children:[m.jsxDEV(l7,{markdown:j,onChange:Z0,placeholder:"Add a more detailed description...",readOnly:D0,sectionType:"description"},void 0,!1,void 0,this),m.jsxDEV("div",{className:"flex gap-2 mt-2",children:[m.jsxDEV("button",{type:"button",onClick:r0,className:"px-4 py-1.5 bg-blue-600 text-white text-sm rounded hover:bg-blue-700",disabled:D0,children:"Save"},void 0,!1,void 0,this),m.jsxDEV("button",{type:"button",onClick:()=>{Z0(N.description||""),B0(!1)},className:`px-4 py-1.5 ${H} text-sm ${o} rounded`,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):m.jsxDEV("div",{className:`${Y1} rounded-lg px-3 py-2 min-h-20 cursor-pointer ${o} transition-colors border ${C}`,onClick:()=>B0(!0),tabIndex:0,role:"button",children:N.description?m.jsxDEV(u6,{markdown:N.description,className:`text-sm ${h2}`,sectionType:"description"},void 0,!1,void 0,this):m.jsxDEV("span",{className:`${H} italic text-sm`,children:"Add description..."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m.jsxDEV("section",{children:[m.jsxDEV("div",{className:`flex items-center gap-2 mb-3 ${h2}`,children:[m.jsxDEV(D1.Checklist,{},void 0,!1,void 0,this),m.jsxDEV("h3",{className:"font-semibold",children:"Acceptance Criteria"},void 0,!1,void 0,this),z4>0&&m.jsxDEV("span",{className:`text-sm ${H}`,children:["(",F4,"/",z4,")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z4>0&&m.jsxDEV("div",{className:"mb-3 flex items-center gap-2",children:[m.jsxDEV("span",{className:`text-xs ${H} w-8`,children:[Math.round(W4),"%"]},void 0,!0,void 0,this),m.jsxDEV("div",{className:`flex-1 h-2 ${K?"bg-gray-600":"bg-gray-200"} rounded-full overflow-hidden`,children:m.jsxDEV("div",{className:`h-full transition-all ${W4===100?"bg-green-500":"bg-blue-500"}`,style:{width:`${W4}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m.jsxDEV("div",{className:"space-y-2",children:N.acceptanceCriteria.map((y,n)=>m.jsxDEV("div",{className:`flex items-start gap-2 ${Y1} rounded-lg px-3 py-2 group ${o}`,children:[m.jsxDEV("input",{type:"checkbox",checked:y.completed,onChange:()=>X2(n),className:"mt-1 w-4 h-4 rounded cursor-pointer accent-blue-600",disabled:D0},void 0,!1,void 0,this),c===n?m.jsxDEV("input",{type:"text",value:e,onChange:(N0)=>U0(N0.target.value),onBlur:n2,onKeyDown:(N0)=>{if(N0.key==="Enter")n2();if(N0.key==="Escape")z0(null),U0("")},className:`flex-1 ${l} rounded px-2 py-0.5 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this):m.jsxDEV("span",{className:`flex-1 text-sm cursor-pointer ${y.completed?`${H} line-through`:h2}`,onClick:()=>g1(n),tabIndex:0,role:"button",children:y.text},void 0,!1,void 0,this),m.jsxDEV("button",{type:"button",onClick:()=>y1(n),className:`opacity-0 group-hover:opacity-100 ${H} hover:text-red-500 p-1 transition-all`,children:m.jsxDEV(D1.Trash,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`ac-${n}`,!0,void 0,this))},void 0,!1,void 0,this),M0?m.jsxDEV("div",{className:`mt-2 ${Y1} rounded-lg px-3 py-2`,children:[m.jsxDEV("input",{ref:V2,type:"text",value:B2,onChange:(y)=>S0(y.target.value),onKeyDown:(y)=>{if(y.key==="Enter"&&B2.trim())T0();if(y.key==="Escape")S0(""),G2(!1)},placeholder:"Add an item...",className:`w-full ${l} rounded px-2 py-1.5 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this),m.jsxDEV("div",{className:"flex gap-2 mt-2",children:[m.jsxDEV("button",{type:"button",onClick:T0,className:"px-3 py-1 bg-blue-600 text-white text-sm rounded hover:bg-blue-700",disabled:!B2.trim(),children:"Add"},void 0,!1,void 0,this),m.jsxDEV("button",{type:"button",onClick:()=>{S0(""),G2(!1)},className:`px-3 py-1 ${H} text-sm ${o} rounded`,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):m.jsxDEV("button",{type:"button",onClick:()=>G2(!0),className:`mt-2 flex items-center gap-1 text-sm ${H} ${o} px-3 py-2 rounded-lg w-full`,children:[m.jsxDEV(D1.Plus,{},void 0,!1,void 0,this),m.jsxDEV("span",{children:"Add an item"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m.jsxDEV("section",{children:[m.jsxDEV("div",{className:`flex items-center gap-2 mb-3 ${h2}`,children:[m.jsxDEV(D1.Document,{},void 0,!1,void 0,this),m.jsxDEV("h3",{className:"font-semibold",children:"Implementation Plan"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0?m.jsxDEV("div",{children:[m.jsxDEV(l7,{markdown:k,onChange:Y0,placeholder:`1. First step
|
|
424
|
+
`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});aP.displayName="MarkdownEditor";var V6=aP;var P0=J0(Q1(),1),nP=[{value:"todo",label:"To Do",lightColor:"bg-gray-100 text-gray-700",darkColor:"bg-gray-700 text-gray-300"},{value:"in-progress",label:"In Progress",lightColor:"bg-blue-100 text-blue-700",darkColor:"bg-blue-900/50 text-blue-300"},{value:"in-review",label:"In Review",lightColor:"bg-purple-100 text-purple-700",darkColor:"bg-purple-900/50 text-purple-300"},{value:"done",label:"Done",lightColor:"bg-green-100 text-green-700",darkColor:"bg-green-900/50 text-green-300"},{value:"blocked",label:"Blocked",lightColor:"bg-red-100 text-red-700",darkColor:"bg-red-900/50 text-red-300"}],sP=[{value:"low",label:"Low",lightColor:"bg-gray-100 text-gray-600",darkColor:"bg-gray-700 text-gray-300"},{value:"medium",label:"Medium",lightColor:"bg-yellow-100 text-yellow-700",darkColor:"bg-yellow-900/50 text-yellow-300"},{value:"high",label:"High",lightColor:"bg-red-100 text-red-700",darkColor:"bg-red-900/50 text-red-300"}];function Zz({isOpen:Q,allTasks:$,onClose:Y,onCreated:G}){let{isDark:K}=F5(),H=Z5.useRef(null),B=Z5.useRef(null),z=Z5.useRef(null),[F,R]=Z5.useState(""),[N,L]=Z5.useState(""),[O,A]=Z5.useState("todo"),[C,D]=Z5.useState("medium"),[b,y]=Z5.useState(""),[k,f]=Z5.useState([]),[a,s]=Z5.useState(""),[g,c]=Z5.useState([]),[h,Z0]=Z5.useState(!1),[E,_0]=Z5.useState(null),[t,n]=Z5.useState(!1),[z0,o]=Z5.useState(""),[H0,G0]=Z5.useState(!1),[e,U0]=Z5.useState(""),[T,B0]=Z5.useState(!1),[r,S]=Z5.useState(!1),L0=Z5.useRef(null);Z5.useEffect(()=>{if(Q)H.current?.showModal(),setTimeout(()=>z.current?.focus(),100);else H.current?.close(),R(""),L(""),A("todo"),D("medium"),y(""),f([]),s(""),c([]),_0(null),n(!1),o(""),G0(!1),U0(""),B0(!1),S(!1)},[Q]),Z5.useEffect(()=>{if(H0&&L0.current)L0.current.focus()},[H0]);let A0=(v0)=>{if(B.current&&!B.current.contains(v0.target))Y()},V0=Z5.useCallback((v0)=>{if(v0.key==="Escape"&&!H0&&!T)Y()},[Y,H0,T]),C0=()=>{if(!z0.trim())return;c([...g,{id:crypto.randomUUID(),text:z0.trim()}]),o(""),G0(!1)},u0=(v0)=>{c(g.filter((L4)=>L4.id!==v0))},$1=()=>{if(!e.trim())return;if(!k.includes(e.trim()))f([...k,e.trim()]);U0(""),B0(!1)},v1=(v0)=>{f(k.filter((L4)=>L4!==v0))},R0=async(v0)=>{if(v0.preventDefault(),_0(null),!F.trim()){_0("Title is required");return}Z0(!0);try{let L4={title:F.trim(),description:N.trim()||void 0,status:O,priority:C,labels:k,assignee:b.trim()||void 0,parent:a||void 0,acceptanceCriteria:g.map((K0)=>({text:K0.text,completed:!1}))};await cA(L4),n(!0),setTimeout(()=>{G(),Y()},800)}catch(L4){_0(L4 instanceof Error?L4.message:"Failed to create task")}finally{Z0(!1)}},h0=nP.find((v0)=>v0.value===O),Y1=sP.find((v0)=>v0.value===C),H1=a?$.find((v0)=>v0.id===a):null,e0=K?"bg-gray-800":"bg-gray-100",s0=K?"bg-gray-700":"bg-white",h1=K?"bg-gray-750":"bg-gray-50",c0=K?"text-gray-100":"text-gray-900",D1=K?"text-gray-300":"text-gray-700",X1=K?"text-gray-400":"text-gray-500",F4=K?"border-gray-600":"border-gray-200",a5=K?"bg-gray-600 border-gray-500 text-gray-100 placeholder-gray-400":"bg-white border-gray-200 text-gray-900 placeholder-gray-400",V5=K?"hover:bg-gray-600":"hover:bg-gray-100";return P0.jsxDEV("dialog",{ref:H,className:"fixed inset-0 bg-transparent p-0 m-0 max-w-none w-full h-full backdrop:bg-black backdrop:bg-opacity-60",onClick:A0,onKeyDown:V0,"aria-labelledby":"create-task-title",children:P0.jsxDEV("div",{className:"flex justify-center pt-12 pb-8 px-4 min-h-full",children:P0.jsxDEV("div",{ref:B,className:`${e0} rounded-xl shadow-2xl w-full max-w-4xl max-h-[calc(100vh-80px)] overflow-hidden flex flex-col`,children:[P0.jsxDEV("div",{className:"bg-gradient-to-r from-green-500 to-green-600 px-6 py-4 flex items-start justify-between",children:[P0.jsxDEV("div",{className:"flex-1 min-w-0",children:[P0.jsxDEV("span",{className:"text-green-100 text-sm font-medium",children:"New Task"},void 0,!1,void 0,this),P0.jsxDEV("input",{ref:z,type:"text",value:F,onChange:(v0)=>R(v0.target.value),placeholder:"Enter task title...",className:"w-full text-xl font-bold bg-white/20 text-white placeholder-white/60 border-0 rounded px-2 py-1 mt-1 focus:outline-none focus:ring-2 focus:ring-white/50",disabled:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P0.jsxDEV("button",{type:"button",onClick:Y,className:"text-white/80 hover:text-white hover:bg-white/20 rounded-full p-2 ml-4 transition-colors","aria-label":"Close",children:P0.jsxDEV(L2,{className:"w-5 h-5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),(t||E)&&P0.jsxDEV("div",{className:"px-6 pt-4",children:[t&&P0.jsxDEV("div",{className:`${K?"bg-green-900/50 border-green-700 text-green-300":"bg-green-50 border-green-200 text-green-700"} border px-4 py-2 rounded-lg text-sm`,children:"Task created successfully!"},void 0,!1,void 0,this),E&&P0.jsxDEV("div",{className:`${K?"bg-red-900/50 border-red-700 text-red-300":"bg-red-50 border-red-200 text-red-700"} border px-4 py-2 rounded-lg text-sm`,children:E},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P0.jsxDEV("form",{onSubmit:R0,className:"flex-1 overflow-y-auto",children:P0.jsxDEV("div",{className:"flex flex-col md:flex-row",children:[P0.jsxDEV("div",{className:"flex-1 p-6 space-y-6",children:[P0.jsxDEV("section",{children:[P0.jsxDEV("div",{className:"flex items-center gap-2 mb-3",children:[P0.jsxDEV("span",{className:D1,children:P0.jsxDEV(F2,{className:"w-5 h-5"},void 0,!1,void 0,this)},void 0,!1,void 0,this),P0.jsxDEV("h3",{className:`font-semibold ${D1}`,children:"Description"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P0.jsxDEV(V6,{markdown:N,onChange:L,placeholder:"Add a more detailed description...",readOnly:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P0.jsxDEV("section",{children:[P0.jsxDEV("div",{className:"flex items-center justify-between mb-3",children:P0.jsxDEV("div",{className:"flex items-center gap-2",children:[P0.jsxDEV("span",{className:D1,children:P0.jsxDEV(_6,{className:"w-5 h-5"},void 0,!1,void 0,this)},void 0,!1,void 0,this),P0.jsxDEV("h3",{className:`font-semibold ${D1}`,children:"Acceptance Criteria"},void 0,!1,void 0,this),g.length>0&&P0.jsxDEV("span",{className:`text-sm ${X1}`,children:["(",g.length,")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),P0.jsxDEV("div",{className:"space-y-2",children:g.map((v0)=>P0.jsxDEV("div",{className:`flex items-start gap-2 ${s0} rounded-lg px-3 py-2 group hover:shadow-sm transition-shadow`,children:[P0.jsxDEV("input",{type:"checkbox",checked:!1,disabled:!0,className:"mt-1 w-4 h-4 rounded cursor-not-allowed opacity-50"},void 0,!1,void 0,this),P0.jsxDEV("span",{className:`flex-1 text-sm ${D1}`,children:v0.text},void 0,!1,void 0,this),P0.jsxDEV("button",{type:"button",onClick:()=>u0(v0.id),className:`opacity-0 group-hover:opacity-100 ${X1} hover:text-red-500 p-1 transition-all`,title:"Delete",children:P0.jsxDEV(m9,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},v0.id,!0,void 0,this))},void 0,!1,void 0,this),H0?P0.jsxDEV("div",{className:`mt-2 ${s0} rounded-lg px-3 py-2`,children:[P0.jsxDEV("input",{ref:L0,type:"text",value:z0,onChange:(v0)=>o(v0.target.value),onKeyDown:(v0)=>{if(v0.key==="Enter"&&z0.trim())v0.preventDefault(),C0();if(v0.key==="Escape")o(""),G0(!1)},placeholder:"Add an item...",className:`w-full border ${F4} rounded px-2 py-1.5 text-sm focus:outline-none focus:ring-2 focus:ring-green-500 ${a5}`,disabled:h},void 0,!1,void 0,this),P0.jsxDEV("div",{className:"flex gap-2 mt-2",children:[P0.jsxDEV("button",{type:"button",onClick:C0,className:"px-3 py-1 bg-green-600 text-white text-sm rounded hover:bg-green-700 transition-colors",disabled:!z0.trim()||h,children:"Add"},void 0,!1,void 0,this),P0.jsxDEV("button",{type:"button",onClick:()=>{o(""),G0(!1)},className:`px-3 py-1 ${D1} text-sm ${V5} rounded transition-colors`,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):P0.jsxDEV("button",{type:"button",onClick:()=>G0(!0),className:`mt-2 flex items-center gap-1 text-sm ${X1} hover:${D1} ${V5} px-3 py-2 rounded-lg transition-colors w-full`,disabled:h,children:[P0.jsxDEV(X4,{className:"w-4 h-4"},void 0,!1,void 0,this),P0.jsxDEV("span",{children:"Add an item"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),P0.jsxDEV("div",{className:`w-full md:w-64 ${h1} p-4 border-t md:border-t-0 md:border-l ${F4} space-y-4`,children:[P0.jsxDEV("div",{children:[P0.jsxDEV("label",{className:`block text-xs font-semibold ${X1} uppercase tracking-wide mb-2`,children:"Status"},void 0,!1,void 0,this),P0.jsxDEV("select",{value:O,onChange:(v0)=>A(v0.target.value),className:`w-full rounded-lg px-3 py-2 text-sm font-medium border-0 cursor-pointer focus:outline-none focus:ring-2 focus:ring-green-500 ${K?h0?.darkColor:h0?.lightColor}`,disabled:h,children:nP.map((v0)=>P0.jsxDEV("option",{value:v0.value,children:v0.label},v0.value,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P0.jsxDEV("div",{children:[P0.jsxDEV("label",{className:`block text-xs font-semibold ${X1} uppercase tracking-wide mb-2`,children:"Priority"},void 0,!1,void 0,this),P0.jsxDEV("select",{value:C,onChange:(v0)=>D(v0.target.value),className:`w-full rounded-lg px-3 py-2 text-sm font-medium border-0 cursor-pointer focus:outline-none focus:ring-2 focus:ring-green-500 ${K?Y1?.darkColor:Y1?.lightColor}`,disabled:h,children:sP.map((v0)=>P0.jsxDEV("option",{value:v0.value,children:v0.label},v0.value,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P0.jsxDEV("div",{children:[P0.jsxDEV("label",{className:`block text-xs font-semibold ${X1} uppercase tracking-wide mb-2`,children:"Assignee"},void 0,!1,void 0,this),P0.jsxDEV("div",{className:`flex items-center gap-2 ${s0} rounded-lg px-3 py-2 border ${F4}`,children:[P0.jsxDEV("span",{className:X1,children:P0.jsxDEV(O6,{className:"w-5 h-5"},void 0,!1,void 0,this)},void 0,!1,void 0,this),P0.jsxDEV("input",{type:"text",value:b,onChange:(v0)=>y(v0.target.value),placeholder:"@username",className:`flex-1 text-sm bg-transparent focus:outline-none ${c0}`,disabled:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),P0.jsxDEV("div",{children:[P0.jsxDEV("label",{className:`block text-xs font-semibold ${X1} uppercase tracking-wide mb-2`,children:"Labels"},void 0,!1,void 0,this),P0.jsxDEV("div",{className:"flex flex-wrap gap-1 mb-2",children:k.map((v0)=>P0.jsxDEV("span",{className:`inline-flex items-center gap-1 text-xs ${K?"bg-blue-900/50 text-blue-300":"bg-blue-100 text-blue-700"} px-2 py-1 rounded-full group`,children:[v0,P0.jsxDEV("button",{type:"button",onClick:()=>v1(v0),className:"opacity-0 group-hover:opacity-100 hover:text-red-500 transition-opacity",title:"Remove label",children:"x"},void 0,!1,void 0,this)]},v0,!0,void 0,this))},void 0,!1,void 0,this),T?P0.jsxDEV("div",{children:[P0.jsxDEV("input",{type:"text",value:e,onChange:(v0)=>U0(v0.target.value),onKeyDown:(v0)=>{if(v0.key==="Enter"&&e.trim())v0.preventDefault(),$1();if(v0.key==="Escape")U0(""),B0(!1)},placeholder:"Label name",className:`w-full border ${F4} rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-green-500 ${a5}`,disabled:h},void 0,!1,void 0,this),P0.jsxDEV("div",{className:"flex gap-2 mt-2",children:[P0.jsxDEV("button",{type:"button",onClick:$1,className:"px-3 py-1 bg-green-600 text-white text-sm rounded hover:bg-green-700 transition-colors",disabled:!e.trim()||h,children:"Add"},void 0,!1,void 0,this),P0.jsxDEV("button",{type:"button",onClick:()=>{U0(""),B0(!1)},className:`px-3 py-1 ${D1} text-sm ${V5} rounded transition-colors`,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):P0.jsxDEV("button",{type:"button",onClick:()=>B0(!0),className:`flex items-center gap-1 text-sm ${X1} hover:${D1} ${V5} px-2 py-1.5 rounded transition-colors`,disabled:h,children:[P0.jsxDEV(X4,{className:"w-4 h-4"},void 0,!1,void 0,this),P0.jsxDEV("span",{children:"Add label"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),P0.jsxDEV("div",{children:[P0.jsxDEV("label",{className:`block text-xs font-semibold ${X1} uppercase tracking-wide mb-2`,children:"Parent Task"},void 0,!1,void 0,this),r?P0.jsxDEV("div",{children:[P0.jsxDEV("select",{value:a,onChange:(v0)=>{s(v0.target.value),S(!1)},className:`w-full border ${F4} rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-green-500 ${a5}`,disabled:h,children:[P0.jsxDEV("option",{value:"",children:"None"},void 0,!1,void 0,this),$.map((v0)=>P0.jsxDEV("option",{value:v0.id,children:["#",v0.id," - ",v0.title]},v0.id,!0,void 0,this))]},void 0,!0,void 0,this),P0.jsxDEV("button",{type:"button",onClick:()=>S(!1),className:`mt-2 px-3 py-1 ${D1} text-sm ${V5} rounded transition-colors`,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):H1?P0.jsxDEV("button",{type:"button",onClick:()=>S(!0),className:`w-full flex items-center gap-2 ${s0} rounded-lg px-3 py-2 text-sm text-left ${V5} transition-colors border ${F4}`,disabled:h,children:[P0.jsxDEV("span",{className:X1,children:P0.jsxDEV(w8,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),P0.jsxDEV("div",{className:"flex-1 min-w-0",children:[P0.jsxDEV("span",{className:`text-xs ${X1} font-mono`,children:["#",H1.id]},void 0,!0,void 0,this),P0.jsxDEV("p",{className:`${D1} truncate`,children:H1.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):P0.jsxDEV("button",{type:"button",onClick:()=>S(!0),className:`flex items-center gap-1 text-sm ${X1} hover:${D1} ${V5} px-2 py-1.5 rounded transition-colors`,disabled:h,children:[P0.jsxDEV(X4,{className:"w-4 h-4"},void 0,!1,void 0,this),P0.jsxDEV("span",{children:"Set parent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),P0.jsxDEV("div",{className:`border-t ${F4} px-6 py-4 ${h1} flex justify-end gap-3`,children:[P0.jsxDEV("button",{type:"button",onClick:Y,className:`px-4 py-2 text-sm ${D1} ${V5} rounded-lg transition-colors`,disabled:h,children:"Cancel"},void 0,!1,void 0,this),P0.jsxDEV("button",{type:"button",onClick:R0,className:"px-6 py-2 text-sm bg-green-600 text-white rounded-lg hover:bg-green-700 disabled:opacity-50 transition-colors font-medium",disabled:h||t||!F.trim(),children:h?"Creating...":"Create Task"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var uX=J0(k0(),1);var D7=J0(k0(),1);var oP=1,Vk=0.9,Pk=0.8,wk=0.17,Xz=0.1,Qz=0.999,Ck=0.9999,jk=0.99,Dk=/[\\\/_+.#"@\[\(\{&]/,Sk=/[\\\/_+.#"@\[\(\{&]/g,Ek=/[\s-]/,eP=/[\s-]/g;function Jz(Q,$,Y,G,K,H,B){if(H===$.length)return K===Q.length?oP:jk;var z=`${K},${H}`;if(B[z]!==void 0)return B[z];for(var F=G.charAt(H),R=Y.indexOf(F,K),N=0,L,O,A,C;R>=0;)L=Jz(Q,$,Y,G,R+1,H+1,B),L>N&&(R===K?L*=oP:Dk.test(Q.charAt(R-1))?(L*=Pk,A=Q.slice(K,R-1).match(Sk),A&&K>0&&(L*=Math.pow(Qz,A.length))):Ek.test(Q.charAt(R-1))?(L*=Vk,C=Q.slice(K,R-1).match(eP),C&&K>0&&(L*=Math.pow(Qz,C.length))):(L*=wk,K>0&&(L*=Math.pow(Qz,R-K))),Q.charAt(R)!==$.charAt(H)&&(L*=Ck)),(L<Xz&&Y.charAt(R-1)===G.charAt(H+1)||G.charAt(H+1)===G.charAt(H)&&Y.charAt(R-1)!==G.charAt(H))&&(O=Jz(Q,$,Y,G,R+1,H+2,B),O*Xz>L&&(L=O*Xz)),L>N&&(N=L),R=Y.indexOf(F,R+1);return B[z]=N,N}function tP(Q){return Q.toLowerCase().replace(eP," ")}function Zw(Q,$,Y){return Q=Y&&Y.length>0?`${Q+" "+Y.join(" ")}`:Q,Jz(Q,$,tP(Q),tP($),0,0,{})}var x0=J0(k0(),1);var Xw=J0(k0(),1),bk=J0(V8(),1);var Qw=J0(l5(),1),yk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],P6=yk.reduce((Q,$)=>{let Y=tQ(`Primitive.${$}`),G=Xw.forwardRef((K,H)=>{let{asChild:B,...z}=K,F=B?Y:$;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return Qw.jsx(F,{...z,ref:H})});return G.displayName=`Primitive.${$}`,{...Q,[$]:G}},{});var OJ='[cmdk-group=""]',$z='[cmdk-group-items=""]',gk='[cmdk-group-heading=""]',$w='[cmdk-item=""]',Jw=`${$w}:not([aria-disabled="true"])`,Yz="cmdk-item-select",kX="data-value",hk=(Q,$,Y)=>Zw(Q,$,Y),Yw=x0.createContext(void 0),AJ=()=>x0.useContext(Yw),qw=x0.createContext(void 0),qz=()=>x0.useContext(qw),Gw=x0.createContext(void 0),Kw=x0.forwardRef((Q,$)=>{let Y=mX(()=>{var r,S;return{search:"",value:(S=(r=Q.value)!=null?r:Q.defaultValue)!=null?S:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),G=mX(()=>new Set),K=mX(()=>new Map),H=mX(()=>new Map),B=mX(()=>new Set),z=Ww(Q),{label:F,children:R,value:N,onValueChange:L,filter:O,shouldFilter:A,loop:C,disablePointerSelection:D=!1,vimBindings:b=!0,...y}=Q,k=N2(),f=N2(),a=N2(),s=x0.useRef(null),g=ck();r8(()=>{if(N!==void 0){let r=N.trim();Y.current.value=r,c.emit()}},[N]),r8(()=>{g(6,n)},[]);let c=x0.useMemo(()=>({subscribe:(r)=>(B.current.add(r),()=>B.current.delete(r)),snapshot:()=>Y.current,setState:(r,S,L0)=>{var A0,V0,C0,u0;if(!Object.is(Y.current[r],S)){if(Y.current[r]=S,r==="search")t(),E(),g(1,_0);else if(r==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let $1=document.getElementById(a);$1?$1.focus():(A0=document.getElementById(k))==null||A0.focus()}if(g(7,()=>{var $1;Y.current.selectedItemId=($1=z0())==null?void 0:$1.id,c.emit()}),L0||g(5,n),((V0=z.current)==null?void 0:V0.value)!==void 0){let $1=S!=null?S:"";(u0=(C0=z.current).onValueChange)==null||u0.call(C0,$1);return}}c.emit()}},emit:()=>{B.current.forEach((r)=>r())}}),[]),h=x0.useMemo(()=>({value:(r,S,L0)=>{var A0;S!==((A0=H.current.get(r))==null?void 0:A0.value)&&(H.current.set(r,{value:S,keywords:L0}),Y.current.filtered.items.set(r,Z0(S,L0)),g(2,()=>{E(),c.emit()}))},item:(r,S)=>(G.current.add(r),S&&(K.current.has(S)?K.current.get(S).add(r):K.current.set(S,new Set([r]))),g(3,()=>{t(),E(),Y.current.value||_0(),c.emit()}),()=>{H.current.delete(r),G.current.delete(r),Y.current.filtered.items.delete(r);let L0=z0();g(4,()=>{t(),(L0==null?void 0:L0.getAttribute("id"))===r&&_0(),c.emit()})}),group:(r)=>(K.current.has(r)||K.current.set(r,new Set),()=>{H.current.delete(r),K.current.delete(r)}),filter:()=>z.current.shouldFilter,label:F||Q["aria-label"],getDisablePointerSelection:()=>z.current.disablePointerSelection,listId:k,inputId:a,labelId:f,listInnerRef:s}),[]);function Z0(r,S){var L0,A0;let V0=(A0=(L0=z.current)==null?void 0:L0.filter)!=null?A0:hk;return r?V0(r,Y.current.search,S):0}function E(){if(!Y.current.search||z.current.shouldFilter===!1)return;let r=Y.current.filtered.items,S=[];Y.current.filtered.groups.forEach((A0)=>{let V0=K.current.get(A0),C0=0;V0.forEach((u0)=>{let $1=r.get(u0);C0=Math.max($1,C0)}),S.push([A0,C0])});let L0=s.current;o().sort((A0,V0)=>{var C0,u0;let $1=A0.getAttribute("id"),v1=V0.getAttribute("id");return((C0=r.get(v1))!=null?C0:0)-((u0=r.get($1))!=null?u0:0)}).forEach((A0)=>{let V0=A0.closest($z);V0?V0.appendChild(A0.parentElement===V0?A0:A0.closest(`${$z} > *`)):L0.appendChild(A0.parentElement===L0?A0:A0.closest(`${$z} > *`))}),S.sort((A0,V0)=>V0[1]-A0[1]).forEach((A0)=>{var V0;let C0=(V0=s.current)==null?void 0:V0.querySelector(`${OJ}[${kX}="${encodeURIComponent(A0[0])}"]`);C0==null||C0.parentElement.appendChild(C0)})}function _0(){let r=o().find((L0)=>L0.getAttribute("aria-disabled")!=="true"),S=r==null?void 0:r.getAttribute(kX);c.setState("value",S||void 0)}function t(){var r,S,L0,A0;if(!Y.current.search||z.current.shouldFilter===!1){Y.current.filtered.count=G.current.size;return}Y.current.filtered.groups=new Set;let V0=0;for(let C0 of G.current){let u0=(S=(r=H.current.get(C0))==null?void 0:r.value)!=null?S:"",$1=(A0=(L0=H.current.get(C0))==null?void 0:L0.keywords)!=null?A0:[],v1=Z0(u0,$1);Y.current.filtered.items.set(C0,v1),v1>0&&V0++}for(let[C0,u0]of K.current)for(let $1 of u0)if(Y.current.filtered.items.get($1)>0){Y.current.filtered.groups.add(C0);break}Y.current.filtered.count=V0}function n(){var r,S,L0;let A0=z0();A0&&(((r=A0.parentElement)==null?void 0:r.firstChild)===A0&&((L0=(S=A0.closest(OJ))==null?void 0:S.querySelector(gk))==null||L0.scrollIntoView({block:"nearest"})),A0.scrollIntoView({block:"nearest"}))}function z0(){var r;return(r=s.current)==null?void 0:r.querySelector(`${$w}[aria-selected="true"]`)}function o(){var r;return Array.from(((r=s.current)==null?void 0:r.querySelectorAll(Jw))||[])}function H0(r){let S=o()[r];S&&c.setState("value",S.getAttribute(kX))}function G0(r){var S;let L0=z0(),A0=o(),V0=A0.findIndex((u0)=>u0===L0),C0=A0[V0+r];(S=z.current)!=null&&S.loop&&(C0=V0+r<0?A0[A0.length-1]:V0+r===A0.length?A0[0]:A0[V0+r]),C0&&c.setState("value",C0.getAttribute(kX))}function e(r){let S=z0(),L0=S==null?void 0:S.closest(OJ),A0;for(;L0&&!A0;)L0=r>0?dk(L0,OJ):ik(L0,OJ),A0=L0==null?void 0:L0.querySelector(Jw);A0?c.setState("value",A0.getAttribute(kX)):G0(r)}let U0=()=>H0(o().length-1),T=(r)=>{r.preventDefault(),r.metaKey?U0():r.altKey?e(1):G0(1)},B0=(r)=>{r.preventDefault(),r.metaKey?H0(0):r.altKey?e(-1):G0(-1)};return x0.createElement(P6.div,{ref:$,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:(r)=>{var S;(S=y.onKeyDown)==null||S.call(y,r);let L0=r.nativeEvent.isComposing||r.keyCode===229;if(!(r.defaultPrevented||L0))switch(r.key){case"n":case"j":{b&&r.ctrlKey&&T(r);break}case"ArrowDown":{T(r);break}case"p":case"k":{b&&r.ctrlKey&&B0(r);break}case"ArrowUp":{B0(r);break}case"Home":{r.preventDefault(),H0(0);break}case"End":{r.preventDefault(),U0();break}case"Enter":{r.preventDefault();let A0=z0();if(A0){let V0=new Event(Yz);A0.dispatchEvent(V0)}}}}},x0.createElement("label",{"cmdk-label":"",htmlFor:h.inputId,id:h.labelId,style:ak},F),eq(Q,(r)=>x0.createElement(qw.Provider,{value:c},x0.createElement(Yw.Provider,{value:h},r))))}),vk=x0.forwardRef((Q,$)=>{var Y,G;let K=N2(),H=x0.useRef(null),B=x0.useContext(Gw),z=AJ(),F=Ww(Q),R=(G=(Y=F.current)==null?void 0:Y.forceMount)!=null?G:B==null?void 0:B.forceMount;r8(()=>{if(!R)return z.item(K,B==null?void 0:B.id)},[R]);let N=Hw(K,H,[Q.value,Q.children,H],Q.keywords),L=qz(),O=j7((g)=>g.value&&g.value===N.current),A=j7((g)=>R||z.filter()===!1?!0:g.search?g.filtered.items.get(K)>0:!0);x0.useEffect(()=>{let g=H.current;if(!(!g||Q.disabled))return g.addEventListener(Yz,C),()=>g.removeEventListener(Yz,C)},[A,Q.onSelect,Q.disabled]);function C(){var g,c;D(),(c=(g=F.current).onSelect)==null||c.call(g,N.current)}function D(){L.setState("value",N.current,!0)}if(!A)return null;let{disabled:b,value:y,onSelect:k,forceMount:f,keywords:a,...s}=Q;return x0.createElement(P6.div,{ref:M2(H,$),...s,id:K,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!O,"data-disabled":!!b,"data-selected":!!O,onPointerMove:b||z.getDisablePointerSelection()?void 0:D,onClick:b?void 0:C},Q.children)}),xk=x0.forwardRef((Q,$)=>{let{heading:Y,children:G,forceMount:K,...H}=Q,B=N2(),z=x0.useRef(null),F=x0.useRef(null),R=N2(),N=AJ(),L=j7((A)=>K||N.filter()===!1?!0:A.search?A.filtered.groups.has(B):!0);r8(()=>N.group(B),[]),Hw(B,z,[Q.value,Q.heading,F]);let O=x0.useMemo(()=>({id:B,forceMount:K}),[K]);return x0.createElement(P6.div,{ref:M2(z,$),...H,"cmdk-group":"",role:"presentation",hidden:L?void 0:!0},Y&&x0.createElement("div",{ref:F,"cmdk-group-heading":"","aria-hidden":!0,id:R},Y),eq(Q,(A)=>x0.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":Y?R:void 0},x0.createElement(Gw.Provider,{value:O},A))))}),kk=x0.forwardRef((Q,$)=>{let{alwaysRender:Y,...G}=Q,K=x0.useRef(null),H=j7((B)=>!B.search);return!Y&&!H?null:x0.createElement(P6.div,{ref:M2(K,$),...G,"cmdk-separator":"",role:"separator"})}),mk=x0.forwardRef((Q,$)=>{let{onValueChange:Y,...G}=Q,K=Q.value!=null,H=qz(),B=j7((R)=>R.search),z=j7((R)=>R.selectedItemId),F=AJ();return x0.useEffect(()=>{Q.value!=null&&H.setState("search",Q.value)},[Q.value]),x0.createElement(P6.input,{ref:$,...G,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":F.listId,"aria-labelledby":F.labelId,"aria-activedescendant":z,id:F.inputId,type:"text",value:K?Q.value:B,onChange:(R)=>{K||H.setState("search",R.target.value),Y==null||Y(R.target.value)}})}),uk=x0.forwardRef((Q,$)=>{let{children:Y,label:G="Suggestions",...K}=Q,H=x0.useRef(null),B=x0.useRef(null),z=j7((R)=>R.selectedItemId),F=AJ();return x0.useEffect(()=>{if(B.current&&H.current){let R=B.current,N=H.current,L,O=new ResizeObserver(()=>{L=requestAnimationFrame(()=>{let A=R.offsetHeight;N.style.setProperty("--cmdk-list-height",A.toFixed(1)+"px")})});return O.observe(R),()=>{cancelAnimationFrame(L),O.unobserve(R)}}},[]),x0.createElement(P6.div,{ref:M2(H,$),...K,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":z,"aria-label":G,id:F.listId},eq(Q,(R)=>x0.createElement("div",{ref:M2(B,F.listInnerRef),"cmdk-list-sizer":""},R)))}),fk=x0.forwardRef((Q,$)=>{let{open:Y,onOpenChange:G,overlayClassName:K,contentClassName:H,container:B,...z}=Q;return x0.createElement(wX,{open:Y,onOpenChange:G},x0.createElement(CX,{container:B},x0.createElement(V7,{"cmdk-overlay":"",className:K}),x0.createElement(P7,{"aria-label":Q.label,"cmdk-dialog":"",className:H},x0.createElement(Kw,{ref:$,...z}))))}),pk=x0.forwardRef((Q,$)=>j7((Y)=>Y.filtered.count===0)?x0.createElement(P6.div,{ref:$,...Q,"cmdk-empty":"",role:"presentation"}):null),lk=x0.forwardRef((Q,$)=>{let{progress:Y,children:G,label:K="Loading...",...H}=Q;return x0.createElement(P6.div,{ref:$,...H,"cmdk-loading":"",role:"progressbar","aria-valuenow":Y,"aria-valuemin":0,"aria-valuemax":100,"aria-label":K},eq(Q,(B)=>x0.createElement("div",{"aria-hidden":!0},B)))}),v4=Object.assign(Kw,{List:uk,Item:vk,Input:mk,Group:xk,Separator:kk,Dialog:fk,Empty:pk,Loading:lk});function dk(Q,$){let Y=Q.nextElementSibling;for(;Y;){if(Y.matches($))return Y;Y=Y.nextElementSibling}}function ik(Q,$){let Y=Q.previousElementSibling;for(;Y;){if(Y.matches($))return Y;Y=Y.previousElementSibling}}function Ww(Q){let $=x0.useRef(Q);return r8(()=>{$.current=Q}),$}var r8=typeof window>"u"?x0.useEffect:x0.useLayoutEffect;function mX(Q){let $=x0.useRef();return $.current===void 0&&($.current=Q()),$}function j7(Q){let $=qz(),Y=()=>Q($.snapshot());return x0.useSyncExternalStore($.subscribe,Y,Y)}function Hw(Q,$,Y,G=[]){let K=x0.useRef(),H=AJ();return r8(()=>{var B;let z=(()=>{var R;for(let N of Y){if(typeof N=="string")return N.trim();if(typeof N=="object"&&"current"in N)return N.current?(R=N.current.textContent)==null?void 0:R.trim():K.current}})(),F=G.map((R)=>R.trim());H.value(Q,z,F),(B=$.current)==null||B.setAttribute(kX,z),K.current=z}),K}var ck=()=>{let[Q,$]=x0.useState(),Y=mX(()=>new Map);return r8(()=>{Y.current.forEach((G)=>G()),Y.current=new Map},[Q]),(G,K)=>{Y.current.set(G,K),$({})}};function rk(Q){let $=Q.type;return typeof $=="function"?$(Q.props):("render"in $)?$.render(Q.props):Q}function eq({asChild:Q,children:$},Y){return Q&&x0.isValidElement($)?x0.cloneElement(rk($),{ref:$.ref},Y($.props.children)):Y($)}var ak={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};var IJ=J0(k0(),1);var u2=J0(Q1(),1),Gz=wX;var nk=CX;var Bw=IJ.forwardRef(({className:Q,...$},Y)=>u2.jsxDEV(V7,{ref:Y,className:a0("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",Q),...$},void 0,!1,void 0,this));Bw.displayName=V7.displayName;var ZG=IJ.forwardRef(({className:Q,children:$,hideClose:Y,...G},K)=>u2.jsxDEV(nk,{children:[u2.jsxDEV(Bw,{},void 0,!1,void 0,this),u2.jsxDEV(P7,{ref:K,className:a0("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg 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%] sm:rounded-lg",Q),...G,children:[$,!Y&&u2.jsxDEV(Eq,{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:[u2.jsxDEV(L2,{className:"h-4 w-4"},void 0,!1,void 0,this),u2.jsxDEV("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this));ZG.displayName=P7.displayName;var sk=({className:Q,...$})=>u2.jsxDEV("div",{className:a0("flex flex-col space-y-1.5 text-center sm:text-left",Q),...$},void 0,!1,void 0,this);sk.displayName="DialogHeader";var ok=({className:Q,...$})=>u2.jsxDEV("div",{className:a0("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",Q),...$},void 0,!1,void 0,this);ok.displayName="DialogFooter";var tk=IJ.forwardRef(({className:Q,...$},Y)=>u2.jsxDEV(jX,{ref:Y,className:a0("text-lg font-semibold leading-none tracking-tight",Q),...$},void 0,!1,void 0,this));tk.displayName=jX.displayName;var ek=IJ.forwardRef(({className:Q,...$},Y)=>u2.jsxDEV(DX,{ref:Y,className:a0("text-sm text-muted-foreground",Q),...$},void 0,!1,void 0,this));ek.displayName=DX.displayName;var W9=J0(Q1(),1),Kz=D7.forwardRef(({className:Q,...$},Y)=>W9.jsxDEV(v4,{ref:Y,className:a0("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",Q),...$},void 0,!1,void 0,this));Kz.displayName=v4.displayName;var Wz=D7.forwardRef(({className:Q,...$},Y)=>W9.jsxDEV("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[W9.jsxDEV(S8,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"},void 0,!1,void 0,this),W9.jsxDEV(v4.Input,{ref:Y,className:a0("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",Q),...$},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Wz.displayName=v4.Input.displayName;var Hz=D7.forwardRef(({className:Q,...$},Y)=>W9.jsxDEV(v4.List,{ref:Y,className:a0("max-h-[300px] overflow-y-auto overflow-x-hidden",Q),...$},void 0,!1,void 0,this));Hz.displayName=v4.List.displayName;var Bz=D7.forwardRef((Q,$)=>W9.jsxDEV(v4.Empty,{ref:$,className:"py-6 text-center text-sm",...Q},void 0,!1,void 0,this));Bz.displayName=v4.Empty.displayName;var XG=D7.forwardRef(({className:Q,...$},Y)=>W9.jsxDEV(v4.Group,{ref:Y,className:a0("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",Q),...$},void 0,!1,void 0,this));XG.displayName=v4.Group.displayName;var Uz=D7.forwardRef(({className:Q,...$},Y)=>W9.jsxDEV(v4.Separator,{ref:Y,className:a0("-mx-1 h-px bg-border",Q),...$},void 0,!1,void 0,this));Uz.displayName=v4.Separator.displayName;var QG=D7.forwardRef(({className:Q,...$},Y)=>W9.jsxDEV(v4.Item,{ref:Y,className:a0("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",Q),...$},void 0,!1,void 0,this));QG.displayName=v4.Item.displayName;var Zm=({className:Q,...$})=>{return W9.jsxDEV("span",{className:a0("ml-auto text-xs tracking-widest text-muted-foreground",Q),...$},void 0,!1,void 0,this)};Zm.displayName="CommandShortcut";var R5=J0(Q1(),1),Uw={todo:"bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-300","in-progress":"bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-300","in-review":"bg-purple-100 text-purple-700 dark:bg-purple-900 dark:text-purple-300",done:"bg-green-100 text-green-700 dark:bg-green-900 dark:text-green-300",blocked:"bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-300","on-hold":"bg-yellow-100 text-yellow-700 dark:bg-yellow-900 dark:text-yellow-300"},Xm={todo:"To Do","in-progress":"In Progress","in-review":"In Review",done:"Done",blocked:"Blocked","on-hold":"On Hold"};function zz({open:Q,onOpenChange:$,onTaskSelect:Y,onDocSelect:G}){let[K,H]=uX.useState(""),[B,z]=uX.useState({tasks:[],docs:[]}),[F,R]=uX.useState(!1);uX.useEffect(()=>{if(!Q){H(""),z({tasks:[],docs:[]});return}if(!K.trim()){z({tasks:[],docs:[]});return}R(!0);let O=setTimeout(()=>{fetch(`/api/search?q=${encodeURIComponent(K)}`).then((A)=>A.json()).then((A)=>{z({tasks:A.tasks||[],docs:A.docs||[]})}).catch((A)=>{console.error("Search failed:",A),z({tasks:[],docs:[]})}).finally(()=>{R(!1)})},300);return()=>clearTimeout(O)},[K,Q]);let N=(O)=>{Y(O),$(!1),H("")},L=(O)=>{G(O),$(!1),H("")};return R5.jsxDEV(Gz,{open:Q,onOpenChange:$,children:R5.jsxDEV(ZG,{className:"overflow-hidden p-0 max-w-2xl",hideClose:!0,children:R5.jsxDEV(Kz,{shouldFilter:!1,children:[R5.jsxDEV(Wz,{placeholder:"Search tasks and docs...",value:K,onValueChange:H},void 0,!1,void 0,this),R5.jsxDEV(Hz,{children:[R5.jsxDEV(Bz,{children:F?"Searching...":K?"No results found.":"Type to search..."},void 0,!1,void 0,this),B.tasks.length>0&&R5.jsxDEV(XG,{heading:"Tasks",children:B.tasks.slice(0,8).map((O)=>{let A=Uw[O.status]||Uw.todo,C=Xm[O.status]||O.status;return R5.jsxDEV(QG,{value:`task-${O.id}`,onSelect:()=>N(O),children:[R5.jsxDEV(j8,{className:"mr-2 h-4 w-4 shrink-0"},void 0,!1,void 0,this),R5.jsxDEV("div",{className:"flex-1 min-w-0",children:[R5.jsxDEV("div",{className:"flex items-center gap-2 mb-1",children:[R5.jsxDEV("span",{className:"text-xs font-mono text-muted-foreground",children:["#",O.id]},void 0,!0,void 0,this),R5.jsxDEV("span",{className:`text-xs px-2 py-0.5 rounded-full font-medium ${A}`,children:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R5.jsxDEV("div",{className:"font-medium truncate",children:O.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},O.id,!0,void 0,this)})},void 0,!1,void 0,this),B.tasks.length>0&&B.docs.length>0&&R5.jsxDEV(Uz,{},void 0,!1,void 0,this),B.docs.length>0&&R5.jsxDEV(XG,{heading:"Documentation",children:B.docs.slice(0,8).map((O)=>{let A=O.metadata?.title||O.filename;return R5.jsxDEV(QG,{value:`doc-${O.path}`,onSelect:()=>L(O),children:[R5.jsxDEV(O4,{className:"mr-2 h-4 w-4 shrink-0"},void 0,!1,void 0,this),R5.jsxDEV("div",{className:"flex-1 min-w-0",children:[R5.jsxDEV("div",{className:"font-medium truncate mb-1",children:A},void 0,!1,void 0,this),R5.jsxDEV("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:R5.jsxDEV("span",{className:"truncate",children:O.path},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},O.path,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var f2=J0(k0(),1);var y0=J0(Q1(),1),Fz=["todo","in-progress","in-review","done","blocked","on-hold","urgent"],Qm=["gray","blue","green","yellow","red","purple","orange","pink","cyan","indigo"];function Lz(){let{isDark:Q}=F5(),[$,Y]=f2.useState({}),[G,K]=f2.useState(!0),[H,B]=f2.useState(!1),[z,F]=f2.useState(null),[R,N]=f2.useState("form"),[L,O]=f2.useState(""),[A,C]=f2.useState(null),[D,b]=f2.useState(""),y=Q?"bg-gray-800":"bg-white",k=Q?"text-gray-200":"text-gray-900",f=Q?"text-gray-400":"text-gray-600",a=Q?"border-gray-700":"border-gray-200",s=Q?"bg-gray-700":"bg-white";f2.useEffect(()=>{fetch("/api/config").then((t)=>t.json()).then((t)=>{let n=t.config||{};Y(n),O(JSON.stringify(n,null,2)),K(!1)}).catch((t)=>{console.error("Failed to load config:",t),K(!1)})},[]),f2.useEffect(()=>{if(R==="form")O(JSON.stringify($,null,2))},[$,R]);let g=async()=>{B(!0),F(null);try{let t=$;if(R==="json")try{t=JSON.parse(L),Y(t),C(null)}catch(z0){C("Invalid JSON syntax"),B(!1);return}if(!(await fetch("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).ok)throw Error("Failed to save config");F({type:"success",text:"Configuration saved successfully!"}),setTimeout(()=>F(null),3000)}catch(t){F({type:"error",text:t instanceof Error?t.message:"Failed to save config"})}finally{B(!1)}},c=()=>{if(!D.trim())return;let t=D.toLowerCase().replace(/\s+/g,"-"),n=$.statuses||Fz;if(n.includes(t)){F({type:"error",text:"Status already exists"});return}Y({...$,statuses:[...n,t],statusColors:{...$.statusColors||{},[t]:"gray"}}),b("")},h=(t)=>{let n=$.statuses||Fz,z0={...$.statusColors||{}};delete z0[t],Y({...$,statuses:n.filter((o)=>o!==t),statusColors:z0,visibleColumns:($.visibleColumns||[]).filter((o)=>o!==t)})},Z0=(t,n)=>{Y({...$,statusColors:{...$.statusColors||{},[t]:n}})};if(G)return y0.jsxDEV("div",{className:"p-6 flex items-center justify-center h-64",children:y0.jsxDEV("div",{className:`text-lg ${f}`,children:"Loading configuration..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);let E=$.statuses||Fz,_0=$.statusColors||{};return y0.jsxDEV("div",{className:"p-6 max-w-3xl",children:[y0.jsxDEV("div",{className:"mb-6 flex items-center justify-between",children:[y0.jsxDEV("div",{className:"flex items-center gap-3",children:[y0.jsxDEV(E8,{className:"w-6 h-6"},void 0,!1,void 0,this),y0.jsxDEV("h1",{className:`text-2xl font-bold ${k}`,children:"Configuration"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:`flex rounded-lg border ${a} overflow-hidden`,children:[y0.jsxDEV("button",{type:"button",onClick:()=>N("form"),className:`px-3 py-1.5 text-sm flex items-center gap-1.5 transition-colors ${R==="form"?"bg-blue-600 text-white":`${Q?"bg-gray-700 text-gray-300 hover:bg-gray-600":"bg-gray-100 text-gray-700 hover:bg-gray-200"}`}`,children:[y0.jsxDEV(_7,{className:"w-4 h-4"},void 0,!1,void 0,this),"Form"]},void 0,!0,void 0,this),y0.jsxDEV("button",{type:"button",onClick:()=>N("json"),className:`px-3 py-1.5 text-sm flex items-center gap-1.5 transition-colors ${R==="json"?"bg-blue-600 text-white":`${Q?"bg-gray-700 text-gray-300 hover:bg-gray-600":"bg-gray-100 text-gray-700 hover:bg-gray-200"}`}`,children:[y0.jsxDEV(pQ,{className:"w-4 h-4"},void 0,!1,void 0,this),"JSON"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z&&y0.jsxDEV("div",{className:`mb-6 p-4 rounded-lg ${z.type==="success"?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"}`,children:z.text},void 0,!1,void 0,this),R==="json"?y0.jsxDEV("div",{className:`${y} rounded-lg border ${a} p-6 space-y-4`,children:[y0.jsxDEV("div",{children:[y0.jsxDEV("label",{className:`block text-sm font-medium ${k} mb-2`,children:"config.json"},void 0,!1,void 0,this),y0.jsxDEV("textarea",{value:L,onChange:(t)=>{O(t.target.value),C(null)},className:`w-full h-96 px-3 py-2 rounded-lg border ${a} ${s} ${k} font-mono text-sm focus:outline-none focus:ring-2 focus:ring-blue-500`,spellCheck:!1},void 0,!1,void 0,this),A&&y0.jsxDEV("p",{className:"mt-2 text-sm text-red-500",children:A},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"pt-4 border-t border-gray-700",children:y0.jsxDEV("button",{type:"button",onClick:g,disabled:H,className:"px-4 py-2 bg-blue-600 text-white text-sm font-medium rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2 transition-colors",children:[y0.jsxDEV(M7,{className:"w-4 h-4"},void 0,!1,void 0,this),H?"Saving...":"Save Configuration"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):y0.jsxDEV("div",{className:`${y} rounded-lg border ${a} p-6 space-y-6`,children:[y0.jsxDEV("div",{children:[y0.jsxDEV("label",{className:`block text-sm font-medium ${k} mb-2`,children:"Project Name"},void 0,!1,void 0,this),y0.jsxDEV("input",{type:"text",value:$.name||"",onChange:(t)=>Y({...$,name:t.target.value}),placeholder:"My Project",className:`w-full px-3 py-2 rounded-lg border ${a} ${s} ${k} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this),y0.jsxDEV("p",{className:`mt-1 text-xs ${f}`,children:"Name of your project"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{children:[y0.jsxDEV("label",{className:`block text-sm font-medium ${k} mb-2`,children:"Default Assignee"},void 0,!1,void 0,this),y0.jsxDEV("input",{type:"text",value:$.defaultAssignee||"",onChange:(t)=>Y({...$,defaultAssignee:t.target.value}),placeholder:"@username",className:`w-full px-3 py-2 rounded-lg border ${a} ${s} ${k} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this),y0.jsxDEV("p",{className:`mt-1 text-xs ${f}`,children:"Default assignee for new tasks (e.g., @claude)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{children:[y0.jsxDEV("label",{className:`block text-sm font-medium ${k} mb-2`,children:"Default Priority"},void 0,!1,void 0,this),y0.jsxDEV("select",{value:$.defaultPriority||"medium",onChange:(t)=>Y({...$,defaultPriority:t.target.value}),className:`w-full px-3 py-2 rounded-lg border ${a} ${s} ${k} focus:outline-none focus:ring-2 focus:ring-blue-500`,children:[y0.jsxDEV("option",{value:"low",children:"Low"},void 0,!1,void 0,this),y0.jsxDEV("option",{value:"medium",children:"Medium"},void 0,!1,void 0,this),y0.jsxDEV("option",{value:"high",children:"High"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("p",{className:`mt-1 text-xs ${f}`,children:"Default priority for new tasks"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{children:[y0.jsxDEV("label",{className:`block text-sm font-medium ${k} mb-2`,children:"Default Labels"},void 0,!1,void 0,this),y0.jsxDEV("input",{type:"text",value:$.defaultLabels?.join(", ")||"",onChange:(t)=>Y({...$,defaultLabels:t.target.value.split(",").map((n)=>n.trim()).filter(Boolean)}),placeholder:"frontend, backend, ui",className:`w-full px-3 py-2 rounded-lg border ${a} ${s} ${k} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this),y0.jsxDEV("p",{className:`mt-1 text-xs ${f}`,children:"Comma-separated list of default labels for new tasks"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{children:[y0.jsxDEV("label",{className:`block text-sm font-medium ${k} mb-2`,children:"Time Format"},void 0,!1,void 0,this),y0.jsxDEV("select",{value:$.timeFormat||"24h",onChange:(t)=>Y({...$,timeFormat:t.target.value}),className:`w-full px-3 py-2 rounded-lg border ${a} ${s} ${k} focus:outline-none focus:ring-2 focus:ring-blue-500`,children:[y0.jsxDEV("option",{value:"12h",children:"12-hour (AM/PM)"},void 0,!1,void 0,this),y0.jsxDEV("option",{value:"24h",children:"24-hour"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("p",{className:`mt-1 text-xs ${f}`,children:"Time display format"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{children:[y0.jsxDEV("label",{className:`block text-sm font-medium ${k} mb-2`,children:"Default Editor"},void 0,!1,void 0,this),y0.jsxDEV("input",{type:"text",value:$.editor||"",onChange:(t)=>Y({...$,editor:t.target.value}),placeholder:"code, vim, nano",className:`w-full px-3 py-2 rounded-lg border ${a} ${s} ${k} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this),y0.jsxDEV("p",{className:`mt-1 text-xs ${f}`,children:"Default editor command for editing files"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{children:[y0.jsxDEV("label",{className:`block text-sm font-medium ${k} mb-2`,children:"Task Statuses"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"space-y-2 mb-3",children:E.map((t)=>y0.jsxDEV("div",{className:`flex items-center gap-3 p-2 rounded-lg ${Q?"bg-gray-700":"bg-gray-50"}`,children:[y0.jsxDEV("span",{className:`flex-1 font-mono text-sm ${k}`,children:t},void 0,!1,void 0,this),y0.jsxDEV("select",{value:_0[t]||"gray",onChange:(n)=>Z0(t,n.target.value),className:`px-2 py-1 rounded border ${a} ${s} ${k} text-sm focus:outline-none focus:ring-2 focus:ring-blue-500`,children:Qm.map((n)=>y0.jsxDEV("option",{value:n,children:n},n,!1,void 0,this))},void 0,!1,void 0,this),y0.jsxDEV("button",{type:"button",onClick:()=>h(t),className:"p-1 text-red-500 hover:text-red-600 hover:bg-red-100 dark:hover:bg-red-900/30 rounded transition-colors",title:"Remove status",children:y0.jsxDEV(m9,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},t,!0,void 0,this))},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"flex gap-2",children:[y0.jsxDEV("input",{type:"text",value:D,onChange:(t)=>b(t.target.value),placeholder:"new-status",className:`flex-1 px-3 py-2 rounded-lg border ${a} ${s} ${k} focus:outline-none focus:ring-2 focus:ring-blue-500`,onKeyDown:(t)=>t.key==="Enter"&&c()},void 0,!1,void 0,this),y0.jsxDEV("button",{type:"button",onClick:c,className:"px-3 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 flex items-center gap-1 transition-colors",children:[y0.jsxDEV(X4,{className:"w-4 h-4"},void 0,!1,void 0,this),"Add"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("p",{className:`mt-2 text-xs ${f}`,children:"Define custom task statuses and their colors for the Kanban board"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{children:[y0.jsxDEV("label",{className:`block text-sm font-medium ${k} mb-2`,children:"Visible Kanban Columns"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"space-y-2",children:E.map((t)=>{let n=$.visibleColumns?.includes(t)??!0,z0=t.split("-").map((o)=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ");return y0.jsxDEV("label",{className:"flex items-center gap-2 cursor-pointer hover:opacity-80 transition-opacity",children:[y0.jsxDEV("input",{type:"checkbox",checked:n,onChange:(o)=>{let H0=$.visibleColumns||E,G0=o.target.checked?[...H0,t]:H0.filter((e)=>e!==t);Y({...$,visibleColumns:G0})},className:"w-4 h-4 rounded border-gray-600 text-blue-600 focus:ring-blue-500 focus:ring-offset-gray-800"},void 0,!1,void 0,this),y0.jsxDEV("span",{className:k,children:z0},void 0,!1,void 0,this)]},t,!0,void 0,this)})},void 0,!1,void 0,this),y0.jsxDEV("p",{className:`mt-2 text-xs ${f}`,children:"Select which columns to show in the Kanban board"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"pt-4 border-t border-gray-700",children:y0.jsxDEV("button",{type:"button",onClick:g,disabled:H,className:"px-4 py-2 bg-blue-600 text-white text-sm font-medium rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2 transition-colors",children:[y0.jsxDEV(M7,{className:"w-4 h-4"},void 0,!1,void 0,this),H?"Saving...":"Save Configuration"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var G5=J0(k0(),1);var WD=J0(k0(),1);class zw extends Error{name="Assertion";code="ERR_ASSERTION";constructor(Q,$,Y,G,K){super(Q);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.actual=$,this.expected=Y,this.generated=K,this.operator=G}}function v(Q,$){Fw(Boolean(Q),!1,!0,"ok","Expected value to be truthy",$)}function JG(Q){Fw(!1,!1,!0,"ok","Unreachable",Q)}function Fw(Q,$,Y,G,K,H){if(!Q)throw H instanceof Error?H:new zw(H||K,$,Y,G,!H)}function Lw(Q,$){let Y=$||{};return(Q[Q.length-1]===""?[...Q,""]:Q).join((Y.padRight?" ":"")+","+(Y.padLeft===!1?"":" ")).trim()}var Jm=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$m=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ym={};function $G(Q,$){return(($||Ym).jsx?$m:Jm).test(Q)}var qm=/[ \t\n\f\r]/g;function Mz(Q){return typeof Q==="object"?Q.type==="text"?Mw(Q.value):!1:Mw(Q)}function Mw(Q){return Q.replace(qm,"")===""}class S7{constructor(Q,$,Y){if(this.normal=$,this.property=Q,Y)this.space=Y}}S7.prototype.normal={};S7.prototype.property={};S7.prototype.space=void 0;function Nz(Q,$){let Y={},G={};for(let K of Q)Object.assign(Y,K.property),Object.assign(G,K.normal);return new S7(Y,G,$)}function TJ(Q){return Q.toLowerCase()}class B4{constructor(Q,$){this.attribute=$,this.property=Q}}B4.prototype.attribute="";B4.prototype.booleanish=!1;B4.prototype.boolean=!1;B4.prototype.commaOrSpaceSeparated=!1;B4.prototype.commaSeparated=!1;B4.prototype.defined=!1;B4.prototype.mustUseProperty=!1;B4.prototype.number=!1;B4.prototype.overloadedBoolean=!1;B4.prototype.property="";B4.prototype.spaceSeparated=!1;B4.prototype.space=void 0;var VJ={};mA(VJ,{spaceSeparated:()=>r1,overloadedBoolean:()=>YG,number:()=>T0,commaSeparated:()=>E7,commaOrSpaceSeparated:()=>o4,booleanish:()=>I5,boolean:()=>M1});var Gm=0,M1=a8(),I5=a8(),YG=a8(),T0=a8(),r1=a8(),E7=a8(),o4=a8();function a8(){return 2**++Gm}var Rz=Object.keys(VJ);class fX extends B4{constructor(Q,$,Y,G){let K=-1;super(Q,$);if(Nw(this,"space",G),typeof Y==="number")while(++K<Rz.length){let H=Rz[K];Nw(this,Rz[K],(Y&VJ[H])===VJ[H])}}}fX.prototype.defined=!0;function Nw(Q,$,Y){if(Y)Q[$]=Y}function p2(Q){let $={},Y={};for(let[G,K]of Object.entries(Q.properties)){let H=new fX(G,Q.transform(Q.attributes||{},G),K,Q.space);if(Q.mustUseProperty&&Q.mustUseProperty.includes(G))H.mustUseProperty=!0;$[G]=H,Y[TJ(G)]=G,Y[TJ(H.attribute)]=G}return new S7($,Y,Q.space)}var _z=p2({properties:{ariaActiveDescendant:null,ariaAtomic:I5,ariaAutoComplete:null,ariaBusy:I5,ariaChecked:I5,ariaColCount:T0,ariaColIndex:T0,ariaColSpan:T0,ariaControls:r1,ariaCurrent:null,ariaDescribedBy:r1,ariaDetails:null,ariaDisabled:I5,ariaDropEffect:r1,ariaErrorMessage:null,ariaExpanded:I5,ariaFlowTo:r1,ariaGrabbed:I5,ariaHasPopup:null,ariaHidden:I5,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:r1,ariaLevel:T0,ariaLive:null,ariaModal:I5,ariaMultiLine:I5,ariaMultiSelectable:I5,ariaOrientation:null,ariaOwns:r1,ariaPlaceholder:null,ariaPosInSet:T0,ariaPressed:I5,ariaReadOnly:I5,ariaRelevant:null,ariaRequired:I5,ariaRoleDescription:r1,ariaRowCount:T0,ariaRowIndex:T0,ariaRowSpan:T0,ariaSelected:I5,ariaSetSize:T0,ariaSort:null,ariaValueMax:T0,ariaValueMin:T0,ariaValueNow:T0,ariaValueText:null,role:null},transform(Q,$){return $==="role"?$:"aria-"+$.slice(4).toLowerCase()}});function qG(Q,$){return $ in Q?Q[$]:$}function GG(Q,$){return qG(Q,$.toLowerCase())}var Rw=p2({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:E7,acceptCharset:r1,accessKey:r1,action:null,allow:null,allowFullScreen:M1,allowPaymentRequest:M1,allowUserMedia:M1,alt:null,as:null,async:M1,autoCapitalize:null,autoComplete:r1,autoFocus:M1,autoPlay:M1,blocking:r1,capture:null,charSet:null,checked:M1,cite:null,className:r1,cols:T0,colSpan:null,content:null,contentEditable:I5,controls:M1,controlsList:r1,coords:T0|E7,crossOrigin:null,data:null,dateTime:null,decoding:null,default:M1,defer:M1,dir:null,dirName:null,disabled:M1,download:YG,draggable:I5,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:M1,formTarget:null,headers:r1,height:T0,hidden:YG,high:T0,href:null,hrefLang:null,htmlFor:r1,httpEquiv:r1,id:null,imageSizes:null,imageSrcSet:null,inert:M1,inputMode:null,integrity:null,is:null,isMap:M1,itemId:null,itemProp:r1,itemRef:r1,itemScope:M1,itemType:r1,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:M1,low:T0,manifest:null,max:null,maxLength:T0,media:null,method:null,min:null,minLength:T0,multiple:M1,muted:M1,name:null,nonce:null,noModule:M1,noValidate:M1,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:M1,optimum:T0,pattern:null,ping:r1,placeholder:null,playsInline:M1,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:M1,referrerPolicy:null,rel:r1,required:M1,reversed:M1,rows:T0,rowSpan:T0,sandbox:r1,scope:null,scoped:M1,seamless:M1,selected:M1,shadowRootClonable:M1,shadowRootDelegatesFocus:M1,shadowRootMode:null,shape:null,size:T0,sizes:null,slot:null,span:T0,spellCheck:I5,src:null,srcDoc:null,srcLang:null,srcSet:null,start:T0,step:null,style:null,tabIndex:T0,target:null,title:null,translate:null,type:null,typeMustMatch:M1,useMap:null,value:I5,width:T0,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:r1,axis:null,background:null,bgColor:null,border:T0,borderColor:null,bottomMargin:T0,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:M1,declare:M1,event:null,face:null,frame:null,frameBorder:null,hSpace:T0,leftMargin:T0,link:null,longDesc:null,lowSrc:null,marginHeight:T0,marginWidth:T0,noResize:M1,noHref:M1,noShade:M1,noWrap:M1,object:null,profile:null,prompt:null,rev:null,rightMargin:T0,rules:null,scheme:null,scrolling:I5,standby:null,summary:null,text:null,topMargin:T0,valueType:null,version:null,vAlign:null,vLink:null,vSpace:T0,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:M1,disableRemotePlayback:M1,prefix:null,property:null,results:T0,security:null,unselectable:null},space:"html",transform:GG});var _w=p2({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:o4,accentHeight:T0,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:T0,amplitude:T0,arabicForm:null,ascent:T0,attributeName:null,attributeType:null,azimuth:T0,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:T0,by:null,calcMode:null,capHeight:T0,className:r1,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:T0,diffuseConstant:T0,direction:null,display:null,dur:null,divisor:T0,dominantBaseline:null,download:M1,dx:null,dy:null,edgeMode:null,editable:null,elevation:T0,enableBackground:null,end:null,event:null,exponent:T0,externalResourcesRequired:null,fill:null,fillOpacity:T0,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:E7,g2:E7,glyphName:E7,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:T0,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:T0,horizOriginX:T0,horizOriginY:T0,id:null,ideographic:T0,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:T0,k:T0,k1:T0,k2:T0,k3:T0,k4:T0,kernelMatrix:o4,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:T0,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:T0,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:T0,overlineThickness:T0,paintOrder:null,panose1:null,path:null,pathLength:T0,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:r1,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:T0,pointsAtY:T0,pointsAtZ:T0,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:o4,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:o4,rev:o4,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:o4,requiredFeatures:o4,requiredFonts:o4,requiredFormats:o4,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:T0,specularExponent:T0,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:T0,strikethroughThickness:T0,string:null,stroke:null,strokeDashArray:o4,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:T0,strokeOpacity:T0,strokeWidth:null,style:null,surfaceScale:T0,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:o4,tabIndex:T0,tableValues:null,target:null,targetX:T0,targetY:T0,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:o4,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:T0,underlineThickness:T0,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:T0,values:null,vAlphabetic:T0,vMathematical:T0,vectorEffect:null,vHanging:T0,vIdeographic:T0,version:null,vertAdvY:T0,vertOriginX:T0,vertOriginY:T0,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:T0,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:qG});var Oz=p2({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(Q,$){return"xlink:"+$.slice(5).toLowerCase()}});var Az=p2({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:GG});var Iz=p2({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(Q,$){return"xml:"+$.slice(3).toLowerCase()}});var Tz={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"};var Km=/[A-Z]/g,Ow=/-[a-z]/g,Wm=/^data[-\w.:]+$/i;function Vz(Q,$){let Y=TJ($),G=$,K=B4;if(Y in Q.normal)return Q.property[Q.normal[Y]];if(Y.length>4&&Y.slice(0,4)==="data"&&Wm.test($)){if($.charAt(4)==="-"){let H=$.slice(5).replace(Ow,Bm);G="data"+H.charAt(0).toUpperCase()+H.slice(1)}else{let H=$.slice(4);if(!Ow.test(H)){let B=H.replace(Km,Hm);if(B.charAt(0)!=="-")B="-"+B;$="data"+B}}K=fX}return new K(G,$)}function Hm(Q){return"-"+Q.toLowerCase()}function Bm(Q){return Q.charAt(1).toUpperCase()}var Aw=Nz([_z,Rw,Oz,Az,Iz],"html"),KG=Nz([_z,_w,Oz,Az,Iz],"svg");function Iw(Q){return Q.join(" ").trim()}var mw=J0(hw(),1);var WG=vw("end"),pX=vw("start");function vw(Q){return $;function $(Y){let G=Y&&Y.position&&Y.position[Q]||{};if(typeof G.line==="number"&&G.line>0&&typeof G.column==="number"&&G.column>0)return{line:G.line,column:G.column,offset:typeof G.offset==="number"&&G.offset>-1?G.offset:void 0}}}function Cz(Q){let $=pX(Q),Y=WG(Q);if($&&Y)return{start:$,end:Y}}function b7(Q){if(!Q||typeof Q!=="object")return"";if("position"in Q||"type"in Q)return xw(Q.position);if("start"in Q||"end"in Q)return xw(Q);if("line"in Q||"column"in Q)return jz(Q);return""}function jz(Q){return kw(Q&&Q.line)+":"+kw(Q&&Q.column)}function xw(Q){return jz(Q&&Q.start)+"-"+jz(Q&&Q.end)}function kw(Q){return Q&&typeof Q==="number"?Q:1}class k5 extends Error{constructor(Q,$,Y){super();if(typeof $==="string")Y=$,$=void 0;let G="",K={},H=!1;if($)if("line"in $&&"column"in $)K={place:$};else if("start"in $&&"end"in $)K={place:$};else if("type"in $)K={ancestors:[$],place:$.position};else K={...$};if(typeof Q==="string")G=Q;else if(!K.cause&&Q)H=!0,G=Q.message,K.cause=Q;if(!K.ruleId&&!K.source&&typeof Y==="string"){let z=Y.indexOf(":");if(z===-1)K.ruleId=Y;else K.source=Y.slice(0,z),K.ruleId=Y.slice(z+1)}if(!K.place&&K.ancestors&&K.ancestors){let z=K.ancestors[K.ancestors.length-1];if(z)K.place=z.position}let B=K.place&&"start"in K.place?K.place.start:K.place;this.ancestors=K.ancestors||void 0,this.cause=K.cause||void 0,this.column=B?B.column:void 0,this.fatal=void 0,this.file="",this.message=G,this.line=B?B.line:void 0,this.name=b7(K.place)||"1:1",this.place=K.place||void 0,this.reason=this.message,this.ruleId=K.ruleId||void 0,this.source=K.source||void 0,this.stack=H&&K.cause&&typeof K.cause.stack==="string"?K.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}k5.prototype.file="";k5.prototype.name="";k5.prototype.reason="";k5.prototype.message="";k5.prototype.stack="";k5.prototype.column=void 0;k5.prototype.line=void 0;k5.prototype.ancestors=void 0;k5.prototype.cause=void 0;k5.prototype.fatal=void 0;k5.prototype.place=void 0;k5.prototype.ruleId=void 0;k5.prototype.source=void 0;var Dz={}.hasOwnProperty,xm=new Map,km=/[A-Z]/g,mm=new Set(["table","tbody","thead","tfoot","tr"]),um=new Set(["td","th"]),uw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Sz(Q,$){if(!$||$.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let Y=$.filePath||void 0,G;if($.development){if(typeof $.jsxDEV!=="function")throw TypeError("Expected `jsxDEV` in options when `development: true`");G=am(Y,$.jsxDEV)}else{if(typeof $.jsx!=="function")throw TypeError("Expected `jsx` in production options");if(typeof $.jsxs!=="function")throw TypeError("Expected `jsxs` in production options");G=rm(Y,$.jsx,$.jsxs)}let K={Fragment:$.Fragment,ancestors:[],components:$.components||{},create:G,elementAttributeNameCase:$.elementAttributeNameCase||"react",evaluater:$.createEvaluater?$.createEvaluater():void 0,filePath:Y,ignoreInvalidStyle:$.ignoreInvalidStyle||!1,passKeys:$.passKeys!==!1,passNode:$.passNode||!1,schema:$.space==="svg"?KG:Aw,stylePropertyNameCase:$.stylePropertyNameCase||"dom",tableCellAlignToStyle:$.tableCellAlignToStyle!==!1},H=fw(K,Q,void 0);if(H&&typeof H!=="string")return H;return K.create(Q,K.Fragment,{children:H||void 0},void 0)}function fw(Q,$,Y){if($.type==="element")return fm(Q,$,Y);if($.type==="mdxFlowExpression"||$.type==="mdxTextExpression")return pm(Q,$);if($.type==="mdxJsxFlowElement"||$.type==="mdxJsxTextElement")return dm(Q,$,Y);if($.type==="mdxjsEsm")return lm(Q,$);if($.type==="root")return im(Q,$,Y);if($.type==="text")return cm(Q,$)}function fm(Q,$,Y){let G=Q.schema,K=G;if($.tagName.toLowerCase()==="svg"&&G.space==="html")K=KG,Q.schema=K;Q.ancestors.push($);let H=lw(Q,$.tagName,!1),B=nm(Q,$),z=bz(Q,$);if(mm.has($.tagName))z=z.filter(function(F){return typeof F==="string"?!Mz(F):!0});return pw(Q,B,H,$),Ez(B,z),Q.ancestors.pop(),Q.schema=G,Q.create($,H,B,Y)}function pm(Q,$){if($.data&&$.data.estree&&Q.evaluater){let G=$.data.estree.body[0];return v(G.type==="ExpressionStatement"),Q.evaluater.evaluateExpression(G.expression)}wJ(Q,$.position)}function lm(Q,$){if($.data&&$.data.estree&&Q.evaluater)return Q.evaluater.evaluateProgram($.data.estree);wJ(Q,$.position)}function dm(Q,$,Y){let G=Q.schema,K=G;if($.name==="svg"&&G.space==="html")K=KG,Q.schema=K;Q.ancestors.push($);let H=$.name===null?Q.Fragment:lw(Q,$.name,!0),B=sm(Q,$),z=bz(Q,$);return pw(Q,B,H,$),Ez(B,z),Q.ancestors.pop(),Q.schema=G,Q.create($,H,B,Y)}function im(Q,$,Y){let G={};return Ez(G,bz(Q,$)),Q.create($,Q.Fragment,G,Y)}function cm(Q,$){return $.value}function pw(Q,$,Y,G){if(typeof Y!=="string"&&Y!==Q.Fragment&&Q.passNode)$.node=G}function Ez(Q,$){if($.length>0){let Y=$.length>1?$:$[0];if(Y)Q.children=Y}}function rm(Q,$,Y){return G;function G(K,H,B,z){let R=Array.isArray(B.children)?Y:$;return z?R(H,B,z):R(H,B)}}function am(Q,$){return Y;function Y(G,K,H,B){let z=Array.isArray(H.children),F=pX(G);return $(K,H,B,z,{columnNumber:F?F.column-1:void 0,fileName:Q,lineNumber:F?F.line:void 0},void 0)}}function nm(Q,$){let Y={},G,K;for(K in $.properties)if(K!=="children"&&Dz.call($.properties,K)){let H=om(Q,K,$.properties[K]);if(H){let[B,z]=H;if(Q.tableCellAlignToStyle&&B==="align"&&typeof z==="string"&&um.has($.tagName))G=z;else Y[B]=z}}if(G){let H=Y.style||(Y.style={});H[Q.stylePropertyNameCase==="css"?"text-align":"textAlign"]=G}return Y}function sm(Q,$){let Y={};for(let G of $.attributes)if(G.type==="mdxJsxExpressionAttribute")if(G.data&&G.data.estree&&Q.evaluater){let H=G.data.estree.body[0];v(H.type==="ExpressionStatement");let B=H.expression;v(B.type==="ObjectExpression");let z=B.properties[0];v(z.type==="SpreadElement"),Object.assign(Y,Q.evaluater.evaluateExpression(z.argument))}else wJ(Q,$.position);else{let K=G.name,H;if(G.value&&typeof G.value==="object")if(G.value.data&&G.value.data.estree&&Q.evaluater){let z=G.value.data.estree.body[0];v(z.type==="ExpressionStatement"),H=Q.evaluater.evaluateExpression(z.expression)}else wJ(Q,$.position);else H=G.value===null?!0:G.value;Y[K]=H}return Y}function bz(Q,$){let Y=[],G=-1,K=Q.passKeys?new Map:xm;while(++G<$.children.length){let H=$.children[G],B;if(Q.passKeys){let F=H.type==="element"?H.tagName:H.type==="mdxJsxFlowElement"||H.type==="mdxJsxTextElement"?H.name:void 0;if(F){let R=K.get(F)||0;B=F+"-"+R,K.set(F,R+1)}}let z=fw(Q,H,B);if(z!==void 0)Y.push(z)}return Y}function om(Q,$,Y){let G=Vz(Q.schema,$);if(Y===null||Y===void 0||typeof Y==="number"&&Number.isNaN(Y))return;if(Array.isArray(Y))Y=G.commaSeparated?Lw(Y):Iw(Y);if(G.property==="style"){let K=typeof Y==="object"?Y:tm(Q,String(Y));if(Q.stylePropertyNameCase==="css")K=em(K);return["style",K]}return[Q.elementAttributeNameCase==="react"&&G.space?Tz[G.property]||G.property:G.attribute,Y]}function tm(Q,$){try{return mw.default($,{reactCompat:!0})}catch(Y){if(Q.ignoreInvalidStyle)return{};let G=Y,K=new k5("Cannot parse `style` attribute",{ancestors:Q.ancestors,cause:G,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw K.file=Q.filePath||void 0,K.url=uw+"#cannot-parse-style-attribute",K}}function lw(Q,$,Y){let G;if(!Y)G={type:"Literal",value:$};else if($.includes(".")){let K=$.split("."),H=-1,B;while(++H<K.length){let z=$G(K[H])?{type:"Identifier",name:K[H]}:{type:"Literal",value:K[H]};B=B?{type:"MemberExpression",object:B,property:z,computed:Boolean(H&&z.type==="Literal"),optional:!1}:z}v(B,"always a result"),G=B}else G=$G($)&&!/^[a-z]/.test($)?{type:"Identifier",name:$}:{type:"Literal",value:$};if(G.type==="Literal"){let K=G.value;return Dz.call(Q.components,K)?Q.components[K]:K}if(Q.evaluater)return Q.evaluater.evaluateExpression(G);wJ(Q)}function wJ(Q,$){let Y=new k5("Cannot handle MDX estrees without `createEvaluater`",{ancestors:Q.ancestors,place:$,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw Y.file=Q.filePath||void 0,Y.url=uw+"#cannot-handle-mdx-estrees-without-createevaluater",Y}function em(Q){let $={},Y;for(Y in Q)if(Dz.call(Q,Y))$[Zu(Y)]=Q[Y];return $}function Zu(Q){let $=Q.replace(km,Xu);if($.slice(0,3)==="ms-")$="-"+$;return $}function Xu(Q){return"-"+Q.toLowerCase()}var CJ={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"]};var eX=J0(l5(),1),Oj=J0(k0(),1);var Qu={};function s8(Q,$){let Y=$||Qu,G=typeof Y.includeImageAlt==="boolean"?Y.includeImageAlt:!0,K=typeof Y.includeHtml==="boolean"?Y.includeHtml:!0;return iw(Q,G,K)}function iw(Q,$,Y){if(Ju(Q)){if("value"in Q)return Q.type==="html"&&!Y?"":Q.value;if($&&"alt"in Q&&Q.alt)return Q.alt;if("children"in Q)return dw(Q.children,$,Y)}if(Array.isArray(Q))return dw(Q,$,Y);return""}function dw(Q,$,Y){let G=[],K=-1;while(++K<Q.length)G[K]=iw(Q[K],$,Y);return G.join("")}function Ju(Q){return Boolean(Q&&typeof Q==="object")}var cw=document.createElement("i");function lX(Q){let $="&"+Q+";";cw.innerHTML=$;let Y=cw.textContent;if(Y.charCodeAt(Y.length-1)===59&&Q!=="semi")return!1;return Y===$?!1:Y}var I={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var N0={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4};var P={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"};var x4={ht:"\t",lf:`
|
|
425
|
+
`,cr:"\r",space:" ",exclamationMark:"!",quotationMark:'"',numberSign:"#",dollarSign:"$",percentSign:"%",ampersand:"&",apostrophe:"'",leftParenthesis:"(",rightParenthesis:")",asterisk:"*",plusSign:"+",comma:",",dash:"-",dot:".",slash:"/",digit0:"0",digit1:"1",digit2:"2",digit3:"3",digit4:"4",digit5:"5",digit6:"6",digit7:"7",digit8:"8",digit9:"9",colon:":",semicolon:";",lessThan:"<",equalsTo:"=",greaterThan:">",questionMark:"?",atSign:"@",uppercaseA:"A",uppercaseB:"B",uppercaseC:"C",uppercaseD:"D",uppercaseE:"E",uppercaseF:"F",uppercaseG:"G",uppercaseH:"H",uppercaseI:"I",uppercaseJ:"J",uppercaseK:"K",uppercaseL:"L",uppercaseM:"M",uppercaseN:"N",uppercaseO:"O",uppercaseP:"P",uppercaseQ:"Q",uppercaseR:"R",uppercaseS:"S",uppercaseT:"T",uppercaseU:"U",uppercaseV:"V",uppercaseW:"W",uppercaseX:"X",uppercaseY:"Y",uppercaseZ:"Z",leftSquareBracket:"[",backslash:"\\",rightSquareBracket:"]",caret:"^",underscore:"_",graveAccent:"`",lowercaseA:"a",lowercaseB:"b",lowercaseC:"c",lowercaseD:"d",lowercaseE:"e",lowercaseF:"f",lowercaseG:"g",lowercaseH:"h",lowercaseI:"i",lowercaseJ:"j",lowercaseK:"k",lowercaseL:"l",lowercaseM:"m",lowercaseN:"n",lowercaseO:"o",lowercaseP:"p",lowercaseQ:"q",lowercaseR:"r",lowercaseS:"s",lowercaseT:"t",lowercaseU:"u",lowercaseV:"v",lowercaseW:"w",lowercaseX:"x",lowercaseY:"y",lowercaseZ:"z",leftCurlyBrace:"{",verticalBar:"|",rightCurlyBrace:"}",tilde:"~",replacementCharacter:"�"};function C5(Q,$,Y,G){let K=Q.length,H=0,B;if($<0)$=-$>K?0:K+$;else $=$>K?K:$;if(Y=Y>0?Y:0,G.length<N0.v8MaxSafeChunkSize)B=Array.from(G),B.unshift($,Y),Q.splice(...B);else{if(Y)Q.splice($,Y);while(H<G.length)B=G.slice(H,H+N0.v8MaxSafeChunkSize),B.unshift($,0),Q.splice(...B),H+=N0.v8MaxSafeChunkSize,$+=N0.v8MaxSafeChunkSize}}function k4(Q,$){if(Q.length>0)return C5(Q,Q.length,0,$),Q;return $}var rw={}.hasOwnProperty;function HG(Q){let $={},Y=-1;while(++Y<Q.length)$u($,Q[Y]);return $}function $u(Q,$){let Y;for(Y in $){let K=(rw.call(Q,Y)?Q[Y]:void 0)||(Q[Y]={}),H=$[Y],B;if(H)for(B in H){if(!rw.call(K,B))K[B]=[];let z=H[B];Yu(K[B],Array.isArray(z)?z:z?[z]:[])}}}function Yu(Q,$){let Y=-1,G=[];while(++Y<$.length)($[Y].add==="after"?Q:G).push($[Y]);C5(Q,0,0,G)}function BG(Q,$){let Y=Number.parseInt(Q,$);if(Y<I.ht||Y===I.vt||Y>I.cr&&Y<I.space||Y>I.tilde&&Y<160||Y>55295&&Y<57344||Y>64975&&Y<65008||(Y&65535)===65535||(Y&65535)===65534||Y>1114111)return x4.replacementCharacter;return String.fromCodePoint(Y)}function I4(Q){return Q.replace(/[\t\n\r ]+/g,x4.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}var r5=y7(/[A-Za-z]/),T5=y7(/[\dA-Za-z]/),aw=y7(/[#-'*+\--9=?A-Z^-~]/);function o8(Q){return Q!==null&&(Q<I.space||Q===I.del)}var jJ=y7(/\d/),nw=y7(/[\dA-Fa-f]/),sw=y7(/[!-/:-@[-`{-~]/);function w0(Q){return Q!==null&&Q<I.horizontalTab}function b1(Q){return Q!==null&&(Q<I.nul||Q===I.space)}function o0(Q){return Q===I.horizontalTab||Q===I.virtualSpace||Q===I.space}var t8=y7(/\p{P}|\p{S}/u),d9=y7(/\s/);function y7(Q){return $;function $(Y){return Y!==null&&Y>-1&&Q.test(String.fromCharCode(Y))}}function l2(Q){let $=[],Y=-1,G=0,K=0;while(++Y<Q.length){let H=Q.charCodeAt(Y),B="";if(H===I.percentSign&&T5(Q.charCodeAt(Y+1))&&T5(Q.charCodeAt(Y+2)))K=2;else if(H<128){if(!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(H)))B=String.fromCharCode(H)}else if(H>55295&&H<57344){let z=Q.charCodeAt(Y+1);if(H<56320&&z>56319&&z<57344)B=String.fromCharCode(H,z),K=1;else B=x4.replacementCharacter}else B=String.fromCharCode(H);if(B)$.push(Q.slice(G,Y),encodeURIComponent(B)),G=Y+K+1,B="";if(K)Y+=K,K=0}return $.join("")+Q.slice(G)}function t0(Q,$,Y,G){let K=G?G-1:Number.POSITIVE_INFINITY,H=0;return B;function B(F){if(o0(F))return Q.enter(Y),z(F);return $(F)}function z(F){if(o0(F)&&H++<K)return Q.consume(F),z;return Q.exit(Y),$(F)}}var ow={tokenize:qu};function qu(Q){let $=Q.attempt(this.parser.constructs.contentInitial,G,K),Y;return $;function G(z){if(v(z===I.eof||w0(z),"expected eol or eof"),z===I.eof){Q.consume(z);return}return Q.enter(P.lineEnding),Q.consume(z),Q.exit(P.lineEnding),t0(Q,$,P.linePrefix)}function K(z){return v(z!==I.eof&&!w0(z),"expected anything other than a line ending or EOF"),Q.enter(P.paragraph),H(z)}function H(z){let F=Q.enter(P.chunkText,{contentType:N0.contentTypeText,previous:Y});if(Y)Y.next=F;return Y=F,B(z)}function B(z){if(z===I.eof){Q.exit(P.chunkText),Q.exit(P.paragraph),Q.consume(z);return}if(w0(z))return Q.consume(z),Q.exit(P.chunkText),H;return Q.consume(z),B}}var ew={tokenize:Gu},tw={tokenize:Ku};function Gu(Q){let $=this,Y=[],G=0,K,H,B;return z;function z(f){if(G<Y.length){let a=Y[G];return $.containerState=a[1],v(a[0].continuation,"expected `continuation` to be defined on container construct"),Q.attempt(a[0].continuation,F,R)(f)}return R(f)}function F(f){if(v($.containerState,"expected `containerState` to be defined after continuation"),G++,$.containerState._closeFlow){if($.containerState._closeFlow=void 0,K)k();let a=$.events.length,s=a,g;while(s--)if($.events[s][0]==="exit"&&$.events[s][1].type===P.chunkFlow){g=$.events[s][1].end;break}v(g,"could not find previous flow chunk"),y(G);let c=a;while(c<$.events.length)$.events[c][1].end={...g},c++;return C5($.events,s+1,0,$.events.slice(a)),$.events.length=c,R(f)}return z(f)}function R(f){if(G===Y.length){if(!K)return O(f);if(K.currentConstruct&&K.currentConstruct.concrete)return C(f);$.interrupt=Boolean(K.currentConstruct&&!K._gfmTableDynamicInterruptHack)}return $.containerState={},Q.check(tw,N,L)(f)}function N(f){if(K)k();return y(G),O(f)}function L(f){return $.parser.lazy[$.now().line]=G!==Y.length,B=$.now().offset,C(f)}function O(f){return $.containerState={},Q.attempt(tw,A,C)(f)}function A(f){return v($.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),v($.containerState,"expected `containerState` to be defined on tokenizer"),G++,Y.push([$.currentConstruct,$.containerState]),O(f)}function C(f){if(f===I.eof){if(K)k();y(0),Q.consume(f);return}return K=K||$.parser.flow($.now()),Q.enter(P.chunkFlow,{_tokenizer:K,contentType:N0.contentTypeFlow,previous:H}),D(f)}function D(f){if(f===I.eof){b(Q.exit(P.chunkFlow),!0),y(0),Q.consume(f);return}if(w0(f))return Q.consume(f),b(Q.exit(P.chunkFlow)),G=0,$.interrupt=void 0,z;return Q.consume(f),D}function b(f,a){v(K,"expected `childFlow` to be defined when continuing");let s=$.sliceStream(f);if(a)s.push(null);if(f.previous=H,H)H.next=f;if(H=f,K.defineSkip(f.start),K.write(s),$.parser.lazy[f.start.line]){let g=K.events.length;while(g--)if(K.events[g][1].start.offset<B&&(!K.events[g][1].end||K.events[g][1].end.offset>B))return;let c=$.events.length,h=c,Z0,E;while(h--)if($.events[h][0]==="exit"&&$.events[h][1].type===P.chunkFlow){if(Z0){E=$.events[h][1].end;break}Z0=!0}v(E,"could not find previous flow chunk"),y(G),g=c;while(g<$.events.length)$.events[g][1].end={...E},g++;C5($.events,h+1,0,$.events.slice(c)),$.events.length=g}}function y(f){let a=Y.length;while(a-- >f){let s=Y[a];$.containerState=s[1],v(s[0].exit,"expected `exit` to be defined on container construct"),s[0].exit.call($,Q)}Y.length=f}function k(){v($.containerState,"expected `containerState` to be defined when closing flow"),v(K,"expected `childFlow` to be defined when closing it"),K.write([I.eof]),H=void 0,K=void 0,$.containerState._closeFlow=void 0}}function Ku(Q,$,Y){return v(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),t0(Q,Q.attempt(this.parser.constructs.document,$,Y),P.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:N0.tabSize)}function w6(Q){if(Q===I.eof||b1(Q)||d9(Q))return N0.characterGroupWhitespace;if(t8(Q))return N0.characterGroupPunctuation}function g7(Q,$,Y){let G=[],K=-1;while(++K<Q.length){let H=Q[K].resolveAll;if(H&&!G.includes(H))$=H($,Y),G.push(H)}return $}var DJ={name:"attention",resolveAll:Wu,tokenize:Hu};function Wu(Q,$){let Y=-1,G,K,H,B,z,F,R,N;while(++Y<Q.length)if(Q[Y][0]==="enter"&&Q[Y][1].type==="attentionSequence"&&Q[Y][1]._close){G=Y;while(G--)if(Q[G][0]==="exit"&&Q[G][1].type==="attentionSequence"&&Q[G][1]._open&&$.sliceSerialize(Q[G][1]).charCodeAt(0)===$.sliceSerialize(Q[Y][1]).charCodeAt(0)){if((Q[G][1]._close||Q[Y][1]._open)&&(Q[Y][1].end.offset-Q[Y][1].start.offset)%3&&!((Q[G][1].end.offset-Q[G][1].start.offset+Q[Y][1].end.offset-Q[Y][1].start.offset)%3))continue;F=Q[G][1].end.offset-Q[G][1].start.offset>1&&Q[Y][1].end.offset-Q[Y][1].start.offset>1?2:1;let L={...Q[G][1].end},O={...Q[Y][1].start};if(ZC(L,-F),ZC(O,F),B={type:F>1?P.strongSequence:P.emphasisSequence,start:L,end:{...Q[G][1].end}},z={type:F>1?P.strongSequence:P.emphasisSequence,start:{...Q[Y][1].start},end:O},H={type:F>1?P.strongText:P.emphasisText,start:{...Q[G][1].end},end:{...Q[Y][1].start}},K={type:F>1?P.strong:P.emphasis,start:{...B.start},end:{...z.end}},Q[G][1].end={...B.start},Q[Y][1].start={...z.end},R=[],Q[G][1].end.offset-Q[G][1].start.offset)R=k4(R,[["enter",Q[G][1],$],["exit",Q[G][1],$]]);if(R=k4(R,[["enter",K,$],["enter",B,$],["exit",B,$],["enter",H,$]]),v($.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),R=k4(R,g7($.parser.constructs.insideSpan.null,Q.slice(G+1,Y),$)),R=k4(R,[["exit",H,$],["enter",z,$],["exit",z,$],["exit",K,$]]),Q[Y][1].end.offset-Q[Y][1].start.offset)N=2,R=k4(R,[["enter",Q[Y][1],$],["exit",Q[Y][1],$]]);else N=0;C5(Q,G-1,Y-G+3,R),Y=G+R.length-N-2;break}}Y=-1;while(++Y<Q.length)if(Q[Y][1].type==="attentionSequence")Q[Y][1].type="data";return Q}function Hu(Q,$){let Y=this.parser.constructs.attentionMarkers.null,G=this.previous,K=w6(G),H;return B;function B(F){return v(F===I.asterisk||F===I.underscore,"expected asterisk or underscore"),H=F,Q.enter("attentionSequence"),z(F)}function z(F){if(F===H)return Q.consume(F),z;let R=Q.exit("attentionSequence"),N=w6(F);v(Y,"expected `attentionMarkers` to be populated");let L=!N||N===N0.characterGroupPunctuation&&K||Y.includes(F),O=!K||K===N0.characterGroupPunctuation&&N||Y.includes(G);return R._open=Boolean(H===I.asterisk?L:L&&(K||!O)),R._close=Boolean(H===I.asterisk?O:O&&(N||!L)),$(F)}}function ZC(Q,$){Q.column+=$,Q.offset+=$,Q._bufferIndex+=$}var yz={name:"autolink",tokenize:Bu};function Bu(Q,$,Y){let G=0;return K;function K(A){return v(A===I.lessThan,"expected `<`"),Q.enter(P.autolink),Q.enter(P.autolinkMarker),Q.consume(A),Q.exit(P.autolinkMarker),Q.enter(P.autolinkProtocol),H}function H(A){if(r5(A))return Q.consume(A),B;if(A===I.atSign)return Y(A);return R(A)}function B(A){if(A===I.plusSign||A===I.dash||A===I.dot||T5(A))return G=1,z(A);return R(A)}function z(A){if(A===I.colon)return Q.consume(A),G=0,F;if((A===I.plusSign||A===I.dash||A===I.dot||T5(A))&&G++<N0.autolinkSchemeSizeMax)return Q.consume(A),z;return G=0,R(A)}function F(A){if(A===I.greaterThan)return Q.exit(P.autolinkProtocol),Q.enter(P.autolinkMarker),Q.consume(A),Q.exit(P.autolinkMarker),Q.exit(P.autolink),$;if(A===I.eof||A===I.space||A===I.lessThan||o8(A))return Y(A);return Q.consume(A),F}function R(A){if(A===I.atSign)return Q.consume(A),N;if(aw(A))return Q.consume(A),R;return Y(A)}function N(A){return T5(A)?L(A):Y(A)}function L(A){if(A===I.dot)return Q.consume(A),G=0,N;if(A===I.greaterThan)return Q.exit(P.autolinkProtocol).type=P.autolinkEmail,Q.enter(P.autolinkMarker),Q.consume(A),Q.exit(P.autolinkMarker),Q.exit(P.autolink),$;return O(A)}function O(A){if((A===I.dash||T5(A))&&G++<N0.autolinkDomainSizeMax){let C=A===I.dash?O:L;return Q.consume(A),C}return Y(A)}}var i9={partial:!0,tokenize:Uu};function Uu(Q,$,Y){return G;function G(H){return o0(H)?t0(Q,K,P.linePrefix)(H):K(H)}function K(H){return H===I.eof||w0(H)?$(H):Y(H)}}var UG={continuation:{tokenize:Fu},exit:Lu,name:"blockQuote",tokenize:zu};function zu(Q,$,Y){let G=this;return K;function K(B){if(B===I.greaterThan){let z=G.containerState;if(v(z,"expected `containerState` to be defined in container"),!z.open)Q.enter(P.blockQuote,{_container:!0}),z.open=!0;return Q.enter(P.blockQuotePrefix),Q.enter(P.blockQuoteMarker),Q.consume(B),Q.exit(P.blockQuoteMarker),H}return Y(B)}function H(B){if(o0(B))return Q.enter(P.blockQuotePrefixWhitespace),Q.consume(B),Q.exit(P.blockQuotePrefixWhitespace),Q.exit(P.blockQuotePrefix),$;return Q.exit(P.blockQuotePrefix),$(B)}}function Fu(Q,$,Y){let G=this;return K;function K(B){if(o0(B))return v(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),t0(Q,H,P.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:N0.tabSize)(B);return H(B)}function H(B){return Q.attempt(UG,$,Y)(B)}}function Lu(Q){Q.exit(P.blockQuote)}var zG={name:"characterEscape",tokenize:Mu};function Mu(Q,$,Y){return G;function G(H){return v(H===I.backslash,"expected `\\`"),Q.enter(P.characterEscape),Q.enter(P.escapeMarker),Q.consume(H),Q.exit(P.escapeMarker),K}function K(H){if(sw(H))return Q.enter(P.characterEscapeValue),Q.consume(H),Q.exit(P.characterEscapeValue),Q.exit(P.characterEscape),$;return Y(H)}}var FG={name:"characterReference",tokenize:Nu};function Nu(Q,$,Y){let G=this,K=0,H,B;return z;function z(L){return v(L===I.ampersand,"expected `&`"),Q.enter(P.characterReference),Q.enter(P.characterReferenceMarker),Q.consume(L),Q.exit(P.characterReferenceMarker),F}function F(L){if(L===I.numberSign)return Q.enter(P.characterReferenceMarkerNumeric),Q.consume(L),Q.exit(P.characterReferenceMarkerNumeric),R;return Q.enter(P.characterReferenceValue),H=N0.characterReferenceNamedSizeMax,B=T5,N(L)}function R(L){if(L===I.uppercaseX||L===I.lowercaseX)return Q.enter(P.characterReferenceMarkerHexadecimal),Q.consume(L),Q.exit(P.characterReferenceMarkerHexadecimal),Q.enter(P.characterReferenceValue),H=N0.characterReferenceHexadecimalSizeMax,B=nw,N;return Q.enter(P.characterReferenceValue),H=N0.characterReferenceDecimalSizeMax,B=jJ,N(L)}function N(L){if(L===I.semicolon&&K){let O=Q.exit(P.characterReferenceValue);if(B===T5&&!lX(G.sliceSerialize(O)))return Y(L);return Q.enter(P.characterReferenceMarker),Q.consume(L),Q.exit(P.characterReferenceMarker),Q.exit(P.characterReference),$}if(B(L)&&K++<H)return Q.consume(L),N;return Y(L)}}var XC={partial:!0,tokenize:_u},LG={concrete:!0,name:"codeFenced",tokenize:Ru};function Ru(Q,$,Y){let G=this,K={partial:!0,tokenize:s},H=0,B=0,z;return F;function F(g){return R(g)}function R(g){v(g===I.graveAccent||g===I.tilde,"expected `` ` `` or `~`");let c=G.events[G.events.length-1];return H=c&&c[1].type===P.linePrefix?c[2].sliceSerialize(c[1],!0).length:0,z=g,Q.enter(P.codeFenced),Q.enter(P.codeFencedFence),Q.enter(P.codeFencedFenceSequence),N(g)}function N(g){if(g===z)return B++,Q.consume(g),N;if(B<N0.codeFencedSequenceSizeMin)return Y(g);return Q.exit(P.codeFencedFenceSequence),o0(g)?t0(Q,L,P.whitespace)(g):L(g)}function L(g){if(g===I.eof||w0(g))return Q.exit(P.codeFencedFence),G.interrupt?$(g):Q.check(XC,D,a)(g);return Q.enter(P.codeFencedFenceInfo),Q.enter(P.chunkString,{contentType:N0.contentTypeString}),O(g)}function O(g){if(g===I.eof||w0(g))return Q.exit(P.chunkString),Q.exit(P.codeFencedFenceInfo),L(g);if(o0(g))return Q.exit(P.chunkString),Q.exit(P.codeFencedFenceInfo),t0(Q,A,P.whitespace)(g);if(g===I.graveAccent&&g===z)return Y(g);return Q.consume(g),O}function A(g){if(g===I.eof||w0(g))return L(g);return Q.enter(P.codeFencedFenceMeta),Q.enter(P.chunkString,{contentType:N0.contentTypeString}),C(g)}function C(g){if(g===I.eof||w0(g))return Q.exit(P.chunkString),Q.exit(P.codeFencedFenceMeta),L(g);if(g===I.graveAccent&&g===z)return Y(g);return Q.consume(g),C}function D(g){return v(w0(g),"expected eol"),Q.attempt(K,a,b)(g)}function b(g){return v(w0(g),"expected eol"),Q.enter(P.lineEnding),Q.consume(g),Q.exit(P.lineEnding),y}function y(g){return H>0&&o0(g)?t0(Q,k,P.linePrefix,H+1)(g):k(g)}function k(g){if(g===I.eof||w0(g))return Q.check(XC,D,a)(g);return Q.enter(P.codeFlowValue),f(g)}function f(g){if(g===I.eof||w0(g))return Q.exit(P.codeFlowValue),k(g);return Q.consume(g),f}function a(g){return Q.exit(P.codeFenced),$(g)}function s(g,c,h){let Z0=0;return E;function E(o){return v(w0(o),"expected eol"),g.enter(P.lineEnding),g.consume(o),g.exit(P.lineEnding),_0}function _0(o){return v(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),g.enter(P.codeFencedFence),o0(o)?t0(g,t,P.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:N0.tabSize)(o):t(o)}function t(o){if(o===z)return g.enter(P.codeFencedFenceSequence),n(o);return h(o)}function n(o){if(o===z)return Z0++,g.consume(o),n;if(Z0>=B)return g.exit(P.codeFencedFenceSequence),o0(o)?t0(g,z0,P.whitespace)(o):z0(o);return h(o)}function z0(o){if(o===I.eof||w0(o))return g.exit(P.codeFencedFence),c(o);return h(o)}}}function _u(Q,$,Y){let G=this;return K;function K(B){if(B===I.eof)return Y(B);return v(w0(B),"expected eol"),Q.enter(P.lineEnding),Q.consume(B),Q.exit(P.lineEnding),H}function H(B){return G.parser.lazy[G.now().line]?Y(B):$(B)}}var SJ={name:"codeIndented",tokenize:Au},Ou={partial:!0,tokenize:Iu};function Au(Q,$,Y){let G=this;return K;function K(R){return v(o0(R)),Q.enter(P.codeIndented),t0(Q,H,P.linePrefix,N0.tabSize+1)(R)}function H(R){let N=G.events[G.events.length-1];return N&&N[1].type===P.linePrefix&&N[2].sliceSerialize(N[1],!0).length>=N0.tabSize?B(R):Y(R)}function B(R){if(R===I.eof)return F(R);if(w0(R))return Q.attempt(Ou,B,F)(R);return Q.enter(P.codeFlowValue),z(R)}function z(R){if(R===I.eof||w0(R))return Q.exit(P.codeFlowValue),B(R);return Q.consume(R),z}function F(R){return Q.exit(P.codeIndented),$(R)}}function Iu(Q,$,Y){let G=this;return K;function K(B){if(G.parser.lazy[G.now().line])return Y(B);if(w0(B))return Q.enter(P.lineEnding),Q.consume(B),Q.exit(P.lineEnding),K;return t0(Q,H,P.linePrefix,N0.tabSize+1)(B)}function H(B){let z=G.events[G.events.length-1];return z&&z[1].type===P.linePrefix&&z[2].sliceSerialize(z[1],!0).length>=N0.tabSize?$(B):w0(B)?K(B):Y(B)}}var gz={name:"codeText",previous:QC,resolve:Tu,tokenize:Vu};function Tu(Q){let $=Q.length-4,Y=3,G,K;if((Q[Y][1].type===P.lineEnding||Q[Y][1].type==="space")&&(Q[$][1].type===P.lineEnding||Q[$][1].type==="space")){G=Y;while(++G<$)if(Q[G][1].type===P.codeTextData){Q[Y][1].type=P.codeTextPadding,Q[$][1].type=P.codeTextPadding,Y+=2,$-=2;break}}G=Y-1,$++;while(++G<=$)if(K===void 0){if(G!==$&&Q[G][1].type!==P.lineEnding)K=G}else if(G===$||Q[G][1].type===P.lineEnding){if(Q[K][1].type=P.codeTextData,G!==K+2)Q[K][1].end=Q[G-1][1].end,Q.splice(K+2,G-K-2),$-=G-K-2,G=K+2;K=void 0}return Q}function QC(Q){return Q!==I.graveAccent||this.events[this.events.length-1][1].type===P.characterEscape}function Vu(Q,$,Y){let G=this,K=0,H,B;return z;function z(O){return v(O===I.graveAccent,"expected `` ` ``"),v(QC.call(G,G.previous),"expected correct previous"),Q.enter(P.codeText),Q.enter(P.codeTextSequence),F(O)}function F(O){if(O===I.graveAccent)return Q.consume(O),K++,F;return Q.exit(P.codeTextSequence),R(O)}function R(O){if(O===I.eof)return Y(O);if(O===I.space)return Q.enter("space"),Q.consume(O),Q.exit("space"),R;if(O===I.graveAccent)return B=Q.enter(P.codeTextSequence),H=0,L(O);if(w0(O))return Q.enter(P.lineEnding),Q.consume(O),Q.exit(P.lineEnding),R;return Q.enter(P.codeTextData),N(O)}function N(O){if(O===I.eof||O===I.space||O===I.graveAccent||w0(O))return Q.exit(P.codeTextData),R(O);return Q.consume(O),N}function L(O){if(O===I.graveAccent)return Q.consume(O),H++,L;if(H===K)return Q.exit(P.codeTextSequence),Q.exit(P.codeText),$(O);return B.type=P.codeTextData,N(O)}}class hz{constructor(Q){this.left=Q?[...Q]:[],this.right=[]}get(Q){if(Q<0||Q>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+Q+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if(Q<this.left.length)return this.left[Q];return this.right[this.right.length-Q+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(Q,$){let Y=$===null||$===void 0?Number.POSITIVE_INFINITY:$;if(Y<this.left.length)return this.left.slice(Q,Y);if(Q>this.left.length)return this.right.slice(this.right.length-Y+this.left.length,this.right.length-Q+this.left.length).reverse();return this.left.slice(Q).concat(this.right.slice(this.right.length-Y+this.left.length).reverse())}splice(Q,$,Y){let G=$||0;this.setCursor(Math.trunc(Q));let K=this.right.splice(this.right.length-G,Number.POSITIVE_INFINITY);if(Y)EJ(this.left,Y);return K.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(Q){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(Q)}pushMany(Q){this.setCursor(Number.POSITIVE_INFINITY),EJ(this.left,Q)}unshift(Q){this.setCursor(0),this.right.push(Q)}unshiftMany(Q){this.setCursor(0),EJ(this.right,Q.reverse())}setCursor(Q){if(Q===this.left.length||Q>this.left.length&&this.right.length===0||Q<0&&this.left.length===0)return;if(Q<this.left.length){let $=this.left.splice(Q,Number.POSITIVE_INFINITY);EJ(this.right,$.reverse())}else{let $=this.right.splice(this.left.length+this.right.length-Q,Number.POSITIVE_INFINITY);EJ(this.left,$.reverse())}}}function EJ(Q,$){let Y=0;if($.length<N0.v8MaxSafeChunkSize)Q.push(...$);else while(Y<$.length)Q.push(...$.slice(Y,Y+N0.v8MaxSafeChunkSize)),Y+=N0.v8MaxSafeChunkSize}function MG(Q){let $={},Y=-1,G,K,H,B,z,F,R,N=new hz(Q);while(++Y<N.length){while(Y in $)Y=$[Y];if(G=N.get(Y),Y&&G[1].type===P.chunkFlow&&N.get(Y-1)[1].type===P.listItemPrefix){if(v(G[1]._tokenizer,"expected `_tokenizer` on subtokens"),F=G[1]._tokenizer.events,H=0,H<F.length&&F[H][1].type===P.lineEndingBlank)H+=2;if(H<F.length&&F[H][1].type===P.content)while(++H<F.length){if(F[H][1].type===P.content)break;if(F[H][1].type===P.chunkText)F[H][1]._isInFirstContentOfListItem=!0,H++}}if(G[0]==="enter"){if(G[1].contentType)Object.assign($,Pu(N,Y)),Y=$[Y],R=!0}else if(G[1]._container){H=Y,K=void 0;while(H--)if(B=N.get(H),B[1].type===P.lineEnding||B[1].type===P.lineEndingBlank){if(B[0]==="enter"){if(K)N.get(K)[1].type=P.lineEndingBlank;B[1].type=P.lineEnding,K=H}}else if(B[1].type===P.linePrefix||B[1].type===P.listItemIndent);else break;if(K)G[1].end={...N.get(K)[1].start},z=N.slice(K,Y),z.unshift(G),N.splice(K,Y-K+1,z)}}return C5(Q,0,Number.POSITIVE_INFINITY,N.slice(0)),!R}function Pu(Q,$){let Y=Q.get($)[1],G=Q.get($)[2],K=$-1,H=[];v(Y.contentType,"expected `contentType` on subtokens");let B=Y._tokenizer;if(!B){if(B=G.parser[Y.contentType](Y.start),Y._contentTypeTextTrailing)B._contentTypeTextTrailing=!0}let z=B.events,F=[],R={},N,L,O=-1,A=Y,C=0,D=0,b=[D];while(A){while(Q.get(++K)[1]!==A);if(v(!L||A.previous===L,"expected previous to match"),v(!L||L.next===A,"expected next to match"),H.push(K),!A._tokenizer){if(N=G.sliceStream(A),!A.next)N.push(I.eof);if(L)B.defineSkip(A.start);if(A._isInFirstContentOfListItem)B._gfmTasklistFirstContentOfListItem=!0;if(B.write(N),A._isInFirstContentOfListItem)B._gfmTasklistFirstContentOfListItem=void 0}L=A,A=A.next}A=Y;while(++O<z.length)if(z[O][0]==="exit"&&z[O-1][0]==="enter"&&z[O][1].type===z[O-1][1].type&&z[O][1].start.line!==z[O][1].end.line)v(A,"expected a current token"),D=O+1,b.push(D),A._tokenizer=void 0,A.previous=void 0,A=A.next;if(B.events=[],A)A._tokenizer=void 0,A.previous=void 0,v(!A.next,"expected no next token");else b.pop();O=b.length;while(O--){let y=z.slice(b[O],b[O+1]),k=H.pop();v(k!==void 0,"expected a start position when splicing"),F.push([k,k+y.length-1]),Q.splice(k,2,y)}F.reverse(),O=-1;while(++O<F.length)R[C+F[O][0]]=C+F[O][1],C+=F[O][1]-F[O][0]-1;return R}var vz={resolve:Cu,tokenize:ju},wu={partial:!0,tokenize:Du};function Cu(Q){return MG(Q),Q}function ju(Q,$){let Y;return G;function G(z){return v(z!==I.eof&&!w0(z),"expected no eof or eol"),Q.enter(P.content),Y=Q.enter(P.chunkContent,{contentType:N0.contentTypeContent}),K(z)}function K(z){if(z===I.eof)return H(z);if(w0(z))return Q.check(wu,B,H)(z);return Q.consume(z),K}function H(z){return Q.exit(P.chunkContent),Q.exit(P.content),$(z)}function B(z){return v(w0(z),"expected eol"),Q.consume(z),Q.exit(P.chunkContent),v(Y,"expected previous token"),Y.next=Q.enter(P.chunkContent,{contentType:N0.contentTypeContent,previous:Y}),Y=Y.next,K}}function Du(Q,$,Y){let G=this;return K;function K(B){return v(w0(B),"expected a line ending"),Q.exit(P.chunkContent),Q.enter(P.lineEnding),Q.consume(B),Q.exit(P.lineEnding),t0(Q,H,P.linePrefix)}function H(B){if(B===I.eof||w0(B))return Y(B);v(G.parser.constructs.disable.null,"expected `disable.null` to be populated");let z=G.events[G.events.length-1];if(!G.parser.constructs.disable.null.includes("codeIndented")&&z&&z[1].type===P.linePrefix&&z[2].sliceSerialize(z[1],!0).length>=N0.tabSize)return $(B);return Q.interrupt(G.parser.constructs.flow,Y,$)(B)}}function NG(Q,$,Y,G,K,H,B,z,F){let R=F||Number.POSITIVE_INFINITY,N=0;return L;function L(y){if(y===I.lessThan)return Q.enter(G),Q.enter(K),Q.enter(H),Q.consume(y),Q.exit(H),O;if(y===I.eof||y===I.space||y===I.rightParenthesis||o8(y))return Y(y);return Q.enter(G),Q.enter(B),Q.enter(z),Q.enter(P.chunkString,{contentType:N0.contentTypeString}),D(y)}function O(y){if(y===I.greaterThan)return Q.enter(H),Q.consume(y),Q.exit(H),Q.exit(K),Q.exit(G),$;return Q.enter(z),Q.enter(P.chunkString,{contentType:N0.contentTypeString}),A(y)}function A(y){if(y===I.greaterThan)return Q.exit(P.chunkString),Q.exit(z),O(y);if(y===I.eof||y===I.lessThan||w0(y))return Y(y);return Q.consume(y),y===I.backslash?C:A}function C(y){if(y===I.lessThan||y===I.greaterThan||y===I.backslash)return Q.consume(y),A;return A(y)}function D(y){if(!N&&(y===I.eof||y===I.rightParenthesis||b1(y)))return Q.exit(P.chunkString),Q.exit(z),Q.exit(B),Q.exit(G),$(y);if(N<R&&y===I.leftParenthesis)return Q.consume(y),N++,D;if(y===I.rightParenthesis)return Q.consume(y),N--,D;if(y===I.eof||y===I.space||y===I.leftParenthesis||o8(y))return Y(y);return Q.consume(y),y===I.backslash?b:D}function b(y){if(y===I.leftParenthesis||y===I.rightParenthesis||y===I.backslash)return Q.consume(y),D;return D(y)}}function RG(Q,$,Y,G,K,H){let B=this,z=0,F;return R;function R(A){return v(A===I.leftSquareBracket,"expected `[`"),Q.enter(G),Q.enter(K),Q.consume(A),Q.exit(K),Q.enter(H),N}function N(A){if(z>N0.linkReferenceSizeMax||A===I.eof||A===I.leftSquareBracket||A===I.rightSquareBracket&&!F||A===I.caret&&!z&&"_hiddenFootnoteSupport"in B.parser.constructs)return Y(A);if(A===I.rightSquareBracket)return Q.exit(H),Q.enter(K),Q.consume(A),Q.exit(K),Q.exit(G),$;if(w0(A))return Q.enter(P.lineEnding),Q.consume(A),Q.exit(P.lineEnding),N;return Q.enter(P.chunkString,{contentType:N0.contentTypeString}),L(A)}function L(A){if(A===I.eof||A===I.leftSquareBracket||A===I.rightSquareBracket||w0(A)||z++>N0.linkReferenceSizeMax)return Q.exit(P.chunkString),N(A);if(Q.consume(A),!F)F=!o0(A);return A===I.backslash?O:L}function O(A){if(A===I.leftSquareBracket||A===I.backslash||A===I.rightSquareBracket)return Q.consume(A),z++,L;return L(A)}}function _G(Q,$,Y,G,K,H){let B;return z;function z(O){if(O===I.quotationMark||O===I.apostrophe||O===I.leftParenthesis)return Q.enter(G),Q.enter(K),Q.consume(O),Q.exit(K),B=O===I.leftParenthesis?I.rightParenthesis:O,F;return Y(O)}function F(O){if(O===B)return Q.enter(K),Q.consume(O),Q.exit(K),Q.exit(G),$;return Q.enter(H),R(O)}function R(O){if(O===B)return Q.exit(H),F(B);if(O===I.eof)return Y(O);if(w0(O))return Q.enter(P.lineEnding),Q.consume(O),Q.exit(P.lineEnding),t0(Q,R,P.linePrefix);return Q.enter(P.chunkString,{contentType:N0.contentTypeString}),N(O)}function N(O){if(O===B||O===I.eof||w0(O))return Q.exit(P.chunkString),R(O);return Q.consume(O),O===I.backslash?L:N}function L(O){if(O===B||O===I.backslash)return Q.consume(O),N;return N(O)}}function e8(Q,$){let Y;return G;function G(K){if(w0(K))return Q.enter(P.lineEnding),Q.consume(K),Q.exit(P.lineEnding),Y=!0,G;if(o0(K))return t0(Q,G,Y?P.linePrefix:P.lineSuffix)(K);return $(K)}}var xz={name:"definition",tokenize:Eu},Su={partial:!0,tokenize:bu};function Eu(Q,$,Y){let G=this,K;return H;function H(A){return Q.enter(P.definition),B(A)}function B(A){return v(A===I.leftSquareBracket,"expected `[`"),RG.call(G,Q,z,Y,P.definitionLabel,P.definitionLabelMarker,P.definitionLabelString)(A)}function z(A){if(K=I4(G.sliceSerialize(G.events[G.events.length-1][1]).slice(1,-1)),A===I.colon)return Q.enter(P.definitionMarker),Q.consume(A),Q.exit(P.definitionMarker),F;return Y(A)}function F(A){return b1(A)?e8(Q,R)(A):R(A)}function R(A){return NG(Q,N,Y,P.definitionDestination,P.definitionDestinationLiteral,P.definitionDestinationLiteralMarker,P.definitionDestinationRaw,P.definitionDestinationString)(A)}function N(A){return Q.attempt(Su,L,L)(A)}function L(A){return o0(A)?t0(Q,O,P.whitespace)(A):O(A)}function O(A){if(A===I.eof||w0(A))return Q.exit(P.definition),G.parser.defined.push(K),$(A);return Y(A)}}function bu(Q,$,Y){return G;function G(z){return b1(z)?e8(Q,K)(z):Y(z)}function K(z){return _G(Q,H,Y,P.definitionTitle,P.definitionTitleMarker,P.definitionTitleString)(z)}function H(z){return o0(z)?t0(Q,B,P.whitespace)(z):B(z)}function B(z){return z===I.eof||w0(z)?$(z):Y(z)}}var kz={name:"hardBreakEscape",tokenize:yu};function yu(Q,$,Y){return G;function G(H){return v(H===I.backslash,"expected `\\`"),Q.enter(P.hardBreakEscape),Q.consume(H),K}function K(H){if(w0(H))return Q.exit(P.hardBreakEscape),$(H);return Y(H)}}var mz={name:"headingAtx",resolve:gu,tokenize:hu};function gu(Q,$){let Y=Q.length-2,G=3,K,H;if(Q[G][1].type===P.whitespace)G+=2;if(Y-2>G&&Q[Y][1].type===P.whitespace)Y-=2;if(Q[Y][1].type===P.atxHeadingSequence&&(G===Y-1||Y-4>G&&Q[Y-2][1].type===P.whitespace))Y-=G+1===Y?2:4;if(Y>G)K={type:P.atxHeadingText,start:Q[G][1].start,end:Q[Y][1].end},H={type:P.chunkText,start:Q[G][1].start,end:Q[Y][1].end,contentType:N0.contentTypeText},C5(Q,G,Y-G+1,[["enter",K,$],["enter",H,$],["exit",H,$],["exit",K,$]]);return Q}function hu(Q,$,Y){let G=0;return K;function K(N){return Q.enter(P.atxHeading),H(N)}function H(N){return v(N===I.numberSign,"expected `#`"),Q.enter(P.atxHeadingSequence),B(N)}function B(N){if(N===I.numberSign&&G++<N0.atxHeadingOpeningFenceSizeMax)return Q.consume(N),B;if(N===I.eof||b1(N))return Q.exit(P.atxHeadingSequence),z(N);return Y(N)}function z(N){if(N===I.numberSign)return Q.enter(P.atxHeadingSequence),F(N);if(N===I.eof||w0(N))return Q.exit(P.atxHeading),$(N);if(o0(N))return t0(Q,z,P.whitespace)(N);return Q.enter(P.atxHeadingText),R(N)}function F(N){if(N===I.numberSign)return Q.consume(N),F;return Q.exit(P.atxHeadingSequence),z(N)}function R(N){if(N===I.eof||N===I.numberSign||b1(N))return Q.exit(P.atxHeadingText),z(N);return Q.consume(N),R}}var JC=["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"],uz=["pre","script","style","textarea"];var fz={concrete:!0,name:"htmlFlow",resolveTo:ku,tokenize:mu},vu={partial:!0,tokenize:fu},xu={partial:!0,tokenize:uu};function ku(Q){let $=Q.length;while($--)if(Q[$][0]==="enter"&&Q[$][1].type===P.htmlFlow)break;if($>1&&Q[$-2][1].type===P.linePrefix)Q[$][1].start=Q[$-2][1].start,Q[$+1][1].start=Q[$-2][1].start,Q.splice($-2,2);return Q}function mu(Q,$,Y){let G=this,K,H,B,z,F;return R;function R(S){return N(S)}function N(S){return v(S===I.lessThan,"expected `<`"),Q.enter(P.htmlFlow),Q.enter(P.htmlFlowData),Q.consume(S),L}function L(S){if(S===I.exclamationMark)return Q.consume(S),O;if(S===I.slash)return Q.consume(S),H=!0,D;if(S===I.questionMark)return Q.consume(S),K=N0.htmlInstruction,G.interrupt?$:T;if(r5(S))return v(S!==null),Q.consume(S),B=String.fromCharCode(S),b;return Y(S)}function O(S){if(S===I.dash)return Q.consume(S),K=N0.htmlComment,A;if(S===I.leftSquareBracket)return Q.consume(S),K=N0.htmlCdata,z=0,C;if(r5(S))return Q.consume(S),K=N0.htmlDeclaration,G.interrupt?$:T;return Y(S)}function A(S){if(S===I.dash)return Q.consume(S),G.interrupt?$:T;return Y(S)}function C(S){let L0=N0.cdataOpeningString;if(S===L0.charCodeAt(z++)){if(Q.consume(S),z===L0.length)return G.interrupt?$:t;return C}return Y(S)}function D(S){if(r5(S))return v(S!==null),Q.consume(S),B=String.fromCharCode(S),b;return Y(S)}function b(S){if(S===I.eof||S===I.slash||S===I.greaterThan||b1(S)){let L0=S===I.slash,A0=B.toLowerCase();if(!L0&&!H&&uz.includes(A0))return K=N0.htmlRaw,G.interrupt?$(S):t(S);if(JC.includes(B.toLowerCase())){if(K=N0.htmlBasic,L0)return Q.consume(S),y;return G.interrupt?$(S):t(S)}return K=N0.htmlComplete,G.interrupt&&!G.parser.lazy[G.now().line]?Y(S):H?k(S):f(S)}if(S===I.dash||T5(S))return Q.consume(S),B+=String.fromCharCode(S),b;return Y(S)}function y(S){if(S===I.greaterThan)return Q.consume(S),G.interrupt?$:t;return Y(S)}function k(S){if(o0(S))return Q.consume(S),k;return E(S)}function f(S){if(S===I.slash)return Q.consume(S),E;if(S===I.colon||S===I.underscore||r5(S))return Q.consume(S),a;if(o0(S))return Q.consume(S),f;return E(S)}function a(S){if(S===I.dash||S===I.dot||S===I.colon||S===I.underscore||T5(S))return Q.consume(S),a;return s(S)}function s(S){if(S===I.equalsTo)return Q.consume(S),g;if(o0(S))return Q.consume(S),s;return f(S)}function g(S){if(S===I.eof||S===I.lessThan||S===I.equalsTo||S===I.greaterThan||S===I.graveAccent)return Y(S);if(S===I.quotationMark||S===I.apostrophe)return Q.consume(S),F=S,c;if(o0(S))return Q.consume(S),g;return h(S)}function c(S){if(S===F)return Q.consume(S),F=null,Z0;if(S===I.eof||w0(S))return Y(S);return Q.consume(S),c}function h(S){if(S===I.eof||S===I.quotationMark||S===I.apostrophe||S===I.slash||S===I.lessThan||S===I.equalsTo||S===I.greaterThan||S===I.graveAccent||b1(S))return s(S);return Q.consume(S),h}function Z0(S){if(S===I.slash||S===I.greaterThan||o0(S))return f(S);return Y(S)}function E(S){if(S===I.greaterThan)return Q.consume(S),_0;return Y(S)}function _0(S){if(S===I.eof||w0(S))return t(S);if(o0(S))return Q.consume(S),_0;return Y(S)}function t(S){if(S===I.dash&&K===N0.htmlComment)return Q.consume(S),H0;if(S===I.lessThan&&K===N0.htmlRaw)return Q.consume(S),G0;if(S===I.greaterThan&&K===N0.htmlDeclaration)return Q.consume(S),B0;if(S===I.questionMark&&K===N0.htmlInstruction)return Q.consume(S),T;if(S===I.rightSquareBracket&&K===N0.htmlCdata)return Q.consume(S),U0;if(w0(S)&&(K===N0.htmlBasic||K===N0.htmlComplete))return Q.exit(P.htmlFlowData),Q.check(vu,r,n)(S);if(S===I.eof||w0(S))return Q.exit(P.htmlFlowData),n(S);return Q.consume(S),t}function n(S){return Q.check(xu,z0,r)(S)}function z0(S){return v(w0(S)),Q.enter(P.lineEnding),Q.consume(S),Q.exit(P.lineEnding),o}function o(S){if(S===I.eof||w0(S))return n(S);return Q.enter(P.htmlFlowData),t(S)}function H0(S){if(S===I.dash)return Q.consume(S),T;return t(S)}function G0(S){if(S===I.slash)return Q.consume(S),B="",e;return t(S)}function e(S){if(S===I.greaterThan){let L0=B.toLowerCase();if(uz.includes(L0))return Q.consume(S),B0;return t(S)}if(r5(S)&&B.length<N0.htmlRawSizeMax)return v(S!==null),Q.consume(S),B+=String.fromCharCode(S),e;return t(S)}function U0(S){if(S===I.rightSquareBracket)return Q.consume(S),T;return t(S)}function T(S){if(S===I.greaterThan)return Q.consume(S),B0;if(S===I.dash&&K===N0.htmlComment)return Q.consume(S),T;return t(S)}function B0(S){if(S===I.eof||w0(S))return Q.exit(P.htmlFlowData),r(S);return Q.consume(S),B0}function r(S){return Q.exit(P.htmlFlow),$(S)}}function uu(Q,$,Y){let G=this;return K;function K(B){if(w0(B))return Q.enter(P.lineEnding),Q.consume(B),Q.exit(P.lineEnding),H;return Y(B)}function H(B){return G.parser.lazy[G.now().line]?Y(B):$(B)}}function fu(Q,$,Y){return G;function G(K){return v(w0(K),"expected a line ending"),Q.enter(P.lineEnding),Q.consume(K),Q.exit(P.lineEnding),Q.attempt(i9,$,Y)}}var pz={name:"htmlText",tokenize:pu};function pu(Q,$,Y){let G=this,K,H,B;return z;function z(T){return v(T===I.lessThan,"expected `<`"),Q.enter(P.htmlText),Q.enter(P.htmlTextData),Q.consume(T),F}function F(T){if(T===I.exclamationMark)return Q.consume(T),R;if(T===I.slash)return Q.consume(T),s;if(T===I.questionMark)return Q.consume(T),f;if(r5(T))return Q.consume(T),h;return Y(T)}function R(T){if(T===I.dash)return Q.consume(T),N;if(T===I.leftSquareBracket)return Q.consume(T),H=0,C;if(r5(T))return Q.consume(T),k;return Y(T)}function N(T){if(T===I.dash)return Q.consume(T),A;return Y(T)}function L(T){if(T===I.eof)return Y(T);if(T===I.dash)return Q.consume(T),O;if(w0(T))return B=L,G0(T);return Q.consume(T),L}function O(T){if(T===I.dash)return Q.consume(T),A;return L(T)}function A(T){return T===I.greaterThan?H0(T):T===I.dash?O(T):L(T)}function C(T){let B0=N0.cdataOpeningString;if(T===B0.charCodeAt(H++))return Q.consume(T),H===B0.length?D:C;return Y(T)}function D(T){if(T===I.eof)return Y(T);if(T===I.rightSquareBracket)return Q.consume(T),b;if(w0(T))return B=D,G0(T);return Q.consume(T),D}function b(T){if(T===I.rightSquareBracket)return Q.consume(T),y;return D(T)}function y(T){if(T===I.greaterThan)return H0(T);if(T===I.rightSquareBracket)return Q.consume(T),y;return D(T)}function k(T){if(T===I.eof||T===I.greaterThan)return H0(T);if(w0(T))return B=k,G0(T);return Q.consume(T),k}function f(T){if(T===I.eof)return Y(T);if(T===I.questionMark)return Q.consume(T),a;if(w0(T))return B=f,G0(T);return Q.consume(T),f}function a(T){return T===I.greaterThan?H0(T):f(T)}function s(T){if(r5(T))return Q.consume(T),g;return Y(T)}function g(T){if(T===I.dash||T5(T))return Q.consume(T),g;return c(T)}function c(T){if(w0(T))return B=c,G0(T);if(o0(T))return Q.consume(T),c;return H0(T)}function h(T){if(T===I.dash||T5(T))return Q.consume(T),h;if(T===I.slash||T===I.greaterThan||b1(T))return Z0(T);return Y(T)}function Z0(T){if(T===I.slash)return Q.consume(T),H0;if(T===I.colon||T===I.underscore||r5(T))return Q.consume(T),E;if(w0(T))return B=Z0,G0(T);if(o0(T))return Q.consume(T),Z0;return H0(T)}function E(T){if(T===I.dash||T===I.dot||T===I.colon||T===I.underscore||T5(T))return Q.consume(T),E;return _0(T)}function _0(T){if(T===I.equalsTo)return Q.consume(T),t;if(w0(T))return B=_0,G0(T);if(o0(T))return Q.consume(T),_0;return Z0(T)}function t(T){if(T===I.eof||T===I.lessThan||T===I.equalsTo||T===I.greaterThan||T===I.graveAccent)return Y(T);if(T===I.quotationMark||T===I.apostrophe)return Q.consume(T),K=T,n;if(w0(T))return B=t,G0(T);if(o0(T))return Q.consume(T),t;return Q.consume(T),z0}function n(T){if(T===K)return Q.consume(T),K=void 0,o;if(T===I.eof)return Y(T);if(w0(T))return B=n,G0(T);return Q.consume(T),n}function z0(T){if(T===I.eof||T===I.quotationMark||T===I.apostrophe||T===I.lessThan||T===I.equalsTo||T===I.graveAccent)return Y(T);if(T===I.slash||T===I.greaterThan||b1(T))return Z0(T);return Q.consume(T),z0}function o(T){if(T===I.slash||T===I.greaterThan||b1(T))return Z0(T);return Y(T)}function H0(T){if(T===I.greaterThan)return Q.consume(T),Q.exit(P.htmlTextData),Q.exit(P.htmlText),$;return Y(T)}function G0(T){return v(B,"expected return state"),v(w0(T),"expected eol"),Q.exit(P.htmlTextData),Q.enter(P.lineEnding),Q.consume(T),Q.exit(P.lineEnding),e}function e(T){return v(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),o0(T)?t0(Q,U0,P.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:N0.tabSize)(T):U0(T)}function U0(T){return Q.enter(P.htmlTextData),B(T)}}var ZZ={name:"labelEnd",resolveAll:cu,resolveTo:ru,tokenize:au},lu={tokenize:nu},du={tokenize:su},iu={tokenize:ou};function cu(Q){let $=-1,Y=[];while(++$<Q.length){let G=Q[$][1];if(Y.push(Q[$]),G.type===P.labelImage||G.type===P.labelLink||G.type===P.labelEnd){let K=G.type===P.labelImage?4:2;G.type=P.data,$+=K}}if(Q.length!==Y.length)C5(Q,0,Q.length,Y);return Q}function ru(Q,$){let Y=Q.length,G=0,K,H,B,z;while(Y--)if(K=Q[Y][1],H){if(K.type===P.link||K.type===P.labelLink&&K._inactive)break;if(Q[Y][0]==="enter"&&K.type===P.labelLink)K._inactive=!0}else if(B){if(Q[Y][0]==="enter"&&(K.type===P.labelImage||K.type===P.labelLink)&&!K._balanced){if(H=Y,K.type!==P.labelLink){G=2;break}}}else if(K.type===P.labelEnd)B=Y;v(H!==void 0,"`open` is supposed to be found"),v(B!==void 0,"`close` is supposed to be found");let F={type:Q[H][1].type===P.labelLink?P.link:P.image,start:{...Q[H][1].start},end:{...Q[Q.length-1][1].end}},R={type:P.label,start:{...Q[H][1].start},end:{...Q[B][1].end}},N={type:P.labelText,start:{...Q[H+G+2][1].end},end:{...Q[B-2][1].start}};return z=[["enter",F,$],["enter",R,$]],z=k4(z,Q.slice(H+1,H+G+3)),z=k4(z,[["enter",N,$]]),v($.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),z=k4(z,g7($.parser.constructs.insideSpan.null,Q.slice(H+G+4,B-3),$)),z=k4(z,[["exit",N,$],Q[B-2],Q[B-1],["exit",R,$]]),z=k4(z,Q.slice(B+1)),z=k4(z,[["exit",F,$]]),C5(Q,H,Q.length,z),Q}function au(Q,$,Y){let G=this,K=G.events.length,H,B;while(K--)if((G.events[K][1].type===P.labelImage||G.events[K][1].type===P.labelLink)&&!G.events[K][1]._balanced){H=G.events[K][1];break}return z;function z(O){if(v(O===I.rightSquareBracket,"expected `]`"),!H)return Y(O);if(H._inactive)return L(O);return B=G.parser.defined.includes(I4(G.sliceSerialize({start:H.end,end:G.now()}))),Q.enter(P.labelEnd),Q.enter(P.labelMarker),Q.consume(O),Q.exit(P.labelMarker),Q.exit(P.labelEnd),F}function F(O){if(O===I.leftParenthesis)return Q.attempt(lu,N,B?N:L)(O);if(O===I.leftSquareBracket)return Q.attempt(du,N,B?R:L)(O);return B?N(O):L(O)}function R(O){return Q.attempt(iu,N,L)(O)}function N(O){return $(O)}function L(O){return H._balanced=!0,Y(O)}}function nu(Q,$,Y){return G;function G(L){return v(L===I.leftParenthesis,"expected left paren"),Q.enter(P.resource),Q.enter(P.resourceMarker),Q.consume(L),Q.exit(P.resourceMarker),K}function K(L){return b1(L)?e8(Q,H)(L):H(L)}function H(L){if(L===I.rightParenthesis)return N(L);return NG(Q,B,z,P.resourceDestination,P.resourceDestinationLiteral,P.resourceDestinationLiteralMarker,P.resourceDestinationRaw,P.resourceDestinationString,N0.linkResourceDestinationBalanceMax)(L)}function B(L){return b1(L)?e8(Q,F)(L):N(L)}function z(L){return Y(L)}function F(L){if(L===I.quotationMark||L===I.apostrophe||L===I.leftParenthesis)return _G(Q,R,Y,P.resourceTitle,P.resourceTitleMarker,P.resourceTitleString)(L);return N(L)}function R(L){return b1(L)?e8(Q,N)(L):N(L)}function N(L){if(L===I.rightParenthesis)return Q.enter(P.resourceMarker),Q.consume(L),Q.exit(P.resourceMarker),Q.exit(P.resource),$;return Y(L)}}function su(Q,$,Y){let G=this;return K;function K(z){return v(z===I.leftSquareBracket,"expected left bracket"),RG.call(G,Q,H,B,P.reference,P.referenceMarker,P.referenceString)(z)}function H(z){return G.parser.defined.includes(I4(G.sliceSerialize(G.events[G.events.length-1][1]).slice(1,-1)))?$(z):Y(z)}function B(z){return Y(z)}}function ou(Q,$,Y){return G;function G(H){return v(H===I.leftSquareBracket,"expected left bracket"),Q.enter(P.reference),Q.enter(P.referenceMarker),Q.consume(H),Q.exit(P.referenceMarker),K}function K(H){if(H===I.rightSquareBracket)return Q.enter(P.referenceMarker),Q.consume(H),Q.exit(P.referenceMarker),Q.exit(P.reference),$;return Y(H)}}var lz={name:"labelStartImage",resolveAll:ZZ.resolveAll,tokenize:tu};function tu(Q,$,Y){let G=this;return K;function K(z){return v(z===I.exclamationMark,"expected `!`"),Q.enter(P.labelImage),Q.enter(P.labelImageMarker),Q.consume(z),Q.exit(P.labelImageMarker),H}function H(z){if(z===I.leftSquareBracket)return Q.enter(P.labelMarker),Q.consume(z),Q.exit(P.labelMarker),Q.exit(P.labelImage),B;return Y(z)}function B(z){return z===I.caret&&"_hiddenFootnoteSupport"in G.parser.constructs?Y(z):$(z)}}var dz={name:"labelStartLink",resolveAll:ZZ.resolveAll,tokenize:eu};function eu(Q,$,Y){let G=this;return K;function K(B){return v(B===I.leftSquareBracket,"expected `[`"),Q.enter(P.labelLink),Q.enter(P.labelMarker),Q.consume(B),Q.exit(P.labelMarker),Q.exit(P.labelLink),H}function H(B){return B===I.caret&&"_hiddenFootnoteSupport"in G.parser.constructs?Y(B):$(B)}}var bJ={name:"lineEnding",tokenize:Zf};function Zf(Q,$){return Y;function Y(G){return v(w0(G),"expected eol"),Q.enter(P.lineEnding),Q.consume(G),Q.exit(P.lineEnding),t0(Q,$,P.linePrefix)}}var XZ={name:"thematicBreak",tokenize:Xf};function Xf(Q,$,Y){let G=0,K;return H;function H(R){return Q.enter(P.thematicBreak),B(R)}function B(R){return v(R===I.asterisk||R===I.dash||R===I.underscore,"expected `*`, `-`, or `_`"),K=R,z(R)}function z(R){if(R===K)return Q.enter(P.thematicBreakSequence),F(R);if(G>=N0.thematicBreakMarkerCountMin&&(R===I.eof||w0(R)))return Q.exit(P.thematicBreak),$(R);return Y(R)}function F(R){if(R===K)return Q.consume(R),G++,F;return Q.exit(P.thematicBreakSequence),o0(R)?t0(Q,z,P.whitespace)(R):z(R)}}var T4={continuation:{tokenize:Yf},exit:Gf,name:"list",tokenize:$f},Qf={partial:!0,tokenize:Kf},Jf={partial:!0,tokenize:qf};function $f(Q,$,Y){let G=this,K=G.events[G.events.length-1],H=K&&K[1].type===P.linePrefix?K[2].sliceSerialize(K[1],!0).length:0,B=0;return z;function z(A){v(G.containerState,"expected state");let C=G.containerState.type||(A===I.asterisk||A===I.plusSign||A===I.dash?P.listUnordered:P.listOrdered);if(C===P.listUnordered?!G.containerState.marker||A===G.containerState.marker:jJ(A)){if(!G.containerState.type)G.containerState.type=C,Q.enter(C,{_container:!0});if(C===P.listUnordered)return Q.enter(P.listItemPrefix),A===I.asterisk||A===I.dash?Q.check(XZ,Y,R)(A):R(A);if(!G.interrupt||A===I.digit1)return Q.enter(P.listItemPrefix),Q.enter(P.listItemValue),F(A)}return Y(A)}function F(A){if(v(G.containerState,"expected state"),jJ(A)&&++B<N0.listItemValueSizeMax)return Q.consume(A),F;if((!G.interrupt||B<2)&&(G.containerState.marker?A===G.containerState.marker:A===I.rightParenthesis||A===I.dot))return Q.exit(P.listItemValue),R(A);return Y(A)}function R(A){return v(G.containerState,"expected state"),v(A!==I.eof,"eof (`null`) is not a marker"),Q.enter(P.listItemMarker),Q.consume(A),Q.exit(P.listItemMarker),G.containerState.marker=G.containerState.marker||A,Q.check(i9,G.interrupt?Y:N,Q.attempt(Qf,O,L))}function N(A){return v(G.containerState,"expected state"),G.containerState.initialBlankLine=!0,H++,O(A)}function L(A){if(o0(A))return Q.enter(P.listItemPrefixWhitespace),Q.consume(A),Q.exit(P.listItemPrefixWhitespace),O;return Y(A)}function O(A){return v(G.containerState,"expected state"),G.containerState.size=H+G.sliceSerialize(Q.exit(P.listItemPrefix),!0).length,$(A)}}function Yf(Q,$,Y){let G=this;return v(G.containerState,"expected state"),G.containerState._closeFlow=void 0,Q.check(i9,K,H);function K(z){return v(G.containerState,"expected state"),v(typeof G.containerState.size==="number","expected size"),G.containerState.furtherBlankLines=G.containerState.furtherBlankLines||G.containerState.initialBlankLine,t0(Q,$,P.listItemIndent,G.containerState.size+1)(z)}function H(z){if(v(G.containerState,"expected state"),G.containerState.furtherBlankLines||!o0(z))return G.containerState.furtherBlankLines=void 0,G.containerState.initialBlankLine=void 0,B(z);return G.containerState.furtherBlankLines=void 0,G.containerState.initialBlankLine=void 0,Q.attempt(Jf,$,B)(z)}function B(z){return v(G.containerState,"expected state"),G.containerState._closeFlow=!0,G.interrupt=void 0,v(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),t0(Q,Q.attempt(T4,$,Y),P.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:N0.tabSize)(z)}}function qf(Q,$,Y){let G=this;return v(G.containerState,"expected state"),v(typeof G.containerState.size==="number","expected size"),t0(Q,K,P.listItemIndent,G.containerState.size+1);function K(H){v(G.containerState,"expected state");let B=G.events[G.events.length-1];return B&&B[1].type===P.listItemIndent&&B[2].sliceSerialize(B[1],!0).length===G.containerState.size?$(H):Y(H)}}function Gf(Q){v(this.containerState,"expected state"),v(typeof this.containerState.type==="string","expected type"),Q.exit(this.containerState.type)}function Kf(Q,$,Y){let G=this;return v(G.parser.constructs.disable.null,"expected `disable.null` to be populated"),t0(Q,K,P.listItemPrefixWhitespace,G.parser.constructs.disable.null.includes("codeIndented")?void 0:N0.tabSize+1);function K(H){let B=G.events[G.events.length-1];return!o0(H)&&B&&B[1].type===P.listItemPrefixWhitespace?$(H):Y(H)}}var OG={name:"setextUnderline",resolveTo:Wf,tokenize:Hf};function Wf(Q,$){let Y=Q.length,G,K,H;while(Y--)if(Q[Y][0]==="enter"){if(Q[Y][1].type===P.content){G=Y;break}if(Q[Y][1].type===P.paragraph)K=Y}else{if(Q[Y][1].type===P.content)Q.splice(Y,1);if(!H&&Q[Y][1].type===P.definition)H=Y}v(K!==void 0,"expected a `text` index to be found"),v(G!==void 0,"expected a `text` index to be found"),v(Q[G][2]===$,"enter context should be same"),v(Q[Q.length-1][2]===$,"enter context should be same");let B={type:P.setextHeading,start:{...Q[G][1].start},end:{...Q[Q.length-1][1].end}};if(Q[K][1].type=P.setextHeadingText,H)Q.splice(K,0,["enter",B,$]),Q.splice(H+1,0,["exit",Q[G][1],$]),Q[G][1].end={...Q[H][1].end};else Q[G][1]=B;return Q.push(["exit",B,$]),Q}function Hf(Q,$,Y){let G=this,K;return H;function H(R){let N=G.events.length,L;v(R===I.dash||R===I.equalsTo,"expected `=` or `-`");while(N--)if(G.events[N][1].type!==P.lineEnding&&G.events[N][1].type!==P.linePrefix&&G.events[N][1].type!==P.content){L=G.events[N][1].type===P.paragraph;break}if(!G.parser.lazy[G.now().line]&&(G.interrupt||L))return Q.enter(P.setextHeadingLine),K=R,B(R);return Y(R)}function B(R){return Q.enter(P.setextHeadingLineSequence),z(R)}function z(R){if(R===K)return Q.consume(R),z;return Q.exit(P.setextHeadingLineSequence),o0(R)?t0(Q,F,P.lineSuffix)(R):F(R)}function F(R){if(R===I.eof||w0(R))return Q.exit(P.setextHeadingLine),$(R);return Y(R)}}var $C={tokenize:Bf};function Bf(Q){let $=this,Y=Q.attempt(i9,G,Q.attempt(this.parser.constructs.flowInitial,K,t0(Q,Q.attempt(this.parser.constructs.flow,K,Q.attempt(vz,K)),P.linePrefix)));return Y;function G(H){if(v(H===I.eof||w0(H),"expected eol or eof"),H===I.eof){Q.consume(H);return}return Q.enter(P.lineEndingBlank),Q.consume(H),Q.exit(P.lineEndingBlank),$.currentConstruct=void 0,Y}function K(H){if(v(H===I.eof||w0(H),"expected eol or eof"),H===I.eof){Q.consume(H);return}return Q.enter(P.lineEnding),Q.consume(H),Q.exit(P.lineEnding),$.currentConstruct=void 0,Y}}var YC={resolveAll:WC()},qC=KC("string"),GC=KC("text");function KC(Q){return{resolveAll:WC(Q==="text"?Uf:void 0),tokenize:$};function $(Y){let G=this,K=this.parser.constructs[Q],H=Y.attempt(K,B,z);return B;function B(N){return R(N)?H(N):z(N)}function z(N){if(N===I.eof){Y.consume(N);return}return Y.enter(P.data),Y.consume(N),F}function F(N){if(R(N))return Y.exit(P.data),H(N);return Y.consume(N),F}function R(N){if(N===I.eof)return!0;let L=K[N],O=-1;if(L){v(Array.isArray(L),"expected `disable.null` to be populated");while(++O<L.length){let A=L[O];if(!A.previous||A.previous.call(G,G.previous))return!0}}return!1}}}function WC(Q){return $;function $(Y,G){let K=-1,H;while(++K<=Y.length)if(H===void 0){if(Y[K]&&Y[K][1].type===P.data)H=K,K++}else if(!Y[K]||Y[K][1].type!==P.data){if(K!==H+2)Y[H][1].end=Y[K-1][1].end,Y.splice(H+2,K-H-2),K=H+2;H=void 0}return Q?Q(Y,G):Y}}function Uf(Q,$){let Y=0;while(++Y<=Q.length)if((Y===Q.length||Q[Y][1].type===P.lineEnding)&&Q[Y-1][1].type===P.data){let G=Q[Y-1][1],K=$.sliceStream(G),H=K.length,B=-1,z=0,F;while(H--){let R=K[H];if(typeof R==="string"){B=R.length;while(R.charCodeAt(B-1)===I.space)z++,B--;if(B)break;B=-1}else if(R===I.horizontalTab)F=!0,z++;else if(R===I.virtualSpace);else{H++;break}}if($._contentTypeTextTrailing&&Y===Q.length)z=0;if(z){let R={type:Y===Q.length||F||z<N0.hardBreakPrefixSizeMin?P.lineSuffix:P.hardBreakTrailing,start:{_bufferIndex:H?B:G.start._bufferIndex+B,_index:G.start._index+H,line:G.end.line,column:G.end.column-z,offset:G.end.offset-z},end:{...G.end}};if(G.end={...R.start},G.start.offset===G.end.offset)Object.assign(G,R);else Q.splice(Y,0,["enter",R,$],["exit",R,$]),Y+=2}Y++}return Q}var iz={};mA(iz,{text:()=>Rf,string:()=>Nf,insideSpan:()=>_f,flowInitial:()=>Lf,flow:()=>Mf,document:()=>zf,disable:()=>Af,contentInitial:()=>Ff,attentionMarkers:()=>Of});var zf={[I.asterisk]:T4,[I.plusSign]:T4,[I.dash]:T4,[I.digit0]:T4,[I.digit1]:T4,[I.digit2]:T4,[I.digit3]:T4,[I.digit4]:T4,[I.digit5]:T4,[I.digit6]:T4,[I.digit7]:T4,[I.digit8]:T4,[I.digit9]:T4,[I.greaterThan]:UG},Ff={[I.leftSquareBracket]:xz},Lf={[I.horizontalTab]:SJ,[I.virtualSpace]:SJ,[I.space]:SJ},Mf={[I.numberSign]:mz,[I.asterisk]:XZ,[I.dash]:[OG,XZ],[I.lessThan]:fz,[I.equalsTo]:OG,[I.underscore]:XZ,[I.graveAccent]:LG,[I.tilde]:LG},Nf={[I.ampersand]:FG,[I.backslash]:zG},Rf={[I.carriageReturn]:bJ,[I.lineFeed]:bJ,[I.carriageReturnLineFeed]:bJ,[I.exclamationMark]:lz,[I.ampersand]:FG,[I.asterisk]:DJ,[I.lessThan]:[yz,pz],[I.leftSquareBracket]:dz,[I.backslash]:[kz,zG],[I.rightSquareBracket]:ZZ,[I.underscore]:DJ,[I.graveAccent]:gz},_f={null:[DJ,YC]},Of={null:[I.asterisk,I.underscore]},Af={null:[]};var MC=J0(LC(),1);var JZ=MC.default("micromark");function NC(Q,$,Y){let G={_bufferIndex:-1,_index:0,line:Y&&Y.line||1,column:Y&&Y.column||1,offset:Y&&Y.offset||0},K={},H=[],B=[],z=[],F=!0,R={attempt:Z0(c),check:Z0(h),consume:a,enter:s,exit:g,interrupt:Z0(h,{interrupt:!0})},N={code:I.eof,containerState:{},defineSkip:y,events:[],now:b,parser:Q,previous:I.eof,sliceSerialize:C,sliceStream:D,write:A},L=$.tokenize.call(N,R),O;if($.resolveAll)H.push($);return N;function A(n){if(B=k4(B,n),k(),B[B.length-1]!==I.eof)return[];return E($,0),N.events=g7(H,N.events,N),N.events}function C(n,z0){return pf(D(n),z0)}function D(n){return ff(B,n)}function b(){let{_bufferIndex:n,_index:z0,line:o,column:H0,offset:G0}=G;return{_bufferIndex:n,_index:z0,line:o,column:H0,offset:G0}}function y(n){K[n.line]=n.column,t(),JZ("position: define skip: `%j`",G)}function k(){let n;while(G._index<B.length){let z0=B[G._index];if(typeof z0==="string"){if(n=G._index,G._bufferIndex<0)G._bufferIndex=0;while(G._index===n&&G._bufferIndex<z0.length)f(z0.charCodeAt(G._bufferIndex))}else f(z0)}}function f(n){v(F===!0,"expected character to be consumed"),F=void 0,JZ("main: passing `%s` to %s",n,L&&L.name),O=n,v(typeof L==="function","expected state"),L=L(n)}function a(n){if(v(n===O,"expected given code to equal expected code"),JZ("consume: `%s`",n),v(F===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),v(n===null?N.events.length===0||N.events[N.events.length-1][0]==="exit":N.events[N.events.length-1][0]==="enter","expected last token to be open"),w0(n))G.line++,G.column=1,G.offset+=n===I.carriageReturnLineFeed?2:1,t(),JZ("position: after eol: `%j`",G);else if(n!==I.virtualSpace)G.column++,G.offset++;if(G._bufferIndex<0)G._index++;else if(G._bufferIndex++,G._bufferIndex===B[G._index].length)G._bufferIndex=-1,G._index++;N.previous=n,F=!0}function s(n,z0){let o=z0||{};return o.type=n,o.start=b(),v(typeof n==="string","expected string type"),v(n.length>0,"expected non-empty string"),JZ("enter: `%s`",n),N.events.push(["enter",o,N]),z.push(o),o}function g(n){v(typeof n==="string","expected string type"),v(n.length>0,"expected non-empty string");let z0=z.pop();return v(z0,"cannot close w/o open tokens"),z0.end=b(),v(n===z0.type,"expected exit token to match current token"),v(!(z0.start._index===z0.end._index&&z0.start._bufferIndex===z0.end._bufferIndex),"expected non-empty token (`"+n+"`)"),JZ("exit: `%s`",z0.type),N.events.push(["exit",z0,N]),z0}function c(n,z0){E(n,z0.from)}function h(n,z0){z0.restore()}function Z0(n,z0){return o;function o(H0,G0,e){let U0,T,B0,r;return Array.isArray(H0)?L0(H0):("tokenize"in H0)?L0([H0]):S(H0);function S(u0){return $1;function $1(v1){let R0=v1!==null&&u0[v1],h0=v1!==null&&u0.null,Y1=[...Array.isArray(R0)?R0:R0?[R0]:[],...Array.isArray(h0)?h0:h0?[h0]:[]];return L0(Y1)(v1)}}function L0(u0){if(U0=u0,T=0,u0.length===0)return v(e,"expected `bogusState` to be given"),e;return A0(u0[T])}function A0(u0){return $1;function $1(v1){if(r=_0(),B0=u0,!u0.partial)N.currentConstruct=u0;if(v(N.parser.constructs.disable.null,"expected `disable.null` to be populated"),u0.name&&N.parser.constructs.disable.null.includes(u0.name))return C0(v1);return u0.tokenize.call(z0?Object.assign(Object.create(N),z0):N,R,V0,C0)(v1)}}function V0(u0){return v(u0===O,"expected code"),F=!0,n(B0,r),G0}function C0(u0){if(v(u0===O,"expected code"),F=!0,r.restore(),++T<U0.length)return A0(U0[T]);return e}}}function E(n,z0){if(n.resolveAll&&!H.includes(n))H.push(n);if(n.resolve)C5(N.events,z0,N.events.length-z0,n.resolve(N.events.slice(z0),N));if(n.resolveTo)N.events=n.resolveTo(N.events,N);v(n.partial||N.events.length===0||N.events[N.events.length-1][0]==="exit","expected last token to end")}function _0(){let n=b(),z0=N.previous,o=N.currentConstruct,H0=N.events.length,G0=Array.from(z);return{from:H0,restore:e};function e(){G=n,N.previous=z0,N.currentConstruct=o,N.events.length=H0,z=G0,t(),JZ("position: restore: `%j`",G)}}function t(){if(G.line in K&&G.column<2)G.column=K[G.line],G.offset+=K[G.line]-1}}function ff(Q,$){let Y=$.start._index,G=$.start._bufferIndex,K=$.end._index,H=$.end._bufferIndex,B;if(Y===K)v(H>-1,"expected non-negative end buffer index"),v(G>-1,"expected non-negative start buffer index"),B=[Q[Y].slice(G,H)];else{if(B=Q.slice(Y,K),G>-1){let z=B[0];if(typeof z==="string")B[0]=z.slice(G);else v(G===0,"expected `startBufferIndex` to be `0`"),B.shift()}if(H>0)B.push(Q[K].slice(0,H))}return B}function pf(Q,$){let Y=-1,G=[],K;while(++Y<Q.length){let H=Q[Y],B;if(typeof H==="string")B=H;else switch(H){case I.carriageReturn:{B=x4.cr;break}case I.lineFeed:{B=x4.lf;break}case I.carriageReturnLineFeed:{B=x4.cr+x4.lf;break}case I.horizontalTab:{B=$?x4.space:x4.ht;break}case I.virtualSpace:{if(!$&&K)continue;B=x4.space;break}default:v(typeof H==="number","expected number"),B=String.fromCharCode(H)}K=H===I.horizontalTab,G.push(B)}return G.join("")}function cz(Q){let G={constructs:HG([iz,...(Q||{}).extensions||[]]),content:K(ow),defined:[],document:K(ew),flow:K($C),lazy:{},string:K(qC),text:K(GC)};return G;function K(H){return B;function B(z){return NC(G,H,z)}}}function rz(Q){while(!MG(Q));return Q}var RC=/[\0\t\n\r]/g;function az(){let Q=1,$="",Y=!0,G;return K;function K(H,B,z){let F=[],R,N,L,O,A;if(H=$+(typeof H==="string"?H.toString():new TextDecoder(B||void 0).decode(H)),L=0,$="",Y){if(H.charCodeAt(0)===I.byteOrderMarker)L++;Y=void 0}while(L<H.length){if(RC.lastIndex=L,R=RC.exec(H),O=R&&R.index!==void 0?R.index:H.length,A=H.charCodeAt(O),!R){$=H.slice(L);break}if(A===I.lf&&L===O&&G)F.push(I.carriageReturnLineFeed),G=void 0;else{if(G)F.push(I.carriageReturn),G=void 0;if(L<O)F.push(H.slice(L,O)),Q+=O-L;switch(A){case I.nul:{F.push(I.replacementCharacter),Q++;break}case I.ht:{N=Math.ceil(Q/N0.tabSize)*N0.tabSize,F.push(I.horizontalTab);while(Q++<N)F.push(I.virtualSpace);break}case I.lf:{F.push(I.lineFeed),Q=1;break}default:G=!0,Q=1}}L=O+1}if(z){if(G)F.push(I.carriageReturn);if($)F.push($);F.push(I.eof)}return F}}var lf=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _C(Q){return Q.replace(lf,df)}function df(Q,$,Y){if($)return $;if(Y.charCodeAt(0)===I.numberSign){let K=Y.charCodeAt(1),H=K===I.lowercaseX||K===I.uppercaseX;return BG(Y.slice(H?2:1),H?N0.numericBaseHexadecimal:N0.numericBaseDecimal)}return lX(Y)||Q}var AC={}.hasOwnProperty;function nz(Q,$,Y){if(typeof $!=="string")Y=$,$=void 0;return cf(Y)(rz(cz(Y).document().write(az()(Q,$,!0))))}function cf(Q){let $={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:H(D1),autolinkProtocol:Z0,autolinkEmail:Z0,atxHeading:H(e0),blockQuote:H(v1),characterEscape:Z0,characterReference:Z0,codeFenced:H(R0),codeFencedFenceInfo:B,codeFencedFenceMeta:B,codeIndented:H(R0,B),codeText:H(h0,B),codeTextData:Z0,data:Z0,codeFlowValue:Z0,definition:H(Y1),definitionDestinationString:B,definitionLabelString:B,definitionTitleString:B,emphasis:H(H1),hardBreakEscape:H(s0),hardBreakTrailing:H(s0),htmlFlow:H(h1,B),htmlFlowData:Z0,htmlText:H(h1,B),htmlTextData:Z0,image:H(c0),label:B,link:H(D1),listItem:H(F4),listItemValue:O,listOrdered:H(X1,L),listUnordered:H(X1),paragraph:H(a5),reference:S,referenceString:B,resourceDestinationString:B,resourceTitleString:B,setextHeading:H(e0),strong:H(V5),thematicBreak:H(L4)},exit:{atxHeading:F(),atxHeadingSequence:s,autolink:F(),autolinkEmail:$1,autolinkProtocol:u0,blockQuote:F(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:A0,characterReferenceMarkerNumeric:A0,characterReferenceValue:V0,characterReference:C0,codeFenced:F(b),codeFencedFence:D,codeFencedFenceInfo:A,codeFencedFenceMeta:C,codeFlowValue:E,codeIndented:F(y),codeText:F(o),codeTextData:E,data:E,definition:F(),definitionDestinationString:a,definitionLabelString:k,definitionTitleString:f,emphasis:F(),hardBreakEscape:F(t),hardBreakTrailing:F(t),htmlFlow:F(n),htmlFlowData:E,htmlText:F(z0),htmlTextData:E,image:F(G0),label:U0,labelText:e,lineEnding:_0,link:F(H0),listItem:F(),listOrdered:F(),listUnordered:F(),paragraph:F(),referenceString:L0,resourceDestinationString:T,resourceTitleString:B0,resource:r,setextHeading:F(h),setextHeadingLineSequence:c,setextHeadingText:g,strong:F(),thematicBreak:F()}};IC($,(Q||{}).mdastExtensions||[]);let Y={};return G;function G(K0){let W0={type:"root",children:[]},b0={stack:[W0],tokenStack:[],config:$,enter:z,exit:R,buffer:B,resume:N,data:Y},B1=[],I1=-1;while(++I1<K0.length)if(K0[I1][1].type===P.listOrdered||K0[I1][1].type===P.listUnordered)if(K0[I1][0]==="enter")B1.push(I1);else{let B5=B1.pop();v(typeof B5==="number","expected list ot be open"),I1=K(K0,B5,I1)}I1=-1;while(++I1<K0.length){let B5=$[K0[I1][0]];if(AC.call(B5,K0[I1][1].type))B5[K0[I1][1].type].call(Object.assign({sliceSerialize:K0[I1][2].sliceSerialize},b0),K0[I1][1])}if(b0.tokenStack.length>0){let B5=b0.tokenStack[b0.tokenStack.length-1];(B5[1]||OC).call(b0,void 0,B5[0])}W0.position={start:h7(K0.length>0?K0[0][1].start:{line:1,column:1,offset:0}),end:h7(K0.length>0?K0[K0.length-2][1].end:{line:1,column:1,offset:0})},I1=-1;while(++I1<$.transforms.length)W0=$.transforms[I1](W0)||W0;return W0}function K(K0,W0,b0){let B1=W0-1,I1=-1,B5=!1,X5,n5,R2,c1;while(++B1<=b0){let w=K0[B1];switch(w[1].type){case P.listUnordered:case P.listOrdered:case P.blockQuote:{if(w[0]==="enter")I1++;else I1--;c1=void 0;break}case P.lineEndingBlank:{if(w[0]==="enter"){if(X5&&!c1&&!I1&&!R2)R2=B1;c1=void 0}break}case P.linePrefix:case P.listItemValue:case P.listItemMarker:case P.listItemPrefix:case P.listItemPrefixWhitespace:break;default:c1=void 0}if(!I1&&w[0]==="enter"&&w[1].type===P.listItemPrefix||I1===-1&&w[0]==="exit"&&(w[1].type===P.listUnordered||w[1].type===P.listOrdered)){if(X5){let i=B1;n5=void 0;while(i--){let M0=K0[i];if(M0[1].type===P.lineEnding||M0[1].type===P.lineEndingBlank){if(M0[0]==="exit")continue;if(n5)K0[n5][1].type=P.lineEndingBlank,B5=!0;M0[1].type=P.lineEnding,n5=i}else if(M0[1].type===P.linePrefix||M0[1].type===P.blockQuotePrefix||M0[1].type===P.blockQuotePrefixWhitespace||M0[1].type===P.blockQuoteMarker||M0[1].type===P.listItemIndent);else break}if(R2&&(!n5||R2<n5))X5._spread=!0;X5.end=Object.assign({},n5?K0[n5][1].start:w[1].end),K0.splice(n5||B1,0,["exit",X5,w[2]]),B1++,b0++}if(w[1].type===P.listItemPrefix){let i={type:"listItem",_spread:!1,start:Object.assign({},w[1].start),end:void 0};X5=i,K0.splice(B1,0,["enter",i,w[2]]),B1++,b0++,R2=void 0,c1=!0}}}return K0[W0][1]._spread=B5,b0}function H(K0,W0){return b0;function b0(B1){if(z.call(this,K0(B1),B1),W0)W0.call(this,B1)}}function B(){this.stack.push({type:"fragment",children:[]})}function z(K0,W0,b0){let B1=this.stack[this.stack.length-1];v(B1,"expected `parent`"),v("children"in B1,"expected `parent`"),B1.children.push(K0),this.stack.push(K0),this.tokenStack.push([W0,b0||void 0]),K0.position={start:h7(W0.start),end:void 0}}function F(K0){return W0;function W0(b0){if(K0)K0.call(this,b0);R.call(this,b0)}}function R(K0,W0){let b0=this.stack.pop();v(b0,"expected `node`");let B1=this.tokenStack.pop();if(!B1)throw Error("Cannot close `"+K0.type+"` ("+b7({start:K0.start,end:K0.end})+"): it’s not open");else if(B1[0].type!==K0.type)if(W0)W0.call(this,K0,B1[0]);else(B1[1]||OC).call(this,K0,B1[0]);v(b0.type!=="fragment","unexpected fragment `exit`ed"),v(b0.position,"expected `position` to be defined"),b0.position.end=h7(K0.end)}function N(){return s8(this.stack.pop())}function L(){this.data.expectingFirstListItemValue=!0}function O(K0){if(this.data.expectingFirstListItemValue){let W0=this.stack[this.stack.length-2];v(W0,"expected nodes on stack"),v(W0.type==="list","expected list on stack"),W0.start=Number.parseInt(this.sliceSerialize(K0),N0.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function A(){let K0=this.resume(),W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v(W0.type==="code","expected code on stack"),W0.lang=K0}function C(){let K0=this.resume(),W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v(W0.type==="code","expected code on stack"),W0.meta=K0}function D(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function b(){let K0=this.resume(),W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v(W0.type==="code","expected code on stack"),W0.value=K0.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){let K0=this.resume(),W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v(W0.type==="code","expected code on stack"),W0.value=K0.replace(/(\r?\n|\r)$/g,"")}function k(K0){let W0=this.resume(),b0=this.stack[this.stack.length-1];v(b0,"expected node on stack"),v(b0.type==="definition","expected definition on stack"),b0.label=W0,b0.identifier=I4(this.sliceSerialize(K0)).toLowerCase()}function f(){let K0=this.resume(),W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v(W0.type==="definition","expected definition on stack"),W0.title=K0}function a(){let K0=this.resume(),W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v(W0.type==="definition","expected definition on stack"),W0.url=K0}function s(K0){let W0=this.stack[this.stack.length-1];if(v(W0,"expected node on stack"),v(W0.type==="heading","expected heading on stack"),!W0.depth){let b0=this.sliceSerialize(K0).length;v(b0===1||b0===2||b0===3||b0===4||b0===5||b0===6,"expected `depth` between `1` and `6`"),W0.depth=b0}}function g(){this.data.setextHeadingSlurpLineEnding=!0}function c(K0){let W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v(W0.type==="heading","expected heading on stack"),W0.depth=this.sliceSerialize(K0).codePointAt(0)===I.equalsTo?1:2}function h(){this.data.setextHeadingSlurpLineEnding=void 0}function Z0(K0){let W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v("children"in W0,"expected parent on stack");let b0=W0.children,B1=b0[b0.length-1];if(!B1||B1.type!=="text")B1=v0(),B1.position={start:h7(K0.start),end:void 0},b0.push(B1);this.stack.push(B1)}function E(K0){let W0=this.stack.pop();v(W0,"expected a `node` to be on the stack"),v("value"in W0,"expected a `literal` to be on the stack"),v(W0.position,"expected `node` to have an open position"),W0.value+=this.sliceSerialize(K0),W0.position.end=h7(K0.end)}function _0(K0){let W0=this.stack[this.stack.length-1];if(v(W0,"expected `node`"),this.data.atHardBreak){v("children"in W0,"expected `parent`");let b0=W0.children[W0.children.length-1];v(b0.position,"expected tail to have a starting position"),b0.position.end=h7(K0.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&$.canContainEols.includes(W0.type))Z0.call(this,K0),E.call(this,K0)}function t(){this.data.atHardBreak=!0}function n(){let K0=this.resume(),W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v(W0.type==="html","expected html on stack"),W0.value=K0}function z0(){let K0=this.resume(),W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v(W0.type==="html","expected html on stack"),W0.value=K0}function o(){let K0=this.resume(),W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v(W0.type==="inlineCode","expected inline code on stack"),W0.value=K0}function H0(){let K0=this.stack[this.stack.length-1];if(v(K0,"expected node on stack"),v(K0.type==="link","expected link on stack"),this.data.inReference){let W0=this.data.referenceType||"shortcut";K0.type+="Reference",K0.referenceType=W0,delete K0.url,delete K0.title}else delete K0.identifier,delete K0.label;this.data.referenceType=void 0}function G0(){let K0=this.stack[this.stack.length-1];if(v(K0,"expected node on stack"),v(K0.type==="image","expected image on stack"),this.data.inReference){let W0=this.data.referenceType||"shortcut";K0.type+="Reference",K0.referenceType=W0,delete K0.url,delete K0.title}else delete K0.identifier,delete K0.label;this.data.referenceType=void 0}function e(K0){let W0=this.sliceSerialize(K0),b0=this.stack[this.stack.length-2];v(b0,"expected ancestor on stack"),v(b0.type==="image"||b0.type==="link","expected image or link on stack"),b0.label=_C(W0),b0.identifier=I4(W0).toLowerCase()}function U0(){let K0=this.stack[this.stack.length-1];v(K0,"expected node on stack"),v(K0.type==="fragment","expected fragment on stack");let W0=this.resume(),b0=this.stack[this.stack.length-1];if(v(b0,"expected node on stack"),v(b0.type==="image"||b0.type==="link","expected image or link on stack"),this.data.inReference=!0,b0.type==="link"){let B1=K0.children;b0.children=B1}else b0.alt=W0}function T(){let K0=this.resume(),W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v(W0.type==="image"||W0.type==="link","expected image or link on stack"),W0.url=K0}function B0(){let K0=this.resume(),W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v(W0.type==="image"||W0.type==="link","expected image or link on stack"),W0.title=K0}function r(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function L0(K0){let W0=this.resume(),b0=this.stack[this.stack.length-1];v(b0,"expected node on stack"),v(b0.type==="image"||b0.type==="link","expected image reference or link reference on stack"),b0.label=W0,b0.identifier=I4(this.sliceSerialize(K0)).toLowerCase(),this.data.referenceType="full"}function A0(K0){v(K0.type==="characterReferenceMarkerNumeric"||K0.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=K0.type}function V0(K0){let W0=this.sliceSerialize(K0),b0=this.data.characterReferenceType,B1;if(b0)B1=BG(W0,b0===P.characterReferenceMarkerNumeric?N0.numericBaseDecimal:N0.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let B5=lX(W0);v(B5!==!1,"expected reference to decode"),B1=B5}let I1=this.stack[this.stack.length-1];v(I1,"expected `node`"),v("value"in I1,"expected `node.value`"),I1.value+=B1}function C0(K0){let W0=this.stack.pop();v(W0,"expected `node`"),v(W0.position,"expected `node.position`"),W0.position.end=h7(K0.end)}function u0(K0){E.call(this,K0);let W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v(W0.type==="link","expected link on stack"),W0.url=this.sliceSerialize(K0)}function $1(K0){E.call(this,K0);let W0=this.stack[this.stack.length-1];v(W0,"expected node on stack"),v(W0.type==="link","expected link on stack"),W0.url="mailto:"+this.sliceSerialize(K0)}function v1(){return{type:"blockquote",children:[]}}function R0(){return{type:"code",lang:null,meta:null,value:""}}function h0(){return{type:"inlineCode",value:""}}function Y1(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function H1(){return{type:"emphasis",children:[]}}function e0(){return{type:"heading",depth:0,children:[]}}function s0(){return{type:"break"}}function h1(){return{type:"html",value:""}}function c0(){return{type:"image",title:null,url:"",alt:null}}function D1(){return{type:"link",title:null,url:"",children:[]}}function X1(K0){return{type:"list",ordered:K0.type==="listOrdered",start:null,spread:K0._spread,children:[]}}function F4(K0){return{type:"listItem",spread:K0._spread,checked:null,children:[]}}function a5(){return{type:"paragraph",children:[]}}function V5(){return{type:"strong",children:[]}}function v0(){return{type:"text",value:""}}function L4(){return{type:"thematicBreak"}}}function h7(Q){return{line:Q.line,column:Q.column,offset:Q.offset}}function IC(Q,$){let Y=-1;while(++Y<$.length){let G=$[Y];if(Array.isArray(G))IC(Q,G);else rf(Q,G)}}function rf(Q,$){let Y;for(Y in $)if(AC.call($,Y))switch(Y){case"canContainEols":{let G=$[Y];if(G)Q[Y].push(...G);break}case"transforms":{let G=$[Y];if(G)Q[Y].push(...G);break}case"enter":case"exit":{let G=$[Y];if(G)Object.assign(Q[Y],G);break}}}function OC(Q,$){if(Q)throw Error("Cannot close `"+Q.type+"` ("+b7({start:Q.start,end:Q.end})+"): a different token (`"+$.type+"`, "+b7({start:$.start,end:$.end})+") is open");else throw Error("Cannot close document, a token (`"+$.type+"`, "+b7({start:$.start,end:$.end})+") is still open")}function TG(Q){let $=this;$.parser=Y;function Y(G){return nz(G,{...$.data("settings"),...Q,extensions:$.data("micromarkExtensions")||[],mdastExtensions:$.data("fromMarkdownExtensions")||[]})}}function TC(Q,$){let Y={type:"element",tagName:"blockquote",properties:{},children:Q.wrap(Q.all($),!0)};return Q.patch($,Y),Q.applyData($,Y)}function VC(Q,$){let Y={type:"element",tagName:"br",properties:{},children:[]};return Q.patch($,Y),[Q.applyData($,Y),{type:"text",value:`
|
|
426
|
+
`}]}function PC(Q,$){let Y=$.value?$.value+`
|
|
427
|
+
`:"",G={},K=$.lang?$.lang.split(/\s+/):[];if(K.length>0)G.className=["language-"+K[0]];let H={type:"element",tagName:"code",properties:G,children:[{type:"text",value:Y}]};if($.meta)H.data={meta:$.meta};return Q.patch($,H),H=Q.applyData($,H),H={type:"element",tagName:"pre",properties:{},children:[H]},Q.patch($,H),H}function wC(Q,$){let Y={type:"element",tagName:"del",properties:{},children:Q.all($)};return Q.patch($,Y),Q.applyData($,Y)}function CC(Q,$){let Y={type:"element",tagName:"em",properties:{},children:Q.all($)};return Q.patch($,Y),Q.applyData($,Y)}function jC(Q,$){let Y=typeof Q.options.clobberPrefix==="string"?Q.options.clobberPrefix:"user-content-",G=String($.identifier).toUpperCase(),K=l2(G.toLowerCase()),H=Q.footnoteOrder.indexOf(G),B,z=Q.footnoteCounts.get(G);if(z===void 0)z=0,Q.footnoteOrder.push(G),B=Q.footnoteOrder.length;else B=H+1;z+=1,Q.footnoteCounts.set(G,z);let F={type:"element",tagName:"a",properties:{href:"#"+Y+"fn-"+K,id:Y+"fnref-"+K+(z>1?"-"+z:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(B)}]};Q.patch($,F);let R={type:"element",tagName:"sup",properties:{},children:[F]};return Q.patch($,R),Q.applyData($,R)}function DC(Q,$){let Y={type:"element",tagName:"h"+$.depth,properties:{},children:Q.all($)};return Q.patch($,Y),Q.applyData($,Y)}function SC(Q,$){if(Q.options.allowDangerousHtml){let Y={type:"raw",value:$.value};return Q.patch($,Y),Q.applyData($,Y)}return}function VG(Q,$){let Y=$.referenceType,G="]";if(Y==="collapsed")G+="[]";else if(Y==="full")G+="["+($.label||$.identifier)+"]";if($.type==="imageReference")return[{type:"text",value:"!["+$.alt+G}];let K=Q.all($),H=K[0];if(H&&H.type==="text")H.value="["+H.value;else K.unshift({type:"text",value:"["});let B=K[K.length-1];if(B&&B.type==="text")B.value+=G;else K.push({type:"text",value:G});return K}function EC(Q,$){let Y=String($.identifier).toUpperCase(),G=Q.definitionById.get(Y);if(!G)return VG(Q,$);let K={src:l2(G.url||""),alt:$.alt};if(G.title!==null&&G.title!==void 0)K.title=G.title;let H={type:"element",tagName:"img",properties:K,children:[]};return Q.patch($,H),Q.applyData($,H)}function bC(Q,$){let Y={src:l2($.url)};if($.alt!==null&&$.alt!==void 0)Y.alt=$.alt;if($.title!==null&&$.title!==void 0)Y.title=$.title;let G={type:"element",tagName:"img",properties:Y,children:[]};return Q.patch($,G),Q.applyData($,G)}function yC(Q,$){let Y={type:"text",value:$.value.replace(/\r?\n|\r/g," ")};Q.patch($,Y);let G={type:"element",tagName:"code",properties:{},children:[Y]};return Q.patch($,G),Q.applyData($,G)}function gC(Q,$){let Y=String($.identifier).toUpperCase(),G=Q.definitionById.get(Y);if(!G)return VG(Q,$);let K={href:l2(G.url||"")};if(G.title!==null&&G.title!==void 0)K.title=G.title;let H={type:"element",tagName:"a",properties:K,children:Q.all($)};return Q.patch($,H),Q.applyData($,H)}function hC(Q,$){let Y={href:l2($.url)};if($.title!==null&&$.title!==void 0)Y.title=$.title;let G={type:"element",tagName:"a",properties:Y,children:Q.all($)};return Q.patch($,G),Q.applyData($,G)}function vC(Q,$,Y){let G=Q.all($),K=Y?af(Y):xC($),H={},B=[];if(typeof $.checked==="boolean"){let N=G[0],L;if(N&&N.type==="element"&&N.tagName==="p")L=N;else L={type:"element",tagName:"p",properties:{},children:[]},G.unshift(L);if(L.children.length>0)L.children.unshift({type:"text",value:" "});L.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:$.checked,disabled:!0},children:[]}),H.className=["task-list-item"]}let z=-1;while(++z<G.length){let N=G[z];if(K||z!==0||N.type!=="element"||N.tagName!=="p")B.push({type:"text",value:`
|
|
428
|
+
`});if(N.type==="element"&&N.tagName==="p"&&!K)B.push(...N.children);else B.push(N)}let F=G[G.length-1];if(F&&(K||F.type!=="element"||F.tagName!=="p"))B.push({type:"text",value:`
|
|
429
|
+
`});let R={type:"element",tagName:"li",properties:H,children:B};return Q.patch($,R),Q.applyData($,R)}function af(Q){let $=!1;if(Q.type==="list"){$=Q.spread||!1;let Y=Q.children,G=-1;while(!$&&++G<Y.length)$=xC(Y[G])}return $}function xC(Q){let $=Q.spread;return $===null||$===void 0?Q.children.length>1:$}function kC(Q,$){let Y={},G=Q.all($),K=-1;if(typeof $.start==="number"&&$.start!==1)Y.start=$.start;while(++K<G.length){let B=G[K];if(B.type==="element"&&B.tagName==="li"&&B.properties&&Array.isArray(B.properties.className)&&B.properties.className.includes("task-list-item")){Y.className=["contains-task-list"];break}}let H={type:"element",tagName:$.ordered?"ol":"ul",properties:Y,children:Q.wrap(G,!0)};return Q.patch($,H),Q.applyData($,H)}function mC(Q,$){let Y={type:"element",tagName:"p",properties:{},children:Q.all($)};return Q.patch($,Y),Q.applyData($,Y)}function uC(Q,$){let Y={type:"root",children:Q.wrap(Q.all($))};return Q.patch($,Y),Q.applyData($,Y)}function fC(Q,$){let Y={type:"element",tagName:"strong",properties:{},children:Q.all($)};return Q.patch($,Y),Q.applyData($,Y)}function pC(Q,$){let Y=Q.all($),G=Y.shift(),K=[];if(G){let B={type:"element",tagName:"thead",properties:{},children:Q.wrap([G],!0)};Q.patch($.children[0],B),K.push(B)}if(Y.length>0){let B={type:"element",tagName:"tbody",properties:{},children:Q.wrap(Y,!0)},z=pX($.children[1]),F=WG($.children[$.children.length-1]);if(z&&F)B.position={start:z,end:F};K.push(B)}let H={type:"element",tagName:"table",properties:{},children:Q.wrap(K,!0)};return Q.patch($,H),Q.applyData($,H)}function lC(Q,$,Y){let G=Y?Y.children:void 0,H=(G?G.indexOf($):1)===0?"th":"td",B=Y&&Y.type==="table"?Y.align:void 0,z=B?B.length:$.children.length,F=-1,R=[];while(++F<z){let L=$.children[F],O={},A=B?B[F]:void 0;if(A)O.align=A;let C={type:"element",tagName:H,properties:O,children:[]};if(L)C.children=Q.all(L),Q.patch(L,C),C=Q.applyData(L,C);R.push(C)}let N={type:"element",tagName:"tr",properties:{},children:Q.wrap(R,!0)};return Q.patch($,N),Q.applyData($,N)}function dC(Q,$){let Y={type:"element",tagName:"td",properties:{},children:Q.all($)};return Q.patch($,Y),Q.applyData($,Y)}function cC(Q){let $=String(Q),Y=/\r?\n|\r/g,G=Y.exec($),K=0,H=[];while(G)H.push(iC($.slice(K,G.index),K>0,!0),G[0]),K=G.index+G[0].length,G=Y.exec($);return H.push(iC($.slice(K),K>0,!1)),H.join("")}function iC(Q,$,Y){let G=0,K=Q.length;if($){let H=Q.codePointAt(G);while(H===9||H===32)G++,H=Q.codePointAt(G)}if(Y){let H=Q.codePointAt(K-1);while(H===9||H===32)K--,H=Q.codePointAt(K-1)}return K>G?Q.slice(G,K):""}function rC(Q,$){let Y={type:"text",value:cC(String($.value))};return Q.patch($,Y),Q.applyData($,Y)}function aC(Q,$){let Y={type:"element",tagName:"hr",properties:{},children:[]};return Q.patch($,Y),Q.applyData($,Y)}var nC={blockquote:TC,break:VC,code:PC,delete:wC,emphasis:CC,footnoteReference:jC,heading:DC,html:SC,imageReference:EC,image:bC,inlineCode:yC,linkReference:gC,link:hC,listItem:vC,list:kC,paragraph:mC,root:uC,strong:fC,table:pC,tableCell:dC,tableRow:lC,text:rC,thematicBreak:aC,toml:PG,yaml:PG,definition:PG,footnoteDefinition:PG};function PG(){return}var wG=-1,rX=0,$Z=1,aX=2,gJ=3,hJ=4,vJ=5,xJ=6,CG=7,jG=8;var sC=typeof self==="object"?self:globalThis,nf=(Q,$)=>{let Y=(K,H)=>{return Q.set(H,K),K},G=(K)=>{if(Q.has(K))return Q.get(K);let[H,B]=$[K];switch(H){case rX:case wG:return Y(B,K);case $Z:{let z=Y([],K);for(let F of B)z.push(G(F));return z}case aX:{let z=Y({},K);for(let[F,R]of B)z[G(F)]=G(R);return z}case gJ:return Y(new Date(B),K);case hJ:{let{source:z,flags:F}=B;return Y(new RegExp(z,F),K)}case vJ:{let z=Y(new Map,K);for(let[F,R]of B)z.set(G(F),G(R));return z}case xJ:{let z=Y(new Set,K);for(let F of B)z.add(G(F));return z}case CG:{let{name:z,message:F}=B;return Y(new sC[z](F),K)}case jG:return Y(BigInt(B),K);case"BigInt":return Y(Object(BigInt(B)),K);case"ArrayBuffer":return Y(new Uint8Array(B).buffer,B);case"DataView":{let{buffer:z}=new Uint8Array(B);return Y(new DataView(z),B)}}return Y(new sC[H](B),K)};return G},sz=(Q)=>nf(new Map,Q)(0);var nX="",{toString:sf}={},{keys:of}=Object,kJ=(Q)=>{let $=typeof Q;if($!=="object"||!Q)return[rX,$];let Y=sf.call(Q).slice(8,-1);switch(Y){case"Array":return[$Z,nX];case"Object":return[aX,nX];case"Date":return[gJ,nX];case"RegExp":return[hJ,nX];case"Map":return[vJ,nX];case"Set":return[xJ,nX];case"DataView":return[$Z,Y]}if(Y.includes("Array"))return[$Z,Y];if(Y.includes("Error"))return[CG,Y];return[aX,Y]},DG=([Q,$])=>Q===rX&&($==="function"||$==="symbol"),tf=(Q,$,Y,G)=>{let K=(B,z)=>{let F=G.push(B)-1;return Y.set(z,F),F},H=(B)=>{if(Y.has(B))return Y.get(B);let[z,F]=kJ(B);switch(z){case rX:{let N=B;switch(F){case"bigint":z=jG,N=B.toString();break;case"function":case"symbol":if(Q)throw TypeError("unable to serialize "+F);N=null;break;case"undefined":return K([wG],B)}return K([z,N],B)}case $Z:{if(F){let O=B;if(F==="DataView")O=new Uint8Array(B.buffer);else if(F==="ArrayBuffer")O=new Uint8Array(B);return K([F,[...O]],B)}let N=[],L=K([z,N],B);for(let O of B)N.push(H(O));return L}case aX:{if(F)switch(F){case"BigInt":return K([F,B.toString()],B);case"Boolean":case"Number":case"String":return K([F,B.valueOf()],B)}if($&&"toJSON"in B)return H(B.toJSON());let N=[],L=K([z,N],B);for(let O of of(B))if(Q||!DG(kJ(B[O])))N.push([H(O),H(B[O])]);return L}case gJ:return K([z,B.toISOString()],B);case hJ:{let{source:N,flags:L}=B;return K([z,{source:N,flags:L}],B)}case vJ:{let N=[],L=K([z,N],B);for(let[O,A]of B)if(Q||!(DG(kJ(O))||DG(kJ(A))))N.push([H(O),H(A)]);return L}case xJ:{let N=[],L=K([z,N],B);for(let O of B)if(Q||!DG(kJ(O)))N.push(H(O));return L}}let{message:R}=B;return K([z,{name:F,message:R}],B)};return H},oz=(Q,{json:$,lossy:Y}={})=>{let G=[];return tf(!($||Y),!!$,new Map,G)(Q),G};var sX=typeof structuredClone==="function"?(Q,$)=>$&&(("json"in $)||("lossy"in $))?sz(oz(Q,$)):structuredClone(Q):(Q,$)=>sz(oz(Q,$));function ef(Q,$){let Y=[{type:"text",value:"↩"}];if($>1)Y.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String($)}]});return Y}function Zp(Q,$){return"Back to reference "+(Q+1)+($>1?"-"+$:"")}function oC(Q){let $=typeof Q.options.clobberPrefix==="string"?Q.options.clobberPrefix:"user-content-",Y=Q.options.footnoteBackContent||ef,G=Q.options.footnoteBackLabel||Zp,K=Q.options.footnoteLabel||"Footnotes",H=Q.options.footnoteLabelTagName||"h2",B=Q.options.footnoteLabelProperties||{className:["sr-only"]},z=[],F=-1;while(++F<Q.footnoteOrder.length){let R=Q.footnoteById.get(Q.footnoteOrder[F]);if(!R)continue;let N=Q.all(R),L=String(R.identifier).toUpperCase(),O=l2(L.toLowerCase()),A=0,C=[],D=Q.footnoteCounts.get(L);while(D!==void 0&&++A<=D){if(C.length>0)C.push({type:"text",value:" "});let k=typeof Y==="string"?Y:Y(F,A);if(typeof k==="string")k={type:"text",value:k};C.push({type:"element",tagName:"a",properties:{href:"#"+$+"fnref-"+O+(A>1?"-"+A:""),dataFootnoteBackref:"",ariaLabel:typeof G==="string"?G:G(F,A),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}let b=N[N.length-1];if(b&&b.type==="element"&&b.tagName==="p"){let k=b.children[b.children.length-1];if(k&&k.type==="text")k.value+=" ";else b.children.push({type:"text",value:" "});b.children.push(...C)}else N.push(...C);let y={type:"element",tagName:"li",properties:{id:$+"fn-"+O},children:Q.wrap(N,!0)};Q.patch(R,y),z.push(y)}if(z.length===0)return;return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:H,properties:{...sX(B),id:"footnote-label"},children:[{type:"text",value:K}]},{type:"text",value:`
|
|
430
|
+
`},{type:"element",tagName:"ol",properties:{},children:Q.wrap(z,!0)},{type:"text",value:`
|
|
431
|
+
`}]}}var v7=function(Q){if(Q===null||Q===void 0)return $p;if(typeof Q==="function")return SG(Q);if(typeof Q==="object")return Array.isArray(Q)?Xp(Q):Qp(Q);if(typeof Q==="string")return Jp(Q);throw Error("Expected function, string, or object as test")};function Xp(Q){let $=[],Y=-1;while(++Y<Q.length)$[Y]=v7(Q[Y]);return SG(G);function G(...K){let H=-1;while(++H<$.length)if($[H].apply(this,K))return!0;return!1}}function Qp(Q){let $=Q;return SG(Y);function Y(G){let K=G,H;for(H in Q)if(K[H]!==$[H])return!1;return!0}}function Jp(Q){return SG($);function $(Y){return Y&&Y.type===Q}}function SG(Q){return $;function $(Y,G,K){return Boolean(Yp(Y)&&Q.call(this,Y,typeof G==="number"?G:void 0,K||void 0))}}function $p(){return!0}function Yp(Q){return Q!==null&&typeof Q==="object"&&"type"in Q}function tC(Q){return Q}var eC=[],EG=!0,YZ=!1,bG="skip";function mJ(Q,$,Y,G){let K;if(typeof $==="function"&&typeof Y!=="function")G=Y,Y=$;else K=$;let H=v7(K),B=G?-1:1;z(Q,void 0,[])();function z(F,R,N){let L=F&&typeof F==="object"?F:{};if(typeof L.type==="string"){let A=typeof L.tagName==="string"?L.tagName:typeof L.name==="string"?L.name:void 0;Object.defineProperty(O,"name",{value:"node ("+tC(F.type+(A?"<"+A+">":""))+")"})}return O;function O(){let A=eC,C,D,b;if(!$||H(F,R,N[N.length-1]||void 0)){if(A=qp(Y(F,N)),A[0]===YZ)return A}if("children"in F&&F.children){let y=F;if(y.children&&A[0]!==bG){D=(G?y.children.length:-1)+B,b=N.concat(y);while(D>-1&&D<y.children.length){let k=y.children[D];if(C=z(k,D,b)(),C[0]===YZ)return C;D=typeof C[1]==="number"?C[1]:D+B}}}return A}}}function qp(Q){if(Array.isArray(Q))return Q;if(typeof Q==="number")return[EG,Q];return Q===null||Q===void 0?eC:[Q]}function qZ(Q,$,Y,G){let K,H,B;if(typeof $==="function"&&typeof Y!=="function")H=void 0,B=$,K=Y;else H=$,B=Y,K=G;mJ(Q,H,z,K);function z(F,R){let N=R[R.length-1],L=N?N.children.indexOf(F):void 0;return B(F,L,N)}}var tz={}.hasOwnProperty,Gp={};function Xj(Q,$){let Y=$||Gp,G=new Map,K=new Map,H=new Map,B={...nC,...Y.handlers},z={all:R,applyData:Wp,definitionById:G,footnoteById:K,footnoteCounts:H,footnoteOrder:[],handlers:B,one:F,options:Y,patch:Kp,wrap:Bp};return qZ(Q,function(N){if(N.type==="definition"||N.type==="footnoteDefinition"){let L=N.type==="definition"?G:K,O=String(N.identifier).toUpperCase();if(!L.has(O))L.set(O,N)}}),z;function F(N,L){let O=N.type,A=z.handlers[O];if(tz.call(z.handlers,O)&&A)return A(z,N,L);if(z.options.passThrough&&z.options.passThrough.includes(O)){if("children"in N){let{children:D,...b}=N,y=sX(b);return y.children=z.all(N),y}return sX(N)}return(z.options.unknownHandler||Hp)(z,N,L)}function R(N){let L=[];if("children"in N){let O=N.children,A=-1;while(++A<O.length){let C=z.one(O[A],N);if(C){if(A&&O[A-1].type==="break"){if(!Array.isArray(C)&&C.type==="text")C.value=Zj(C.value);if(!Array.isArray(C)&&C.type==="element"){let D=C.children[0];if(D&&D.type==="text")D.value=Zj(D.value)}}if(Array.isArray(C))L.push(...C);else L.push(C)}}}return L}}function Kp(Q,$){if(Q.position)$.position=Cz(Q)}function Wp(Q,$){let Y=$;if(Q&&Q.data){let G=Q.data.hName,K=Q.data.hChildren,H=Q.data.hProperties;if(typeof G==="string")if(Y.type==="element")Y.tagName=G;else{let B="children"in Y?Y.children:[Y];Y={type:"element",tagName:G,properties:{},children:B}}if(Y.type==="element"&&H)Object.assign(Y.properties,sX(H));if("children"in Y&&Y.children&&K!==null&&K!==void 0)Y.children=K}return Y}function Hp(Q,$){let Y=$.data||{},G="value"in $&&!(tz.call(Y,"hProperties")||tz.call(Y,"hChildren"))?{type:"text",value:$.value}:{type:"element",tagName:"div",properties:{},children:Q.all($)};return Q.patch($,G),Q.applyData($,G)}function Bp(Q,$){let Y=[],G=-1;if($)Y.push({type:"text",value:`
|
|
432
|
+
`});while(++G<Q.length){if(G)Y.push({type:"text",value:`
|
|
433
|
+
`});Y.push(Q[G])}if($&&Q.length>0)Y.push({type:"text",value:`
|
|
434
|
+
`});return Y}function Zj(Q){let $=0,Y=Q.charCodeAt($);while(Y===9||Y===32)$++,Y=Q.charCodeAt($);return Q.slice($)}function yG(Q,$){let Y=Xj(Q,$),G=Y.one(Q,void 0),K=oC(Y),H=Array.isArray(G)?{type:"root",children:G}:G||{type:"root",children:[]};if(K)v("children"in H),H.children.push({type:"text",value:`
|
|
435
|
+
`},K);return H}function gG(Q,$){if(Q&&"run"in Q)return async function(Y,G){let K=yG(Y,{file:G,...$});await Q.run(K,G)};return function(Y,G){return yG(Y,{file:G,...Q||$})}}function ez(Q){if(Q)throw Q}var xG=J0(Hj(),1);function uJ(Q){if(typeof Q!=="object"||Q===null)return!1;let $=Object.getPrototypeOf(Q);return($===null||$===Object.prototype||Object.getPrototypeOf($)===null)&&!(Symbol.toStringTag in Q)&&!(Symbol.iterator in Q)}function ZF(){let Q=[],$={run:Y,use:G};return $;function Y(...K){let H=-1,B=K.pop();if(typeof B!=="function")throw TypeError("Expected function as last argument, not "+B);z(null,...K);function z(F,...R){let N=Q[++H],L=-1;if(F){B(F);return}while(++L<K.length)if(R[L]===null||R[L]===void 0)R[L]=K[L];if(K=R,N)Bj(N,z)(...R);else B(null,...R)}}function G(K){if(typeof K!=="function")throw TypeError("Expected `middelware` to be a function, not "+K);return Q.push(K),$}}function Bj(Q,$){let Y;return G;function G(...B){let z=Q.length>B.length,F;if(z)B.push(K);try{F=Q.apply(this,B)}catch(R){let N=R;if(z&&Y)throw N;return K(N)}if(!z)if(F&&F.then&&typeof F.then==="function")F.then(H,K);else if(F instanceof Error)K(F);else H(F)}function K(B,...z){if(!Y)Y=!0,$(B,...z)}function H(B){K(null,B)}}var H9={basename:Up,dirname:zp,extname:Fp,join:Lp,sep:"/"};function Up(Q,$){if($!==void 0&&typeof $!=="string")throw TypeError('"ext" argument must be a string');fJ(Q);let Y=0,G=-1,K=Q.length,H;if($===void 0||$.length===0||$.length>Q.length){while(K--)if(Q.codePointAt(K)===47){if(H){Y=K+1;break}}else if(G<0)H=!0,G=K+1;return G<0?"":Q.slice(Y,G)}if($===Q)return"";let B=-1,z=$.length-1;while(K--)if(Q.codePointAt(K)===47){if(H){Y=K+1;break}}else{if(B<0)H=!0,B=K+1;if(z>-1)if(Q.codePointAt(K)===$.codePointAt(z--)){if(z<0)G=K}else z=-1,G=B}if(Y===G)G=B;else if(G<0)G=Q.length;return Q.slice(Y,G)}function zp(Q){if(fJ(Q),Q.length===0)return".";let $=-1,Y=Q.length,G;while(--Y)if(Q.codePointAt(Y)===47){if(G){$=Y;break}}else if(!G)G=!0;return $<0?Q.codePointAt(0)===47?"/":".":$===1&&Q.codePointAt(0)===47?"//":Q.slice(0,$)}function Fp(Q){fJ(Q);let $=Q.length,Y=-1,G=0,K=-1,H=0,B;while($--){let z=Q.codePointAt($);if(z===47){if(B){G=$+1;break}continue}if(Y<0)B=!0,Y=$+1;if(z===46){if(K<0)K=$;else if(H!==1)H=1}else if(K>-1)H=-1}if(K<0||Y<0||H===0||H===1&&K===Y-1&&K===G+1)return"";return Q.slice(K,Y)}function Lp(...Q){let $=-1,Y;while(++$<Q.length)if(fJ(Q[$]),Q[$])Y=Y===void 0?Q[$]:Y+"/"+Q[$];return Y===void 0?".":Mp(Y)}function Mp(Q){fJ(Q);let $=Q.codePointAt(0)===47,Y=Np(Q,!$);if(Y.length===0&&!$)Y=".";if(Y.length>0&&Q.codePointAt(Q.length-1)===47)Y+="/";return $?"/"+Y:Y}function Np(Q,$){let Y="",G=0,K=-1,H=0,B=-1,z,F;while(++B<=Q.length){if(B<Q.length)z=Q.codePointAt(B);else if(z===47)break;else z=47;if(z===47){if(K===B-1||H===1);else if(K!==B-1&&H===2){if(Y.length<2||G!==2||Y.codePointAt(Y.length-1)!==46||Y.codePointAt(Y.length-2)!==46){if(Y.length>2){if(F=Y.lastIndexOf("/"),F!==Y.length-1){if(F<0)Y="",G=0;else Y=Y.slice(0,F),G=Y.length-1-Y.lastIndexOf("/");K=B,H=0;continue}}else if(Y.length>0){Y="",G=0,K=B,H=0;continue}}if($)Y=Y.length>0?Y+"/..":"..",G=2}else{if(Y.length>0)Y+="/"+Q.slice(K+1,B);else Y=Q.slice(K+1,B);G=B-K-1}K=B,H=0}else if(z===46&&H>-1)H++;else H=-1}return Y}function fJ(Q){if(typeof Q!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(Q))}var Uj={cwd:Rp};function Rp(){return"/"}function oX(Q){return Boolean(Q!==null&&typeof Q==="object"&&"href"in Q&&Q.href&&"protocol"in Q&&Q.protocol&&Q.auth===void 0)}function zj(Q){if(typeof Q==="string")Q=new URL(Q);else if(!oX(Q)){let $=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+Q+"`");throw $.code="ERR_INVALID_ARG_TYPE",$}if(Q.protocol!=="file:"){let $=TypeError("The URL must be of scheme file");throw $.code="ERR_INVALID_URL_SCHEME",$}return _p(Q)}function _p(Q){if(Q.hostname!==""){let G=TypeError('File URL host must be "localhost" or empty on darwin');throw G.code="ERR_INVALID_FILE_URL_HOST",G}let $=Q.pathname,Y=-1;while(++Y<$.length)if($.codePointAt(Y)===37&&$.codePointAt(Y+1)===50){let G=$.codePointAt(Y+2);if(G===70||G===102){let K=TypeError("File URL path must not include encoded / characters");throw K.code="ERR_INVALID_FILE_URL_PATH",K}}return decodeURIComponent($)}var XF=["history","path","basename","stem","extname","dirname"];class tX{constructor(Q){let $;if(!Q)$={};else if(oX(Q))$={path:Q};else if(typeof Q==="string"||Op(Q))$={value:Q};else $=Q;this.cwd="cwd"in $?"":Uj.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let Y=-1;while(++Y<XF.length){let K=XF[Y];if(K in $&&$[K]!==void 0&&$[K]!==null)this[K]=K==="history"?[...$[K]]:$[K]}let G;for(G in $)if(!XF.includes(G))this[G]=$[G]}get basename(){return typeof this.path==="string"?H9.basename(this.path):void 0}set basename(Q){JF(Q,"basename"),QF(Q,"basename"),this.path=H9.join(this.dirname||"",Q)}get dirname(){return typeof this.path==="string"?H9.dirname(this.path):void 0}set dirname(Q){Fj(this.basename,"dirname"),this.path=H9.join(Q||"",this.basename)}get extname(){return typeof this.path==="string"?H9.extname(this.path):void 0}set extname(Q){if(QF(Q,"extname"),Fj(this.dirname,"extname"),Q){if(Q.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(Q.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=H9.join(this.dirname,this.stem+(Q||""))}get path(){return this.history[this.history.length-1]}set path(Q){if(oX(Q))Q=zj(Q);if(JF(Q,"path"),this.path!==Q)this.history.push(Q)}get stem(){return typeof this.path==="string"?H9.basename(this.path,this.extname):void 0}set stem(Q){JF(Q,"stem"),QF(Q,"stem"),this.path=H9.join(this.dirname||"",Q+(this.extname||""))}fail(Q,$,Y){let G=this.message(Q,$,Y);throw G.fatal=!0,G}info(Q,$,Y){let G=this.message(Q,$,Y);return G.fatal=void 0,G}message(Q,$,Y){let G=new k5(Q,$,Y);if(this.path)G.name=this.path+":"+G.name,G.file=this.path;return G.fatal=!1,this.messages.push(G),G}toString(Q){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder(Q||void 0).decode(this.value)}}function QF(Q,$){if(Q&&Q.includes(H9.sep))throw Error("`"+$+"` cannot be a path: did not expect `"+H9.sep+"`")}function JF(Q,$){if(!Q)throw Error("`"+$+"` cannot be empty")}function Fj(Q,$){if(!Q)throw Error("Setting `"+$+"` requires `path` to be set too")}function Op(Q){return Boolean(Q&&typeof Q==="object"&&"byteLength"in Q&&"byteOffset"in Q)}var Lj=function(Q){let G=this.constructor.prototype,K=G[Q],H=function(){return K.apply(H,arguments)};return Object.setPrototypeOf(H,G),H};var Ap={}.hasOwnProperty;class GF extends Lj{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=ZF()}copy(){let Q=new GF,$=-1;while(++$<this.attachers.length){let Y=this.attachers[$];Q.use(...Y)}return Q.data(xG.default(!0,{},this.namespace)),Q}data(Q,$){if(typeof Q==="string"){if(arguments.length===2)return qF("data",this.frozen),this.namespace[Q]=$,this;return Ap.call(this.namespace,Q)&&this.namespace[Q]||void 0}if(Q)return qF("data",this.frozen),this.namespace=Q,this;return this.namespace}freeze(){if(this.frozen)return this;let Q=this;while(++this.freezeIndex<this.attachers.length){let[$,...Y]=this.attachers[this.freezeIndex];if(Y[0]===!1)continue;if(Y[0]===!0)Y[0]=void 0;let G=$.call(Q,...Y);if(typeof G==="function")this.transformers.use(G)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(Q){this.freeze();let $=vG(Q),Y=this.parser||this.Parser;return $F("parse",Y),Y(String($),$)}process(Q,$){let Y=this;return this.freeze(),$F("process",this.parser||this.Parser),YF("process",this.compiler||this.Compiler),$?G(void 0,$):new Promise(G);function G(K,H){let B=vG(Q),z=Y.parse(B);Y.run(z,B,function(R,N,L){if(R||!N||!L)return F(R);let O=N,A=Y.stringify(O,L);if(Tp(A))L.value=A;else L.result=A;F(R,L)});function F(R,N){if(R||!N)H(R);else if(K)K(N);else v($,"`done` is defined if `resolve` is not"),$(void 0,N)}}}processSync(Q){let $=!1,Y;return this.freeze(),$F("processSync",this.parser||this.Parser),YF("processSync",this.compiler||this.Compiler),this.process(Q,G),Nj("processSync","process",$),v(Y,"we either bailed on an error or have a tree"),Y;function G(K,H){$=!0,ez(K),Y=H}}run(Q,$,Y){Mj(Q),this.freeze();let G=this.transformers;if(!Y&&typeof $==="function")Y=$,$=void 0;return Y?K(void 0,Y):new Promise(K);function K(H,B){v(typeof $!=="function","`file` can’t be a `done` anymore, we checked");let z=vG($);G.run(Q,z,F);function F(R,N,L){let O=N||Q;if(R)B(R);else if(H)H(O);else v(Y,"`done` is defined if `resolve` is not"),Y(void 0,O,L)}}}runSync(Q,$){let Y=!1,G;return this.run(Q,$,K),Nj("runSync","run",Y),v(G,"we either bailed on an error or have a tree"),G;function K(H,B){ez(H),G=B,Y=!0}}stringify(Q,$){this.freeze();let Y=vG($),G=this.compiler||this.Compiler;return YF("stringify",G),Mj(Q),G(Q,Y)}use(Q,...$){let Y=this.attachers,G=this.namespace;if(qF("use",this.frozen),Q===null||Q===void 0);else if(typeof Q==="function")z(Q,$);else if(typeof Q==="object")if(Array.isArray(Q))B(Q);else H(Q);else throw TypeError("Expected usable value, not `"+Q+"`");return this;function K(F){if(typeof F==="function")z(F,[]);else if(typeof F==="object")if(Array.isArray(F)){let[R,...N]=F;z(R,N)}else H(F);else throw TypeError("Expected usable value, not `"+F+"`")}function H(F){if(!("plugins"in F)&&!("settings"in F))throw 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");if(B(F.plugins),F.settings)G.settings=xG.default(!0,G.settings,F.settings)}function B(F){let R=-1;if(F===null||F===void 0);else if(Array.isArray(F))while(++R<F.length){let N=F[R];K(N)}else throw TypeError("Expected a list of plugins, not `"+F+"`")}function z(F,R){let N=-1,L=-1;while(++N<Y.length)if(Y[N][0]===F){L=N;break}if(L===-1)Y.push([F,...R]);else if(R.length>0){let[O,...A]=R,C=Y[L][1];if(uJ(C)&&uJ(O))O=xG.default(!0,C,O);Y[L]=[F,O,...A]}}}}var KF=new GF().freeze();function $F(Q,$){if(typeof $!=="function")throw TypeError("Cannot `"+Q+"` without `parser`")}function YF(Q,$){if(typeof $!=="function")throw TypeError("Cannot `"+Q+"` without `compiler`")}function qF(Q,$){if($)throw Error("Cannot call `"+Q+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Mj(Q){if(!uJ(Q)||typeof Q.type!=="string")throw TypeError("Expected node, got `"+Q+"`")}function Nj(Q,$,Y){if(!Y)throw Error("`"+Q+"` finished async. Use `"+$+"` instead")}function vG(Q){return Ip(Q)?Q:new tX(Q)}function Ip(Q){return Boolean(Q&&typeof Q==="object"&&"message"in Q&&"messages"in Q)}function Tp(Q){return typeof Q==="string"||Vp(Q)}function Vp(Q){return Boolean(Q&&typeof Q==="object"&&"byteLength"in Q&&"byteOffset"in Q)}var Pp="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Rj=[],_j={allowDangerousHtml:!0},wp=/^(https?|ircs?|mailto|xmpp)$/i,Cp=[{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 WF(Q){let $=jp(Q),Y=Dp(Q);return Sp($.runSync($.parse(Y),Y),Q)}function jp(Q){let $=Q.rehypePlugins||Rj,Y=Q.remarkPlugins||Rj,G=Q.remarkRehypeOptions?{...Q.remarkRehypeOptions,..._j}:_j;return KF().use(TG).use(Y).use(gG,G).use($)}function Dp(Q){let $=Q.children||"",Y=new tX;if(typeof $==="string")Y.value=$;else JG("Unexpected value `"+$+"` for `children` prop, expected `string`");return Y}function Sp(Q,$){let{allowedElements:Y,allowElement:G,components:K,disallowedElements:H,skipHtml:B,unwrapDisallowed:z}=$,F=$.urlTransform||Aj;for(let N of Cp)if(Object.hasOwn($,N.from))JG("Unexpected `"+N.from+"` prop, "+(N.to?"use `"+N.to+"` instead":"remove it")+" (see <"+Pp+"#"+N.id+"> for more info)");if(Y&&H)JG("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other");return qZ(Q,R),Sz(Q,{Fragment:eX.Fragment,components:K,ignoreInvalidStyle:!0,jsx:eX.jsx,jsxs:eX.jsxs,passKeys:!0,passNode:!0});function R(N,L,O){if(N.type==="raw"&&O&&typeof L==="number"){if(B)O.children.splice(L,1);else O.children[L]={type:"text",value:N.value};return L}if(N.type==="element"){let A;for(A in CJ)if(Object.hasOwn(CJ,A)&&Object.hasOwn(N.properties,A)){let C=N.properties[A],D=CJ[A];if(D===null||D.includes(N.tagName))N.properties[A]=F(String(C||""),A,N)}}if(N.type==="element"){let A=Y?!Y.includes(N.tagName):H?H.includes(N.tagName):!1;if(!A&&G&&typeof L==="number")A=!G(N,L,O);if(A&&O&&typeof L==="number"){if(z&&N.children)O.children.splice(L,1,...N.children);else O.children.splice(L,1);return L}}}}function Aj(Q){let $=Q.indexOf(":"),Y=Q.indexOf("?"),G=Q.indexOf("#"),K=Q.indexOf("/");if($===-1||K!==-1&&$>K||Y!==-1&&$>Y||G!==-1&&$>G||wp.test(Q.slice(0,$)))return Q;return""}function HF(Q,$){let Y=String(Q);if(typeof $!=="string")throw TypeError("Expected character");let G=0,K=Y.indexOf($);while(K!==-1)G++,K=Y.indexOf($,K+$.length);return G}function BF(Q){if(typeof Q!=="string")throw TypeError("Expected a string");return Q.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function UF(Q,$,Y){let K=v7((Y||{}).ignore||[]),H=Ep($),B=-1;while(++B<H.length)mJ(Q,"text",z);function z(R,N){let L=-1,O;while(++L<N.length){let A=N[L],C=O?O.children:void 0;if(K(A,C?C.indexOf(A):void 0,O))return;O=A}if(O)return F(R,N)}function F(R,N){let L=N[N.length-1],O=H[B][0],A=H[B][1],C=0,b=L.children.indexOf(R),y=!1,k=[];O.lastIndex=0;let f=O.exec(R.value);while(f){let a=f.index,s={index:f.index,input:f.input,stack:[...N,R]},g=A(...f,s);if(typeof g==="string")g=g.length>0?{type:"text",value:g}:void 0;if(g===!1)O.lastIndex=a+1;else{if(C!==a)k.push({type:"text",value:R.value.slice(C,a)});if(Array.isArray(g))k.push(...g);else if(g)k.push(g);C=a+f[0].length,y=!0}if(!O.global)break;f=O.exec(R.value)}if(y){if(C<R.value.length)k.push({type:"text",value:R.value.slice(C)});L.children.splice(b,1,...k)}else k=[R];return b+k.length}}function Ep(Q){let $=[];if(!Array.isArray(Q))throw TypeError("Expected find and replace tuple or list of tuples");let Y=!Q[0]||Array.isArray(Q[0])?Q:[Q],G=-1;while(++G<Y.length){let K=Y[G];$.push([bp(K[0]),yp(K[1])])}return $}function bp(Q){return typeof Q==="string"?new RegExp(BF(Q),"g"):Q}function yp(Q){return typeof Q==="function"?Q:function(){return Q}}var zF="phrasing",FF=["autolink","link","image","label"];function MF(){return{transforms:[mp],enter:{literalAutolink:gp,literalAutolinkEmail:LF,literalAutolinkHttp:LF,literalAutolinkWww:LF},exit:{literalAutolink:kp,literalAutolinkEmail:xp,literalAutolinkHttp:hp,literalAutolinkWww:vp}}}function NF(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:zF,notInConstruct:FF},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:zF,notInConstruct:FF},{character:":",before:"[ps]",after:"\\/",inConstruct:zF,notInConstruct:FF}]}}function gp(Q){this.enter({type:"link",title:null,url:"",children:[]},Q)}function LF(Q){this.config.enter.autolinkProtocol.call(this,Q)}function hp(Q){this.config.exit.autolinkProtocol.call(this,Q)}function vp(Q){this.config.exit.data.call(this,Q);let $=this.stack[this.stack.length-1];v($.type==="link"),$.url="http://"+this.sliceSerialize(Q)}function xp(Q){this.config.exit.autolinkEmail.call(this,Q)}function kp(Q){this.exit(Q)}function mp(Q){UF(Q,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,up],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,fp]],{ignore:["link","linkReference"]})}function up(Q,$,Y,G,K){let H="";if(!Ij(K))return!1;if(/^w/i.test($))Y=$+Y,$="",H="http://";if(!pp(Y))return!1;let B=lp(Y+G);if(!B[0])return!1;let z={type:"link",title:null,url:H+$+B[0],children:[{type:"text",value:$+B[0]}]};if(B[1])return[z,{type:"text",value:B[1]}];return z}function fp(Q,$,Y,G){if(!Ij(G,!0)||/[-\d_]$/.test(Y))return!1;return{type:"link",title:null,url:"mailto:"+$+"@"+Y,children:[{type:"text",value:$+"@"+Y}]}}function pp(Q){let $=Q.split(".");if($.length<2||$[$.length-1]&&(/_/.test($[$.length-1])||!/[a-zA-Z\d]/.test($[$.length-1]))||$[$.length-2]&&(/_/.test($[$.length-2])||!/[a-zA-Z\d]/.test($[$.length-2])))return!1;return!0}function lp(Q){let $=/[!"&'),.:;<>?\]}]+$/.exec(Q);if(!$)return[Q,void 0];Q=Q.slice(0,$.index);let Y=$[0],G=Y.indexOf(")"),K=HF(Q,"("),H=HF(Q,")");while(G!==-1&&K>H)Q+=Y.slice(0,G+1),Y=Y.slice(G+1),G=Y.indexOf(")"),H++;return[Q,Y]}function Ij(Q,$){let Y=Q.input.charCodeAt(Q.index-1);return(Q.index===0||d9(Y)||t8(Y))&&(!$||Y!==47)}Tj.peek=tp;function dp(){this.buffer()}function ip(Q){this.enter({type:"footnoteReference",identifier:"",label:""},Q)}function cp(){this.buffer()}function rp(Q){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},Q)}function ap(Q){let $=this.resume(),Y=this.stack[this.stack.length-1];v(Y.type==="footnoteReference"),Y.identifier=I4(this.sliceSerialize(Q)).toLowerCase(),Y.label=$}function np(Q){this.exit(Q)}function sp(Q){let $=this.resume(),Y=this.stack[this.stack.length-1];v(Y.type==="footnoteDefinition"),Y.identifier=I4(this.sliceSerialize(Q)).toLowerCase(),Y.label=$}function op(Q){this.exit(Q)}function tp(){return"["}function Tj(Q,$,Y,G){let K=Y.createTracker(G),H=K.move("[^"),B=Y.enter("footnoteReference"),z=Y.enter("reference");return H+=K.move(Y.safe(Y.associationId(Q),{after:"]",before:H})),z(),B(),H+=K.move("]"),H}function RF(){return{enter:{gfmFootnoteCallString:dp,gfmFootnoteCall:ip,gfmFootnoteDefinitionLabelString:cp,gfmFootnoteDefinition:rp},exit:{gfmFootnoteCallString:ap,gfmFootnoteCall:np,gfmFootnoteDefinitionLabelString:sp,gfmFootnoteDefinition:op}}}function _F(Q){let $=!1;if(Q&&Q.firstLineBlank)$=!0;return{handlers:{footnoteDefinition:Y,footnoteReference:Tj},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function Y(G,K,H,B){let z=H.createTracker(B),F=z.move("[^"),R=H.enter("footnoteDefinition"),N=H.enter("label");if(F+=z.move(H.safe(H.associationId(G),{before:F,after:"]"})),N(),F+=z.move("]:"),G.children&&G.children.length>0)z.shift(4),F+=z.move(($?`
|
|
436
|
+
`:" ")+H.indentLines(H.containerFlow(G,z.current()),$?Vj:ep));return R(),F}}function ep(Q,$,Y){return $===0?Q:Vj(Q,$,Y)}function Vj(Q,$,Y){return(Y?"":" ")+Q}var Zl=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Pj.peek=Jl;function OF(){return{canContainEols:["delete"],enter:{strikethrough:Xl},exit:{strikethrough:Ql}}}function AF(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Zl}],handlers:{delete:Pj}}}function Xl(Q){this.enter({type:"delete",children:[]},Q)}function Ql(Q){this.exit(Q)}function Pj(Q,$,Y,G){let K=Y.createTracker(G),H=Y.enter("strikethrough"),B=K.move("~~");return B+=Y.containerPhrasing(Q,{...K.current(),before:B,after:"~"}),B+=K.move("~~"),H(),B}function Jl(){return"~"}function $l(Q){return Q.length}function Cj(Q,$){let Y=$||{},G=(Y.align||[]).concat(),K=Y.stringLength||$l,H=[],B=[],z=[],F=[],R=0,N=-1;while(++N<Q.length){let D=[],b=[],y=-1;if(Q[N].length>R)R=Q[N].length;while(++y<Q[N].length){let k=Yl(Q[N][y]);if(Y.alignDelimiters!==!1){let f=K(k);if(b[y]=f,F[y]===void 0||f>F[y])F[y]=f}D.push(k)}B[N]=D,z[N]=b}let L=-1;if(typeof G==="object"&&"length"in G)while(++L<R)H[L]=wj(G[L]);else{let D=wj(G);while(++L<R)H[L]=D}L=-1;let O=[],A=[];while(++L<R){let D=H[L],b="",y="";if(D===99)b=":",y=":";else if(D===108)b=":";else if(D===114)y=":";let k=Y.alignDelimiters===!1?1:Math.max(1,F[L]-b.length-y.length),f=b+"-".repeat(k)+y;if(Y.alignDelimiters!==!1){if(k=b.length+k+y.length,k>F[L])F[L]=k;A[L]=k}O[L]=f}B.splice(1,0,O),z.splice(1,0,A),N=-1;let C=[];while(++N<B.length){let D=B[N],b=z[N];L=-1;let y=[];while(++L<R){let k=D[L]||"",f="",a="";if(Y.alignDelimiters!==!1){let s=F[L]-(b[L]||0),g=H[L];if(g===114)f=" ".repeat(s);else if(g===99)if(s%2)f=" ".repeat(s/2+0.5),a=" ".repeat(s/2-0.5);else f=" ".repeat(s/2),a=f;else a=" ".repeat(s)}if(Y.delimiterStart!==!1&&!L)y.push("|");if(Y.padding!==!1&&!(Y.alignDelimiters===!1&&k==="")&&(Y.delimiterStart!==!1||L))y.push(" ");if(Y.alignDelimiters!==!1)y.push(f);if(y.push(k),Y.alignDelimiters!==!1)y.push(a);if(Y.padding!==!1)y.push(" ");if(Y.delimiterEnd!==!1||L!==R-1)y.push("|")}C.push(Y.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return C.join(`
|
|
437
|
+
`)}function Yl(Q){return Q===null||Q===void 0?"":String(Q)}function wj(Q){let $=typeof Q==="string"?Q.codePointAt(0):0;return $===67||$===99?99:$===76||$===108?108:$===82||$===114?114:0}function jj(Q,$,Y,G){let K=Y.enter("blockquote"),H=Y.createTracker(G);H.move("> "),H.shift(2);let B=Y.indentLines(Y.containerFlow(Q,H.current()),ql);return K(),B}function ql(Q,$,Y){return">"+(Y?"":" ")+Q}function Sj(Q,$){return Dj(Q,$.inConstruct,!0)&&!Dj(Q,$.notInConstruct,!1)}function Dj(Q,$,Y){if(typeof $==="string")$=[$];if(!$||$.length===0)return Y;let G=-1;while(++G<$.length)if(Q.includes($[G]))return!0;return!1}function IF(Q,$,Y,G){let K=-1;while(++K<Y.unsafe.length)if(Y.unsafe[K].character===`
|
|
438
|
+
`&&Sj(Y.stack,Y.unsafe[K]))return/[ \t]/.test(G.before)?"":" ";return"\\\n"}function Ej(Q,$){let Y=String(Q),G=Y.indexOf($),K=G,H=0,B=0;if(typeof $!=="string")throw TypeError("Expected substring");while(G!==-1){if(G===K){if(++H>B)B=H}else H=1;K=G+$.length,G=Y.indexOf($,K)}return B}function bj(Q,$){return Boolean($.options.fences===!1&&Q.value&&!Q.lang&&/[^ \r\n]/.test(Q.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(Q.value))}function yj(Q){let $=Q.options.fence||"`";if($!=="`"&&$!=="~")throw Error("Cannot serialize code with `"+$+"` for `options.fence`, expected `` ` `` or `~`");return $}function gj(Q,$,Y,G){let K=yj(Y),H=Q.value||"",B=K==="`"?"GraveAccent":"Tilde";if(bj(Q,Y)){let L=Y.enter("codeIndented"),O=Y.indentLines(H,Gl);return L(),O}let z=Y.createTracker(G),F=K.repeat(Math.max(Ej(H,K)+1,3)),R=Y.enter("codeFenced"),N=z.move(F);if(Q.lang){let L=Y.enter(`codeFencedLang${B}`);N+=z.move(Y.safe(Q.lang,{before:N,after:" ",encode:["`"],...z.current()})),L()}if(Q.lang&&Q.meta){let L=Y.enter(`codeFencedMeta${B}`);N+=z.move(" "),N+=z.move(Y.safe(Q.meta,{before:N,after:`
|
|
439
|
+
`,encode:["`"],...z.current()})),L()}if(N+=z.move(`
|
|
440
|
+
`),H)N+=z.move(H+`
|
|
441
|
+
`);return N+=z.move(F),R(),N}function Gl(Q,$,Y){return(Y?"":" ")+Q}function Z3(Q){let $=Q.options.quote||'"';if($!=='"'&&$!=="'")throw Error("Cannot serialize title with `"+$+"` for `options.quote`, expected `\"`, or `'`");return $}function hj(Q,$,Y,G){let K=Z3(Y),H=K==='"'?"Quote":"Apostrophe",B=Y.enter("definition"),z=Y.enter("label"),F=Y.createTracker(G),R=F.move("[");if(R+=F.move(Y.safe(Y.associationId(Q),{before:R,after:"]",...F.current()})),R+=F.move("]: "),z(),!Q.url||/[\0- \u007F]/.test(Q.url))z=Y.enter("destinationLiteral"),R+=F.move("<"),R+=F.move(Y.safe(Q.url,{before:R,after:">",...F.current()})),R+=F.move(">");else z=Y.enter("destinationRaw"),R+=F.move(Y.safe(Q.url,{before:R,after:Q.title?" ":`
|
|
442
|
+
`,...F.current()}));if(z(),Q.title)z=Y.enter(`title${H}`),R+=F.move(" "+K),R+=F.move(Y.safe(Q.title,{before:R,after:K,...F.current()})),R+=F.move(K),z();return B(),R}function vj(Q){let $=Q.options.emphasis||"*";if($!=="*"&&$!=="_")throw Error("Cannot serialize emphasis with `"+$+"` for `options.emphasis`, expected `*`, or `_`");return $}function x7(Q){return"&#x"+Q.toString(16).toUpperCase()+";"}function X3(Q,$,Y){let G=w6(Q),K=w6($);if(G===void 0)return K===void 0?Y==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:K===1?{inside:!0,outside:!0}:{inside:!1,outside:!0};if(G===1)return K===void 0?{inside:!1,outside:!1}:K===1?{inside:!0,outside:!0}:{inside:!1,outside:!1};return K===void 0?{inside:!1,outside:!1}:K===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}TF.peek=Kl;function TF(Q,$,Y,G){let K=vj(Y),H=Y.enter("emphasis"),B=Y.createTracker(G),z=B.move(K),F=B.move(Y.containerPhrasing(Q,{after:K,before:z,...B.current()})),R=F.charCodeAt(0),N=X3(G.before.charCodeAt(G.before.length-1),R,K);if(N.inside)F=x7(R)+F.slice(1);let L=F.charCodeAt(F.length-1),O=X3(G.after.charCodeAt(0),L,K);if(O.inside)F=F.slice(0,-1)+x7(L);let A=B.move(K);return H(),Y.attentionEncodeSurroundingInfo={after:O.outside,before:N.outside},z+F+A}function Kl(Q,$,Y){return Y.options.emphasis||"*"}function xj(Q,$){let Y=!1;return qZ(Q,function(G){if("value"in G&&/\r?\n|\r/.test(G.value)||G.type==="break")return Y=!0,YZ}),Boolean((!Q.depth||Q.depth<3)&&s8(Q)&&($.options.setext||Y))}function kj(Q,$,Y,G){let K=Math.max(Math.min(6,Q.depth||1),1),H=Y.createTracker(G);if(xj(Q,Y)){let N=Y.enter("headingSetext"),L=Y.enter("phrasing"),O=Y.containerPhrasing(Q,{...H.current(),before:`
|
|
443
|
+
`,after:`
|
|
444
|
+
`});return L(),N(),O+`
|
|
445
|
+
`+(K===1?"=":"-").repeat(O.length-(Math.max(O.lastIndexOf("\r"),O.lastIndexOf(`
|
|
446
|
+
`))+1))}let B="#".repeat(K),z=Y.enter("headingAtx"),F=Y.enter("phrasing");H.move(B+" ");let R=Y.containerPhrasing(Q,{before:"# ",after:`
|
|
447
|
+
`,...H.current()});if(/^[\t ]/.test(R))R=x7(R.charCodeAt(0))+R.slice(1);if(R=R?B+" "+R:B,Y.options.closeAtx)R+=" "+B;return F(),z(),R}VF.peek=Wl;function VF(Q){return Q.value||""}function Wl(){return"<"}PF.peek=Hl;function PF(Q,$,Y,G){let K=Z3(Y),H=K==='"'?"Quote":"Apostrophe",B=Y.enter("image"),z=Y.enter("label"),F=Y.createTracker(G),R=F.move("![");if(R+=F.move(Y.safe(Q.alt,{before:R,after:"]",...F.current()})),R+=F.move("]("),z(),!Q.url&&Q.title||/[\0- \u007F]/.test(Q.url))z=Y.enter("destinationLiteral"),R+=F.move("<"),R+=F.move(Y.safe(Q.url,{before:R,after:">",...F.current()})),R+=F.move(">");else z=Y.enter("destinationRaw"),R+=F.move(Y.safe(Q.url,{before:R,after:Q.title?" ":")",...F.current()}));if(z(),Q.title)z=Y.enter(`title${H}`),R+=F.move(" "+K),R+=F.move(Y.safe(Q.title,{before:R,after:K,...F.current()})),R+=F.move(K),z();return R+=F.move(")"),B(),R}function Hl(){return"!"}wF.peek=Bl;function wF(Q,$,Y,G){let K=Q.referenceType,H=Y.enter("imageReference"),B=Y.enter("label"),z=Y.createTracker(G),F=z.move("!["),R=Y.safe(Q.alt,{before:F,after:"]",...z.current()});F+=z.move(R+"]["),B();let N=Y.stack;Y.stack=[],B=Y.enter("reference");let L=Y.safe(Y.associationId(Q),{before:F,after:"]",...z.current()});if(B(),Y.stack=N,H(),K==="full"||!R||R!==L)F+=z.move(L+"]");else if(K==="shortcut")F=F.slice(0,-1);else F+=z.move("]");return F}function Bl(){return"!"}CF.peek=Ul;function CF(Q,$,Y){let G=Q.value||"",K="`",H=-1;while(new RegExp("(^|[^`])"+K+"([^`]|$)").test(G))K+="`";if(/[^ \r\n]/.test(G)&&(/^[ \r\n]/.test(G)&&/[ \r\n]$/.test(G)||/^`|`$/.test(G)))G=" "+G+" ";while(++H<Y.unsafe.length){let B=Y.unsafe[H],z=Y.compilePattern(B),F;if(!B.atBreak)continue;while(F=z.exec(G)){let R=F.index;if(G.charCodeAt(R)===10&&G.charCodeAt(R-1)===13)R--;G=G.slice(0,R)+" "+G.slice(F.index+1)}}return K+G+K}function Ul(){return"`"}function jF(Q,$){let Y=s8(Q);return Boolean(!$.options.resourceLink&&Q.url&&!Q.title&&Q.children&&Q.children.length===1&&Q.children[0].type==="text"&&(Y===Q.url||"mailto:"+Y===Q.url)&&/^[a-z][a-z+.-]+:/i.test(Q.url)&&!/[\0- <>\u007F]/.test(Q.url))}DF.peek=zl;function DF(Q,$,Y,G){let K=Z3(Y),H=K==='"'?"Quote":"Apostrophe",B=Y.createTracker(G),z,F;if(jF(Q,Y)){let N=Y.stack;Y.stack=[],z=Y.enter("autolink");let L=B.move("<");return L+=B.move(Y.containerPhrasing(Q,{before:L,after:">",...B.current()})),L+=B.move(">"),z(),Y.stack=N,L}z=Y.enter("link"),F=Y.enter("label");let R=B.move("[");if(R+=B.move(Y.containerPhrasing(Q,{before:R,after:"](",...B.current()})),R+=B.move("]("),F(),!Q.url&&Q.title||/[\0- \u007F]/.test(Q.url))F=Y.enter("destinationLiteral"),R+=B.move("<"),R+=B.move(Y.safe(Q.url,{before:R,after:">",...B.current()})),R+=B.move(">");else F=Y.enter("destinationRaw"),R+=B.move(Y.safe(Q.url,{before:R,after:Q.title?" ":")",...B.current()}));if(F(),Q.title)F=Y.enter(`title${H}`),R+=B.move(" "+K),R+=B.move(Y.safe(Q.title,{before:R,after:K,...B.current()})),R+=B.move(K),F();return R+=B.move(")"),z(),R}function zl(Q,$,Y){return jF(Q,Y)?"<":"["}SF.peek=Fl;function SF(Q,$,Y,G){let K=Q.referenceType,H=Y.enter("linkReference"),B=Y.enter("label"),z=Y.createTracker(G),F=z.move("["),R=Y.containerPhrasing(Q,{before:F,after:"]",...z.current()});F+=z.move(R+"]["),B();let N=Y.stack;Y.stack=[],B=Y.enter("reference");let L=Y.safe(Y.associationId(Q),{before:F,after:"]",...z.current()});if(B(),Y.stack=N,H(),K==="full"||!R||R!==L)F+=z.move(L+"]");else if(K==="shortcut")F=F.slice(0,-1);else F+=z.move("]");return F}function Fl(){return"["}function Q3(Q){let $=Q.options.bullet||"*";if($!=="*"&&$!=="+"&&$!=="-")throw Error("Cannot serialize items with `"+$+"` for `options.bullet`, expected `*`, `+`, or `-`");return $}function mj(Q){let $=Q3(Q),Y=Q.options.bulletOther;if(!Y)return $==="*"?"-":"*";if(Y!=="*"&&Y!=="+"&&Y!=="-")throw Error("Cannot serialize items with `"+Y+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(Y===$)throw Error("Expected `bullet` (`"+$+"`) and `bulletOther` (`"+Y+"`) to be different");return Y}function uj(Q){let $=Q.options.bulletOrdered||".";if($!=="."&&$!==")")throw Error("Cannot serialize items with `"+$+"` for `options.bulletOrdered`, expected `.` or `)`");return $}function kG(Q){let $=Q.options.rule||"*";if($!=="*"&&$!=="-"&&$!=="_")throw Error("Cannot serialize rules with `"+$+"` for `options.rule`, expected `*`, `-`, or `_`");return $}function fj(Q,$,Y,G){let K=Y.enter("list"),H=Y.bulletCurrent,B=Q.ordered?uj(Y):Q3(Y),z=Q.ordered?B==="."?")":".":mj(Y),F=$&&Y.bulletLastUsed?B===Y.bulletLastUsed:!1;if(!Q.ordered){let N=Q.children?Q.children[0]:void 0;if((B==="*"||B==="-")&&N&&(!N.children||!N.children[0])&&Y.stack[Y.stack.length-1]==="list"&&Y.stack[Y.stack.length-2]==="listItem"&&Y.stack[Y.stack.length-3]==="list"&&Y.stack[Y.stack.length-4]==="listItem"&&Y.indexStack[Y.indexStack.length-1]===0&&Y.indexStack[Y.indexStack.length-2]===0&&Y.indexStack[Y.indexStack.length-3]===0)F=!0;if(kG(Y)===B&&N){let L=-1;while(++L<Q.children.length){let O=Q.children[L];if(O&&O.type==="listItem"&&O.children&&O.children[0]&&O.children[0].type==="thematicBreak"){F=!0;break}}}}if(F)B=z;Y.bulletCurrent=B;let R=Y.containerFlow(Q,G);return Y.bulletLastUsed=B,Y.bulletCurrent=H,K(),R}function pj(Q){let $=Q.options.listItemIndent||"one";if($!=="tab"&&$!=="one"&&$!=="mixed")throw Error("Cannot serialize items with `"+$+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return $}function lj(Q,$,Y,G){let K=pj(Y),H=Y.bulletCurrent||Q3(Y);if($&&$.type==="list"&&$.ordered)H=(typeof $.start==="number"&&$.start>-1?$.start:1)+(Y.options.incrementListMarker===!1?0:$.children.indexOf(Q))+H;let B=H.length+1;if(K==="tab"||K==="mixed"&&($&&$.type==="list"&&$.spread||Q.spread))B=Math.ceil(B/4)*4;let z=Y.createTracker(G);z.move(H+" ".repeat(B-H.length)),z.shift(B);let F=Y.enter("listItem"),R=Y.indentLines(Y.containerFlow(Q,z.current()),N);return F(),R;function N(L,O,A){if(O)return(A?"":" ".repeat(B))+L;return(A?H:H+" ".repeat(B-H.length))+L}}function dj(Q,$,Y,G){let K=Y.enter("paragraph"),H=Y.enter("phrasing"),B=Y.containerPhrasing(Q,G);return H(),K(),B}var EF=v7(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ij(Q,$,Y,G){return(Q.children.some(function(B){return EF(B)})?Y.containerPhrasing:Y.containerFlow).call(Y,Q,G)}function cj(Q){let $=Q.options.strong||"*";if($!=="*"&&$!=="_")throw Error("Cannot serialize strong with `"+$+"` for `options.strong`, expected `*`, or `_`");return $}bF.peek=Ll;function bF(Q,$,Y,G){let K=cj(Y),H=Y.enter("strong"),B=Y.createTracker(G),z=B.move(K+K),F=B.move(Y.containerPhrasing(Q,{after:K,before:z,...B.current()})),R=F.charCodeAt(0),N=X3(G.before.charCodeAt(G.before.length-1),R,K);if(N.inside)F=x7(R)+F.slice(1);let L=F.charCodeAt(F.length-1),O=X3(G.after.charCodeAt(0),L,K);if(O.inside)F=F.slice(0,-1)+x7(L);let A=B.move(K+K);return H(),Y.attentionEncodeSurroundingInfo={after:O.outside,before:N.outside},z+F+A}function Ll(Q,$,Y){return Y.options.strong||"*"}function rj(Q,$,Y,G){return Y.safe(Q.value,G)}function aj(Q){let $=Q.options.ruleRepetition||3;if($<3)throw Error("Cannot serialize rules with repetition `"+$+"` for `options.ruleRepetition`, expected `3` or more");return $}function nj(Q,$,Y){let G=(kG(Y)+(Y.options.ruleSpaces?" ":"")).repeat(aj(Y));return Y.options.ruleSpaces?G.slice(0,-1):G}var pJ={blockquote:jj,break:IF,code:gj,definition:hj,emphasis:TF,hardBreak:IF,heading:kj,html:VF,image:PF,imageReference:wF,inlineCode:CF,link:DF,linkReference:SF,list:fj,listItem:lj,paragraph:dj,root:ij,strong:bF,text:rj,thematicBreak:nj};function gF(){return{enter:{table:Ml,tableData:sj,tableHeader:sj,tableRow:Rl},exit:{codeText:_l,table:Nl,tableData:yF,tableHeader:yF,tableRow:yF}}}function Ml(Q){let $=Q._align;v($,"expected `_align` on table"),this.enter({type:"table",align:$.map(function(Y){return Y==="none"?null:Y}),children:[]},Q),this.data.inTable=!0}function Nl(Q){this.exit(Q),this.data.inTable=void 0}function Rl(Q){this.enter({type:"tableRow",children:[]},Q)}function yF(Q){this.exit(Q)}function sj(Q){this.enter({type:"tableCell",children:[]},Q)}function _l(Q){let $=this.resume();if(this.data.inTable)$=$.replace(/\\([\\|])/g,Ol);let Y=this.stack[this.stack.length-1];v(Y.type==="inlineCode"),Y.value=$,this.exit(Q)}function Ol(Q,$){return $==="|"?$:Q}function hF(Q){let $=Q||{},Y=$.tableCellPadding,G=$.tablePipeAlign,K=$.stringLength,H=Y?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
448
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:O,table:B,tableCell:F,tableRow:z}};function B(A,C,D,b){return R(N(A,D,b),A.align)}function z(A,C,D,b){let y=L(A,D,b),k=R([y]);return k.slice(0,k.indexOf(`
|
|
449
|
+
`))}function F(A,C,D,b){let y=D.enter("tableCell"),k=D.enter("phrasing"),f=D.containerPhrasing(A,{...b,before:H,after:H});return k(),y(),f}function R(A,C){return Cj(A,{align:C,alignDelimiters:G,padding:Y,stringLength:K})}function N(A,C,D){let b=A.children,y=-1,k=[],f=C.enter("table");while(++y<b.length)k[y]=L(b[y],C,D);return f(),k}function L(A,C,D){let b=A.children,y=-1,k=[],f=C.enter("tableRow");while(++y<b.length)k[y]=F(b[y],A,C,D);return f(),k}function O(A,C,D){let b=pJ.inlineCode(A,C,D);if(D.stack.includes("tableCell"))b=b.replace(/\|/g,"\\$&");return b}}function vF(){return{exit:{taskListCheckValueChecked:oj,taskListCheckValueUnchecked:oj,paragraph:Al}}}function xF(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Il}}}function oj(Q){let $=this.stack[this.stack.length-2];v($.type==="listItem"),$.checked=Q.type==="taskListCheckValueChecked"}function Al(Q){let $=this.stack[this.stack.length-2];if($&&$.type==="listItem"&&typeof $.checked==="boolean"){let Y=this.stack[this.stack.length-1];v(Y.type==="paragraph");let G=Y.children[0];if(G&&G.type==="text"){let K=$.children,H=-1,B;while(++H<K.length){let z=K[H];if(z.type==="paragraph"){B=z;break}}if(B===Y){if(G.value=G.value.slice(1),G.value.length===0)Y.children.shift();else if(Y.position&&G.position&&typeof G.position.start.offset==="number")G.position.start.column++,G.position.start.offset++,Y.position.start=Object.assign({},G.position.start)}}}this.exit(Q)}function Il(Q,$,Y,G){let K=Q.children[0],H=typeof Q.checked==="boolean"&&K&&K.type==="paragraph",B="["+(Q.checked?"x":" ")+"] ",z=Y.createTracker(G);if(H)z.move(B);let F=pJ.listItem(Q,$,Y,{...G,...z.current()});if(H)F=F.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,R);return F;function R(N){return N+B}}function kF(){return[MF(),RF(),OF(),gF(),vF()]}function mF(Q){return{extensions:[NF(),_F(Q),AF(),hF(Q),xF()]}}var Tl={tokenize:jl,partial:!0},tj={tokenize:Dl,partial:!0},ej={tokenize:Sl,partial:!0},ZD={tokenize:El,partial:!0},Vl={tokenize:bl,partial:!0},XD={name:"wwwAutolink",tokenize:wl,previous:JD},QD={name:"protocolAutolink",tokenize:Cl,previous:$D},C6={name:"emailAutolink",tokenize:Pl,previous:YD},c9={};function fF(){return{text:c9}}var GZ=I.digit0;while(GZ<I.leftCurlyBrace)if(c9[GZ]=C6,GZ++,GZ===I.colon)GZ=I.uppercaseA;else if(GZ===I.leftSquareBracket)GZ=I.lowercaseA;c9[I.plusSign]=C6;c9[I.dash]=C6;c9[I.dot]=C6;c9[I.underscore]=C6;c9[I.uppercaseH]=[C6,QD];c9[I.lowercaseH]=[C6,QD];c9[I.uppercaseW]=[C6,XD];c9[I.lowercaseW]=[C6,XD];function Pl(Q,$,Y){let G=this,K,H;return B;function B(L){if(!uF(L)||!YD.call(G,G.previous)||pF(G.events))return Y(L);return Q.enter("literalAutolink"),Q.enter("literalAutolinkEmail"),z(L)}function z(L){if(uF(L))return Q.consume(L),z;if(L===I.atSign)return Q.consume(L),F;return Y(L)}function F(L){if(L===I.dot)return Q.check(Vl,N,R)(L);if(L===I.dash||L===I.underscore||T5(L))return H=!0,Q.consume(L),F;return N(L)}function R(L){return Q.consume(L),K=!0,F}function N(L){if(H&&K&&r5(G.previous))return Q.exit("literalAutolinkEmail"),Q.exit("literalAutolink"),$(L);return Y(L)}}function wl(Q,$,Y){let G=this;return K;function K(B){if(B!==I.uppercaseW&&B!==I.lowercaseW||!JD.call(G,G.previous)||pF(G.events))return Y(B);return Q.enter("literalAutolink"),Q.enter("literalAutolinkWww"),Q.check(Tl,Q.attempt(tj,Q.attempt(ej,H),Y),Y)(B)}function H(B){return Q.exit("literalAutolinkWww"),Q.exit("literalAutolink"),$(B)}}function Cl(Q,$,Y){let G=this,K="",H=!1;return B;function B(L){if((L===I.uppercaseH||L===I.lowercaseH)&&$D.call(G,G.previous)&&!pF(G.events))return Q.enter("literalAutolink"),Q.enter("literalAutolinkHttp"),K+=String.fromCodePoint(L),Q.consume(L),z;return Y(L)}function z(L){if(r5(L)&&K.length<5)return K+=String.fromCodePoint(L),Q.consume(L),z;if(L===I.colon){let O=K.toLowerCase();if(O==="http"||O==="https")return Q.consume(L),F}return Y(L)}function F(L){if(L===I.slash){if(Q.consume(L),H)return R;return H=!0,F}return Y(L)}function R(L){return L===I.eof||o8(L)||b1(L)||d9(L)||t8(L)?Y(L):Q.attempt(tj,Q.attempt(ej,N),Y)(L)}function N(L){return Q.exit("literalAutolinkHttp"),Q.exit("literalAutolink"),$(L)}}function jl(Q,$,Y){let G=0;return K;function K(B){if((B===I.uppercaseW||B===I.lowercaseW)&&G<3)return G++,Q.consume(B),K;if(B===I.dot&&G===3)return Q.consume(B),H;return Y(B)}function H(B){return B===I.eof?Y(B):$(B)}}function Dl(Q,$,Y){let G,K,H;return B;function B(R){if(R===I.dot||R===I.underscore)return Q.check(ZD,F,z)(R);if(R===I.eof||b1(R)||d9(R)||R!==I.dash&&t8(R))return F(R);return H=!0,Q.consume(R),B}function z(R){if(R===I.underscore)G=!0;else K=G,G=void 0;return Q.consume(R),B}function F(R){if(K||G||!H)return Y(R);return $(R)}}function Sl(Q,$){let Y=0,G=0;return K;function K(B){if(B===I.leftParenthesis)return Y++,Q.consume(B),K;if(B===I.rightParenthesis&&G<Y)return H(B);if(B===I.exclamationMark||B===I.quotationMark||B===I.ampersand||B===I.apostrophe||B===I.rightParenthesis||B===I.asterisk||B===I.comma||B===I.dot||B===I.colon||B===I.semicolon||B===I.lessThan||B===I.questionMark||B===I.rightSquareBracket||B===I.underscore||B===I.tilde)return Q.check(ZD,$,H)(B);if(B===I.eof||b1(B)||d9(B))return $(B);return Q.consume(B),K}function H(B){if(B===I.rightParenthesis)G++;return Q.consume(B),K}}function El(Q,$,Y){return G;function G(z){if(z===I.exclamationMark||z===I.quotationMark||z===I.apostrophe||z===I.rightParenthesis||z===I.asterisk||z===I.comma||z===I.dot||z===I.colon||z===I.semicolon||z===I.questionMark||z===I.underscore||z===I.tilde)return Q.consume(z),G;if(z===I.ampersand)return Q.consume(z),H;if(z===I.rightSquareBracket)return Q.consume(z),K;if(z===I.lessThan||z===I.eof||b1(z)||d9(z))return $(z);return Y(z)}function K(z){if(z===I.eof||z===I.leftParenthesis||z===I.leftSquareBracket||b1(z)||d9(z))return $(z);return G(z)}function H(z){return r5(z)?B(z):Y(z)}function B(z){if(z===I.semicolon)return Q.consume(z),G;if(r5(z))return Q.consume(z),B;return Y(z)}}function bl(Q,$,Y){return G;function G(H){return Q.consume(H),K}function K(H){return T5(H)?Y(H):$(H)}}function JD(Q){return Q===I.eof||Q===I.leftParenthesis||Q===I.asterisk||Q===I.underscore||Q===I.leftSquareBracket||Q===I.rightSquareBracket||Q===I.tilde||b1(Q)}function $D(Q){return!r5(Q)}function YD(Q){return!(Q===I.slash||uF(Q))}function uF(Q){return Q===I.plusSign||Q===I.dash||Q===I.dot||Q===I.underscore||T5(Q)}function pF(Q){let $=Q.length,Y=!1;while($--){let G=Q[$][1];if((G.type==="labelLink"||G.type==="labelImage")&&!G._balanced){Y=!0;break}if(G._gfmAutolinkLiteralWalkedInto){Y=!1;break}}if(Q.length>0&&!Y)Q[Q.length-1][1]._gfmAutolinkLiteralWalkedInto=!0;return Y}var yl={tokenize:ul,partial:!0};function lF(){return{document:{[I.leftSquareBracket]:{name:"gfmFootnoteDefinition",tokenize:xl,continuation:{tokenize:kl},exit:ml}},text:{[I.leftSquareBracket]:{name:"gfmFootnoteCall",tokenize:vl},[I.rightSquareBracket]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:gl,resolveTo:hl}}}}function gl(Q,$,Y){let G=this,K=G.events.length,H=G.parser.gfmFootnotes||(G.parser.gfmFootnotes=[]),B;while(K--){let F=G.events[K][1];if(F.type===P.labelImage){B=F;break}if(F.type==="gfmFootnoteCall"||F.type===P.labelLink||F.type===P.label||F.type===P.image||F.type===P.link)break}return z;function z(F){if(v(F===I.rightSquareBracket,"expected `]`"),!B||!B._balanced)return Y(F);let R=I4(G.sliceSerialize({start:B.end,end:G.now()}));if(R.codePointAt(0)!==I.caret||!H.includes(R.slice(1)))return Y(F);return Q.enter("gfmFootnoteCallLabelMarker"),Q.consume(F),Q.exit("gfmFootnoteCallLabelMarker"),$(F)}}function hl(Q,$){let Y=Q.length,G;while(Y--)if(Q[Y][1].type===P.labelImage&&Q[Y][0]==="enter"){G=Q[Y][1];break}v(G,"expected `labelStart` to resolve"),Q[Y+1][1].type=P.data,Q[Y+3][1].type="gfmFootnoteCallLabelMarker";let K={type:"gfmFootnoteCall",start:Object.assign({},Q[Y+3][1].start),end:Object.assign({},Q[Q.length-1][1].end)},H={type:"gfmFootnoteCallMarker",start:Object.assign({},Q[Y+3][1].end),end:Object.assign({},Q[Y+3][1].end)};H.end.column++,H.end.offset++,H.end._bufferIndex++;let B={type:"gfmFootnoteCallString",start:Object.assign({},H.end),end:Object.assign({},Q[Q.length-1][1].start)},z={type:P.chunkString,contentType:"string",start:Object.assign({},B.start),end:Object.assign({},B.end)},F=[Q[Y+1],Q[Y+2],["enter",K,$],Q[Y+3],Q[Y+4],["enter",H,$],["exit",H,$],["enter",B,$],["enter",z,$],["exit",z,$],["exit",B,$],Q[Q.length-2],Q[Q.length-1],["exit",K,$]];return Q.splice(Y,Q.length-Y+1,...F),Q}function vl(Q,$,Y){let G=this,K=G.parser.gfmFootnotes||(G.parser.gfmFootnotes=[]),H=0,B;return z;function z(L){return v(L===I.leftSquareBracket,"expected `[`"),Q.enter("gfmFootnoteCall"),Q.enter("gfmFootnoteCallLabelMarker"),Q.consume(L),Q.exit("gfmFootnoteCallLabelMarker"),F}function F(L){if(L!==I.caret)return Y(L);return Q.enter("gfmFootnoteCallMarker"),Q.consume(L),Q.exit("gfmFootnoteCallMarker"),Q.enter("gfmFootnoteCallString"),Q.enter("chunkString").contentType="string",R}function R(L){if(H>N0.linkReferenceSizeMax||L===I.rightSquareBracket&&!B||L===I.eof||L===I.leftSquareBracket||b1(L))return Y(L);if(L===I.rightSquareBracket){Q.exit("chunkString");let O=Q.exit("gfmFootnoteCallString");if(!K.includes(I4(G.sliceSerialize(O))))return Y(L);return Q.enter("gfmFootnoteCallLabelMarker"),Q.consume(L),Q.exit("gfmFootnoteCallLabelMarker"),Q.exit("gfmFootnoteCall"),$}if(!b1(L))B=!0;return H++,Q.consume(L),L===I.backslash?N:R}function N(L){if(L===I.leftSquareBracket||L===I.backslash||L===I.rightSquareBracket)return Q.consume(L),H++,R;return R(L)}}function xl(Q,$,Y){let G=this,K=G.parser.gfmFootnotes||(G.parser.gfmFootnotes=[]),H,B=0,z;return F;function F(C){return v(C===I.leftSquareBracket,"expected `[`"),Q.enter("gfmFootnoteDefinition")._container=!0,Q.enter("gfmFootnoteDefinitionLabel"),Q.enter("gfmFootnoteDefinitionLabelMarker"),Q.consume(C),Q.exit("gfmFootnoteDefinitionLabelMarker"),R}function R(C){if(C===I.caret)return Q.enter("gfmFootnoteDefinitionMarker"),Q.consume(C),Q.exit("gfmFootnoteDefinitionMarker"),Q.enter("gfmFootnoteDefinitionLabelString"),Q.enter("chunkString").contentType="string",N;return Y(C)}function N(C){if(B>N0.linkReferenceSizeMax||C===I.rightSquareBracket&&!z||C===I.eof||C===I.leftSquareBracket||b1(C))return Y(C);if(C===I.rightSquareBracket){Q.exit("chunkString");let D=Q.exit("gfmFootnoteDefinitionLabelString");return H=I4(G.sliceSerialize(D)),Q.enter("gfmFootnoteDefinitionLabelMarker"),Q.consume(C),Q.exit("gfmFootnoteDefinitionLabelMarker"),Q.exit("gfmFootnoteDefinitionLabel"),O}if(!b1(C))z=!0;return B++,Q.consume(C),C===I.backslash?L:N}function L(C){if(C===I.leftSquareBracket||C===I.backslash||C===I.rightSquareBracket)return Q.consume(C),B++,N;return N(C)}function O(C){if(C===I.colon){if(Q.enter("definitionMarker"),Q.consume(C),Q.exit("definitionMarker"),!K.includes(H))K.push(H);return t0(Q,A,"gfmFootnoteDefinitionWhitespace")}return Y(C)}function A(C){return $(C)}}function kl(Q,$,Y){return Q.check(i9,$,Q.attempt(yl,$,Y))}function ml(Q){Q.exit("gfmFootnoteDefinition")}function ul(Q,$,Y){let G=this;return t0(Q,K,"gfmFootnoteDefinitionIndent",N0.tabSize+1);function K(H){let B=G.events[G.events.length-1];return B&&B[1].type==="gfmFootnoteDefinitionIndent"&&B[2].sliceSerialize(B[1],!0).length===N0.tabSize?$(H):Y(H)}}function dF(Q){let Y=(Q||{}).singleTilde,G={name:"strikethrough",tokenize:H,resolveAll:K};if(Y===null||Y===void 0)Y=!0;return{text:{[I.tilde]:G},insideSpan:{null:[G]},attentionMarkers:{null:[I.tilde]}};function K(B,z){let F=-1;while(++F<B.length)if(B[F][0]==="enter"&&B[F][1].type==="strikethroughSequenceTemporary"&&B[F][1]._close){let R=F;while(R--)if(B[R][0]==="exit"&&B[R][1].type==="strikethroughSequenceTemporary"&&B[R][1]._open&&B[F][1].end.offset-B[F][1].start.offset===B[R][1].end.offset-B[R][1].start.offset){B[F][1].type="strikethroughSequence",B[R][1].type="strikethroughSequence";let N={type:"strikethrough",start:Object.assign({},B[R][1].start),end:Object.assign({},B[F][1].end)},L={type:"strikethroughText",start:Object.assign({},B[R][1].end),end:Object.assign({},B[F][1].start)},O=[["enter",N,z],["enter",B[R][1],z],["exit",B[R][1],z],["enter",L,z]],A=z.parser.constructs.insideSpan.null;if(A)C5(O,O.length,0,g7(A,B.slice(R+1,F),z));C5(O,O.length,0,[["exit",L,z],["enter",B[F][1],z],["exit",B[F][1],z],["exit",N,z]]),C5(B,R-1,F-R+3,O),F=R+O.length-2;break}}F=-1;while(++F<B.length)if(B[F][1].type==="strikethroughSequenceTemporary")B[F][1].type=P.data;return B}function H(B,z,F){let R=this.previous,N=this.events,L=0;return O;function O(C){if(v(C===I.tilde,"expected `~`"),R===I.tilde&&N[N.length-1][1].type!==P.characterEscape)return F(C);return B.enter("strikethroughSequenceTemporary"),A(C)}function A(C){let D=w6(R);if(C===I.tilde){if(L>1)return F(C);return B.consume(C),L++,A}if(L<2&&!Y)return F(C);let b=B.exit("strikethroughSequenceTemporary"),y=w6(C);return b._open=!y||y===N0.attentionSideAfter&&Boolean(D),b._close=!D||D===N0.attentionSideAfter&&Boolean(y),z(C)}}}class iF{constructor(){this.map=[]}add(Q,$,Y){fl(this,Q,$,Y)}consume(Q){if(this.map.sort(function(K,H){return K[0]-H[0]}),this.map.length===0)return;let $=this.map.length,Y=[];while($>0)$-=1,Y.push(Q.slice(this.map[$][0]+this.map[$][1]),this.map[$][2]),Q.length=this.map[$][0];Y.push(Q.slice()),Q.length=0;let G=Y.pop();while(G){for(let K of G)Q.push(K);G=Y.pop()}this.map.length=0}}function fl(Q,$,Y,G){let K=0;if(Y===0&&G.length===0)return;while(K<Q.map.length){if(Q.map[K][0]===$){Q.map[K][1]+=Y,Q.map[K][2].push(...G);return}K+=1}Q.map.push([$,Y,G])}function qD(Q,$){v(Q[$][1].type==="table","expected table");let Y=!1,G=[];while($<Q.length){let K=Q[$];if(Y){if(K[0]==="enter"){if(K[1].type==="tableContent")G.push(Q[$+1][1].type==="tableDelimiterMarker"?"left":"none")}else if(K[1].type==="tableContent"){if(Q[$-1][1].type==="tableDelimiterMarker"){let H=G.length-1;G[H]=G[H]==="left"?"center":"right"}}else if(K[1].type==="tableDelimiterRow")break}else if(K[0]==="enter"&&K[1].type==="tableDelimiterRow")Y=!0;$+=1}return G}function cF(){return{flow:{null:{name:"table",tokenize:pl,resolveAll:ll}}}}function pl(Q,$,Y){let G=this,K=0,H=0,B;return z;function z(E){let _0=G.events.length-1;while(_0>-1){let z0=G.events[_0][1].type;if(z0===P.lineEnding||z0===P.linePrefix)_0--;else break}let t=_0>-1?G.events[_0][1].type:null,n=t==="tableHead"||t==="tableRow"?g:F;if(n===g&&G.parser.lazy[G.now().line])return Y(E);return n(E)}function F(E){return Q.enter("tableHead"),Q.enter("tableRow"),R(E)}function R(E){if(E===I.verticalBar)return N(E);return B=!0,H+=1,N(E)}function N(E){if(E===I.eof)return Y(E);if(w0(E)){if(H>1)return H=0,G.interrupt=!0,Q.exit("tableRow"),Q.enter(P.lineEnding),Q.consume(E),Q.exit(P.lineEnding),A;return Y(E)}if(o0(E))return t0(Q,N,P.whitespace)(E);if(H+=1,B)B=!1,K+=1;if(E===I.verticalBar)return Q.enter("tableCellDivider"),Q.consume(E),Q.exit("tableCellDivider"),B=!0,N;return Q.enter(P.data),L(E)}function L(E){if(E===I.eof||E===I.verticalBar||b1(E))return Q.exit(P.data),N(E);return Q.consume(E),E===I.backslash?O:L}function O(E){if(E===I.backslash||E===I.verticalBar)return Q.consume(E),L;return L(E)}function A(E){if(G.interrupt=!1,G.parser.lazy[G.now().line])return Y(E);if(Q.enter("tableDelimiterRow"),B=!1,o0(E))return v(G.parser.constructs.disable.null,"expected `disabled.null`"),t0(Q,C,P.linePrefix,G.parser.constructs.disable.null.includes("codeIndented")?void 0:N0.tabSize)(E);return C(E)}function C(E){if(E===I.dash||E===I.colon)return b(E);if(E===I.verticalBar)return B=!0,Q.enter("tableCellDivider"),Q.consume(E),Q.exit("tableCellDivider"),D;return s(E)}function D(E){if(o0(E))return t0(Q,b,P.whitespace)(E);return b(E)}function b(E){if(E===I.colon)return H+=1,B=!0,Q.enter("tableDelimiterMarker"),Q.consume(E),Q.exit("tableDelimiterMarker"),y;if(E===I.dash)return H+=1,y(E);if(E===I.eof||w0(E))return a(E);return s(E)}function y(E){if(E===I.dash)return Q.enter("tableDelimiterFiller"),k(E);return s(E)}function k(E){if(E===I.dash)return Q.consume(E),k;if(E===I.colon)return B=!0,Q.exit("tableDelimiterFiller"),Q.enter("tableDelimiterMarker"),Q.consume(E),Q.exit("tableDelimiterMarker"),f;return Q.exit("tableDelimiterFiller"),f(E)}function f(E){if(o0(E))return t0(Q,a,P.whitespace)(E);return a(E)}function a(E){if(E===I.verticalBar)return C(E);if(E===I.eof||w0(E)){if(!B||K!==H)return s(E);return Q.exit("tableDelimiterRow"),Q.exit("tableHead"),$(E)}return s(E)}function s(E){return Y(E)}function g(E){return Q.enter("tableRow"),c(E)}function c(E){if(E===I.verticalBar)return Q.enter("tableCellDivider"),Q.consume(E),Q.exit("tableCellDivider"),c;if(E===I.eof||w0(E))return Q.exit("tableRow"),$(E);if(o0(E))return t0(Q,c,P.whitespace)(E);return Q.enter(P.data),h(E)}function h(E){if(E===I.eof||E===I.verticalBar||b1(E))return Q.exit(P.data),c(E);return Q.consume(E),E===I.backslash?Z0:h}function Z0(E){if(E===I.backslash||E===I.verticalBar)return Q.consume(E),h;return h(E)}}function ll(Q,$){let Y=-1,G=!0,K=0,H=[0,0,0,0],B=[0,0,0,0],z=!1,F=0,R,N,L,O=new iF;while(++Y<Q.length){let A=Q[Y],C=A[1];if(A[0]==="enter"){if(C.type==="tableHead"){if(z=!1,F!==0)v(R,"there should be a table opening"),GD(O,$,F,R,N),N=void 0,F=0;R={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},O.add(Y,0,[["enter",R,$]])}else if(C.type==="tableRow"||C.type==="tableDelimiterRow"){if(G=!0,L=void 0,H=[0,0,0,0],B=[0,Y+1,0,0],z)z=!1,N={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},O.add(Y,0,[["enter",N,$]]);K=C.type==="tableDelimiterRow"?2:N?3:1}else if(K&&(C.type===P.data||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")){if(G=!1,B[2]===0){if(H[1]!==0)B[0]=B[1],L=mG(O,$,H,K,void 0,L),H=[0,0,0,0];B[2]=Y}}else if(C.type==="tableCellDivider")if(G)G=!1;else{if(H[1]!==0)B[0]=B[1],L=mG(O,$,H,K,void 0,L);H=B,B=[H[1],Y,0,0]}}else if(C.type==="tableHead")z=!0,F=Y;else if(C.type==="tableRow"||C.type==="tableDelimiterRow"){if(F=Y,H[1]!==0)B[0]=B[1],L=mG(O,$,H,K,Y,L);else if(B[1]!==0)L=mG(O,$,B,K,Y,L);K=0}else if(K&&(C.type===P.data||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller"))B[3]=Y}if(F!==0)v(R,"expected table opening"),GD(O,$,F,R,N);O.consume($.events),Y=-1;while(++Y<$.events.length){let A=$.events[Y];if(A[0]==="enter"&&A[1].type==="table")A[1]._align=qD($.events,Y)}return Q}function mG(Q,$,Y,G,K,H){let B=G===1?"tableHeader":G===2?"tableDelimiter":"tableData",z="tableContent";if(Y[0]!==0)v(H,"expected previous cell enter"),H.end=Object.assign({},J3($.events,Y[0])),Q.add(Y[0],0,[["exit",H,$]]);let F=J3($.events,Y[1]);if(H={type:B,start:Object.assign({},F),end:Object.assign({},F)},Q.add(Y[1],0,[["enter",H,$]]),Y[2]!==0){let R=J3($.events,Y[2]),N=J3($.events,Y[3]),L={type:"tableContent",start:Object.assign({},R),end:Object.assign({},N)};if(Q.add(Y[2],0,[["enter",L,$]]),v(Y[3]!==0),G!==2){let O=$.events[Y[2]],A=$.events[Y[3]];if(O[1].end=Object.assign({},A[1].end),O[1].type=P.chunkText,O[1].contentType=N0.contentTypeText,Y[3]>Y[2]+1){let C=Y[2]+1,D=Y[3]-Y[2]-1;Q.add(C,D,[])}}Q.add(Y[3]+1,0,[["exit",L,$]])}if(K!==void 0)H.end=Object.assign({},J3($.events,K)),Q.add(K,0,[["exit",H,$]]),H=void 0;return H}function GD(Q,$,Y,G,K){let H=[],B=J3($.events,Y);if(K)K.end=Object.assign({},B),H.push(["exit",K,$]);G.end=Object.assign({},B),H.push(["exit",G,$]),Q.add(Y+1,0,H)}function J3(Q,$){let Y=Q[$],G=Y[0]==="enter"?"start":"end";return Y[1][G]}var dl={name:"tasklistCheck",tokenize:il};function rF(){return{text:{[I.leftSquareBracket]:dl}}}function il(Q,$,Y){let G=this;return K;function K(F){if(v(F===I.leftSquareBracket,"expected `[`"),G.previous!==I.eof||!G._gfmTasklistFirstContentOfListItem)return Y(F);return Q.enter("taskListCheck"),Q.enter("taskListCheckMarker"),Q.consume(F),Q.exit("taskListCheckMarker"),H}function H(F){if(b1(F))return Q.enter("taskListCheckValueUnchecked"),Q.consume(F),Q.exit("taskListCheckValueUnchecked"),B;if(F===I.uppercaseX||F===I.lowercaseX)return Q.enter("taskListCheckValueChecked"),Q.consume(F),Q.exit("taskListCheckValueChecked"),B;return Y(F)}function B(F){if(F===I.rightSquareBracket)return Q.enter("taskListCheckMarker"),Q.consume(F),Q.exit("taskListCheckMarker"),Q.exit("taskListCheck"),z;return Y(F)}function z(F){if(w0(F))return $(F);if(o0(F))return Q.check({tokenize:cl},$,Y)(F);return Y(F)}}function cl(Q,$,Y){return t0(Q,G,P.whitespace);function G(K){return K===I.eof?Y(K):$(K)}}function KD(Q){return HG([fF(),lF(),dF(Q),cF(),rF()])}var rl={};function uG(Q){let $=this,Y=Q||rl,G=$.data(),K=G.micromarkExtensions||(G.micromarkExtensions=[]),H=G.fromMarkdownExtensions||(G.fromMarkdownExtensions=[]),B=G.toMarkdownExtensions||(G.toMarkdownExtensions=[]);K.push(KD(Y)),H.push(kF()),B.push(mF(Y))}var U4=J0(Q1(),1),HD=WD.forwardRef(({markdown:Q,className:$="",sectionType:Y,enableGFM:G=!0,onDocLinkClick:K},H)=>{let{isDark:B}=F5();if(!Q)return null;let z=rP(xX(Q,Y)),F=B?"inline-flex items-center gap-1 px-1 py-1 rounded-md text-sm font-medium transition-all hover:scale-105 bg-green-900/20 border border-green-500/30 text-green-300 hover:bg-green-900/30 hover:border-green-500/50":"inline-flex items-center gap-1 px-1 py-1 rounded-md text-sm font-medium transition-all hover:scale-105 bg-green-100/50 border border-green-500/30 text-green-700 hover:bg-green-100 hover:border-green-500/50",R=B?"inline-flex items-center gap-1 px-1 py-1 rounded-md text-sm font-medium transition-all hover:scale-105 bg-blue-900/20 border border-blue-500/30 text-blue-300 hover:bg-blue-900/30 hover:border-blue-500/50":"inline-flex items-center gap-1 px-1 py-1 rounded-md text-sm font-medium transition-all hover:scale-105 bg-blue-100/50 border border-blue-500/30 text-blue-700 hover:bg-blue-100 hover:border-blue-500/50",N=({href:L,children:O})=>{if(L&&/^(task-)?\d+(\.md)?$/.test(L)){let A=L.replace(/^task-/,"").replace(/\.md$/,""),C=`#/tasks/${A}`;return U4.jsxDEV("a",{href:C,className:F,"data-task-id":A,children:[U4.jsxDEV(_6,{className:"w-4 h-4 shrink-0"},void 0,!1,void 0,this),O]},void 0,!0,void 0,this)}if(L&&(L.endsWith(".md")||L.includes(".md#"))){let A=L.replace(/^\.\//,""),C=`#/docs/${A}`;return U4.jsxDEV("a",{href:C,className:R,"data-doc-path":A,onClick:(D)=>{if(K)D.preventDefault(),K(A)},children:[U4.jsxDEV(O4,{className:"w-4 h-4 shrink-0"},void 0,!1,void 0,this),O]},void 0,!0,void 0,this)}return U4.jsxDEV("a",{href:L,target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 hover:text-blue-600 underline",children:O},void 0,!1,void 0,this)};return U4.jsxDEV("div",{ref:H,className:`prose prose-sm max-w-none ${B?"prose-invert":""} ${$}`,children:U4.jsxDEV(WF,{remarkPlugins:G?[uG]:[],components:{a:N,code:({className:L,children:O,...A})=>{if(!L)return U4.jsxDEV("code",{className:`px-1.5 py-0.5 rounded text-sm ${B?"bg-gray-700 text-gray-200":"bg-gray-100 text-gray-800"}`,...A,children:O},void 0,!1,void 0,this);return U4.jsxDEV("code",{className:L,...A,children:O},void 0,!1,void 0,this)},pre:({children:L})=>U4.jsxDEV("pre",{className:`overflow-x-auto rounded-lg p-4 text-sm ${B?"bg-gray-900":"bg-gray-100"}`,children:L},void 0,!1,void 0,this),table:({children:L})=>U4.jsxDEV("div",{className:"overflow-x-auto my-4",children:U4.jsxDEV("table",{className:"min-w-full border-collapse",children:L},void 0,!1,void 0,this)},void 0,!1,void 0,this),th:({children:L})=>U4.jsxDEV("th",{className:`px-4 py-2 text-left font-semibold border ${B?"bg-gray-700 text-gray-100 border-gray-600":"bg-gray-100 text-gray-900 border-gray-200"}`,children:L},void 0,!1,void 0,this),td:({children:L})=>U4.jsxDEV("td",{className:`px-4 py-2 border ${B?"border-gray-600 text-gray-200":"border-gray-200 text-gray-700"}`,children:L},void 0,!1,void 0,this),input:({type:L,checked:O,...A})=>{if(L==="checkbox")return U4.jsxDEV("input",{type:"checkbox",checked:O,readOnly:!0,className:"mr-2 accent-blue-600",...A},void 0,!1,void 0,this);return U4.jsxDEV("input",{type:L,...A},void 0,!1,void 0,this)}},children:z},void 0,!1,void 0,this)},void 0,!1,void 0,this)});HD.displayName="MarkdownRenderer";var $3=HD;var S0=J0(Q1(),1);function aF(){let{isDark:Q}=F5(),[$,Y]=G5.useState([]),[G,K]=G5.useState(!0),[H,B]=G5.useState(null),[z,F]=G5.useState(!1),[R,N]=G5.useState(""),[L,O]=G5.useState(!1),[A,C]=G5.useState(!1),[D,b]=G5.useState(""),[y,k]=G5.useState(""),[f,a]=G5.useState(""),[s,g]=G5.useState(""),[c,h]=G5.useState(""),[Z0,E]=G5.useState(!1),[_0,t]=G5.useState(new Set(["(root)"])),[n,z0]=G5.useState(!1),o=G5.useRef(null),H0=Q?"bg-gray-800":"bg-white",G0=Q?"text-gray-200":"text-gray-900",e=Q?"text-gray-400":"text-gray-600",U0=Q?"border-gray-700":"border-gray-200",T=Q?"hover:bg-gray-700":"hover:bg-gray-50";G5.useEffect(()=>{r()},[]);let B0=G5.useCallback(()=>{if($.length===0)return;let Y1=window.location.hash.match(/^#\/docs\/(.+)$/);if(Y1){let e0=decodeURIComponent(Y1[1]).replace(/^\.\//,"").replace(/^\//,""),s0=$.find((h1)=>{return h1.path===e0||h1.path.endsWith(`/${e0}`)||h1.filename===e0});if(s0&&s0!==H)B(s0),F(!1)}},[$,H]);G5.useEffect(()=>{B0()},[B0]),G5.useEffect(()=>{if(!H||!H.folder)return;let h0=H.folder.split("/"),Y1=[],H1="";for(let e0 of h0)H1=H1?`${H1}/${e0}`:e0,Y1.push(H1);t((e0)=>{let s0=new Set(e0);for(let h1 of Y1)s0.add(h1);return s0})},[H]),G5.useEffect(()=>{return window.addEventListener("hashchange",B0),()=>window.removeEventListener("hashchange",B0)},[B0]),G5.useEffect(()=>{let h0=(H1)=>{let e0=H1.target;while(e0&&e0.tagName!=="A"&&e0!==o.current)e0=e0.parentElement;if(e0&&e0.tagName==="A"){let h1=e0.getAttribute("href");if(h1&&/^task-\d+(.md)?$/.test(h1)){H1.preventDefault();let c0=h1.replace(".md","");window.location.hash=`/tasks?task=${c0}`;return}if(h1&&(h1.endsWith(".md")||h1.includes(".md#"))){H1.preventDefault();let c0=h1.replace(/^\.\//,"").replace(/^\//,"");c0=c0.split("#")[0],window.location.hash=`/docs/${c0}`}}},Y1=o.current;if(Y1)return Y1.addEventListener("click",h0),()=>Y1.removeEventListener("click",h0)},[$,H]);let r=()=>{fetch("/api/docs").then((h0)=>h0.json()).then((h0)=>{Y(h0.docs||[]),K(!1)}).catch((h0)=>{console.error("Failed to load docs:",h0),K(!1)})},S=async()=>{if(!D.trim()){alert("Please enter a title");return}E(!0);try{let h0=f.split(",").map((H1)=>H1.trim()).filter((H1)=>H1);if(!(await fetch("/api/docs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:D,description:y,tags:h0,folder:s,content:c})})).ok)throw Error("Failed to create document");b(""),k(""),a(""),g(""),h(""),C(!1),r()}catch(h0){console.error("Failed to create doc:",h0),alert("Failed to create document. Please try again.")}finally{E(!1)}},L0=()=>{if(H)N(H.content),F(!0)},A0=()=>{if(H){let h0=`${window.location.origin}${window.location.pathname}#/docs/${H.path}`;navigator.clipboard.writeText(h0).then(()=>{z0(!0),setTimeout(()=>z0(!1),2000)})}},V0=async()=>{if(!H)return;O(!0);try{console.log("Saving doc:",H.filename,R),F(!1),r()}catch(h0){console.error("Failed to save doc:",h0)}finally{O(!1)}},C0=()=>{F(!1),N("")},u0=(h0)=>{t((Y1)=>{let H1=new Set(Y1);if(H1.has(h0))H1.delete(h0);else H1.add(h0);return H1})},$1=()=>{let h0={name:"(root)",path:"",docs:[],children:new Map};for(let Y1 of $)if(!Y1.folder)h0.docs.push(Y1);else{let H1=Y1.folder.split("/"),e0=h0;for(let s0=0;s0<H1.length;s0++){let h1=H1[s0],c0=H1.slice(0,s0+1).join("/");if(!e0.children.has(h1))e0.children.set(h1,{name:h1,path:c0,docs:[],children:new Map});e0=e0.children.get(h1)}e0.docs.push(Y1)}return h0},v1=(h0)=>{let Y1=h0.docs.length;for(let H1 of h0.children.values())Y1+=v1(H1);return Y1},R0=(h0,Y1=0)=>{let H1=[],e0=Y1===0||_0.has(h0.path),s0=`${Y1*16}px`;if(Y1>0){let h1=v1(h0);H1.push(S0.jsxDEV("button",{type:"button",onClick:()=>u0(h0.path),className:`w-full flex items-center gap-2 px-3 py-2 ${T} ${G0} transition-colors`,style:{paddingLeft:s0},children:[e0?S0.jsxDEV(mQ,{className:"w-4 h-4"},void 0,!1,void 0,this):S0.jsxDEV(uQ,{className:"w-4 h-4"},void 0,!1,void 0,this),e0?S0.jsxDEV(cQ,{className:"w-4 h-4"},void 0,!1,void 0,this):S0.jsxDEV(zX,{className:"w-4 h-4"},void 0,!1,void 0,this),S0.jsxDEV("span",{className:"text-sm font-medium",children:h0.name},void 0,!1,void 0,this),S0.jsxDEV("span",{className:`text-xs ${e}`,children:["(",h1,")"]},void 0,!0,void 0,this)]},`folder-${h0.path}`,!0,void 0,this))}if(e0||Y1===0){let h1=Array.from(h0.children.values()).sort((D1,X1)=>D1.name.localeCompare(X1.name));for(let D1 of h1)H1.push(...R0(D1,Y1+1));let c0=[...h0.docs].sort((D1,X1)=>D1.metadata.title.localeCompare(X1.metadata.title));for(let D1 of c0)H1.push(S0.jsxDEV("button",{type:"button",onClick:()=>{window.location.hash=`/docs/${D1.path}`},className:`w-full text-left px-3 py-2 flex items-center gap-2 ${T} ${G0} transition-colors ${H?.path===D1.path?Q?"bg-gray-700":"bg-gray-100":""}`,style:{paddingLeft:`${(Y1+1)*16}px`},children:[S0.jsxDEV(O4,{className:"w-5 h-5"},void 0,!1,void 0,this),S0.jsxDEV("div",{className:"flex-1 min-w-0",children:[S0.jsxDEV("div",{className:"text-sm font-medium truncate",children:D1.metadata.title},void 0,!1,void 0,this),D1.metadata.description&&S0.jsxDEV("div",{className:`text-xs ${e} truncate`,children:D1.metadata.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},`doc-${D1.path}`,!0,void 0,this))}return H1};if(G)return S0.jsxDEV("div",{className:"p-6 flex items-center justify-center h-64",children:S0.jsxDEV("div",{className:`text-lg ${e}`,children:"Loading documentation..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);return S0.jsxDEV("div",{className:"p-6",children:[S0.jsxDEV("div",{className:"mb-6 flex items-center justify-between",children:[S0.jsxDEV("h1",{className:`text-2xl font-bold ${G0}`,children:"Documentation"},void 0,!1,void 0,this),S0.jsxDEV("button",{type:"button",onClick:()=>C(!0),className:"px-4 py-2 bg-green-600 text-white text-sm font-medium rounded-lg hover:bg-green-700 flex items-center gap-2 transition-colors",children:[S0.jsxDEV(X4,{className:"w-4 h-4"},void 0,!1,void 0,this),"New Document"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[S0.jsxDEV("div",{className:"lg:col-span-1",children:[S0.jsxDEV("div",{className:`${H0} rounded-lg border ${U0} overflow-hidden`,children:[S0.jsxDEV("div",{className:`p-4 border-b ${U0}`,children:S0.jsxDEV("h2",{className:`font-semibold ${G0}`,children:["All Documents (",$.length,")"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),S0.jsxDEV("div",{className:"max-h-[600px] overflow-y-auto",children:R0($1())},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.length===0&&S0.jsxDEV("div",{className:`${H0} rounded-lg border ${U0} p-8 text-center`,children:[S0.jsxDEV(O4,{className:"w-5 h-5"},void 0,!1,void 0,this),S0.jsxDEV("p",{className:`mt-2 ${e}`,children:"No documentation found"},void 0,!1,void 0,this),S0.jsxDEV("p",{className:`text-sm ${e} mt-1`,children:["Create a doc with: ",S0.jsxDEV("code",{className:"font-mono",children:'knowns doc create "Title"'},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{className:"lg:col-span-2",children:H?S0.jsxDEV("div",{className:`${H0} rounded-lg border ${U0} overflow-hidden`,children:[S0.jsxDEV("div",{className:"p-6 border-b border-gray-700 flex items-start justify-between",children:[S0.jsxDEV("div",{className:"flex-1",children:[S0.jsxDEV("h2",{className:`text-2xl font-bold ${G0} mb-2`,children:H.metadata.title},void 0,!1,void 0,this),H.metadata.description&&S0.jsxDEV("p",{className:`${e} mb-2`,children:H.metadata.description},void 0,!1,void 0,this),S0.jsxDEV("button",{type:"button",onClick:A0,className:`flex items-center gap-2 px-2 py-1 rounded text-xs ${e} ${T} transition-colors group`,title:"Click to copy URL",children:[S0.jsxDEV(zX,{className:"w-4 h-4"},void 0,!1,void 0,this),S0.jsxDEV("span",{className:"font-mono",children:["/docs/",H.path]},void 0,!0,void 0,this),S0.jsxDEV("span",{className:"opacity-0 group-hover:opacity-100 transition-opacity",children:n?"✓":S0.jsxDEV(lQ,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{className:`text-sm ${e} mt-2`,children:["Last updated: ",new Date(H.metadata.updatedAt).toLocaleString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{className:"flex gap-2 ml-4",children:!z?S0.jsxDEV("button",{type:"button",onClick:L0,className:"px-3 py-2 bg-blue-600 text-white text-sm font-medium rounded-lg hover:bg-blue-700 flex items-center gap-2 transition-colors",children:[S0.jsxDEV(D8,{className:"w-4 h-4"},void 0,!1,void 0,this),"Edit"]},void 0,!0,void 0,this):S0.jsxDEV(S0.Fragment,{children:[S0.jsxDEV("button",{type:"button",onClick:V0,disabled:L,className:"px-3 py-2 bg-green-600 text-white text-sm font-medium rounded-lg hover:bg-green-700 disabled:opacity-50 flex items-center gap-2 transition-colors",children:[S0.jsxDEV(M7,{className:"w-4 h-4"},void 0,!1,void 0,this),L?"Saving...":"Save"]},void 0,!0,void 0,this),S0.jsxDEV("button",{type:"button",onClick:C0,disabled:L,className:`px-3 py-2 ${Q?"bg-gray-700 hover:bg-gray-600":"bg-gray-200 hover:bg-gray-300"} ${G0} text-sm font-medium rounded-lg disabled:opacity-50 flex items-center gap-2 transition-colors`,children:[S0.jsxDEV(L2,{className:"w-4 h-4"},void 0,!1,void 0,this),"Cancel"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{className:"p-6",children:z?S0.jsxDEV(V6,{markdown:R,onChange:N,placeholder:"Write your documentation here..."},void 0,!1,void 0,this):S0.jsxDEV($3,{ref:o,markdown:H.content||"",className:G0,enableGFM:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):S0.jsxDEV("div",{className:`${H0} rounded-lg border ${U0} p-12 text-center`,children:[S0.jsxDEV(O4,{className:"w-5 h-5"},void 0,!1,void 0,this),S0.jsxDEV("p",{className:`mt-4 ${e}`,children:"Select a document to view its content"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A&&S0.jsxDEV("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4",children:S0.jsxDEV("div",{className:`${H0} rounded-lg shadow-xl max-w-2xl w-full max-h-[90vh] overflow-y-auto`,children:[S0.jsxDEV("div",{className:`p-6 border-b ${U0}`,children:S0.jsxDEV("h2",{className:`text-xl font-bold ${G0}`,children:"Create New Document"},void 0,!1,void 0,this)},void 0,!1,void 0,this),S0.jsxDEV("div",{className:"p-6 space-y-4",children:[S0.jsxDEV("div",{children:[S0.jsxDEV("label",{className:`block text-sm font-medium ${G0} mb-2`,children:"Title *"},void 0,!1,void 0,this),S0.jsxDEV("input",{type:"text",value:D,onChange:(h0)=>b(h0.target.value),placeholder:"Document title",className:`w-full px-3 py-2 rounded-lg border ${U0} ${Q?"bg-gray-700 text-gray-200":"bg-white text-gray-900"} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{children:[S0.jsxDEV("label",{className:`block text-sm font-medium ${G0} mb-2`,children:"Description"},void 0,!1,void 0,this),S0.jsxDEV("input",{type:"text",value:y,onChange:(h0)=>k(h0.target.value),placeholder:"Brief description",className:`w-full px-3 py-2 rounded-lg border ${U0} ${Q?"bg-gray-700 text-gray-200":"bg-white text-gray-900"} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{children:[S0.jsxDEV("label",{className:`block text-sm font-medium ${G0} mb-2`,children:"Folder (optional)"},void 0,!1,void 0,this),S0.jsxDEV("input",{type:"text",value:s,onChange:(h0)=>g(h0.target.value),placeholder:"api/auth, guides, etc. (leave empty for root)",className:`w-full px-3 py-2 rounded-lg border ${U0} ${Q?"bg-gray-700 text-gray-200":"bg-white text-gray-900"} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{children:[S0.jsxDEV("label",{className:`block text-sm font-medium ${G0} mb-2`,children:"Tags (comma-separated)"},void 0,!1,void 0,this),S0.jsxDEV("input",{type:"text",value:f,onChange:(h0)=>a(h0.target.value),placeholder:"guide, tutorial, api",className:`w-full px-3 py-2 rounded-lg border ${U0} ${Q?"bg-gray-700 text-gray-200":"bg-white text-gray-900"} focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{children:[S0.jsxDEV("label",{className:`block text-sm font-medium ${G0} mb-2`,children:"Content"},void 0,!1,void 0,this),S0.jsxDEV(V6,{markdown:c,onChange:h,placeholder:"Write your documentation here..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{className:`p-6 border-t ${U0} flex justify-end gap-3`,children:[S0.jsxDEV("button",{type:"button",onClick:()=>{C(!1),b(""),k(""),a(""),g(""),h("")},disabled:Z0,className:`px-4 py-2 ${Q?"bg-gray-700 hover:bg-gray-600":"bg-gray-200 hover:bg-gray-300"} ${G0} text-sm font-medium rounded-lg disabled:opacity-50 transition-colors`,children:"Cancel"},void 0,!1,void 0,this),S0.jsxDEV("button",{type:"button",onClick:S,disabled:Z0||!D.trim(),className:"px-4 py-2 bg-green-600 text-white text-sm font-medium rounded-lg hover:bg-green-700 disabled:opacity-50 transition-colors",children:Z0?"Creating...":"Create Document"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var KZ=J0(k0(),1);var lJ=J0(k0(),1);var dG=J0(k0(),1);function fG(Q){let $=Q;return{bg:`bg-${$}-100`,darkBg:`bg-${$}-900/50`,text:`text-${$}-700`,darkText:`text-${$}-300`,columnBg:`bg-${$}-50`,columnBorder:`border-${$}-200`,columnBgDark:`bg-${$}-900/30`,columnBorderDark:`border-${$}-800`}}var pG={bg:"bg-gray-100",darkBg:"bg-gray-700",text:"text-gray-700",darkText:"text-gray-300",columnBg:"bg-gray-50",columnBorder:"border-gray-200",columnBgDark:"bg-gray-800",columnBorderDark:"border-gray-700"},lG={todo:"gray","in-progress":"blue","in-review":"purple",done:"green",blocked:"red","on-hold":"yellow",urgent:"orange"};var z4=J0(Q1(),1),BD={todo:"To Do","in-progress":"In Progress","in-review":"In Review",done:"Done",blocked:"Blocked","on-hold":"On Hold",urgent:"Urgent"};function al(Q){if(BD[Q])return BD[Q];return Q.split("-").map(($)=>$.charAt(0).toUpperCase()+$.slice(1)).join(" ")}function nF({task:Q,onClick:$}){let{isDark:Y}=F5(),[G,K]=dG.useState(lG);dG.useEffect(()=>{fetch("/api/config").then((L)=>L.json()).then((L)=>{if(L.config?.statusColors)K(L.config.statusColors)}).catch((L)=>console.error("Failed to load status colors:",L))},[]);let H=G[Q.status]?fG(G[Q.status]):pG,B=(L)=>{L.dataTransfer.setData("taskId",Q.id),L.dataTransfer.effectAllowed="move"},z=(L)=>{if(L.defaultPrevented)return;$?.()},F=Q.acceptanceCriteria.filter((L)=>L.completed).length,R=Q.acceptanceCriteria.length,N=Y?`${H.darkBg} ${H.darkText}`:`${H.bg} ${H.text}`;return z4.jsxDEV("button",{type:"button",className:`rounded-lg shadow hover:shadow-md transition-all p-3 cursor-pointer active:cursor-grabbing select-none w-full text-left ${Y?"bg-gray-700 hover:bg-gray-650":"bg-white"}`,draggable:!0,onDragStart:B,onClick:z,"aria-label":`Task ${Q.id}: ${Q.title}`,children:[z4.jsxDEV("div",{className:"flex items-center justify-between gap-2 mb-1",children:[z4.jsxDEV("span",{className:`text-xs font-mono shrink-0 ${Y?"text-gray-500":"text-gray-400"}`,children:["#",Q.id]},void 0,!0,void 0,this),z4.jsxDEV("div",{className:"flex items-center gap-1 flex-wrap justify-end",children:[z4.jsxDEV("span",{className:`text-xs px-1.5 py-0.5 rounded font-medium ${N}`,children:al(Q.status)},void 0,!1,void 0,this),Q.priority==="high"&&z4.jsxDEV("span",{className:`text-xs px-1.5 py-0.5 rounded font-medium ${Y?"bg-red-900/50 text-red-300":"bg-red-100 text-red-700"}`,children:"HIGH"},void 0,!1,void 0,this),Q.priority==="medium"&&z4.jsxDEV("span",{className:`text-xs px-1.5 py-0.5 rounded font-medium ${Y?"bg-yellow-900/50 text-yellow-300":"bg-yellow-100 text-yellow-700"}`,children:"MED"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z4.jsxDEV("h3",{className:`font-medium text-sm mb-2 line-clamp-2 ${Y?"text-gray-100":"text-gray-900"}`,children:Q.title},void 0,!1,void 0,this),R>0&&z4.jsxDEV("div",{className:`flex items-center gap-2 text-xs mb-2 ${Y?"text-gray-400":"text-gray-500"}`,children:[z4.jsxDEV(C8,{className:"w-3 h-3","aria-hidden":"true"},void 0,!1,void 0,this),z4.jsxDEV("span",{children:[F,"/",R]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.labels.length>0&&z4.jsxDEV("div",{className:"flex flex-wrap gap-1 mb-2",children:Q.labels.map((L)=>z4.jsxDEV("span",{className:`text-xs px-1.5 py-0.5 rounded ${Y?"bg-blue-900/50 text-blue-300":"bg-blue-100 text-blue-700"}`,children:L},L,!1,void 0,this))},void 0,!1,void 0,this),Q.assignee&&z4.jsxDEV("div",{className:`flex items-center gap-1 text-xs mt-2 ${Y?"text-gray-400":"text-gray-600"}`,children:[z4.jsxDEV(O6,{className:"w-3 h-3","aria-hidden":"true"},void 0,!1,void 0,this),z4.jsxDEV("span",{children:Q.assignee},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var k7=J0(Q1(),1),UD={todo:"To Do","in-progress":"In Progress","in-review":"In Review",done:"Done",blocked:"Blocked","on-hold":"On Hold",urgent:"Urgent"};function nl(Q){if(UD[Q])return UD[Q];return Q.split("-").map(($)=>$.charAt(0).toUpperCase()+$.slice(1)).join(" ")}function sF({status:Q,tasks:$,onDrop:Y,onTaskClick:G}){let{isDark:K}=F5(),[H,B]=lJ.useState(!1),[z,F]=lJ.useState(lG);lJ.useEffect(()=>{fetch("/api/config").then((C)=>C.json()).then((C)=>{if(C.config?.statusColors)F(C.config.statusColors)}).catch((C)=>console.error("Failed to load status colors:",C))},[]);let R=z[Q]?fG(z[Q]):pG,N=K?`${R.columnBgDark} ${R.columnBorderDark}`:`${R.columnBg} ${R.columnBorder}`,L=(C)=>{C.preventDefault(),C.dataTransfer.dropEffect="move",B(!0)},O=()=>{B(!1)},A=(C)=>{C.preventDefault(),B(!1);let D=C.dataTransfer.getData("taskId");if(D)Y(D,Q)};return k7.jsxDEV("div",{className:`rounded-lg border-2 p-4 min-w-[380px] max-w-[420px] flex-shrink-0 transition-colors overflow-visible ${N} ${H?"ring-2 ring-blue-400 border-blue-400":""}`,onDragOver:L,onDragLeave:O,onDrop:A,children:[k7.jsxDEV("div",{className:"flex items-center justify-between mb-3",children:[k7.jsxDEV("h2",{className:`font-bold text-sm uppercase tracking-wide ${K?"text-gray-300":"text-gray-700"}`,children:nl(Q)},void 0,!1,void 0,this),k7.jsxDEV("span",{className:`text-xs rounded-full px-2 py-1 font-medium ${K?"text-gray-400 bg-gray-700":"text-gray-500 bg-white"}`,children:$.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k7.jsxDEV("div",{className:"space-y-2 overflow-visible",children:$.length===0?k7.jsxDEV("div",{className:`text-center py-8 text-sm ${K?"text-gray-500":"text-gray-400"}`,children:"No tasks"},void 0,!1,void 0,this):$.map((C)=>k7.jsxDEV(nF,{task:C,onClick:()=>G(C)},C.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var i1=J0(k0(),1);var V4=J0(k0(),1);var z1=J0(Q1(),1);function oF({task:Q,onUpdate:$}){let{isDark:Y}=F5(),[G,K]=V4.useState(!1),[H,B]=V4.useState(!1),[z,F]=V4.useState(0),[R,N]=V4.useState(null),[L,O]=V4.useState(!1),[A,C]=V4.useState(""),[D,b]=V4.useState(""),[y,k]=V4.useState(""),[f,a]=V4.useState(!1),s=Y?"bg-gray-700":"bg-gray-50",g=Y?"text-gray-100":"text-gray-900",c=Y?"text-gray-300":"text-gray-700",h=Y?"text-gray-400":"text-gray-500",Z0=Y?"border-gray-600":"border-gray-300",E=Y?"bg-gray-600 border-gray-500 text-gray-100":"bg-white border-gray-300 text-gray-900";V4.useEffect(()=>{let U0=Q.timeEntries.find((T)=>!T.endedAt);if(U0)K(!0),N(U0.startedAt),F(Date.now()-U0.startedAt.getTime());else K(!1),N(null),F(0)},[Q.timeEntries]),V4.useEffect(()=>{let U0;if(G&&!H&&R)U0=window.setInterval(()=>{F(Date.now()-R.getTime())},1000);return()=>{if(U0)clearInterval(U0)}},[G,H,R]);let _0=async()=>{a(!0);try{let U0={id:crypto.randomUUID(),startedAt:new Date,duration:0},T=await UX(Q.id,{timeEntries:[...Q.timeEntries,U0]});$(T)}catch(U0){console.error("Failed to start timer:",U0)}finally{a(!1)}},t=async()=>{let U0=Q.timeEntries.find((T)=>!T.endedAt);if(!U0)return;a(!0);try{let T=new Date,B0=T.getTime()-U0.startedAt.getTime(),r=Q.timeEntries.map((A0)=>A0.id===U0.id?{...A0,endedAt:T,duration:B0}:A0),S=r.reduce((A0,V0)=>A0+V0.duration,0),L0=await UX(Q.id,{timeEntries:r,timeSpent:S});$(L0),B(!1)}catch(T){console.error("Failed to stop timer:",T)}finally{a(!1)}},n=()=>{B(!0)},z0=()=>{B(!1)},o=async(U0)=>{U0.preventDefault();let T=Number.parseInt(A,10)||0,B0=Number.parseInt(D,10)||0,r=(T*60+B0)*60*1000;if(r<=0)return;a(!0);try{let S=new Date,L0=new Date(S.getTime()-r),A0={id:crypto.randomUUID(),startedAt:L0,endedAt:S,duration:r,note:y.trim()||void 0},V0=[...Q.timeEntries,A0],C0=V0.reduce(($1,v1)=>$1+v1.duration,0),u0=await UX(Q.id,{timeEntries:V0,timeSpent:C0});$(u0),C(""),b(""),k(""),O(!1)}catch(S){console.error("Failed to add manual time:",S)}finally{a(!1)}},H0=V4.useCallback((U0)=>{let T=Math.floor(U0/1000),B0=Math.floor(T/3600),r=Math.floor(T%3600/60),S=T%60;return`${B0.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${S.toString().padStart(2,"0")}`},[]),G0=V4.useCallback((U0)=>{let T=Math.floor(U0/3600000),B0=Math.floor(U0%3600000/60000);if(T>0)return`${T}h ${B0}m`;return`${B0}m`},[]),e=Q.timeEntries.filter((U0)=>U0.endedAt);return z1.jsxDEV("div",{className:"space-y-4",children:[z1.jsxDEV("div",{className:`flex items-center justify-between ${s} rounded-lg p-4`,children:z1.jsxDEV("div",{className:"text-center flex-1",children:[z1.jsxDEV("div",{className:`text-3xl font-mono font-bold ${g}`,children:H0(z)},void 0,!1,void 0,this),z1.jsxDEV("div",{className:`text-xs ${h} mt-1`,children:G?H?"Paused":"Running":"Ready"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"flex justify-center gap-2",children:[!G?z1.jsxDEV("button",{type:"button",onClick:_0,disabled:f,className:"px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 disabled:opacity-50 flex items-center gap-2",children:[z1.jsxDEV(FX,{className:"w-4 h-4","aria-hidden":"true"},void 0,!1,void 0,this),"Start"]},void 0,!0,void 0,this):z1.jsxDEV(z1.Fragment,{children:[H?z1.jsxDEV("button",{type:"button",onClick:z0,disabled:f,className:"px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 disabled:opacity-50 flex items-center gap-2",children:[z1.jsxDEV(FX,{className:"w-4 h-4","aria-hidden":"true"},void 0,!1,void 0,this),"Resume"]},void 0,!0,void 0,this):z1.jsxDEV("button",{type:"button",onClick:n,disabled:f,className:"px-4 py-2 bg-yellow-600 text-white rounded hover:bg-yellow-700 disabled:opacity-50 flex items-center gap-2",children:[z1.jsxDEV(nQ,{className:"w-4 h-4","aria-hidden":"true"},void 0,!1,void 0,this),"Pause"]},void 0,!0,void 0,this),z1.jsxDEV("button",{type:"button",onClick:t,disabled:f,className:"px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 disabled:opacity-50 flex items-center gap-2",children:[z1.jsxDEV(sQ,{className:"w-4 h-4","aria-hidden":"true"},void 0,!1,void 0,this),"Stop"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("button",{type:"button",onClick:()=>O(!L),className:`px-4 py-2 border ${Z0} rounded ${Y?"hover:bg-gray-600 text-gray-300":"hover:bg-gray-50 text-gray-700"} text-sm`,disabled:f,children:"+ Manual Entry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L&&z1.jsxDEV("form",{onSubmit:o,className:`${s} rounded-lg p-4 space-y-3`,children:[z1.jsxDEV("div",{className:"flex gap-4",children:[z1.jsxDEV("div",{children:[z1.jsxDEV("label",{htmlFor:"manual-hours",className:`block text-xs ${h} mb-1`,children:"Hours"},void 0,!1,void 0,this),z1.jsxDEV("input",{id:"manual-hours",type:"number",min:"0",value:A,onChange:(U0)=>C(U0.target.value),className:`w-20 border rounded px-2 py-1 text-sm ${E}`,placeholder:"0",disabled:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{children:[z1.jsxDEV("label",{htmlFor:"manual-minutes",className:`block text-xs ${h} mb-1`,children:"Minutes"},void 0,!1,void 0,this),z1.jsxDEV("input",{id:"manual-minutes",type:"number",min:"0",max:"59",value:D,onChange:(U0)=>b(U0.target.value),className:`w-20 border rounded px-2 py-1 text-sm ${E}`,placeholder:"0",disabled:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{children:[z1.jsxDEV("label",{htmlFor:"manual-note",className:`block text-xs ${h} mb-1`,children:"Note (optional)"},void 0,!1,void 0,this),z1.jsxDEV("input",{id:"manual-note",type:"text",value:y,onChange:(U0)=>k(U0.target.value),className:`w-full border rounded px-2 py-1 text-sm ${E}`,placeholder:"What did you work on?",disabled:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{className:"flex gap-2",children:[z1.jsxDEV("button",{type:"submit",className:"px-3 py-1 bg-blue-600 text-white rounded text-sm hover:bg-blue-700 disabled:opacity-50",disabled:f,children:"Add Time"},void 0,!1,void 0,this),z1.jsxDEV("button",{type:"button",onClick:()=>O(!1),className:`px-3 py-1 border ${Z0} rounded text-sm ${Y?"hover:bg-gray-600 text-gray-300":"hover:bg-gray-100 text-gray-700"}`,disabled:f,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{className:`flex justify-between items-center py-2 border-t ${Z0}`,children:[z1.jsxDEV("span",{className:`text-sm font-medium ${c}`,children:"Total Time Spent"},void 0,!1,void 0,this),z1.jsxDEV("span",{className:`text-lg font-bold ${g}`,children:G0(Q.timeSpent)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.length>0&&z1.jsxDEV("div",{children:[z1.jsxDEV("h4",{className:`text-sm font-medium ${c} mb-2`,children:"Time Log"},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"space-y-1 max-h-40 overflow-y-auto",children:e.slice().reverse().map((U0)=>z1.jsxDEV("div",{className:"flex justify-between items-center text-sm py-1",children:[z1.jsxDEV("div",{className:"flex-1",children:[z1.jsxDEV("span",{className:h,children:[U0.startedAt.toLocaleDateString()," ",U0.startedAt.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]},void 0,!0,void 0,this),U0.note&&z1.jsxDEV("span",{className:`${Y?"text-gray-500":"text-gray-400"} ml-2`,children:["- ",U0.note]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("span",{className:`font-medium ${g}`,children:G0(U0.duration)},void 0,!1,void 0,this)]},U0.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Y0=J0(Q1(),1),zD=[{value:"todo",label:"To Do",lightColor:"bg-gray-100 text-gray-700",darkColor:"bg-gray-700 text-gray-300"},{value:"in-progress",label:"In Progress",lightColor:"bg-blue-100 text-blue-700",darkColor:"bg-blue-900/50 text-blue-300"},{value:"in-review",label:"In Review",lightColor:"bg-purple-100 text-purple-700",darkColor:"bg-purple-900/50 text-purple-300"},{value:"done",label:"Done",lightColor:"bg-green-100 text-green-700",darkColor:"bg-green-900/50 text-green-300"},{value:"blocked",label:"Blocked",lightColor:"bg-red-100 text-red-700",darkColor:"bg-red-900/50 text-red-300"}],FD=[{value:"low",label:"Low",lightColor:"bg-gray-100 text-gray-600",darkColor:"bg-gray-700 text-gray-300"},{value:"medium",label:"Medium",lightColor:"bg-yellow-100 text-yellow-700",darkColor:"bg-yellow-900/50 text-yellow-300"},{value:"high",label:"High",lightColor:"bg-red-100 text-red-700",darkColor:"bg-red-900/50 text-red-300"}];function dJ({task:Q,allTasks:$,onClose:Y,onUpdate:G,onDelete:K,onNavigateToTask:H}){let{isDark:B}=F5(),z=i1.useRef(null),F=i1.useRef(null),[R,N]=i1.useState(!1),[L,O]=i1.useState(""),[A,C]=i1.useState(!1),[D,b]=i1.useState(""),[y,k]=i1.useState(!1),[f,a]=i1.useState(""),[s,g]=i1.useState(!1),[c,h]=i1.useState(""),[Z0,E]=i1.useState(!1),[_0,t]=i1.useState(""),[n,z0]=i1.useState(!1),[o,H0]=i1.useState(null),[G0,e]=i1.useState(""),[U0,T]=i1.useState(""),[B0,r]=i1.useState(!1),[S,L0]=i1.useState(!1),[A0,V0]=i1.useState(""),C0=i1.useRef(null),u0=i1.useRef(null);i1.useEffect(()=>{if(Q)O(Q.title),b(Q.description||""),a(Q.implementationPlan||""),h(Q.implementationNotes||""),V0(Q.assignee||""),z.current?.showModal();else z.current?.close(),N(!1),C(!1),k(!1),g(!1),z0(!1),H0(null),r(!1),L0(!1)},[Q]),i1.useEffect(()=>{let Q0=(m0)=>{let q1=m0.target;while(q1&&q1.tagName!=="A"&&q1!==F.current)q1=q1.parentElement;if(q1&&q1.tagName==="A"){let S1=q1.getAttribute("href");if(S1&&S1.startsWith("#/")){Y();return}if(S1&&/^(task-)?\d+(\.md)?$/.test(S1)){m0.preventDefault();let Q5=S1.replace(/^task-/,"").replace(/\.md$/,"");window.location.hash=`/tasks/${Q5}`,Y();return}if(S1&&(S1.endsWith(".md")||S1.includes(".md#"))){m0.preventDefault();let Q5=S1.replace(/^\.\//,"").replace(/^\//,"");window.location.hash=`/docs/${Q5}`,Y()}}},D0=F.current;if(D0)return D0.addEventListener("click",Q0),()=>D0.removeEventListener("click",Q0)},[$,H,Y]),i1.useEffect(()=>{if(R&&C0.current)C0.current.focus()},[R]),i1.useEffect(()=>{if(n&&u0.current)u0.current.focus()},[n]);let $1=(Q0)=>{if(F.current&&!F.current.contains(Q0.target))Y()},v1=i1.useCallback((Q0)=>{if(Q0.key==="Escape"&&!R&&!A&&!y&&!s&&!n&&!B0)Y()},[Y,R,A,y,s,n,B0]),R0=async(Q0)=>{if(!Q)return;E(!0);try{let D0=await UX(Q.id,Q0);G(D0)}catch(D0){console.error("Failed to update task:",D0)}finally{E(!1)}},h0=()=>{if(L.trim()&&L!==Q?.title)R0({title:L.trim()});N(!1)},Y1=()=>{if(D!==Q?.description)R0({description:D||void 0});C(!1)},H1=()=>{if(f!==Q?.implementationPlan)R0({implementationPlan:f||void 0});k(!1)},e0=()=>{if(c!==Q?.implementationNotes)R0({implementationNotes:c||void 0});g(!1)},s0=(Q0)=>R0({status:Q0}),h1=(Q0)=>R0({priority:Q0}),c0=()=>{let Q0=A0.trim();if(Q0!==Q?.assignee)R0({assignee:Q0||void 0});L0(!1)},D1=(Q0)=>{if(!Q)return;let D0=Q.acceptanceCriteria.map((m0,q1)=>q1===Q0?{...m0,completed:!m0.completed}:m0);R0({acceptanceCriteria:D0})},X1=()=>{if(!Q||!_0.trim())return;R0({acceptanceCriteria:[...Q.acceptanceCriteria,{text:_0.trim(),completed:!1}]}),t(""),z0(!1)},F4=(Q0)=>{if(!Q)return;R0({acceptanceCriteria:Q.acceptanceCriteria.filter((D0,m0)=>m0!==Q0)})},a5=(Q0)=>{if(!Q)return;let D0=Q.acceptanceCriteria[Q0];if(!D0)return;H0(Q0),e(D0.text)},V5=()=>{if(!Q||o===null)return;let Q0=Q.acceptanceCriteria[o];if(!Q0)return;if(G0.trim()&&G0!==Q0.text)R0({acceptanceCriteria:Q.acceptanceCriteria.map((D0,m0)=>m0===o?{...D0,text:G0.trim()}:D0)});H0(null),e("")},v0=()=>{if(!Q||!U0.trim())return;if(!Q.labels.includes(U0.trim()))R0({labels:[...Q.labels,U0.trim()]});T(""),r(!1)},L4=(Q0)=>{if(!Q)return;R0({labels:Q.labels.filter((D0)=>D0!==Q0)})};if(!Q)return null;let K0=Q.acceptanceCriteria.filter((Q0)=>Q0.completed).length,W0=Q.acceptanceCriteria.length,b0=W0>0?K0/W0*100:0,B1=zD.find((Q0)=>Q0.value===Q.status),I1=FD.find((Q0)=>Q0.value===Q.priority),B5=B?"bg-gray-800":"bg-gray-100",X5=B?"bg-gray-700":"bg-white",n5=B?"bg-gray-750":"bg-gray-50",R2=B?"text-gray-100":"text-gray-900",c1=B?"text-gray-300":"text-gray-700",w=B?"text-gray-400":"text-gray-500",i=B?"border-gray-600":"border-gray-200",M0=B?"bg-gray-600 border-gray-500 text-gray-100":"bg-white border-gray-300 text-gray-900",I0=B?"hover:bg-gray-600":"hover:bg-gray-50";return Y0.jsxDEV("dialog",{ref:z,className:"fixed inset-0 bg-transparent p-0 m-0 max-w-none w-full h-full backdrop:bg-black backdrop:bg-opacity-60",onKeyDown:v1,"aria-labelledby":"modal-title",children:Y0.jsxDEV("div",{className:"flex justify-center pt-12 pb-8 px-4 min-h-full",onClick:$1,children:Y0.jsxDEV("div",{ref:F,className:`${B5} rounded-xl shadow-2xl w-full max-w-4xl max-h-[calc(100vh-80px)] overflow-hidden flex flex-col`,onClick:(Q0)=>Q0.stopPropagation(),children:[Y0.jsxDEV("div",{className:"bg-gradient-to-r from-blue-500 to-blue-600 px-6 py-4 flex items-start justify-between",children:[Y0.jsxDEV("div",{className:"flex-1 min-w-0",children:[Y0.jsxDEV("span",{className:"text-blue-100 text-sm font-mono",children:["#",Q.id]},void 0,!0,void 0,this),R?Y0.jsxDEV("input",{ref:C0,type:"text",value:L,onChange:(Q0)=>O(Q0.target.value),onBlur:h0,onKeyDown:(Q0)=>{if(Q0.key==="Enter")h0();if(Q0.key==="Escape")O(Q.title),N(!1)},className:"w-full text-xl font-bold bg-white/20 text-white placeholder-white/60 border-0 rounded px-2 py-1 mt-1 focus:outline-none focus:ring-2 focus:ring-white/50"},void 0,!1,void 0,this):Y0.jsxDEV("h2",{id:"modal-title",className:"text-xl font-bold text-white mt-1 cursor-pointer hover:bg-white/10 rounded px-2 py-1 -mx-2 truncate",onClick:()=>N(!0),onKeyDown:(Q0)=>Q0.key==="Enter"&&N(!0),children:Q.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y0.jsxDEV("button",{type:"button",onClick:Y,className:"text-white/80 hover:text-white hover:bg-white/20 rounded-full p-2 ml-4 transition-colors","aria-label":"Close modal",children:Y0.jsxDEV(L2,{className:"w-5 h-5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y0.jsxDEV("div",{className:"flex-1 overflow-y-auto",children:Y0.jsxDEV("div",{className:"flex flex-col md:flex-row",children:[Y0.jsxDEV("div",{className:"flex-1 p-6 space-y-6",children:[Y0.jsxDEV("section",{children:[Y0.jsxDEV("div",{className:`flex items-center gap-2 mb-3 ${c1}`,children:[Y0.jsxDEV(F2,{className:"w-5 h-5"},void 0,!1,void 0,this),Y0.jsxDEV("h3",{className:"font-semibold",children:"Description"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A?Y0.jsxDEV("div",{children:[Y0.jsxDEV(V6,{markdown:D,onChange:b,placeholder:"Add a more detailed description...",readOnly:Z0,sectionType:"description"},void 0,!1,void 0,this),Y0.jsxDEV("div",{className:"flex gap-2 mt-2",children:[Y0.jsxDEV("button",{type:"button",onClick:Y1,className:"px-4 py-1.5 bg-blue-600 text-white text-sm rounded hover:bg-blue-700",disabled:Z0,children:"Save"},void 0,!1,void 0,this),Y0.jsxDEV("button",{type:"button",onClick:()=>{b(Q.description||""),C(!1)},className:`px-4 py-1.5 ${w} text-sm ${I0} rounded`,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):Y0.jsxDEV("div",{className:`${X5} rounded-lg px-3 py-2 min-h-20 cursor-pointer ${I0} transition-colors border ${i}`,onClick:()=>C(!0),tabIndex:0,role:"button",children:Q.description?Y0.jsxDEV($3,{markdown:Q.description,className:`text-sm ${c1}`,sectionType:"description"},void 0,!1,void 0,this):Y0.jsxDEV("span",{className:`${w} italic text-sm`,children:"Add description..."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y0.jsxDEV("section",{children:[Y0.jsxDEV("div",{className:`flex items-center gap-2 mb-3 ${c1}`,children:[Y0.jsxDEV(_6,{className:"w-5 h-5"},void 0,!1,void 0,this),Y0.jsxDEV("h3",{className:"font-semibold",children:"Acceptance Criteria"},void 0,!1,void 0,this),W0>0&&Y0.jsxDEV("span",{className:`text-sm ${w}`,children:["(",K0,"/",W0,")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W0>0&&Y0.jsxDEV("div",{className:"mb-3 flex items-center gap-2",children:[Y0.jsxDEV("span",{className:`text-xs ${w} w-8`,children:[Math.round(b0),"%"]},void 0,!0,void 0,this),Y0.jsxDEV("div",{className:`flex-1 h-2 ${B?"bg-gray-600":"bg-gray-200"} rounded-full overflow-hidden`,children:Y0.jsxDEV("div",{className:`h-full transition-all ${b0===100?"bg-green-500":"bg-blue-500"}`,style:{width:`${b0}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y0.jsxDEV("div",{className:"space-y-2",children:Q.acceptanceCriteria.map((Q0,D0)=>Y0.jsxDEV("div",{className:`flex items-start gap-2 ${X5} rounded-lg px-3 py-2 group ${I0}`,children:[Y0.jsxDEV("input",{type:"checkbox",checked:Q0.completed,onChange:()=>D1(D0),className:"mt-1 w-4 h-4 rounded cursor-pointer accent-blue-600",disabled:Z0},void 0,!1,void 0,this),o===D0?Y0.jsxDEV("input",{type:"text",value:G0,onChange:(m0)=>e(m0.target.value),onBlur:V5,onKeyDown:(m0)=>{if(m0.key==="Enter")V5();if(m0.key==="Escape")H0(null),e("")},className:`flex-1 ${M0} rounded px-2 py-0.5 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this):Y0.jsxDEV("span",{className:`flex-1 text-sm cursor-pointer ${Q0.completed?`${w} line-through`:c1}`,onClick:()=>a5(D0),tabIndex:0,role:"button",children:Q0.text},void 0,!1,void 0,this),Y0.jsxDEV("button",{type:"button",onClick:()=>F4(D0),className:`opacity-0 group-hover:opacity-100 ${w} hover:text-red-500 p-1 transition-all`,children:Y0.jsxDEV(m9,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`ac-${D0}`,!0,void 0,this))},void 0,!1,void 0,this),n?Y0.jsxDEV("div",{className:`mt-2 ${X5} rounded-lg px-3 py-2`,children:[Y0.jsxDEV("input",{ref:u0,type:"text",value:_0,onChange:(Q0)=>t(Q0.target.value),onKeyDown:(Q0)=>{if(Q0.key==="Enter"&&_0.trim())X1();if(Q0.key==="Escape")t(""),z0(!1)},placeholder:"Add an item...",className:`w-full ${M0} rounded px-2 py-1.5 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this),Y0.jsxDEV("div",{className:"flex gap-2 mt-2",children:[Y0.jsxDEV("button",{type:"button",onClick:X1,className:"px-3 py-1 bg-blue-600 text-white text-sm rounded hover:bg-blue-700",disabled:!_0.trim(),children:"Add"},void 0,!1,void 0,this),Y0.jsxDEV("button",{type:"button",onClick:()=>{t(""),z0(!1)},className:`px-3 py-1 ${w} text-sm ${I0} rounded`,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):Y0.jsxDEV("button",{type:"button",onClick:()=>z0(!0),className:`mt-2 flex items-center gap-1 text-sm ${w} ${I0} px-3 py-2 rounded-lg w-full`,children:[Y0.jsxDEV(X4,{className:"w-4 h-4"},void 0,!1,void 0,this),Y0.jsxDEV("span",{children:"Add an item"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y0.jsxDEV("section",{children:[Y0.jsxDEV("div",{className:`flex items-center gap-2 mb-3 ${c1}`,children:[Y0.jsxDEV(O4,{className:"w-5 h-5"},void 0,!1,void 0,this),Y0.jsxDEV("h3",{className:"font-semibold",children:"Implementation Plan"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y?Y0.jsxDEV("div",{children:[Y0.jsxDEV(V6,{markdown:f,onChange:a,placeholder:`1. First step
|
|
429
450
|
2. Second step
|
|
430
|
-
3. Third step...`,readOnly:
|
|
431
|
-
`),I0;while((I0=y.exec(N0))!==null){let Y2=I0[2];if(Y2.startsWith("http://")||Y2.startsWith("https://"))continue;if(Y2.startsWith("../"))continue;let F2=Y2;if(F2=F2.replace(/^\.\//,""),!F2.endsWith(".md"))F2=`${F2}.md`;n.push({text:I0[1],filename:F2})}if(n.length===0)return null;let H0=Array.from(new Map(n.map((Y2)=>[Y2.filename,Y2])).values());return m.jsxDEV("section",{children:[m.jsxDEV("div",{className:`flex items-center gap-2 mb-3 ${h2}`,children:[m.jsxDEV(D1.Document,{},void 0,!1,void 0,this),m.jsxDEV("h3",{className:"font-semibold",children:"Related Documentation"},void 0,!1,void 0,this),m.jsxDEV("span",{className:`text-sm ${H}`,children:["(",H0.length,")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m.jsxDEV("div",{className:"space-y-2",children:H0.map((Y2,F2)=>m.jsxDEV("div",{className:`${Y1} rounded-lg px-3 py-2 flex items-center gap-2 ${C} border`,children:[m.jsxDEV("span",{className:"text-blue-500",children:"\uD83D\uDCC4"},void 0,!1,void 0,this),m.jsxDEV("div",{className:"flex-1 min-w-0",children:[m.jsxDEV("p",{className:`text-sm font-medium ${h2} truncate`,children:Y2.text},void 0,!1,void 0,this),m.jsxDEV("p",{className:`text-xs ${H} font-mono truncate`,children:["@.knowns/docs/",Y2.filename]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},F2,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)})(),m.jsxDEV("section",{children:[m.jsxDEV("div",{className:`flex items-center gap-2 mb-3 ${h2}`,children:[m.jsxDEV(D1.Clock,{},void 0,!1,void 0,this),m.jsxDEV("h3",{className:"font-semibold",children:"Time Tracking"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m.jsxDEV("div",{className:`${Y1} rounded-lg p-3`,children:m.jsxDEV(cG,{task:N,onUpdate:g},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m.jsxDEV("div",{className:`w-full md:w-64 ${K?"bg-gray-750":"bg-gray-50"} p-4 border-t md:border-t-0 md:border-l ${C} space-y-4`,children:[m.jsxDEV("div",{children:[m.jsxDEV("label",{className:`block text-xs font-semibold ${H} uppercase tracking-wide mb-2`,children:"Status"},void 0,!1,void 0,this),m.jsxDEV("select",{value:N.status,onChange:(y)=>m0(y.target.value),className:`w-full rounded-lg px-3 py-2 text-sm font-medium border-0 cursor-pointer focus:outline-none focus:ring-2 focus:ring-blue-500 ${K?h5?.darkColor:h5?.lightColor}`,disabled:D0,children:qL.map((y)=>m.jsxDEV("option",{value:y.value,children:y.label},y.value,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m.jsxDEV("div",{children:[m.jsxDEV("label",{className:`block text-xs font-semibold ${H} uppercase tracking-wide mb-2`,children:"Priority"},void 0,!1,void 0,this),m.jsxDEV("select",{value:N.priority,onChange:(y)=>J2(y.target.value),className:`w-full rounded-lg px-3 py-2 text-sm font-medium border-0 cursor-pointer focus:outline-none focus:ring-2 focus:ring-blue-500 ${K?V4?.darkColor:V4?.lightColor}`,disabled:D0,children:gL.map((y)=>m.jsxDEV("option",{value:y.value,children:y.label},y.value,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m.jsxDEV("div",{children:[m.jsxDEV("label",{className:`block text-xs font-semibold ${H} uppercase tracking-wide mb-2`,children:"Assignee"},void 0,!1,void 0,this),P0?m.jsxDEV("input",{type:"text",value:C2,onChange:(y)=>$2(y.target.value),onBlur:L0,onKeyDown:(y)=>{if(y.key==="Enter")L0();if(y.key==="Escape")$2(N.assignee||""),x0(!1)},placeholder:"@username",className:`w-full ${l} rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this):m.jsxDEV("button",{type:"button",onClick:()=>x0(!0),className:`w-full flex items-center gap-2 ${Y1} rounded-lg px-3 py-2 text-sm text-left ${o} border ${C}`,children:[m.jsxDEV(D1.User,{},void 0,!1,void 0,this),m.jsxDEV("span",{className:N.assignee?h2:H,children:N.assignee||"Unassigned"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m.jsxDEV("div",{children:[m.jsxDEV("label",{className:`block text-xs font-semibold ${H} uppercase tracking-wide mb-2`,children:"Labels"},void 0,!1,void 0,this),m.jsxDEV("div",{className:"flex flex-wrap gap-1 mb-2",children:N.labels.map((y)=>m.jsxDEV("span",{className:`inline-flex items-center gap-1 text-xs ${K?"bg-blue-900/50 text-blue-300":"bg-blue-100 text-blue-700"} px-2 py-1 rounded-full group`,children:[y,m.jsxDEV("button",{type:"button",onClick:()=>S1(y),className:"opacity-0 group-hover:opacity-100 hover:text-red-500",children:"×"},void 0,!1,void 0,this)]},y,!0,void 0,this))},void 0,!1,void 0,this),G0?m.jsxDEV("div",{children:[m.jsxDEV("input",{type:"text",value:a,onChange:(y)=>u(y.target.value),onKeyDown:(y)=>{if(y.key==="Enter"&&a.trim())W0();if(y.key==="Escape")u(""),F0(!1)},placeholder:"Label name",className:`w-full ${l} rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this),m.jsxDEV("div",{className:"flex gap-2 mt-2",children:[m.jsxDEV("button",{type:"button",onClick:W0,className:"px-3 py-1 bg-blue-600 text-white text-sm rounded hover:bg-blue-700",disabled:!a.trim(),children:"Add"},void 0,!1,void 0,this),m.jsxDEV("button",{type:"button",onClick:()=>{u(""),F0(!1)},className:`px-3 py-1 ${H} text-sm ${o} rounded`,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):m.jsxDEV("button",{type:"button",onClick:()=>F0(!0),className:`flex items-center gap-1 text-sm ${H} ${o} px-2 py-1.5 rounded`,children:[m.jsxDEV(D1.Plus,{},void 0,!1,void 0,this),m.jsxDEV("span",{children:"Add label"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N.parent&&(()=>{let y=v.find((n)=>n.id===N.parent);if(!y)return null;return m.jsxDEV("div",{children:[m.jsxDEV("label",{className:`block text-xs font-semibold ${H} uppercase tracking-wide mb-2`,children:"Parent Task"},void 0,!1,void 0,this),m.jsxDEV("button",{type:"button",onClick:()=>R?.(y.id),className:`w-full flex items-center gap-2 ${Y1} rounded-lg px-3 py-2 text-sm text-left ${o} border ${C}`,children:[m.jsxDEV(D1.Parent,{},void 0,!1,void 0,this),m.jsxDEV("div",{className:"flex-1 min-w-0",children:[m.jsxDEV("span",{className:`text-xs ${H} font-mono`,children:["#",y.id]},void 0,!0,void 0,this),m.jsxDEV("p",{className:`${h2} truncate`,children:y.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)})(),N.subtasks.length>0&&m.jsxDEV("div",{children:[m.jsxDEV("label",{className:`block text-xs font-semibold ${H} uppercase tracking-wide mb-2`,children:["Subtasks (",N.subtasks.length,")"]},void 0,!0,void 0,this),m.jsxDEV("div",{className:"space-y-1 max-h-48 overflow-y-auto",children:N.subtasks.map((y)=>{let n=v.find((N0)=>N0.id===y);if(!n)return null;return m.jsxDEV("button",{type:"button",onClick:()=>R?.(y),className:`w-full flex items-center gap-2 ${Y1} rounded-lg px-3 py-2 text-sm text-left ${o} border ${C}`,children:[m.jsxDEV("span",{className:`w-2 h-2 rounded-full ${n.status==="done"?"bg-green-500":"bg-gray-400"}`},void 0,!1,void 0,this),m.jsxDEV("div",{className:"flex-1 min-w-0",children:[m.jsxDEV("span",{className:`text-xs ${H} font-mono`,children:["#",n.id]},void 0,!0,void 0,this),m.jsxDEV("p",{className:`truncate ${n.status==="done"?`${H} line-through`:h2}`,children:n.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},y,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m.jsxDEV("hr",{className:C},void 0,!1,void 0,this),m.jsxDEV("div",{children:[m.jsxDEV("label",{className:`block text-xs font-semibold ${H} uppercase tracking-wide mb-2`,children:"Actions"},void 0,!1,void 0,this),m.jsxDEV("div",{className:"space-y-1",children:[m.jsxDEV("button",{type:"button",onClick:()=>s({status:"done"}),className:`w-full flex items-center gap-2 px-3 py-2 text-sm text-left ${H} ${o} rounded-lg`,disabled:D0||N.status==="done",children:[m.jsxDEV(D1.Archive,{},void 0,!1,void 0,this),m.jsxDEV("span",{children:"Mark as Done"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&m.jsxDEV("button",{type:"button",onClick:()=>{if(confirm("Delete this task?"))q(N.id)},className:`w-full flex items-center gap-2 px-3 py-2 text-sm text-left text-red-500 ${K?"hover:bg-red-900/30":"hover:bg-red-50"} rounded-lg`,disabled:D0,children:[m.jsxDEV(D1.Trash,{},void 0,!1,void 0,this),m.jsxDEV("span",{children:"Delete Task"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),m.jsxDEV("div",{className:`border-t ${C} px-6 py-3 ${K?"bg-gray-750":"bg-gray-50"} text-xs ${H} flex justify-between`,children:[m.jsxDEV("span",{children:["Created: ",new Date(N.createdAt).toLocaleString()]},void 0,!0,void 0,this),m.jsxDEV("span",{children:["Updated: ",new Date(N.updatedAt).toLocaleString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var b2=w0(W2(),1),KL=["todo","in-progress","in-review","done","blocked"],GO={todo:"To Do","in-progress":"In Progress","in-review":"In Review",done:"Done",blocked:"Blocked"},UL={Eye:()=>b2.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[b2.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"},void 0,!1,void 0,this),b2.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),EyeOff:()=>b2.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b2.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};function oG({tasks:N,loading:v,onTasksUpdate:L}){let{isDark:g}=w2(),[q,R]=U9.useState(null),[K,F]=U9.useState(new Set(["todo","in-progress","done"]));U9.useEffect(()=>{fetch("http://localhost:3456/api/config").then((k)=>k.json()).then((k)=>{if(k.config?.visibleColumns)F(new Set(k.config.visibleColumns))}).catch((k)=>console.error("Failed to load config:",k))},[]);let b=async(k)=>{try{let C0=(await(await fetch("http://localhost:3456/api/config")).json()).config||{};C0.visibleColumns=[...k],await fetch("http://localhost:3456/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(C0)})}catch(Y0){console.error("Failed to save config:",Y0)}},E=(k)=>{F((Y0)=>{let v0=new Set(Y0);if(v0.has(k))v0.delete(k);else v0.add(k);return b(v0),v0})},I=async(k,Y0)=>{let v0=N.find((C0)=>C0.id===k);if(!v0||v0.status===Y0)return;L(N.map((C0)=>C0.id===k?{...C0,status:Y0}:C0));try{await y5.updateTask(k,{status:Y0})}catch(C0){console.error("Failed to update task:",C0),y5.getTasks().then(L).catch(console.error)}};if(v)return b2.jsxDEV("div",{className:"flex items-center justify-center h-64",children:b2.jsxDEV("div",{className:"text-center",children:[b2.jsxDEV("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-gray-900"},void 0,!1,void 0,this),b2.jsxDEV("p",{className:"mt-2 text-gray-600",children:"Loading tasks..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let _=(k)=>{R(k)},T=()=>{R(null)},t=(k)=>{L(N.map((Y0)=>Y0.id===k.id?k:Y0)),R(k)},B0=(k)=>{let Y0=N.find((v0)=>v0.id===k);if(Y0)R(Y0)},j=g?"bg-gray-800":"bg-white",Z0=g?"text-gray-200":"text-gray-900",K0=g?"text-gray-400":"text-gray-600";return b2.jsxDEV(b2.Fragment,{children:[b2.jsxDEV("div",{className:`${j} rounded-lg p-4 mb-4 border ${g?"border-gray-700":"border-gray-200"}`,children:b2.jsxDEV("div",{className:"flex items-center gap-4 flex-wrap",children:[b2.jsxDEV("span",{className:`text-sm font-medium ${K0}`,children:"Show Columns:"},void 0,!1,void 0,this),KL.map((k)=>{let Y0=K.has(k);return b2.jsxDEV("label",{className:"flex items-center gap-2 cursor-pointer hover:opacity-80 transition-opacity",children:b2.jsxDEV("button",{type:"button",onClick:()=>E(k),className:`flex items-center gap-2 px-3 py-1.5 rounded-lg transition-colors ${Y0?g?"bg-blue-900 text-blue-200":"bg-blue-100 text-blue-700":g?"bg-gray-700 text-gray-400":"bg-gray-100 text-gray-500"}`,children:[Y0?b2.jsxDEV(UL.Eye,{},void 0,!1,void 0,this):b2.jsxDEV(UL.EyeOff,{},void 0,!1,void 0,this),b2.jsxDEV("span",{className:"text-sm font-medium",children:GO[k]},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},k,!1,void 0,this)})]},void 0,!0,void 0,this)},void 0,!1,void 0,this),b2.jsxDEV("div",{className:"flex gap-4 overflow-x-auto pb-4",children:KL.filter((k)=>K.has(k)).map((k)=>b2.jsxDEV(pG,{status:k,tasks:N.filter((Y0)=>Y0.status===k),onDrop:I,onTaskClick:_},k,!1,void 0,this))},void 0,!1,void 0,this),K.size===0&&b2.jsxDEV("div",{className:"text-center py-12",children:b2.jsxDEV("p",{className:`text-lg ${K0}`,children:"No columns visible. Please select at least one column to display."},void 0,!1,void 0,this)},void 0,!1,void 0,this),b2.jsxDEV(K9,{task:q,allTasks:N,onClose:T,onUpdate:t,onNavigateToTask:B0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var p7=w0(W2(),1),zO={Plus:()=>p7.jsxDEV("svg",{"aria-hidden":"true",className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p7.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};function pB({tasks:N,loading:v,onTasksUpdate:L,onNewTask:g}){let{isDark:q}=w2();return p7.jsxDEV("div",{className:"p-6",children:[p7.jsxDEV("div",{className:"mb-6 flex items-center justify-between",children:[p7.jsxDEV("h1",{className:`text-2xl font-bold ${q?"text-gray-200":"text-gray-900"}`,children:"Kanban Board"},void 0,!1,void 0,this),p7.jsxDEV("button",{type:"button",onClick:g,className:"px-4 py-2 bg-green-600 text-white text-sm font-medium rounded-lg hover:bg-green-700 flex items-center gap-2 transition-colors",children:[p7.jsxDEV(zO.Plus,{},void 0,!1,void 0,this),"New Task"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p7.jsxDEV(oG,{tasks:N,loading:v,onTasksUpdate:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var O9=w0(w1(),1);var E0=w0(W2(),1),OL={Plus:()=>E0.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:E0.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Filter:()=>E0.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:E0.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},WO={todo:"○","in-progress":"◒","in-review":"◎",done:"◉",blocked:"⊗"},NO={todo:"To Do","in-progress":"In Progress","in-review":"In Review",done:"Done",blocked:"Blocked"};function aG({tasks:N,loading:v,onTasksUpdate:L,selectedTask:g,onTaskClose:q,onNewTask:R}){let{isDark:K}=w2(),[F,b]=O9.useState("all"),[E,I]=O9.useState(null);O9.useEffect(()=>{if(g)I(g)},[g]);let _=K?"bg-gray-800":"bg-white",T=K?"text-gray-200":"text-gray-900",t=K?"text-gray-400":"text-gray-600",B0=K?"border-gray-700":"border-gray-200",j=K?"hover:bg-gray-700":"hover:bg-gray-50",Z0=F==="all"?N:N.filter((k)=>k.status===F),K0={todo:[],"in-progress":[],"in-review":[],blocked:[],done:[]};for(let k of Z0)if(K0[k.status])K0[k.status].push(k);let _0={high:0,medium:1,low:2};for(let k in K0)K0[k].sort((Y0,v0)=>{let C0=_0[Y0.priority]-_0[v0.priority];if(C0!==0)return C0;return Y0.id.localeCompare(v0.id,void 0,{numeric:!0})});if(v)return E0.jsxDEV("div",{className:"p-6 flex items-center justify-center h-64",children:E0.jsxDEV("div",{className:`text-lg ${t}`,children:"Loading tasks..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);return E0.jsxDEV("div",{className:"p-6",children:[E0.jsxDEV("div",{className:"mb-6 flex items-center justify-between",children:[E0.jsxDEV("div",{className:"flex-1",children:[E0.jsxDEV("h1",{className:`text-2xl font-bold ${T} mb-4`,children:"All Tasks"},void 0,!1,void 0,this),E0.jsxDEV("div",{className:"flex items-center gap-2",children:[E0.jsxDEV(OL.Filter,{},void 0,!1,void 0,this),E0.jsxDEV("select",{value:F,onChange:(k)=>b(k.target.value),className:`px-3 py-2 rounded-lg border ${B0} ${_} ${T} focus:outline-none focus:ring-2 focus:ring-blue-500`,children:[E0.jsxDEV("option",{value:"all",children:"All Status"},void 0,!1,void 0,this),E0.jsxDEV("option",{value:"todo",children:"To Do"},void 0,!1,void 0,this),E0.jsxDEV("option",{value:"in-progress",children:"In Progress"},void 0,!1,void 0,this),E0.jsxDEV("option",{value:"in-review",children:"In Review"},void 0,!1,void 0,this),E0.jsxDEV("option",{value:"blocked",children:"Blocked"},void 0,!1,void 0,this),E0.jsxDEV("option",{value:"done",children:"Done"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV("span",{className:t,children:[Z0.length," ",Z0.length===1?"task":"tasks"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV("button",{type:"button",onClick:R,className:"px-4 py-2 bg-green-600 text-white text-sm font-medium rounded-lg hover:bg-green-700 flex items-center gap-2 transition-colors ml-4",children:[E0.jsxDEV(OL.Plus,{},void 0,!1,void 0,this),"New Task"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV("div",{className:"space-y-6",children:Object.entries(K0).map(([k,Y0])=>{if(Y0.length===0)return null;return E0.jsxDEV("div",{children:[E0.jsxDEV("h2",{className:`text-lg font-semibold ${T} mb-3`,children:[NO[k]," (",Y0.length,")"]},void 0,!0,void 0,this),E0.jsxDEV("div",{className:"space-y-2",children:Y0.map((v0)=>E0.jsxDEV("button",{type:"button",onClick:()=>I(v0),className:`w-full ${_} rounded-lg p-4 border ${B0} ${j} transition-colors text-left`,children:E0.jsxDEV("div",{className:"flex items-start gap-3",children:[E0.jsxDEV("span",{className:"text-xl mt-0.5",children:WO[v0.status]},void 0,!1,void 0,this),E0.jsxDEV("div",{className:"flex-1 min-w-0",children:[E0.jsxDEV("div",{className:"flex items-center gap-2 mb-1",children:[E0.jsxDEV("span",{className:`text-xs ${t} font-mono`,children:v0.id},void 0,!1,void 0,this),E0.jsxDEV("span",{className:`text-xs px-2 py-0.5 rounded ${v0.priority==="high"?"bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-200":v0.priority==="medium"?"bg-yellow-100 text-yellow-700 dark:bg-yellow-900 dark:text-yellow-200":"bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300"}`,children:v0.priority.toUpperCase()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV("h3",{className:`font-medium ${T} mb-1`,children:v0.title},void 0,!1,void 0,this),v0.description&&E0.jsxDEV("p",{className:`text-sm ${t} line-clamp-2`,children:v0.description},void 0,!1,void 0,this),v0.labels.length>0&&E0.jsxDEV("div",{className:"flex gap-1 mt-2 flex-wrap",children:v0.labels.map((C0)=>E0.jsxDEV("span",{className:`text-xs px-2 py-0.5 rounded ${K?"bg-blue-900 text-blue-200":"bg-blue-100 text-blue-700"}`,children:C0},C0,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v0.assignee&&E0.jsxDEV("span",{className:`text-sm ${t} font-mono shrink-0`,children:v0.assignee},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},v0.id,!1,void 0,this))},void 0,!1,void 0,this)]},k,!0,void 0,this)})},void 0,!1,void 0,this),Z0.length===0&&E0.jsxDEV("div",{className:"text-center py-12",children:E0.jsxDEV("p",{className:`text-lg ${t}`,children:"No tasks found"},void 0,!1,void 0,this)},void 0,!1,void 0,this),E&&E0.jsxDEV(K9,{task:E,allTasks:N,onClose:()=>{if(I(null),q)q()},onUpdate:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var y2=w0(W2(),1),RL=f1.createContext({isDark:!1,toggle:()=>{}}),w2=()=>f1.useContext(RL),wL={Sun:()=>y2.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y2.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Moon:()=>y2.jsxDEV("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y2.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Plus:()=>y2.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y2.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};function sG(){let[N,v]=f1.useState([]),[L,g]=f1.useState(!0),[q,R]=f1.useState(!1),[K,F]=f1.useState(null),[b,E]=f1.useState(()=>{if(typeof window<"u"){let k=localStorage.getItem("theme");if(k)return k==="dark";return window.matchMedia("(prefers-color-scheme: dark)").matches}return!1}),I=()=>{let k=window.location.hash.slice(1);if(k.startsWith("/tasks"))return"tasks";if(k.startsWith("/docs"))return"docs";if(k.startsWith("/config"))return"config";if(k==="/"||k==="")return"kanban";return"kanban"},[_,T]=f1.useState(I());f1.useEffect(()=>{let k=()=>{T(I())};return window.addEventListener("hashchange",k),()=>window.removeEventListener("hashchange",k)},[I]),f1.useEffect(()=>{if(b)document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark");else document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light")},[b]),f1.useEffect(()=>{y5.getTasks().then((Y0)=>{v(Y0),g(!1)}).catch((Y0)=>{console.error("Failed to load tasks:",Y0),g(!1)});let k=lQ((Y0)=>{if(Y0.type==="tasks:updated")y5.getTasks().then(v).catch(console.error)});return()=>{if(k)k.close()}},[]);let t=()=>{y5.getTasks().then(v).catch(console.error)},B0=(k)=>{v(k)},j=()=>E((k)=>!k),Z0=(k)=>{T("tasks"),F(k)},K0=()=>{T("docs")},_0=()=>{switch(_){case"kanban":return y2.jsxDEV(pB,{tasks:N,loading:L,onTasksUpdate:B0,onNewTask:()=>R(!0)},void 0,!1,void 0,this);case"tasks":return y2.jsxDEV(aG,{tasks:N,loading:L,onTasksUpdate:t,selectedTask:K,onTaskClose:()=>F(null),onNewTask:()=>R(!0)},void 0,!1,void 0,this);case"docs":return y2.jsxDEV(lG,{},void 0,!1,void 0,this);case"config":return y2.jsxDEV(DG,{},void 0,!1,void 0,this);default:return y2.jsxDEV(pB,{tasks:N,loading:L,onTasksUpdate:B0,onNewTask:()=>R(!0)},void 0,!1,void 0,this)}};return y2.jsxDEV(RL.Provider,{value:{isDark:b,toggle:j},children:y2.jsxDEV("div",{className:`min-h-screen transition-colors duration-200 flex ${b?"bg-gray-900":"bg-gray-100"}`,children:[y2.jsxDEV(bG,{currentPage:_},void 0,!1,void 0,this),y2.jsxDEV("div",{className:"flex-1 flex flex-col min-h-screen",children:[y2.jsxDEV("header",{className:`shadow transition-colors duration-200 ${b?"bg-gray-800":"bg-white"}`,children:y2.jsxDEV("div",{className:"px-6 py-3 flex items-center justify-between gap-4",children:[y2.jsxDEV("div",{className:"flex-1 max-w-2xl",children:y2.jsxDEV(IG,{onTaskSelect:Z0,onDocSelect:K0},void 0,!1,void 0,this)},void 0,!1,void 0,this),y2.jsxDEV("button",{type:"button",onClick:j,className:`p-2 rounded-lg transition-colors ${b?"bg-gray-700 text-yellow-400 hover:bg-gray-600":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,"aria-label":b?"Switch to light mode":"Switch to dark mode",children:b?y2.jsxDEV(wL.Sun,{},void 0,!1,void 0,this):y2.jsxDEV(wL.Moon,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),y2.jsxDEV("main",{className:"flex-1 overflow-auto",children:_0()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y2.jsxDEV(EG,{isOpen:q,allTasks:N,onClose:()=>R(!1),onCreated:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var FL=w0(W2(),1),ML=document.getElementById("root");if(!ML)throw Error("Root element not found");_L.createRoot(ML).render(FL.jsxDEV(sG,{},void 0,!1,void 0,this));
|
|
451
|
+
3. Third step...`,readOnly:Z0,sectionType:"plan"},void 0,!1,void 0,this),Y0.jsxDEV("div",{className:"flex gap-2 mt-2",children:[Y0.jsxDEV("button",{type:"button",onClick:H1,className:"px-4 py-1.5 bg-blue-600 text-white text-sm rounded hover:bg-blue-700",disabled:Z0,children:"Save"},void 0,!1,void 0,this),Y0.jsxDEV("button",{type:"button",onClick:()=>{a(Q.implementationPlan||""),k(!1)},className:`px-4 py-1.5 ${w} text-sm ${I0} rounded`,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):Y0.jsxDEV("div",{className:`${X5} rounded-lg px-3 py-2 min-h-16 cursor-pointer ${I0} border ${i}`,onClick:()=>k(!0),tabIndex:0,role:"button",children:Q.implementationPlan?Y0.jsxDEV($3,{markdown:Q.implementationPlan,className:`text-sm ${c1}`,sectionType:"plan"},void 0,!1,void 0,this):Y0.jsxDEV("span",{className:`${w} italic text-sm`,children:"Add implementation plan..."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y0.jsxDEV("section",{children:[Y0.jsxDEV("div",{className:`flex items-center gap-2 mb-3 ${c1}`,children:[Y0.jsxDEV(D8,{className:"w-5 h-5"},void 0,!1,void 0,this),Y0.jsxDEV("h3",{className:"font-semibold",children:"Implementation Notes"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s?Y0.jsxDEV("div",{children:[Y0.jsxDEV(V6,{markdown:c,onChange:h,placeholder:"Add implementation notes...",readOnly:Z0,sectionType:"notes"},void 0,!1,void 0,this),Y0.jsxDEV("div",{className:"flex gap-2 mt-2",children:[Y0.jsxDEV("button",{type:"button",onClick:e0,className:"px-4 py-1.5 bg-blue-600 text-white text-sm rounded hover:bg-blue-700",disabled:Z0,children:"Save"},void 0,!1,void 0,this),Y0.jsxDEV("button",{type:"button",onClick:()=>{h(Q.implementationNotes||""),g(!1)},className:`px-4 py-1.5 ${w} text-sm ${I0} rounded`,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):Y0.jsxDEV("div",{className:`${X5} rounded-lg px-3 py-2 min-h-16 cursor-pointer ${I0} border ${i}`,onClick:()=>g(!0),tabIndex:0,role:"button",children:Q.implementationNotes?Y0.jsxDEV($3,{markdown:Q.implementationNotes,className:`text-sm ${c1}`,sectionType:"notes"},void 0,!1,void 0,this):Y0.jsxDEV("span",{className:`${w} italic text-sm`,children:"Add notes..."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),(()=>{let Q0=/\[([^\]]+)\]\(([^)]+)\)/g,D0=[],m0=[Q.description||"",Q.implementationPlan||"",Q.implementationNotes||""].join(`
|
|
452
|
+
`),q1;while((q1=Q0.exec(m0))!==null){let S1=q1[2];if(S1.startsWith("http://")||S1.startsWith("https://"))continue;if(S1.startsWith("../"))continue;if(/^(task-)?\d+(\.md)?$/.test(S1))continue;let Q5=S1;if(Q5=Q5.replace(/^\.\//,""),!Q5.endsWith(".md"))Q5=`${Q5}.md`;D0.push({text:q1[1],filename:Q5})}if(D0.length===0)return null;let i0=Array.from(new Map(D0.map((S1)=>[S1.filename,S1])).values());return Y0.jsxDEV("section",{children:[Y0.jsxDEV("div",{className:`flex items-center gap-2 mb-3 ${c1}`,children:[Y0.jsxDEV(O4,{className:"w-5 h-5"},void 0,!1,void 0,this),Y0.jsxDEV("h3",{className:"font-semibold",children:"Related Documentation"},void 0,!1,void 0,this),Y0.jsxDEV("span",{className:`text-sm ${w}`,children:["(",i0.length,")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y0.jsxDEV("div",{className:"space-y-2",children:i0.map((S1,Q5)=>Y0.jsxDEV("div",{className:`${X5} rounded-lg px-3 py-2 flex items-center gap-2 ${i} border`,children:[Y0.jsxDEV("span",{className:"text-blue-500",children:"\uD83D\uDCC4"},void 0,!1,void 0,this),Y0.jsxDEV("div",{className:"flex-1 min-w-0",children:[Y0.jsxDEV("p",{className:`text-sm font-medium ${c1} truncate`,children:S1.text},void 0,!1,void 0,this),Y0.jsxDEV("p",{className:`text-xs ${w} font-mono truncate`,children:["@.knowns/docs/",S1.filename]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},Q5,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)})(),Y0.jsxDEV("section",{children:[Y0.jsxDEV("div",{className:`flex items-center gap-2 mb-3 ${c1}`,children:[Y0.jsxDEV(fQ,{className:"w-5 h-5"},void 0,!1,void 0,this),Y0.jsxDEV("h3",{className:"font-semibold",children:"Time Tracking"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y0.jsxDEV("div",{className:`${X5} rounded-lg p-3`,children:Y0.jsxDEV(oF,{task:Q,onUpdate:G},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y0.jsxDEV("div",{className:`w-full md:w-64 ${B?"bg-gray-750":"bg-gray-50"} p-4 border-t md:border-t-0 md:border-l ${i} space-y-4`,children:[Y0.jsxDEV("div",{children:[Y0.jsxDEV("label",{className:`block text-xs font-semibold ${w} uppercase tracking-wide mb-2`,children:"Status"},void 0,!1,void 0,this),Y0.jsxDEV("select",{value:Q.status,onChange:(Q0)=>s0(Q0.target.value),className:`w-full rounded-lg px-3 py-2 text-sm font-medium border-0 cursor-pointer focus:outline-none focus:ring-2 focus:ring-blue-500 ${B?B1?.darkColor:B1?.lightColor}`,disabled:Z0,children:zD.map((Q0)=>Y0.jsxDEV("option",{value:Q0.value,children:Q0.label},Q0.value,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y0.jsxDEV("div",{children:[Y0.jsxDEV("label",{className:`block text-xs font-semibold ${w} uppercase tracking-wide mb-2`,children:"Priority"},void 0,!1,void 0,this),Y0.jsxDEV("select",{value:Q.priority,onChange:(Q0)=>h1(Q0.target.value),className:`w-full rounded-lg px-3 py-2 text-sm font-medium border-0 cursor-pointer focus:outline-none focus:ring-2 focus:ring-blue-500 ${B?I1?.darkColor:I1?.lightColor}`,disabled:Z0,children:FD.map((Q0)=>Y0.jsxDEV("option",{value:Q0.value,children:Q0.label},Q0.value,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y0.jsxDEV("div",{children:[Y0.jsxDEV("label",{className:`block text-xs font-semibold ${w} uppercase tracking-wide mb-2`,children:"Assignee"},void 0,!1,void 0,this),S?Y0.jsxDEV("input",{type:"text",value:A0,onChange:(Q0)=>V0(Q0.target.value),onBlur:c0,onKeyDown:(Q0)=>{if(Q0.key==="Enter")c0();if(Q0.key==="Escape")V0(Q.assignee||""),L0(!1)},placeholder:"@username",className:`w-full ${M0} rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this):Y0.jsxDEV("button",{type:"button",onClick:()=>L0(!0),className:`w-full flex items-center gap-2 ${X5} rounded-lg px-3 py-2 text-sm text-left ${I0} border ${i}`,children:[Y0.jsxDEV(O6,{className:"w-5 h-5"},void 0,!1,void 0,this),Y0.jsxDEV("span",{className:Q.assignee?c1:w,children:Q.assignee||"Unassigned"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y0.jsxDEV("div",{children:[Y0.jsxDEV("label",{className:`block text-xs font-semibold ${w} uppercase tracking-wide mb-2`,children:"Labels"},void 0,!1,void 0,this),Y0.jsxDEV("div",{className:"flex flex-wrap gap-1 mb-2",children:Q.labels.map((Q0)=>Y0.jsxDEV("span",{className:`inline-flex items-center gap-1 text-xs ${B?"bg-blue-900/50 text-blue-300":"bg-blue-100 text-blue-700"} px-2 py-1 rounded-full group`,children:[Q0,Y0.jsxDEV("button",{type:"button",onClick:()=>L4(Q0),className:"opacity-0 group-hover:opacity-100 hover:text-red-500",children:"×"},void 0,!1,void 0,this)]},Q0,!0,void 0,this))},void 0,!1,void 0,this),B0?Y0.jsxDEV("div",{children:[Y0.jsxDEV("input",{type:"text",value:U0,onChange:(Q0)=>T(Q0.target.value),onKeyDown:(Q0)=>{if(Q0.key==="Enter"&&U0.trim())v0();if(Q0.key==="Escape")T(""),r(!1)},placeholder:"Label name",className:`w-full ${M0} rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500`},void 0,!1,void 0,this),Y0.jsxDEV("div",{className:"flex gap-2 mt-2",children:[Y0.jsxDEV("button",{type:"button",onClick:v0,className:"px-3 py-1 bg-blue-600 text-white text-sm rounded hover:bg-blue-700",disabled:!U0.trim(),children:"Add"},void 0,!1,void 0,this),Y0.jsxDEV("button",{type:"button",onClick:()=>{T(""),r(!1)},className:`px-3 py-1 ${w} text-sm ${I0} rounded`,children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):Y0.jsxDEV("button",{type:"button",onClick:()=>r(!0),className:`flex items-center gap-1 text-sm ${w} ${I0} px-2 py-1.5 rounded`,children:[Y0.jsxDEV(X4,{className:"w-4 h-4"},void 0,!1,void 0,this),Y0.jsxDEV("span",{children:"Add label"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.parent&&(()=>{let Q0=$.find((D0)=>D0.id===Q.parent);if(!Q0)return null;return Y0.jsxDEV("div",{children:[Y0.jsxDEV("label",{className:`block text-xs font-semibold ${w} uppercase tracking-wide mb-2`,children:"Parent Task"},void 0,!1,void 0,this),Y0.jsxDEV("button",{type:"button",onClick:()=>H?.(Q0.id),className:`w-full flex items-center gap-2 ${X5} rounded-lg px-3 py-2 text-sm text-left ${I0} border ${i}`,children:[Y0.jsxDEV(w8,{className:"w-4 h-4"},void 0,!1,void 0,this),Y0.jsxDEV("div",{className:"flex-1 min-w-0",children:[Y0.jsxDEV("span",{className:`text-xs ${w} font-mono`,children:["#",Q0.id]},void 0,!0,void 0,this),Y0.jsxDEV("p",{className:`${c1} truncate`,children:Q0.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)})(),Q.subtasks.length>0&&Y0.jsxDEV("div",{children:[Y0.jsxDEV("label",{className:`block text-xs font-semibold ${w} uppercase tracking-wide mb-2`,children:["Subtasks (",Q.subtasks.length,")"]},void 0,!0,void 0,this),Y0.jsxDEV("div",{className:"space-y-1 max-h-48 overflow-y-auto",children:Q.subtasks.map((Q0)=>{let D0=$.find((m0)=>m0.id===Q0);if(!D0)return null;return Y0.jsxDEV("button",{type:"button",onClick:()=>H?.(Q0),className:`w-full flex items-center gap-2 ${X5} rounded-lg px-3 py-2 text-sm text-left ${I0} border ${i}`,children:[Y0.jsxDEV("span",{className:`w-2 h-2 rounded-full ${D0.status==="done"?"bg-green-500":"bg-gray-400"}`},void 0,!1,void 0,this),Y0.jsxDEV("div",{className:"flex-1 min-w-0",children:[Y0.jsxDEV("span",{className:`text-xs ${w} font-mono`,children:["#",D0.id]},void 0,!0,void 0,this),Y0.jsxDEV("p",{className:`truncate ${D0.status==="done"?`${w} line-through`:c1}`,children:D0.title},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},Q0,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y0.jsxDEV("hr",{className:i},void 0,!1,void 0,this),Y0.jsxDEV("div",{children:[Y0.jsxDEV("label",{className:`block text-xs font-semibold ${w} uppercase tracking-wide mb-2`,children:"Actions"},void 0,!1,void 0,this),Y0.jsxDEV("div",{className:"space-y-1",children:[Y0.jsxDEV("button",{type:"button",onClick:()=>R0({status:"done"}),className:`w-full flex items-center gap-2 px-3 py-2 text-sm text-left ${w} ${I0} rounded-lg`,disabled:Z0||Q.status==="done",children:[Y0.jsxDEV(kQ,{className:"w-4 h-4"},void 0,!1,void 0,this),Y0.jsxDEV("span",{children:"Mark as Done"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K&&Y0.jsxDEV("button",{type:"button",onClick:()=>{if(confirm("Delete this task?"))K(Q.id)},className:`w-full flex items-center gap-2 px-3 py-2 text-sm text-left text-red-500 ${B?"hover:bg-red-900/30":"hover:bg-red-50"} rounded-lg`,disabled:Z0,children:[Y0.jsxDEV(m9,{className:"w-4 h-4"},void 0,!1,void 0,this),Y0.jsxDEV("span",{children:"Delete Task"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Y0.jsxDEV("div",{className:`border-t ${i} px-6 py-3 ${B?"bg-gray-750":"bg-gray-50"} text-xs ${w} flex justify-between`,children:[Y0.jsxDEV("span",{children:["Created: ",new Date(Q.createdAt).toLocaleString()]},void 0,!0,void 0,this),Y0.jsxDEV("span",{children:["Updated: ",new Date(Q.updatedAt).toLocaleString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var m5=J0(Q1(),1),LD={todo:"To Do","in-progress":"In Progress","in-review":"In Review",done:"Done",blocked:"Blocked","on-hold":"On Hold"};function sl(Q){if(LD[Q])return LD[Q];return Q.split("-").map(($)=>$.charAt(0).toUpperCase()+$.slice(1)).join(" ")}function tF({tasks:Q,loading:$,onTasksUpdate:Y}){let{isDark:G}=F5(),[K,H]=KZ.useState([]),[B,z]=KZ.useState(new Set),F=()=>{let c=window.location.hash.slice(1).match(/^\/kanban\/([^?]+)/);if(!c)return null;let h=c[1];return Q.find((Z0)=>Z0.id===h)||null},[R,N]=KZ.useState(F());KZ.useEffect(()=>{let g=()=>{N(F())};return N(F()),window.addEventListener("hashchange",g),()=>window.removeEventListener("hashchange",g)},[Q]),KZ.useEffect(()=>{fetch("/api/config").then((g)=>g.json()).then((g)=>{let c=g.config?.statuses||["todo","in-progress","in-review","done","blocked"];H(c);let h=new Set(c);if(g.config?.visibleColumns)z(new Set(g.config.visibleColumns));else z(h)}).catch((g)=>console.error("Failed to load config:",g))},[]);let L=async(g)=>{try{let Z0=(await(await fetch("/api/config")).json()).config||{};Z0.visibleColumns=[...g],await fetch("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Z0)})}catch(c){console.error("Failed to save config:",c)}},O=(g)=>{z((c)=>{let h=new Set(c);if(h.has(g))h.delete(g);else h.add(g);return L(h),h})},A=async(g,c)=>{let h=Q.find((Z0)=>Z0.id===g);if(!h||h.status===c)return;Y(Q.map((Z0)=>Z0.id===g?{...Z0,status:c}:Z0));try{await P8.updateTask(g,{status:c})}catch(Z0){console.error("Failed to update task:",Z0),P8.getTasks().then(Y).catch(console.error)}};if($)return m5.jsxDEV("div",{className:"flex items-center justify-center h-64",children:m5.jsxDEV("div",{className:"text-center",children:[m5.jsxDEV("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-gray-900"},void 0,!1,void 0,this),m5.jsxDEV("p",{className:"mt-2 text-gray-600",children:"Loading tasks..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let C=(g)=>{window.location.hash=`/kanban/${g.id}`},D=()=>{window.location.hash="/"},b=(g)=>{Y(Q.map((c)=>c.id===g.id?g:c))},y=(g)=>{window.location.hash=`/kanban/${g}`},k=G?"bg-gray-800":"bg-white",f=G?"text-gray-200":"text-gray-900",a=G?"text-gray-400":"text-gray-600";return m5.jsxDEV("div",{className:"flex flex-col h-full",children:[m5.jsxDEV("div",{className:`shrink-0 ${k} rounded-lg p-4 mb-4 border ${G?"border-gray-700":"border-gray-200"}`,children:m5.jsxDEV("div",{className:"flex items-center gap-4 flex-wrap",children:[m5.jsxDEV("span",{className:`text-sm font-medium ${a}`,children:"Show Columns:"},void 0,!1,void 0,this),K.map((g)=>{let c=B.has(g);return m5.jsxDEV("label",{className:"flex items-center gap-2 cursor-pointer hover:opacity-80 transition-opacity",children:m5.jsxDEV("button",{type:"button",onClick:()=>O(g),className:`flex items-center gap-2 px-3 py-1.5 rounded-lg transition-colors ${c?G?"bg-blue-900 text-blue-200":"bg-blue-100 text-blue-700":G?"bg-gray-700 text-gray-400":"bg-gray-100 text-gray-500"}`,children:[c?m5.jsxDEV(iQ,{className:"w-4 h-4"},void 0,!1,void 0,this):m5.jsxDEV(dQ,{className:"w-4 h-4"},void 0,!1,void 0,this),m5.jsxDEV("span",{className:"text-sm font-medium",children:sl(g)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},g,!1,void 0,this)})]},void 0,!0,void 0,this)},void 0,!1,void 0,this),m5.jsxDEV("div",{className:"flex-1 overflow-auto",children:[m5.jsxDEV("div",{className:"flex gap-4 pb-4",children:K.filter((g)=>B.has(g)).map((g)=>m5.jsxDEV(sF,{status:g,tasks:Q.filter((c)=>c.status===g),onDrop:A,onTaskClick:C},g,!1,void 0,this))},void 0,!1,void 0,this),B.size===0&&m5.jsxDEV("div",{className:"text-center py-12",children:m5.jsxDEV("p",{className:`text-lg ${a}`,children:"No columns visible. Please select at least one column to display."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m5.jsxDEV(dJ,{task:R,allTasks:Q,onClose:D,onUpdate:b,onNavigateToTask:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var j6=J0(Q1(),1);function iG({tasks:Q,loading:$,onTasksUpdate:Y,onNewTask:G}){let{isDark:K}=F5();return j6.jsxDEV("div",{className:"flex flex-col h-full overflow-hidden",children:[j6.jsxDEV("div",{className:"shrink-0 p-6 pb-0",children:j6.jsxDEV("div",{className:"mb-4 flex items-center justify-between gap-4",children:[j6.jsxDEV("h1",{className:`text-2xl font-bold ${K?"text-gray-200":"text-gray-900"}`,children:"Kanban Board"},void 0,!1,void 0,this),j6.jsxDEV("button",{type:"button",onClick:G,className:"shrink-0 px-4 py-2 bg-green-600 text-white text-sm font-medium rounded-lg hover:bg-green-700 flex items-center gap-2 transition-colors",children:[j6.jsxDEV(X4,{className:"w-4 h-4"},void 0,!1,void 0,this),"New Task"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),j6.jsxDEV("div",{className:"flex-1 overflow-hidden px-6 pb-6",children:j6.jsxDEV(tF,{tasks:Q,loading:$,onTasksUpdate:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var WZ=J0(k0(),1);var G1=J0(Q1(),1),ol={todo:"○","in-progress":"◒","in-review":"◎",done:"◉",blocked:"⊗","on-hold":"⊙",urgent:"⚡"},MD={todo:"To Do","in-progress":"In Progress","in-review":"In Review",done:"Done",blocked:"Blocked","on-hold":"On Hold",urgent:"Urgent"};function tl(Q){return ol[Q]||"●"}function el(Q){if(MD[Q])return MD[Q];return Q.split("-").map(($)=>$.charAt(0).toUpperCase()+$.slice(1)).join(" ")}function eF({tasks:Q,loading:$,onTasksUpdate:Y,selectedTask:G,onTaskClose:K,onNewTask:H}){let{isDark:B}=F5(),[z,F]=WZ.useState("all"),[R,N]=WZ.useState("all"),[L,O]=WZ.useState(null),[A,C]=WZ.useState(new Set);WZ.useEffect(()=>{if(G)O(G)},[G]);let D=B?"bg-gray-800":"bg-white",b=B?"text-gray-200":"text-gray-900",y=B?"text-gray-400":"text-gray-600",k=B?"border-gray-700":"border-gray-200",f=B?"hover:bg-gray-700":"hover:bg-gray-50",a=Q.filter((h)=>h.subtasks&&h.subtasks.length>0),s=z==="all"?Q:Q.filter((h)=>h.status===z);if(R==="root")s=s.filter((h)=>!h.parent);else if(R!=="all")s=s.filter((h)=>h.parent===R);let g={todo:[],"in-progress":[],"in-review":[],blocked:[],done:[]};for(let h of s)if(g[h.status])g[h.status].push(h);let c={high:0,medium:1,low:2};for(let h in g)g[h].sort((Z0,E)=>{let _0=c[Z0.priority]-c[E.priority];if(_0!==0)return _0;return Z0.id.localeCompare(E.id,void 0,{numeric:!0})});if($)return G1.jsxDEV("div",{className:"p-6 flex items-center justify-center h-64",children:G1.jsxDEV("div",{className:`text-lg ${y}`,children:"Loading tasks..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);return G1.jsxDEV("div",{className:"p-6",children:[G1.jsxDEV("div",{className:"mb-6 flex items-center justify-between gap-4",children:[G1.jsxDEV("div",{className:"flex-1",children:[G1.jsxDEV("h1",{className:`text-2xl font-bold ${b} mb-4`,children:"All Tasks"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[G1.jsxDEV(N7,{className:"w-4 h-4"},void 0,!1,void 0,this),G1.jsxDEV("select",{value:z,onChange:(h)=>F(h.target.value),className:`px-3 py-2 rounded-lg border ${k} ${D} ${b} focus:outline-none focus:ring-2 focus:ring-blue-500`,children:[G1.jsxDEV("option",{value:"all",children:"All Status"},void 0,!1,void 0,this),G1.jsxDEV("option",{value:"todo",children:"To Do"},void 0,!1,void 0,this),G1.jsxDEV("option",{value:"in-progress",children:"In Progress"},void 0,!1,void 0,this),G1.jsxDEV("option",{value:"in-review",children:"In Review"},void 0,!1,void 0,this),G1.jsxDEV("option",{value:"blocked",children:"Blocked"},void 0,!1,void 0,this),G1.jsxDEV("option",{value:"done",children:"Done"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("select",{value:R,onChange:(h)=>N(h.target.value),className:`px-3 py-2 rounded-lg border ${k} ${D} ${b} focus:outline-none focus:ring-2 focus:ring-blue-500`,children:[G1.jsxDEV("option",{value:"all",children:"All Tasks"},void 0,!1,void 0,this),G1.jsxDEV("option",{value:"root",children:"Root Tasks Only"},void 0,!1,void 0,this),a.map((h)=>G1.jsxDEV("option",{value:h.id,children:["Subtasks of #",h.id,": ",h.title]},h.id,!0,void 0,this))]},void 0,!0,void 0,this),G1.jsxDEV("span",{className:y,children:[s.length," ",s.length===1?"task":"tasks"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("button",{type:"button",onClick:H,className:"shrink-0 px-4 py-2 bg-green-600 text-white text-sm font-medium rounded-lg hover:bg-green-700 flex items-center gap-2 transition-colors ml-4",children:[G1.jsxDEV(X4,{className:"w-4 h-4"},void 0,!1,void 0,this),"New Task"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"space-y-6",children:Object.entries(g).map(([h,Z0])=>{if(Z0.length===0)return null;return G1.jsxDEV("div",{children:[G1.jsxDEV("h2",{className:`text-lg font-semibold ${b} mb-3`,children:[el(h)," (",Z0.length,")"]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"space-y-2",children:Z0.map((E)=>{let _0=A.has(E.id),t=E.parent?Q.find((n)=>n.id===E.parent):null;return G1.jsxDEV("div",{className:`${D} rounded-lg p-4 border ${k} transition-colors`,children:G1.jsxDEV("div",{className:"flex items-start gap-3",children:[G1.jsxDEV("span",{className:"text-xl mt-0.5",children:tl(E.status)},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"flex-1 min-w-0",children:[G1.jsxDEV("div",{className:"flex items-center gap-2 mb-1 flex-wrap",children:[G1.jsxDEV("span",{className:`text-xs ${y} font-mono`,children:E.id},void 0,!1,void 0,this),G1.jsxDEV("span",{className:`text-xs px-2 py-0.5 rounded ${E.priority==="high"?"bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-200":E.priority==="medium"?"bg-yellow-100 text-yellow-700 dark:bg-yellow-900 dark:text-yellow-200":"bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300"}`,children:E.priority.toUpperCase()},void 0,!1,void 0,this),t&&G1.jsxDEV("span",{className:`text-xs px-2 py-0.5 rounded ${B?"bg-purple-900 text-purple-200":"bg-purple-100 text-purple-700"}`,children:["Subtask of #",t.id]},void 0,!0,void 0,this),E.subtasks&&E.subtasks.length>0&&G1.jsxDEV("span",{className:`text-xs px-2 py-0.5 rounded ${B?"bg-green-900 text-green-200":"bg-green-100 text-green-700"}`,children:[E.subtasks.length," subtask",E.subtasks.length>1?"s":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("button",{type:"button",onClick:()=>{window.location.hash=`/tasks/${E.id}`},className:`font-medium ${b} mb-1 hover:underline text-left w-full`,children:E.title},void 0,!1,void 0,this),E.description&&G1.jsxDEV("div",{className:`text-sm ${y} mt-2`,children:[G1.jsxDEV("p",{className:_0?"":"line-clamp-2",children:E.description},void 0,!1,void 0,this),E.description.length>100&&G1.jsxDEV("button",{type:"button",onClick:(n)=>{n.stopPropagation();let z0=new Set(A);if(_0)z0.delete(E.id);else z0.add(E.id);C(z0)},className:`text-xs ${B?"text-blue-400 hover:text-blue-300":"text-blue-600 hover:text-blue-700"} mt-1 font-medium`,children:_0?"Show less":"Show more"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E.acceptanceCriteria.length>0&&G1.jsxDEV("div",{className:`flex items-center gap-2 mt-2 text-xs ${y}`,children:[G1.jsxDEV(C8,{className:"w-3 h-3"},void 0,!1,void 0,this),G1.jsxDEV("span",{children:[E.acceptanceCriteria.filter((n)=>n.completed).length,"/",E.acceptanceCriteria.length," criteria"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),E.labels.length>0&&G1.jsxDEV("div",{className:"flex gap-1 mt-2 flex-wrap",children:E.labels.map((n)=>G1.jsxDEV("span",{className:`text-xs px-2 py-0.5 rounded ${B?"bg-blue-900 text-blue-200":"bg-blue-100 text-blue-700"}`,children:n},n,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E.assignee&&G1.jsxDEV("span",{className:`text-sm ${y} font-mono shrink-0`,children:E.assignee},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},E.id,!1,void 0,this)})},void 0,!1,void 0,this)]},h,!0,void 0,this)})},void 0,!1,void 0,this),s.length===0&&G1.jsxDEV("div",{className:"text-center py-12",children:G1.jsxDEV("p",{className:`text-lg ${y}`,children:"No tasks found"},void 0,!1,void 0,this)},void 0,!1,void 0,this),L&&G1.jsxDEV(dJ,{task:L,allTasks:Q,onClose:()=>{if(O(null),K)K()},onUpdate:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Q4=J0(Q1(),1),ND=J4.createContext({isDark:!1,toggle:()=>{}}),F5=()=>J4.useContext(ND);function ZL(){let[Q,$]=J4.useState([]),[Y,G]=J4.useState(!0),[K,H]=J4.useState(!1),[B,z]=J4.useState(!1),[F,R]=J4.useState("Knowns"),[N,L]=J4.useState(()=>{if(typeof window<"u"){let h=localStorage.getItem("theme");if(h)return h==="dark";return window.matchMedia("(prefers-color-scheme: dark)").matches}return!1}),O=()=>{let h=window.location.hash.slice(1);if(h.startsWith("/tasks"))return"tasks";if(h.startsWith("/docs"))return"docs";if(h.startsWith("/config"))return"config";if(h.startsWith("/kanban"))return"kanban";if(h==="/"||h==="")return"kanban";return"kanban"},A=(h)=>{let Z0=window.location.hash.slice(1),E=h||"(?:tasks|kanban)",_0=Z0.match(new RegExp(`^/${E}/([^?]+)`))||Z0.match(/[?&]id=([^&]+)/);return _0?_0[1]:null},[C,D]=J4.useState(O()),[b,y]=J4.useState(window.location.hash);J4.useEffect(()=>{let h=()=>{D(O()),y(window.location.hash)};return window.addEventListener("hashchange",h),()=>window.removeEventListener("hashchange",h)},[O]),J4.useEffect(()=>{if(N)document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark");else document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light")},[N]),J4.useEffect(()=>{let h=(Z0)=>{if((Z0.metaKey||Z0.ctrlKey)&&Z0.key==="k")Z0.preventDefault(),z((E)=>!E)};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[]),J4.useEffect(()=>{fetch("/api/config").then((Z0)=>Z0.json()).then((Z0)=>{if(Z0.config?.name)R(Z0.config.name)}).catch((Z0)=>console.error("Failed to load config:",Z0)),P8.getTasks().then((Z0)=>{$(Z0),G(!1)}).catch((Z0)=>{console.error("Failed to load tasks:",Z0),G(!1)});let h=rA((Z0)=>{if(Z0.type==="tasks:updated"&&Z0.task)$((E)=>{let _0=E.findIndex((t)=>t.id===Z0.task?.id);if(_0>=0){let t=[...E];return t[_0]=Z0.task,t}return[...E,Z0.task]})});return()=>{if(h)h.close()}},[]);let k=()=>{P8.getTasks().then($).catch(console.error)},f=(h)=>{$(h)},a=()=>L((h)=>!h),s=(h)=>{window.location.hash=`/tasks/${h.id}`},g=(h)=>{if(h?.path)window.location.hash=`/docs/${h.path}`;else if(h?.filename)window.location.hash=`/docs/${h.filename}`;else window.location.hash="/docs"},c=()=>{switch(C){case"kanban":return Q4.jsxDEV(iG,{tasks:Q,loading:Y,onTasksUpdate:f,onNewTask:()=>H(!0)},void 0,!1,void 0,this);case"tasks":{let h=A(),Z0=h?Q.find((E)=>E.id===h):null;return Q4.jsxDEV(eF,{tasks:Q,loading:Y,onTasksUpdate:k,selectedTask:Z0,onTaskClose:()=>{window.location.hash="/tasks"},onNewTask:()=>H(!0)},void 0,!1,void 0,this)}case"docs":return Q4.jsxDEV(aF,{},void 0,!1,void 0,this);case"config":return Q4.jsxDEV(Lz,{},void 0,!1,void 0,this);default:return Q4.jsxDEV(iG,{tasks:Q,loading:Y,onTasksUpdate:f,onNewTask:()=>H(!0)},void 0,!1,void 0,this)}};return Q4.jsxDEV(ND.Provider,{value:{isDark:N,toggle:a},children:Q4.jsxDEV(bU,{children:[Q4.jsxDEV(jP,{currentPage:C,isDark:N,onToggleTheme:a,onSearchClick:()=>z(!0)},void 0,!1,void 0,this),Q4.jsxDEV("main",{className:"flex flex-1 flex-col bg-background overflow-hidden",children:[Q4.jsxDEV("header",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[Q4.jsxDEV(gU,{className:"-ml-1"},void 0,!1,void 0,this),Q4.jsxDEV(ZJ,{orientation:"vertical",className:"mr-2 h-4"},void 0,!1,void 0,this),Q4.jsxDEV("div",{className:"flex flex-1 items-center gap-2 text-sm",children:Q4.jsxDEV("span",{className:`font-semibold ${N?"text-gray-100":"text-gray-900"}`,children:[F," - Task Management"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q4.jsxDEV("div",{className:"flex-1 w-full overflow-y-auto overflow-x-hidden",children:c()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q4.jsxDEV(Zz,{isOpen:K,allTasks:Q,onClose:()=>H(!1),onCreated:k},void 0,!1,void 0,this),Q4.jsxDEV(zz,{open:B,onOpenChange:z,onTaskSelect:s,onDocSelect:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var OD=J0(Q1(),1),_D=document.getElementById("root");if(!_D)throw Error("Root element not found");RD.createRoot(_D).render(OD.jsxDEV(ZL,{},void 0,!1,void 0,this));
|