aizuchi 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +121 -0
- package/README.md +79 -18
- package/dist/bin/aizuchi.js +9 -1
- package/dist/server/app.js +392 -10
- package/dist/server/board.js +35 -5
- package/dist/server/lib/config-paths.js +60 -19
- package/dist/server/lib/files.js +56 -21
- package/dist/server/lib/pinpoint.js +50 -0
- package/dist/server/lib/proposal.js +10 -0
- package/dist/server/lib/task-ops.js +102 -2
- package/dist/server/lib/trash.js +122 -0
- package/dist/server/watcher.js +17 -4
- package/dist/shared/board-diff.js +48 -0
- package/dist/shared/diff.js +16 -0
- package/dist/shared/schema.js +125 -10
- package/dist/shared/stats.js +117 -1
- package/dist/web/assets/index-B4RPR1mO.css +1 -0
- package/dist/web/assets/index-DG0paXSh.js +93 -0
- package/dist/web/index.html +2 -2
- package/package.json +3 -2
- package/templates/config.json +8 -7
- package/dist/web/assets/index-BLN_aXBe.css +0 -1
- package/dist/web/assets/index-BS_n8d9B.js +0 -82
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
var fx=Object.defineProperty;var px=(e,n,r)=>n in e?fx(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var Vl=(e,n,r)=>px(e,typeof n!="symbol"?n+"":n,r);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function l(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();function $c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ou={exports:{}},Hl={},zu={exports:{}},Oe={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Yp;function hx(){if(Yp)return Oe;Yp=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.iterator;function k(A){return A===null||typeof A!="object"?null:(A=m&&A[m]||A["@@iterator"],typeof A=="function"?A:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,j={};function D(A,V,E){this.props=A,this.context=V,this.refs=j,this.updater=E||x}D.prototype.isReactComponent={},D.prototype.setState=function(A,V){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,V,"setState")},D.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function S(){}S.prototype=D.prototype;function M(A,V,E){this.props=A,this.context=V,this.refs=j,this.updater=E||x}var N=M.prototype=new S;N.constructor=M,b(N,D.prototype),N.isPureReactComponent=!0;var $=Array.isArray,H=Object.prototype.hasOwnProperty,L={current:null},Y={key:!0,ref:!0,__self:!0,__source:!0};function te(A,V,E){var ke,je={},me=null,De=null;if(V!=null)for(ke in V.ref!==void 0&&(De=V.ref),V.key!==void 0&&(me=""+V.key),V)H.call(V,ke)&&!Y.hasOwnProperty(ke)&&(je[ke]=V[ke]);var Re=arguments.length-2;if(Re===1)je.children=E;else if(1<Re){for(var Me=Array(Re),Be=0;Be<Re;Be++)Me[Be]=arguments[Be+2];je.children=Me}if(A&&A.defaultProps)for(ke in Re=A.defaultProps,Re)je[ke]===void 0&&(je[ke]=Re[ke]);return{$$typeof:e,type:A,key:me,ref:De,props:je,_owner:L.current}}function Q(A,V){return{$$typeof:e,type:A.type,key:V,ref:A.ref,props:A.props,_owner:A._owner}}function I(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function q(A){var V={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(E){return V[E]})}var X=/\/+/g;function G(A,V){return typeof A=="object"&&A!==null&&A.key!=null?q(""+A.key):V.toString(36)}function K(A,V,E,ke,je){var me=typeof A;(me==="undefined"||me==="boolean")&&(A=null);var De=!1;if(A===null)De=!0;else switch(me){case"string":case"number":De=!0;break;case"object":switch(A.$$typeof){case e:case n:De=!0}}if(De)return De=A,je=je(De),A=ke===""?"."+G(De,0):ke,$(je)?(E="",A!=null&&(E=A.replace(X,"$&/")+"/"),K(je,V,E,"",function(Be){return Be})):je!=null&&(I(je)&&(je=Q(je,E+(!je.key||De&&De.key===je.key?"":(""+je.key).replace(X,"$&/")+"/")+A)),V.push(je)),1;if(De=0,ke=ke===""?".":ke+":",$(A))for(var Re=0;Re<A.length;Re++){me=A[Re];var Me=ke+G(me,Re);De+=K(me,V,E,Me,je)}else if(Me=k(A),typeof Me=="function")for(A=Me.call(A),Re=0;!(me=A.next()).done;)me=me.value,Me=ke+G(me,Re++),De+=K(me,V,E,Me,je);else if(me==="object")throw V=String(A),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return De}function F(A,V,E){if(A==null)return A;var ke=[],je=0;return K(A,ke,"","",function(me){return V.call(E,me,je++)}),ke}function pe(A){if(A._status===-1){var V=A._result;V=V(),V.then(function(E){(A._status===0||A._status===-1)&&(A._status=1,A._result=E)},function(E){(A._status===0||A._status===-1)&&(A._status=2,A._result=E)}),A._status===-1&&(A._status=0,A._result=V)}if(A._status===1)return A._result.default;throw A._result}var ye={current:null},U={transition:null},oe={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:U,ReactCurrentOwner:L};function _(){throw Error("act(...) is not supported in production builds of React.")}return Oe.Children={map:F,forEach:function(A,V,E){F(A,function(){V.apply(this,arguments)},E)},count:function(A){var V=0;return F(A,function(){V++}),V},toArray:function(A){return F(A,function(V){return V})||[]},only:function(A){if(!I(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},Oe.Component=D,Oe.Fragment=r,Oe.Profiler=o,Oe.PureComponent=M,Oe.StrictMode=l,Oe.Suspense=f,Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,Oe.act=_,Oe.cloneElement=function(A,V,E){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var ke=b({},A.props),je=A.key,me=A.ref,De=A._owner;if(V!=null){if(V.ref!==void 0&&(me=V.ref,De=L.current),V.key!==void 0&&(je=""+V.key),A.type&&A.type.defaultProps)var Re=A.type.defaultProps;for(Me in V)H.call(V,Me)&&!Y.hasOwnProperty(Me)&&(ke[Me]=V[Me]===void 0&&Re!==void 0?Re[Me]:V[Me])}var Me=arguments.length-2;if(Me===1)ke.children=E;else if(1<Me){Re=Array(Me);for(var Be=0;Be<Me;Be++)Re[Be]=arguments[Be+2];ke.children=Re}return{$$typeof:e,type:A.type,key:je,ref:me,props:ke,_owner:De}},Oe.createContext=function(A){return A={$$typeof:u,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:a,_context:A},A.Consumer=A},Oe.createElement=te,Oe.createFactory=function(A){var V=te.bind(null,A);return V.type=A,V},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(A){return{$$typeof:d,render:A}},Oe.isValidElement=I,Oe.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:pe}},Oe.memo=function(A,V){return{$$typeof:h,type:A,compare:V===void 0?null:V}},Oe.startTransition=function(A){var V=U.transition;U.transition={};try{A()}finally{U.transition=V}},Oe.unstable_act=_,Oe.useCallback=function(A,V){return ye.current.useCallback(A,V)},Oe.useContext=function(A){return ye.current.useContext(A)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(A){return ye.current.useDeferredValue(A)},Oe.useEffect=function(A,V){return ye.current.useEffect(A,V)},Oe.useId=function(){return ye.current.useId()},Oe.useImperativeHandle=function(A,V,E){return ye.current.useImperativeHandle(A,V,E)},Oe.useInsertionEffect=function(A,V){return ye.current.useInsertionEffect(A,V)},Oe.useLayoutEffect=function(A,V){return ye.current.useLayoutEffect(A,V)},Oe.useMemo=function(A,V){return ye.current.useMemo(A,V)},Oe.useReducer=function(A,V,E){return ye.current.useReducer(A,V,E)},Oe.useRef=function(A){return ye.current.useRef(A)},Oe.useState=function(A){return ye.current.useState(A)},Oe.useSyncExternalStore=function(A,V,E){return ye.current.useSyncExternalStore(A,V,E)},Oe.useTransition=function(){return ye.current.useTransition()},Oe.version="18.3.1",Oe}var Xp;function Bc(){return Xp||(Xp=1,zu.exports=hx()),zu.exports}/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Gp;function mx(){if(Gp)return Hl;Gp=1;var e=Bc(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(d,f,h){var y,m={},k=null,x=null;h!==void 0&&(k=""+h),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(x=f.ref);for(y in f)l.call(f,y)&&!a.hasOwnProperty(y)&&(m[y]=f[y]);if(d&&d.defaultProps)for(y in f=d.defaultProps,f)m[y]===void 0&&(m[y]=f[y]);return{$$typeof:n,type:d,key:k,ref:x,props:m,_owner:o.current}}return Hl.Fragment=r,Hl.jsx=u,Hl.jsxs=u,Hl}var Jp;function gx(){return Jp||(Jp=1,Ou.exports=mx()),Ou.exports}var v=gx(),C=Bc();const Mn=$c(C);var Eo={},Fu={exports:{}},pn={},$u={exports:{}},Bu={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var eh;function yx(){return eh||(eh=1,(function(e){function n(U,oe){var _=U.length;U.push(oe);e:for(;0<_;){var A=_-1>>>1,V=U[A];if(0<o(V,oe))U[A]=oe,U[_]=V,_=A;else break e}}function r(U){return U.length===0?null:U[0]}function l(U){if(U.length===0)return null;var oe=U[0],_=U.pop();if(_!==oe){U[0]=_;e:for(var A=0,V=U.length,E=V>>>1;A<E;){var ke=2*(A+1)-1,je=U[ke],me=ke+1,De=U[me];if(0>o(je,_))me<V&&0>o(De,je)?(U[A]=De,U[me]=_,A=me):(U[A]=je,U[ke]=_,A=ke);else if(me<V&&0>o(De,_))U[A]=De,U[me]=_,A=me;else break e}}return oe}function o(U,oe){var _=U.sortIndex-oe.sortIndex;return _!==0?_:U.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],h=[],y=1,m=null,k=3,x=!1,b=!1,j=!1,D=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(U){for(var oe=r(h);oe!==null;){if(oe.callback===null)l(h);else if(oe.startTime<=U)l(h),oe.sortIndex=oe.expirationTime,n(f,oe);else break;oe=r(h)}}function $(U){if(j=!1,N(U),!b)if(r(f)!==null)b=!0,pe(H);else{var oe=r(h);oe!==null&&ye($,oe.startTime-U)}}function H(U,oe){b=!1,j&&(j=!1,S(te),te=-1),x=!0;var _=k;try{for(N(oe),m=r(f);m!==null&&(!(m.expirationTime>oe)||U&&!q());){var A=m.callback;if(typeof A=="function"){m.callback=null,k=m.priorityLevel;var V=A(m.expirationTime<=oe);oe=e.unstable_now(),typeof V=="function"?m.callback=V:m===r(f)&&l(f),N(oe)}else l(f);m=r(f)}if(m!==null)var E=!0;else{var ke=r(h);ke!==null&&ye($,ke.startTime-oe),E=!1}return E}finally{m=null,k=_,x=!1}}var L=!1,Y=null,te=-1,Q=5,I=-1;function q(){return!(e.unstable_now()-I<Q)}function X(){if(Y!==null){var U=e.unstable_now();I=U;var oe=!0;try{oe=Y(!0,U)}finally{oe?G():(L=!1,Y=null)}}else L=!1}var G;if(typeof M=="function")G=function(){M(X)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,F=K.port2;K.port1.onmessage=X,G=function(){F.postMessage(null)}}else G=function(){D(X,0)};function pe(U){Y=U,L||(L=!0,G())}function ye(U,oe){te=D(function(){U(e.unstable_now())},oe)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_continueExecution=function(){b||x||(b=!0,pe(H))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_getFirstCallbackNode=function(){return r(f)},e.unstable_next=function(U){switch(k){case 1:case 2:case 3:var oe=3;break;default:oe=k}var _=k;k=oe;try{return U()}finally{k=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,oe){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var _=k;k=U;try{return oe()}finally{k=_}},e.unstable_scheduleCallback=function(U,oe,_){var A=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?A+_:A):_=A,U){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=_+V,U={id:y++,callback:oe,priorityLevel:U,startTime:_,expirationTime:V,sortIndex:-1},_>A?(U.sortIndex=_,n(h,U),r(f)===null&&U===r(h)&&(j?(S(te),te=-1):j=!0,ye($,_-A))):(U.sortIndex=V,n(f,U),b||x||(b=!0,pe(H))),U},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(U){var oe=k;return function(){var _=k;k=oe;try{return U.apply(this,arguments)}finally{k=_}}}})(Bu)),Bu}var th;function vx(){return th||(th=1,$u.exports=yx()),$u.exports}/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var nh;function xx(){if(nh)return pn;nh=1;var e=Bc(),n=vx();function r(t){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+t,s=1;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+t+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,o={};function a(t,i){u(t,i),u(t+"Capture",i)}function u(t,i){for(o[t]=i,t=0;t<i.length;t++)l.add(i[t])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[: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]*$/,y={},m={};function k(t){return f.call(m,t)?!0:f.call(y,t)?!1:h.test(t)?m[t]=!0:(y[t]=!0,!1)}function x(t,i,s,c){if(s!==null&&s.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function b(t,i,s,c){if(i===null||typeof i>"u"||x(t,i,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function j(t,i,s,c,p,g,w){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=c,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=t,this.type=i,this.sanitizeURL=g,this.removeEmptyString=w}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){D[t]=new j(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var i=t[0];D[i]=new j(i,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){D[t]=new j(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){D[t]=new j(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){D[t]=new j(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){D[t]=new j(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){D[t]=new j(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){D[t]=new j(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){D[t]=new j(t,5,!1,t.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function M(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var i=t.replace(S,M);D[i]=new j(i,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var i=t.replace(S,M);D[i]=new j(i,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var i=t.replace(S,M);D[i]=new j(i,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){D[t]=new j(t,1,!1,t.toLowerCase(),null,!1,!1)}),D.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){D[t]=new j(t,1,!1,t.toLowerCase(),null,!0,!0)});function N(t,i,s,c){var p=D.hasOwnProperty(i)?D[i]:null;(p!==null?p.type!==0:c||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(b(i,s,p,c)&&(s=null),c||p===null?k(i)&&(s===null?t.removeAttribute(i):t.setAttribute(i,""+s)):p.mustUseProperty?t[p.propertyName]=s===null?p.type===3?!1:"":s:(i=p.attributeName,c=p.attributeNamespace,s===null?t.removeAttribute(i):(p=p.type,s=p===3||p===4&&s===!0?"":""+s,c?t.setAttributeNS(c,i,s):t.setAttribute(i,s))))}var $=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,H=Symbol.for("react.element"),L=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),q=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),pe=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),U=Symbol.iterator;function oe(t){return t===null||typeof t!="object"?null:(t=U&&t[U]||t["@@iterator"],typeof t=="function"?t:null)}var _=Object.assign,A;function V(t){if(A===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);A=i&&i[1]||""}return`
|
|
34
|
-
`+A+t}var E=!1;function ke(t,i){if(!t||E)return"";E=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(B){var c=B}Reflect.construct(t,[],i)}else{try{i.call()}catch(B){c=B}t.call(i.prototype)}else{try{throw Error()}catch(B){c=B}t()}}catch(B){if(B&&c&&typeof B.stack=="string"){for(var p=B.stack.split(`
|
|
35
|
-
`),g=c.stack.split(`
|
|
36
|
-
`),w=p.length-1,T=g.length-1;1<=w&&0<=T&&p[w]!==g[T];)T--;for(;1<=w&&0<=T;w--,T--)if(p[w]!==g[T]){if(w!==1||T!==1)do if(w--,T--,0>T||p[w]!==g[T]){var R=`
|
|
37
|
-
`+p[w].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=w&&0<=T);break}}}finally{E=!1,Error.prepareStackTrace=s}return(t=t?t.displayName||t.name:"")?V(t):""}function je(t){switch(t.tag){case 5:return V(t.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return t=ke(t.type,!1),t;case 11:return t=ke(t.type.render,!1),t;case 1:return t=ke(t.type,!0),t;default:return""}}function me(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Y:return"Fragment";case L:return"Portal";case Q:return"Profiler";case te:return"StrictMode";case G:return"Suspense";case K:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case q:return(t.displayName||"Context")+".Consumer";case I:return(t._context.displayName||"Context")+".Provider";case X:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case F:return i=t.displayName||null,i!==null?i:me(t.type)||"Memo";case pe:i=t._payload,t=t._init;try{return me(t(i))}catch{}}return null}function De(t){var i=t.type;switch(t.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=i.render,t=t.displayName||t.name||"",i.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return me(i);case 8:return i===te?"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 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Re(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Me(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Be(t){var i=Me(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,i),c=""+t[i];if(!t.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var p=s.get,g=s.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return p.call(this)},set:function(w){c=""+w,g.call(this,w)}}),Object.defineProperty(t,i,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(w){c=""+w},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function Dt(t){t._valueTracker||(t._valueTracker=Be(t))}function rn(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var s=i.getValue(),c="";return t&&(c=Me(t)?t.checked?"true":"false":t.value),t=c,t!==s?(i.setValue(t),!0):!1}function Fn(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Lt(t,i){var s=i.checked;return _({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??t._wrapperState.initialChecked})}function yn(t,i){var s=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;s=Re(i.value!=null?i.value:s),t._wrapperState={initialChecked:c,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function _t(t,i){i=i.checked,i!=null&&N(t,"checked",i,!1)}function $n(t,i){_t(t,i);var s=Re(i.value),c=i.type;if(s!=null)c==="number"?(s===0&&t.value===""||t.value!=s)&&(t.value=""+s):t.value!==""+s&&(t.value=""+s);else if(c==="submit"||c==="reset"){t.removeAttribute("value");return}i.hasOwnProperty("value")?Qt(t,i.type,s):i.hasOwnProperty("defaultValue")&&Qt(t,i.type,Re(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(t.defaultChecked=!!i.defaultChecked)}function qt(t,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var c=i.type;if(!(c!=="submit"&&c!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+t._wrapperState.initialValue,s||i===t.value||(t.value=i),t.defaultValue=i}s=t.name,s!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,s!==""&&(t.name=s)}function Qt(t,i,s){(i!=="number"||Fn(t.ownerDocument)!==t)&&(s==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+s&&(t.defaultValue=""+s))}var yt=Array.isArray;function Yt(t,i,s,c){if(t=t.options,i){i={};for(var p=0;p<s.length;p++)i["$"+s[p]]=!0;for(s=0;s<t.length;s++)p=i.hasOwnProperty("$"+t[s].value),t[s].selected!==p&&(t[s].selected=p),p&&c&&(t[s].defaultSelected=!0)}else{for(s=""+Re(s),i=null,p=0;p<t.length;p++){if(t[p].value===s){t[p].selected=!0,c&&(t[p].defaultSelected=!0);return}i!==null||t[p].disabled||(i=t[p])}i!==null&&(i.selected=!0)}}function En(t,i){if(i.dangerouslySetInnerHTML!=null)throw Error(r(91));return _({},i,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function tr(t,i){var s=i.value;if(s==null){if(s=i.children,i=i.defaultValue,s!=null){if(i!=null)throw Error(r(92));if(yt(s)){if(1<s.length)throw Error(r(93));s=s[0]}i=s}i==null&&(i=""),s=i}t._wrapperState={initialValue:Re(s)}}function pr(t,i){var s=Re(i.value),c=Re(i.defaultValue);s!=null&&(s=""+s,s!==t.value&&(t.value=s),i.defaultValue==null&&t.defaultValue!==s&&(t.defaultValue=s)),c!=null&&(t.defaultValue=""+c)}function hr(t){var i=t.textContent;i===t._wrapperState.initialValue&&i!==""&&i!==null&&(t.value=i)}function W(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function re(t,i){return t==null||t==="http://www.w3.org/1999/xhtml"?W(i):t==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var be,Z=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,s,c,p){MSApp.execUnsafeLocalFunction(function(){return t(i,s,c,p)})}:t})(function(t,i){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=i;else{for(be=be||document.createElement("div"),be.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=be.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;i.firstChild;)t.appendChild(i.firstChild)}});function ae(t,i){if(i){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=i;return}}t.textContent=i}var $e={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ln=["Webkit","ms","Moz","O"];Object.keys($e).forEach(function(t){ln.forEach(function(i){i=i+t.charAt(0).toUpperCase()+t.substring(1),$e[i]=$e[t]})});function sn(t,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||$e.hasOwnProperty(t)&&$e[t]?(""+i).trim():i+"px"}function nr(t,i){t=t.style;for(var s in i)if(i.hasOwnProperty(s)){var c=s.indexOf("--")===0,p=sn(s,i[s],c);s==="float"&&(s="cssFloat"),c?t.setProperty(s,p):t[s]=p}}var Bn=_({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vt(t,i){if(i){if(Bn[t]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(r(137,t));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(r(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(r(61))}if(i.style!=null&&typeof i.style!="object")throw Error(r(62))}}function Nn(t,i){if(t.indexOf("-")===-1)return typeof i.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Mt=null;function ol(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var al=null,Nr=null,st=null;function Ot(t){if(t=Tl(t)){if(typeof al!="function")throw Error(r(280));var i=t.stateNode;i&&(i=$s(i),al(t.stateNode,t.type,i))}}function zt(t){Nr?st?st.push(t):st=[t]:Nr=t}function Un(){if(Nr){var t=Nr,i=st;if(st=Nr=null,Ot(t),i)for(t=0;t<i.length;t++)Ot(i[t])}}function Xt(t,i){return t(i)}function Ft(){}var on=!1;function mr(t,i,s){if(on)return t(i,s);on=!0;try{return Xt(t,i,s)}finally{on=!1,(Nr!==null||st!==null)&&(Ft(),Un())}}function ot(t,i){var s=t.stateNode;if(s===null)return null;var c=$s(s);if(c===null)return null;s=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(t=t.type,c=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!c;break e;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var Tn=!1;if(d)try{var $t={};Object.defineProperty($t,"passive",{get:function(){Tn=!0}}),window.addEventListener("test",$t,$t),window.removeEventListener("test",$t,$t)}catch{Tn=!1}function Vn(t,i,s,c,p,g,w,T,R){var B=Array.prototype.slice.call(arguments,3);try{i.apply(s,B)}catch(ee){this.onError(ee)}}var Hn=!1,rr=null,vn=!1,gr=null,ul={onError:function(t){Hn=!0,rr=t}};function ky(t,i,s,c,p,g,w,T,R){Hn=!1,rr=null,Vn.apply(ul,arguments)}function wy(t,i,s,c,p,g,w,T,R){if(ky.apply(this,arguments),Hn){if(Hn){var B=rr;Hn=!1,rr=null}else throw Error(r(198));vn||(vn=!0,gr=B)}}function ii(t){var i=t,s=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(s=i.return),t=i.return;while(t)}return i.tag===3?s:null}function vd(t){if(t.tag===13){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function xd(t){if(ii(t)!==t)throw Error(r(188))}function _y(t){var i=t.alternate;if(!i){if(i=ii(t),i===null)throw Error(r(188));return i!==t?null:t}for(var s=t,c=i;;){var p=s.return;if(p===null)break;var g=p.alternate;if(g===null){if(c=p.return,c!==null){s=c;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===s)return xd(p),t;if(g===c)return xd(p),i;g=g.sibling}throw Error(r(188))}if(s.return!==c.return)s=p,c=g;else{for(var w=!1,T=p.child;T;){if(T===s){w=!0,s=p,c=g;break}if(T===c){w=!0,c=p,s=g;break}T=T.sibling}if(!w){for(T=g.child;T;){if(T===s){w=!0,s=g,c=p;break}if(T===c){w=!0,c=g,s=p;break}T=T.sibling}if(!w)throw Error(r(189))}}if(s.alternate!==c)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?t:i}function kd(t){return t=_y(t),t!==null?wd(t):null}function wd(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var i=wd(t);if(i!==null)return i;t=t.sibling}return null}var _d=n.unstable_scheduleCallback,bd=n.unstable_cancelCallback,by=n.unstable_shouldYield,Sy=n.unstable_requestPaint,pt=n.unstable_now,Cy=n.unstable_getCurrentPriorityLevel,ra=n.unstable_ImmediatePriority,Sd=n.unstable_UserBlockingPriority,ks=n.unstable_NormalPriority,Ey=n.unstable_LowPriority,Cd=n.unstable_IdlePriority,ws=null,ir=null;function Ny(t){if(ir&&typeof ir.onCommitFiberRoot=="function")try{ir.onCommitFiberRoot(ws,t,void 0,(t.current.flags&128)===128)}catch{}}var Wn=Math.clz32?Math.clz32:Iy,Ty=Math.log,jy=Math.LN2;function Iy(t){return t>>>=0,t===0?32:31-(Ty(t)/jy|0)|0}var _s=64,bs=4194304;function cl(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Ss(t,i){var s=t.pendingLanes;if(s===0)return 0;var c=0,p=t.suspendedLanes,g=t.pingedLanes,w=s&268435455;if(w!==0){var T=w&~p;T!==0?c=cl(T):(g&=w,g!==0&&(c=cl(g)))}else w=s&~p,w!==0?c=cl(w):g!==0&&(c=cl(g));if(c===0)return 0;if(i!==0&&i!==c&&(i&p)===0&&(p=c&-c,g=i&-i,p>=g||p===16&&(g&4194240)!==0))return i;if((c&4)!==0&&(c|=s&16),i=t.entangledLanes,i!==0)for(t=t.entanglements,i&=c;0<i;)s=31-Wn(i),p=1<<s,c|=t[s],i&=~p;return c}function Dy(t,i){switch(t){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ry(t,i){for(var s=t.suspendedLanes,c=t.pingedLanes,p=t.expirationTimes,g=t.pendingLanes;0<g;){var w=31-Wn(g),T=1<<w,R=p[w];R===-1?((T&s)===0||(T&c)!==0)&&(p[w]=Dy(T,i)):R<=i&&(t.expiredLanes|=T),g&=~T}}function ia(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Ed(){var t=_s;return _s<<=1,(_s&4194240)===0&&(_s=64),t}function la(t){for(var i=[],s=0;31>s;s++)i.push(t);return i}function dl(t,i,s){t.pendingLanes|=i,i!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,i=31-Wn(i),t[i]=s}function Ay(t,i){var s=t.pendingLanes&~i;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=i,t.mutableReadLanes&=i,t.entangledLanes&=i,i=t.entanglements;var c=t.eventTimes;for(t=t.expirationTimes;0<s;){var p=31-Wn(s),g=1<<p;i[p]=0,c[p]=-1,t[p]=-1,s&=~g}}function sa(t,i){var s=t.entangledLanes|=i;for(t=t.entanglements;s;){var c=31-Wn(s),p=1<<c;p&i|t[c]&i&&(t[c]|=i),s&=~p}}var qe=0;function Nd(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Td,oa,jd,Id,Dd,aa=!1,Cs=[],Tr=null,jr=null,Ir=null,fl=new Map,pl=new Map,Dr=[],Py="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 submit".split(" ");function Rd(t,i){switch(t){case"focusin":case"focusout":Tr=null;break;case"dragenter":case"dragleave":jr=null;break;case"mouseover":case"mouseout":Ir=null;break;case"pointerover":case"pointerout":fl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":pl.delete(i.pointerId)}}function hl(t,i,s,c,p,g){return t===null||t.nativeEvent!==g?(t={blockedOn:i,domEventName:s,eventSystemFlags:c,nativeEvent:g,targetContainers:[p]},i!==null&&(i=Tl(i),i!==null&&oa(i)),t):(t.eventSystemFlags|=c,i=t.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),t)}function Ly(t,i,s,c,p){switch(i){case"focusin":return Tr=hl(Tr,t,i,s,c,p),!0;case"dragenter":return jr=hl(jr,t,i,s,c,p),!0;case"mouseover":return Ir=hl(Ir,t,i,s,c,p),!0;case"pointerover":var g=p.pointerId;return fl.set(g,hl(fl.get(g)||null,t,i,s,c,p)),!0;case"gotpointercapture":return g=p.pointerId,pl.set(g,hl(pl.get(g)||null,t,i,s,c,p)),!0}return!1}function Ad(t){var i=li(t.target);if(i!==null){var s=ii(i);if(s!==null){if(i=s.tag,i===13){if(i=vd(s),i!==null){t.blockedOn=i,Dd(t.priority,function(){jd(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Es(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;0<i.length;){var s=ca(t.domEventName,t.eventSystemFlags,i[0],t.nativeEvent);if(s===null){s=t.nativeEvent;var c=new s.constructor(s.type,s);Mt=c,s.target.dispatchEvent(c),Mt=null}else return i=Tl(s),i!==null&&oa(i),t.blockedOn=s,!1;i.shift()}return!0}function Pd(t,i,s){Es(t)&&s.delete(i)}function My(){aa=!1,Tr!==null&&Es(Tr)&&(Tr=null),jr!==null&&Es(jr)&&(jr=null),Ir!==null&&Es(Ir)&&(Ir=null),fl.forEach(Pd),pl.forEach(Pd)}function ml(t,i){t.blockedOn===i&&(t.blockedOn=null,aa||(aa=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,My)))}function gl(t){function i(p){return ml(p,t)}if(0<Cs.length){ml(Cs[0],t);for(var s=1;s<Cs.length;s++){var c=Cs[s];c.blockedOn===t&&(c.blockedOn=null)}}for(Tr!==null&&ml(Tr,t),jr!==null&&ml(jr,t),Ir!==null&&ml(Ir,t),fl.forEach(i),pl.forEach(i),s=0;s<Dr.length;s++)c=Dr[s],c.blockedOn===t&&(c.blockedOn=null);for(;0<Dr.length&&(s=Dr[0],s.blockedOn===null);)Ad(s),s.blockedOn===null&&Dr.shift()}var Si=$.ReactCurrentBatchConfig,Ns=!0;function Oy(t,i,s,c){var p=qe,g=Si.transition;Si.transition=null;try{qe=1,ua(t,i,s,c)}finally{qe=p,Si.transition=g}}function zy(t,i,s,c){var p=qe,g=Si.transition;Si.transition=null;try{qe=4,ua(t,i,s,c)}finally{qe=p,Si.transition=g}}function ua(t,i,s,c){if(Ns){var p=ca(t,i,s,c);if(p===null)Na(t,i,c,Ts,s),Rd(t,c);else if(Ly(p,t,i,s,c))c.stopPropagation();else if(Rd(t,c),i&4&&-1<Py.indexOf(t)){for(;p!==null;){var g=Tl(p);if(g!==null&&Td(g),g=ca(t,i,s,c),g===null&&Na(t,i,c,Ts,s),g===p)break;p=g}p!==null&&c.stopPropagation()}else Na(t,i,c,null,s)}}var Ts=null;function ca(t,i,s,c){if(Ts=null,t=ol(c),t=li(t),t!==null)if(i=ii(t),i===null)t=null;else if(s=i.tag,s===13){if(t=vd(i),t!==null)return t;t=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;t=null}else i!==t&&(t=null);return Ts=t,null}function Ld(t){switch(t){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Cy()){case ra:return 1;case Sd:return 4;case ks:case Ey:return 16;case Cd:return 536870912;default:return 16}default:return 16}}var Rr=null,da=null,js=null;function Md(){if(js)return js;var t,i=da,s=i.length,c,p="value"in Rr?Rr.value:Rr.textContent,g=p.length;for(t=0;t<s&&i[t]===p[t];t++);var w=s-t;for(c=1;c<=w&&i[s-c]===p[g-c];c++);return js=p.slice(t,1<c?1-c:void 0)}function Is(t){var i=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),32<=t||t===13?t:0}function Ds(){return!0}function Od(){return!1}function xn(t){function i(s,c,p,g,w){this._reactName=s,this._targetInst=p,this.type=c,this.nativeEvent=g,this.target=w,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(s=t[T],this[T]=s?s(g):g[T]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ds:Od,this.isPropagationStopped=Od,this}return _(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ds)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ds)},persist:function(){},isPersistent:Ds}),i}var Ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fa=xn(Ci),yl=_({},Ci,{view:0,detail:0}),Fy=xn(yl),pa,ha,vl,Rs=_({},yl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ga,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==vl&&(vl&&t.type==="mousemove"?(pa=t.screenX-vl.screenX,ha=t.screenY-vl.screenY):ha=pa=0,vl=t),pa)},movementY:function(t){return"movementY"in t?t.movementY:ha}}),zd=xn(Rs),$y=_({},Rs,{dataTransfer:0}),By=xn($y),Uy=_({},yl,{relatedTarget:0}),ma=xn(Uy),Vy=_({},Ci,{animationName:0,elapsedTime:0,pseudoElement:0}),Hy=xn(Vy),Wy=_({},Ci,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Zy=xn(Wy),Ky=_({},Ci,{data:0}),Fd=xn(Ky),qy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qy={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"},Yy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xy(t){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(t):(t=Yy[t])?!!i[t]:!1}function ga(){return Xy}var Gy=_({},yl,{key:function(t){if(t.key){var i=qy[t.key]||t.key;if(i!=="Unidentified")return i}return t.type==="keypress"?(t=Is(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Qy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ga,charCode:function(t){return t.type==="keypress"?Is(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Is(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Jy=xn(Gy),ev=_({},Rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$d=xn(ev),tv=_({},yl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ga}),nv=xn(tv),rv=_({},Ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),iv=xn(rv),lv=_({},Rs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),sv=xn(lv),ov=[9,13,27,32],ya=d&&"CompositionEvent"in window,xl=null;d&&"documentMode"in document&&(xl=document.documentMode);var av=d&&"TextEvent"in window&&!xl,Bd=d&&(!ya||xl&&8<xl&&11>=xl),Ud=" ",Vd=!1;function Hd(t,i){switch(t){case"keyup":return ov.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ei=!1;function uv(t,i){switch(t){case"compositionend":return Wd(i);case"keypress":return i.which!==32?null:(Vd=!0,Ud);case"textInput":return t=i.data,t===Ud&&Vd?null:t;default:return null}}function cv(t,i){if(Ei)return t==="compositionend"||!ya&&Hd(t,i)?(t=Md(),js=da=Rr=null,Ei=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Bd&&i.locale!=="ko"?null:i.data;default:return null}}var dv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zd(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!dv[t.type]:i==="textarea"}function Kd(t,i,s,c){zt(c),i=Os(i,"onChange"),0<i.length&&(s=new fa("onChange","change",null,s,c),t.push({event:s,listeners:i}))}var kl=null,wl=null;function fv(t){ff(t,0)}function As(t){var i=Di(t);if(rn(i))return t}function pv(t,i){if(t==="change")return i}var qd=!1;if(d){var va;if(d){var xa="oninput"in document;if(!xa){var Qd=document.createElement("div");Qd.setAttribute("oninput","return;"),xa=typeof Qd.oninput=="function"}va=xa}else va=!1;qd=va&&(!document.documentMode||9<document.documentMode)}function Yd(){kl&&(kl.detachEvent("onpropertychange",Xd),wl=kl=null)}function Xd(t){if(t.propertyName==="value"&&As(wl)){var i=[];Kd(i,wl,t,ol(t)),mr(fv,i)}}function hv(t,i,s){t==="focusin"?(Yd(),kl=i,wl=s,kl.attachEvent("onpropertychange",Xd)):t==="focusout"&&Yd()}function mv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return As(wl)}function gv(t,i){if(t==="click")return As(i)}function yv(t,i){if(t==="input"||t==="change")return As(i)}function vv(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var Zn=typeof Object.is=="function"?Object.is:vv;function _l(t,i){if(Zn(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var s=Object.keys(t),c=Object.keys(i);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var p=s[c];if(!f.call(i,p)||!Zn(t[p],i[p]))return!1}return!0}function Gd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Jd(t,i){var s=Gd(t);t=0;for(var c;s;){if(s.nodeType===3){if(c=t+s.textContent.length,t<=i&&c>=i)return{node:s,offset:i-t};t=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Gd(s)}}function ef(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?ef(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function tf(){for(var t=window,i=Fn();i instanceof t.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)t=i.contentWindow;else break;i=Fn(t.document)}return i}function ka(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}function xv(t){var i=tf(),s=t.focusedElem,c=t.selectionRange;if(i!==s&&s&&s.ownerDocument&&ef(s.ownerDocument.documentElement,s)){if(c!==null&&ka(s)){if(i=c.start,t=c.end,t===void 0&&(t=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(t,s.value.length);else if(t=(i=s.ownerDocument||document)&&i.defaultView||window,t.getSelection){t=t.getSelection();var p=s.textContent.length,g=Math.min(c.start,p);c=c.end===void 0?g:Math.min(c.end,p),!t.extend&&g>c&&(p=c,c=g,g=p),p=Jd(s,g);var w=Jd(s,c);p&&w&&(t.rangeCount!==1||t.anchorNode!==p.node||t.anchorOffset!==p.offset||t.focusNode!==w.node||t.focusOffset!==w.offset)&&(i=i.createRange(),i.setStart(p.node,p.offset),t.removeAllRanges(),g>c?(t.addRange(i),t.extend(w.node,w.offset)):(i.setEnd(w.node,w.offset),t.addRange(i)))}}for(i=[],t=s;t=t.parentNode;)t.nodeType===1&&i.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<i.length;s++)t=i[s],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var kv=d&&"documentMode"in document&&11>=document.documentMode,Ni=null,wa=null,bl=null,_a=!1;function nf(t,i,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;_a||Ni==null||Ni!==Fn(c)||(c=Ni,"selectionStart"in c&&ka(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),bl&&_l(bl,c)||(bl=c,c=Os(wa,"onSelect"),0<c.length&&(i=new fa("onSelect","select",null,i,s),t.push({event:i,listeners:c}),i.target=Ni)))}function Ps(t,i){var s={};return s[t.toLowerCase()]=i.toLowerCase(),s["Webkit"+t]="webkit"+i,s["Moz"+t]="moz"+i,s}var Ti={animationend:Ps("Animation","AnimationEnd"),animationiteration:Ps("Animation","AnimationIteration"),animationstart:Ps("Animation","AnimationStart"),transitionend:Ps("Transition","TransitionEnd")},ba={},rf={};d&&(rf=document.createElement("div").style,"AnimationEvent"in window||(delete Ti.animationend.animation,delete Ti.animationiteration.animation,delete Ti.animationstart.animation),"TransitionEvent"in window||delete Ti.transitionend.transition);function Ls(t){if(ba[t])return ba[t];if(!Ti[t])return t;var i=Ti[t],s;for(s in i)if(i.hasOwnProperty(s)&&s in rf)return ba[t]=i[s];return t}var lf=Ls("animationend"),sf=Ls("animationiteration"),of=Ls("animationstart"),af=Ls("transitionend"),uf=new Map,cf="abort auxClick 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(" ");function Ar(t,i){uf.set(t,i),a(i,[t])}for(var Sa=0;Sa<cf.length;Sa++){var Ca=cf[Sa],wv=Ca.toLowerCase(),_v=Ca[0].toUpperCase()+Ca.slice(1);Ar(wv,"on"+_v)}Ar(lf,"onAnimationEnd"),Ar(sf,"onAnimationIteration"),Ar(of,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(af,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sl="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(" "),bv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sl));function df(t,i,s){var c=t.type||"unknown-event";t.currentTarget=s,wy(c,i,void 0,t),t.currentTarget=null}function ff(t,i){i=(i&4)!==0;for(var s=0;s<t.length;s++){var c=t[s],p=c.event;c=c.listeners;e:{var g=void 0;if(i)for(var w=c.length-1;0<=w;w--){var T=c[w],R=T.instance,B=T.currentTarget;if(T=T.listener,R!==g&&p.isPropagationStopped())break e;df(p,T,B),g=R}else for(w=0;w<c.length;w++){if(T=c[w],R=T.instance,B=T.currentTarget,T=T.listener,R!==g&&p.isPropagationStopped())break e;df(p,T,B),g=R}}}if(vn)throw t=gr,vn=!1,gr=null,t}function nt(t,i){var s=i[Aa];s===void 0&&(s=i[Aa]=new Set);var c=t+"__bubble";s.has(c)||(pf(i,t,2,!1),s.add(c))}function Ea(t,i,s){var c=0;i&&(c|=4),pf(s,t,c,i)}var Ms="_reactListening"+Math.random().toString(36).slice(2);function Cl(t){if(!t[Ms]){t[Ms]=!0,l.forEach(function(s){s!=="selectionchange"&&(bv.has(s)||Ea(s,!1,t),Ea(s,!0,t))});var i=t.nodeType===9?t:t.ownerDocument;i===null||i[Ms]||(i[Ms]=!0,Ea("selectionchange",!1,i))}}function pf(t,i,s,c){switch(Ld(i)){case 1:var p=Oy;break;case 4:p=zy;break;default:p=ua}s=p.bind(null,i,s,t),p=void 0,!Tn||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),c?p!==void 0?t.addEventListener(i,s,{capture:!0,passive:p}):t.addEventListener(i,s,!0):p!==void 0?t.addEventListener(i,s,{passive:p}):t.addEventListener(i,s,!1)}function Na(t,i,s,c,p){var g=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var w=c.tag;if(w===3||w===4){var T=c.stateNode.containerInfo;if(T===p||T.nodeType===8&&T.parentNode===p)break;if(w===4)for(w=c.return;w!==null;){var R=w.tag;if((R===3||R===4)&&(R=w.stateNode.containerInfo,R===p||R.nodeType===8&&R.parentNode===p))return;w=w.return}for(;T!==null;){if(w=li(T),w===null)return;if(R=w.tag,R===5||R===6){c=g=w;continue e}T=T.parentNode}}c=c.return}mr(function(){var B=g,ee=ol(s),ne=[];e:{var J=uf.get(t);if(J!==void 0){var de=fa,ge=t;switch(t){case"keypress":if(Is(s)===0)break e;case"keydown":case"keyup":de=Jy;break;case"focusin":ge="focus",de=ma;break;case"focusout":ge="blur",de=ma;break;case"beforeblur":case"afterblur":de=ma;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":de=zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":de=By;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":de=nv;break;case lf:case sf:case of:de=Hy;break;case af:de=iv;break;case"scroll":de=Fy;break;case"wheel":de=sv;break;case"copy":case"cut":case"paste":de=Zy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":de=$d}var ve=(i&4)!==0,ht=!ve&&t==="scroll",O=ve?J!==null?J+"Capture":null:J;ve=[];for(var P=B,z;P!==null;){z=P;var se=z.stateNode;if(z.tag===5&&se!==null&&(z=se,O!==null&&(se=ot(P,O),se!=null&&ve.push(El(P,se,z)))),ht)break;P=P.return}0<ve.length&&(J=new de(J,ge,null,s,ee),ne.push({event:J,listeners:ve}))}}if((i&7)===0){e:{if(J=t==="mouseover"||t==="pointerover",de=t==="mouseout"||t==="pointerout",J&&s!==Mt&&(ge=s.relatedTarget||s.fromElement)&&(li(ge)||ge[yr]))break e;if((de||J)&&(J=ee.window===ee?ee:(J=ee.ownerDocument)?J.defaultView||J.parentWindow:window,de?(ge=s.relatedTarget||s.toElement,de=B,ge=ge?li(ge):null,ge!==null&&(ht=ii(ge),ge!==ht||ge.tag!==5&&ge.tag!==6)&&(ge=null)):(de=null,ge=B),de!==ge)){if(ve=zd,se="onMouseLeave",O="onMouseEnter",P="mouse",(t==="pointerout"||t==="pointerover")&&(ve=$d,se="onPointerLeave",O="onPointerEnter",P="pointer"),ht=de==null?J:Di(de),z=ge==null?J:Di(ge),J=new ve(se,P+"leave",de,s,ee),J.target=ht,J.relatedTarget=z,se=null,li(ee)===B&&(ve=new ve(O,P+"enter",ge,s,ee),ve.target=z,ve.relatedTarget=ht,se=ve),ht=se,de&&ge)t:{for(ve=de,O=ge,P=0,z=ve;z;z=ji(z))P++;for(z=0,se=O;se;se=ji(se))z++;for(;0<P-z;)ve=ji(ve),P--;for(;0<z-P;)O=ji(O),z--;for(;P--;){if(ve===O||O!==null&&ve===O.alternate)break t;ve=ji(ve),O=ji(O)}ve=null}else ve=null;de!==null&&hf(ne,J,de,ve,!1),ge!==null&&ht!==null&&hf(ne,ht,ge,ve,!0)}}e:{if(J=B?Di(B):window,de=J.nodeName&&J.nodeName.toLowerCase(),de==="select"||de==="input"&&J.type==="file")var we=pv;else if(Zd(J))if(qd)we=yv;else{we=mv;var Ce=hv}else(de=J.nodeName)&&de.toLowerCase()==="input"&&(J.type==="checkbox"||J.type==="radio")&&(we=gv);if(we&&(we=we(t,B))){Kd(ne,we,s,ee);break e}Ce&&Ce(t,J,B),t==="focusout"&&(Ce=J._wrapperState)&&Ce.controlled&&J.type==="number"&&Qt(J,"number",J.value)}switch(Ce=B?Di(B):window,t){case"focusin":(Zd(Ce)||Ce.contentEditable==="true")&&(Ni=Ce,wa=B,bl=null);break;case"focusout":bl=wa=Ni=null;break;case"mousedown":_a=!0;break;case"contextmenu":case"mouseup":case"dragend":_a=!1,nf(ne,s,ee);break;case"selectionchange":if(kv)break;case"keydown":case"keyup":nf(ne,s,ee)}var Ee;if(ya)e:{switch(t){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else Ei?Hd(t,s)&&(Ie="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(Ie="onCompositionStart");Ie&&(Bd&&s.locale!=="ko"&&(Ei||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&Ei&&(Ee=Md()):(Rr=ee,da="value"in Rr?Rr.value:Rr.textContent,Ei=!0)),Ce=Os(B,Ie),0<Ce.length&&(Ie=new Fd(Ie,t,null,s,ee),ne.push({event:Ie,listeners:Ce}),Ee?Ie.data=Ee:(Ee=Wd(s),Ee!==null&&(Ie.data=Ee)))),(Ee=av?uv(t,s):cv(t,s))&&(B=Os(B,"onBeforeInput"),0<B.length&&(ee=new Fd("onBeforeInput","beforeinput",null,s,ee),ne.push({event:ee,listeners:B}),ee.data=Ee))}ff(ne,i)})}function El(t,i,s){return{instance:t,listener:i,currentTarget:s}}function Os(t,i){for(var s=i+"Capture",c=[];t!==null;){var p=t,g=p.stateNode;p.tag===5&&g!==null&&(p=g,g=ot(t,s),g!=null&&c.unshift(El(t,g,p)),g=ot(t,i),g!=null&&c.push(El(t,g,p))),t=t.return}return c}function ji(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function hf(t,i,s,c,p){for(var g=i._reactName,w=[];s!==null&&s!==c;){var T=s,R=T.alternate,B=T.stateNode;if(R!==null&&R===c)break;T.tag===5&&B!==null&&(T=B,p?(R=ot(s,g),R!=null&&w.unshift(El(s,R,T))):p||(R=ot(s,g),R!=null&&w.push(El(s,R,T)))),s=s.return}w.length!==0&&t.push({event:i,listeners:w})}var Sv=/\r\n?/g,Cv=/\u0000|\uFFFD/g;function mf(t){return(typeof t=="string"?t:""+t).replace(Sv,`
|
|
38
|
-
`).replace(Cv,"")}function zs(t,i,s){if(i=mf(i),mf(t)!==i&&s)throw Error(r(425))}function Fs(){}var Ta=null,ja=null;function Ia(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Da=typeof setTimeout=="function"?setTimeout:void 0,Ev=typeof clearTimeout=="function"?clearTimeout:void 0,gf=typeof Promise=="function"?Promise:void 0,Nv=typeof queueMicrotask=="function"?queueMicrotask:typeof gf<"u"?function(t){return gf.resolve(null).then(t).catch(Tv)}:Da;function Tv(t){setTimeout(function(){throw t})}function Ra(t,i){var s=i,c=0;do{var p=s.nextSibling;if(t.removeChild(s),p&&p.nodeType===8)if(s=p.data,s==="/$"){if(c===0){t.removeChild(p),gl(i);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=p}while(s);gl(i)}function Pr(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===1||i===3)break;if(i===8){if(i=t.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return t}function yf(t){t=t.previousSibling;for(var i=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return t;i--}else s==="/$"&&i++}t=t.previousSibling}return null}var Ii=Math.random().toString(36).slice(2),lr="__reactFiber$"+Ii,Nl="__reactProps$"+Ii,yr="__reactContainer$"+Ii,Aa="__reactEvents$"+Ii,jv="__reactListeners$"+Ii,Iv="__reactHandles$"+Ii;function li(t){var i=t[lr];if(i)return i;for(var s=t.parentNode;s;){if(i=s[yr]||s[lr]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(t=yf(t);t!==null;){if(s=t[lr])return s;t=yf(t)}return i}t=s,s=t.parentNode}return null}function Tl(t){return t=t[lr]||t[yr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Di(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(r(33))}function $s(t){return t[Nl]||null}var Pa=[],Ri=-1;function Lr(t){return{current:t}}function rt(t){0>Ri||(t.current=Pa[Ri],Pa[Ri]=null,Ri--)}function tt(t,i){Ri++,Pa[Ri]=t.current,t.current=i}var Mr={},Bt=Lr(Mr),an=Lr(!1),si=Mr;function Ai(t,i){var s=t.type.contextTypes;if(!s)return Mr;var c=t.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var p={},g;for(g in s)p[g]=i[g];return c&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=p),p}function un(t){return t=t.childContextTypes,t!=null}function Bs(){rt(an),rt(Bt)}function vf(t,i,s){if(Bt.current!==Mr)throw Error(r(168));tt(Bt,i),tt(an,s)}function xf(t,i,s){var c=t.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var p in c)if(!(p in i))throw Error(r(108,De(t)||"Unknown",p));return _({},s,c)}function Us(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Mr,si=Bt.current,tt(Bt,t),tt(an,an.current),!0}function kf(t,i,s){var c=t.stateNode;if(!c)throw Error(r(169));s?(t=xf(t,i,si),c.__reactInternalMemoizedMergedChildContext=t,rt(an),rt(Bt),tt(Bt,t)):rt(an),tt(an,s)}var vr=null,Vs=!1,La=!1;function wf(t){vr===null?vr=[t]:vr.push(t)}function Dv(t){Vs=!0,wf(t)}function Or(){if(!La&&vr!==null){La=!0;var t=0,i=qe;try{var s=vr;for(qe=1;t<s.length;t++){var c=s[t];do c=c(!0);while(c!==null)}vr=null,Vs=!1}catch(p){throw vr!==null&&(vr=vr.slice(t+1)),_d(ra,Or),p}finally{qe=i,La=!1}}return null}var Pi=[],Li=0,Hs=null,Ws=0,jn=[],In=0,oi=null,xr=1,kr="";function ai(t,i){Pi[Li++]=Ws,Pi[Li++]=Hs,Hs=t,Ws=i}function _f(t,i,s){jn[In++]=xr,jn[In++]=kr,jn[In++]=oi,oi=t;var c=xr;t=kr;var p=32-Wn(c)-1;c&=~(1<<p),s+=1;var g=32-Wn(i)+p;if(30<g){var w=p-p%5;g=(c&(1<<w)-1).toString(32),c>>=w,p-=w,xr=1<<32-Wn(i)+p|s<<p|c,kr=g+t}else xr=1<<g|s<<p|c,kr=t}function Ma(t){t.return!==null&&(ai(t,1),_f(t,1,0))}function Oa(t){for(;t===Hs;)Hs=Pi[--Li],Pi[Li]=null,Ws=Pi[--Li],Pi[Li]=null;for(;t===oi;)oi=jn[--In],jn[In]=null,kr=jn[--In],jn[In]=null,xr=jn[--In],jn[In]=null}var kn=null,wn=null,lt=!1,Kn=null;function bf(t,i){var s=Pn(5,null,null,0);s.elementType="DELETED",s.stateNode=i,s.return=t,i=t.deletions,i===null?(t.deletions=[s],t.flags|=16):i.push(s)}function Sf(t,i){switch(t.tag){case 5:var s=t.type;return i=i.nodeType!==1||s.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(t.stateNode=i,kn=t,wn=Pr(i.firstChild),!0):!1;case 6:return i=t.pendingProps===""||i.nodeType!==3?null:i,i!==null?(t.stateNode=i,kn=t,wn=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(s=oi!==null?{id:xr,overflow:kr}:null,t.memoizedState={dehydrated:i,treeContext:s,retryLane:1073741824},s=Pn(18,null,null,0),s.stateNode=i,s.return=t,t.child=s,kn=t,wn=null,!0):!1;default:return!1}}function za(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Fa(t){if(lt){var i=wn;if(i){var s=i;if(!Sf(t,i)){if(za(t))throw Error(r(418));i=Pr(s.nextSibling);var c=kn;i&&Sf(t,i)?bf(c,s):(t.flags=t.flags&-4097|2,lt=!1,kn=t)}}else{if(za(t))throw Error(r(418));t.flags=t.flags&-4097|2,lt=!1,kn=t}}}function Cf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;kn=t}function Zs(t){if(t!==kn)return!1;if(!lt)return Cf(t),lt=!0,!1;var i;if((i=t.tag!==3)&&!(i=t.tag!==5)&&(i=t.type,i=i!=="head"&&i!=="body"&&!Ia(t.type,t.memoizedProps)),i&&(i=wn)){if(za(t))throw Ef(),Error(r(418));for(;i;)bf(t,i),i=Pr(i.nextSibling)}if(Cf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));e:{for(t=t.nextSibling,i=0;t;){if(t.nodeType===8){var s=t.data;if(s==="/$"){if(i===0){wn=Pr(t.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++}t=t.nextSibling}wn=null}}else wn=kn?Pr(t.stateNode.nextSibling):null;return!0}function Ef(){for(var t=wn;t;)t=Pr(t.nextSibling)}function Mi(){wn=kn=null,lt=!1}function $a(t){Kn===null?Kn=[t]:Kn.push(t)}var Rv=$.ReactCurrentBatchConfig;function jl(t,i,s){if(t=s.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var c=s.stateNode}if(!c)throw Error(r(147,t));var p=c,g=""+t;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===g?i.ref:(i=function(w){var T=p.refs;w===null?delete T[g]:T[g]=w},i._stringRef=g,i)}if(typeof t!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,t))}return t}function Ks(t,i){throw t=Object.prototype.toString.call(i),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":t))}function Nf(t){var i=t._init;return i(t._payload)}function Tf(t){function i(O,P){if(t){var z=O.deletions;z===null?(O.deletions=[P],O.flags|=16):z.push(P)}}function s(O,P){if(!t)return null;for(;P!==null;)i(O,P),P=P.sibling;return null}function c(O,P){for(O=new Map;P!==null;)P.key!==null?O.set(P.key,P):O.set(P.index,P),P=P.sibling;return O}function p(O,P){return O=Wr(O,P),O.index=0,O.sibling=null,O}function g(O,P,z){return O.index=z,t?(z=O.alternate,z!==null?(z=z.index,z<P?(O.flags|=2,P):z):(O.flags|=2,P)):(O.flags|=1048576,P)}function w(O){return t&&O.alternate===null&&(O.flags|=2),O}function T(O,P,z,se){return P===null||P.tag!==6?(P=Du(z,O.mode,se),P.return=O,P):(P=p(P,z),P.return=O,P)}function R(O,P,z,se){var we=z.type;return we===Y?ee(O,P,z.props.children,se,z.key):P!==null&&(P.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===pe&&Nf(we)===P.type)?(se=p(P,z.props),se.ref=jl(O,P,z),se.return=O,se):(se=vo(z.type,z.key,z.props,null,O.mode,se),se.ref=jl(O,P,z),se.return=O,se)}function B(O,P,z,se){return P===null||P.tag!==4||P.stateNode.containerInfo!==z.containerInfo||P.stateNode.implementation!==z.implementation?(P=Ru(z,O.mode,se),P.return=O,P):(P=p(P,z.children||[]),P.return=O,P)}function ee(O,P,z,se,we){return P===null||P.tag!==7?(P=gi(z,O.mode,se,we),P.return=O,P):(P=p(P,z),P.return=O,P)}function ne(O,P,z){if(typeof P=="string"&&P!==""||typeof P=="number")return P=Du(""+P,O.mode,z),P.return=O,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case H:return z=vo(P.type,P.key,P.props,null,O.mode,z),z.ref=jl(O,null,P),z.return=O,z;case L:return P=Ru(P,O.mode,z),P.return=O,P;case pe:var se=P._init;return ne(O,se(P._payload),z)}if(yt(P)||oe(P))return P=gi(P,O.mode,z,null),P.return=O,P;Ks(O,P)}return null}function J(O,P,z,se){var we=P!==null?P.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return we!==null?null:T(O,P,""+z,se);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case H:return z.key===we?R(O,P,z,se):null;case L:return z.key===we?B(O,P,z,se):null;case pe:return we=z._init,J(O,P,we(z._payload),se)}if(yt(z)||oe(z))return we!==null?null:ee(O,P,z,se,null);Ks(O,z)}return null}function de(O,P,z,se,we){if(typeof se=="string"&&se!==""||typeof se=="number")return O=O.get(z)||null,T(P,O,""+se,we);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case H:return O=O.get(se.key===null?z:se.key)||null,R(P,O,se,we);case L:return O=O.get(se.key===null?z:se.key)||null,B(P,O,se,we);case pe:var Ce=se._init;return de(O,P,z,Ce(se._payload),we)}if(yt(se)||oe(se))return O=O.get(z)||null,ee(P,O,se,we,null);Ks(P,se)}return null}function ge(O,P,z,se){for(var we=null,Ce=null,Ee=P,Ie=P=0,jt=null;Ee!==null&&Ie<z.length;Ie++){Ee.index>Ie?(jt=Ee,Ee=null):jt=Ee.sibling;var We=J(O,Ee,z[Ie],se);if(We===null){Ee===null&&(Ee=jt);break}t&&Ee&&We.alternate===null&&i(O,Ee),P=g(We,P,Ie),Ce===null?we=We:Ce.sibling=We,Ce=We,Ee=jt}if(Ie===z.length)return s(O,Ee),lt&&ai(O,Ie),we;if(Ee===null){for(;Ie<z.length;Ie++)Ee=ne(O,z[Ie],se),Ee!==null&&(P=g(Ee,P,Ie),Ce===null?we=Ee:Ce.sibling=Ee,Ce=Ee);return lt&&ai(O,Ie),we}for(Ee=c(O,Ee);Ie<z.length;Ie++)jt=de(Ee,O,Ie,z[Ie],se),jt!==null&&(t&&jt.alternate!==null&&Ee.delete(jt.key===null?Ie:jt.key),P=g(jt,P,Ie),Ce===null?we=jt:Ce.sibling=jt,Ce=jt);return t&&Ee.forEach(function(Zr){return i(O,Zr)}),lt&&ai(O,Ie),we}function ve(O,P,z,se){var we=oe(z);if(typeof we!="function")throw Error(r(150));if(z=we.call(z),z==null)throw Error(r(151));for(var Ce=we=null,Ee=P,Ie=P=0,jt=null,We=z.next();Ee!==null&&!We.done;Ie++,We=z.next()){Ee.index>Ie?(jt=Ee,Ee=null):jt=Ee.sibling;var Zr=J(O,Ee,We.value,se);if(Zr===null){Ee===null&&(Ee=jt);break}t&&Ee&&Zr.alternate===null&&i(O,Ee),P=g(Zr,P,Ie),Ce===null?we=Zr:Ce.sibling=Zr,Ce=Zr,Ee=jt}if(We.done)return s(O,Ee),lt&&ai(O,Ie),we;if(Ee===null){for(;!We.done;Ie++,We=z.next())We=ne(O,We.value,se),We!==null&&(P=g(We,P,Ie),Ce===null?we=We:Ce.sibling=We,Ce=We);return lt&&ai(O,Ie),we}for(Ee=c(O,Ee);!We.done;Ie++,We=z.next())We=de(Ee,O,Ie,We.value,se),We!==null&&(t&&We.alternate!==null&&Ee.delete(We.key===null?Ie:We.key),P=g(We,P,Ie),Ce===null?we=We:Ce.sibling=We,Ce=We);return t&&Ee.forEach(function(dx){return i(O,dx)}),lt&&ai(O,Ie),we}function ht(O,P,z,se){if(typeof z=="object"&&z!==null&&z.type===Y&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case H:e:{for(var we=z.key,Ce=P;Ce!==null;){if(Ce.key===we){if(we=z.type,we===Y){if(Ce.tag===7){s(O,Ce.sibling),P=p(Ce,z.props.children),P.return=O,O=P;break e}}else if(Ce.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===pe&&Nf(we)===Ce.type){s(O,Ce.sibling),P=p(Ce,z.props),P.ref=jl(O,Ce,z),P.return=O,O=P;break e}s(O,Ce);break}else i(O,Ce);Ce=Ce.sibling}z.type===Y?(P=gi(z.props.children,O.mode,se,z.key),P.return=O,O=P):(se=vo(z.type,z.key,z.props,null,O.mode,se),se.ref=jl(O,P,z),se.return=O,O=se)}return w(O);case L:e:{for(Ce=z.key;P!==null;){if(P.key===Ce)if(P.tag===4&&P.stateNode.containerInfo===z.containerInfo&&P.stateNode.implementation===z.implementation){s(O,P.sibling),P=p(P,z.children||[]),P.return=O,O=P;break e}else{s(O,P);break}else i(O,P);P=P.sibling}P=Ru(z,O.mode,se),P.return=O,O=P}return w(O);case pe:return Ce=z._init,ht(O,P,Ce(z._payload),se)}if(yt(z))return ge(O,P,z,se);if(oe(z))return ve(O,P,z,se);Ks(O,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,P!==null&&P.tag===6?(s(O,P.sibling),P=p(P,z),P.return=O,O=P):(s(O,P),P=Du(z,O.mode,se),P.return=O,O=P),w(O)):s(O,P)}return ht}var Oi=Tf(!0),jf=Tf(!1),qs=Lr(null),Qs=null,zi=null,Ba=null;function Ua(){Ba=zi=Qs=null}function Va(t){var i=qs.current;rt(qs),t._currentValue=i}function Ha(t,i,s){for(;t!==null;){var c=t.alternate;if((t.childLanes&i)!==i?(t.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),t===s)break;t=t.return}}function Fi(t,i){Qs=t,Ba=zi=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&i)!==0&&(cn=!0),t.firstContext=null)}function Dn(t){var i=t._currentValue;if(Ba!==t)if(t={context:t,memoizedValue:i,next:null},zi===null){if(Qs===null)throw Error(r(308));zi=t,Qs.dependencies={lanes:0,firstContext:t}}else zi=zi.next=t;return i}var ui=null;function Wa(t){ui===null?ui=[t]:ui.push(t)}function If(t,i,s,c){var p=i.interleaved;return p===null?(s.next=s,Wa(i)):(s.next=p.next,p.next=s),i.interleaved=s,wr(t,c)}function wr(t,i){t.lanes|=i;var s=t.alternate;for(s!==null&&(s.lanes|=i),s=t,t=t.return;t!==null;)t.childLanes|=i,s=t.alternate,s!==null&&(s.childLanes|=i),s=t,t=t.return;return s.tag===3?s.stateNode:null}var zr=!1;function Za(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Df(t,i){t=t.updateQueue,i.updateQueue===t&&(i.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function _r(t,i){return{eventTime:t,lane:i,tag:0,payload:null,callback:null,next:null}}function Fr(t,i,s){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,(Ve&2)!==0){var p=c.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),c.pending=i,wr(t,s)}return p=c.interleaved,p===null?(i.next=i,Wa(c)):(i.next=p.next,p.next=i),c.interleaved=i,wr(t,s)}function Ys(t,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194240)!==0)){var c=i.lanes;c&=t.pendingLanes,s|=c,i.lanes=s,sa(t,s)}}function Rf(t,i){var s=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var p=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var w={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};g===null?p=g=w:g=g.next=w,s=s.next}while(s!==null);g===null?p=g=i:g=g.next=i}else p=g=i;s={baseState:c.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:c.shared,effects:c.effects},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=i:t.next=i,s.lastBaseUpdate=i}function Xs(t,i,s,c){var p=t.updateQueue;zr=!1;var g=p.firstBaseUpdate,w=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var R=T,B=R.next;R.next=null,w===null?g=B:w.next=B,w=R;var ee=t.alternate;ee!==null&&(ee=ee.updateQueue,T=ee.lastBaseUpdate,T!==w&&(T===null?ee.firstBaseUpdate=B:T.next=B,ee.lastBaseUpdate=R))}if(g!==null){var ne=p.baseState;w=0,ee=B=R=null,T=g;do{var J=T.lane,de=T.eventTime;if((c&J)===J){ee!==null&&(ee=ee.next={eventTime:de,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var ge=t,ve=T;switch(J=i,de=s,ve.tag){case 1:if(ge=ve.payload,typeof ge=="function"){ne=ge.call(de,ne,J);break e}ne=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=ve.payload,J=typeof ge=="function"?ge.call(de,ne,J):ge,J==null)break e;ne=_({},ne,J);break e;case 2:zr=!0}}T.callback!==null&&T.lane!==0&&(t.flags|=64,J=p.effects,J===null?p.effects=[T]:J.push(T))}else de={eventTime:de,lane:J,tag:T.tag,payload:T.payload,callback:T.callback,next:null},ee===null?(B=ee=de,R=ne):ee=ee.next=de,w|=J;if(T=T.next,T===null){if(T=p.shared.pending,T===null)break;J=T,T=J.next,J.next=null,p.lastBaseUpdate=J,p.shared.pending=null}}while(!0);if(ee===null&&(R=ne),p.baseState=R,p.firstBaseUpdate=B,p.lastBaseUpdate=ee,i=p.shared.interleaved,i!==null){p=i;do w|=p.lane,p=p.next;while(p!==i)}else g===null&&(p.shared.lanes=0);fi|=w,t.lanes=w,t.memoizedState=ne}}function Af(t,i,s){if(t=i.effects,i.effects=null,t!==null)for(i=0;i<t.length;i++){var c=t[i],p=c.callback;if(p!==null){if(c.callback=null,c=s,typeof p!="function")throw Error(r(191,p));p.call(c)}}}var Il={},sr=Lr(Il),Dl=Lr(Il),Rl=Lr(Il);function ci(t){if(t===Il)throw Error(r(174));return t}function Ka(t,i){switch(tt(Rl,i),tt(Dl,t),tt(sr,Il),t=i.nodeType,t){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:re(null,"");break;default:t=t===8?i.parentNode:i,i=t.namespaceURI||null,t=t.tagName,i=re(i,t)}rt(sr),tt(sr,i)}function $i(){rt(sr),rt(Dl),rt(Rl)}function Pf(t){ci(Rl.current);var i=ci(sr.current),s=re(i,t.type);i!==s&&(tt(Dl,t),tt(sr,s))}function qa(t){Dl.current===t&&(rt(sr),rt(Dl))}var at=Lr(0);function Gs(t){for(var i=t;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Qa=[];function Ya(){for(var t=0;t<Qa.length;t++)Qa[t]._workInProgressVersionPrimary=null;Qa.length=0}var Js=$.ReactCurrentDispatcher,Xa=$.ReactCurrentBatchConfig,di=0,ut=null,bt=null,Nt=null,eo=!1,Al=!1,Pl=0,Av=0;function Ut(){throw Error(r(321))}function Ga(t,i){if(i===null)return!1;for(var s=0;s<i.length&&s<t.length;s++)if(!Zn(t[s],i[s]))return!1;return!0}function Ja(t,i,s,c,p,g){if(di=g,ut=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Js.current=t===null||t.memoizedState===null?Ov:zv,t=s(c,p),Al){g=0;do{if(Al=!1,Pl=0,25<=g)throw Error(r(301));g+=1,Nt=bt=null,i.updateQueue=null,Js.current=Fv,t=s(c,p)}while(Al)}if(Js.current=ro,i=bt!==null&&bt.next!==null,di=0,Nt=bt=ut=null,eo=!1,i)throw Error(r(300));return t}function eu(){var t=Pl!==0;return Pl=0,t}function or(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?ut.memoizedState=Nt=t:Nt=Nt.next=t,Nt}function Rn(){if(bt===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=bt.next;var i=Nt===null?ut.memoizedState:Nt.next;if(i!==null)Nt=i,bt=t;else{if(t===null)throw Error(r(310));bt=t,t={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Nt===null?ut.memoizedState=Nt=t:Nt=Nt.next=t}return Nt}function Ll(t,i){return typeof i=="function"?i(t):i}function tu(t){var i=Rn(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var c=bt,p=c.baseQueue,g=s.pending;if(g!==null){if(p!==null){var w=p.next;p.next=g.next,g.next=w}c.baseQueue=p=g,s.pending=null}if(p!==null){g=p.next,c=c.baseState;var T=w=null,R=null,B=g;do{var ee=B.lane;if((di&ee)===ee)R!==null&&(R=R.next={lane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),c=B.hasEagerState?B.eagerState:t(c,B.action);else{var ne={lane:ee,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null};R===null?(T=R=ne,w=c):R=R.next=ne,ut.lanes|=ee,fi|=ee}B=B.next}while(B!==null&&B!==g);R===null?w=c:R.next=T,Zn(c,i.memoizedState)||(cn=!0),i.memoizedState=c,i.baseState=w,i.baseQueue=R,s.lastRenderedState=c}if(t=s.interleaved,t!==null){p=t;do g=p.lane,ut.lanes|=g,fi|=g,p=p.next;while(p!==t)}else p===null&&(s.lanes=0);return[i.memoizedState,s.dispatch]}function nu(t){var i=Rn(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var c=s.dispatch,p=s.pending,g=i.memoizedState;if(p!==null){s.pending=null;var w=p=p.next;do g=t(g,w.action),w=w.next;while(w!==p);Zn(g,i.memoizedState)||(cn=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),s.lastRenderedState=g}return[g,c]}function Lf(){}function Mf(t,i){var s=ut,c=Rn(),p=i(),g=!Zn(c.memoizedState,p);if(g&&(c.memoizedState=p,cn=!0),c=c.queue,ru(Ff.bind(null,s,c,t),[t]),c.getSnapshot!==i||g||Nt!==null&&Nt.memoizedState.tag&1){if(s.flags|=2048,Ml(9,zf.bind(null,s,c,p,i),void 0,null),Tt===null)throw Error(r(349));(di&30)!==0||Of(s,i,p)}return p}function Of(t,i,s){t.flags|=16384,t={getSnapshot:i,value:s},i=ut.updateQueue,i===null?(i={lastEffect:null,stores:null},ut.updateQueue=i,i.stores=[t]):(s=i.stores,s===null?i.stores=[t]:s.push(t))}function zf(t,i,s,c){i.value=s,i.getSnapshot=c,$f(i)&&Bf(t)}function Ff(t,i,s){return s(function(){$f(i)&&Bf(t)})}function $f(t){var i=t.getSnapshot;t=t.value;try{var s=i();return!Zn(t,s)}catch{return!0}}function Bf(t){var i=wr(t,1);i!==null&&Xn(i,t,1,-1)}function Uf(t){var i=or();return typeof t=="function"&&(t=t()),i.memoizedState=i.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ll,lastRenderedState:t},i.queue=t,t=t.dispatch=Mv.bind(null,ut,t),[i.memoizedState,t]}function Ml(t,i,s,c){return t={tag:t,create:i,destroy:s,deps:c,next:null},i=ut.updateQueue,i===null?(i={lastEffect:null,stores:null},ut.updateQueue=i,i.lastEffect=t.next=t):(s=i.lastEffect,s===null?i.lastEffect=t.next=t:(c=s.next,s.next=t,t.next=c,i.lastEffect=t)),t}function Vf(){return Rn().memoizedState}function to(t,i,s,c){var p=or();ut.flags|=t,p.memoizedState=Ml(1|i,s,void 0,c===void 0?null:c)}function no(t,i,s,c){var p=Rn();c=c===void 0?null:c;var g=void 0;if(bt!==null){var w=bt.memoizedState;if(g=w.destroy,c!==null&&Ga(c,w.deps)){p.memoizedState=Ml(i,s,g,c);return}}ut.flags|=t,p.memoizedState=Ml(1|i,s,g,c)}function Hf(t,i){return to(8390656,8,t,i)}function ru(t,i){return no(2048,8,t,i)}function Wf(t,i){return no(4,2,t,i)}function Zf(t,i){return no(4,4,t,i)}function Kf(t,i){if(typeof i=="function")return t=t(),i(t),function(){i(null)};if(i!=null)return t=t(),i.current=t,function(){i.current=null}}function qf(t,i,s){return s=s!=null?s.concat([t]):null,no(4,4,Kf.bind(null,i,t),s)}function iu(){}function Qf(t,i){var s=Rn();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&Ga(i,c[1])?c[0]:(s.memoizedState=[t,i],t)}function Yf(t,i){var s=Rn();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&Ga(i,c[1])?c[0]:(t=t(),s.memoizedState=[t,i],t)}function Xf(t,i,s){return(di&21)===0?(t.baseState&&(t.baseState=!1,cn=!0),t.memoizedState=s):(Zn(s,i)||(s=Ed(),ut.lanes|=s,fi|=s,t.baseState=!0),i)}function Pv(t,i){var s=qe;qe=s!==0&&4>s?s:4,t(!0);var c=Xa.transition;Xa.transition={};try{t(!1),i()}finally{qe=s,Xa.transition=c}}function Gf(){return Rn().memoizedState}function Lv(t,i,s){var c=Vr(t);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},Jf(t))ep(i,s);else if(s=If(t,i,s,c),s!==null){var p=Jt();Xn(s,t,c,p),tp(s,i,c)}}function Mv(t,i,s){var c=Vr(t),p={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(Jf(t))ep(i,p);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var w=i.lastRenderedState,T=g(w,s);if(p.hasEagerState=!0,p.eagerState=T,Zn(T,w)){var R=i.interleaved;R===null?(p.next=p,Wa(i)):(p.next=R.next,R.next=p),i.interleaved=p;return}}catch{}finally{}s=If(t,i,p,c),s!==null&&(p=Jt(),Xn(s,t,c,p),tp(s,i,c))}}function Jf(t){var i=t.alternate;return t===ut||i!==null&&i===ut}function ep(t,i){Al=eo=!0;var s=t.pending;s===null?i.next=i:(i.next=s.next,s.next=i),t.pending=i}function tp(t,i,s){if((s&4194240)!==0){var c=i.lanes;c&=t.pendingLanes,s|=c,i.lanes=s,sa(t,s)}}var ro={readContext:Dn,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useInsertionEffect:Ut,useLayoutEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useMutableSource:Ut,useSyncExternalStore:Ut,useId:Ut,unstable_isNewReconciler:!1},Ov={readContext:Dn,useCallback:function(t,i){return or().memoizedState=[t,i===void 0?null:i],t},useContext:Dn,useEffect:Hf,useImperativeHandle:function(t,i,s){return s=s!=null?s.concat([t]):null,to(4194308,4,Kf.bind(null,i,t),s)},useLayoutEffect:function(t,i){return to(4194308,4,t,i)},useInsertionEffect:function(t,i){return to(4,2,t,i)},useMemo:function(t,i){var s=or();return i=i===void 0?null:i,t=t(),s.memoizedState=[t,i],t},useReducer:function(t,i,s){var c=or();return i=s!==void 0?s(i):i,c.memoizedState=c.baseState=i,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},c.queue=t,t=t.dispatch=Lv.bind(null,ut,t),[c.memoizedState,t]},useRef:function(t){var i=or();return t={current:t},i.memoizedState=t},useState:Uf,useDebugValue:iu,useDeferredValue:function(t){return or().memoizedState=t},useTransition:function(){var t=Uf(!1),i=t[0];return t=Pv.bind(null,t[1]),or().memoizedState=t,[i,t]},useMutableSource:function(){},useSyncExternalStore:function(t,i,s){var c=ut,p=or();if(lt){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),Tt===null)throw Error(r(349));(di&30)!==0||Of(c,i,s)}p.memoizedState=s;var g={value:s,getSnapshot:i};return p.queue=g,Hf(Ff.bind(null,c,g,t),[t]),c.flags|=2048,Ml(9,zf.bind(null,c,g,s,i),void 0,null),s},useId:function(){var t=or(),i=Tt.identifierPrefix;if(lt){var s=kr,c=xr;s=(c&~(1<<32-Wn(c)-1)).toString(32)+s,i=":"+i+"R"+s,s=Pl++,0<s&&(i+="H"+s.toString(32)),i+=":"}else s=Av++,i=":"+i+"r"+s.toString(32)+":";return t.memoizedState=i},unstable_isNewReconciler:!1},zv={readContext:Dn,useCallback:Qf,useContext:Dn,useEffect:ru,useImperativeHandle:qf,useInsertionEffect:Wf,useLayoutEffect:Zf,useMemo:Yf,useReducer:tu,useRef:Vf,useState:function(){return tu(Ll)},useDebugValue:iu,useDeferredValue:function(t){var i=Rn();return Xf(i,bt.memoizedState,t)},useTransition:function(){var t=tu(Ll)[0],i=Rn().memoizedState;return[t,i]},useMutableSource:Lf,useSyncExternalStore:Mf,useId:Gf,unstable_isNewReconciler:!1},Fv={readContext:Dn,useCallback:Qf,useContext:Dn,useEffect:ru,useImperativeHandle:qf,useInsertionEffect:Wf,useLayoutEffect:Zf,useMemo:Yf,useReducer:nu,useRef:Vf,useState:function(){return nu(Ll)},useDebugValue:iu,useDeferredValue:function(t){var i=Rn();return bt===null?i.memoizedState=t:Xf(i,bt.memoizedState,t)},useTransition:function(){var t=nu(Ll)[0],i=Rn().memoizedState;return[t,i]},useMutableSource:Lf,useSyncExternalStore:Mf,useId:Gf,unstable_isNewReconciler:!1};function qn(t,i){if(t&&t.defaultProps){i=_({},i),t=t.defaultProps;for(var s in t)i[s]===void 0&&(i[s]=t[s]);return i}return i}function lu(t,i,s,c){i=t.memoizedState,s=s(c,i),s=s==null?i:_({},i,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var io={isMounted:function(t){return(t=t._reactInternals)?ii(t)===t:!1},enqueueSetState:function(t,i,s){t=t._reactInternals;var c=Jt(),p=Vr(t),g=_r(c,p);g.payload=i,s!=null&&(g.callback=s),i=Fr(t,g,p),i!==null&&(Xn(i,t,p,c),Ys(i,t,p))},enqueueReplaceState:function(t,i,s){t=t._reactInternals;var c=Jt(),p=Vr(t),g=_r(c,p);g.tag=1,g.payload=i,s!=null&&(g.callback=s),i=Fr(t,g,p),i!==null&&(Xn(i,t,p,c),Ys(i,t,p))},enqueueForceUpdate:function(t,i){t=t._reactInternals;var s=Jt(),c=Vr(t),p=_r(s,c);p.tag=2,i!=null&&(p.callback=i),i=Fr(t,p,c),i!==null&&(Xn(i,t,c,s),Ys(i,t,c))}};function np(t,i,s,c,p,g,w){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(c,g,w):i.prototype&&i.prototype.isPureReactComponent?!_l(s,c)||!_l(p,g):!0}function rp(t,i,s){var c=!1,p=Mr,g=i.contextType;return typeof g=="object"&&g!==null?g=Dn(g):(p=un(i)?si:Bt.current,c=i.contextTypes,g=(c=c!=null)?Ai(t,p):Mr),i=new i(s,g),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=io,t.stateNode=i,i._reactInternals=t,c&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=p,t.__reactInternalMemoizedMaskedChildContext=g),i}function ip(t,i,s,c){t=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,c),i.state!==t&&io.enqueueReplaceState(i,i.state,null)}function su(t,i,s,c){var p=t.stateNode;p.props=s,p.state=t.memoizedState,p.refs={},Za(t);var g=i.contextType;typeof g=="object"&&g!==null?p.context=Dn(g):(g=un(i)?si:Bt.current,p.context=Ai(t,g)),p.state=t.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(lu(t,i,g,s),p.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(i=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),i!==p.state&&io.enqueueReplaceState(p,p.state,null),Xs(t,s,p,c),p.state=t.memoizedState),typeof p.componentDidMount=="function"&&(t.flags|=4194308)}function Bi(t,i){try{var s="",c=i;do s+=je(c),c=c.return;while(c);var p=s}catch(g){p=`
|
|
39
|
-
Error generating stack: `+g.message+`
|
|
40
|
-
`+g.stack}return{value:t,source:i,stack:p,digest:null}}function ou(t,i,s){return{value:t,source:null,stack:s??null,digest:i??null}}function au(t,i){try{console.error(i.value)}catch(s){setTimeout(function(){throw s})}}var $v=typeof WeakMap=="function"?WeakMap:Map;function lp(t,i,s){s=_r(-1,s),s.tag=3,s.payload={element:null};var c=i.value;return s.callback=function(){fo||(fo=!0,bu=c),au(t,i)},s}function sp(t,i,s){s=_r(-1,s),s.tag=3;var c=t.type.getDerivedStateFromError;if(typeof c=="function"){var p=i.value;s.payload=function(){return c(p)},s.callback=function(){au(t,i)}}var g=t.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(s.callback=function(){au(t,i),typeof c!="function"&&(Br===null?Br=new Set([this]):Br.add(this));var w=i.stack;this.componentDidCatch(i.value,{componentStack:w!==null?w:""})}),s}function op(t,i,s){var c=t.pingCache;if(c===null){c=t.pingCache=new $v;var p=new Set;c.set(i,p)}else p=c.get(i),p===void 0&&(p=new Set,c.set(i,p));p.has(s)||(p.add(s),t=ex.bind(null,t,i,s),i.then(t,t))}function ap(t){do{var i;if((i=t.tag===13)&&(i=t.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return t;t=t.return}while(t!==null);return null}function up(t,i,s,c,p){return(t.mode&1)===0?(t===i?t.flags|=65536:(t.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(i=_r(-1,1),i.tag=2,Fr(s,i,1))),s.lanes|=1),t):(t.flags|=65536,t.lanes=p,t)}var Bv=$.ReactCurrentOwner,cn=!1;function Gt(t,i,s,c){i.child=t===null?jf(i,null,s,c):Oi(i,t.child,s,c)}function cp(t,i,s,c,p){s=s.render;var g=i.ref;return Fi(i,p),c=Ja(t,i,s,c,g,p),s=eu(),t!==null&&!cn?(i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~p,br(t,i,p)):(lt&&s&&Ma(i),i.flags|=1,Gt(t,i,c,p),i.child)}function dp(t,i,s,c,p){if(t===null){var g=s.type;return typeof g=="function"&&!Iu(g)&&g.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(i.tag=15,i.type=g,fp(t,i,g,c,p)):(t=vo(s.type,null,c,i,i.mode,p),t.ref=i.ref,t.return=i,i.child=t)}if(g=t.child,(t.lanes&p)===0){var w=g.memoizedProps;if(s=s.compare,s=s!==null?s:_l,s(w,c)&&t.ref===i.ref)return br(t,i,p)}return i.flags|=1,t=Wr(g,c),t.ref=i.ref,t.return=i,i.child=t}function fp(t,i,s,c,p){if(t!==null){var g=t.memoizedProps;if(_l(g,c)&&t.ref===i.ref)if(cn=!1,i.pendingProps=c=g,(t.lanes&p)!==0)(t.flags&131072)!==0&&(cn=!0);else return i.lanes=t.lanes,br(t,i,p)}return uu(t,i,s,c,p)}function pp(t,i,s){var c=i.pendingProps,p=c.children,g=t!==null?t.memoizedState:null;if(c.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},tt(Vi,_n),_n|=s;else{if((s&1073741824)===0)return t=g!==null?g.baseLanes|s:s,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:t,cachePool:null,transitions:null},i.updateQueue=null,tt(Vi,_n),_n|=t,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=g!==null?g.baseLanes:s,tt(Vi,_n),_n|=c}else g!==null?(c=g.baseLanes|s,i.memoizedState=null):c=s,tt(Vi,_n),_n|=c;return Gt(t,i,p,s),i.child}function hp(t,i){var s=i.ref;(t===null&&s!==null||t!==null&&t.ref!==s)&&(i.flags|=512,i.flags|=2097152)}function uu(t,i,s,c,p){var g=un(s)?si:Bt.current;return g=Ai(i,g),Fi(i,p),s=Ja(t,i,s,c,g,p),c=eu(),t!==null&&!cn?(i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~p,br(t,i,p)):(lt&&c&&Ma(i),i.flags|=1,Gt(t,i,s,p),i.child)}function mp(t,i,s,c,p){if(un(s)){var g=!0;Us(i)}else g=!1;if(Fi(i,p),i.stateNode===null)so(t,i),rp(i,s,c),su(i,s,c,p),c=!0;else if(t===null){var w=i.stateNode,T=i.memoizedProps;w.props=T;var R=w.context,B=s.contextType;typeof B=="object"&&B!==null?B=Dn(B):(B=un(s)?si:Bt.current,B=Ai(i,B));var ee=s.getDerivedStateFromProps,ne=typeof ee=="function"||typeof w.getSnapshotBeforeUpdate=="function";ne||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(T!==c||R!==B)&&ip(i,w,c,B),zr=!1;var J=i.memoizedState;w.state=J,Xs(i,c,w,p),R=i.memoizedState,T!==c||J!==R||an.current||zr?(typeof ee=="function"&&(lu(i,s,ee,c),R=i.memoizedState),(T=zr||np(i,s,T,c,J,R,B))?(ne||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(i.flags|=4194308)):(typeof w.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=R),w.props=c,w.state=R,w.context=B,c=T):(typeof w.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{w=i.stateNode,Df(t,i),T=i.memoizedProps,B=i.type===i.elementType?T:qn(i.type,T),w.props=B,ne=i.pendingProps,J=w.context,R=s.contextType,typeof R=="object"&&R!==null?R=Dn(R):(R=un(s)?si:Bt.current,R=Ai(i,R));var de=s.getDerivedStateFromProps;(ee=typeof de=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(T!==ne||J!==R)&&ip(i,w,c,R),zr=!1,J=i.memoizedState,w.state=J,Xs(i,c,w,p);var ge=i.memoizedState;T!==ne||J!==ge||an.current||zr?(typeof de=="function"&&(lu(i,s,de,c),ge=i.memoizedState),(B=zr||np(i,s,B,c,J,ge,R)||!1)?(ee||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(c,ge,R),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(c,ge,R)),typeof w.componentDidUpdate=="function"&&(i.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof w.componentDidUpdate!="function"||T===t.memoizedProps&&J===t.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||T===t.memoizedProps&&J===t.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=ge),w.props=c,w.state=ge,w.context=R,c=B):(typeof w.componentDidUpdate!="function"||T===t.memoizedProps&&J===t.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||T===t.memoizedProps&&J===t.memoizedState||(i.flags|=1024),c=!1)}return cu(t,i,s,c,g,p)}function cu(t,i,s,c,p,g){hp(t,i);var w=(i.flags&128)!==0;if(!c&&!w)return p&&kf(i,s,!1),br(t,i,g);c=i.stateNode,Bv.current=i;var T=w&&typeof s.getDerivedStateFromError!="function"?null:c.render();return i.flags|=1,t!==null&&w?(i.child=Oi(i,t.child,null,g),i.child=Oi(i,null,T,g)):Gt(t,i,T,g),i.memoizedState=c.state,p&&kf(i,s,!0),i.child}function gp(t){var i=t.stateNode;i.pendingContext?vf(t,i.pendingContext,i.pendingContext!==i.context):i.context&&vf(t,i.context,!1),Ka(t,i.containerInfo)}function yp(t,i,s,c,p){return Mi(),$a(p),i.flags|=256,Gt(t,i,s,c),i.child}var du={dehydrated:null,treeContext:null,retryLane:0};function fu(t){return{baseLanes:t,cachePool:null,transitions:null}}function vp(t,i,s){var c=i.pendingProps,p=at.current,g=!1,w=(i.flags&128)!==0,T;if((T=w)||(T=t!==null&&t.memoizedState===null?!1:(p&2)!==0),T?(g=!0,i.flags&=-129):(t===null||t.memoizedState!==null)&&(p|=1),tt(at,p&1),t===null)return Fa(i),t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((i.mode&1)===0?i.lanes=1:t.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(w=c.children,t=c.fallback,g?(c=i.mode,g=i.child,w={mode:"hidden",children:w},(c&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=w):g=xo(w,c,0,null),t=gi(t,c,s,null),g.return=i,t.return=i,g.sibling=t,i.child=g,i.child.memoizedState=fu(s),i.memoizedState=du,t):pu(i,w));if(p=t.memoizedState,p!==null&&(T=p.dehydrated,T!==null))return Uv(t,i,w,c,T,p,s);if(g){g=c.fallback,w=i.mode,p=t.child,T=p.sibling;var R={mode:"hidden",children:c.children};return(w&1)===0&&i.child!==p?(c=i.child,c.childLanes=0,c.pendingProps=R,i.deletions=null):(c=Wr(p,R),c.subtreeFlags=p.subtreeFlags&14680064),T!==null?g=Wr(T,g):(g=gi(g,w,s,null),g.flags|=2),g.return=i,c.return=i,c.sibling=g,i.child=c,c=g,g=i.child,w=t.child.memoizedState,w=w===null?fu(s):{baseLanes:w.baseLanes|s,cachePool:null,transitions:w.transitions},g.memoizedState=w,g.childLanes=t.childLanes&~s,i.memoizedState=du,c}return g=t.child,t=g.sibling,c=Wr(g,{mode:"visible",children:c.children}),(i.mode&1)===0&&(c.lanes=s),c.return=i,c.sibling=null,t!==null&&(s=i.deletions,s===null?(i.deletions=[t],i.flags|=16):s.push(t)),i.child=c,i.memoizedState=null,c}function pu(t,i){return i=xo({mode:"visible",children:i},t.mode,0,null),i.return=t,t.child=i}function lo(t,i,s,c){return c!==null&&$a(c),Oi(i,t.child,null,s),t=pu(i,i.pendingProps.children),t.flags|=2,i.memoizedState=null,t}function Uv(t,i,s,c,p,g,w){if(s)return i.flags&256?(i.flags&=-257,c=ou(Error(r(422))),lo(t,i,w,c)):i.memoizedState!==null?(i.child=t.child,i.flags|=128,null):(g=c.fallback,p=i.mode,c=xo({mode:"visible",children:c.children},p,0,null),g=gi(g,p,w,null),g.flags|=2,c.return=i,g.return=i,c.sibling=g,i.child=c,(i.mode&1)!==0&&Oi(i,t.child,null,w),i.child.memoizedState=fu(w),i.memoizedState=du,g);if((i.mode&1)===0)return lo(t,i,w,null);if(p.data==="$!"){if(c=p.nextSibling&&p.nextSibling.dataset,c)var T=c.dgst;return c=T,g=Error(r(419)),c=ou(g,c,void 0),lo(t,i,w,c)}if(T=(w&t.childLanes)!==0,cn||T){if(c=Tt,c!==null){switch(w&-w){case 4:p=2;break;case 16:p=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(c.suspendedLanes|w))!==0?0:p,p!==0&&p!==g.retryLane&&(g.retryLane=p,wr(t,p),Xn(c,t,p,-1))}return ju(),c=ou(Error(r(421))),lo(t,i,w,c)}return p.data==="$?"?(i.flags|=128,i.child=t.child,i=tx.bind(null,t),p._reactRetry=i,null):(t=g.treeContext,wn=Pr(p.nextSibling),kn=i,lt=!0,Kn=null,t!==null&&(jn[In++]=xr,jn[In++]=kr,jn[In++]=oi,xr=t.id,kr=t.overflow,oi=i),i=pu(i,c.children),i.flags|=4096,i)}function xp(t,i,s){t.lanes|=i;var c=t.alternate;c!==null&&(c.lanes|=i),Ha(t.return,i,s)}function hu(t,i,s,c,p){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:p}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=s,g.tailMode=p)}function kp(t,i,s){var c=i.pendingProps,p=c.revealOrder,g=c.tail;if(Gt(t,i,c.children,s),c=at.current,(c&2)!==0)c=c&1|2,i.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=i.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&xp(t,s,i);else if(t.tag===19)xp(t,s,i);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===i)break e;for(;t.sibling===null;){if(t.return===null||t.return===i)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}c&=1}if(tt(at,c),(i.mode&1)===0)i.memoizedState=null;else switch(p){case"forwards":for(s=i.child,p=null;s!==null;)t=s.alternate,t!==null&&Gs(t)===null&&(p=s),s=s.sibling;s=p,s===null?(p=i.child,i.child=null):(p=s.sibling,s.sibling=null),hu(i,!1,p,s,g);break;case"backwards":for(s=null,p=i.child,i.child=null;p!==null;){if(t=p.alternate,t!==null&&Gs(t)===null){i.child=p;break}t=p.sibling,p.sibling=s,s=p,p=t}hu(i,!0,s,null,g);break;case"together":hu(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function so(t,i){(i.mode&1)===0&&t!==null&&(t.alternate=null,i.alternate=null,i.flags|=2)}function br(t,i,s){if(t!==null&&(i.dependencies=t.dependencies),fi|=i.lanes,(s&i.childLanes)===0)return null;if(t!==null&&i.child!==t.child)throw Error(r(153));if(i.child!==null){for(t=i.child,s=Wr(t,t.pendingProps),i.child=s,s.return=i;t.sibling!==null;)t=t.sibling,s=s.sibling=Wr(t,t.pendingProps),s.return=i;s.sibling=null}return i.child}function Vv(t,i,s){switch(i.tag){case 3:gp(i),Mi();break;case 5:Pf(i);break;case 1:un(i.type)&&Us(i);break;case 4:Ka(i,i.stateNode.containerInfo);break;case 10:var c=i.type._context,p=i.memoizedProps.value;tt(qs,c._currentValue),c._currentValue=p;break;case 13:if(c=i.memoizedState,c!==null)return c.dehydrated!==null?(tt(at,at.current&1),i.flags|=128,null):(s&i.child.childLanes)!==0?vp(t,i,s):(tt(at,at.current&1),t=br(t,i,s),t!==null?t.sibling:null);tt(at,at.current&1);break;case 19:if(c=(s&i.childLanes)!==0,(t.flags&128)!==0){if(c)return kp(t,i,s);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),tt(at,at.current),c)break;return null;case 22:case 23:return i.lanes=0,pp(t,i,s)}return br(t,i,s)}var wp,mu,_p,bp;wp=function(t,i){for(var s=i.child;s!==null;){if(s.tag===5||s.tag===6)t.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},mu=function(){},_p=function(t,i,s,c){var p=t.memoizedProps;if(p!==c){t=i.stateNode,ci(sr.current);var g=null;switch(s){case"input":p=Lt(t,p),c=Lt(t,c),g=[];break;case"select":p=_({},p,{value:void 0}),c=_({},c,{value:void 0}),g=[];break;case"textarea":p=En(t,p),c=En(t,c),g=[];break;default:typeof p.onClick!="function"&&typeof c.onClick=="function"&&(t.onclick=Fs)}vt(s,c);var w;s=null;for(B in p)if(!c.hasOwnProperty(B)&&p.hasOwnProperty(B)&&p[B]!=null)if(B==="style"){var T=p[B];for(w in T)T.hasOwnProperty(w)&&(s||(s={}),s[w]="")}else B!=="dangerouslySetInnerHTML"&&B!=="children"&&B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&B!=="autoFocus"&&(o.hasOwnProperty(B)?g||(g=[]):(g=g||[]).push(B,null));for(B in c){var R=c[B];if(T=p!=null?p[B]:void 0,c.hasOwnProperty(B)&&R!==T&&(R!=null||T!=null))if(B==="style")if(T){for(w in T)!T.hasOwnProperty(w)||R&&R.hasOwnProperty(w)||(s||(s={}),s[w]="");for(w in R)R.hasOwnProperty(w)&&T[w]!==R[w]&&(s||(s={}),s[w]=R[w])}else s||(g||(g=[]),g.push(B,s)),s=R;else B==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,T=T?T.__html:void 0,R!=null&&T!==R&&(g=g||[]).push(B,R)):B==="children"?typeof R!="string"&&typeof R!="number"||(g=g||[]).push(B,""+R):B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&(o.hasOwnProperty(B)?(R!=null&&B==="onScroll"&&nt("scroll",t),g||T===R||(g=[])):(g=g||[]).push(B,R))}s&&(g=g||[]).push("style",s);var B=g;(i.updateQueue=B)&&(i.flags|=4)}},bp=function(t,i,s,c){s!==c&&(i.flags|=4)};function Ol(t,i){if(!lt)switch(t.tailMode){case"hidden":i=t.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?i||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function Vt(t){var i=t.alternate!==null&&t.alternate.child===t.child,s=0,c=0;if(i)for(var p=t.child;p!==null;)s|=p.lanes|p.childLanes,c|=p.subtreeFlags&14680064,c|=p.flags&14680064,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)s|=p.lanes|p.childLanes,c|=p.subtreeFlags,c|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=c,t.childLanes=s,i}function Hv(t,i,s){var c=i.pendingProps;switch(Oa(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vt(i),null;case 1:return un(i.type)&&Bs(),Vt(i),null;case 3:return c=i.stateNode,$i(),rt(an),rt(Bt),Ya(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(t===null||t.child===null)&&(Zs(i)?i.flags|=4:t===null||t.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Kn!==null&&(Eu(Kn),Kn=null))),mu(t,i),Vt(i),null;case 5:qa(i);var p=ci(Rl.current);if(s=i.type,t!==null&&i.stateNode!=null)_p(t,i,s,c,p),t.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!c){if(i.stateNode===null)throw Error(r(166));return Vt(i),null}if(t=ci(sr.current),Zs(i)){c=i.stateNode,s=i.type;var g=i.memoizedProps;switch(c[lr]=i,c[Nl]=g,t=(i.mode&1)!==0,s){case"dialog":nt("cancel",c),nt("close",c);break;case"iframe":case"object":case"embed":nt("load",c);break;case"video":case"audio":for(p=0;p<Sl.length;p++)nt(Sl[p],c);break;case"source":nt("error",c);break;case"img":case"image":case"link":nt("error",c),nt("load",c);break;case"details":nt("toggle",c);break;case"input":yn(c,g),nt("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!g.multiple},nt("invalid",c);break;case"textarea":tr(c,g),nt("invalid",c)}vt(s,g),p=null;for(var w in g)if(g.hasOwnProperty(w)){var T=g[w];w==="children"?typeof T=="string"?c.textContent!==T&&(g.suppressHydrationWarning!==!0&&zs(c.textContent,T,t),p=["children",T]):typeof T=="number"&&c.textContent!==""+T&&(g.suppressHydrationWarning!==!0&&zs(c.textContent,T,t),p=["children",""+T]):o.hasOwnProperty(w)&&T!=null&&w==="onScroll"&&nt("scroll",c)}switch(s){case"input":Dt(c),qt(c,g,!0);break;case"textarea":Dt(c),hr(c);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(c.onclick=Fs)}c=p,i.updateQueue=c,c!==null&&(i.flags|=4)}else{w=p.nodeType===9?p:p.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=W(s)),t==="http://www.w3.org/1999/xhtml"?s==="script"?(t=w.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof c.is=="string"?t=w.createElement(s,{is:c.is}):(t=w.createElement(s),s==="select"&&(w=t,c.multiple?w.multiple=!0:c.size&&(w.size=c.size))):t=w.createElementNS(t,s),t[lr]=i,t[Nl]=c,wp(t,i,!1,!1),i.stateNode=t;e:{switch(w=Nn(s,c),s){case"dialog":nt("cancel",t),nt("close",t),p=c;break;case"iframe":case"object":case"embed":nt("load",t),p=c;break;case"video":case"audio":for(p=0;p<Sl.length;p++)nt(Sl[p],t);p=c;break;case"source":nt("error",t),p=c;break;case"img":case"image":case"link":nt("error",t),nt("load",t),p=c;break;case"details":nt("toggle",t),p=c;break;case"input":yn(t,c),p=Lt(t,c),nt("invalid",t);break;case"option":p=c;break;case"select":t._wrapperState={wasMultiple:!!c.multiple},p=_({},c,{value:void 0}),nt("invalid",t);break;case"textarea":tr(t,c),p=En(t,c),nt("invalid",t);break;default:p=c}vt(s,p),T=p;for(g in T)if(T.hasOwnProperty(g)){var R=T[g];g==="style"?nr(t,R):g==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,R!=null&&Z(t,R)):g==="children"?typeof R=="string"?(s!=="textarea"||R!=="")&&ae(t,R):typeof R=="number"&&ae(t,""+R):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(o.hasOwnProperty(g)?R!=null&&g==="onScroll"&&nt("scroll",t):R!=null&&N(t,g,R,w))}switch(s){case"input":Dt(t),qt(t,c,!1);break;case"textarea":Dt(t),hr(t);break;case"option":c.value!=null&&t.setAttribute("value",""+Re(c.value));break;case"select":t.multiple=!!c.multiple,g=c.value,g!=null?Yt(t,!!c.multiple,g,!1):c.defaultValue!=null&&Yt(t,!!c.multiple,c.defaultValue,!0);break;default:typeof p.onClick=="function"&&(t.onclick=Fs)}switch(s){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Vt(i),null;case 6:if(t&&i.stateNode!=null)bp(t,i,t.memoizedProps,c);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(s=ci(Rl.current),ci(sr.current),Zs(i)){if(c=i.stateNode,s=i.memoizedProps,c[lr]=i,(g=c.nodeValue!==s)&&(t=kn,t!==null))switch(t.tag){case 3:zs(c.nodeValue,s,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&zs(c.nodeValue,s,(t.mode&1)!==0)}g&&(i.flags|=4)}else c=(s.nodeType===9?s:s.ownerDocument).createTextNode(c),c[lr]=i,i.stateNode=c}return Vt(i),null;case 13:if(rt(at),c=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(lt&&wn!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Ef(),Mi(),i.flags|=98560,g=!1;else if(g=Zs(i),c!==null&&c.dehydrated!==null){if(t===null){if(!g)throw Error(r(318));if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[lr]=i}else Mi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Vt(i),g=!1}else Kn!==null&&(Eu(Kn),Kn=null),g=!0;if(!g)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=s,i):(c=c!==null,c!==(t!==null&&t.memoizedState!==null)&&c&&(i.child.flags|=8192,(i.mode&1)!==0&&(t===null||(at.current&1)!==0?St===0&&(St=3):ju())),i.updateQueue!==null&&(i.flags|=4),Vt(i),null);case 4:return $i(),mu(t,i),t===null&&Cl(i.stateNode.containerInfo),Vt(i),null;case 10:return Va(i.type._context),Vt(i),null;case 17:return un(i.type)&&Bs(),Vt(i),null;case 19:if(rt(at),g=i.memoizedState,g===null)return Vt(i),null;if(c=(i.flags&128)!==0,w=g.rendering,w===null)if(c)Ol(g,!1);else{if(St!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(w=Gs(t),w!==null){for(i.flags|=128,Ol(g,!1),c=w.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),i.subtreeFlags=0,c=s,s=i.child;s!==null;)g=s,t=c,g.flags&=14680066,w=g.alternate,w===null?(g.childLanes=0,g.lanes=t,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=w.childLanes,g.lanes=w.lanes,g.child=w.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=w.memoizedProps,g.memoizedState=w.memoizedState,g.updateQueue=w.updateQueue,g.type=w.type,t=w.dependencies,g.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),s=s.sibling;return tt(at,at.current&1|2),i.child}t=t.sibling}g.tail!==null&&pt()>Hi&&(i.flags|=128,c=!0,Ol(g,!1),i.lanes=4194304)}else{if(!c)if(t=Gs(w),t!==null){if(i.flags|=128,c=!0,s=t.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),Ol(g,!0),g.tail===null&&g.tailMode==="hidden"&&!w.alternate&&!lt)return Vt(i),null}else 2*pt()-g.renderingStartTime>Hi&&s!==1073741824&&(i.flags|=128,c=!0,Ol(g,!1),i.lanes=4194304);g.isBackwards?(w.sibling=i.child,i.child=w):(s=g.last,s!==null?s.sibling=w:i.child=w,g.last=w)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=pt(),i.sibling=null,s=at.current,tt(at,c?s&1|2:s&1),i):(Vt(i),null);case 22:case 23:return Tu(),c=i.memoizedState!==null,t!==null&&t.memoizedState!==null!==c&&(i.flags|=8192),c&&(i.mode&1)!==0?(_n&1073741824)!==0&&(Vt(i),i.subtreeFlags&6&&(i.flags|=8192)):Vt(i),null;case 24:return null;case 25:return null}throw Error(r(156,i.tag))}function Wv(t,i){switch(Oa(i),i.tag){case 1:return un(i.type)&&Bs(),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return $i(),rt(an),rt(Bt),Ya(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 5:return qa(i),null;case 13:if(rt(at),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Mi()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return rt(at),null;case 4:return $i(),null;case 10:return Va(i.type._context),null;case 22:case 23:return Tu(),null;case 24:return null;default:return null}}var oo=!1,Ht=!1,Zv=typeof WeakSet=="function"?WeakSet:Set,he=null;function Ui(t,i){var s=t.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){dt(t,i,c)}else s.current=null}function gu(t,i,s){try{s()}catch(c){dt(t,i,c)}}var Sp=!1;function Kv(t,i){if(Ta=Ns,t=tf(),ka(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else e:{s=(s=t.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var p=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var w=0,T=-1,R=-1,B=0,ee=0,ne=t,J=null;t:for(;;){for(var de;ne!==s||p!==0&&ne.nodeType!==3||(T=w+p),ne!==g||c!==0&&ne.nodeType!==3||(R=w+c),ne.nodeType===3&&(w+=ne.nodeValue.length),(de=ne.firstChild)!==null;)J=ne,ne=de;for(;;){if(ne===t)break t;if(J===s&&++B===p&&(T=w),J===g&&++ee===c&&(R=w),(de=ne.nextSibling)!==null)break;ne=J,J=ne.parentNode}ne=de}s=T===-1||R===-1?null:{start:T,end:R}}else s=null}s=s||{start:0,end:0}}else s=null;for(ja={focusedElem:t,selectionRange:s},Ns=!1,he=i;he!==null;)if(i=he,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,he=t;else for(;he!==null;){i=he;try{var ge=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(ge!==null){var ve=ge.memoizedProps,ht=ge.memoizedState,O=i.stateNode,P=O.getSnapshotBeforeUpdate(i.elementType===i.type?ve:qn(i.type,ve),ht);O.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var z=i.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(se){dt(i,i.return,se)}if(t=i.sibling,t!==null){t.return=i.return,he=t;break}he=i.return}return ge=Sp,Sp=!1,ge}function zl(t,i,s){var c=i.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&t)===t){var g=p.destroy;p.destroy=void 0,g!==void 0&&gu(i,s,g)}p=p.next}while(p!==c)}}function ao(t,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&t)===t){var c=s.create;s.destroy=c()}s=s.next}while(s!==i)}}function yu(t){var i=t.ref;if(i!==null){var s=t.stateNode;switch(t.tag){case 5:t=s;break;default:t=s}typeof i=="function"?i(t):i.current=t}}function Cp(t){var i=t.alternate;i!==null&&(t.alternate=null,Cp(i)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(i=t.stateNode,i!==null&&(delete i[lr],delete i[Nl],delete i[Aa],delete i[jv],delete i[Iv])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Ep(t){return t.tag===5||t.tag===3||t.tag===4}function Np(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Ep(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function vu(t,i,s){var c=t.tag;if(c===5||c===6)t=t.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(t,i):s.insertBefore(t,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(t,s)):(i=s,i.appendChild(t)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Fs));else if(c!==4&&(t=t.child,t!==null))for(vu(t,i,s),t=t.sibling;t!==null;)vu(t,i,s),t=t.sibling}function xu(t,i,s){var c=t.tag;if(c===5||c===6)t=t.stateNode,i?s.insertBefore(t,i):s.appendChild(t);else if(c!==4&&(t=t.child,t!==null))for(xu(t,i,s),t=t.sibling;t!==null;)xu(t,i,s),t=t.sibling}var Rt=null,Qn=!1;function $r(t,i,s){for(s=s.child;s!==null;)Tp(t,i,s),s=s.sibling}function Tp(t,i,s){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(ws,s)}catch{}switch(s.tag){case 5:Ht||Ui(s,i);case 6:var c=Rt,p=Qn;Rt=null,$r(t,i,s),Rt=c,Qn=p,Rt!==null&&(Qn?(t=Rt,s=s.stateNode,t.nodeType===8?t.parentNode.removeChild(s):t.removeChild(s)):Rt.removeChild(s.stateNode));break;case 18:Rt!==null&&(Qn?(t=Rt,s=s.stateNode,t.nodeType===8?Ra(t.parentNode,s):t.nodeType===1&&Ra(t,s),gl(t)):Ra(Rt,s.stateNode));break;case 4:c=Rt,p=Qn,Rt=s.stateNode.containerInfo,Qn=!0,$r(t,i,s),Rt=c,Qn=p;break;case 0:case 11:case 14:case 15:if(!Ht&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){p=c=c.next;do{var g=p,w=g.destroy;g=g.tag,w!==void 0&&((g&2)!==0||(g&4)!==0)&&gu(s,i,w),p=p.next}while(p!==c)}$r(t,i,s);break;case 1:if(!Ht&&(Ui(s,i),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(T){dt(s,i,T)}$r(t,i,s);break;case 21:$r(t,i,s);break;case 22:s.mode&1?(Ht=(c=Ht)||s.memoizedState!==null,$r(t,i,s),Ht=c):$r(t,i,s);break;default:$r(t,i,s)}}function jp(t){var i=t.updateQueue;if(i!==null){t.updateQueue=null;var s=t.stateNode;s===null&&(s=t.stateNode=new Zv),i.forEach(function(c){var p=nx.bind(null,t,c);s.has(c)||(s.add(c),c.then(p,p))})}}function Yn(t,i){var s=i.deletions;if(s!==null)for(var c=0;c<s.length;c++){var p=s[c];try{var g=t,w=i,T=w;e:for(;T!==null;){switch(T.tag){case 5:Rt=T.stateNode,Qn=!1;break e;case 3:Rt=T.stateNode.containerInfo,Qn=!0;break e;case 4:Rt=T.stateNode.containerInfo,Qn=!0;break e}T=T.return}if(Rt===null)throw Error(r(160));Tp(g,w,p),Rt=null,Qn=!1;var R=p.alternate;R!==null&&(R.return=null),p.return=null}catch(B){dt(p,i,B)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Ip(i,t),i=i.sibling}function Ip(t,i){var s=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Yn(i,t),ar(t),c&4){try{zl(3,t,t.return),ao(3,t)}catch(ve){dt(t,t.return,ve)}try{zl(5,t,t.return)}catch(ve){dt(t,t.return,ve)}}break;case 1:Yn(i,t),ar(t),c&512&&s!==null&&Ui(s,s.return);break;case 5:if(Yn(i,t),ar(t),c&512&&s!==null&&Ui(s,s.return),t.flags&32){var p=t.stateNode;try{ae(p,"")}catch(ve){dt(t,t.return,ve)}}if(c&4&&(p=t.stateNode,p!=null)){var g=t.memoizedProps,w=s!==null?s.memoizedProps:g,T=t.type,R=t.updateQueue;if(t.updateQueue=null,R!==null)try{T==="input"&&g.type==="radio"&&g.name!=null&&_t(p,g),Nn(T,w);var B=Nn(T,g);for(w=0;w<R.length;w+=2){var ee=R[w],ne=R[w+1];ee==="style"?nr(p,ne):ee==="dangerouslySetInnerHTML"?Z(p,ne):ee==="children"?ae(p,ne):N(p,ee,ne,B)}switch(T){case"input":$n(p,g);break;case"textarea":pr(p,g);break;case"select":var J=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!g.multiple;var de=g.value;de!=null?Yt(p,!!g.multiple,de,!1):J!==!!g.multiple&&(g.defaultValue!=null?Yt(p,!!g.multiple,g.defaultValue,!0):Yt(p,!!g.multiple,g.multiple?[]:"",!1))}p[Nl]=g}catch(ve){dt(t,t.return,ve)}}break;case 6:if(Yn(i,t),ar(t),c&4){if(t.stateNode===null)throw Error(r(162));p=t.stateNode,g=t.memoizedProps;try{p.nodeValue=g}catch(ve){dt(t,t.return,ve)}}break;case 3:if(Yn(i,t),ar(t),c&4&&s!==null&&s.memoizedState.isDehydrated)try{gl(i.containerInfo)}catch(ve){dt(t,t.return,ve)}break;case 4:Yn(i,t),ar(t);break;case 13:Yn(i,t),ar(t),p=t.child,p.flags&8192&&(g=p.memoizedState!==null,p.stateNode.isHidden=g,!g||p.alternate!==null&&p.alternate.memoizedState!==null||(_u=pt())),c&4&&jp(t);break;case 22:if(ee=s!==null&&s.memoizedState!==null,t.mode&1?(Ht=(B=Ht)||ee,Yn(i,t),Ht=B):Yn(i,t),ar(t),c&8192){if(B=t.memoizedState!==null,(t.stateNode.isHidden=B)&&!ee&&(t.mode&1)!==0)for(he=t,ee=t.child;ee!==null;){for(ne=he=ee;he!==null;){switch(J=he,de=J.child,J.tag){case 0:case 11:case 14:case 15:zl(4,J,J.return);break;case 1:Ui(J,J.return);var ge=J.stateNode;if(typeof ge.componentWillUnmount=="function"){c=J,s=J.return;try{i=c,ge.props=i.memoizedProps,ge.state=i.memoizedState,ge.componentWillUnmount()}catch(ve){dt(c,s,ve)}}break;case 5:Ui(J,J.return);break;case 22:if(J.memoizedState!==null){Ap(ne);continue}}de!==null?(de.return=J,he=de):Ap(ne)}ee=ee.sibling}e:for(ee=null,ne=t;;){if(ne.tag===5){if(ee===null){ee=ne;try{p=ne.stateNode,B?(g=p.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(T=ne.stateNode,R=ne.memoizedProps.style,w=R!=null&&R.hasOwnProperty("display")?R.display:null,T.style.display=sn("display",w))}catch(ve){dt(t,t.return,ve)}}}else if(ne.tag===6){if(ee===null)try{ne.stateNode.nodeValue=B?"":ne.memoizedProps}catch(ve){dt(t,t.return,ve)}}else if((ne.tag!==22&&ne.tag!==23||ne.memoizedState===null||ne===t)&&ne.child!==null){ne.child.return=ne,ne=ne.child;continue}if(ne===t)break e;for(;ne.sibling===null;){if(ne.return===null||ne.return===t)break e;ee===ne&&(ee=null),ne=ne.return}ee===ne&&(ee=null),ne.sibling.return=ne.return,ne=ne.sibling}}break;case 19:Yn(i,t),ar(t),c&4&&jp(t);break;case 21:break;default:Yn(i,t),ar(t)}}function ar(t){var i=t.flags;if(i&2){try{e:{for(var s=t.return;s!==null;){if(Ep(s)){var c=s;break e}s=s.return}throw Error(r(160))}switch(c.tag){case 5:var p=c.stateNode;c.flags&32&&(ae(p,""),c.flags&=-33);var g=Np(t);xu(t,g,p);break;case 3:case 4:var w=c.stateNode.containerInfo,T=Np(t);vu(t,T,w);break;default:throw Error(r(161))}}catch(R){dt(t,t.return,R)}t.flags&=-3}i&4096&&(t.flags&=-4097)}function qv(t,i,s){he=t,Dp(t)}function Dp(t,i,s){for(var c=(t.mode&1)!==0;he!==null;){var p=he,g=p.child;if(p.tag===22&&c){var w=p.memoizedState!==null||oo;if(!w){var T=p.alternate,R=T!==null&&T.memoizedState!==null||Ht;T=oo;var B=Ht;if(oo=w,(Ht=R)&&!B)for(he=p;he!==null;)w=he,R=w.child,w.tag===22&&w.memoizedState!==null?Pp(p):R!==null?(R.return=w,he=R):Pp(p);for(;g!==null;)he=g,Dp(g),g=g.sibling;he=p,oo=T,Ht=B}Rp(t)}else(p.subtreeFlags&8772)!==0&&g!==null?(g.return=p,he=g):Rp(t)}}function Rp(t){for(;he!==null;){var i=he;if((i.flags&8772)!==0){var s=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Ht||ao(5,i);break;case 1:var c=i.stateNode;if(i.flags&4&&!Ht)if(s===null)c.componentDidMount();else{var p=i.elementType===i.type?s.memoizedProps:qn(i.type,s.memoizedProps);c.componentDidUpdate(p,s.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var g=i.updateQueue;g!==null&&Af(i,g,c);break;case 3:var w=i.updateQueue;if(w!==null){if(s=null,i.child!==null)switch(i.child.tag){case 5:s=i.child.stateNode;break;case 1:s=i.child.stateNode}Af(i,w,s)}break;case 5:var T=i.stateNode;if(s===null&&i.flags&4){s=T;var R=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":R.autoFocus&&s.focus();break;case"img":R.src&&(s.src=R.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var B=i.alternate;if(B!==null){var ee=B.memoizedState;if(ee!==null){var ne=ee.dehydrated;ne!==null&&gl(ne)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Ht||i.flags&512&&yu(i)}catch(J){dt(i,i.return,J)}}if(i===t){he=null;break}if(s=i.sibling,s!==null){s.return=i.return,he=s;break}he=i.return}}function Ap(t){for(;he!==null;){var i=he;if(i===t){he=null;break}var s=i.sibling;if(s!==null){s.return=i.return,he=s;break}he=i.return}}function Pp(t){for(;he!==null;){var i=he;try{switch(i.tag){case 0:case 11:case 15:var s=i.return;try{ao(4,i)}catch(R){dt(i,s,R)}break;case 1:var c=i.stateNode;if(typeof c.componentDidMount=="function"){var p=i.return;try{c.componentDidMount()}catch(R){dt(i,p,R)}}var g=i.return;try{yu(i)}catch(R){dt(i,g,R)}break;case 5:var w=i.return;try{yu(i)}catch(R){dt(i,w,R)}}}catch(R){dt(i,i.return,R)}if(i===t){he=null;break}var T=i.sibling;if(T!==null){T.return=i.return,he=T;break}he=i.return}}var Qv=Math.ceil,uo=$.ReactCurrentDispatcher,ku=$.ReactCurrentOwner,An=$.ReactCurrentBatchConfig,Ve=0,Tt=null,xt=null,At=0,_n=0,Vi=Lr(0),St=0,Fl=null,fi=0,co=0,wu=0,$l=null,dn=null,_u=0,Hi=1/0,Sr=null,fo=!1,bu=null,Br=null,po=!1,Ur=null,ho=0,Bl=0,Su=null,mo=-1,go=0;function Jt(){return(Ve&6)!==0?pt():mo!==-1?mo:mo=pt()}function Vr(t){return(t.mode&1)===0?1:(Ve&2)!==0&&At!==0?At&-At:Rv.transition!==null?(go===0&&(go=Ed()),go):(t=qe,t!==0||(t=window.event,t=t===void 0?16:Ld(t.type)),t)}function Xn(t,i,s,c){if(50<Bl)throw Bl=0,Su=null,Error(r(185));dl(t,s,c),((Ve&2)===0||t!==Tt)&&(t===Tt&&((Ve&2)===0&&(co|=s),St===4&&Hr(t,At)),fn(t,c),s===1&&Ve===0&&(i.mode&1)===0&&(Hi=pt()+500,Vs&&Or()))}function fn(t,i){var s=t.callbackNode;Ry(t,i);var c=Ss(t,t===Tt?At:0);if(c===0)s!==null&&bd(s),t.callbackNode=null,t.callbackPriority=0;else if(i=c&-c,t.callbackPriority!==i){if(s!=null&&bd(s),i===1)t.tag===0?Dv(Mp.bind(null,t)):wf(Mp.bind(null,t)),Nv(function(){(Ve&6)===0&&Or()}),s=null;else{switch(Nd(c)){case 1:s=ra;break;case 4:s=Sd;break;case 16:s=ks;break;case 536870912:s=Cd;break;default:s=ks}s=Hp(s,Lp.bind(null,t))}t.callbackPriority=i,t.callbackNode=s}}function Lp(t,i){if(mo=-1,go=0,(Ve&6)!==0)throw Error(r(327));var s=t.callbackNode;if(Wi()&&t.callbackNode!==s)return null;var c=Ss(t,t===Tt?At:0);if(c===0)return null;if((c&30)!==0||(c&t.expiredLanes)!==0||i)i=yo(t,c);else{i=c;var p=Ve;Ve|=2;var g=zp();(Tt!==t||At!==i)&&(Sr=null,Hi=pt()+500,hi(t,i));do try{Gv();break}catch(T){Op(t,T)}while(!0);Ua(),uo.current=g,Ve=p,xt!==null?i=0:(Tt=null,At=0,i=St)}if(i!==0){if(i===2&&(p=ia(t),p!==0&&(c=p,i=Cu(t,p))),i===1)throw s=Fl,hi(t,0),Hr(t,c),fn(t,pt()),s;if(i===6)Hr(t,c);else{if(p=t.current.alternate,(c&30)===0&&!Yv(p)&&(i=yo(t,c),i===2&&(g=ia(t),g!==0&&(c=g,i=Cu(t,g))),i===1))throw s=Fl,hi(t,0),Hr(t,c),fn(t,pt()),s;switch(t.finishedWork=p,t.finishedLanes=c,i){case 0:case 1:throw Error(r(345));case 2:mi(t,dn,Sr);break;case 3:if(Hr(t,c),(c&130023424)===c&&(i=_u+500-pt(),10<i)){if(Ss(t,0)!==0)break;if(p=t.suspendedLanes,(p&c)!==c){Jt(),t.pingedLanes|=t.suspendedLanes&p;break}t.timeoutHandle=Da(mi.bind(null,t,dn,Sr),i);break}mi(t,dn,Sr);break;case 4:if(Hr(t,c),(c&4194240)===c)break;for(i=t.eventTimes,p=-1;0<c;){var w=31-Wn(c);g=1<<w,w=i[w],w>p&&(p=w),c&=~g}if(c=p,c=pt()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*Qv(c/1960))-c,10<c){t.timeoutHandle=Da(mi.bind(null,t,dn,Sr),c);break}mi(t,dn,Sr);break;case 5:mi(t,dn,Sr);break;default:throw Error(r(329))}}}return fn(t,pt()),t.callbackNode===s?Lp.bind(null,t):null}function Cu(t,i){var s=$l;return t.current.memoizedState.isDehydrated&&(hi(t,i).flags|=256),t=yo(t,i),t!==2&&(i=dn,dn=s,i!==null&&Eu(i)),t}function Eu(t){dn===null?dn=t:dn.push.apply(dn,t)}function Yv(t){for(var i=t;;){if(i.flags&16384){var s=i.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var c=0;c<s.length;c++){var p=s[c],g=p.getSnapshot;p=p.value;try{if(!Zn(g(),p))return!1}catch{return!1}}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Hr(t,i){for(i&=~wu,i&=~co,t.suspendedLanes|=i,t.pingedLanes&=~i,t=t.expirationTimes;0<i;){var s=31-Wn(i),c=1<<s;t[s]=-1,i&=~c}}function Mp(t){if((Ve&6)!==0)throw Error(r(327));Wi();var i=Ss(t,0);if((i&1)===0)return fn(t,pt()),null;var s=yo(t,i);if(t.tag!==0&&s===2){var c=ia(t);c!==0&&(i=c,s=Cu(t,c))}if(s===1)throw s=Fl,hi(t,0),Hr(t,i),fn(t,pt()),s;if(s===6)throw Error(r(345));return t.finishedWork=t.current.alternate,t.finishedLanes=i,mi(t,dn,Sr),fn(t,pt()),null}function Nu(t,i){var s=Ve;Ve|=1;try{return t(i)}finally{Ve=s,Ve===0&&(Hi=pt()+500,Vs&&Or())}}function pi(t){Ur!==null&&Ur.tag===0&&(Ve&6)===0&&Wi();var i=Ve;Ve|=1;var s=An.transition,c=qe;try{if(An.transition=null,qe=1,t)return t()}finally{qe=c,An.transition=s,Ve=i,(Ve&6)===0&&Or()}}function Tu(){_n=Vi.current,rt(Vi)}function hi(t,i){t.finishedWork=null,t.finishedLanes=0;var s=t.timeoutHandle;if(s!==-1&&(t.timeoutHandle=-1,Ev(s)),xt!==null)for(s=xt.return;s!==null;){var c=s;switch(Oa(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Bs();break;case 3:$i(),rt(an),rt(Bt),Ya();break;case 5:qa(c);break;case 4:$i();break;case 13:rt(at);break;case 19:rt(at);break;case 10:Va(c.type._context);break;case 22:case 23:Tu()}s=s.return}if(Tt=t,xt=t=Wr(t.current,null),At=_n=i,St=0,Fl=null,wu=co=fi=0,dn=$l=null,ui!==null){for(i=0;i<ui.length;i++)if(s=ui[i],c=s.interleaved,c!==null){s.interleaved=null;var p=c.next,g=s.pending;if(g!==null){var w=g.next;g.next=p,c.next=w}s.pending=c}ui=null}return t}function Op(t,i){do{var s=xt;try{if(Ua(),Js.current=ro,eo){for(var c=ut.memoizedState;c!==null;){var p=c.queue;p!==null&&(p.pending=null),c=c.next}eo=!1}if(di=0,Nt=bt=ut=null,Al=!1,Pl=0,ku.current=null,s===null||s.return===null){St=1,Fl=i,xt=null;break}e:{var g=t,w=s.return,T=s,R=i;if(i=At,T.flags|=32768,R!==null&&typeof R=="object"&&typeof R.then=="function"){var B=R,ee=T,ne=ee.tag;if((ee.mode&1)===0&&(ne===0||ne===11||ne===15)){var J=ee.alternate;J?(ee.updateQueue=J.updateQueue,ee.memoizedState=J.memoizedState,ee.lanes=J.lanes):(ee.updateQueue=null,ee.memoizedState=null)}var de=ap(w);if(de!==null){de.flags&=-257,up(de,w,T,g,i),de.mode&1&&op(g,B,i),i=de,R=B;var ge=i.updateQueue;if(ge===null){var ve=new Set;ve.add(R),i.updateQueue=ve}else ge.add(R);break e}else{if((i&1)===0){op(g,B,i),ju();break e}R=Error(r(426))}}else if(lt&&T.mode&1){var ht=ap(w);if(ht!==null){(ht.flags&65536)===0&&(ht.flags|=256),up(ht,w,T,g,i),$a(Bi(R,T));break e}}g=R=Bi(R,T),St!==4&&(St=2),$l===null?$l=[g]:$l.push(g),g=w;do{switch(g.tag){case 3:g.flags|=65536,i&=-i,g.lanes|=i;var O=lp(g,R,i);Rf(g,O);break e;case 1:T=R;var P=g.type,z=g.stateNode;if((g.flags&128)===0&&(typeof P.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(Br===null||!Br.has(z)))){g.flags|=65536,i&=-i,g.lanes|=i;var se=sp(g,T,i);Rf(g,se);break e}}g=g.return}while(g!==null)}$p(s)}catch(we){i=we,xt===s&&s!==null&&(xt=s=s.return);continue}break}while(!0)}function zp(){var t=uo.current;return uo.current=ro,t===null?ro:t}function ju(){(St===0||St===3||St===2)&&(St=4),Tt===null||(fi&268435455)===0&&(co&268435455)===0||Hr(Tt,At)}function yo(t,i){var s=Ve;Ve|=2;var c=zp();(Tt!==t||At!==i)&&(Sr=null,hi(t,i));do try{Xv();break}catch(p){Op(t,p)}while(!0);if(Ua(),Ve=s,uo.current=c,xt!==null)throw Error(r(261));return Tt=null,At=0,St}function Xv(){for(;xt!==null;)Fp(xt)}function Gv(){for(;xt!==null&&!by();)Fp(xt)}function Fp(t){var i=Vp(t.alternate,t,_n);t.memoizedProps=t.pendingProps,i===null?$p(t):xt=i,ku.current=null}function $p(t){var i=t;do{var s=i.alternate;if(t=i.return,(i.flags&32768)===0){if(s=Hv(s,i,_n),s!==null){xt=s;return}}else{if(s=Wv(s,i),s!==null){s.flags&=32767,xt=s;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{St=6,xt=null;return}}if(i=i.sibling,i!==null){xt=i;return}xt=i=t}while(i!==null);St===0&&(St=5)}function mi(t,i,s){var c=qe,p=An.transition;try{An.transition=null,qe=1,Jv(t,i,s,c)}finally{An.transition=p,qe=c}return null}function Jv(t,i,s,c){do Wi();while(Ur!==null);if((Ve&6)!==0)throw Error(r(327));s=t.finishedWork;var p=t.finishedLanes;if(s===null)return null;if(t.finishedWork=null,t.finishedLanes=0,s===t.current)throw Error(r(177));t.callbackNode=null,t.callbackPriority=0;var g=s.lanes|s.childLanes;if(Ay(t,g),t===Tt&&(xt=Tt=null,At=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||po||(po=!0,Hp(ks,function(){return Wi(),null})),g=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||g){g=An.transition,An.transition=null;var w=qe;qe=1;var T=Ve;Ve|=4,ku.current=null,Kv(t,s),Ip(s,t),xv(ja),Ns=!!Ta,ja=Ta=null,t.current=s,qv(s),Sy(),Ve=T,qe=w,An.transition=g}else t.current=s;if(po&&(po=!1,Ur=t,ho=p),g=t.pendingLanes,g===0&&(Br=null),Ny(s.stateNode),fn(t,pt()),i!==null)for(c=t.onRecoverableError,s=0;s<i.length;s++)p=i[s],c(p.value,{componentStack:p.stack,digest:p.digest});if(fo)throw fo=!1,t=bu,bu=null,t;return(ho&1)!==0&&t.tag!==0&&Wi(),g=t.pendingLanes,(g&1)!==0?t===Su?Bl++:(Bl=0,Su=t):Bl=0,Or(),null}function Wi(){if(Ur!==null){var t=Nd(ho),i=An.transition,s=qe;try{if(An.transition=null,qe=16>t?16:t,Ur===null)var c=!1;else{if(t=Ur,Ur=null,ho=0,(Ve&6)!==0)throw Error(r(331));var p=Ve;for(Ve|=4,he=t.current;he!==null;){var g=he,w=g.child;if((he.flags&16)!==0){var T=g.deletions;if(T!==null){for(var R=0;R<T.length;R++){var B=T[R];for(he=B;he!==null;){var ee=he;switch(ee.tag){case 0:case 11:case 15:zl(8,ee,g)}var ne=ee.child;if(ne!==null)ne.return=ee,he=ne;else for(;he!==null;){ee=he;var J=ee.sibling,de=ee.return;if(Cp(ee),ee===B){he=null;break}if(J!==null){J.return=de,he=J;break}he=de}}}var ge=g.alternate;if(ge!==null){var ve=ge.child;if(ve!==null){ge.child=null;do{var ht=ve.sibling;ve.sibling=null,ve=ht}while(ve!==null)}}he=g}}if((g.subtreeFlags&2064)!==0&&w!==null)w.return=g,he=w;else e:for(;he!==null;){if(g=he,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:zl(9,g,g.return)}var O=g.sibling;if(O!==null){O.return=g.return,he=O;break e}he=g.return}}var P=t.current;for(he=P;he!==null;){w=he;var z=w.child;if((w.subtreeFlags&2064)!==0&&z!==null)z.return=w,he=z;else e:for(w=P;he!==null;){if(T=he,(T.flags&2048)!==0)try{switch(T.tag){case 0:case 11:case 15:ao(9,T)}}catch(we){dt(T,T.return,we)}if(T===w){he=null;break e}var se=T.sibling;if(se!==null){se.return=T.return,he=se;break e}he=T.return}}if(Ve=p,Or(),ir&&typeof ir.onPostCommitFiberRoot=="function")try{ir.onPostCommitFiberRoot(ws,t)}catch{}c=!0}return c}finally{qe=s,An.transition=i}}return!1}function Bp(t,i,s){i=Bi(s,i),i=lp(t,i,1),t=Fr(t,i,1),i=Jt(),t!==null&&(dl(t,1,i),fn(t,i))}function dt(t,i,s){if(t.tag===3)Bp(t,t,s);else for(;i!==null;){if(i.tag===3){Bp(i,t,s);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Br===null||!Br.has(c))){t=Bi(s,t),t=sp(i,t,1),i=Fr(i,t,1),t=Jt(),i!==null&&(dl(i,1,t),fn(i,t));break}}i=i.return}}function ex(t,i,s){var c=t.pingCache;c!==null&&c.delete(i),i=Jt(),t.pingedLanes|=t.suspendedLanes&s,Tt===t&&(At&s)===s&&(St===4||St===3&&(At&130023424)===At&&500>pt()-_u?hi(t,0):wu|=s),fn(t,i)}function Up(t,i){i===0&&((t.mode&1)===0?i=1:(i=bs,bs<<=1,(bs&130023424)===0&&(bs=4194304)));var s=Jt();t=wr(t,i),t!==null&&(dl(t,i,s),fn(t,s))}function tx(t){var i=t.memoizedState,s=0;i!==null&&(s=i.retryLane),Up(t,s)}function nx(t,i){var s=0;switch(t.tag){case 13:var c=t.stateNode,p=t.memoizedState;p!==null&&(s=p.retryLane);break;case 19:c=t.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(i),Up(t,s)}var Vp;Vp=function(t,i,s){if(t!==null)if(t.memoizedProps!==i.pendingProps||an.current)cn=!0;else{if((t.lanes&s)===0&&(i.flags&128)===0)return cn=!1,Vv(t,i,s);cn=(t.flags&131072)!==0}else cn=!1,lt&&(i.flags&1048576)!==0&&_f(i,Ws,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;so(t,i),t=i.pendingProps;var p=Ai(i,Bt.current);Fi(i,s),p=Ja(null,i,c,t,p,s);var g=eu();return i.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,un(c)?(g=!0,Us(i)):g=!1,i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Za(i),p.updater=io,i.stateNode=p,p._reactInternals=i,su(i,c,t,s),i=cu(null,i,c,!0,g,s)):(i.tag=0,lt&&g&&Ma(i),Gt(null,i,p,s),i=i.child),i;case 16:c=i.elementType;e:{switch(so(t,i),t=i.pendingProps,p=c._init,c=p(c._payload),i.type=c,p=i.tag=ix(c),t=qn(c,t),p){case 0:i=uu(null,i,c,t,s);break e;case 1:i=mp(null,i,c,t,s);break e;case 11:i=cp(null,i,c,t,s);break e;case 14:i=dp(null,i,c,qn(c.type,t),s);break e}throw Error(r(306,c,""))}return i;case 0:return c=i.type,p=i.pendingProps,p=i.elementType===c?p:qn(c,p),uu(t,i,c,p,s);case 1:return c=i.type,p=i.pendingProps,p=i.elementType===c?p:qn(c,p),mp(t,i,c,p,s);case 3:e:{if(gp(i),t===null)throw Error(r(387));c=i.pendingProps,g=i.memoizedState,p=g.element,Df(t,i),Xs(i,c,null,s);var w=i.memoizedState;if(c=w.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){p=Bi(Error(r(423)),i),i=yp(t,i,c,s,p);break e}else if(c!==p){p=Bi(Error(r(424)),i),i=yp(t,i,c,s,p);break e}else for(wn=Pr(i.stateNode.containerInfo.firstChild),kn=i,lt=!0,Kn=null,s=jf(i,null,c,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Mi(),c===p){i=br(t,i,s);break e}Gt(t,i,c,s)}i=i.child}return i;case 5:return Pf(i),t===null&&Fa(i),c=i.type,p=i.pendingProps,g=t!==null?t.memoizedProps:null,w=p.children,Ia(c,p)?w=null:g!==null&&Ia(c,g)&&(i.flags|=32),hp(t,i),Gt(t,i,w,s),i.child;case 6:return t===null&&Fa(i),null;case 13:return vp(t,i,s);case 4:return Ka(i,i.stateNode.containerInfo),c=i.pendingProps,t===null?i.child=Oi(i,null,c,s):Gt(t,i,c,s),i.child;case 11:return c=i.type,p=i.pendingProps,p=i.elementType===c?p:qn(c,p),cp(t,i,c,p,s);case 7:return Gt(t,i,i.pendingProps,s),i.child;case 8:return Gt(t,i,i.pendingProps.children,s),i.child;case 12:return Gt(t,i,i.pendingProps.children,s),i.child;case 10:e:{if(c=i.type._context,p=i.pendingProps,g=i.memoizedProps,w=p.value,tt(qs,c._currentValue),c._currentValue=w,g!==null)if(Zn(g.value,w)){if(g.children===p.children&&!an.current){i=br(t,i,s);break e}}else for(g=i.child,g!==null&&(g.return=i);g!==null;){var T=g.dependencies;if(T!==null){w=g.child;for(var R=T.firstContext;R!==null;){if(R.context===c){if(g.tag===1){R=_r(-1,s&-s),R.tag=2;var B=g.updateQueue;if(B!==null){B=B.shared;var ee=B.pending;ee===null?R.next=R:(R.next=ee.next,ee.next=R),B.pending=R}}g.lanes|=s,R=g.alternate,R!==null&&(R.lanes|=s),Ha(g.return,s,i),T.lanes|=s;break}R=R.next}}else if(g.tag===10)w=g.type===i.type?null:g.child;else if(g.tag===18){if(w=g.return,w===null)throw Error(r(341));w.lanes|=s,T=w.alternate,T!==null&&(T.lanes|=s),Ha(w,s,i),w=g.sibling}else w=g.child;if(w!==null)w.return=g;else for(w=g;w!==null;){if(w===i){w=null;break}if(g=w.sibling,g!==null){g.return=w.return,w=g;break}w=w.return}g=w}Gt(t,i,p.children,s),i=i.child}return i;case 9:return p=i.type,c=i.pendingProps.children,Fi(i,s),p=Dn(p),c=c(p),i.flags|=1,Gt(t,i,c,s),i.child;case 14:return c=i.type,p=qn(c,i.pendingProps),p=qn(c.type,p),dp(t,i,c,p,s);case 15:return fp(t,i,i.type,i.pendingProps,s);case 17:return c=i.type,p=i.pendingProps,p=i.elementType===c?p:qn(c,p),so(t,i),i.tag=1,un(c)?(t=!0,Us(i)):t=!1,Fi(i,s),rp(i,c,p),su(i,c,p,s),cu(null,i,c,!0,t,s);case 19:return kp(t,i,s);case 22:return pp(t,i,s)}throw Error(r(156,i.tag))};function Hp(t,i){return _d(t,i)}function rx(t,i,s,c){this.tag=t,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pn(t,i,s,c){return new rx(t,i,s,c)}function Iu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ix(t){if(typeof t=="function")return Iu(t)?1:0;if(t!=null){if(t=t.$$typeof,t===X)return 11;if(t===F)return 14}return 2}function Wr(t,i){var s=t.alternate;return s===null?(s=Pn(t.tag,i,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=i,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&14680064,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,i=t.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s}function vo(t,i,s,c,p,g){var w=2;if(c=t,typeof t=="function")Iu(t)&&(w=1);else if(typeof t=="string")w=5;else e:switch(t){case Y:return gi(s.children,p,g,i);case te:w=8,p|=8;break;case Q:return t=Pn(12,s,i,p|2),t.elementType=Q,t.lanes=g,t;case G:return t=Pn(13,s,i,p),t.elementType=G,t.lanes=g,t;case K:return t=Pn(19,s,i,p),t.elementType=K,t.lanes=g,t;case ye:return xo(s,p,g,i);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case I:w=10;break e;case q:w=9;break e;case X:w=11;break e;case F:w=14;break e;case pe:w=16,c=null;break e}throw Error(r(130,t==null?t:typeof t,""))}return i=Pn(w,s,i,p),i.elementType=t,i.type=c,i.lanes=g,i}function gi(t,i,s,c){return t=Pn(7,t,c,i),t.lanes=s,t}function xo(t,i,s,c){return t=Pn(22,t,c,i),t.elementType=ye,t.lanes=s,t.stateNode={isHidden:!1},t}function Du(t,i,s){return t=Pn(6,t,null,i),t.lanes=s,t}function Ru(t,i,s){return i=Pn(4,t.children!==null?t.children:[],t.key,i),i.lanes=s,i.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},i}function lx(t,i,s,c,p){this.tag=i,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=la(0),this.expirationTimes=la(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=la(0),this.identifierPrefix=c,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Au(t,i,s,c,p,g,w,T,R){return t=new lx(t,i,s,T,R),i===1?(i=1,g===!0&&(i|=8)):i=0,g=Pn(3,null,null,i),t.current=g,g.stateNode=t,g.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},Za(g),t}function sx(t,i,s){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:c==null?null:""+c,children:t,containerInfo:i,implementation:s}}function Wp(t){if(!t)return Mr;t=t._reactInternals;e:{if(ii(t)!==t||t.tag!==1)throw Error(r(170));var i=t;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(un(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(r(171))}if(t.tag===1){var s=t.type;if(un(s))return xf(t,s,i)}return i}function Zp(t,i,s,c,p,g,w,T,R){return t=Au(s,c,!0,t,p,g,w,T,R),t.context=Wp(null),s=t.current,c=Jt(),p=Vr(s),g=_r(c,p),g.callback=i??null,Fr(s,g,p),t.current.lanes=p,dl(t,p,c),fn(t,c),t}function ko(t,i,s,c){var p=i.current,g=Jt(),w=Vr(p);return s=Wp(s),i.context===null?i.context=s:i.pendingContext=s,i=_r(g,w),i.payload={element:t},c=c===void 0?null:c,c!==null&&(i.callback=c),t=Fr(p,i,w),t!==null&&(Xn(t,p,w,g),Ys(t,p,w)),w}function wo(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Kp(t,i){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<i?s:i}}function Pu(t,i){Kp(t,i),(t=t.alternate)&&Kp(t,i)}function ox(){return null}var qp=typeof reportError=="function"?reportError:function(t){console.error(t)};function Lu(t){this._internalRoot=t}_o.prototype.render=Lu.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw Error(r(409));ko(t,i,null,null)},_o.prototype.unmount=Lu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;pi(function(){ko(null,t,null,null)}),i[yr]=null}};function _o(t){this._internalRoot=t}_o.prototype.unstable_scheduleHydration=function(t){if(t){var i=Id();t={blockedOn:null,target:t,priority:i};for(var s=0;s<Dr.length&&i!==0&&i<Dr[s].priority;s++);Dr.splice(s,0,t),s===0&&Ad(t)}};function Mu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function bo(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Qp(){}function ax(t,i,s,c,p){if(p){if(typeof c=="function"){var g=c;c=function(){var B=wo(w);g.call(B)}}var w=Zp(i,c,t,0,null,!1,!1,"",Qp);return t._reactRootContainer=w,t[yr]=w.current,Cl(t.nodeType===8?t.parentNode:t),pi(),w}for(;p=t.lastChild;)t.removeChild(p);if(typeof c=="function"){var T=c;c=function(){var B=wo(R);T.call(B)}}var R=Au(t,0,!1,null,null,!1,!1,"",Qp);return t._reactRootContainer=R,t[yr]=R.current,Cl(t.nodeType===8?t.parentNode:t),pi(function(){ko(i,R,s,c)}),R}function So(t,i,s,c,p){var g=s._reactRootContainer;if(g){var w=g;if(typeof p=="function"){var T=p;p=function(){var R=wo(w);T.call(R)}}ko(i,w,t,p)}else w=ax(s,i,t,p,c);return wo(w)}Td=function(t){switch(t.tag){case 3:var i=t.stateNode;if(i.current.memoizedState.isDehydrated){var s=cl(i.pendingLanes);s!==0&&(sa(i,s|1),fn(i,pt()),(Ve&6)===0&&(Hi=pt()+500,Or()))}break;case 13:pi(function(){var c=wr(t,1);if(c!==null){var p=Jt();Xn(c,t,1,p)}}),Pu(t,1)}},oa=function(t){if(t.tag===13){var i=wr(t,134217728);if(i!==null){var s=Jt();Xn(i,t,134217728,s)}Pu(t,134217728)}},jd=function(t){if(t.tag===13){var i=Vr(t),s=wr(t,i);if(s!==null){var c=Jt();Xn(s,t,i,c)}Pu(t,i)}},Id=function(){return qe},Dd=function(t,i){var s=qe;try{return qe=t,i()}finally{qe=s}},al=function(t,i,s){switch(i){case"input":if($n(t,s),i=s.name,s.type==="radio"&&i!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<s.length;i++){var c=s[i];if(c!==t&&c.form===t.form){var p=$s(c);if(!p)throw Error(r(90));rn(c),$n(c,p)}}}break;case"textarea":pr(t,s);break;case"select":i=s.value,i!=null&&Yt(t,!!s.multiple,i,!1)}},Xt=Nu,Ft=pi;var ux={usingClientEntryPoint:!1,Events:[Tl,Di,$s,zt,Un,Nu]},Ul={findFiberByHostInstance:li,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cx={bundleType:Ul.bundleType,version:Ul.version,rendererPackageName:Ul.rendererPackageName,rendererConfig:Ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=kd(t),t===null?null:t.stateNode},findFiberByHostInstance:Ul.findFiberByHostInstance||ox,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Co=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Co.isDisabled&&Co.supportsFiber)try{ws=Co.inject(cx),ir=Co}catch{}}return pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ux,pn.createPortal=function(t,i){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Mu(i))throw Error(r(200));return sx(t,i,null,s)},pn.createRoot=function(t,i){if(!Mu(t))throw Error(r(299));var s=!1,c="",p=qp;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(p=i.onRecoverableError)),i=Au(t,1,!1,null,null,s,!1,c,p),t[yr]=i.current,Cl(t.nodeType===8?t.parentNode:t),new Lu(i)},pn.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var i=t._reactInternals;if(i===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=kd(i),t=t===null?null:t.stateNode,t},pn.flushSync=function(t){return pi(t)},pn.hydrate=function(t,i,s){if(!bo(i))throw Error(r(200));return So(null,t,i,!0,s)},pn.hydrateRoot=function(t,i,s){if(!Mu(t))throw Error(r(405));var c=s!=null&&s.hydratedSources||null,p=!1,g="",w=qp;if(s!=null&&(s.unstable_strictMode===!0&&(p=!0),s.identifierPrefix!==void 0&&(g=s.identifierPrefix),s.onRecoverableError!==void 0&&(w=s.onRecoverableError)),i=Zp(i,null,t,1,s??null,p,!1,g,w),t[yr]=i.current,Cl(t),c)for(t=0;t<c.length;t++)s=c[t],p=s._getVersion,p=p(s._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[s,p]:i.mutableSourceEagerHydrationData.push(s,p);return new _o(i)},pn.render=function(t,i,s){if(!bo(i))throw Error(r(200));return So(null,t,i,!1,s)},pn.unmountComponentAtNode=function(t){if(!bo(t))throw Error(r(40));return t._reactRootContainer?(pi(function(){So(null,null,t,!1,function(){t._reactRootContainer=null,t[yr]=null})}),!0):!1},pn.unstable_batchedUpdates=Nu,pn.unstable_renderSubtreeIntoContainer=function(t,i,s,c){if(!bo(s))throw Error(r(200));if(t==null||t._reactInternals===void 0)throw Error(r(38));return So(t,i,s,!1,c)},pn.version="18.3.1-next-f1338f8080-20240426",pn}var rh;function Lm(){if(rh)return Fu.exports;rh=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Fu.exports=xx(),Fu.exports}var ih;function kx(){if(ih)return Eo;ih=1;var e=Lm();return Eo.createRoot=e.createRoot,Eo.hydrateRoot=e.hydrateRoot,Eo}var wx=kx();class ki extends Error{constructor(r,l,o){super(l);Vl(this,"status");Vl(this,"issues");this.name="ApiError",this.status=r,this.issues=o}}class ls extends ki{constructor(r){super(409,r.error);Vl(this,"serverContent");Vl(this,"serverMtimeMs");this.name="ConflictError",this.serverContent=r.serverContent,this.serverMtimeMs=r.serverMtimeMs}}async function mt(e){if(e.ok)return await e.json();let n={};try{n=await e.json()}catch{}throw new ki(e.status,n.error??`エラー (${e.status})`,n.issues)}async function _x(e){return mt(await fetch("/api/board",{signal:e}))}async function bx(){return mt(await fetch("/api/mode"))}async function Sx(e){return mt(await fetch("/api/overview",{signal:e}))}async function Mm(e){return mt(await fetch("/api/archive",{signal:e}))}async function Cx(e){const n=await fetch("/api/tasks",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)});return mt(n)}async function Ex(e){const{id:n,...r}=e,l=await fetch(`/api/tasks/${encodeURIComponent(n)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(r)});return mt(l)}async function lh(e,n,r){const l=await fetch(`/api/tasks/${encodeURIComponent(e)}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({content:n,baseMtimeMs:r})});if(l.status===409)throw new ls(await l.json());return mt(l)}async function Nx(e){const n=await fetch(`/api/tasks/${encodeURIComponent(e)}/approve`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"});return mt(n)}async function Tx(e,n){const r=await fetch(`/api/tasks/${encodeURIComponent(e)}/reject`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({reason:n})});return mt(r)}async function sh(e){const n=await fetch(`/api/tasks/${encodeURIComponent(e)}/archive`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"});return mt(n)}async function jx(e){const n=await fetch(`/api/tasks/${encodeURIComponent(e)}/rename`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"});return mt(n)}async function oh(){const e=await fetch("/api/config"),n=await mt(e),r=e.headers.get("x-config-mtime-ms"),l=r!==null&&r!==""?Number(r):null;return{config:n,mtimeMs:l!==null&&Number.isFinite(l)?l:null}}async function Ix(e,n){const r={"content-type":"application/json"};n!=null&&(r["x-base-mtime-ms"]=String(n));const l=await fetch("/api/config",{method:"PUT",headers:r,body:JSON.stringify(e)});if(l.status===409)throw new ls(await l.json());await mt(l)}async function Dx(e){return mt(await fetch(`/api/files?path=${encodeURIComponent(e)}`))}async function Rx(e,n,r){const l=await fetch("/api/files",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,content:n,baseMtimeMs:r})});return mt(l)}async function Ax(){return(await mt(await fetch("/api/files/tree"))).trees}async function Om(e){return(await mt(await fetch("/api/docs/tree",{signal:e}))).trees}async function zm(e,n){return mt(await fetch(`/api/docs?path=${encodeURIComponent(e)}`,{signal:n}))}async function Px(){return(await mt(await fetch("/api/files/catalog"))).items}async function Lx(e,n){return(await mt(await fetch(`/api/tasks/${encodeURIComponent(e)}/commits`,{signal:n}))).commits}async function Mx(e,n,r){const l=await fetch(`/api/tasks/${encodeURIComponent(e)}/comment`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({member:n,message:r})});return mt(l)}function Ox(){const[e,n]=C.useState(null),[r,l]=C.useState(!0),[o,a]=C.useState(null),[u,d]=C.useState(!1),f=C.useRef(0),h=C.useCallback(async()=>{const y=++f.current;try{const m=await _x();y===f.current&&(n(m),a(null))}catch(m){y===f.current&&a(m instanceof Error?m.message:"ボードの取得に失敗しました")}finally{y===f.current&&l(!1)}},[]);return C.useEffect(()=>{h();const y=new EventSource("/api/events");return y.onopen=()=>{d(!0),h()},y.onmessage=m=>{try{const k=JSON.parse(m.data);k.type==="change"?h():k.type==="connected"&&d(!0)}catch{}},y.onerror=()=>{d(!1)},()=>{y.close()}},[h]),{board:e,loading:r,error:o,connected:u,refresh:h}}const Fm={"header.live":"Live","header.live.title":"Live updates are active","header.reconnecting":"Reconnecting","header.reconnecting.title":"Reconnecting…","header.addTask":"+ Add task","header.settings":"Settings","banner.close":"Close","board.loading":"Loading…","board.unavailable":"Unable to display the board.","view.board":"Board","view.critical":"Critical path","view.milestones":"Milestones","view.digest":"Daily digest","view.files":"AI config","view.stats":"Statistics","view.docs":"Related docs","detail.tab.docs":"Related docs","docs.empty":"No related docs linked yet.","docs.add":"+ Add a doc","docs.remove":"Remove","docs.broken":"Broken link","docs.pickerTitle":"Add a related doc","docs.pickerEmpty":"No .md files found under docsDirs.","docs.dirtyHint":"Save or discard your edits in the Edit tab before changing related docs.","docs.loadError":"Failed to load the document.","docs.treeError":"Failed to load the document list.","docs.conflict":"The task was changed externally, so the update was not applied. The list has been refreshed — please try again.","docs.noChange":"Could not apply the change to this task file (unexpected file format).","docs.view.treeTitle":"Documents","docs.view.selectPrompt":"Select a document to preview.","docs.view.referencedBy":"Tasks referencing this doc","docs.view.noRefs":"No tasks reference this doc yet.","files.settings":"Settings files","files.browse":"Browse","files.catalog":"Catalog","files.rootFiles":"Root files","files.selectPrompt":"Select a file to view or edit.","files.save":"Save","files.saving":"Saving…","files.saved":"Saved (.bak created)","files.saveError":"Failed to save","files.loadError":"Failed to load","files.notFound":"File not found (will be created on save).","files.invalidJson":"Invalid JSON","files.conflict":"Changed externally. Reload before saving.","files.reload":"Reload","files.restartNotice":"Changes take effect from a new AI session; restart any running session.","files.catalogEmpty":"No skills / agents found.","files.noName":"(no name)","search.placeholder":"Search (title / labels / assignee)…","search.label":"Label","search.assignee":"Assignee","search.all":"All","archive.action":"Archive","archive.archiveDone":"Archive all Done","archive.confirm":"Archive {n} done task(s)?","archive.error":"Failed to archive","rename.action":"Rename to free ID","rename.error":"Failed to rename","comment.title":"Comments","comment.placeholder":"Write a comment (use @member to address)…","comment.send":"Send","comment.empty":"No comments yet.","comment.error":"Failed to add comment","detail.tab.commits":"Commits","commits.empty":"No commits reference this task (or this is not a git repo).","commits.error":"Failed to load commits.","commits.copyHash":"Copy the full commit hash","commits.copied":"Copied","cp.empty":"No incomplete tasks (done tasks are excluded).","cp.level":"Level {n}","cp.dependsOn":"depends on:","cp.criticalPath":"critical path","cp.cycleWarning":"Circular dependency detected: {ids}. Fix depends_on (this chain cannot be ordered).","cp.cycleLevel":"Cycle","cp.copyReorg":"Copy reorganization request","cp.copied":"Copied","cp.copyFailed":"Copy failed","digest.empty":"No work log entries yet.","digest.entries":"{n} entries","stats.empty":"No tasks yet. Statistics will appear once tasks exist.","stats.summary.title":"Overview","stats.summary.total":"Total tasks","stats.summary.done":"Completed","stats.completions.title":"Completions over time","stats.completions.byDay":"By day","stats.completions.byWeek":"By week (Mon)","stats.completions.empty":"No completed tasks yet.","stats.completions.barAria":"{count} completed on {key}","stats.completions.date":"Date","stats.completions.granularity":"Granularity","stats.cycleTime.title":"Cycle time (created → completed)","stats.cycleTime.median":"Median","stats.cycleTime.mean":"Mean","stats.cycleTime.sample":"Sample: {n} task(s)","stats.cycleTime.empty":"Not enough completed tasks to compute cycle time.","stats.days":"{n}d","stats.dwell.title":"Time in current status (approx.)","stats.dwell.note":"Approximation: there is no structured transition log, so this is the time elapsed in the current status only.","stats.dwell.status":"Status","stats.dwell.count":"Tasks","stats.dwell.avg":"Avg","stats.dwell.max":"Max","stats.member.title":"Completions by member","stats.member.name":"Member","stats.member.unassigned":"Unassigned","stats.member.empty":"No completed tasks yet.","stats.bottlenecks.title":"Bottlenecks (longest-pending)","stats.bottlenecks.empty":"No pending tasks.","stats.bottlenecks.task":"Task","stats.bottlenecks.dwell":"Pending for","stats.bottlenecks.type":"Type","stats.bottlenecks.reason":"Reason","milestone.empty":"No milestones defined. Add a milestones[] array to config.json.","milestone.roadmap":"Roadmap","milestone.history":"History","milestone.unassignedTasks":"No milestone","milestone.status.planned":"planned","milestone.status.active":"active","milestone.status.done":"done","column.empty":"(no tasks)","column.wipLimit":"WIP limit {limit}","column.wipExceeded":"WIP limit {limit} exceeded","card.unassigned":"Unassigned","card.unregisteredMember":"Unregistered member","card.memberType":"Type: {type}","card.lastUpdated":"Updated {elapsed}","member.human":"human","member.ai":"AI","time.justNow":"just now","time.minutesAgo":"{n}m ago","time.hoursAgo":"{n}h ago","time.daysAgo":"{n}d ago","blocked.decision":"Awaiting decision","blocked.external":"Awaiting external","blocked.dependency":"Awaiting dependency","blocked.decision.option":"decision (waiting on a person)","blocked.external.option":"external (waiting on something external)","blocked.dependency.option":"dependency (waiting on another task)","blockedDialog.title":"Reason for putting on hold","blockedDialog.intro":'Moving "{title}" to Pending.',"blockedDialog.type":"Type","blockedDialog.reason":"Reason (who / what you are waiting for, one line)","blockedDialog.reason.placeholder":"e.g. Waiting for RYU to review","blockedDialog.confirm":"Move to Pending","addTask.title":"Add a task","addTask.field.title":"Title (required)","addTask.field.title.placeholder":"e.g. Add validation to the login API","addTask.field.createdBy":"Reporter","addTask.field.assignee":"Assignee (optional)","addTask.field.priority":"Priority","addTask.field.labels":"Labels (optional, comma-separated)","addTask.field.labels.placeholder":"e.g. backend, auth","addTask.field.template":"Template (optional)","addTask.template.none":"(no template)","addTask.field.body":"Body (optional)","addTask.field.body.placeholder":"Task description / acceptance criteria…","addTask.submit":"Create","addTask.submitting":"Creating…","addTask.error":"Failed to create the task","palette.title":"Command palette","palette.placeholder":"Search tasks, switch views, create…","palette.empty":"No matching commands.","palette.go":"Go to","palette.addTask":"Add a task","palette.settings":"Open settings","status.proposed":"Proposed","status.backlog":"Backlog","status.todo":"Todo","status.in_progress":"In progress","status.pending":"Pending","status.done":"Done","overview.title":"Cross-project overview (read-only)","overview.projects":"Projects","overview.attention.title":"Attention tasks (in progress / pending / proposed)","overview.attention.empty":"No tasks in progress, pending, or proposed.","overview.col.project":"Project","overview.col.task":"Task","overview.col.status":"Status","overview.col.assignee":"Assignee","overview.col.blocked":"Blocked","overview.warnings":"{n} warning(s)","overview.wipExceeded":"WIP exceeded","overview.loadError":"Failed to load the overview.","mode.connectError":"Could not connect to the AIzuchi server. Check that it is running, then reload.","common.cancel":"Cancel","common.save":"Save","common.saving":"Saving…","common.discard":"Discard changes","common.unset":"(unset)","move.error":"Failed to change the status","detail.aria":"Details of {id}","detail.close":"Close","detail.tab.preview":"Preview","detail.tab.edit":"Edit","detail.tab.log":"Work log","detail.editAria":"Edit the task file","detail.log.empty":"No work log yet.","detail.dirty":"You have unsaved changes","detail.saveError":"Failed to save","detail.copyInstruction":"Copy instruction for AI","detail.copyInstruction.done":"Copied","detail.copyInstruction.failed":"Copy failed","detail.copyInstruction.title":"Copy a ready-to-paste instruction for the AI to your clipboard","conflict.title":"Save conflict","conflict.intro":"This task was changed externally (by an editor or AI) after you started editing. Below is the diff of your edits against the server version (the base).","conflict.diffAria":"Conflict diff","conflict.legend.add":"+ your additions","conflict.legend.remove":"- lines from the server","conflict.reload":"Reload server version (discard edits)","conflict.overwrite":"Overwrite with my changes","warning.summary":"{n} warning(s) (the board keeps showing)","warning.kind.invalid_task":"Invalid task","warning.kind.duplicate_id":"Duplicate ID","warning.kind.unregistered_member":"Unregistered member","warning.kind.invalid_config":"Config error","warning.kind.mode_violation":"Mode violation","proposal.approve":"Approve","proposal.reject":"Reject","proposal.reject.prompt":"Reason for rejection (recorded in the work log)","proposal.approve.error":"Failed to approve","proposal.reject.error":"Failed to reject","settings.title":"Settings","settings.aiTaskCreation":"AI task creation mode","settings.aiTaskCreation.free":"free (AI may create directly)","settings.aiTaskCreation.proposal":"proposal (approval required)","settings.language":"Language","settings.language.en":"English","settings.language.ja":"日本語","settings.projectName":"Project name","settings.idPrefix":"ID prefix","settings.instructionTemplate":"Instruction template ({id} / {path} are expanded)","settings.members":"Members","settings.members.add":"+ Add member","settings.columns":"Columns","settings.advanced":"Advanced (raw JSON)","settings.save":"Save","settings.saving":"Saving…","settings.saved":"Saved","settings.error":"Failed to save the settings","settings.reload":"Reload","settings.loadError":"Failed to load the settings","settings.conflict":"config.json was changed externally (by an editor or AI). Close and reopen Settings to reload, then save again."},zx={"header.live":"ライブ","header.live.title":"ライブ反映が有効です","header.reconnecting":"再接続中","header.reconnecting.title":"再接続中…","header.addTask":"+ タスク追加","header.settings":"設定","banner.close":"閉じる","board.loading":"読み込み中…","board.unavailable":"ボードを表示できません。","view.board":"ボード","view.critical":"クリティカルパス","view.milestones":"マイルストーン","view.digest":"日次ダイジェスト","view.files":"AI 設定","view.stats":"統計","view.docs":"関連資料","detail.tab.docs":"関連資料","docs.empty":"関連資料はまだありません。","docs.add":"+ 資料を追加","docs.remove":"削除","docs.broken":"リンク切れ","docs.pickerTitle":"関連資料を追加","docs.pickerEmpty":"docsDirs 配下に .md ファイルがありません。","docs.dirtyHint":"編集タブの変更を保存または破棄してから関連資料を変更してください。","docs.loadError":"資料の読み込みに失敗しました。","docs.treeError":"資料一覧の読み込みに失敗しました。","docs.conflict":"外部で変更されたため反映できませんでした。一覧を最新化したので、もう一度操作してください。","docs.noChange":"タスクファイルへ変更を反映できませんでした(想定外のファイル形式です)。","docs.view.treeTitle":"資料","docs.view.selectPrompt":"プレビューする資料を選んでください。","docs.view.referencedBy":"この資料を参照しているタスク","docs.view.noRefs":"この資料を参照しているタスクはまだありません。","files.settings":"設定ファイル","files.browse":"閲覧","files.catalog":"カタログ","files.rootFiles":"ルートファイル","files.selectPrompt":"閲覧・編集するファイルを選んでください。","files.save":"保存","files.saving":"保存中…","files.saved":"保存しました (.bak 作成)","files.saveError":"保存に失敗しました","files.loadError":"読み込みに失敗しました","files.notFound":"ファイルがありません (保存時に作成されます)。","files.invalidJson":"不正な JSON","files.conflict":"外部で変更されています。再読み込みしてから保存してください。","files.reload":"再読み込み","files.restartNotice":"変更は新しい AI セッションから有効です。実行中のセッションは再起動が必要です。","files.catalogEmpty":"skill / agent が見つかりません。","files.noName":"(名前なし)","search.placeholder":"検索 (タイトル / ラベル / 担当)…","search.label":"ラベル","search.assignee":"担当","search.all":"すべて","archive.action":"アーカイブ","archive.archiveDone":"Done を一括アーカイブ","archive.confirm":"Done のタスク {n} 件をアーカイブしますか?","archive.error":"アーカイブに失敗しました","rename.action":"空き ID にリネーム","rename.error":"リネームに失敗しました","comment.title":"やりとり","comment.placeholder":"コメントを書く (@member で宛先指定)…","comment.send":"送信","comment.empty":"コメントはまだありません。","comment.error":"コメントの追加に失敗しました","detail.tab.commits":"コミット","commits.empty":"このタスクを参照しているコミットはありません (または git リポジトリではありません)。","commits.error":"コミットの読み込みに失敗しました。","commits.copyHash":"コミットハッシュ全体をコピー","commits.copied":"コピーしました","cp.empty":"未完了タスクがありません (done は除外)。","cp.level":"レベル {n}","cp.dependsOn":"依存:","cp.criticalPath":"クリティカルパス","cp.cycleWarning":"循環依存を検出しました: {ids}。depends_on を見直してください (この鎖は順序付けできません)。","cp.cycleLevel":"循環","cp.copyReorg":"再編成指示をコピー","cp.copied":"コピーしました","cp.copyFailed":"コピーに失敗","digest.empty":"作業ログがまだありません。","digest.entries":"{n} 件","stats.empty":"タスクがまだありません。タスクができると統計が表示されます。","stats.summary.title":"概要","stats.summary.total":"タスク総数","stats.summary.done":"完了","stats.completions.title":"完了数の推移","stats.completions.byDay":"日別","stats.completions.byWeek":"週別 (月曜起点)","stats.completions.empty":"完了したタスクがまだありません。","stats.completions.barAria":"{key} に {count} 件完了","stats.completions.date":"日付","stats.completions.granularity":"集計粒度","stats.cycleTime.title":"サイクルタイム (作成 → 完了)","stats.cycleTime.median":"中央値","stats.cycleTime.mean":"平均","stats.cycleTime.sample":"対象: {n} 件","stats.cycleTime.empty":"サイクルタイムを算出できる完了タスクが足りません。","stats.days":"{n} 日","stats.dwell.title":"現ステータスでの滞留時間 (近似)","stats.dwell.note":"近似値: 構造化された遷移ログがないため、現在のステータスでの経過時間のみを示します。","stats.dwell.status":"ステータス","stats.dwell.count":"タスク数","stats.dwell.avg":"平均","stats.dwell.max":"最大","stats.member.title":"メンバー別完了数","stats.member.name":"メンバー","stats.member.unassigned":"未割り当て","stats.member.empty":"完了したタスクがまだありません。","stats.bottlenecks.title":"ボトルネック (滞留の長い保留)","stats.bottlenecks.empty":"保留中のタスクはありません。","stats.bottlenecks.task":"タスク","stats.bottlenecks.dwell":"保留期間","stats.bottlenecks.type":"種別","stats.bottlenecks.reason":"理由","milestone.empty":"マイルストーンが未定義です。config.json に milestones[] を追加してください。","milestone.roadmap":"予定表","milestone.history":"対応履歴","milestone.unassignedTasks":"マイルストーン未設定","milestone.status.planned":"予定","milestone.status.active":"進行中","milestone.status.done":"完了","column.empty":"(タスクなし)","column.wipLimit":"WIP 上限 {limit}","column.wipExceeded":"WIP 上限 {limit} 超過","card.unassigned":"未割当","card.unregisteredMember":"未登録のメンバー","card.memberType":"種別: {type}","card.lastUpdated":"最終更新 {elapsed}","member.human":"人間","member.ai":"AI","time.justNow":"たった今","time.minutesAgo":"{n}分前","time.hoursAgo":"{n}時間前","time.daysAgo":"{n}日前","blocked.decision":"判断待ち","blocked.external":"外部待ち","blocked.dependency":"依存待ち","blocked.decision.option":"decision(人の判断待ち)","blocked.external.option":"external(外部待ち)","blocked.dependency.option":"dependency(依存タスク待ち)","blockedDialog.title":"保留にする理由","blockedDialog.intro":"「{title}」を Pending に移動します。","blockedDialog.type":"種別","blockedDialog.reason":"理由(誰の・何待ちか。1 行)","blockedDialog.reason.placeholder":"例: RYU のレビュー待ち","blockedDialog.confirm":"Pending へ移動","addTask.title":"タスクを追加","addTask.field.title":"タイトル(必須)","addTask.field.title.placeholder":"例: ログインAPIのバリデーション追加","addTask.field.createdBy":"起票者","addTask.field.assignee":"担当者(任意)","addTask.field.priority":"優先度","addTask.field.labels":"ラベル(任意・カンマ区切り)","addTask.field.labels.placeholder":"例: backend, auth","addTask.field.template":"テンプレート(任意)","addTask.template.none":"(テンプレートなし)","addTask.field.body":"本文(任意)","addTask.field.body.placeholder":"タスクの説明 / 受け入れ条件など…","addTask.submit":"作成","addTask.submitting":"作成中…","addTask.error":"起票に失敗しました","palette.title":"コマンドパレット","palette.placeholder":"タスク検索・ビュー切替・起票…","palette.empty":"一致するコマンドがありません。","palette.go":"移動","palette.addTask":"タスクを追加","palette.settings":"設定を開く","status.proposed":"提案","status.backlog":"バックログ","status.todo":"未着手","status.in_progress":"進行中","status.pending":"保留","status.done":"完了","overview.title":"案件横断ビュー(閲覧専用)","overview.projects":"プロジェクト","overview.attention.title":"注目タスク(進行中 / 保留 / 提案)","overview.attention.empty":"進行中・保留・提案のタスクはありません。","overview.col.project":"案件","overview.col.task":"タスク","overview.col.status":"ステータス","overview.col.assignee":"担当","overview.col.blocked":"ブロック理由","overview.warnings":"警告 {n} 件","overview.wipExceeded":"WIP 超過","overview.loadError":"横断ビューの取得に失敗しました。","mode.connectError":"AIzuchi サーバーに接続できません。起動していることを確認して再読み込みしてください。","common.cancel":"キャンセル","common.save":"保存","common.saving":"保存中…","common.discard":"変更を取り消す","common.unset":"(未設定)","move.error":"ステータス変更に失敗しました","detail.aria":"{id} の詳細","detail.close":"閉じる","detail.tab.preview":"プレビュー","detail.tab.edit":"編集","detail.tab.log":"作業ログ","detail.editAria":"タスクファイルの編集","detail.log.empty":"作業ログがありません。","detail.dirty":"未保存の変更があります","detail.saveError":"保存に失敗しました","detail.copyInstruction":"AI への指示をコピー","detail.copyInstruction.done":"コピーしました","detail.copyInstruction.failed":"コピーに失敗","detail.copyInstruction.title":"AI に渡せる指示文をクリップボードへコピーします","conflict.title":"保存が競合しました","conflict.intro":"このタスクは、あなたが編集を始めた後に外部(エディタや AI)で変更されています。以下はサーバー側の内容(基準)に対する、あなたの編集の差分です。","conflict.diffAria":"競合の差分","conflict.legend.add":"+ あなたの追加","conflict.legend.remove":"- サーバー側にあった行","conflict.reload":"サーバー側を読み込み直す(編集を破棄)","conflict.overwrite":"自分の内容で上書き","warning.summary":"{n} 件の警告(ボードは表示を継続しています)","warning.kind.invalid_task":"不正なタスク","warning.kind.duplicate_id":"重複 ID","warning.kind.unregistered_member":"未登録メンバー","warning.kind.invalid_config":"設定エラー","warning.kind.mode_violation":"モード違反","proposal.approve":"承認","proposal.reject":"却下","proposal.reject.prompt":"却下理由(作業ログに記録されます)","proposal.approve.error":"承認に失敗しました","proposal.reject.error":"却下に失敗しました","settings.title":"設定","settings.aiTaskCreation":"AI 起票モード","settings.aiTaskCreation.free":"free(AI が直接起票してよい)","settings.aiTaskCreation.proposal":"proposal(承認制)","settings.language":"言語","settings.language.en":"English","settings.language.ja":"日本語","settings.projectName":"プロジェクト名","settings.idPrefix":"ID 接頭辞","settings.instructionTemplate":"指示テンプレート({id} / {path} が展開されます)","settings.members":"メンバー","settings.members.add":"+ メンバー追加","settings.columns":"カラム","settings.advanced":"詳細(生 JSON)","settings.save":"保存","settings.saving":"保存中…","settings.saved":"保存しました","settings.error":"設定の保存に失敗しました","settings.reload":"再読み込み","settings.loadError":"設定の読み込みに失敗しました","settings.conflict":"config.json が外部 (エディタや AI) で変更されました。設定を一度閉じて開き直して再読み込みしてから、保存し直してください。"},Uc=["en","ja"],$m="aizuchi.lang",Fx={en:Fm,ja:zx};function $x(e,n){return n?e.replace(/\{(\w+)\}/g,(r,l)=>Object.prototype.hasOwnProperty.call(n,l)?String(n[l]):r):e}function Bx(){if(typeof localStorage>"u")return"en";const e=localStorage.getItem($m);return e==="en"||e==="ja"?e:"en"}const Bm=C.createContext(null);function Ux({children:e}){const[n,r]=C.useState(()=>Bx()),l=C.useCallback(u=>{r(u),typeof localStorage<"u"&&localStorage.setItem($m,u),typeof document<"u"&&(document.documentElement.lang=u)},[]),o=C.useCallback((u,d)=>{const h=Fx[n][u]??Fm[u]??u;return $x(h,d)},[n]),a=C.useMemo(()=>({lang:n,setLang:l,t:o}),[n,l,o]);return v.jsx(Bm.Provider,{value:a,children:e})}function gt(){const e=C.useContext(Bm);if(!e)throw new Error("useI18n は I18nProvider の内側で使ってください");return e}function Vx(e,n){switch(n.unit){case"justNow":return e("time.justNow");case"minutes":return e("time.minutesAgo",{n:n.n});case"hours":return e("time.hoursAgo",{n:n.n});case"days":return e("time.daysAgo",{n:n.n})}}const Hx="_overlay_6l86f_1",Wx="_dialog_6l86f_12",Zx="_dialogWide_6l86f_23",Kx="_title_6l86f_27",qx="_field_6l86f_32",Qx="_label_6l86f_39",Yx="_input_6l86f_45",Xx="_select_6l86f_46",Gx="_textarea_6l86f_47",Jx="_actions_6l86f_69",ek="_btn_6l86f_76",tk="_btnPrimary_6l86f_88",nk="_btnDanger_6l86f_103",rk="_error_6l86f_109",ce={overlay:Hx,dialog:Wx,dialogWide:Zx,title:Kx,field:qx,label:Qx,input:Yx,select:Xx,textarea:Gx,actions:Jx,btn:ek,btnPrimary:tk,btnDanger:nk,error:rk};function Vc(e,n){return e===n}function fs({title:e,onClose:n,children:r,wide:l}){const o=C.useRef(null);return C.useEffect(()=>{var d;const a=document.activeElement,u=f=>{f.key==="Escape"&&n()};return document.addEventListener("keydown",u),(d=o.current)==null||d.focus(),()=>{var f;document.removeEventListener("keydown",u),(f=a==null?void 0:a.focus)==null||f.call(a)}},[n]),v.jsx("div",{className:ce.overlay,onClick:a=>{Vc(a.target,a.currentTarget)&&(a.stopPropagation(),n())},children:v.jsxs("div",{ref:o,className:`${ce.dialog} ${l?ce.dialogWide:""}`,role:"dialog","aria-modal":"true","aria-label":e,tabIndex:-1,children:[v.jsx("h2",{className:ce.title,children:e}),r]})})}const ah="aizuchi.createdBy",ik=["high","medium","low"];function lk({members:e,templates:n=[],onCancel:r,onSubmit:l}){var K;const{t:o}=gt(),a=typeof localStorage<"u"?localStorage.getItem(ah):null,u=a&&e.some(F=>F.id===a)?a:((K=e[0])==null?void 0:K.id)??"",[d,f]=C.useState(""),[h,y]=C.useState(u),[m,k]=C.useState(""),[x,b]=C.useState("medium"),[j,D]=C.useState(""),[S,M]=C.useState(""),[N,$]=C.useState(-1),[H,L]=C.useState(null),[Y,te]=C.useState(!1),Q=F=>{if($(F),F<0||F>=n.length){f(""),M(""),D(""),b("medium");return}const pe=n[F];f((pe.title??"").replace(/[\r\n]/g,"")),M(pe.body??""),D((pe.labels??[]).join(", ")),b(pe.priority??"medium")},I=C.useRef(!0);C.useEffect(()=>()=>{I.current=!1},[]);const q=d.trim(),X=q.length>0&&h.length>0&&!Y,G=async()=>{if(X){te(!0),L(null);try{const F=j.split(",").map(ye=>ye.trim()).filter(ye=>ye.length>0),pe={title:q,created_by:h,assignee:m||null,priority:x,labels:F,...S.length>0?{body:S}:{}};await l(pe),typeof localStorage<"u"&&localStorage.setItem(ah,h)}catch(F){I.current&&(L(F instanceof Error?F.message:o("addTask.error")),te(!1))}}};return v.jsxs(fs,{title:o("addTask.title"),onClose:r,children:[H&&v.jsx("p",{className:ce.error,children:H}),v.jsxs("form",{onSubmit:F=>{F.preventDefault(),G()},children:[n.length>0&&v.jsxs("div",{className:ce.field,children:[v.jsx("label",{className:ce.label,htmlFor:"new-template",children:o("addTask.field.template")}),v.jsxs("select",{id:"new-template",className:ce.select,value:N,onChange:F=>Q(Number(F.target.value)),children:[v.jsx("option",{value:-1,children:o("addTask.template.none")}),n.map((F,pe)=>v.jsx("option",{value:pe,children:F.name},pe))]})]}),v.jsxs("div",{className:ce.field,children:[v.jsx("label",{className:ce.label,htmlFor:"new-title",children:o("addTask.field.title")}),v.jsx("input",{id:"new-title",className:ce.input,value:d,onChange:F=>f(F.target.value.replace(/[\r\n]/g,"")),placeholder:o("addTask.field.title.placeholder"),autoFocus:!0})]}),v.jsxs("div",{className:ce.field,children:[v.jsx("label",{className:ce.label,htmlFor:"new-created-by",children:o("addTask.field.createdBy")}),v.jsx("select",{id:"new-created-by",className:ce.select,value:h,onChange:F=>y(F.target.value),children:e.map(F=>v.jsxs("option",{value:F.id,children:[F.id,"(",F.type,")"]},F.id))})]}),v.jsxs("div",{className:ce.field,children:[v.jsx("label",{className:ce.label,htmlFor:"new-assignee",children:o("addTask.field.assignee")}),v.jsxs("select",{id:"new-assignee",className:ce.select,value:m,onChange:F=>k(F.target.value),children:[v.jsx("option",{value:"",children:o("card.unassigned")}),e.map(F=>v.jsxs("option",{value:F.id,children:[F.id,"(",F.type,")"]},F.id))]})]}),v.jsxs("div",{className:ce.field,children:[v.jsx("label",{className:ce.label,htmlFor:"new-priority",children:o("addTask.field.priority")}),v.jsx("select",{id:"new-priority",className:ce.select,value:x,onChange:F=>b(F.target.value),children:ik.map(F=>v.jsx("option",{value:F,children:F},F))})]}),v.jsxs("div",{className:ce.field,children:[v.jsx("label",{className:ce.label,htmlFor:"new-labels",children:o("addTask.field.labels")}),v.jsx("input",{id:"new-labels",className:ce.input,value:j,onChange:F=>D(F.target.value.replace(/[\r\n]/g,"")),placeholder:o("addTask.field.labels.placeholder")})]}),n.length>0&&v.jsxs("div",{className:ce.field,children:[v.jsx("label",{className:ce.label,htmlFor:"new-body",children:o("addTask.field.body")}),v.jsx("textarea",{id:"new-body",className:ce.textarea,value:S,onChange:F=>M(F.target.value),placeholder:o("addTask.field.body.placeholder")})]}),v.jsxs("div",{className:ce.actions,children:[v.jsx("button",{type:"button",className:ce.btn,onClick:r,children:o("common.cancel")}),v.jsx("button",{type:"submit",className:`${ce.btn} ${ce.btnPrimary}`,disabled:!X,children:o(Y?"addTask.submitting":"addTask.submit")})]})]})]})}var Xl=Lm();const Ko=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function rl(e){const n=Object.prototype.toString.call(e);return n==="[object Window]"||n==="[object global]"}function Hc(e){return"nodeType"in e}function mn(e){var n,r;return e?rl(e)?e:Hc(e)&&(n=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?n:window:window}function Wc(e){const{Document:n}=mn(e);return e instanceof n}function ps(e){return rl(e)?!1:e instanceof mn(e).HTMLElement}function Um(e){return e instanceof mn(e).SVGElement}function il(e){return e?rl(e)?e.document:Hc(e)?Wc(e)?e:ps(e)||Um(e)?e.ownerDocument:document:document:document}const ei=Ko?C.useLayoutEffect:C.useEffect;function Zc(e){const n=C.useRef(e);return ei(()=>{n.current=e}),C.useCallback(function(){for(var r=arguments.length,l=new Array(r),o=0;o<r;o++)l[o]=arguments[o];return n.current==null?void 0:n.current(...l)},[])}function sk(){const e=C.useRef(null),n=C.useCallback((l,o)=>{e.current=setInterval(l,o)},[]),r=C.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[n,r]}function ss(e,n){n===void 0&&(n=[e]);const r=C.useRef(e);return ei(()=>{r.current!==e&&(r.current=e)},n),r}function hs(e,n){const r=C.useRef();return C.useMemo(()=>{const l=e(r.current);return r.current=l,l},[...n])}function Po(e){const n=Zc(e),r=C.useRef(null),l=C.useCallback(o=>{o!==r.current&&(n==null||n(o,r.current)),r.current=o},[]);return[r,l]}function dc(e){const n=C.useRef();return C.useEffect(()=>{n.current=e},[e]),n.current}let Uu={};function qo(e,n){return C.useMemo(()=>{if(n)return n;const r=Uu[e]==null?0:Uu[e]+1;return Uu[e]=r,e+"-"+r},[e,n])}function Vm(e){return function(n){for(var r=arguments.length,l=new Array(r>1?r-1:0),o=1;o<r;o++)l[o-1]=arguments[o];return l.reduce((a,u)=>{const d=Object.entries(u);for(const[f,h]of d){const y=a[f];y!=null&&(a[f]=y+e*h)}return a},{...n})}}const Yi=Vm(1),Lo=Vm(-1);function ok(e){return"clientX"in e&&"clientY"in e}function Hm(e){if(!e)return!1;const{KeyboardEvent:n}=mn(e.target);return n&&e instanceof n}function ak(e){if(!e)return!1;const{TouchEvent:n}=mn(e.target);return n&&e instanceof n}function fc(e){if(ak(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:r}=e.touches[0];return{x:n,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:r}=e.changedTouches[0];return{x:n,y:r}}}return ok(e)?{x:e.clientX,y:e.clientY}:null}const pc=Object.freeze({Translate:{toString(e){if(!e)return;const{x:n,y:r}=e;return"translate3d("+(n?Math.round(n):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:n,scaleY:r}=e;return"scaleX("+n+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[pc.Translate.toString(e),pc.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:n,duration:r,easing:l}=e;return n+" "+r+"ms "+l}}}),uh="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function uk(e){return e.matches(uh)?e:e.querySelector(uh)}const ck={display:"none"};function dk(e){let{id:n,value:r}=e;return Mn.createElement("div",{id:n,style:ck},r)}function fk(e){let{id:n,announcement:r,ariaLiveType:l="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Mn.createElement("div",{id:n,style:o,role:"status","aria-live":l,"aria-atomic":!0},r)}function pk(){const[e,n]=C.useState("");return{announce:C.useCallback(l=>{l!=null&&n(l)},[]),announcement:e}}const Wm=C.createContext(null);function hk(e){const n=C.useContext(Wm);C.useEffect(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(e)},[e,n])}function mk(){const[e]=C.useState(()=>new Set),n=C.useCallback(l=>(e.add(l),()=>e.delete(l)),[e]);return[C.useCallback(l=>{let{type:o,event:a}=l;e.forEach(u=>{var d;return(d=u[o])==null?void 0:d.call(u,a)})},[e]),n]}const gk={draggable:`
|
|
41
|
-
To pick up a draggable item, press the space bar.
|
|
42
|
-
While dragging, use the arrow keys to move the item.
|
|
43
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
44
|
-
`},yk={onDragStart(e){let{active:n}=e;return"Picked up draggable item "+n.id+"."},onDragOver(e){let{active:n,over:r}=e;return r?"Draggable item "+n.id+" was moved over droppable area "+r.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(e){let{active:n,over:r}=e;return r?"Draggable item "+n.id+" was dropped over droppable area "+r.id:"Draggable item "+n.id+" was dropped."},onDragCancel(e){let{active:n}=e;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function vk(e){let{announcements:n=yk,container:r,hiddenTextDescribedById:l,screenReaderInstructions:o=gk}=e;const{announce:a,announcement:u}=pk(),d=qo("DndLiveRegion"),[f,h]=C.useState(!1);if(C.useEffect(()=>{h(!0)},[]),hk(C.useMemo(()=>({onDragStart(m){let{active:k}=m;a(n.onDragStart({active:k}))},onDragMove(m){let{active:k,over:x}=m;n.onDragMove&&a(n.onDragMove({active:k,over:x}))},onDragOver(m){let{active:k,over:x}=m;a(n.onDragOver({active:k,over:x}))},onDragEnd(m){let{active:k,over:x}=m;a(n.onDragEnd({active:k,over:x}))},onDragCancel(m){let{active:k,over:x}=m;a(n.onDragCancel({active:k,over:x}))}}),[a,n])),!f)return null;const y=Mn.createElement(Mn.Fragment,null,Mn.createElement(dk,{id:l,value:o.draggable}),Mn.createElement(fk,{id:d,announcement:u}));return r?Xl.createPortal(y,r):y}var Et;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Et||(Et={}));function Mo(){}function xk(e,n){return C.useMemo(()=>({sensor:e,options:n??{}}),[e,n])}function kk(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return C.useMemo(()=>[...n].filter(l=>l!=null),[...n])}const er=Object.freeze({x:0,y:0});function wk(e,n){let{data:{value:r}}=e,{data:{value:l}}=n;return l-r}function _k(e,n){if(!e||e.length===0)return null;const[r]=e;return r[n]}function bk(e,n){const r=Math.max(n.top,e.top),l=Math.max(n.left,e.left),o=Math.min(n.left+n.width,e.left+e.width),a=Math.min(n.top+n.height,e.top+e.height),u=o-l,d=a-r;if(l<o&&r<a){const f=n.width*n.height,h=e.width*e.height,y=u*d,m=y/(f+h-y);return Number(m.toFixed(4))}return 0}const Sk=e=>{let{collisionRect:n,droppableRects:r,droppableContainers:l}=e;const o=[];for(const a of l){const{id:u}=a,d=r.get(u);if(d){const f=bk(d,n);f>0&&o.push({id:u,data:{droppableContainer:a,value:f}})}}return o.sort(wk)};function Ck(e,n,r){return{...e,scaleX:n&&r?n.width/r.width:1,scaleY:n&&r?n.height/r.height:1}}function Zm(e,n){return e&&n?{x:e.left-n.left,y:e.top-n.top}:er}function Ek(e){return function(r){for(var l=arguments.length,o=new Array(l>1?l-1:0),a=1;a<l;a++)o[a-1]=arguments[a];return o.reduce((u,d)=>({...u,top:u.top+e*d.y,bottom:u.bottom+e*d.y,left:u.left+e*d.x,right:u.right+e*d.x}),{...r})}}const Nk=Ek(1);function Tk(e){if(e.startsWith("matrix3d(")){const n=e.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}else if(e.startsWith("matrix(")){const n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}function jk(e,n,r){const l=Tk(n);if(!l)return e;const{scaleX:o,scaleY:a,x:u,y:d}=l,f=e.left-u-(1-o)*parseFloat(r),h=e.top-d-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),y=o?e.width/o:e.width,m=a?e.height/a:e.height;return{width:y,height:m,top:h,right:f+y,bottom:h+m,left:f}}const Ik={ignoreTransform:!1};function ms(e,n){n===void 0&&(n=Ik);let r=e.getBoundingClientRect();if(n.ignoreTransform){const{transform:h,transformOrigin:y}=mn(e).getComputedStyle(e);h&&(r=jk(r,h,y))}const{top:l,left:o,width:a,height:u,bottom:d,right:f}=r;return{top:l,left:o,width:a,height:u,bottom:d,right:f}}function ch(e){return ms(e,{ignoreTransform:!0})}function Dk(e){const n=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:n,bottom:r,width:n,height:r}}function Rk(e,n){return n===void 0&&(n=mn(e).getComputedStyle(e)),n.position==="fixed"}function Ak(e,n){n===void 0&&(n=mn(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const a=n[o];return typeof a=="string"?r.test(a):!1})}function Kc(e,n){const r=[];function l(o){if(n!=null&&r.length>=n||!o)return r;if(Wc(o)&&o.scrollingElement!=null&&!r.includes(o.scrollingElement))return r.push(o.scrollingElement),r;if(!ps(o)||Um(o)||r.includes(o))return r;const a=mn(e).getComputedStyle(o);return o!==e&&Ak(o,a)&&r.push(o),Rk(o,a)?r:l(o.parentNode)}return e?l(e):r}function Km(e){const[n]=Kc(e,1);return n??null}function Vu(e){return!Ko||!e?null:rl(e)?e:Hc(e)?Wc(e)||e===il(e).scrollingElement?window:ps(e)?e:null:null}function qm(e){return rl(e)?e.scrollX:e.scrollLeft}function Qm(e){return rl(e)?e.scrollY:e.scrollTop}function hc(e){return{x:qm(e),y:Qm(e)}}var It;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(It||(It={}));function Ym(e){return!Ko||!e?!1:e===document.scrollingElement}function Xm(e){const n={x:0,y:0},r=Ym(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},l={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},o=e.scrollTop<=n.y,a=e.scrollLeft<=n.x,u=e.scrollTop>=l.y,d=e.scrollLeft>=l.x;return{isTop:o,isLeft:a,isBottom:u,isRight:d,maxScroll:l,minScroll:n}}const Pk={x:.2,y:.2};function Lk(e,n,r,l,o){let{top:a,left:u,right:d,bottom:f}=r;l===void 0&&(l=10),o===void 0&&(o=Pk);const{isTop:h,isBottom:y,isLeft:m,isRight:k}=Xm(e),x={x:0,y:0},b={x:0,y:0},j={height:n.height*o.y,width:n.width*o.x};return!h&&a<=n.top+j.height?(x.y=It.Backward,b.y=l*Math.abs((n.top+j.height-a)/j.height)):!y&&f>=n.bottom-j.height&&(x.y=It.Forward,b.y=l*Math.abs((n.bottom-j.height-f)/j.height)),!k&&d>=n.right-j.width?(x.x=It.Forward,b.x=l*Math.abs((n.right-j.width-d)/j.width)):!m&&u<=n.left+j.width&&(x.x=It.Backward,b.x=l*Math.abs((n.left+j.width-u)/j.width)),{direction:x,speed:b}}function Mk(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:u}=window;return{top:0,left:0,right:a,bottom:u,width:a,height:u}}const{top:n,left:r,right:l,bottom:o}=e.getBoundingClientRect();return{top:n,left:r,right:l,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Gm(e){return e.reduce((n,r)=>Yi(n,hc(r)),er)}function Ok(e){return e.reduce((n,r)=>n+qm(r),0)}function zk(e){return e.reduce((n,r)=>n+Qm(r),0)}function Fk(e,n){if(n===void 0&&(n=ms),!e)return;const{top:r,left:l,bottom:o,right:a}=n(e);Km(e)&&(o<=0||a<=0||r>=window.innerHeight||l>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const $k=[["x",["left","right"],Ok],["y",["top","bottom"],zk]];class qc{constructor(n,r){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const l=Kc(r),o=Gm(l);this.rect={...n},this.width=n.width,this.height=n.height;for(const[a,u,d]of $k)for(const f of u)Object.defineProperty(this,f,{get:()=>{const h=d(l),y=o[a]-h;return this.rect[f]+y},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Jl{constructor(n){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var l;return(l=this.target)==null?void 0:l.removeEventListener(...r)})},this.target=n}add(n,r,l){var o;(o=this.target)==null||o.addEventListener(n,r,l),this.listeners.push([n,r,l])}}function Bk(e){const{EventTarget:n}=mn(e);return e instanceof n?e:il(e)}function Hu(e,n){const r=Math.abs(e.x),l=Math.abs(e.y);return typeof n=="number"?Math.sqrt(r**2+l**2)>n:"x"in n&&"y"in n?r>n.x&&l>n.y:"x"in n?r>n.x:"y"in n?l>n.y:!1}var Ln;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ln||(Ln={}));function dh(e){e.preventDefault()}function Uk(e){e.stopPropagation()}var Ge;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ge||(Ge={}));const Jm={start:[Ge.Space,Ge.Enter],cancel:[Ge.Esc],end:[Ge.Space,Ge.Enter,Ge.Tab]},Vk=(e,n)=>{let{currentCoordinates:r}=n;switch(e.code){case Ge.Right:return{...r,x:r.x+25};case Ge.Left:return{...r,x:r.x-25};case Ge.Down:return{...r,y:r.y+25};case Ge.Up:return{...r,y:r.y-25}}};class eg{constructor(n){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=n;const{event:{target:r}}=n;this.props=n,this.listeners=new Jl(il(r)),this.windowListeners=new Jl(mn(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ln.Resize,this.handleCancel),this.windowListeners.add(Ln.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ln.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:n,onStart:r}=this.props,l=n.node.current;l&&Fk(l),r(er)}handleKeyDown(n){if(Hm(n)){const{active:r,context:l,options:o}=this.props,{keyboardCodes:a=Jm,coordinateGetter:u=Vk,scrollBehavior:d="smooth"}=o,{code:f}=n;if(a.end.includes(f)){this.handleEnd(n);return}if(a.cancel.includes(f)){this.handleCancel(n);return}const{collisionRect:h}=l.current,y=h?{x:h.left,y:h.top}:er;this.referenceCoordinates||(this.referenceCoordinates=y);const m=u(n,{active:r,context:l.current,currentCoordinates:y});if(m){const k=Lo(m,y),x={x:0,y:0},{scrollableAncestors:b}=l.current;for(const j of b){const D=n.code,{isTop:S,isRight:M,isLeft:N,isBottom:$,maxScroll:H,minScroll:L}=Xm(j),Y=Mk(j),te={x:Math.min(D===Ge.Right?Y.right-Y.width/2:Y.right,Math.max(D===Ge.Right?Y.left:Y.left+Y.width/2,m.x)),y:Math.min(D===Ge.Down?Y.bottom-Y.height/2:Y.bottom,Math.max(D===Ge.Down?Y.top:Y.top+Y.height/2,m.y))},Q=D===Ge.Right&&!M||D===Ge.Left&&!N,I=D===Ge.Down&&!$||D===Ge.Up&&!S;if(Q&&te.x!==m.x){const q=j.scrollLeft+k.x,X=D===Ge.Right&&q<=H.x||D===Ge.Left&&q>=L.x;if(X&&!k.y){j.scrollTo({left:q,behavior:d});return}X?x.x=j.scrollLeft-q:x.x=D===Ge.Right?j.scrollLeft-H.x:j.scrollLeft-L.x,x.x&&j.scrollBy({left:-x.x,behavior:d});break}else if(I&&te.y!==m.y){const q=j.scrollTop+k.y,X=D===Ge.Down&&q<=H.y||D===Ge.Up&&q>=L.y;if(X&&!k.x){j.scrollTo({top:q,behavior:d});return}X?x.y=j.scrollTop-q:x.y=D===Ge.Down?j.scrollTop-H.y:j.scrollTop-L.y,x.y&&j.scrollBy({top:-x.y,behavior:d});break}}this.handleMove(n,Yi(Lo(m,this.referenceCoordinates),x))}}}handleMove(n,r){const{onMove:l}=this.props;n.preventDefault(),l(r)}handleEnd(n){const{onEnd:r}=this.props;n.preventDefault(),this.detach(),r()}handleCancel(n){const{onCancel:r}=this.props;n.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}eg.activators=[{eventName:"onKeyDown",handler:(e,n,r)=>{let{keyboardCodes:l=Jm,onActivation:o}=n,{active:a}=r;const{code:u}=e.nativeEvent;if(l.start.includes(u)){const d=a.activatorNode.current;return d&&e.target!==d?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function fh(e){return!!(e&&"distance"in e)}function ph(e){return!!(e&&"delay"in e)}class Qc{constructor(n,r,l){var o;l===void 0&&(l=Bk(n.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=n,this.events=r;const{event:a}=n,{target:u}=a;this.props=n,this.events=r,this.document=il(u),this.documentListeners=new Jl(this.document),this.listeners=new Jl(l),this.windowListeners=new Jl(mn(u)),this.initialCoordinates=(o=fc(a))!=null?o:er,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:n,props:{options:{activationConstraint:r,bypassActivationConstraint:l}}}=this;if(this.listeners.add(n.move.name,this.handleMove,{passive:!1}),this.listeners.add(n.end.name,this.handleEnd),n.cancel&&this.listeners.add(n.cancel.name,this.handleCancel),this.windowListeners.add(Ln.Resize,this.handleCancel),this.windowListeners.add(Ln.DragStart,dh),this.windowListeners.add(Ln.VisibilityChange,this.handleCancel),this.windowListeners.add(Ln.ContextMenu,dh),this.documentListeners.add(Ln.Keydown,this.handleKeydown),r){if(l!=null&&l({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ph(r)){this.timeoutId=setTimeout(this.handleStart,r.delay),this.handlePending(r);return}if(fh(r)){this.handlePending(r);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(n,r){const{active:l,onPending:o}=this.props;o(l,n,this.initialCoordinates,r)}handleStart(){const{initialCoordinates:n}=this,{onStart:r}=this.props;n&&(this.activated=!0,this.documentListeners.add(Ln.Click,Uk,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ln.SelectionChange,this.removeTextSelection),r(n))}handleMove(n){var r;const{activated:l,initialCoordinates:o,props:a}=this,{onMove:u,options:{activationConstraint:d}}=a;if(!o)return;const f=(r=fc(n))!=null?r:er,h=Lo(o,f);if(!l&&d){if(fh(d)){if(d.tolerance!=null&&Hu(h,d.tolerance))return this.handleCancel();if(Hu(h,d.distance))return this.handleStart()}if(ph(d)&&Hu(h,d.tolerance))return this.handleCancel();this.handlePending(d,h);return}n.cancelable&&n.preventDefault(),u(f)}handleEnd(){const{onAbort:n,onEnd:r}=this.props;this.detach(),this.activated||n(this.props.active),r()}handleCancel(){const{onAbort:n,onCancel:r}=this.props;this.detach(),this.activated||n(this.props.active),r()}handleKeydown(n){n.code===Ge.Esc&&this.handleCancel()}removeTextSelection(){var n;(n=this.document.getSelection())==null||n.removeAllRanges()}}const Hk={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Yc extends Qc{constructor(n){const{event:r}=n,l=il(r.target);super(n,Hk,l)}}Yc.activators=[{eventName:"onPointerDown",handler:(e,n)=>{let{nativeEvent:r}=e,{onActivation:l}=n;return!r.isPrimary||r.button!==0?!1:(l==null||l({event:r}),!0)}}];const Wk={move:{name:"mousemove"},end:{name:"mouseup"}};var mc;(function(e){e[e.RightClick=2]="RightClick"})(mc||(mc={}));class Zk extends Qc{constructor(n){super(n,Wk,il(n.event.target))}}Zk.activators=[{eventName:"onMouseDown",handler:(e,n)=>{let{nativeEvent:r}=e,{onActivation:l}=n;return r.button===mc.RightClick?!1:(l==null||l({event:r}),!0)}}];const Wu={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Kk extends Qc{constructor(n){super(n,Wu)}static setup(){return window.addEventListener(Wu.move.name,n,{capture:!1,passive:!1}),function(){window.removeEventListener(Wu.move.name,n)};function n(){}}}Kk.activators=[{eventName:"onTouchStart",handler:(e,n)=>{let{nativeEvent:r}=e,{onActivation:l}=n;const{touches:o}=r;return o.length>1?!1:(l==null||l({event:r}),!0)}}];var es;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(es||(es={}));var Oo;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Oo||(Oo={}));function qk(e){let{acceleration:n,activator:r=es.Pointer,canScroll:l,draggingRect:o,enabled:a,interval:u=5,order:d=Oo.TreeOrder,pointerCoordinates:f,scrollableAncestors:h,scrollableAncestorRects:y,delta:m,threshold:k}=e;const x=Yk({delta:m,disabled:!a}),[b,j]=sk(),D=C.useRef({x:0,y:0}),S=C.useRef({x:0,y:0}),M=C.useMemo(()=>{switch(r){case es.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case es.DraggableRect:return o}},[r,o,f]),N=C.useRef(null),$=C.useCallback(()=>{const L=N.current;if(!L)return;const Y=D.current.x*S.current.x,te=D.current.y*S.current.y;L.scrollBy(Y,te)},[]),H=C.useMemo(()=>d===Oo.TreeOrder?[...h].reverse():h,[d,h]);C.useEffect(()=>{if(!a||!h.length||!M){j();return}for(const L of H){if((l==null?void 0:l(L))===!1)continue;const Y=h.indexOf(L),te=y[Y];if(!te)continue;const{direction:Q,speed:I}=Lk(L,te,M,n,k);for(const q of["x","y"])x[q][Q[q]]||(I[q]=0,Q[q]=0);if(I.x>0||I.y>0){j(),N.current=L,b($,u),D.current=I,S.current=Q;return}}D.current={x:0,y:0},S.current={x:0,y:0},j()},[n,$,l,j,a,u,JSON.stringify(M),JSON.stringify(x),b,h,H,y,JSON.stringify(k)])}const Qk={x:{[It.Backward]:!1,[It.Forward]:!1},y:{[It.Backward]:!1,[It.Forward]:!1}};function Yk(e){let{delta:n,disabled:r}=e;const l=dc(n);return hs(o=>{if(r||!l||!o)return Qk;const a={x:Math.sign(n.x-l.x),y:Math.sign(n.y-l.y)};return{x:{[It.Backward]:o.x[It.Backward]||a.x===-1,[It.Forward]:o.x[It.Forward]||a.x===1},y:{[It.Backward]:o.y[It.Backward]||a.y===-1,[It.Forward]:o.y[It.Forward]||a.y===1}}},[r,n,l])}function Xk(e,n){const r=n!=null?e.get(n):void 0,l=r?r.node.current:null;return hs(o=>{var a;return n==null?null:(a=l??o)!=null?a:null},[l,n])}function Gk(e,n){return C.useMemo(()=>e.reduce((r,l)=>{const{sensor:o}=l,a=o.activators.map(u=>({eventName:u.eventName,handler:n(u.handler,l)}));return[...r,...a]},[]),[e,n])}var os;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(os||(os={}));var gc;(function(e){e.Optimized="optimized"})(gc||(gc={}));const hh=new Map;function Jk(e,n){let{dragging:r,dependencies:l,config:o}=n;const[a,u]=C.useState(null),{frequency:d,measure:f,strategy:h}=o,y=C.useRef(e),m=D(),k=ss(m),x=C.useCallback(function(S){S===void 0&&(S=[]),!k.current&&u(M=>M===null?S:M.concat(S.filter(N=>!M.includes(N))))},[k]),b=C.useRef(null),j=hs(S=>{if(m&&!r)return hh;if(!S||S===hh||y.current!==e||a!=null){const M=new Map;for(let N of e){if(!N)continue;if(a&&a.length>0&&!a.includes(N.id)&&N.rect.current){M.set(N.id,N.rect.current);continue}const $=N.node.current,H=$?new qc(f($),$):null;N.rect.current=H,H&&M.set(N.id,H)}return M}return S},[e,a,r,m,f]);return C.useEffect(()=>{y.current=e},[e]),C.useEffect(()=>{m||x()},[r,m]),C.useEffect(()=>{a&&a.length>0&&u(null)},[JSON.stringify(a)]),C.useEffect(()=>{m||typeof d!="number"||b.current!==null||(b.current=setTimeout(()=>{x(),b.current=null},d))},[d,m,x,...l]),{droppableRects:j,measureDroppableContainers:x,measuringScheduled:a!=null};function D(){switch(h){case os.Always:return!1;case os.BeforeDragging:return r;default:return!r}}}function tg(e,n){return hs(r=>e?r||(typeof n=="function"?n(e):e):null,[n,e])}function e1(e,n){return tg(e,n)}function t1(e){let{callback:n,disabled:r}=e;const l=Zc(n),o=C.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(l)},[l,r]);return C.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Qo(e){let{callback:n,disabled:r}=e;const l=Zc(n),o=C.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(l)},[r]);return C.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function n1(e){return new qc(ms(e),e)}function mh(e,n,r){n===void 0&&(n=n1);const[l,o]=C.useState(null);function a(){o(f=>{if(!e)return null;if(e.isConnected===!1){var h;return(h=f??r)!=null?h:null}const y=n(e);return JSON.stringify(f)===JSON.stringify(y)?f:y})}const u=t1({callback(f){if(e)for(const h of f){const{type:y,target:m}=h;if(y==="childList"&&m instanceof HTMLElement&&m.contains(e)){a();break}}}}),d=Qo({callback:a});return ei(()=>{a(),e?(d==null||d.observe(e),u==null||u.observe(document.body,{childList:!0,subtree:!0})):(d==null||d.disconnect(),u==null||u.disconnect())},[e]),l}function r1(e){const n=tg(e);return Zm(e,n)}const gh=[];function i1(e){const n=C.useRef(e),r=hs(l=>e?l&&l!==gh&&e&&n.current&&e.parentNode===n.current.parentNode?l:Kc(e):gh,[e]);return C.useEffect(()=>{n.current=e},[e]),r}function l1(e){const[n,r]=C.useState(null),l=C.useRef(e),o=C.useCallback(a=>{const u=Vu(a.target);u&&r(d=>d?(d.set(u,hc(u)),new Map(d)):null)},[]);return C.useEffect(()=>{const a=l.current;if(e!==a){u(a);const d=e.map(f=>{const h=Vu(f);return h?(h.addEventListener("scroll",o,{passive:!0}),[h,hc(h)]):null}).filter(f=>f!=null);r(d.length?new Map(d):null),l.current=e}return()=>{u(e),u(a)};function u(d){d.forEach(f=>{const h=Vu(f);h==null||h.removeEventListener("scroll",o)})}},[o,e]),C.useMemo(()=>e.length?n?Array.from(n.values()).reduce((a,u)=>Yi(a,u),er):Gm(e):er,[e,n])}function yh(e,n){n===void 0&&(n=[]);const r=C.useRef(null);return C.useEffect(()=>{r.current=null},n),C.useEffect(()=>{const l=e!==er;l&&!r.current&&(r.current=e),!l&&r.current&&(r.current=null)},[e]),r.current?Lo(e,r.current):er}function s1(e){C.useEffect(()=>{if(!Ko)return;const n=e.map(r=>{let{sensor:l}=r;return l.setup==null?void 0:l.setup()});return()=>{for(const r of n)r==null||r()}},e.map(n=>{let{sensor:r}=n;return r}))}function o1(e,n){return C.useMemo(()=>e.reduce((r,l)=>{let{eventName:o,handler:a}=l;return r[o]=u=>{a(u,n)},r},{}),[e,n])}function ng(e){return C.useMemo(()=>e?Dk(e):null,[e])}const vh=[];function a1(e,n){n===void 0&&(n=ms);const[r]=e,l=ng(r?mn(r):null),[o,a]=C.useState(vh);function u(){a(()=>e.length?e.map(f=>Ym(f)?l:new qc(n(f),f)):vh)}const d=Qo({callback:u});return ei(()=>{d==null||d.disconnect(),u(),e.forEach(f=>d==null?void 0:d.observe(f))},[e]),o}function u1(e){if(!e)return null;if(e.children.length>1)return e;const n=e.children[0];return ps(n)?n:e}function c1(e){let{measure:n}=e;const[r,l]=C.useState(null),o=C.useCallback(h=>{for(const{target:y}of h)if(ps(y)){l(m=>{const k=n(y);return m?{...m,width:k.width,height:k.height}:k});break}},[n]),a=Qo({callback:o}),u=C.useCallback(h=>{const y=u1(h);a==null||a.disconnect(),y&&(a==null||a.observe(y)),l(y?n(y):null)},[n,a]),[d,f]=Po(u);return C.useMemo(()=>({nodeRef:d,rect:r,setRef:f}),[r,d,f])}const d1=[{sensor:Yc,options:{}},{sensor:eg,options:{}}],f1={current:{}},Do={draggable:{measure:ch},droppable:{measure:ch,strategy:os.WhileDragging,frequency:gc.Optimized},dragOverlay:{measure:ms}};class ts extends Map{get(n){var r;return n!=null&&(r=super.get(n))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(n=>{let{disabled:r}=n;return!r})}getNodeFor(n){var r,l;return(r=(l=this.get(n))==null?void 0:l.node.current)!=null?r:void 0}}const p1={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ts,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Mo},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Do,measureDroppableContainers:Mo,windowRect:null,measuringScheduled:!1},h1={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Mo,draggableNodes:new Map,over:null,measureDroppableContainers:Mo},Yo=C.createContext(h1),m1=C.createContext(p1);function g1(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ts}}}function y1(e,n){switch(n.type){case Et.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case Et.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:n.coordinates.x-e.draggable.initialCoordinates.x,y:n.coordinates.y-e.draggable.initialCoordinates.y}}};case Et.DragEnd:case Et.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Et.RegisterDroppable:{const{element:r}=n,{id:l}=r,o=new ts(e.droppable.containers);return o.set(l,r),{...e,droppable:{...e.droppable,containers:o}}}case Et.SetDroppableDisabled:{const{id:r,key:l,disabled:o}=n,a=e.droppable.containers.get(r);if(!a||l!==a.key)return e;const u=new ts(e.droppable.containers);return u.set(r,{...a,disabled:o}),{...e,droppable:{...e.droppable,containers:u}}}case Et.UnregisterDroppable:{const{id:r,key:l}=n,o=e.droppable.containers.get(r);if(!o||l!==o.key)return e;const a=new ts(e.droppable.containers);return a.delete(r),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function v1(e){let{disabled:n}=e;const{active:r,activatorEvent:l,draggableNodes:o}=C.useContext(Yo),a=dc(l),u=dc(r==null?void 0:r.id);return C.useEffect(()=>{if(!n&&!l&&a&&u!=null){if(!Hm(a)||document.activeElement===a.target)return;const d=o.get(u);if(!d)return;const{activatorNode:f,node:h}=d;if(!f.current&&!h.current)return;requestAnimationFrame(()=>{for(const y of[f.current,h.current]){if(!y)continue;const m=uk(y);if(m){m.focus();break}}})}},[l,n,o,u,a]),null}function x1(e,n){let{transform:r,...l}=n;return e!=null&&e.length?e.reduce((o,a)=>a({transform:o,...l}),r):r}function k1(e){return C.useMemo(()=>({draggable:{...Do.draggable,...e==null?void 0:e.draggable},droppable:{...Do.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Do.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function w1(e){let{activeNode:n,measure:r,initialRect:l,config:o=!0}=e;const a=C.useRef(!1),{x:u,y:d}=typeof o=="boolean"?{x:o,y:o}:o;ei(()=>{if(!u&&!d||!n){a.current=!1;return}if(a.current||!l)return;const h=n==null?void 0:n.node.current;if(!h||h.isConnected===!1)return;const y=r(h),m=Zm(y,l);if(u||(m.x=0),d||(m.y=0),a.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){const k=Km(h);k&&k.scrollBy({top:m.y,left:m.x})}},[n,u,d,l,r])}const rg=C.createContext({...er,scaleX:1,scaleY:1});var Yr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Yr||(Yr={}));const _1=C.memo(function(n){var r,l,o,a;let{id:u,accessibility:d,autoScroll:f=!0,children:h,sensors:y=d1,collisionDetection:m=Sk,measuring:k,modifiers:x,...b}=n;const j=C.useReducer(y1,void 0,g1),[D,S]=j,[M,N]=mk(),[$,H]=C.useState(Yr.Uninitialized),L=$===Yr.Initialized,{draggable:{active:Y,nodes:te,translate:Q},droppable:{containers:I}}=D,q=Y!=null?te.get(Y):null,X=C.useRef({initial:null,translated:null}),G=C.useMemo(()=>{var st;return Y!=null?{id:Y,data:(st=q==null?void 0:q.data)!=null?st:f1,rect:X}:null},[Y,q]),K=C.useRef(null),[F,pe]=C.useState(null),[ye,U]=C.useState(null),oe=ss(b,Object.values(b)),_=qo("DndDescribedBy",u),A=C.useMemo(()=>I.getEnabled(),[I]),V=k1(k),{droppableRects:E,measureDroppableContainers:ke,measuringScheduled:je}=Jk(A,{dragging:L,dependencies:[Q.x,Q.y],config:V.droppable}),me=Xk(te,Y),De=C.useMemo(()=>ye?fc(ye):null,[ye]),Re=Nr(),Me=e1(me,V.draggable.measure);w1({activeNode:Y!=null?te.get(Y):null,config:Re.layoutShiftCompensation,initialRect:Me,measure:V.draggable.measure});const Be=mh(me,V.draggable.measure,Me),Dt=mh(me?me.parentElement:null),rn=C.useRef({activatorEvent:null,active:null,activeNode:me,collisionRect:null,collisions:null,droppableRects:E,draggableNodes:te,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Fn=I.getNodeFor((r=rn.current.over)==null?void 0:r.id),Lt=c1({measure:V.dragOverlay.measure}),yn=(l=Lt.nodeRef.current)!=null?l:me,_t=L?(o=Lt.rect)!=null?o:Be:null,$n=!!(Lt.nodeRef.current&&Lt.rect),qt=r1($n?null:Be),Qt=ng(yn?mn(yn):null),yt=i1(L?Fn??me:null),Yt=a1(yt),En=x1(x,{transform:{x:Q.x-qt.x,y:Q.y-qt.y,scaleX:1,scaleY:1},activatorEvent:ye,active:G,activeNodeRect:Be,containerNodeRect:Dt,draggingNodeRect:_t,over:rn.current.over,overlayNodeRect:Lt.rect,scrollableAncestors:yt,scrollableAncestorRects:Yt,windowRect:Qt}),tr=De?Yi(De,Q):null,pr=l1(yt),hr=yh(pr),W=yh(pr,[Be]),re=Yi(En,hr),be=_t?Nk(_t,En):null,Z=G&&be?m({active:G,collisionRect:be,droppableRects:E,droppableContainers:A,pointerCoordinates:tr}):null,ae=_k(Z,"id"),[$e,ln]=C.useState(null),sn=$n?En:Yi(En,W),nr=Ck(sn,(a=$e==null?void 0:$e.rect)!=null?a:null,Be),Bn=C.useRef(null),vt=C.useCallback((st,Ot)=>{let{sensor:zt,options:Un}=Ot;if(K.current==null)return;const Xt=te.get(K.current);if(!Xt)return;const Ft=st.nativeEvent,on=new zt({active:K.current,activeNode:Xt,event:Ft,options:Un,context:rn,onAbort(ot){if(!te.get(ot))return;const{onDragAbort:$t}=oe.current,Vn={id:ot};$t==null||$t(Vn),M({type:"onDragAbort",event:Vn})},onPending(ot,Tn,$t,Vn){if(!te.get(ot))return;const{onDragPending:rr}=oe.current,vn={id:ot,constraint:Tn,initialCoordinates:$t,offset:Vn};rr==null||rr(vn),M({type:"onDragPending",event:vn})},onStart(ot){const Tn=K.current;if(Tn==null)return;const $t=te.get(Tn);if(!$t)return;const{onDragStart:Vn}=oe.current,Hn={activatorEvent:Ft,active:{id:Tn,data:$t.data,rect:X}};Xl.unstable_batchedUpdates(()=>{Vn==null||Vn(Hn),H(Yr.Initializing),S({type:Et.DragStart,initialCoordinates:ot,active:Tn}),M({type:"onDragStart",event:Hn}),pe(Bn.current),U(Ft)})},onMove(ot){S({type:Et.DragMove,coordinates:ot})},onEnd:mr(Et.DragEnd),onCancel:mr(Et.DragCancel)});Bn.current=on;function mr(ot){return async function(){const{active:$t,collisions:Vn,over:Hn,scrollAdjustedTranslate:rr}=rn.current;let vn=null;if($t&&rr){const{cancelDrop:gr}=oe.current;vn={activatorEvent:Ft,active:$t,collisions:Vn,delta:rr,over:Hn},ot===Et.DragEnd&&typeof gr=="function"&&await Promise.resolve(gr(vn))&&(ot=Et.DragCancel)}K.current=null,Xl.unstable_batchedUpdates(()=>{S({type:ot}),H(Yr.Uninitialized),ln(null),pe(null),U(null),Bn.current=null;const gr=ot===Et.DragEnd?"onDragEnd":"onDragCancel";if(vn){const ul=oe.current[gr];ul==null||ul(vn),M({type:gr,event:vn})}})}}},[te]),Nn=C.useCallback((st,Ot)=>(zt,Un)=>{const Xt=zt.nativeEvent,Ft=te.get(Un);if(K.current!==null||!Ft||Xt.dndKit||Xt.defaultPrevented)return;const on={active:Ft};st(zt,Ot.options,on)===!0&&(Xt.dndKit={capturedBy:Ot.sensor},K.current=Un,vt(zt,Ot))},[te,vt]),Mt=Gk(y,Nn);s1(y),ei(()=>{Be&&$===Yr.Initializing&&H(Yr.Initialized)},[Be,$]),C.useEffect(()=>{const{onDragMove:st}=oe.current,{active:Ot,activatorEvent:zt,collisions:Un,over:Xt}=rn.current;if(!Ot||!zt)return;const Ft={active:Ot,activatorEvent:zt,collisions:Un,delta:{x:re.x,y:re.y},over:Xt};Xl.unstable_batchedUpdates(()=>{st==null||st(Ft),M({type:"onDragMove",event:Ft})})},[re.x,re.y]),C.useEffect(()=>{const{active:st,activatorEvent:Ot,collisions:zt,droppableContainers:Un,scrollAdjustedTranslate:Xt}=rn.current;if(!st||K.current==null||!Ot||!Xt)return;const{onDragOver:Ft}=oe.current,on=Un.get(ae),mr=on&&on.rect.current?{id:on.id,rect:on.rect.current,data:on.data,disabled:on.disabled}:null,ot={active:st,activatorEvent:Ot,collisions:zt,delta:{x:Xt.x,y:Xt.y},over:mr};Xl.unstable_batchedUpdates(()=>{ln(mr),Ft==null||Ft(ot),M({type:"onDragOver",event:ot})})},[ae]),ei(()=>{rn.current={activatorEvent:ye,active:G,activeNode:me,collisionRect:be,collisions:Z,droppableRects:E,draggableNodes:te,draggingNode:yn,draggingNodeRect:_t,droppableContainers:I,over:$e,scrollableAncestors:yt,scrollAdjustedTranslate:re},X.current={initial:_t,translated:be}},[G,me,Z,be,te,yn,_t,E,I,$e,yt,re]),qk({...Re,delta:Q,draggingRect:be,pointerCoordinates:tr,scrollableAncestors:yt,scrollableAncestorRects:Yt});const ol=C.useMemo(()=>({active:G,activeNode:me,activeNodeRect:Be,activatorEvent:ye,collisions:Z,containerNodeRect:Dt,dragOverlay:Lt,draggableNodes:te,droppableContainers:I,droppableRects:E,over:$e,measureDroppableContainers:ke,scrollableAncestors:yt,scrollableAncestorRects:Yt,measuringConfiguration:V,measuringScheduled:je,windowRect:Qt}),[G,me,Be,ye,Z,Dt,Lt,te,I,E,$e,ke,yt,Yt,V,je,Qt]),al=C.useMemo(()=>({activatorEvent:ye,activators:Mt,active:G,activeNodeRect:Be,ariaDescribedById:{draggable:_},dispatch:S,draggableNodes:te,over:$e,measureDroppableContainers:ke}),[ye,Mt,G,Be,S,_,te,$e,ke]);return Mn.createElement(Wm.Provider,{value:N},Mn.createElement(Yo.Provider,{value:al},Mn.createElement(m1.Provider,{value:ol},Mn.createElement(rg.Provider,{value:nr},h)),Mn.createElement(v1,{disabled:(d==null?void 0:d.restoreFocus)===!1})),Mn.createElement(vk,{...d,hiddenTextDescribedById:_}));function Nr(){const st=(F==null?void 0:F.autoScrollEnabled)===!1,Ot=typeof f=="object"?f.enabled===!1:f===!1,zt=L&&!st&&!Ot;return typeof f=="object"?{...f,enabled:zt}:{enabled:zt}}}),b1=C.createContext(null),xh="button",S1="Draggable";function C1(e){let{id:n,data:r,disabled:l=!1,attributes:o}=e;const a=qo(S1),{activators:u,activatorEvent:d,active:f,activeNodeRect:h,ariaDescribedById:y,draggableNodes:m,over:k}=C.useContext(Yo),{role:x=xh,roleDescription:b="draggable",tabIndex:j=0}=o??{},D=(f==null?void 0:f.id)===n,S=C.useContext(D?rg:b1),[M,N]=Po(),[$,H]=Po(),L=o1(u,n),Y=ss(r);ei(()=>(m.set(n,{id:n,key:a,node:M,activatorNode:$,data:Y}),()=>{const Q=m.get(n);Q&&Q.key===a&&m.delete(n)}),[m,n]);const te=C.useMemo(()=>({role:x,tabIndex:j,"aria-disabled":l,"aria-pressed":D&&x===xh?!0:void 0,"aria-roledescription":b,"aria-describedby":y.draggable}),[l,x,j,D,b,y.draggable]);return{active:f,activatorEvent:d,activeNodeRect:h,attributes:te,isDragging:D,listeners:l?void 0:L,node:M,over:k,setNodeRef:N,setActivatorNodeRef:H,transform:S}}const E1="Droppable",N1={timeout:25};function T1(e){let{data:n,disabled:r=!1,id:l,resizeObserverConfig:o}=e;const a=qo(E1),{active:u,dispatch:d,over:f,measureDroppableContainers:h}=C.useContext(Yo),y=C.useRef({disabled:r}),m=C.useRef(!1),k=C.useRef(null),x=C.useRef(null),{disabled:b,updateMeasurementsFor:j,timeout:D}={...N1,...o},S=ss(j??l),M=C.useCallback(()=>{if(!m.current){m.current=!0;return}x.current!=null&&clearTimeout(x.current),x.current=setTimeout(()=>{h(Array.isArray(S.current)?S.current:[S.current]),x.current=null},D)},[D]),N=Qo({callback:M,disabled:b||!u}),$=C.useCallback((te,Q)=>{N&&(Q&&(N.unobserve(Q),m.current=!1),te&&N.observe(te))},[N]),[H,L]=Po($),Y=ss(n);return C.useEffect(()=>{!N||!H.current||(N.disconnect(),m.current=!1,N.observe(H.current))},[H,N]),C.useEffect(()=>(d({type:Et.RegisterDroppable,element:{id:l,key:a,disabled:r,node:H,rect:k,data:Y}}),()=>d({type:Et.UnregisterDroppable,key:a,id:l})),[l]),C.useEffect(()=>{r!==y.current.disabled&&(d({type:Et.SetDroppableDisabled,id:l,key:a,disabled:r}),y.current.disabled=r)},[l,a,r,d]),{active:u,rect:k,isOver:(f==null?void 0:f.id)===l,node:H,over:f,setNodeRef:L}}function ig(e,n){const r=n.query.trim().toLowerCase();return e.filter(l=>{const o=l.frontmatter;return n.label!==""&&!o.labels.includes(n.label)||n.assignee!==""&&o.assignee!==n.assignee?!1:r===""?!0:[o.id,o.title,o.assignee??"",...o.labels].join(" ").toLowerCase().includes(r)})}function j1(e){const n=new Set;for(const r of e)for(const l of r.frontmatter.labels)n.add(l);return[...n].sort((r,l)=>r.localeCompare(l))}function I1(e=3e4){const[n,r]=C.useState(()=>Date.now());return C.useEffect(()=>{const l=setInterval(()=>r(Date.now()),e);return()=>clearInterval(l)},[e]),n}const D1=[{value:"decision",labelKey:"blocked.decision.option"},{value:"external",labelKey:"blocked.external.option"},{value:"dependency",labelKey:"blocked.dependency.option"}];function R1({taskTitle:e,onCancel:n,onConfirm:r}){const{t:l}=gt(),[o,a]=C.useState("decision"),[u,d]=C.useState(""),f=u.trim(),h=f.length>0;return v.jsxs(fs,{title:l("blockedDialog.title"),onClose:n,children:[v.jsx("p",{className:ce.label,style:{marginBottom:12},children:l("blockedDialog.intro",{title:e})}),v.jsxs("div",{className:ce.field,children:[v.jsx("label",{className:ce.label,htmlFor:"blocked-type",children:l("blockedDialog.type")}),v.jsx("select",{id:"blocked-type",className:ce.select,value:o,onChange:y=>a(y.target.value),children:D1.map(y=>v.jsx("option",{value:y.value,children:l(y.labelKey)},y.value))})]}),v.jsxs("div",{className:ce.field,children:[v.jsx("label",{className:ce.label,htmlFor:"blocked-reason",children:l("blockedDialog.reason")}),v.jsx("input",{id:"blocked-reason",className:ce.input,value:u,onChange:y=>d(y.target.value.replace(/[\r\n]/g,"")),placeholder:l("blockedDialog.reason.placeholder"),autoFocus:!0})]}),v.jsxs("div",{className:ce.actions,children:[v.jsx("button",{type:"button",className:ce.btn,onClick:n,children:l("common.cancel")}),v.jsx("button",{type:"button",className:`${ce.btn} ${ce.btnPrimary}`,disabled:!h,onClick:()=>r(o,f),children:l("blockedDialog.confirm")})]})]})}function A1(e,n=Date.now()){const r=Date.parse(e);if(Number.isNaN(r))return null;const l=Math.max(0,Math.floor((n-r)/1e3));if(l<60)return{unit:"justNow"};const o=Math.floor(l/60);if(o<60)return{unit:"minutes",n:o};const a=Math.floor(o/60);return a<24?{unit:"hours",n:a}:{unit:"days",n:Math.floor(a/24)}}const P1=/^-\s*(\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2})\s+\[([^\]]+)\]\s*(.*)$/,L1=/^#{1,6}\s*(?:作業ログ|work log)\s*$/i,M1=/^#{1,6}\s*(?:やりとり|comments?|discussion)\s*$/i;function lg(e,n){const r=e.split(`
|
|
45
|
-
`),l=r.findIndex(a=>n.test(a.trim()));if(l===-1)return[];const o=[];for(let a=l+1;a<r.length;a++){const u=r[a];if(/^#{1,6}\s/.test(u))break;if(u.trim()==="")continue;const d=u.match(P1);d?o.push({raw:u,timestamp:d[1],member:d[2],message:d[3]}):u.trim().startsWith("-")&&o.push({raw:u,timestamp:null,member:null,message:u.replace(/^-\s*/,"")})}return o}function sg(e){return lg(e,L1)}function O1(e){return lg(e,M1)}const z1=/^\s*[-*]\s+\[([ xX])\]\s/;function F1(e){let n=0,r=0;for(const l of e.split(`
|
|
46
|
-
`)){const o=l.match(z1);o&&(r+=1,o[1]!==" "&&(n+=1))}return{done:n,total:r}}const $1="_wrap_g8rj0_1",B1="_track_g8rj0_7",U1="_fill_g8rj0_15",V1="_fillComplete_g8rj0_22",H1="_label_g8rj0_26",Wl={wrap:$1,track:B1,fill:U1,fillComplete:V1,label:H1};function yc({done:e,total:n}){const r=n>0?Math.round(e/n*100):0,l=n>0&&e>=n;return v.jsxs("div",{className:Wl.wrap,children:[v.jsx("div",{className:Wl.track,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":n,children:v.jsx("div",{className:`${Wl.fill} ${l?Wl.fillComplete:""}`,style:{width:`${r}%`}})}),v.jsx("span",{className:Wl.label,children:n>0?`${e}/${n}`:"—"})]})}const W1="_card_gvp55_1",Z1="_dragging_gvp55_18",K1="_inProgress_gvp55_22",q1="_topRow_gvp55_26",Q1="_id_gvp55_33",Y1="_priority_gvp55_40",X1="_priorityhigh_gvp55_49",G1="_prioritymedium_gvp55_53",J1="_prioritylow_gvp55_57",ew="_title_gvp55_61",tw="_metaRow_gvp55_66",nw="_assignee_gvp55_73",rw="_memberDot_gvp55_81",iw="_memberhuman_gvp55_88",lw="_memberai_gvp55_92",sw="_memberunknown_gvp55_96",ow="_labels_gvp55_100",aw="_label_gvp55_100",uw="_elapsed_gvp55_114",cw="_elapsedStrong_gvp55_120",dw="_blocked_gvp55_125",fw="_blockedBadge_gvp55_133",pw="_blockeddecision_gvp55_142",hw="_blockedexternal_gvp55_146",mw="_blockeddependency_gvp55_150",gw="_blockedReason_gvp55_154",yw="_proposalActions_gvp55_160",vw="_actionBtn_gvp55_169",xw="_approveBtn_gvp55_178",kw="_rejectBtn_gvp55_184",Ke={card:W1,dragging:Z1,inProgress:K1,topRow:q1,id:Q1,priority:Y1,priorityhigh:X1,prioritymedium:G1,prioritylow:J1,title:ew,metaRow:tw,assignee:nw,memberDot:rw,memberhuman:iw,memberai:lw,memberunknown:sw,labels:ow,label:aw,elapsed:uw,elapsedStrong:cw,blocked:dw,blockedBadge:fw,blockeddecision:pw,blockedexternal:hw,blockeddependency:mw,blockedReason:gw,proposalActions:yw,actionBtn:vw,approveBtn:xw,rejectBtn:kw},ww={decision:"blocked.decision",external:"blocked.external",dependency:"blocked.dependency"};function _w({task:e,memberType:n,now:r,onOpen:l,onApprove:o,onReject:a,onArchive:u}){const{t:d}=gt(),{id:f,title:h,status:y,priority:m,labels:k,assignee:x,blocked_type:b,blocked_reason:j,updated:D}=e.frontmatter,{attributes:S,listeners:M,setNodeRef:N,transform:$,isDragging:H}=C1({id:f,data:{status:y}}),L=x?n(x):void 0,Y=L==="human"?Ke.memberhuman:L==="ai"?Ke.memberai:Ke.memberunknown,te=A1(D,r),Q=F1(e.body);return v.jsxs("div",{ref:N,className:`${Ke.card} ${H?Ke.dragging:""} ${y==="in_progress"?Ke.inProgress:""}`,style:{transform:pc.Translate.toString($)},...M,...S,role:"button",tabIndex:0,onClick:()=>l(e),onKeyDown:I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),l(e))},"aria-label":`${f} ${h}`,children:[v.jsxs("div",{className:Ke.topRow,children:[v.jsx("span",{className:Ke.id,children:f}),v.jsx("span",{className:`${Ke.priority} ${Ke[`priority${m}`]}`,children:m})]}),v.jsx("div",{className:Ke.title,children:h}),k.length>0&&v.jsx("div",{className:Ke.labels,children:k.map(I=>v.jsx("span",{className:Ke.label,children:I},I))}),Q.total>0&&v.jsx(yc,{done:Q.done,total:Q.total}),v.jsxs("div",{className:Ke.metaRow,children:[x?v.jsxs("span",{className:Ke.assignee,title:L?d("card.memberType",{type:d(L==="human"?"member.human":"member.ai")}):d("card.unregisteredMember"),children:[v.jsx("span",{className:`${Ke.memberDot} ${Y}`,"aria-hidden":"true"}),x]}):v.jsx("span",{className:Ke.assignee,children:d("card.unassigned")}),te&&v.jsx("span",{className:`${Ke.elapsed} ${y==="in_progress"?Ke.elapsedStrong:""}`,children:d("card.lastUpdated",{elapsed:Vx(d,te)})})]}),y==="pending"&&(b||j)&&v.jsxs("div",{className:Ke.blocked,children:[b&&v.jsx("span",{className:`${Ke.blockedBadge} ${Ke[`blocked${b}`]}`,children:d(ww[b])}),j&&v.jsx("span",{className:Ke.blockedReason,children:j})]}),y==="proposed"&&(o||a)&&v.jsxs("div",{className:Ke.proposalActions,onPointerDown:I=>I.stopPropagation(),onClick:I=>I.stopPropagation(),children:[a&&v.jsx("button",{type:"button",className:`${Ke.actionBtn} ${Ke.rejectBtn}`,onClick:()=>a(e),children:d("proposal.reject")}),o&&v.jsx("button",{type:"button",className:`${Ke.actionBtn} ${Ke.approveBtn}`,onClick:()=>o(e),children:d("proposal.approve")})]}),y==="done"&&u&&v.jsx("div",{className:Ke.proposalActions,onPointerDown:I=>I.stopPropagation(),onClick:I=>I.stopPropagation(),children:v.jsx("button",{type:"button",className:Ke.actionBtn,onClick:()=>u(e),children:d("archive.action")})})]})}const bw="_column_141p8_1",Sw="_header_141p8_12",Cw="_columnOver_141p8_21",Ew="_headerOver_141p8_26",Nw="_label_141p8_26",Tw="_count_141p8_35",jw="_countOver_141p8_43",Iw="_list_141p8_48",Dw="_over_141p8_58",Rw="_empty_141p8_65",ur={column:bw,header:Sw,columnOver:Cw,headerOver:Ew,label:Nw,count:Tw,countOver:jw,list:Iw,over:Dw,empty:Rw};function Aw({column:e,tasks:n,memberType:r,now:l,onOpen:o,onApprove:a,onReject:u,onArchive:d}){const{t:f}=gt(),{setNodeRef:h,isOver:y}=T1({id:e.id}),m=e.wipLimit!==void 0&&n.length>e.wipLimit;return v.jsxs("section",{className:`${ur.column} ${m?ur.columnOver:""}`,"aria-label":e.label,children:[v.jsxs("header",{className:`${ur.header} ${m?ur.headerOver:""}`,children:[v.jsx("span",{className:ur.label,children:e.label}),v.jsx("span",{className:`${ur.count} ${m?ur.countOver:""}`,title:e.wipLimit!==void 0?m?f("column.wipExceeded",{limit:e.wipLimit}):f("column.wipLimit",{limit:e.wipLimit}):void 0,children:e.wipLimit!==void 0?`${n.length} / ${e.wipLimit}`:n.length})]}),v.jsx("div",{ref:h,className:`${ur.list} ${y?ur.over:""}`,children:n.length===0?v.jsx("div",{className:ur.empty,children:f("column.empty")}):n.map(k=>v.jsx(_w,{task:k,memberType:r,now:l,onOpen:o,onApprove:a,onReject:u,onArchive:d},k.frontmatter.id))})]})}function Pw({taskTitle:e,onCancel:n,onConfirm:r}){const{t:l}=gt(),[o,a]=C.useState(""),u=o.trim();return v.jsxs(fs,{title:l("proposal.reject"),onClose:n,children:[v.jsx("p",{className:ce.label,style:{marginBottom:12},children:e}),v.jsxs("div",{className:ce.field,children:[v.jsx("label",{className:ce.label,htmlFor:"reject-reason",children:l("proposal.reject.prompt")}),v.jsx("input",{id:"reject-reason",className:ce.input,value:o,onChange:d=>a(d.target.value.replace(/[\r\n]/g,"")),autoFocus:!0})]}),v.jsxs("div",{className:ce.actions,children:[v.jsx("button",{type:"button",className:ce.btn,onClick:n,children:l("common.cancel")}),v.jsx("button",{type:"button",className:`${ce.btn} ${ce.btnDanger}`,disabled:u.length===0,onClick:()=>r(u),children:l("proposal.reject")})]})]})}const Lw="_filterBar_10mhl_1",Mw="_search_10mhl_10",Ow="_filterSpacer_10mhl_24",zw="_archiveAllBtn_10mhl_28",Fw="_board_10mhl_39",Zl={filterBar:Lw,search:Mw,filterSpacer:Ow,archiveAllBtn:zw,board:Fw};function $w({board:e,onOpen:n,onChanged:r,onError:l}){const{t:o}=gt(),a=I1(),[u,d]=C.useState(null),[f,h]=C.useState(null),[y,m]=C.useState(""),[k,x]=C.useState(""),[b,j]=C.useState(""),D=kk(xk(Yc,{activationConstraint:{distance:5}})),S=C.useMemo(()=>{const G=new Map(e.config.members.map(K=>[K.id,K.type]));return K=>G.get(K)},[e.config.members]),M=C.useMemo(()=>j1(e.tasks),[e.tasks]),N=C.useMemo(()=>ig(e.tasks,{query:y,label:k,assignee:b}),[e.tasks,y,k,b]),$=C.useMemo(()=>{const G=new Map;for(const K of N){const F=G.get(K.frontmatter.status)??[];F.push(K),G.set(K.frontmatter.status,F)}return G},[N]),H=C.useMemo(()=>e.tasks.filter(G=>G.frontmatter.status==="done"),[e.tasks]),L=e.config.columns.filter(G=>{var F;const K=((F=$.get(G.id))==null?void 0:F.length)??0;return!(G.hideWhenEmpty&&K===0)}),Y=async(G,K,F)=>{try{await Ex({id:G,status:K,...F}),r()}catch(pe){l(pe instanceof Error?pe.message:o("move.error"))}},te=async G=>{try{await Nx(G.frontmatter.id),r()}catch(K){l(K instanceof Error?K.message:o("proposal.approve.error"))}},Q=async(G,K)=>{try{await Tx(G,K),r()}catch(F){l(F instanceof Error?F.message:o("proposal.reject.error"))}},I=async G=>{try{await sh(G.frontmatter.id),r()}catch(K){l(K instanceof Error?K.message:o("archive.error"))}},q=async()=>{if(H.length!==0&&!(typeof window<"u"&&!window.confirm(o("archive.confirm",{n:H.length})))){for(const G of H)try{await sh(G.frontmatter.id)}catch(K){l(K instanceof Error?K.message:o("archive.error"));break}r()}},X=G=>{var oe;const{active:K,over:F}=G;if(!F)return;const pe=F.id,ye=(oe=K.data.current)==null?void 0:oe.status;if(pe===ye)return;const U=e.tasks.find(_=>_.frontmatter.id===K.id);if(U){if(pe==="pending"){d({task:U});return}Y(String(K.id),pe)}};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Zl.filterBar,children:[v.jsx("input",{className:Zl.search,value:y,onChange:G=>m(G.target.value),placeholder:o("search.placeholder"),"aria-label":o("search.placeholder")}),v.jsxs("select",{value:k,onChange:G=>x(G.target.value),"aria-label":o("search.label"),children:[v.jsxs("option",{value:"",children:[o("search.label"),": ",o("search.all")]}),M.map(G=>v.jsx("option",{value:G,children:G},G))]}),v.jsxs("select",{value:b,onChange:G=>j(G.target.value),"aria-label":o("search.assignee"),children:[v.jsxs("option",{value:"",children:[o("search.assignee"),": ",o("search.all")]}),e.config.members.map(G=>v.jsx("option",{value:G.id,children:G.id},G.id))]}),v.jsx("span",{className:Zl.filterSpacer}),H.length>0&&v.jsxs("button",{type:"button",className:Zl.archiveAllBtn,onClick:()=>void q(),children:[o("archive.archiveDone")," (",H.length,")"]})]}),v.jsx(_1,{sensors:D,onDragEnd:X,children:v.jsx("div",{className:Zl.board,children:L.map(G=>v.jsx(Aw,{column:G,tasks:$.get(G.id)??[],memberType:S,now:a,onOpen:n,onApprove:K=>void te(K),onReject:K=>h(K),onArchive:K=>void I(K)},G.id))})}),u&&v.jsx(R1,{taskTitle:u.task.frontmatter.title,onCancel:()=>d(null),onConfirm:(G,K)=>{const F=u.task.frontmatter.id;d(null),Y(F,"pending",{blocked_type:G,blocked_reason:K})}}),f&&v.jsx(Pw,{taskTitle:f.frontmatter.title,onCancel:()=>h(null),onConfirm:G=>{const K=f.frontmatter.id;h(null),Q(K,G)}})]})}const Bw="_overlay_es4xg_1",Uw="_palette_es4xg_12",Vw="_input_es4xg_24",Hw="_list_es4xg_39",Ww="_option_es4xg_46",Zw="_optionActive_es4xg_56",Kw="_empty_es4xg_60",yi={overlay:Bw,palette:Uw,input:Vw,list:Hw,option:Ww,optionActive:Zw,empty:Kw},qw=[{view:"board",labelKey:"view.board"},{view:"critical",labelKey:"view.critical"},{view:"milestones",labelKey:"view.milestones"},{view:"digest",labelKey:"view.digest"},{view:"docs",labelKey:"view.docs"},{view:"stats",labelKey:"view.stats"},{view:"files",labelKey:"view.files"}],Qw=8;function Yw({board:e,onClose:n,onSelectView:r,onOpenAdd:l,onOpenSettings:o,onOpenTask:a}){const{t:u}=gt(),[d,f]=C.useState(""),[h,y]=C.useState(0),m=C.useRef(null),k=C.useRef(null);C.useEffect(()=>{var M;const S=document.activeElement;return(M=m.current)==null||M.focus(),()=>{var N;return(N=S==null?void 0:S.focus)==null?void 0:N.call(S)}},[]);const x=C.useMemo(()=>{const S=d.trim().toLowerCase(),M=H=>S===""||H.toLowerCase().includes(S),N=[...qw.filter(H=>H.view!=="docs"||e.config.docsDirs.length>0).map(H=>({id:`view:${H.view}`,kind:"view",label:`${u("palette.go")}: ${u(H.labelKey)}`,view:H.view})),{id:"action:add",kind:"add",label:u("palette.addTask")},{id:"action:settings",kind:"settings",label:u("palette.settings")}].filter(H=>M(H.label)),$=S===""?[]:ig(e.tasks,{query:d,label:"",assignee:""}).slice(0,Qw).map(H=>({id:`task:${H.frontmatter.id}`,kind:"task",label:`${H.frontmatter.id} — ${H.frontmatter.title}`,taskId:H.frontmatter.id}));return[...N,...$]},[d,e.tasks,e.config.docsDirs,u]);C.useEffect(()=>{y(0)},[d]),C.useEffect(()=>{var M;const S=(M=k.current)==null?void 0:M.querySelector(`[data-idx="${h}"]`);S==null||S.scrollIntoView({block:"nearest"})},[h]);const b=S=>{if(S){switch(S.kind){case"view":r(S.view);break;case"add":l();break;case"settings":o();break;case"task":a(S.taskId);break}n()}},j=S=>{S.nativeEvent.isComposing||(S.key==="Escape"?(S.preventDefault(),S.stopPropagation(),n()):S.key==="ArrowDown"?(S.preventDefault(),S.stopPropagation(),y(M=>x.length===0?0:(M+1)%x.length)):S.key==="ArrowUp"?(S.preventDefault(),S.stopPropagation(),y(M=>x.length===0?0:(M-1+x.length)%x.length)):S.key==="Enter"&&(S.preventDefault(),S.stopPropagation(),b(x[h])))},D=x[h]?`cmd-opt-${x[h].id}`:void 0;return v.jsx("div",{className:yi.overlay,onClick:S=>{Vc(S.target,S.currentTarget)&&(S.stopPropagation(),n())},children:v.jsxs("div",{className:yi.palette,role:"dialog","aria-modal":"true","aria-label":u("palette.title"),children:[v.jsx("input",{ref:m,className:yi.input,type:"text",role:"combobox","aria-expanded":x.length>0?"true":"false","aria-controls":"cmd-listbox","aria-activedescendant":D,"aria-label":u("palette.title"),placeholder:u("palette.placeholder"),value:d,onChange:S=>f(S.target.value),onKeyDown:j}),x.length===0?v.jsx("p",{className:yi.empty,children:u("palette.empty")}):v.jsx("ul",{id:"cmd-listbox",className:yi.list,role:"listbox","aria-label":u("palette.title"),ref:k,children:x.map((S,M)=>v.jsx("li",{id:`cmd-opt-${S.id}`,"data-idx":M,role:"option","aria-selected":M===h,className:`${yi.option} ${M===h?yi.optionActive:""}`,onMouseDown:N=>{N.preventDefault(),b(S)},onMouseEnter:()=>y(M),children:S.label},S.id))})]})})}function Xw(e){const n=new Set(e.map(N=>N.id)),r=new Map;for(const N of e)r.set(N.id,N.dependsOn.filter($=>n.has($)&&$!==N.id));const l=0,o=1,a=2,u=new Map,d=new Set;for(const N of n)u.set(N,l);const f=[],h=new Set,y=N=>{u.set(N,o),f.push(N),h.add(N);for(const $ of r.get(N)??[])if(u.get($)===o){const H=f.indexOf($);for(let L=H;L<f.length;L++)d.add(f[L])}else u.get($)===l&&y($);u.set(N,a),f.pop(),h.delete(N)};for(const N of n)u.get(N)===l&&y(N);const m=new Map,k=new Set,x=N=>{if(d.has(N))return null;if(m.has(N))return m.get(N)??null;if(k.has(N))return null;k.add(N);let $=-1;for(const L of r.get(N)??[]){const Y=x(L);if(Y===null)return k.delete(N),m.set(N,null),null;Y>$&&($=Y)}k.delete(N);const H=$+1;return m.set(N,H),H};let b=-1;for(const N of n){const $=x(N);$!==null&&$>b&&(b=$)}const j=(N,$)=>N.localeCompare($,"en",{numeric:!0});let D=[];if(b>=0){const N=[...n].filter($=>m.get($)===b).sort(j);if(N.length>0){const $=[];let H=N[0];for(;H!==void 0;){$.push(H);const L=m.get(H);H=(r.get(H)??[]).filter(te=>m.get(te)===(L??0)-1).sort(j)[0]}D=$.reverse()}}const S=new Set(D);return{nodes:e.map(N=>({id:N.id,level:m.get(N.id)??null,dependsOn:r.get(N.id)??[],onCriticalPath:S.has(N.id)})).sort((N,$)=>N.id.localeCompare($.id,"en",{numeric:!0})),criticalPath:D,cycleNodes:[...d].sort((N,$)=>N.localeCompare($,"en",{numeric:!0})),maxLevel:b}}function Gw(e,n,r){return e.replaceAll("{id}",()=>n).replaceAll("{path}",()=>r)}function Jw(e){return`.kanban/tasks/${e}.md`}async function vc(e){var n;try{if(typeof navigator<"u"&&((n=navigator.clipboard)!=null&&n.writeText))return await navigator.clipboard.writeText(e),!0}catch{}try{if(typeof document>"u")return!1;const r=document.createElement("textarea");r.value=e,r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.focus(),r.select();const l=document.execCommand("copy");return document.body.removeChild(r),l}catch{return!1}}const e_="_view_ruvk1_1",t_="_toolbar_ruvk1_7",n_="_cycleWarn_ruvk1_14",r_="_levels_ruvk1_23",i_="_level_ruvk1_23",l_="_levelLabel_ruvk1_36",s_="_node_ruvk1_44",o_="_nodeCp_ruvk1_61",a_="_nodeCycle_ruvk1_66",u_="_statusproposed_ruvk1_72",c_="_statusbacklog_ruvk1_75",d_="_statustodo_ruvk1_78",f_="_statusin_progress_ruvk1_81",p_="_statuspending_ruvk1_84",h_="_nodeTop_ruvk1_88",m_="_nodeId_ruvk1_94",g_="_cpTag_ruvk1_100",y_="_nodeTitle_ruvk1_106",v_="_deps_ruvk1_111",x_="_depsLabel_ruvk1_118",k_="_depChip_ruvk1_123",w_="_pendingBadge_ruvk1_131",__="_empty_ruvk1_141",b_="_copyBtn_ruvk1_147",ft={view:e_,toolbar:t_,cycleWarn:n_,levels:r_,level:i_,levelLabel:l_,node:s_,nodeCp:o_,nodeCycle:a_,statusproposed:u_,statusbacklog:c_,statustodo:d_,statusin_progress:f_,statuspending:p_,nodeTop:h_,nodeId:m_,cpTag:g_,nodeTitle:y_,deps:v_,depsLabel:x_,depChip:k_,pendingBadge:w_,empty:__,copyBtn:b_};function S_({board:e,onOpen:n}){const{t:r}=gt(),[l,o]=C.useState(null),a=C.useMemo(()=>e.tasks.filter(x=>x.frontmatter.status!=="done"),[e.tasks]),u=C.useMemo(()=>new Map(a.map(x=>[x.frontmatter.id,x])),[a]),d=C.useMemo(()=>Xw(a.map(x=>({id:x.frontmatter.id,dependsOn:x.frontmatter.depends_on}))),[a]),f=C.useMemo(()=>{const x=new Map,b=[];for(const j of d.nodes)if(j.level===null)b.push(j);else{const D=x.get(j.level)??[];D.push(j),x.set(j.level,D)}return{map:x,cyclic:b}},[d.nodes]),h=async()=>{const b=["このプロジェクトのタスク依存関係 (depends_on) を見直し、クリティカルパスを最短化できないか検討してください。","CLAUDE.md の運用規約に従い、各タスクファイルの frontmatter `depends_on` を必要に応じて編集してください。","","現在の未完了タスクと依存:",...a.map(D=>`- ${D.frontmatter.id} (${D.frontmatter.status})`+(D.frontmatter.depends_on.length>0?` depends_on: ${D.frontmatter.depends_on.join(", ")}`:""))].join(`
|
|
47
|
-
`),j=await vc(b);o(j?"done":"failed"),window.setTimeout(()=>o(null),2e3)},y=[...f.map.keys()].sort((x,b)=>x-b),m=a.length>0,k=x=>{const b=u.get(x.id),j=x.level===null,D=b?ft[`status${b.frontmatter.status}`]:"";return v.jsxs("div",{className:`${ft.node} ${x.onCriticalPath?ft.nodeCp:""} ${j?ft.nodeCycle:D}`,role:"button",tabIndex:0,onClick:()=>b&&n(b),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&b&&(S.preventDefault(),n(b))},children:[v.jsxs("div",{className:ft.nodeTop,children:[v.jsx("span",{className:ft.nodeId,children:x.id}),x.onCriticalPath&&v.jsxs("span",{className:ft.cpTag,children:["★ ",r("cp.criticalPath")]})]}),v.jsx("div",{className:ft.nodeTitle,children:(b==null?void 0:b.frontmatter.title)??x.id}),(b==null?void 0:b.frontmatter.status)==="pending"&&v.jsx("span",{className:ft.pendingBadge,children:"pending"}),x.dependsOn.length>0&&v.jsxs("div",{className:ft.deps,children:[v.jsx("span",{className:ft.depsLabel,children:r("cp.dependsOn")}),x.dependsOn.map(S=>v.jsx("span",{className:ft.depChip,children:S},S))]})]},x.id)};return v.jsxs("div",{className:ft.view,children:[v.jsx("div",{className:ft.toolbar,children:v.jsx("button",{type:"button",className:ft.copyBtn,onClick:()=>void h(),disabled:!m,children:r(l==="done"?"cp.copied":l==="failed"?"cp.copyFailed":"cp.copyReorg")})}),d.cycleNodes.length>0&&v.jsxs("div",{className:ft.cycleWarn,role:"alert",children:["⚠ ",r("cp.cycleWarning",{ids:d.cycleNodes.join(", ")})]}),m?v.jsxs("div",{className:ft.levels,children:[y.map(x=>v.jsxs("div",{className:ft.level,children:[v.jsx("span",{className:ft.levelLabel,children:r("cp.level",{n:x})}),(f.map.get(x)??[]).map(k)]},x)),f.cyclic.length>0&&v.jsxs("div",{className:ft.level,children:[v.jsxs("span",{className:ft.levelLabel,children:["⚠ ",r("cp.cycleLevel")]}),f.cyclic.map(k)]})]}):v.jsx("div",{className:ft.empty,children:r("cp.empty")})]})}const C_=/^\s*[-*]\s*(\d{4}-\d{2}-\d{2})\s+(\d{2}:\d{2})\s+\[([^\]]+)\]\s*(.*)$/;function og(e){const n=[];for(const r of e.split(`
|
|
48
|
-
`)){const l=r.match(C_);if(!l)continue;const[,o,a,u,d]=l;n.push({date:o,time:a,member:u,message:d})}return n}function E_(e){const n=new Map;for(const l of e)for(const{date:o,time:a,member:u,message:d}of og(l.body)){const f=n.get(o)??[];f.push({taskId:l.id,time:a,member:u,message:d}),n.set(o,f)}const r=[...n.entries()].map(([l,o])=>({date:l,entries:o.sort((a,u)=>a.time.localeCompare(u.time)||a.taskId.localeCompare(u.taskId,"en",{numeric:!0}))}));return r.sort((l,o)=>o.date.localeCompare(l.date)),r}const N_="_view_6tawd_1",T_="_day_6tawd_8",j_="_dayHeader_6tawd_12",I_="_date_6tawd_21",D_="_count_6tawd_26",R_="_entry_6tawd_31",A_="_time_6tawd_39",P_="_taskId_6tawd_46",L_="_member_6tawd_53",M_="_memberDot_6tawd_61",O_="_memberhuman_6tawd_67",z_="_memberai_6tawd_71",F_="_memberunknown_6tawd_75",$_="_message_6tawd_79",B_="_empty_6tawd_83",Wt={view:N_,day:T_,dayHeader:j_,date:I_,count:D_,entry:R_,time:A_,taskId:P_,member:L_,memberDot:M_,memberhuman:O_,memberai:z_,memberunknown:F_,message:$_,empty:B_};function U_({board:e}){const{t:n}=gt(),[r,l]=C.useState([]);C.useEffect(()=>{let d=!0;const f=new AbortController;return(async()=>{try{const h=await Mm(f.signal);d&&l(h.tasks)}catch{d&&l([])}})(),()=>{d=!1,f.abort()}},[e]);const o=C.useMemo(()=>{const d=new Map(e.config.members.map(f=>[f.id,f.type]));return f=>d.get(f)},[e.config.members]),a=C.useMemo(()=>{const d=e.tasks.map(y=>({id:y.frontmatter.id,body:y.body})),f=new Set(d.map(y=>y.id)),h=r.filter(y=>!f.has(y.id));return E_([...d,...h])},[e.tasks,r]),u=d=>{const f=o(d);return f==="human"?Wt.memberhuman:f==="ai"?Wt.memberai:Wt.memberunknown};return a.length===0?v.jsx("div",{className:Wt.view,children:v.jsx("div",{className:Wt.empty,children:n("digest.empty")})}):v.jsx("div",{className:Wt.view,children:a.map(d=>v.jsxs("section",{className:Wt.day,children:[v.jsxs("div",{className:Wt.dayHeader,children:[v.jsx("span",{className:Wt.date,children:d.date}),v.jsx("span",{className:Wt.count,children:n("digest.entries",{n:d.entries.length})})]}),d.entries.map((f,h)=>v.jsxs("div",{className:Wt.entry,children:[v.jsx("span",{className:Wt.time,children:f.time}),v.jsx("span",{className:Wt.taskId,children:f.taskId}),v.jsxs("span",{className:Wt.member,children:[v.jsx("span",{className:`${Wt.memberDot} ${u(f.member)}`,"aria-hidden":"true"}),f.member]}),v.jsx("span",{className:Wt.message,children:f.message})]},h))]},d.date))})}function V_(e,n){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const H_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,W_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Z_={};function kh(e,n){return(Z_.jsx?W_:H_).test(e)}const K_=/[ \t\n\f\r]/g;function q_(e){return typeof e=="object"?e.type==="text"?wh(e.value):!1:wh(e)}function wh(e){return e.replace(K_,"")===""}class gs{constructor(n,r,l){this.normal=r,this.property=n,l&&(this.space=l)}}gs.prototype.normal={};gs.prototype.property={};gs.prototype.space=void 0;function ag(e,n){const r={},l={};for(const o of e)Object.assign(r,o.property),Object.assign(l,o.normal);return new gs(r,l,n)}function xc(e){return e.toLowerCase()}class gn{constructor(n,r){this.attribute=r,this.property=n}}gn.prototype.attribute="";gn.prototype.booleanish=!1;gn.prototype.boolean=!1;gn.prototype.commaOrSpaceSeparated=!1;gn.prototype.commaSeparated=!1;gn.prototype.defined=!1;gn.prototype.mustUseProperty=!1;gn.prototype.number=!1;gn.prototype.overloadedBoolean=!1;gn.prototype.property="";gn.prototype.spaceSeparated=!1;gn.prototype.space=void 0;let Q_=0;const Ae=bi(),kt=bi(),kc=bi(),ie=bi(),Xe=bi(),xi=bi(),bn=bi();function bi(){return 2**++Q_}const wc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ae,booleanish:kt,commaOrSpaceSeparated:bn,commaSeparated:xi,number:ie,overloadedBoolean:kc,spaceSeparated:Xe},Symbol.toStringTag,{value:"Module"})),Zu=Object.keys(wc);class Xc extends gn{constructor(n,r,l,o){let a=-1;if(super(n,r),_h(this,"space",o),typeof l=="number")for(;++a<Zu.length;){const u=Zu[a];_h(this,Zu[a],(l&wc[u])===wc[u])}}}Xc.prototype.defined=!0;function _h(e,n,r){r&&(e[n]=r)}function ll(e){const n={},r={};for(const[l,o]of Object.entries(e.properties)){const a=new Xc(l,e.transform(e.attributes||{},l),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(a.mustUseProperty=!0),n[l]=a,r[xc(l)]=l,r[xc(a.attribute)]=l}return new gs(n,r,e.space)}const ug=ll({properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:Xe,ariaCurrent:null,ariaDescribedBy:Xe,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:Xe,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:Xe,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Xe,ariaLevel:ie,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:Xe,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:Xe,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:kt,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function cg(e,n){return n in e?e[n]:n}function dg(e,n){return cg(e,n.toLowerCase())}const Y_=ll({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xi,acceptCharset:Xe,accessKey:Xe,action:null,allow:null,allowFullScreen:Ae,allowPaymentRequest:Ae,allowUserMedia:Ae,alpha:Ae,alt:null,as:null,async:Ae,autoCapitalize:null,autoComplete:Xe,autoFocus:Ae,autoPlay:Ae,blocking:Xe,capture:null,charSet:null,checked:Ae,cite:null,className:Xe,closedBy:null,colorSpace:null,cols:ie,colSpan:ie,command:null,commandFor:null,content:null,contentEditable:kt,controls:Ae,controlsList:Xe,coords:ie|xi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ae,defer:Ae,dir:null,dirName:null,disabled:Ae,download:kc,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ae,formTarget:null,headers:Xe,height:ie,hidden:kc,high:ie,href:null,hrefLang:null,htmlFor:Xe,httpEquiv:Xe,id:null,imageSizes:null,imageSrcSet:null,inert:Ae,inputMode:null,integrity:null,is:null,isMap:Ae,itemId:null,itemProp:Xe,itemRef:Xe,itemScope:Ae,itemType:Xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ae,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Ae,muted:Ae,name:null,nonce:null,noModule:Ae,noValidate:Ae,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:Ae,optimum:ie,pattern:null,ping:Xe,placeholder:null,playsInline:Ae,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ae,referrerPolicy:null,rel:Xe,required:Ae,reversed:Ae,rows:ie,rowSpan:ie,sandbox:Xe,scope:null,scoped:Ae,seamless:Ae,selected:Ae,shadowRootClonable:Ae,shadowRootCustomElementRegistry:Ae,shadowRootDelegatesFocus:Ae,shadowRootMode:null,shadowRootSerializable:Ae,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Ae,useMap:null,value:kt,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Xe,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ae,declare:Ae,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Ae,noHref:Ae,noShade:Ae,noWrap:Ae,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:kt,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ae,disablePictureInPicture:Ae,disableRemotePlayback:Ae,exportParts:xi,part:Xe,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:dg}),X_=ll({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",maskType:"mask-type",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:bn,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:Xe,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:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Ae,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:xi,g2:xi,glyphName:xi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ie,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:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bn,rev:bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bn,requiredFeatures:bn,requiredFonts:bn,requiredFormats:bn,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bn,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:cg}),fg=ll({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),pg=ll({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:dg}),hg=ll({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),G_={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"},J_=/[A-Z]/g,bh=/-[a-z]/g,e0=/^data[-\w.:]+$/i;function t0(e,n){const r=xc(n);let l=n,o=gn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&e0.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(bh,r0);l="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!bh.test(a)){let u=a.replace(J_,n0);u.charAt(0)!=="-"&&(u="-"+u),n="data"+u}}o=Xc}return new o(l,n)}function n0(e){return"-"+e.toLowerCase()}function r0(e){return e.charAt(1).toUpperCase()}const i0=ag([ug,Y_,fg,pg,hg],"html"),Gc=ag([ug,X_,fg,pg,hg],"svg");function l0(e){return e.join(" ").trim()}var Zi={},Ku,Sh;function s0(){if(Sh)return Ku;Sh=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
|
|
49
|
-
`,h="/",y="*",m="",k="comment",x="declaration";function b(D,S){if(typeof D!="string")throw new TypeError("First argument must be a string");if(!D)return[];S=S||{};var M=1,N=1;function $(K){var F=K.match(n);F&&(M+=F.length);var pe=K.lastIndexOf(f);N=~pe?K.length-pe:N+K.length}function H(){var K={line:M,column:N};return function(F){return F.position=new L(K),Q(),F}}function L(K){this.start=K,this.end={line:M,column:N},this.source=S.source}L.prototype.content=D;function Y(K){var F=new Error(S.source+":"+M+":"+N+": "+K);if(F.reason=K,F.filename=S.source,F.line=M,F.column=N,F.source=D,!S.silent)throw F}function te(K){var F=K.exec(D);if(F){var pe=F[0];return $(pe),D=D.slice(pe.length),F}}function Q(){te(r)}function I(K){var F;for(K=K||[];F=q();)F!==!1&&K.push(F);return K}function q(){var K=H();if(!(h!=D.charAt(0)||y!=D.charAt(1))){for(var F=2;m!=D.charAt(F)&&(y!=D.charAt(F)||h!=D.charAt(F+1));)++F;if(F+=2,m===D.charAt(F-1))return Y("End of comment missing");var pe=D.slice(2,F-2);return N+=2,$(pe),D=D.slice(F),N+=2,K({type:k,comment:pe})}}function X(){var K=H(),F=te(l);if(F){if(q(),!te(o))return Y("property missing ':'");var pe=te(a),ye=K({type:x,property:j(F[0].replace(e,m)),value:pe?j(pe[0].replace(e,m)):m});return te(u),ye}}function G(){var K=[];I(K);for(var F;F=X();)F!==!1&&(K.push(F),I(K));return K}return Q(),G()}function j(D){return D?D.replace(d,m):m}return Ku=b,Ku}var Ch;function o0(){if(Ch)return Zi;Ch=1;var e=Zi&&Zi.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.default=r;const n=e(s0());function r(l,o){let a=null;if(!l||typeof l!="string")return a;const u=(0,n.default)(l),d=typeof o=="function";return u.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:y}=f;d?o(h,y,f):y&&(a=a||{},a[h]=y)}),a}return Zi}var Kl={},Eh;function a0(){if(Eh)return Kl;Eh=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(h){return!h||r.test(h)||e.test(h)},u=function(h,y){return y.toUpperCase()},d=function(h,y){return"".concat(y,"-")},f=function(h,y){return y===void 0&&(y={}),a(h)?h:(h=h.toLowerCase(),y.reactCompat?h=h.replace(o,d):h=h.replace(l,d),h.replace(n,u))};return Kl.camelCase=f,Kl}var ql,Nh;function u0(){if(Nh)return ql;Nh=1;var e=ql&&ql.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},n=e(o0()),r=a0();function l(o,a){var u={};return!o||typeof o!="string"||(0,n.default)(o,function(d,f){d&&f&&(u[(0,r.camelCase)(d,a)]=f)}),u}return l.default=l,ql=l,ql}var c0=u0();const d0=$c(c0),mg=gg("end"),Jc=gg("start");function gg(e){return n;function n(r){const l=r&&r.position&&r.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function f0(e){const n=Jc(e),r=mg(e);if(n&&r)return{start:n,end:r}}function ns(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Th(e.position):"start"in e||"end"in e?Th(e):"line"in e||"column"in e?_c(e):""}function _c(e){return jh(e&&e.line)+":"+jh(e&&e.column)}function Th(e){return _c(e&&e.start)+"-"+_c(e&&e.end)}function jh(e){return e&&typeof e=="number"?e:1}class Kt extends Error{constructor(n,r,l){super(),typeof r=="string"&&(l=r,r=void 0);let o="",a={},u=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof n=="string"?o=n:!a.cause&&n&&(u=!0,o=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof l=="string"){const f=l.indexOf(":");f===-1?a.ruleId=l:(a.source=l.slice(0,f),a.ruleId=l.slice(f+1))}if(!a.place&&a.ancestors&&a.ancestors){const f=a.ancestors[a.ancestors.length-1];f&&(a.place=f.position)}const d=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=ns(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=u&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Kt.prototype.file="";Kt.prototype.name="";Kt.prototype.reason="";Kt.prototype.message="";Kt.prototype.stack="";Kt.prototype.column=void 0;Kt.prototype.line=void 0;Kt.prototype.ancestors=void 0;Kt.prototype.cause=void 0;Kt.prototype.fatal=void 0;Kt.prototype.place=void 0;Kt.prototype.ruleId=void 0;Kt.prototype.source=void 0;const ed={}.hasOwnProperty,p0=new Map,h0=/[A-Z]/g,m0=new Set(["table","tbody","thead","tfoot","tr"]),g0=new Set(["td","th"]),yg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function y0(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=n.filePath||void 0;let l;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=C0(r,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=S0(r,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:l,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Gc:i0,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=vg(o,e,void 0);return a&&typeof a!="string"?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function vg(e,n,r){if(n.type==="element")return v0(e,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return x0(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return w0(e,n,r);if(n.type==="mdxjsEsm")return k0(e,n);if(n.type==="root")return _0(e,n,r);if(n.type==="text")return b0(e,n)}function v0(e,n,r){const l=e.schema;let o=l;n.tagName.toLowerCase()==="svg"&&l.space==="html"&&(o=Gc,e.schema=o),e.ancestors.push(n);const a=kg(e,n.tagName,!1),u=E0(e,n);let d=nd(e,n);return m0.has(n.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!q_(f):!0})),xg(e,u,a,n),td(u,d),e.ancestors.pop(),e.schema=l,e.create(n,a,u,r)}function x0(e,n){if(n.data&&n.data.estree&&e.evaluater){const l=n.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}as(e,n.position)}function k0(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);as(e,n.position)}function w0(e,n,r){const l=e.schema;let o=l;n.name==="svg"&&l.space==="html"&&(o=Gc,e.schema=o),e.ancestors.push(n);const a=n.name===null?e.Fragment:kg(e,n.name,!0),u=N0(e,n),d=nd(e,n);return xg(e,u,a,n),td(u,d),e.ancestors.pop(),e.schema=l,e.create(n,a,u,r)}function _0(e,n,r){const l={};return td(l,nd(e,n)),e.create(n,e.Fragment,l,r)}function b0(e,n){return n.value}function xg(e,n,r,l){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(n.node=l)}function td(e,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(e.children=r)}}function S0(e,n,r){return l;function l(o,a,u,d){const h=Array.isArray(u.children)?r:n;return d?h(a,u,d):h(a,u)}}function C0(e,n){return r;function r(l,o,a,u){const d=Array.isArray(a.children),f=Jc(l);return n(o,a,u,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function E0(e,n){const r={};let l,o;for(o in n.properties)if(o!=="children"&&ed.call(n.properties,o)){const a=T0(e,o,n.properties[o]);if(a){const[u,d]=a;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&g0.has(n.tagName)?l=d:r[u]=d}}if(l){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return r}function N0(e,n){const r={};for(const l of n.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const a=l.data.estree.body[0];a.type;const u=a.expression;u.type;const d=u.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else as(e,n.position);else{const o=l.name;let a;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){const d=l.value.data.estree.body[0];d.type,a=e.evaluater.evaluateExpression(d.expression)}else as(e,n.position);else a=l.value===null?!0:l.value;r[o]=a}return r}function nd(e,n){const r=[];let l=-1;const o=e.passKeys?new Map:p0;for(;++l<n.children.length;){const a=n.children[l];let u;if(e.passKeys){const f=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(f){const h=o.get(f)||0;u=f+"-"+h,o.set(f,h+1)}}const d=vg(e,a,u);d!==void 0&&r.push(d)}return r}function T0(e,n,r){const l=t0(e.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=l.commaSeparated?V_(r):l0(r)),l.property==="style"){let o=typeof r=="object"?r:j0(e,String(r));return e.stylePropertyNameCase==="css"&&(o=I0(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&l.space?G_[l.property]||l.property:l.attribute,r]}}function j0(e,n){try{return d0(n,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const l=r,o=new Kt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=yg+"#cannot-parse-style-attribute",o}}function kg(e,n,r){let l;if(!r)l={type:"Literal",value:n};else if(n.includes(".")){const o=n.split(".");let a=-1,u;for(;++a<o.length;){const d=kh(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};u=u?{type:"MemberExpression",object:u,property:d,computed:!!(a&&d.type==="Literal"),optional:!1}:d}l=u}else l=kh(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(l.type==="Literal"){const o=l.value;return ed.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(l);as(e)}function as(e,n){const r=new Kt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=yg+"#cannot-handle-mdx-estrees-without-createevaluater",r}function I0(e){const n={};let r;for(r in e)ed.call(e,r)&&(n[D0(r)]=e[r]);return n}function D0(e){let n=e.replace(h0,R0);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function R0(e){return"-"+e.toLowerCase()}const qu={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"]},A0={};function rd(e,n){const r=A0,l=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return wg(e,l,o)}function wg(e,n,r){if(P0(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ih(e.children,n,r)}return Array.isArray(e)?Ih(e,n,r):""}function Ih(e,n,r){const l=[];let o=-1;for(;++o<e.length;)l[o]=wg(e[o],n,r);return l.join("")}function P0(e){return!!(e&&typeof e=="object")}const Dh=document.createElement("i");function id(e){const n="&"+e+";";Dh.innerHTML=n;const r=Dh.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}function Sn(e,n,r,l){const o=e.length;let a=0,u;if(n<0?n=-n>o?0:o+n:n=n>o?o:n,r=r>0?r:0,l.length<1e4)u=Array.from(l),u.unshift(n,r),e.splice(...u);else for(r&&e.splice(n,r);a<l.length;)u=l.slice(a,a+1e4),u.unshift(n,0),e.splice(...u),a+=1e4,n+=1e4}function On(e,n){return e.length>0?(Sn(e,e.length,0,n),e):n}const Rh={}.hasOwnProperty;function _g(e){const n={};let r=-1;for(;++r<e.length;)L0(n,e[r]);return n}function L0(e,n){let r;for(r in n){const o=(Rh.call(e,r)?e[r]:void 0)||(e[r]={}),a=n[r];let u;if(a)for(u in a){Rh.call(o,u)||(o[u]=[]);const d=a[u];M0(o[u],Array.isArray(d)?d:d?[d]:[])}}}function M0(e,n){let r=-1;const l=[];for(;++r<n.length;)(n[r].add==="after"?e:l).push(n[r]);Sn(e,0,0,l)}function bg(e,n){const r=Number.parseInt(e,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Jn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const tn=ri(/[A-Za-z]/),Zt=ri(/[\dA-Za-z]/),O0=ri(/[#-'*+\--9=?A-Z^-~]/);function zo(e){return e!==null&&(e<32||e===127)}const bc=ri(/\d/),z0=ri(/[\dA-Fa-f]/),F0=ri(/[!-/:-@[-`{-~]/);function Te(e){return e!==null&&e<-2}function Je(e){return e!==null&&(e<0||e===32)}function Fe(e){return e===-2||e===-1||e===32}const Xo=ri(new RegExp("\\p{P}|\\p{S}","u")),wi=ri(/\s/);function ri(e){return n;function n(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function sl(e){const n=[];let r=-1,l=0,o=0;for(;++r<e.length;){const a=e.charCodeAt(r);let u="";if(a===37&&Zt(e.charCodeAt(r+1))&&Zt(e.charCodeAt(r+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(u=String.fromCharCode(a));else if(a>55295&&a<57344){const d=e.charCodeAt(r+1);a<56320&&d>56319&&d<57344?(u=String.fromCharCode(a,d),o=1):u="�"}else u=String.fromCharCode(a);u&&(n.push(e.slice(l,r),encodeURIComponent(u)),l=r+o+1,u=""),o&&(r+=o,o=0)}return n.join("")+e.slice(l)}function Ue(e,n,r,l){const o=l?l-1:Number.POSITIVE_INFINITY;let a=0;return u;function u(f){return Fe(f)?(e.enter(r),d(f)):n(f)}function d(f){return Fe(f)&&a++<o?(e.consume(f),d):(e.exit(r),n(f))}}const $0={tokenize:B0};function B0(e){const n=e.attempt(this.parser.constructs.contentInitial,l,o);let r;return n;function l(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Ue(e,n,"linePrefix")}function o(d){return e.enter("paragraph"),a(d)}function a(d){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,u(d)}function u(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Te(d)?(e.consume(d),e.exit("chunkText"),a):(e.consume(d),u)}}const U0={tokenize:V0},Ah={tokenize:H0};function V0(e){const n=this,r=[];let l=0,o,a,u;return d;function d(N){if(l<r.length){const $=r[l];return n.containerState=$[1],e.attempt($[0].continuation,f,h)(N)}return h(N)}function f(N){if(l++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&M();const $=n.events.length;let H=$,L;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){L=n.events[H][1].end;break}S(l);let Y=$;for(;Y<n.events.length;)n.events[Y][1].end={...L},Y++;return Sn(n.events,H+1,0,n.events.slice($)),n.events.length=Y,h(N)}return d(N)}function h(N){if(l===r.length){if(!o)return k(N);if(o.currentConstruct&&o.currentConstruct.concrete)return b(N);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Ah,y,m)(N)}function y(N){return o&&M(),S(l),k(N)}function m(N){return n.parser.lazy[n.now().line]=l!==r.length,u=n.now().offset,b(N)}function k(N){return n.containerState={},e.attempt(Ah,x,b)(N)}function x(N){return l++,r.push([n.currentConstruct,n.containerState]),k(N)}function b(N){if(N===null){o&&M(),S(0),e.consume(N);return}return o=o||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:a}),j(N)}function j(N){if(N===null){D(e.exit("chunkFlow"),!0),S(0),e.consume(N);return}return Te(N)?(e.consume(N),D(e.exit("chunkFlow")),l=0,n.interrupt=void 0,d):(e.consume(N),j)}function D(N,$){const H=n.sliceStream(N);if($&&H.push(null),N.previous=a,a&&(a.next=N),a=N,o.defineSkip(N.start),o.write(H),n.parser.lazy[N.start.line]){let L=o.events.length;for(;L--;)if(o.events[L][1].start.offset<u&&(!o.events[L][1].end||o.events[L][1].end.offset>u))return;const Y=n.events.length;let te=Y,Q,I;for(;te--;)if(n.events[te][0]==="exit"&&n.events[te][1].type==="chunkFlow"){if(Q){I=n.events[te][1].end;break}Q=!0}for(S(l),L=Y;L<n.events.length;)n.events[L][1].end={...I},L++;Sn(n.events,te+1,0,n.events.slice(Y)),n.events.length=L}}function S(N){let $=r.length;for(;$-- >N;){const H=r[$];n.containerState=H[1],H[0].exit.call(n,e)}r.length=N}function M(){o.write([null]),a=void 0,o=void 0,n.containerState._closeFlow=void 0}}function H0(e,n,r){return Ue(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xi(e){if(e===null||Je(e)||wi(e))return 1;if(Xo(e))return 2}function Go(e,n,r){const l=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!l.includes(a)&&(n=a(n,r),l.push(a))}return n}const Sc={name:"attention",resolveAll:W0,tokenize:Z0};function W0(e,n){let r=-1,l,o,a,u,d,f,h,y;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(l=r;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&n.sliceSerialize(e[l][1]).charCodeAt(0)===n.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[l][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[l][1].end.offset-e[l][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const m={...e[l][1].end},k={...e[r][1].start};Ph(m,-f),Ph(k,f),u={type:f>1?"strongSequence":"emphasisSequence",start:m,end:{...e[l][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:k},a={type:f>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[r][1].start}},o={type:f>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},e[l][1].end={...u.start},e[r][1].start={...d.end},h=[],e[l][1].end.offset-e[l][1].start.offset&&(h=On(h,[["enter",e[l][1],n],["exit",e[l][1],n]])),h=On(h,[["enter",o,n],["enter",u,n],["exit",u,n],["enter",a,n]]),h=On(h,Go(n.parser.constructs.insideSpan.null,e.slice(l+1,r),n)),h=On(h,[["exit",a,n],["enter",d,n],["exit",d,n],["exit",o,n]]),e[r][1].end.offset-e[r][1].start.offset?(y=2,h=On(h,[["enter",e[r][1],n],["exit",e[r][1],n]])):y=0,Sn(e,l-1,r-l+3,h),r=l+h.length-y-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Z0(e,n){const r=this.parser.constructs.attentionMarkers.null,l=this.previous,o=Xi(l);let a;return u;function u(f){return a=f,e.enter("attentionSequence"),d(f)}function d(f){if(f===a)return e.consume(f),d;const h=e.exit("attentionSequence"),y=Xi(f),m=!y||y===2&&o||r.includes(f),k=!o||o===2&&y||r.includes(l);return h._open=!!(a===42?m:m&&(o||!k)),h._close=!!(a===42?k:k&&(y||!m)),n(f)}}function Ph(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const K0={name:"autolink",tokenize:q0};function q0(e,n,r){let l=0;return o;function o(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(x){return tn(x)?(e.consume(x),u):x===64?r(x):h(x)}function u(x){return x===43||x===45||x===46||Zt(x)?(l=1,d(x)):h(x)}function d(x){return x===58?(e.consume(x),l=0,f):(x===43||x===45||x===46||Zt(x))&&l++<32?(e.consume(x),d):(l=0,h(x))}function f(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),n):x===null||x===32||x===60||zo(x)?r(x):(e.consume(x),f)}function h(x){return x===64?(e.consume(x),y):O0(x)?(e.consume(x),h):r(x)}function y(x){return Zt(x)?m(x):r(x)}function m(x){return x===46?(e.consume(x),l=0,y):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),n):k(x)}function k(x){if((x===45||Zt(x))&&l++<63){const b=x===45?k:m;return e.consume(x),b}return r(x)}}const ys={partial:!0,tokenize:Q0};function Q0(e,n,r){return l;function l(a){return Fe(a)?Ue(e,o,"linePrefix")(a):o(a)}function o(a){return a===null||Te(a)?n(a):r(a)}}const Sg={continuation:{tokenize:X0},exit:G0,name:"blockQuote",tokenize:Y0};function Y0(e,n,r){const l=this;return o;function o(u){if(u===62){const d=l.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),a}return r(u)}function a(u){return Fe(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(u))}}function X0(e,n,r){const l=this;return o;function o(u){return Fe(u)?Ue(e,a,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):a(u)}function a(u){return e.attempt(Sg,n,r)(u)}}function G0(e){e.exit("blockQuote")}const Cg={name:"characterEscape",tokenize:J0};function J0(e,n,r){return l;function l(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return F0(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(a)}}const Eg={name:"characterReference",tokenize:eb};function eb(e,n,r){const l=this;let o=0,a,u;return d;function d(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),f}function f(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),a=31,u=Zt,y(m))}function h(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,u=z0,y):(e.enter("characterReferenceValue"),a=7,u=bc,y(m))}function y(m){if(m===59&&o){const k=e.exit("characterReferenceValue");return u===Zt&&!id(l.sliceSerialize(k))?r(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return u(m)&&o++<a?(e.consume(m),y):r(m)}}const Lh={partial:!0,tokenize:nb},Mh={concrete:!0,name:"codeFenced",tokenize:tb};function tb(e,n,r){const l=this,o={partial:!0,tokenize:H};let a=0,u=0,d;return f;function f(L){return h(L)}function h(L){const Y=l.events[l.events.length-1];return a=Y&&Y[1].type==="linePrefix"?Y[2].sliceSerialize(Y[1],!0).length:0,d=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(L)}function y(L){return L===d?(u++,e.consume(L),y):u<3?r(L):(e.exit("codeFencedFenceSequence"),Fe(L)?Ue(e,m,"whitespace")(L):m(L))}function m(L){return L===null||Te(L)?(e.exit("codeFencedFence"),l.interrupt?n(L):e.check(Lh,j,$)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),k(L))}function k(L){return L===null||Te(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(L)):Fe(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ue(e,x,"whitespace")(L)):L===96&&L===d?r(L):(e.consume(L),k)}function x(L){return L===null||Te(L)?m(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(L))}function b(L){return L===null||Te(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(L)):L===96&&L===d?r(L):(e.consume(L),b)}function j(L){return e.attempt(o,$,D)(L)}function D(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),S}function S(L){return a>0&&Fe(L)?Ue(e,M,"linePrefix",a+1)(L):M(L)}function M(L){return L===null||Te(L)?e.check(Lh,j,$)(L):(e.enter("codeFlowValue"),N(L))}function N(L){return L===null||Te(L)?(e.exit("codeFlowValue"),M(L)):(e.consume(L),N)}function $(L){return e.exit("codeFenced"),n(L)}function H(L,Y,te){let Q=0;return I;function I(F){return L.enter("lineEnding"),L.consume(F),L.exit("lineEnding"),q}function q(F){return L.enter("codeFencedFence"),Fe(F)?Ue(L,X,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):X(F)}function X(F){return F===d?(L.enter("codeFencedFenceSequence"),G(F)):te(F)}function G(F){return F===d?(Q++,L.consume(F),G):Q>=u?(L.exit("codeFencedFenceSequence"),Fe(F)?Ue(L,K,"whitespace")(F):K(F)):te(F)}function K(F){return F===null||Te(F)?(L.exit("codeFencedFence"),Y(F)):te(F)}}}function nb(e,n,r){const l=this;return o;function o(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a)}function a(u){return l.parser.lazy[l.now().line]?r(u):n(u)}}const Qu={name:"codeIndented",tokenize:ib},rb={partial:!0,tokenize:lb};function ib(e,n,r){const l=this;return o;function o(h){return e.enter("codeIndented"),Ue(e,a,"linePrefix",5)(h)}function a(h){const y=l.events[l.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?u(h):r(h)}function u(h){return h===null?f(h):Te(h)?e.attempt(rb,u,f)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||Te(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),d)}function f(h){return e.exit("codeIndented"),n(h)}}function lb(e,n,r){const l=this;return o;function o(u){return l.parser.lazy[l.now().line]?r(u):Te(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):Ue(e,a,"linePrefix",5)(u)}function a(u){const d=l.events[l.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?n(u):Te(u)?o(u):r(u)}}const sb={name:"codeText",previous:ab,resolve:ob,tokenize:ub};function ob(e){let n=e.length-4,r=3,l,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(l=r;++l<n;)if(e[l][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(l=r-1,n++;++l<=n;)o===void 0?l!==n&&e[l][1].type!=="lineEnding"&&(o=l):(l===n||e[l][1].type==="lineEnding")&&(e[o][1].type="codeTextData",l!==o+2&&(e[o][1].end=e[l-1][1].end,e.splice(o+2,l-o-2),n-=l-o-2,l=o+2),o=void 0);return e}function ab(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ub(e,n,r){let l=0,o,a;return u;function u(m){return e.enter("codeText"),e.enter("codeTextSequence"),d(m)}function d(m){return m===96?(e.consume(m),l++,d):(e.exit("codeTextSequence"),f(m))}function f(m){return m===null?r(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),f):m===96?(a=e.enter("codeTextSequence"),o=0,y(m)):Te(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(m))}function h(m){return m===null||m===32||m===96||Te(m)?(e.exit("codeTextData"),f(m)):(e.consume(m),h)}function y(m){return m===96?(e.consume(m),o++,y):o===l?(e.exit("codeTextSequence"),e.exit("codeText"),n(m)):(a.type="codeTextData",h(m))}}class cb{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const l=r??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(n,l):n>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(n,r,l){const o=r||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return l&&Ql(this.left,l),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Ql(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Ql(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);Ql(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Ql(this.left,r.reverse())}}}function Ql(e,n){let r=0;if(n.length<1e4)e.push(...n);else for(;r<n.length;)e.push(...n.slice(r,r+1e4)),r+=1e4}function Ng(e){const n={};let r=-1,l,o,a,u,d,f,h;const y=new cb(e);for(;++r<y.length;){for(;r in n;)r=n[r];if(l=y.get(r),r&&l[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(f=l[1]._tokenizer.events,a=0,a<f.length&&f[a][1].type==="lineEndingBlank"&&(a+=2),a<f.length&&f[a][1].type==="content"))for(;++a<f.length&&f[a][1].type!=="content";)f[a][1].type==="chunkText"&&(f[a][1]._isInFirstContentOfListItem=!0,a++);if(l[0]==="enter")l[1].contentType&&(Object.assign(n,db(y,r)),r=n[r],h=!0);else if(l[1]._container){for(a=r,o=void 0;a--;)if(u=y.get(a),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),u[1].type="lineEnding",o=a);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;o&&(l[1].end={...y.get(o)[1].start},d=y.slice(o,r),d.unshift(l),y.splice(o,r-o+1,d))}}return Sn(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!h}function db(e,n){const r=e.get(n)[1],l=e.get(n)[2];let o=n-1;const a=[];let u=r._tokenizer;u||(u=l.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,f=[],h={};let y,m,k=-1,x=r,b=0,j=0;const D=[j];for(;x;){for(;e.get(++o)[1]!==x;);a.push(o),x._tokenizer||(y=l.sliceStream(x),x.next||y.push(null),m&&u.defineSkip(x.start),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(y),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),m=x,x=x.next}for(x=r;++k<d.length;)d[k][0]==="exit"&&d[k-1][0]==="enter"&&d[k][1].type===d[k-1][1].type&&d[k][1].start.line!==d[k][1].end.line&&(j=k+1,D.push(j),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(u.events=[],x?(x._tokenizer=void 0,x.previous=void 0):D.pop(),k=D.length;k--;){const S=d.slice(D[k],D[k+1]),M=a.pop();f.push([M,M+S.length-1]),e.splice(M,2,S)}for(f.reverse(),k=-1;++k<f.length;)h[b+f[k][0]]=b+f[k][1],b+=f[k][1]-f[k][0]-1;return h}const fb={resolve:hb,tokenize:mb},pb={partial:!0,tokenize:gb};function hb(e){return Ng(e),e}function mb(e,n){let r;return l;function l(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?a(d):Te(d)?e.check(pb,u,a)(d):(e.consume(d),o)}function a(d){return e.exit("chunkContent"),e.exit("content"),n(d)}function u(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function gb(e,n,r){const l=this;return o;function o(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Ue(e,a,"linePrefix")}function a(u){if(u===null||Te(u))return r(u);const d=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?n(u):e.interrupt(l.parser.constructs.flow,r,n)(u)}}function Tg(e,n,r,l,o,a,u,d,f){const h=f||Number.POSITIVE_INFINITY;let y=0;return m;function m(S){return S===60?(e.enter(l),e.enter(o),e.enter(a),e.consume(S),e.exit(a),k):S===null||S===32||S===41||zo(S)?r(S):(e.enter(l),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),j(S))}function k(S){return S===62?(e.enter(a),e.consume(S),e.exit(a),e.exit(o),e.exit(l),n):(e.enter(d),e.enter("chunkString",{contentType:"string"}),x(S))}function x(S){return S===62?(e.exit("chunkString"),e.exit(d),k(S)):S===null||S===60||Te(S)?r(S):(e.consume(S),S===92?b:x)}function b(S){return S===60||S===62||S===92?(e.consume(S),x):x(S)}function j(S){return!y&&(S===null||S===41||Je(S))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(l),n(S)):y<h&&S===40?(e.consume(S),y++,j):S===41?(e.consume(S),y--,j):S===null||S===32||S===40||zo(S)?r(S):(e.consume(S),S===92?D:j)}function D(S){return S===40||S===41||S===92?(e.consume(S),j):j(S)}}function jg(e,n,r,l,o,a){const u=this;let d=0,f;return h;function h(x){return e.enter(l),e.enter(o),e.consume(x),e.exit(o),e.enter(a),y}function y(x){return d>999||x===null||x===91||x===93&&!f||x===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?r(x):x===93?(e.exit(a),e.enter(o),e.consume(x),e.exit(o),e.exit(l),n):Te(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||x===91||x===93||Te(x)||d++>999?(e.exit("chunkString"),y(x)):(e.consume(x),f||(f=!Fe(x)),x===92?k:m)}function k(x){return x===91||x===92||x===93?(e.consume(x),d++,m):m(x)}}function Ig(e,n,r,l,o,a){let u;return d;function d(k){return k===34||k===39||k===40?(e.enter(l),e.enter(o),e.consume(k),e.exit(o),u=k===40?41:k,f):r(k)}function f(k){return k===u?(e.enter(o),e.consume(k),e.exit(o),e.exit(l),n):(e.enter(a),h(k))}function h(k){return k===u?(e.exit(a),f(u)):k===null?r(k):Te(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),Ue(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(k))}function y(k){return k===u||k===null||Te(k)?(e.exit("chunkString"),h(k)):(e.consume(k),k===92?m:y)}function m(k){return k===u||k===92?(e.consume(k),y):y(k)}}function rs(e,n){let r;return l;function l(o){return Te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,l):Fe(o)?Ue(e,l,r?"linePrefix":"lineSuffix")(o):n(o)}}const yb={name:"definition",tokenize:xb},vb={partial:!0,tokenize:kb};function xb(e,n,r){const l=this;let o;return a;function a(x){return e.enter("definition"),u(x)}function u(x){return jg.call(l,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return o=Jn(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),f):r(x)}function f(x){return Je(x)?rs(e,h)(x):h(x)}function h(x){return Tg(e,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function y(x){return e.attempt(vb,m,m)(x)}function m(x){return Fe(x)?Ue(e,k,"whitespace")(x):k(x)}function k(x){return x===null||Te(x)?(e.exit("definition"),l.parser.defined.push(o),n(x)):r(x)}}function kb(e,n,r){return l;function l(d){return Je(d)?rs(e,o)(d):r(d)}function o(d){return Ig(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function a(d){return Fe(d)?Ue(e,u,"whitespace")(d):u(d)}function u(d){return d===null||Te(d)?n(d):r(d)}}const wb={name:"hardBreakEscape",tokenize:_b};function _b(e,n,r){return l;function l(a){return e.enter("hardBreakEscape"),e.consume(a),o}function o(a){return Te(a)?(e.exit("hardBreakEscape"),n(a)):r(a)}}const bb={name:"headingAtx",resolve:Sb,tokenize:Cb};function Sb(e,n){let r=e.length-2,l=3,o,a;return e[l][1].type==="whitespace"&&(l+=2),r-2>l&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(l===r-1||r-4>l&&e[r-2][1].type==="whitespace")&&(r-=l+1===r?2:4),r>l&&(o={type:"atxHeadingText",start:e[l][1].start,end:e[r][1].end},a={type:"chunkText",start:e[l][1].start,end:e[r][1].end,contentType:"text"},Sn(e,l,r-l+1,[["enter",o,n],["enter",a,n],["exit",a,n],["exit",o,n]])),e}function Cb(e,n,r){let l=0;return o;function o(y){return e.enter("atxHeading"),a(y)}function a(y){return e.enter("atxHeadingSequence"),u(y)}function u(y){return y===35&&l++<6?(e.consume(y),u):y===null||Je(y)?(e.exit("atxHeadingSequence"),d(y)):r(y)}function d(y){return y===35?(e.enter("atxHeadingSequence"),f(y)):y===null||Te(y)?(e.exit("atxHeading"),n(y)):Fe(y)?Ue(e,d,"whitespace")(y):(e.enter("atxHeadingText"),h(y))}function f(y){return y===35?(e.consume(y),f):(e.exit("atxHeadingSequence"),d(y))}function h(y){return y===null||y===35||Je(y)?(e.exit("atxHeadingText"),d(y)):(e.consume(y),h)}}const Eb=["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"],Oh=["pre","script","style","textarea"],Nb={concrete:!0,name:"htmlFlow",resolveTo:Ib,tokenize:Db},Tb={partial:!0,tokenize:Ab},jb={partial:!0,tokenize:Rb};function Ib(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Db(e,n,r){const l=this;let o,a,u,d,f;return h;function h(E){return y(E)}function y(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),m}function m(E){return E===33?(e.consume(E),k):E===47?(e.consume(E),a=!0,j):E===63?(e.consume(E),o=3,l.interrupt?n:_):tn(E)?(e.consume(E),u=String.fromCharCode(E),D):r(E)}function k(E){return E===45?(e.consume(E),o=2,x):E===91?(e.consume(E),o=5,d=0,b):tn(E)?(e.consume(E),o=4,l.interrupt?n:_):r(E)}function x(E){return E===45?(e.consume(E),l.interrupt?n:_):r(E)}function b(E){const ke="CDATA[";return E===ke.charCodeAt(d++)?(e.consume(E),d===ke.length?l.interrupt?n:X:b):r(E)}function j(E){return tn(E)?(e.consume(E),u=String.fromCharCode(E),D):r(E)}function D(E){if(E===null||E===47||E===62||Je(E)){const ke=E===47,je=u.toLowerCase();return!ke&&!a&&Oh.includes(je)?(o=1,l.interrupt?n(E):X(E)):Eb.includes(u.toLowerCase())?(o=6,ke?(e.consume(E),S):l.interrupt?n(E):X(E)):(o=7,l.interrupt&&!l.parser.lazy[l.now().line]?r(E):a?M(E):N(E))}return E===45||Zt(E)?(e.consume(E),u+=String.fromCharCode(E),D):r(E)}function S(E){return E===62?(e.consume(E),l.interrupt?n:X):r(E)}function M(E){return Fe(E)?(e.consume(E),M):I(E)}function N(E){return E===47?(e.consume(E),I):E===58||E===95||tn(E)?(e.consume(E),$):Fe(E)?(e.consume(E),N):I(E)}function $(E){return E===45||E===46||E===58||E===95||Zt(E)?(e.consume(E),$):H(E)}function H(E){return E===61?(e.consume(E),L):Fe(E)?(e.consume(E),H):N(E)}function L(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),f=E,Y):Fe(E)?(e.consume(E),L):te(E)}function Y(E){return E===f?(e.consume(E),f=null,Q):E===null||Te(E)?r(E):(e.consume(E),Y)}function te(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Je(E)?H(E):(e.consume(E),te)}function Q(E){return E===47||E===62||Fe(E)?N(E):r(E)}function I(E){return E===62?(e.consume(E),q):r(E)}function q(E){return E===null||Te(E)?X(E):Fe(E)?(e.consume(E),q):r(E)}function X(E){return E===45&&o===2?(e.consume(E),pe):E===60&&o===1?(e.consume(E),ye):E===62&&o===4?(e.consume(E),A):E===63&&o===3?(e.consume(E),_):E===93&&o===5?(e.consume(E),oe):Te(E)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(Tb,V,G)(E)):E===null||Te(E)?(e.exit("htmlFlowData"),G(E)):(e.consume(E),X)}function G(E){return e.check(jb,K,V)(E)}function K(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),F}function F(E){return E===null||Te(E)?G(E):(e.enter("htmlFlowData"),X(E))}function pe(E){return E===45?(e.consume(E),_):X(E)}function ye(E){return E===47?(e.consume(E),u="",U):X(E)}function U(E){if(E===62){const ke=u.toLowerCase();return Oh.includes(ke)?(e.consume(E),A):X(E)}return tn(E)&&u.length<8?(e.consume(E),u+=String.fromCharCode(E),U):X(E)}function oe(E){return E===93?(e.consume(E),_):X(E)}function _(E){return E===62?(e.consume(E),A):E===45&&o===2?(e.consume(E),_):X(E)}function A(E){return E===null||Te(E)?(e.exit("htmlFlowData"),V(E)):(e.consume(E),A)}function V(E){return e.exit("htmlFlow"),n(E)}}function Rb(e,n,r){const l=this;return o;function o(u){return Te(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):r(u)}function a(u){return l.parser.lazy[l.now().line]?r(u):n(u)}}function Ab(e,n,r){return l;function l(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(ys,n,r)}}const Pb={name:"htmlText",tokenize:Lb};function Lb(e,n,r){const l=this;let o,a,u;return d;function d(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),f}function f(_){return _===33?(e.consume(_),h):_===47?(e.consume(_),H):_===63?(e.consume(_),N):tn(_)?(e.consume(_),te):r(_)}function h(_){return _===45?(e.consume(_),y):_===91?(e.consume(_),a=0,b):tn(_)?(e.consume(_),M):r(_)}function y(_){return _===45?(e.consume(_),x):r(_)}function m(_){return _===null?r(_):_===45?(e.consume(_),k):Te(_)?(u=m,ye(_)):(e.consume(_),m)}function k(_){return _===45?(e.consume(_),x):m(_)}function x(_){return _===62?pe(_):_===45?k(_):m(_)}function b(_){const A="CDATA[";return _===A.charCodeAt(a++)?(e.consume(_),a===A.length?j:b):r(_)}function j(_){return _===null?r(_):_===93?(e.consume(_),D):Te(_)?(u=j,ye(_)):(e.consume(_),j)}function D(_){return _===93?(e.consume(_),S):j(_)}function S(_){return _===62?pe(_):_===93?(e.consume(_),S):j(_)}function M(_){return _===null||_===62?pe(_):Te(_)?(u=M,ye(_)):(e.consume(_),M)}function N(_){return _===null?r(_):_===63?(e.consume(_),$):Te(_)?(u=N,ye(_)):(e.consume(_),N)}function $(_){return _===62?pe(_):N(_)}function H(_){return tn(_)?(e.consume(_),L):r(_)}function L(_){return _===45||Zt(_)?(e.consume(_),L):Y(_)}function Y(_){return Te(_)?(u=Y,ye(_)):Fe(_)?(e.consume(_),Y):pe(_)}function te(_){return _===45||Zt(_)?(e.consume(_),te):_===47||_===62||Je(_)?Q(_):r(_)}function Q(_){return _===47?(e.consume(_),pe):_===58||_===95||tn(_)?(e.consume(_),I):Te(_)?(u=Q,ye(_)):Fe(_)?(e.consume(_),Q):pe(_)}function I(_){return _===45||_===46||_===58||_===95||Zt(_)?(e.consume(_),I):q(_)}function q(_){return _===61?(e.consume(_),X):Te(_)?(u=q,ye(_)):Fe(_)?(e.consume(_),q):Q(_)}function X(_){return _===null||_===60||_===61||_===62||_===96?r(_):_===34||_===39?(e.consume(_),o=_,G):Te(_)?(u=X,ye(_)):Fe(_)?(e.consume(_),X):(e.consume(_),K)}function G(_){return _===o?(e.consume(_),o=void 0,F):_===null?r(_):Te(_)?(u=G,ye(_)):(e.consume(_),G)}function K(_){return _===null||_===34||_===39||_===60||_===61||_===96?r(_):_===47||_===62||Je(_)?Q(_):(e.consume(_),K)}function F(_){return _===47||_===62||Je(_)?Q(_):r(_)}function pe(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),n):r(_)}function ye(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),U}function U(_){return Fe(_)?Ue(e,oe,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):oe(_)}function oe(_){return e.enter("htmlTextData"),u(_)}}const ld={name:"labelEnd",resolveAll:Fb,resolveTo:$b,tokenize:Bb},Mb={tokenize:Ub},Ob={tokenize:Vb},zb={tokenize:Hb};function Fb(e){let n=-1;const r=[];for(;++n<e.length;){const l=e[n][1];if(r.push(e[n]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const o=l.type==="labelImage"?4:2;l.type="data",n+=o}}return e.length!==r.length&&Sn(e,0,e.length,r),e}function $b(e,n){let r=e.length,l=0,o,a,u,d;for(;r--;)if(o=e[r][1],a){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(a=r,o.type!=="labelLink")){l=2;break}}else o.type==="labelEnd"&&(u=r);const f={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[a][1].start},end:{...e[u][1].end}},y={type:"labelText",start:{...e[a+l+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",f,n],["enter",h,n]],d=On(d,e.slice(a+1,a+l+3)),d=On(d,[["enter",y,n]]),d=On(d,Go(n.parser.constructs.insideSpan.null,e.slice(a+l+4,u-3),n)),d=On(d,[["exit",y,n],e[u-2],e[u-1],["exit",h,n]]),d=On(d,e.slice(u+1)),d=On(d,[["exit",f,n]]),Sn(e,a,e.length,d),e}function Bb(e,n,r){const l=this;let o=l.events.length,a,u;for(;o--;)if((l.events[o][1].type==="labelImage"||l.events[o][1].type==="labelLink")&&!l.events[o][1]._balanced){a=l.events[o][1];break}return d;function d(k){return a?a._inactive?m(k):(u=l.parser.defined.includes(Jn(l.sliceSerialize({start:a.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(k),e.exit("labelMarker"),e.exit("labelEnd"),f):r(k)}function f(k){return k===40?e.attempt(Mb,y,u?y:m)(k):k===91?e.attempt(Ob,y,u?h:m)(k):u?y(k):m(k)}function h(k){return e.attempt(zb,y,m)(k)}function y(k){return n(k)}function m(k){return a._balanced=!0,r(k)}}function Ub(e,n,r){return l;function l(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),o}function o(m){return Je(m)?rs(e,a)(m):a(m)}function a(m){return m===41?y(m):Tg(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function u(m){return Je(m)?rs(e,f)(m):y(m)}function d(m){return r(m)}function f(m){return m===34||m===39||m===40?Ig(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):y(m)}function h(m){return Je(m)?rs(e,y)(m):y(m)}function y(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),n):r(m)}}function Vb(e,n,r){const l=this;return o;function o(d){return jg.call(l,e,a,u,"reference","referenceMarker","referenceString")(d)}function a(d){return l.parser.defined.includes(Jn(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?n(d):r(d)}function u(d){return r(d)}}function Hb(e,n,r){return l;function l(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):r(a)}}const Wb={name:"labelStartImage",resolveAll:ld.resolveAll,tokenize:Zb};function Zb(e,n,r){const l=this;return o;function o(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),a}function a(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),u):r(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in l.parser.constructs?r(d):n(d)}}const Kb={name:"labelStartLink",resolveAll:ld.resolveAll,tokenize:qb};function qb(e,n,r){const l=this;return o;function o(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),a}function a(u){return u===94&&"_hiddenFootnoteSupport"in l.parser.constructs?r(u):n(u)}}const Yu={name:"lineEnding",tokenize:Qb};function Qb(e,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Ue(e,n,"linePrefix")}}const Ro={name:"thematicBreak",tokenize:Yb};function Yb(e,n,r){let l=0,o;return a;function a(h){return e.enter("thematicBreak"),u(h)}function u(h){return o=h,d(h)}function d(h){return h===o?(e.enter("thematicBreakSequence"),f(h)):l>=3&&(h===null||Te(h))?(e.exit("thematicBreak"),n(h)):r(h)}function f(h){return h===o?(e.consume(h),l++,f):(e.exit("thematicBreakSequence"),Fe(h)?Ue(e,d,"whitespace")(h):d(h))}}const hn={continuation:{tokenize:eS},exit:nS,name:"list",tokenize:Jb},Xb={partial:!0,tokenize:rS},Gb={partial:!0,tokenize:tS};function Jb(e,n,r){const l=this,o=l.events[l.events.length-1];let a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0;return d;function d(x){const b=l.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!l.containerState.marker||x===l.containerState.marker:bc(x)){if(l.containerState.type||(l.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(Ro,r,h)(x):h(x);if(!l.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(x)}return r(x)}function f(x){return bc(x)&&++u<10?(e.consume(x),f):(!l.interrupt||u<2)&&(l.containerState.marker?x===l.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),h(x)):r(x)}function h(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||x,e.check(ys,l.interrupt?r:y,e.attempt(Xb,k,m))}function y(x){return l.containerState.initialBlankLine=!0,a++,k(x)}function m(x){return Fe(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),k):r(x)}function k(x){return l.containerState.size=a+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(x)}}function eS(e,n,r){const l=this;return l.containerState._closeFlow=void 0,e.check(ys,o,a);function o(d){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Ue(e,n,"listItemIndent",l.containerState.size+1)(d)}function a(d){return l.containerState.furtherBlankLines||!Fe(d)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,u(d)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(Gb,n,u)(d))}function u(d){return l.containerState._closeFlow=!0,l.interrupt=void 0,Ue(e,e.attempt(hn,n,r),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function tS(e,n,r){const l=this;return Ue(e,o,"listItemIndent",l.containerState.size+1);function o(a){const u=l.events[l.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===l.containerState.size?n(a):r(a)}}function nS(e){e.exit(this.containerState.type)}function rS(e,n,r){const l=this;return Ue(e,o,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(a){const u=l.events[l.events.length-1];return!Fe(a)&&u&&u[1].type==="listItemPrefixWhitespace"?n(a):r(a)}}const zh={name:"setextUnderline",resolveTo:iS,tokenize:lS};function iS(e,n){let r=e.length,l,o,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){l=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const u={type:"setextHeading",start:{...e[l][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",u,n]),e.splice(a+1,0,["exit",e[l][1],n]),e[l][1].end={...e[a][1].end}):e[l][1]=u,e.push(["exit",u,n]),e}function lS(e,n,r){const l=this;let o;return a;function a(h){let y=l.events.length,m;for(;y--;)if(l.events[y][1].type!=="lineEnding"&&l.events[y][1].type!=="linePrefix"&&l.events[y][1].type!=="content"){m=l.events[y][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||m)?(e.enter("setextHeadingLine"),o=h,u(h)):r(h)}function u(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===o?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),Fe(h)?Ue(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Te(h)?(e.exit("setextHeadingLine"),n(h)):r(h)}}const sS={tokenize:oS};function oS(e){const n=this,r=e.attempt(ys,l,e.attempt(this.parser.constructs.flowInitial,o,Ue(e,e.attempt(this.parser.constructs.flow,o,e.attempt(fb,o)),"linePrefix")));return r;function l(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const aS={resolveAll:Rg()},uS=Dg("string"),cS=Dg("text");function Dg(e){return{resolveAll:Rg(e==="text"?dS:void 0),tokenize:n};function n(r){const l=this,o=this.parser.constructs[e],a=r.attempt(o,u,d);return u;function u(y){return h(y)?a(y):d(y)}function d(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),f}function f(y){return h(y)?(r.exit("data"),a(y)):(r.consume(y),f)}function h(y){if(y===null)return!0;const m=o[y];let k=-1;if(m)for(;++k<m.length;){const x=m[k];if(!x.previous||x.previous.call(l,l.previous))return!0}return!1}}}function Rg(e){return n;function n(r,l){let o=-1,a;for(;++o<=r.length;)a===void 0?r[o]&&r[o][1].type==="data"&&(a=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==a+2&&(r[a][1].end=r[o-1][1].end,r.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(r,l):r}}function dS(e,n){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const l=e[r-1][1],o=n.sliceStream(l);let a=o.length,u=-1,d=0,f;for(;a--;){const h=o[a];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(h===-2)f=!0,d++;else if(h!==-1){a++;break}}if(n._contentTypeTextTrailing&&r===e.length&&(d=0),d){const h={type:r===e.length||f||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?u:l.start._bufferIndex+u,_index:l.start._index+a,line:l.end.line,column:l.end.column-d,offset:l.end.offset-d},end:{...l.end}};l.end={...h.start},l.start.offset===l.end.offset?Object.assign(l,h):(e.splice(r,0,["enter",h,n],["exit",h,n]),r+=2)}r++}return e}const fS={42:hn,43:hn,45:hn,48:hn,49:hn,50:hn,51:hn,52:hn,53:hn,54:hn,55:hn,56:hn,57:hn,62:Sg},pS={91:yb},hS={[-2]:Qu,[-1]:Qu,32:Qu},mS={35:bb,42:Ro,45:[zh,Ro],60:Nb,61:zh,95:Ro,96:Mh,126:Mh},gS={38:Eg,92:Cg},yS={[-5]:Yu,[-4]:Yu,[-3]:Yu,33:Wb,38:Eg,42:Sc,60:[K0,Pb],91:Kb,92:[wb,Cg],93:ld,95:Sc,96:sb},vS={null:[Sc,aS]},xS={null:[42,95]},kS={null:[]},wS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:xS,contentInitial:pS,disable:kS,document:fS,flow:mS,flowInitial:hS,insideSpan:vS,string:gS,text:yS},Symbol.toStringTag,{value:"Module"}));function _S(e,n,r){let l={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},a=[];let u=[],d=[];const f={attempt:Y(H),check:Y(L),consume:M,enter:N,exit:$,interrupt:Y(L,{interrupt:!0})},h={code:null,containerState:{},defineSkip:j,events:[],now:b,parser:e,previous:null,sliceSerialize:k,sliceStream:x,write:m};let y=n.tokenize.call(h,f);return n.resolveAll&&a.push(n),h;function m(q){return u=On(u,q),D(),u[u.length-1]!==null?[]:(te(n,0),h.events=Go(a,h.events,h),h.events)}function k(q,X){return SS(x(q),X)}function x(q){return bS(u,q)}function b(){const{_bufferIndex:q,_index:X,line:G,column:K,offset:F}=l;return{_bufferIndex:q,_index:X,line:G,column:K,offset:F}}function j(q){o[q.line]=q.column,I()}function D(){let q;for(;l._index<u.length;){const X=u[l._index];if(typeof X=="string")for(q=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===q&&l._bufferIndex<X.length;)S(X.charCodeAt(l._bufferIndex));else S(X)}}function S(q){y=y(q)}function M(q){Te(q)?(l.line++,l.column=1,l.offset+=q===-3?2:1,I()):q!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===u[l._index].length&&(l._bufferIndex=-1,l._index++)),h.previous=q}function N(q,X){const G=X||{};return G.type=q,G.start=b(),h.events.push(["enter",G,h]),d.push(G),G}function $(q){const X=d.pop();return X.end=b(),h.events.push(["exit",X,h]),X}function H(q,X){te(q,X.from)}function L(q,X){X.restore()}function Y(q,X){return G;function G(K,F,pe){let ye,U,oe,_;return Array.isArray(K)?V(K):"tokenize"in K?V([K]):A(K);function A(me){return De;function De(Re){const Me=Re!==null&&me[Re],Be=Re!==null&&me.null,Dt=[...Array.isArray(Me)?Me:Me?[Me]:[],...Array.isArray(Be)?Be:Be?[Be]:[]];return V(Dt)(Re)}}function V(me){return ye=me,U=0,me.length===0?pe:E(me[U])}function E(me){return De;function De(Re){return _=Q(),oe=me,me.partial||(h.currentConstruct=me),me.name&&h.parser.constructs.disable.null.includes(me.name)?je():me.tokenize.call(X?Object.assign(Object.create(h),X):h,f,ke,je)(Re)}}function ke(me){return q(oe,_),F}function je(me){return _.restore(),++U<ye.length?E(ye[U]):pe}}}function te(q,X){q.resolveAll&&!a.includes(q)&&a.push(q),q.resolve&&Sn(h.events,X,h.events.length-X,q.resolve(h.events.slice(X),h)),q.resolveTo&&(h.events=q.resolveTo(h.events,h))}function Q(){const q=b(),X=h.previous,G=h.currentConstruct,K=h.events.length,F=Array.from(d);return{from:K,restore:pe};function pe(){l=q,h.previous=X,h.currentConstruct=G,h.events.length=K,d=F,I()}}function I(){l.line in o&&l.column<2&&(l.column=o[l.line],l.offset+=o[l.line]-1)}}function bS(e,n){const r=n.start._index,l=n.start._bufferIndex,o=n.end._index,a=n.end._bufferIndex;let u;if(r===o)u=[e[r].slice(l,a)];else{if(u=e.slice(r,o),l>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(l):u.shift()}a>0&&u.push(e[o].slice(0,a))}return u}function SS(e,n){let r=-1;const l=[];let o;for(;++r<e.length;){const a=e[r];let u;if(typeof a=="string")u=a;else switch(a){case-5:{u="\r";break}case-4:{u=`
|
|
50
|
-
`;break}case-3:{u=`\r
|
|
51
|
-
`;break}case-2:{u=n?" ":" ";break}case-1:{if(!n&&o)continue;u=" ";break}default:u=String.fromCharCode(a)}o=a===-2,l.push(u)}return l.join("")}function CS(e){const l={constructs:_g([wS,...(e||{}).extensions||[]]),content:o($0),defined:[],document:o(U0),flow:o(sS),lazy:{},string:o(uS),text:o(cS)};return l;function o(a){return u;function u(d){return _S(l,a,d)}}}function ES(e){for(;!Ng(e););return e}const Fh=/[\0\t\n\r]/g;function NS(){let e=1,n="",r=!0,l;return o;function o(a,u,d){const f=[];let h,y,m,k,x;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(u||void 0).decode(a)),m=0,n="",r&&(a.charCodeAt(0)===65279&&m++,r=void 0);m<a.length;){if(Fh.lastIndex=m,h=Fh.exec(a),k=h&&h.index!==void 0?h.index:a.length,x=a.charCodeAt(k),!h){n=a.slice(m);break}if(x===10&&m===k&&l)f.push(-3),l=void 0;else switch(l&&(f.push(-5),l=void 0),m<k&&(f.push(a.slice(m,k)),e+=k-m),x){case 0:{f.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,f.push(-2);e++<y;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:l=!0,e=1}m=k+1}return d&&(l&&f.push(-5),n&&f.push(n),f.push(null)),f}}const TS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jS(e){return e.replace(TS,IS)}function IS(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),a=o===120||o===88;return bg(r.slice(a?2:1),a?16:10)}return id(r)||e}const Ag={}.hasOwnProperty;function DS(e,n,r){return n&&typeof n=="object"&&(r=n,n=void 0),RS(r)(ES(CS(r).document().write(NS()(e,n,!0))))}function RS(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Qt),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:a(yn),blockQuote:a(Be),characterEscape:Q,characterReference:Q,codeFenced:a(Dt),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:a(Dt,u),codeText:a(rn,u),codeTextData:Q,data:Q,codeFlowValue:Q,definition:a(Fn),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:a(Lt),hardBreakEscape:a(_t),hardBreakTrailing:a(_t),htmlFlow:a($n,u),htmlFlowData:Q,htmlText:a($n,u),htmlTextData:Q,image:a(qt),label:u,link:a(Qt),listItem:a(Yt),listItemValue:k,listOrdered:a(yt,m),listUnordered:a(yt),paragraph:a(En),reference:E,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:a(yn),strong:a(tr),thematicBreak:a(hr)},exit:{atxHeading:f(),atxHeadingSequence:H,autolink:f(),autolinkEmail:Me,autolinkProtocol:Re,blockQuote:f(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:je,characterReferenceMarkerNumeric:je,characterReferenceValue:me,characterReference:De,codeFenced:f(D),codeFencedFence:j,codeFencedFenceInfo:x,codeFencedFenceMeta:b,codeFlowValue:I,codeIndented:f(S),codeText:f(F),codeTextData:I,data:I,definition:f(),definitionDestinationString:$,definitionLabelString:M,definitionTitleString:N,emphasis:f(),hardBreakEscape:f(X),hardBreakTrailing:f(X),htmlFlow:f(G),htmlFlowData:I,htmlText:f(K),htmlTextData:I,image:f(ye),label:oe,labelText:U,lineEnding:q,link:f(pe),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:ke,resourceDestinationString:_,resourceTitleString:A,resource:V,setextHeading:f(te),setextHeadingLineSequence:Y,setextHeadingText:L,strong:f(),thematicBreak:f()}};Pg(n,(e||{}).mdastExtensions||[]);const r={};return l;function l(W){let re={type:"root",children:[]};const be={stack:[re],tokenStack:[],config:n,enter:d,exit:h,buffer:u,resume:y,data:r},Z=[];let ae=-1;for(;++ae<W.length;)if(W[ae][1].type==="listOrdered"||W[ae][1].type==="listUnordered")if(W[ae][0]==="enter")Z.push(ae);else{const $e=Z.pop();ae=o(W,$e,ae)}for(ae=-1;++ae<W.length;){const $e=n[W[ae][0]];Ag.call($e,W[ae][1].type)&&$e[W[ae][1].type].call(Object.assign({sliceSerialize:W[ae][2].sliceSerialize},be),W[ae][1])}if(be.tokenStack.length>0){const $e=be.tokenStack[be.tokenStack.length-1];($e[1]||$h).call(be,void 0,$e[0])}for(re.position={start:Kr(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:Kr(W.length>0?W[W.length-2][1].end:{line:1,column:1,offset:0})},ae=-1;++ae<n.transforms.length;)re=n.transforms[ae](re)||re;return re}function o(W,re,be){let Z=re-1,ae=-1,$e=!1,ln,sn,nr,Bn;for(;++Z<=be;){const vt=W[Z];switch(vt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{vt[0]==="enter"?ae++:ae--,Bn=void 0;break}case"lineEndingBlank":{vt[0]==="enter"&&(ln&&!Bn&&!ae&&!nr&&(nr=Z),Bn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bn=void 0}if(!ae&&vt[0]==="enter"&&vt[1].type==="listItemPrefix"||ae===-1&&vt[0]==="exit"&&(vt[1].type==="listUnordered"||vt[1].type==="listOrdered")){if(ln){let Nn=Z;for(sn=void 0;Nn--;){const Mt=W[Nn];if(Mt[1].type==="lineEnding"||Mt[1].type==="lineEndingBlank"){if(Mt[0]==="exit")continue;sn&&(W[sn][1].type="lineEndingBlank",$e=!0),Mt[1].type="lineEnding",sn=Nn}else if(!(Mt[1].type==="linePrefix"||Mt[1].type==="blockQuotePrefix"||Mt[1].type==="blockQuotePrefixWhitespace"||Mt[1].type==="blockQuoteMarker"||Mt[1].type==="listItemIndent"))break}nr&&(!sn||nr<sn)&&(ln._spread=!0),ln.end=Object.assign({},sn?W[sn][1].start:vt[1].end),W.splice(sn||Z,0,["exit",ln,vt[2]]),Z++,be++}if(vt[1].type==="listItemPrefix"){const Nn={type:"listItem",_spread:!1,start:Object.assign({},vt[1].start),end:void 0};ln=Nn,W.splice(Z,0,["enter",Nn,vt[2]]),Z++,be++,nr=void 0,Bn=!0}}}return W[re][1]._spread=$e,be}function a(W,re){return be;function be(Z){d.call(this,W(Z),Z),re&&re.call(this,Z)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(W,re,be){this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([re,be||void 0]),W.position={start:Kr(re.start),end:void 0}}function f(W){return re;function re(be){W&&W.call(this,be),h.call(this,be)}}function h(W,re){const be=this.stack.pop(),Z=this.tokenStack.pop();if(Z)Z[0].type!==W.type&&(re?re.call(this,W,Z[0]):(Z[1]||$h).call(this,W,Z[0]));else throw new Error("Cannot close `"+W.type+"` ("+ns({start:W.start,end:W.end})+"): it’s not open");be.position.end=Kr(W.end)}function y(){return rd(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function k(W){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(W),10),this.data.expectingFirstListItemValue=void 0}}function x(){const W=this.resume(),re=this.stack[this.stack.length-1];re.lang=W}function b(){const W=this.resume(),re=this.stack[this.stack.length-1];re.meta=W}function j(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function D(){const W=this.resume(),re=this.stack[this.stack.length-1];re.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const W=this.resume(),re=this.stack[this.stack.length-1];re.value=W.replace(/(\r?\n|\r)$/g,"")}function M(W){const re=this.resume(),be=this.stack[this.stack.length-1];be.label=re,be.identifier=Jn(this.sliceSerialize(W)).toLowerCase()}function N(){const W=this.resume(),re=this.stack[this.stack.length-1];re.title=W}function $(){const W=this.resume(),re=this.stack[this.stack.length-1];re.url=W}function H(W){const re=this.stack[this.stack.length-1];if(!re.depth){const be=this.sliceSerialize(W).length;re.depth=be}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function Y(W){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(W).codePointAt(0)===61?1:2}function te(){this.data.setextHeadingSlurpLineEnding=void 0}function Q(W){const be=this.stack[this.stack.length-1].children;let Z=be[be.length-1];(!Z||Z.type!=="text")&&(Z=pr(),Z.position={start:Kr(W.start),end:void 0},be.push(Z)),this.stack.push(Z)}function I(W){const re=this.stack.pop();re.value+=this.sliceSerialize(W),re.position.end=Kr(W.end)}function q(W){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=re.children[re.children.length-1];be.position.end=Kr(W.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(re.type)&&(Q.call(this,W),I.call(this,W))}function X(){this.data.atHardBreak=!0}function G(){const W=this.resume(),re=this.stack[this.stack.length-1];re.value=W}function K(){const W=this.resume(),re=this.stack[this.stack.length-1];re.value=W}function F(){const W=this.resume(),re=this.stack[this.stack.length-1];re.value=W}function pe(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=re,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function ye(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=re,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function U(W){const re=this.sliceSerialize(W),be=this.stack[this.stack.length-2];be.label=jS(re),be.identifier=Jn(re).toLowerCase()}function oe(){const W=this.stack[this.stack.length-1],re=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Z=W.children;be.children=Z}else be.alt=re}function _(){const W=this.resume(),re=this.stack[this.stack.length-1];re.url=W}function A(){const W=this.resume(),re=this.stack[this.stack.length-1];re.title=W}function V(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function ke(W){const re=this.resume(),be=this.stack[this.stack.length-1];be.label=re,be.identifier=Jn(this.sliceSerialize(W)).toLowerCase(),this.data.referenceType="full"}function je(W){this.data.characterReferenceType=W.type}function me(W){const re=this.sliceSerialize(W),be=this.data.characterReferenceType;let Z;be?(Z=bg(re,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Z=id(re);const ae=this.stack[this.stack.length-1];ae.value+=Z}function De(W){const re=this.stack.pop();re.position.end=Kr(W.end)}function Re(W){I.call(this,W);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(W)}function Me(W){I.call(this,W);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(W)}function Be(){return{type:"blockquote",children:[]}}function Dt(){return{type:"code",lang:null,meta:null,value:""}}function rn(){return{type:"inlineCode",value:""}}function Fn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Lt(){return{type:"emphasis",children:[]}}function yn(){return{type:"heading",depth:0,children:[]}}function _t(){return{type:"break"}}function $n(){return{type:"html",value:""}}function qt(){return{type:"image",title:null,url:"",alt:null}}function Qt(){return{type:"link",title:null,url:"",children:[]}}function yt(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function Yt(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function En(){return{type:"paragraph",children:[]}}function tr(){return{type:"strong",children:[]}}function pr(){return{type:"text",value:""}}function hr(){return{type:"thematicBreak"}}}function Kr(e){return{line:e.line,column:e.column,offset:e.offset}}function Pg(e,n){let r=-1;for(;++r<n.length;){const l=n[r];Array.isArray(l)?Pg(e,l):AS(e,l)}}function AS(e,n){let r;for(r in n)if(Ag.call(n,r))switch(r){case"canContainEols":{const l=n[r];l&&e[r].push(...l);break}case"transforms":{const l=n[r];l&&e[r].push(...l);break}case"enter":case"exit":{const l=n[r];l&&Object.assign(e[r],l);break}}}function $h(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+ns({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+ns({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+ns({start:n.start,end:n.end})+") is still open")}function PS(e){const n=this;n.parser=r;function r(l){return DS(l,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function LS(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function MS(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
|
|
52
|
-
`}]}function OS(e,n){const r=n.value?n.value+`
|
|
53
|
-
`:"",l={},o=n.lang?n.lang.split(/\s+/):[];o.length>0&&(l.className=["language-"+o[0]]);let a={type:"element",tagName:"code",properties:l,children:[{type:"text",value:r}]};return n.meta&&(a.data={meta:n.meta}),e.patch(n,a),a=e.applyData(n,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(n,a),a}function zS(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function FS(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function $S(e,n){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(n.identifier).toUpperCase(),o=sl(l.toLowerCase()),a=e.footnoteOrder.indexOf(l);let u,d=e.footnoteCounts.get(l);d===void 0?(d=0,e.footnoteOrder.push(l),u=e.footnoteOrder.length):u=a+1,d+=1,e.footnoteCounts.set(l,d);const f={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(n,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(n,h),e.applyData(n,h)}function BS(e,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function US(e,n){if(e.options.allowDangerousHtml){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}}function Lg(e,n){const r=n.referenceType;let l="]";if(r==="collapsed"?l+="[]":r==="full"&&(l+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+l}];const o=e.all(n),a=o[0];a&&a.type==="text"?a.value="["+a.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=l:o.push({type:"text",value:l}),o}function VS(e,n){const r=String(n.identifier).toUpperCase(),l=e.definitionById.get(r);if(!l)return Lg(e,n);const o={src:sl(l.url||""),alt:n.alt};l.title!==null&&l.title!==void 0&&(o.title=l.title);const a={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,a),e.applyData(n,a)}function HS(e,n){const r={src:sl(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const l={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,l),e.applyData(n,l)}function WS(e,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);const l={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,l),e.applyData(n,l)}function ZS(e,n){const r=String(n.identifier).toUpperCase(),l=e.definitionById.get(r);if(!l)return Lg(e,n);const o={href:sl(l.url||"")};l.title!==null&&l.title!==void 0&&(o.title=l.title);const a={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function KS(e,n){const r={href:sl(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const l={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function qS(e,n,r){const l=e.all(n),o=r?QS(r):Mg(n),a={},u=[];if(typeof n.checked=="boolean"){const y=l[0];let m;y&&y.type==="element"&&y.tagName==="p"?m=y:(m={type:"element",tagName:"p",properties:{},children:[]},l.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let d=-1;for(;++d<l.length;){const y=l[d];(o||d!==0||y.type!=="element"||y.tagName!=="p")&&u.push({type:"text",value:`
|
|
54
|
-
`}),y.type==="element"&&y.tagName==="p"&&!o?u.push(...y.children):u.push(y)}const f=l[l.length-1];f&&(o||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
|
|
55
|
-
`});const h={type:"element",tagName:"li",properties:a,children:u};return e.patch(n,h),e.applyData(n,h)}function QS(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const r=e.children;let l=-1;for(;!n&&++l<r.length;)n=Mg(r[l])}return n}function Mg(e){const n=e.spread;return n??e.children.length>1}function YS(e,n){const r={},l=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++o<l.length;){const u=l[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:e.wrap(l,!0)};return e.patch(n,a),e.applyData(n,a)}function XS(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function GS(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function JS(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function eC(e,n){const r=e.all(n),l=r.shift(),o=[];if(l){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([l],!0)};e.patch(n.children[0],u),o.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=Jc(n.children[1]),f=mg(n.children[n.children.length-1]);d&&f&&(u.position={start:d,end:f}),o.push(u)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,a),e.applyData(n,a)}function tC(e,n,r){const l=r?r.children:void 0,a=(l?l.indexOf(n):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,d=u?u.length:n.children.length;let f=-1;const h=[];for(;++f<d;){const m=n.children[f],k={},x=u?u[f]:void 0;x&&(k.align=x);let b={type:"element",tagName:a,properties:k,children:[]};m&&(b.children=e.all(m),e.patch(m,b),b=e.applyData(m,b)),h.push(b)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(n,y),e.applyData(n,y)}function nC(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const Bh=9,Uh=32;function rC(e){const n=String(e),r=/\r?\n|\r/g;let l=r.exec(n),o=0;const a=[];for(;l;)a.push(Vh(n.slice(o,l.index),o>0,!0),l[0]),o=l.index+l[0].length,l=r.exec(n);return a.push(Vh(n.slice(o),o>0,!1)),a.join("")}function Vh(e,n,r){let l=0,o=e.length;if(n){let a=e.codePointAt(l);for(;a===Bh||a===Uh;)l++,a=e.codePointAt(l)}if(r){let a=e.codePointAt(o-1);for(;a===Bh||a===Uh;)o--,a=e.codePointAt(o-1)}return o>l?e.slice(l,o):""}function iC(e,n){const r={type:"text",value:rC(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function lC(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const sC={blockquote:LS,break:MS,code:OS,delete:zS,emphasis:FS,footnoteReference:$S,heading:BS,html:US,imageReference:VS,image:HS,inlineCode:WS,linkReference:ZS,link:KS,listItem:qS,list:YS,paragraph:XS,root:GS,strong:JS,table:eC,tableCell:nC,tableRow:tC,text:iC,thematicBreak:lC,toml:No,yaml:No,definition:No,footnoteDefinition:No};function No(){}const Og=-1,Jo=0,is=1,Fo=2,sd=3,od=4,ad=5,ud=6,zg=7,Fg=8,oC=typeof self=="object"?self:globalThis,Hh=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new oC[e](n)},aC=(e,n)=>{const r=(o,a)=>(e.set(a,o),o),l=o=>{if(e.has(o))return e.get(o);const[a,u]=n[o];switch(a){case Jo:case Og:return r(u,o);case is:{const d=r([],o);for(const f of u)d.push(l(f));return d}case Fo:{const d=r({},o);for(const[f,h]of u)d[l(f)]=l(h);return d}case sd:return r(new Date(u),o);case od:{const{source:d,flags:f}=u;return r(new RegExp(d,f),o)}case ad:{const d=r(new Map,o);for(const[f,h]of u)d.set(l(f),l(h));return d}case ud:{const d=r(new Set,o);for(const f of u)d.add(l(f));return d}case zg:{const{name:d,message:f}=u;return r(Hh(d,f),o)}case Fg:return r(BigInt(u),o);case"BigInt":return r(Object(BigInt(u)),o);case"ArrayBuffer":return r(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:d}=new Uint8Array(u);return r(new DataView(d),u)}}return r(Hh(a,u),o)};return l},Wh=e=>aC(new Map,e)(0),Ki="",{toString:uC}={},{keys:cC}=Object,Yl=e=>{const n=typeof e;if(n!=="object"||!e)return[Jo,n];const r=uC.call(e).slice(8,-1);switch(r){case"Array":return[is,Ki];case"Object":return[Fo,Ki];case"Date":return[sd,Ki];case"RegExp":return[od,Ki];case"Map":return[ad,Ki];case"Set":return[ud,Ki];case"DataView":return[is,r]}return r.includes("Array")?[is,r]:r.includes("Error")?[zg,r]:[Fo,r]},To=([e,n])=>e===Jo&&(n==="function"||n==="symbol"),dC=(e,n,r,l)=>{const o=(u,d)=>{const f=l.push(u)-1;return r.set(d,f),f},a=u=>{if(r.has(u))return r.get(u);let[d,f]=Yl(u);switch(d){case Jo:{let y=u;switch(f){case"bigint":d=Fg,y=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);y=null;break;case"undefined":return o([Og],u)}return o([d,y],u)}case is:{if(f){let k=u;return f==="DataView"?k=new Uint8Array(u.buffer):f==="ArrayBuffer"&&(k=new Uint8Array(u)),o([f,[...k]],u)}const y=[],m=o([d,y],u);for(const k of u)y.push(a(k));return m}case Fo:{if(f)switch(f){case"BigInt":return o([f,u.toString()],u);case"Boolean":case"Number":case"String":return o([f,u.valueOf()],u)}if(n&&"toJSON"in u)return a(u.toJSON());const y=[],m=o([d,y],u);for(const k of cC(u))(e||!To(Yl(u[k])))&&y.push([a(k),a(u[k])]);return m}case sd:return o([d,u.toISOString()],u);case od:{const{source:y,flags:m}=u;return o([d,{source:y,flags:m}],u)}case ad:{const y=[],m=o([d,y],u);for(const[k,x]of u)(e||!(To(Yl(k))||To(Yl(x))))&&y.push([a(k),a(x)]);return m}case ud:{const y=[],m=o([d,y],u);for(const k of u)(e||!To(Yl(k)))&&y.push(a(k));return m}}const{message:h}=u;return o([d,{name:f,message:h}],u)};return a},Zh=(e,{json:n,lossy:r}={})=>{const l=[];return dC(!(n||r),!!n,new Map,l)(e),l},$o=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Wh(Zh(e,n)):structuredClone(e):(e,n)=>Wh(Zh(e,n));function fC(e,n){const r=[{type:"text",value:"↩"}];return n>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),r}function pC(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function hC(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||fC,l=e.options.footnoteBackLabel||pC,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const y=e.all(h),m=String(h.identifier).toUpperCase(),k=sl(m.toLowerCase());let x=0;const b=[],j=e.footnoteCounts.get(m);for(;j!==void 0&&++x<=j;){b.length>0&&b.push({type:"text",value:" "});let M=typeof r=="string"?r:r(f,x);typeof M=="string"&&(M={type:"text",value:M}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+k+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(f,x),className:["data-footnote-backref"]},children:Array.isArray(M)?M:[M]})}const D=y[y.length-1];if(D&&D.type==="element"&&D.tagName==="p"){const M=D.children[D.children.length-1];M&&M.type==="text"?M.value+=" ":D.children.push({type:"text",value:" "}),D.children.push(...b)}else y.push(...b);const S={type:"element",tagName:"li",properties:{id:n+"fn-"+k},children:e.wrap(y,!0)};e.patch(h,S),d.push(S)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...$o(u),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
56
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
57
|
-
`}]}}const ea=(function(e){if(e==null)return vC;if(typeof e=="function")return ta(e);if(typeof e=="object")return Array.isArray(e)?mC(e):gC(e);if(typeof e=="string")return yC(e);throw new Error("Expected function, string, or object as test")});function mC(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=ea(e[r]);return ta(l);function l(...o){let a=-1;for(;++a<n.length;)if(n[a].apply(this,o))return!0;return!1}}function gC(e){const n=e;return ta(r);function r(l){const o=l;let a;for(a in e)if(o[a]!==n[a])return!1;return!0}}function yC(e){return ta(n);function n(r){return r&&r.type===e}}function ta(e){return n;function n(r,l,o){return!!(xC(r)&&e.call(this,r,typeof l=="number"?l:void 0,o||void 0))}}function vC(){return!0}function xC(e){return e!==null&&typeof e=="object"&&"type"in e}const $g=[],kC=!0,Cc=!1,wC="skip";function Bg(e,n,r,l){let o;typeof n=="function"&&typeof r!="function"?(l=r,r=n):o=n;const a=ea(o),u=l?-1:1;d(e,void 0,[])();function d(f,h,y){const m=f&&typeof f=="object"?f:{};if(typeof m.type=="string"){const x=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(f.type+(x?"<"+x+">":""))+")"})}return k;function k(){let x=$g,b,j,D;if((!n||a(f,h,y[y.length-1]||void 0))&&(x=_C(r(f,y)),x[0]===Cc))return x;if("children"in f&&f.children){const S=f;if(S.children&&x[0]!==wC)for(j=(l?S.children.length:-1)+u,D=y.concat(S);j>-1&&j<S.children.length;){const M=S.children[j];if(b=d(M,j,D)(),b[0]===Cc)return b;j=typeof b[1]=="number"?b[1]:j+u}}return x}}}function _C(e){return Array.isArray(e)?e:typeof e=="number"?[kC,e]:e==null?$g:[e]}function cd(e,n,r,l){let o,a,u;typeof n=="function"&&typeof r!="function"?(a=void 0,u=n,o=r):(a=n,u=r,o=l),Bg(e,a,d,o);function d(f,h){const y=h[h.length-1],m=y?y.children.indexOf(f):void 0;return u(f,m,y)}}const Ec={}.hasOwnProperty,bC={};function SC(e,n){const r=n||bC,l=new Map,o=new Map,a=new Map,u={...sC,...r.handlers},d={all:h,applyData:EC,definitionById:l,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:u,one:f,options:r,patch:CC,wrap:TC};return cd(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const m=y.type==="definition"?l:o,k=String(y.identifier).toUpperCase();m.has(k)||m.set(k,y)}}),d;function f(y,m){const k=y.type,x=d.handlers[k];if(Ec.call(d.handlers,k)&&x)return x(d,y,m);if(d.options.passThrough&&d.options.passThrough.includes(k)){if("children"in y){const{children:j,...D}=y,S=$o(D);return S.children=d.all(y),S}return $o(y)}return(d.options.unknownHandler||NC)(d,y,m)}function h(y){const m=[];if("children"in y){const k=y.children;let x=-1;for(;++x<k.length;){const b=d.one(k[x],y);if(b){if(x&&k[x-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=Kh(b.value)),!Array.isArray(b)&&b.type==="element")){const j=b.children[0];j&&j.type==="text"&&(j.value=Kh(j.value))}Array.isArray(b)?m.push(...b):m.push(b)}}}return m}}function CC(e,n){e.position&&(n.position=f0(e))}function EC(e,n){let r=n;if(e&&e.data){const l=e.data.hName,o=e.data.hChildren,a=e.data.hProperties;if(typeof l=="string")if(r.type==="element")r.tagName=l;else{const u="children"in r?r.children:[r];r={type:"element",tagName:l,properties:{},children:u}}r.type==="element"&&a&&Object.assign(r.properties,$o(a)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function NC(e,n){const r=n.data||{},l="value"in n&&!(Ec.call(r,"hProperties")||Ec.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function TC(e,n){const r=[];let l=-1;for(n&&r.push({type:"text",value:`
|
|
58
|
-
`});++l<e.length;)l&&r.push({type:"text",value:`
|
|
59
|
-
`}),r.push(e[l]);return n&&e.length>0&&r.push({type:"text",value:`
|
|
60
|
-
`}),r}function Kh(e){let n=0,r=e.charCodeAt(n);for(;r===9||r===32;)n++,r=e.charCodeAt(n);return e.slice(n)}function qh(e,n){const r=SC(e,n),l=r.one(e,void 0),o=hC(r),a=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return o&&a.children.push({type:"text",value:`
|
|
61
|
-
`},o),a}function jC(e,n){return e&&"run"in e?async function(r,l){const o=qh(r,{file:l,...n});await e.run(o,l)}:function(r,l){return qh(r,{file:l,...e||n})}}function Qh(e){if(e)throw e}var Xu,Yh;function IC(){if(Yh)return Xu;Yh=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,o=function(h){return typeof Array.isArray=="function"?Array.isArray(h):n.call(h)==="[object Array]"},a=function(h){if(!h||n.call(h)!=="[object Object]")return!1;var y=e.call(h,"constructor"),m=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!y&&!m)return!1;var k;for(k in h);return typeof k>"u"||e.call(h,k)},u=function(h,y){r&&y.name==="__proto__"?r(h,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):h[y.name]=y.newValue},d=function(h,y){if(y==="__proto__")if(e.call(h,y)){if(l)return l(h,y).value}else return;return h[y]};return Xu=function f(){var h,y,m,k,x,b,j=arguments[0],D=1,S=arguments.length,M=!1;for(typeof j=="boolean"&&(M=j,j=arguments[1]||{},D=2),(j==null||typeof j!="object"&&typeof j!="function")&&(j={});D<S;++D)if(h=arguments[D],h!=null)for(y in h)m=d(j,y),k=d(h,y),j!==k&&(M&&k&&(a(k)||(x=o(k)))?(x?(x=!1,b=m&&o(m)?m:[]):b=m&&a(m)?m:{},u(j,{name:y,newValue:f(M,b,k)})):typeof k<"u"&&u(j,{name:y,newValue:k}));return j},Xu}var DC=IC();const Gu=$c(DC);function Nc(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function RC(){const e=[],n={run:r,use:l};return n;function r(...o){let a=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...o);function d(f,...h){const y=e[++a];let m=-1;if(f){u(f);return}for(;++m<o.length;)(h[m]===null||h[m]===void 0)&&(h[m]=o[m]);o=h,y?AC(y,d)(...h):u(null,...h)}}function l(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),n}}function AC(e,n){let r;return l;function l(...u){const d=e.length>u.length;let f;d&&u.push(o);try{f=e.apply(this,u)}catch(h){const y=h;if(d&&r)throw y;return o(y)}d||(f&&f.then&&typeof f.then=="function"?f.then(a,o):f instanceof Error?o(f):a(f))}function o(u,...d){r||(r=!0,n(u,...d))}function a(u){o(null,u)}}const cr={basename:PC,dirname:LC,extname:MC,join:OC,sep:"/"};function PC(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');vs(e);let r=0,l=-1,o=e.length,a;if(n===void 0||n.length===0||n.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(a){r=o+1;break}}else l<0&&(a=!0,l=o+1);return l<0?"":e.slice(r,l)}if(n===e)return"";let u=-1,d=n.length-1;for(;o--;)if(e.codePointAt(o)===47){if(a){r=o+1;break}}else u<0&&(a=!0,u=o+1),d>-1&&(e.codePointAt(o)===n.codePointAt(d--)?d<0&&(l=o):(d=-1,l=u));return r===l?l=u:l<0&&(l=e.length),e.slice(r,l)}function LC(e){if(vs(e),e.length===0)return".";let n=-1,r=e.length,l;for(;--r;)if(e.codePointAt(r)===47){if(l){n=r;break}}else l||(l=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function MC(e){vs(e);let n=e.length,r=-1,l=0,o=-1,a=0,u;for(;n--;){const d=e.codePointAt(n);if(d===47){if(u){l=n+1;break}continue}r<0&&(u=!0,r=n+1),d===46?o<0?o=n:a!==1&&(a=1):o>-1&&(a=-1)}return o<0||r<0||a===0||a===1&&o===r-1&&o===l+1?"":e.slice(o,r)}function OC(...e){let n=-1,r;for(;++n<e.length;)vs(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":zC(r)}function zC(e){vs(e);const n=e.codePointAt(0)===47;let r=FC(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function FC(e,n){let r="",l=0,o=-1,a=0,u=-1,d,f;for(;++u<=e.length;){if(u<e.length)d=e.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(o===u-1||a===1))if(o!==u-1&&a===2){if(r.length<2||l!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",l=0):(r=r.slice(0,f),l=r.length-1-r.lastIndexOf("/")),o=u,a=0;continue}}else if(r.length>0){r="",l=0,o=u,a=0;continue}}n&&(r=r.length>0?r+"/..":"..",l=2)}else r.length>0?r+="/"+e.slice(o+1,u):r=e.slice(o+1,u),l=u-o-1;o=u,a=0}else d===46&&a>-1?a++:a=-1}return r}function vs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const $C={cwd:BC};function BC(){return"/"}function Tc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function UC(e){if(typeof e=="string")e=new URL(e);else if(!Tc(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return VC(e)}function VC(e){if(e.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const l=n.codePointAt(r+2);if(l===70||l===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(n)}const Ju=["history","path","basename","stem","extname","dirname"];class Ug{constructor(n){let r;n?Tc(n)?r={path:n}:typeof n=="string"||HC(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":$C.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<Ju.length;){const a=Ju[l];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let o;for(o in r)Ju.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?cr.basename(this.path):void 0}set basename(n){tc(n,"basename"),ec(n,"basename"),this.path=cr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?cr.dirname(this.path):void 0}set dirname(n){Xh(this.basename,"dirname"),this.path=cr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?cr.extname(this.path):void 0}set extname(n){if(ec(n,"extname"),Xh(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=cr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Tc(n)&&(n=UC(n)),tc(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?cr.basename(this.path,this.extname):void 0}set stem(n){tc(n,"stem"),ec(n,"stem"),this.path=cr.join(this.dirname||"",n+(this.extname||""))}fail(n,r,l){const o=this.message(n,r,l);throw o.fatal=!0,o}info(n,r,l){const o=this.message(n,r,l);return o.fatal=void 0,o}message(n,r,l){const o=new Kt(n,r,l);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function ec(e,n){if(e&&e.includes(cr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+cr.sep+"`")}function tc(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Xh(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function HC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const WC=(function(e){const l=this.constructor.prototype,o=l[e],a=function(){return o.apply(a,arguments)};return Object.setPrototypeOf(a,l),a}),ZC={}.hasOwnProperty;class dd extends WC{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=RC()}copy(){const n=new dd;let r=-1;for(;++r<this.attachers.length;){const l=this.attachers[r];n.use(...l)}return n.data(Gu(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(ic("data",this.frozen),this.namespace[n]=r,this):ZC.call(this.namespace,n)&&this.namespace[n]||void 0:n?(ic("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const o=r.call(n,...l);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=jo(n),l=this.parser||this.Parser;return nc("parse",l),l(String(r),r)}process(n,r){const l=this;return this.freeze(),nc("process",this.parser||this.Parser),rc("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(a,u){const d=jo(n),f=l.parse(d);l.run(f,d,function(y,m,k){if(y||!m||!k)return h(y);const x=m,b=l.stringify(x,k);QC(b)?k.value=b:k.result=b,h(y,k)});function h(y,m){y||!m?u(y):a?a(m):r(void 0,m)}}}processSync(n){let r=!1,l;return this.freeze(),nc("processSync",this.parser||this.Parser),rc("processSync",this.compiler||this.Compiler),this.process(n,o),Jh("processSync","process",r),l;function o(a,u){r=!0,Qh(a),l=u}}run(n,r,l){Gh(n),this.freeze();const o=this.transformers;return!l&&typeof r=="function"&&(l=r,r=void 0),l?a(void 0,l):new Promise(a);function a(u,d){const f=jo(r);o.run(n,f,h);function h(y,m,k){const x=m||n;y?d(y):u?u(x):l(void 0,x,k)}}}runSync(n,r){let l=!1,o;return this.run(n,r,a),Jh("runSync","run",l),o;function a(u,d){Qh(u),o=d,l=!0}}stringify(n,r){this.freeze();const l=jo(r),o=this.compiler||this.Compiler;return rc("stringify",o),Gh(n),o(n,l)}use(n,...r){const l=this.attachers,o=this.namespace;if(ic("use",this.frozen),n!=null)if(typeof n=="function")f(n,r);else if(typeof n=="object")Array.isArray(n)?d(n):u(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function a(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[y,...m]=h;f(y,m)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(o.settings=Gu(!0,o.settings,h.settings))}function d(h){let y=-1;if(h!=null)if(Array.isArray(h))for(;++y<h.length;){const m=h[y];a(m)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,y){let m=-1,k=-1;for(;++m<l.length;)if(l[m][0]===h){k=m;break}if(k===-1)l.push([h,...y]);else if(y.length>0){let[x,...b]=y;const j=l[k][1];Nc(j)&&Nc(x)&&(x=Gu(!0,j,x)),l[k]=[h,x,...b]}}}}const KC=new dd().freeze();function nc(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function rc(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ic(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Gh(e){if(!Nc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Jh(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function jo(e){return qC(e)?e:new Ug(e)}function qC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function QC(e){return typeof e=="string"||YC(e)}function YC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const XC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",em=[],tm={allowDangerousHtml:!0},GC=/^(https?|ircs?|mailto|xmpp)$/i,JC=[{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:"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 jc(e){const n=eE(e),r=tE(e);return nE(n.runSync(n.parse(r),r),e)}function eE(e){const n=e.rehypePlugins||em,r=e.remarkPlugins||em,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...tm}:tm;return KC().use(PS).use(r).use(jC,l).use(n)}function tE(e){const n=e.children||"",r=new Ug;return typeof n=="string"&&(r.value=n),r}function nE(e,n){const r=n.allowedElements,l=n.allowElement,o=n.components,a=n.disallowedElements,u=n.skipHtml,d=n.unwrapDisallowed,f=n.urlTransform||rE;for(const y of JC)Object.hasOwn(n,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+XC+y.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),cd(e,h),y0(e,{Fragment:v.Fragment,components:o,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function h(y,m,k){if(y.type==="raw"&&k&&typeof m=="number")return u?k.children.splice(m,1):k.children[m]={type:"text",value:y.value},m;if(y.type==="element"){let x;for(x in qu)if(Object.hasOwn(qu,x)&&Object.hasOwn(y.properties,x)){const b=y.properties[x],j=qu[x];(j===null||j.includes(y.tagName))&&(y.properties[x]=f(String(b||""),x,y))}}if(y.type==="element"){let x=r?!r.includes(y.tagName):a?a.includes(y.tagName):!1;if(!x&&l&&typeof m=="number"&&(x=!l(y,m,k)),x&&k&&typeof m=="number")return d&&y.children?k.children.splice(m,1,...y.children):k.children.splice(m,1),m}}}function rE(e){const n=e.indexOf(":"),r=e.indexOf("?"),l=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||r!==-1&&n>r||l!==-1&&n>l||GC.test(e.slice(0,n))?e:""}function nm(e,n){const r=String(e);if(typeof n!="string")throw new TypeError("Expected character");let l=0,o=r.indexOf(n);for(;o!==-1;)l++,o=r.indexOf(n,o+n.length);return l}function iE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function lE(e,n,r){const o=ea((r||{}).ignore||[]),a=sE(n);let u=-1;for(;++u<a.length;)Bg(e,"text",d);function d(h,y){let m=-1,k;for(;++m<y.length;){const x=y[m],b=k?k.children:void 0;if(o(x,b?b.indexOf(x):void 0,k))return;k=x}if(k)return f(h,y)}function f(h,y){const m=y[y.length-1],k=a[u][0],x=a[u][1];let b=0;const D=m.children.indexOf(h);let S=!1,M=[];k.lastIndex=0;let N=k.exec(h.value);for(;N;){const $=N.index,H={index:N.index,input:N.input,stack:[...y,h]};let L=x(...N,H);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?k.lastIndex=$+1:(b!==$&&M.push({type:"text",value:h.value.slice(b,$)}),Array.isArray(L)?M.push(...L):L&&M.push(L),b=$+N[0].length,S=!0),!k.global)break;N=k.exec(h.value)}return S?(b<h.value.length&&M.push({type:"text",value:h.value.slice(b)}),m.children.splice(D,1,...M)):M=[h],D+M.length}}function sE(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let l=-1;for(;++l<r.length;){const o=r[l];n.push([oE(o[0]),aE(o[1])])}return n}function oE(e){return typeof e=="string"?new RegExp(iE(e),"g"):e}function aE(e){return typeof e=="function"?e:function(){return e}}const lc="phrasing",sc=["autolink","link","image","label"];function uE(){return{transforms:[gE],enter:{literalAutolink:dE,literalAutolinkEmail:oc,literalAutolinkHttp:oc,literalAutolinkWww:oc},exit:{literalAutolink:mE,literalAutolinkEmail:hE,literalAutolinkHttp:fE,literalAutolinkWww:pE}}}function cE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:lc,notInConstruct:sc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:lc,notInConstruct:sc},{character:":",before:"[ps]",after:"\\/",inConstruct:lc,notInConstruct:sc}]}}function dE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function oc(e){this.config.enter.autolinkProtocol.call(this,e)}function fE(e){this.config.exit.autolinkProtocol.call(this,e)}function pE(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function hE(e){this.config.exit.autolinkEmail.call(this,e)}function mE(e){this.exit(e)}function gE(e){lE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,yE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),vE]],{ignore:["link","linkReference"]})}function yE(e,n,r,l,o){let a="";if(!Vg(o)||(/^w/i.test(n)&&(r=n+r,n="",a="http://"),!xE(r)))return!1;const u=kE(r+l);if(!u[0])return!1;const d={type:"link",title:null,url:a+n+u[0],children:[{type:"text",value:n+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function vE(e,n,r,l){return!Vg(l,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+r,children:[{type:"text",value:n+"@"+r}]}}function xE(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function kE(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let r=n[0],l=r.indexOf(")");const o=nm(e,"(");let a=nm(e,")");for(;l!==-1&&o>a;)e+=r.slice(0,l+1),r=r.slice(l+1),l=r.indexOf(")"),a++;return[e,r]}function Vg(e,n){const r=e.input.charCodeAt(e.index-1);return(e.index===0||wi(r)||Xo(r))&&(!n||r!==47)}Hg.peek=jE;function wE(){this.buffer()}function _E(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function bE(){this.buffer()}function SE(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function CE(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Jn(this.sliceSerialize(e)).toLowerCase(),r.label=n}function EE(e){this.exit(e)}function NE(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Jn(this.sliceSerialize(e)).toLowerCase(),r.label=n}function TE(e){this.exit(e)}function jE(){return"["}function Hg(e,n,r,l){const o=r.createTracker(l);let a=o.move("[^");const u=r.enter("footnoteReference"),d=r.enter("reference");return a+=o.move(r.safe(r.associationId(e),{after:"]",before:a})),d(),u(),a+=o.move("]"),a}function IE(){return{enter:{gfmFootnoteCallString:wE,gfmFootnoteCall:_E,gfmFootnoteDefinitionLabelString:bE,gfmFootnoteDefinition:SE},exit:{gfmFootnoteCallString:CE,gfmFootnoteCall:EE,gfmFootnoteDefinitionLabelString:NE,gfmFootnoteDefinition:TE}}}function DE(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:r,footnoteReference:Hg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(l,o,a,u){const d=a.createTracker(u);let f=d.move("[^");const h=a.enter("footnoteDefinition"),y=a.enter("label");return f+=d.move(a.safe(a.associationId(l),{before:f,after:"]"})),y(),f+=d.move("]:"),l.children&&l.children.length>0&&(d.shift(4),f+=d.move((n?`
|
|
62
|
-
`:" ")+a.indentLines(a.containerFlow(l,d.current()),n?Wg:RE))),h(),f}}function RE(e,n,r){return n===0?e:Wg(e,n,r)}function Wg(e,n,r){return(r?"":" ")+e}const AE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Zg.peek=zE;function PE(){return{canContainEols:["delete"],enter:{strikethrough:ME},exit:{strikethrough:OE}}}function LE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:AE}],handlers:{delete:Zg}}}function ME(e){this.enter({type:"delete",children:[]},e)}function OE(e){this.exit(e)}function Zg(e,n,r,l){const o=r.createTracker(l),a=r.enter("strikethrough");let u=o.move("~~");return u+=r.containerPhrasing(e,{...o.current(),before:u,after:"~"}),u+=o.move("~~"),a(),u}function zE(){return"~"}function FE(e){return e.length}function $E(e,n){const r=n||{},l=(r.align||[]).concat(),o=r.stringLength||FE,a=[],u=[],d=[],f=[];let h=0,y=-1;for(;++y<e.length;){const j=[],D=[];let S=-1;for(e[y].length>h&&(h=e[y].length);++S<e[y].length;){const M=BE(e[y][S]);if(r.alignDelimiters!==!1){const N=o(M);D[S]=N,(f[S]===void 0||N>f[S])&&(f[S]=N)}j.push(M)}u[y]=j,d[y]=D}let m=-1;if(typeof l=="object"&&"length"in l)for(;++m<h;)a[m]=rm(l[m]);else{const j=rm(l);for(;++m<h;)a[m]=j}m=-1;const k=[],x=[];for(;++m<h;){const j=a[m];let D="",S="";j===99?(D=":",S=":"):j===108?D=":":j===114&&(S=":");let M=r.alignDelimiters===!1?1:Math.max(1,f[m]-D.length-S.length);const N=D+"-".repeat(M)+S;r.alignDelimiters!==!1&&(M=D.length+M+S.length,M>f[m]&&(f[m]=M),x[m]=M),k[m]=N}u.splice(1,0,k),d.splice(1,0,x),y=-1;const b=[];for(;++y<u.length;){const j=u[y],D=d[y];m=-1;const S=[];for(;++m<h;){const M=j[m]||"";let N="",$="";if(r.alignDelimiters!==!1){const H=f[m]-(D[m]||0),L=a[m];L===114?N=" ".repeat(H):L===99?H%2?(N=" ".repeat(H/2+.5),$=" ".repeat(H/2-.5)):(N=" ".repeat(H/2),$=N):$=" ".repeat(H)}r.delimiterStart!==!1&&!m&&S.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&M==="")&&(r.delimiterStart!==!1||m)&&S.push(" "),r.alignDelimiters!==!1&&S.push(N),S.push(M),r.alignDelimiters!==!1&&S.push($),r.padding!==!1&&S.push(" "),(r.delimiterEnd!==!1||m!==h-1)&&S.push("|")}b.push(r.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return b.join(`
|
|
63
|
-
`)}function BE(e){return e==null?"":String(e)}function rm(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function UE(e,n,r,l){const o=r.enter("blockquote"),a=r.createTracker(l);a.move("> "),a.shift(2);const u=r.indentLines(r.containerFlow(e,a.current()),VE);return o(),u}function VE(e,n,r){return">"+(r?"":" ")+e}function HE(e,n){return im(e,n.inConstruct,!0)&&!im(e,n.notInConstruct,!1)}function im(e,n,r){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return r;let l=-1;for(;++l<n.length;)if(e.includes(n[l]))return!0;return!1}function lm(e,n,r,l){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
|
|
64
|
-
`&&HE(r.stack,r.unsafe[o]))return/[ \t]/.test(l.before)?"":" ";return`\\
|
|
65
|
-
`}function WE(e,n){const r=String(e);let l=r.indexOf(n),o=l,a=0,u=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;l!==-1;)l===o?++a>u&&(u=a):a=1,o=l+n.length,l=r.indexOf(n,o);return u}function ZE(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function KE(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function qE(e,n,r,l){const o=KE(r),a=e.value||"",u=o==="`"?"GraveAccent":"Tilde";if(ZE(e,r)){const m=r.enter("codeIndented"),k=r.indentLines(a,QE);return m(),k}const d=r.createTracker(l),f=o.repeat(Math.max(WE(a,o)+1,3)),h=r.enter("codeFenced");let y=d.move(f);if(e.lang){const m=r.enter(`codeFencedLang${u}`);y+=d.move(r.safe(e.lang,{before:y,after:" ",encode:["`"],...d.current()})),m()}if(e.lang&&e.meta){const m=r.enter(`codeFencedMeta${u}`);y+=d.move(" "),y+=d.move(r.safe(e.meta,{before:y,after:`
|
|
66
|
-
`,encode:["`"],...d.current()})),m()}return y+=d.move(`
|
|
67
|
-
`),a&&(y+=d.move(a+`
|
|
68
|
-
`)),y+=d.move(f),h(),y}function QE(e,n,r){return(r?"":" ")+e}function fd(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function YE(e,n,r,l){const o=fd(r),a=o==='"'?"Quote":"Apostrophe",u=r.enter("definition");let d=r.enter("label");const f=r.createTracker(l);let h=f.move("[");return h+=f.move(r.safe(r.associationId(e),{before:h,after:"]",...f.current()})),h+=f.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(r.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=r.enter("destinationRaw"),h+=f.move(r.safe(e.url,{before:h,after:e.title?" ":`
|
|
69
|
-
`,...f.current()}))),d(),e.title&&(d=r.enter(`title${a}`),h+=f.move(" "+o),h+=f.move(r.safe(e.title,{before:h,after:o,...f.current()})),h+=f.move(o),d()),u(),h}function XE(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function us(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Bo(e,n,r){const l=Xi(e),o=Xi(n);return l===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:l===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Kg.peek=GE;function Kg(e,n,r,l){const o=XE(r),a=r.enter("emphasis"),u=r.createTracker(l),d=u.move(o);let f=u.move(r.containerPhrasing(e,{after:o,before:d,...u.current()}));const h=f.charCodeAt(0),y=Bo(l.before.charCodeAt(l.before.length-1),h,o);y.inside&&(f=us(h)+f.slice(1));const m=f.charCodeAt(f.length-1),k=Bo(l.after.charCodeAt(0),m,o);k.inside&&(f=f.slice(0,-1)+us(m));const x=u.move(o);return a(),r.attentionEncodeSurroundingInfo={after:k.outside,before:y.outside},d+f+x}function GE(e,n,r){return r.options.emphasis||"*"}function JE(e,n){let r=!1;return cd(e,function(l){if("value"in l&&/\r?\n|\r/.test(l.value)||l.type==="break")return r=!0,Cc}),!!((!e.depth||e.depth<3)&&rd(e)&&(n.options.setext||r))}function eN(e,n,r,l){const o=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(l);if(JE(e,r)){const y=r.enter("headingSetext"),m=r.enter("phrasing"),k=r.containerPhrasing(e,{...a.current(),before:`
|
|
70
|
-
`,after:`
|
|
71
|
-
`});return m(),y(),k+`
|
|
72
|
-
`+(o===1?"=":"-").repeat(k.length-(Math.max(k.lastIndexOf("\r"),k.lastIndexOf(`
|
|
73
|
-
`))+1))}const u="#".repeat(o),d=r.enter("headingAtx"),f=r.enter("phrasing");a.move(u+" ");let h=r.containerPhrasing(e,{before:"# ",after:`
|
|
74
|
-
`,...a.current()});return/^[\t ]/.test(h)&&(h=us(h.charCodeAt(0))+h.slice(1)),h=h?u+" "+h:u,r.options.closeAtx&&(h+=" "+u),f(),d(),h}qg.peek=tN;function qg(e){return e.value||""}function tN(){return"<"}Qg.peek=nN;function Qg(e,n,r,l){const o=fd(r),a=o==='"'?"Quote":"Apostrophe",u=r.enter("image");let d=r.enter("label");const f=r.createTracker(l);let h=f.move("![");return h+=f.move(r.safe(e.alt,{before:h,after:"]",...f.current()})),h+=f.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(r.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=r.enter("destinationRaw"),h+=f.move(r.safe(e.url,{before:h,after:e.title?" ":")",...f.current()}))),d(),e.title&&(d=r.enter(`title${a}`),h+=f.move(" "+o),h+=f.move(r.safe(e.title,{before:h,after:o,...f.current()})),h+=f.move(o),d()),h+=f.move(")"),u(),h}function nN(){return"!"}Yg.peek=rN;function Yg(e,n,r,l){const o=e.referenceType,a=r.enter("imageReference");let u=r.enter("label");const d=r.createTracker(l);let f=d.move("![");const h=r.safe(e.alt,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),u();const y=r.stack;r.stack=[],u=r.enter("reference");const m=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=y,a(),o==="full"||!h||h!==m?f+=d.move(m+"]"):o==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function rN(){return"!"}Xg.peek=iN;function Xg(e,n,r){let l=e.value||"",o="`",a=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(l);)o+="`";for(/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^`|`$/.test(l))&&(l=" "+l+" ");++a<r.unsafe.length;){const u=r.unsafe[a],d=r.compilePattern(u);let f;if(u.atBreak)for(;f=d.exec(l);){let h=f.index;l.charCodeAt(h)===10&&l.charCodeAt(h-1)===13&&h--,l=l.slice(0,h)+" "+l.slice(f.index+1)}}return o+l+o}function iN(){return"`"}function Gg(e,n){const r=rd(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Jg.peek=lN;function Jg(e,n,r,l){const o=fd(r),a=o==='"'?"Quote":"Apostrophe",u=r.createTracker(l);let d,f;if(Gg(e,r)){const y=r.stack;r.stack=[],d=r.enter("autolink");let m=u.move("<");return m+=u.move(r.containerPhrasing(e,{before:m,after:">",...u.current()})),m+=u.move(">"),d(),r.stack=y,m}d=r.enter("link"),f=r.enter("label");let h=u.move("[");return h+=u.move(r.containerPhrasing(e,{before:h,after:"](",...u.current()})),h+=u.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(r.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(f=r.enter("destinationRaw"),h+=u.move(r.safe(e.url,{before:h,after:e.title?" ":")",...u.current()}))),f(),e.title&&(f=r.enter(`title${a}`),h+=u.move(" "+o),h+=u.move(r.safe(e.title,{before:h,after:o,...u.current()})),h+=u.move(o),f()),h+=u.move(")"),d(),h}function lN(e,n,r){return Gg(e,r)?"<":"["}ey.peek=sN;function ey(e,n,r,l){const o=e.referenceType,a=r.enter("linkReference");let u=r.enter("label");const d=r.createTracker(l);let f=d.move("[");const h=r.containerPhrasing(e,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),u();const y=r.stack;r.stack=[],u=r.enter("reference");const m=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=y,a(),o==="full"||!h||h!==m?f+=d.move(m+"]"):o==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function sN(){return"["}function pd(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function oN(e){const n=pd(e),r=e.options.bulletOther;if(!r)return n==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+r+"`) to be different");return r}function aN(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function ty(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function uN(e,n,r,l){const o=r.enter("list"),a=r.bulletCurrent;let u=e.ordered?aN(r):pd(r);const d=e.ordered?u==="."?")":".":oN(r);let f=n&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&y&&(!y.children||!y.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(f=!0),ty(r)===u&&y){let m=-1;for(;++m<e.children.length;){const k=e.children[m];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(u=d),r.bulletCurrent=u;const h=r.containerFlow(e,l);return r.bulletLastUsed=u,r.bulletCurrent=a,o(),h}function cN(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function dN(e,n,r,l){const o=cN(r);let a=r.bulletCurrent||pd(r);n&&n.type==="list"&&n.ordered&&(a=(typeof n.start=="number"&&n.start>-1?n.start:1)+(r.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let u=a.length+1;(o==="tab"||o==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(u=Math.ceil(u/4)*4);const d=r.createTracker(l);d.move(a+" ".repeat(u-a.length)),d.shift(u);const f=r.enter("listItem"),h=r.indentLines(r.containerFlow(e,d.current()),y);return f(),h;function y(m,k,x){return k?(x?"":" ".repeat(u))+m:(x?a:a+" ".repeat(u-a.length))+m}}function fN(e,n,r,l){const o=r.enter("paragraph"),a=r.enter("phrasing"),u=r.containerPhrasing(e,l);return a(),o(),u}const pN=ea(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function hN(e,n,r,l){return(e.children.some(function(u){return pN(u)})?r.containerPhrasing:r.containerFlow).call(r,e,l)}function mN(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}ny.peek=gN;function ny(e,n,r,l){const o=mN(r),a=r.enter("strong"),u=r.createTracker(l),d=u.move(o+o);let f=u.move(r.containerPhrasing(e,{after:o,before:d,...u.current()}));const h=f.charCodeAt(0),y=Bo(l.before.charCodeAt(l.before.length-1),h,o);y.inside&&(f=us(h)+f.slice(1));const m=f.charCodeAt(f.length-1),k=Bo(l.after.charCodeAt(0),m,o);k.inside&&(f=f.slice(0,-1)+us(m));const x=u.move(o+o);return a(),r.attentionEncodeSurroundingInfo={after:k.outside,before:y.outside},d+f+x}function gN(e,n,r){return r.options.strong||"*"}function yN(e,n,r,l){return r.safe(e.value,l)}function vN(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function xN(e,n,r){const l=(ty(r)+(r.options.ruleSpaces?" ":"")).repeat(vN(r));return r.options.ruleSpaces?l.slice(0,-1):l}const ry={blockquote:UE,break:lm,code:qE,definition:YE,emphasis:Kg,hardBreak:lm,heading:eN,html:qg,image:Qg,imageReference:Yg,inlineCode:Xg,link:Jg,linkReference:ey,list:uN,listItem:dN,paragraph:fN,root:hN,strong:ny,text:yN,thematicBreak:xN};function kN(){return{enter:{table:wN,tableData:sm,tableHeader:sm,tableRow:bN},exit:{codeText:SN,table:_N,tableData:ac,tableHeader:ac,tableRow:ac}}}function wN(e){const n=e._align;this.enter({type:"table",align:n.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function _N(e){this.exit(e),this.data.inTable=void 0}function bN(e){this.enter({type:"tableRow",children:[]},e)}function ac(e){this.exit(e)}function sm(e){this.enter({type:"tableCell",children:[]},e)}function SN(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,CN));const r=this.stack[this.stack.length-1];r.type,r.value=n,this.exit(e)}function CN(e,n){return n==="|"?n:e}function EN(e){const n=e||{},r=n.tableCellPadding,l=n.tablePipeAlign,o=n.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
75
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:k,table:u,tableCell:f,tableRow:d}};function u(x,b,j,D){return h(y(x,j,D),x.align)}function d(x,b,j,D){const S=m(x,j,D),M=h([S]);return M.slice(0,M.indexOf(`
|
|
76
|
-
`))}function f(x,b,j,D){const S=j.enter("tableCell"),M=j.enter("phrasing"),N=j.containerPhrasing(x,{...D,before:a,after:a});return M(),S(),N}function h(x,b){return $E(x,{align:b,alignDelimiters:l,padding:r,stringLength:o})}function y(x,b,j){const D=x.children;let S=-1;const M=[],N=b.enter("table");for(;++S<D.length;)M[S]=m(D[S],b,j);return N(),M}function m(x,b,j){const D=x.children;let S=-1;const M=[],N=b.enter("tableRow");for(;++S<D.length;)M[S]=f(D[S],x,b,j);return N(),M}function k(x,b,j){let D=ry.inlineCode(x,b,j);return j.stack.includes("tableCell")&&(D=D.replace(/\|/g,"\\$&")),D}}function NN(){return{exit:{taskListCheckValueChecked:om,taskListCheckValueUnchecked:om,paragraph:jN}}}function TN(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:IN}}}function om(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function jN(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const l=r.children[0];if(l&&l.type==="text"){const o=n.children;let a=-1,u;for(;++a<o.length;){const d=o[a];if(d.type==="paragraph"){u=d;break}}u===r&&(l.value=l.value.slice(1),l.value.length===0?r.children.shift():r.position&&l.position&&typeof l.position.start.offset=="number"&&(l.position.start.column++,l.position.start.offset++,r.position.start=Object.assign({},l.position.start)))}}this.exit(e)}function IN(e,n,r,l){const o=e.children[0],a=typeof e.checked=="boolean"&&o&&o.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",d=r.createTracker(l);a&&d.move(u);let f=ry.listItem(e,n,r,{...l,...d.current()});return a&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),f;function h(y){return y+u}}function DN(){return[uE(),IE(),PE(),kN(),NN()]}function RN(e){return{extensions:[cE(),DE(e),LE(),EN(e),TN()]}}const AN={tokenize:FN,partial:!0},iy={tokenize:$N,partial:!0},ly={tokenize:BN,partial:!0},sy={tokenize:UN,partial:!0},PN={tokenize:VN,partial:!0},oy={name:"wwwAutolink",tokenize:ON,previous:uy},ay={name:"protocolAutolink",tokenize:zN,previous:cy},Er={name:"emailAutolink",tokenize:MN,previous:dy},fr={};function LN(){return{text:fr}}let vi=48;for(;vi<123;)fr[vi]=Er,vi++,vi===58?vi=65:vi===91&&(vi=97);fr[43]=Er;fr[45]=Er;fr[46]=Er;fr[95]=Er;fr[72]=[Er,ay];fr[104]=[Er,ay];fr[87]=[Er,oy];fr[119]=[Er,oy];function MN(e,n,r){const l=this;let o,a;return u;function u(m){return!Ic(m)||!dy.call(l,l.previous)||hd(l.events)?r(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(m))}function d(m){return Ic(m)?(e.consume(m),d):m===64?(e.consume(m),f):r(m)}function f(m){return m===46?e.check(PN,y,h)(m):m===45||m===95||Zt(m)?(a=!0,e.consume(m),f):y(m)}function h(m){return e.consume(m),o=!0,f}function y(m){return a&&o&&tn(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(m)):r(m)}}function ON(e,n,r){const l=this;return o;function o(u){return u!==87&&u!==119||!uy.call(l,l.previous)||hd(l.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(AN,e.attempt(iy,e.attempt(ly,a),r),r)(u))}function a(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(u)}}function zN(e,n,r){const l=this;let o="",a=!1;return u;function u(m){return(m===72||m===104)&&cy.call(l,l.previous)&&!hd(l.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(m),e.consume(m),d):r(m)}function d(m){if(tn(m)&&o.length<5)return o+=String.fromCodePoint(m),e.consume(m),d;if(m===58){const k=o.toLowerCase();if(k==="http"||k==="https")return e.consume(m),f}return r(m)}function f(m){return m===47?(e.consume(m),a?h:(a=!0,f)):r(m)}function h(m){return m===null||zo(m)||Je(m)||wi(m)||Xo(m)?r(m):e.attempt(iy,e.attempt(ly,y),r)(m)}function y(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(m)}}function FN(e,n,r){let l=0;return o;function o(u){return(u===87||u===119)&&l<3?(l++,e.consume(u),o):u===46&&l===3?(e.consume(u),a):r(u)}function a(u){return u===null?r(u):n(u)}}function $N(e,n,r){let l,o,a;return u;function u(h){return h===46||h===95?e.check(sy,f,d)(h):h===null||Je(h)||wi(h)||h!==45&&Xo(h)?f(h):(a=!0,e.consume(h),u)}function d(h){return h===95?l=!0:(o=l,l=void 0),e.consume(h),u}function f(h){return o||l||!a?r(h):n(h)}}function BN(e,n){let r=0,l=0;return o;function o(u){return u===40?(r++,e.consume(u),o):u===41&&l<r?a(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(sy,n,a)(u):u===null||Je(u)||wi(u)?n(u):(e.consume(u),o)}function a(u){return u===41&&l++,e.consume(u),o}}function UN(e,n,r){return l;function l(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),l):d===38?(e.consume(d),a):d===93?(e.consume(d),o):d===60||d===null||Je(d)||wi(d)?n(d):r(d)}function o(d){return d===null||d===40||d===91||Je(d)||wi(d)?n(d):l(d)}function a(d){return tn(d)?u(d):r(d)}function u(d){return d===59?(e.consume(d),l):tn(d)?(e.consume(d),u):r(d)}}function VN(e,n,r){return l;function l(a){return e.consume(a),o}function o(a){return Zt(a)?r(a):n(a)}}function uy(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Je(e)}function cy(e){return!tn(e)}function dy(e){return!(e===47||Ic(e))}function Ic(e){return e===43||e===45||e===46||e===95||Zt(e)}function hd(e){let n=e.length,r=!1;for(;n--;){const l=e[n][1];if((l.type==="labelLink"||l.type==="labelImage")&&!l._balanced){r=!0;break}if(l._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const HN={tokenize:GN,partial:!0};function WN(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:QN,continuation:{tokenize:YN},exit:XN}},text:{91:{name:"gfmFootnoteCall",tokenize:qN},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ZN,resolveTo:KN}}}}function ZN(e,n,r){const l=this;let o=l.events.length;const a=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let u;for(;o--;){const f=l.events[o][1];if(f.type==="labelImage"){u=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return d;function d(f){if(!u||!u._balanced)return r(f);const h=Jn(l.sliceSerialize({start:u.end,end:l.now()}));return h.codePointAt(0)!==94||!a.includes(h.slice(1))?r(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),n(f))}}function KN(e,n){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const l={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},d=[e[r+1],e[r+2],["enter",l,n],e[r+3],e[r+4],["enter",o,n],["exit",o,n],["enter",a,n],["enter",u,n],["exit",u,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",l,n]];return e.splice(r,e.length-r+1,...d),e}function qN(e,n,r){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let a=0,u;return d;function d(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),f}function f(m){return m!==94?r(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(m){if(a>999||m===93&&!u||m===null||m===91||Je(m))return r(m);if(m===93){e.exit("chunkString");const k=e.exit("gfmFootnoteCallString");return o.includes(Jn(l.sliceSerialize(k)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):r(m)}return Je(m)||(u=!0),a++,e.consume(m),m===92?y:h}function y(m){return m===91||m===92||m===93?(e.consume(m),a++,h):h(m)}}function QN(e,n,r){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let a,u=0,d;return f;function f(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):r(b)}function y(b){if(u>999||b===93&&!d||b===null||b===91||Je(b))return r(b);if(b===93){e.exit("chunkString");const j=e.exit("gfmFootnoteDefinitionLabelString");return a=Jn(l.sliceSerialize(j)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),k}return Je(b)||(d=!0),u++,e.consume(b),b===92?m:y}function m(b){return b===91||b===92||b===93?(e.consume(b),u++,y):y(b)}function k(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),o.includes(a)||o.push(a),Ue(e,x,"gfmFootnoteDefinitionWhitespace")):r(b)}function x(b){return n(b)}}function YN(e,n,r){return e.check(ys,n,e.attempt(HN,n,r))}function XN(e){e.exit("gfmFootnoteDefinition")}function GN(e,n,r){const l=this;return Ue(e,o,"gfmFootnoteDefinitionIndent",5);function o(a){const u=l.events[l.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?n(a):r(a)}}function JN(e){let r=(e||{}).singleTilde;const l={name:"strikethrough",tokenize:a,resolveAll:o};return r==null&&(r=!0),{text:{126:l},insideSpan:{null:[l]},attentionMarkers:{null:[126]}};function o(u,d){let f=-1;for(;++f<u.length;)if(u[f][0]==="enter"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._close){let h=f;for(;h--;)if(u[h][0]==="exit"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._open&&u[f][1].end.offset-u[f][1].start.offset===u[h][1].end.offset-u[h][1].start.offset){u[f][1].type="strikethroughSequence",u[h][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},u[h][1].start),end:Object.assign({},u[f][1].end)},m={type:"strikethroughText",start:Object.assign({},u[h][1].end),end:Object.assign({},u[f][1].start)},k=[["enter",y,d],["enter",u[h][1],d],["exit",u[h][1],d],["enter",m,d]],x=d.parser.constructs.insideSpan.null;x&&Sn(k,k.length,0,Go(x,u.slice(h+1,f),d)),Sn(k,k.length,0,[["exit",m,d],["enter",u[f][1],d],["exit",u[f][1],d],["exit",y,d]]),Sn(u,h-1,f-h+3,k),f=h+k.length-2;break}}for(f=-1;++f<u.length;)u[f][1].type==="strikethroughSequenceTemporary"&&(u[f][1].type="data");return u}function a(u,d,f){const h=this.previous,y=this.events;let m=0;return k;function k(b){return h===126&&y[y.length-1][1].type!=="characterEscape"?f(b):(u.enter("strikethroughSequenceTemporary"),x(b))}function x(b){const j=Xi(h);if(b===126)return m>1?f(b):(u.consume(b),m++,x);if(m<2&&!r)return f(b);const D=u.exit("strikethroughSequenceTemporary"),S=Xi(b);return D._open=!S||S===2&&!!j,D._close=!j||j===2&&!!S,d(b)}}}class eT{constructor(){this.map=[]}add(n,r,l){tT(this,n,r,l)}consume(n){if(this.map.sort(function(a,u){return a[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const l=[];for(;r>0;)r-=1,l.push(n.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),n.length=this.map[r][0];l.push(n.slice()),n.length=0;let o=l.pop();for(;o;){for(const a of o)n.push(a);o=l.pop()}this.map.length=0}}function tT(e,n,r,l){let o=0;if(!(r===0&&l.length===0)){for(;o<e.map.length;){if(e.map[o][0]===n){e.map[o][1]+=r,e.map[o][2].push(...l);return}o+=1}e.map.push([n,r,l])}}function nT(e,n){let r=!1;const l=[];for(;n<e.length;){const o=e[n];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&l.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const a=l.length-1;l[a]=l[a]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);n+=1}return l}function rT(){return{flow:{null:{name:"table",tokenize:iT,resolveAll:lT}}}}function iT(e,n,r){const l=this;let o=0,a=0,u;return d;function d(I){let q=l.events.length-1;for(;q>-1;){const K=l.events[q][1].type;if(K==="lineEnding"||K==="linePrefix")q--;else break}const X=q>-1?l.events[q][1].type:null,G=X==="tableHead"||X==="tableRow"?L:f;return G===L&&l.parser.lazy[l.now().line]?r(I):G(I)}function f(I){return e.enter("tableHead"),e.enter("tableRow"),h(I)}function h(I){return I===124||(u=!0,a+=1),y(I)}function y(I){return I===null?r(I):Te(I)?a>1?(a=0,l.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),x):r(I):Fe(I)?Ue(e,y,"whitespace")(I):(a+=1,u&&(u=!1,o+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),u=!0,y):(e.enter("data"),m(I)))}function m(I){return I===null||I===124||Je(I)?(e.exit("data"),y(I)):(e.consume(I),I===92?k:m)}function k(I){return I===92||I===124?(e.consume(I),m):m(I)}function x(I){return l.interrupt=!1,l.parser.lazy[l.now().line]?r(I):(e.enter("tableDelimiterRow"),u=!1,Fe(I)?Ue(e,b,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):b(I))}function b(I){return I===45||I===58?D(I):I===124?(u=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),j):H(I)}function j(I){return Fe(I)?Ue(e,D,"whitespace")(I):D(I)}function D(I){return I===58?(a+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),S):I===45?(a+=1,S(I)):I===null||Te(I)?$(I):H(I)}function S(I){return I===45?(e.enter("tableDelimiterFiller"),M(I)):H(I)}function M(I){return I===45?(e.consume(I),M):I===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(I))}function N(I){return Fe(I)?Ue(e,$,"whitespace")(I):$(I)}function $(I){return I===124?b(I):I===null||Te(I)?!u||o!==a?H(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(I)):H(I)}function H(I){return r(I)}function L(I){return e.enter("tableRow"),Y(I)}function Y(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),Y):I===null||Te(I)?(e.exit("tableRow"),n(I)):Fe(I)?Ue(e,Y,"whitespace")(I):(e.enter("data"),te(I))}function te(I){return I===null||I===124||Je(I)?(e.exit("data"),Y(I)):(e.consume(I),I===92?Q:te)}function Q(I){return I===92||I===124?(e.consume(I),te):te(I)}}function lT(e,n){let r=-1,l=!0,o=0,a=[0,0,0,0],u=[0,0,0,0],d=!1,f=0,h,y,m;const k=new eT;for(;++r<e.length;){const x=e[r],b=x[1];x[0]==="enter"?b.type==="tableHead"?(d=!1,f!==0&&(am(k,n,f,h,y),y=void 0,f=0),h={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},k.add(r,0,[["enter",h,n]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(l=!0,m=void 0,a=[0,0,0,0],u=[0,r+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},k.add(r,0,[["enter",y,n]])),o=b.type==="tableDelimiterRow"?2:y?3:1):o&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(l=!1,u[2]===0&&(a[1]!==0&&(u[0]=u[1],m=Io(k,n,a,o,void 0,m),a=[0,0,0,0]),u[2]=r)):b.type==="tableCellDivider"&&(l?l=!1:(a[1]!==0&&(u[0]=u[1],m=Io(k,n,a,o,void 0,m)),a=u,u=[a[1],r,0,0])):b.type==="tableHead"?(d=!0,f=r):b.type==="tableRow"||b.type==="tableDelimiterRow"?(f=r,a[1]!==0?(u[0]=u[1],m=Io(k,n,a,o,r,m)):u[1]!==0&&(m=Io(k,n,u,o,r,m)),o=0):o&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(u[3]=r)}for(f!==0&&am(k,n,f,h,y),k.consume(n.events),r=-1;++r<n.events.length;){const x=n.events[r];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=nT(n.events,r))}return e}function Io(e,n,r,l,o,a){const u=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(a.end=Object.assign({},qi(n.events,r[0])),e.add(r[0],0,[["exit",a,n]]));const f=qi(n.events,r[1]);if(a={type:u,start:Object.assign({},f),end:Object.assign({},f)},e.add(r[1],0,[["enter",a,n]]),r[2]!==0){const h=qi(n.events,r[2]),y=qi(n.events,r[3]),m={type:d,start:Object.assign({},h),end:Object.assign({},y)};if(e.add(r[2],0,[["enter",m,n]]),l!==2){const k=n.events[r[2]],x=n.events[r[3]];if(k[1].end=Object.assign({},x[1].end),k[1].type="chunkText",k[1].contentType="text",r[3]>r[2]+1){const b=r[2]+1,j=r[3]-r[2]-1;e.add(b,j,[])}}e.add(r[3]+1,0,[["exit",m,n]])}return o!==void 0&&(a.end=Object.assign({},qi(n.events,o)),e.add(o,0,[["exit",a,n]]),a=void 0),a}function am(e,n,r,l,o){const a=[],u=qi(n.events,r);o&&(o.end=Object.assign({},u),a.push(["exit",o,n])),l.end=Object.assign({},u),a.push(["exit",l,n]),e.add(r+1,0,a)}function qi(e,n){const r=e[n],l=r[0]==="enter"?"start":"end";return r[1][l]}const sT={name:"tasklistCheck",tokenize:aT};function oT(){return{text:{91:sT}}}function aT(e,n,r){const l=this;return o;function o(f){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?r(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),a)}function a(f){return Je(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),u):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),u):r(f)}function u(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):r(f)}function d(f){return Te(f)?n(f):Fe(f)?e.check({tokenize:uT},n,r)(f):r(f)}}function uT(e,n,r){return Ue(e,l,"whitespace");function l(o){return o===null?r(o):n(o)}}function cT(e){return _g([LN(),WN(),JN(e),rT(),oT()])}const dT={};function Dc(e){const n=this,r=e||dT,l=n.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),a=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),u=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(cT(r)),a.push(DN()),u.push(RN(r))}function fT(e,n){return e.filter(r=>(r.related_docs??[]).includes(n)).map(({id:r,title:l,status:o})=>({id:r,title:l,status:o})).sort((r,l)=>r.id.localeCompare(l.id,"en",{numeric:!0}))}const pT=/^---[ \t]*\r?\n/,hT=/^---[ \t]*$/,um="\uFEFF";function mT(e,n){const r=e.startsWith(um),l=r?e.slice(1):e,o=gT(l,n);return r?um+o:o}function gT(e,n){if(!pT.test(e))return e;const r=e.split(`
|
|
77
|
-
`);let l=-1;for(let h=1;h<r.length;h++)if(hT.test(r[h].replace(/\r$/,""))){l=h;break}if(l===-1)return e;const o=[];let a=1;for(;a<l;){const h=r[a].replace(/\r$/,"");if(/^related_docs\s*:/.test(h)){for(a++;a<l&&/^\s*-\s/.test(r[a].replace(/\r$/,""));)a++;continue}o.push(r[a]),a++}const u=n.length>0?`related_docs: [${n.map(h=>JSON.stringify(h)).join(", ")}]`:null;if(u!==null){const h=o.findIndex(y=>/^created\s*:/.test(y.replace(/\r$/,"")));h!==-1?o.splice(h,0,u):o.push(u)}const d=[r[0],...o].join(`
|
|
78
|
-
`),f=r.slice(l).join(`
|
|
79
|
-
`);return`${d}
|
|
80
|
-
${f}`}const yT="_view_1ko9s_1",vT="_tree_1ko9s_8",xT="_treeTitle_1ko9s_16",kT="_treeRoot_1ko9s_22",wT="_treeChildren_1ko9s_23",_T="_dirName_1ko9s_33",bT="_fileBtn_1ko9s_41",ST="_fileBtnActive_1ko9s_61",CT="_detail_1ko9s_68",ET="_docPath_1ko9s_75",NT="_refs_1ko9s_82",TT="_refsTitle_1ko9s_90",jT="_refsList_1ko9s_96",IT="_refBtn_1ko9s_105",DT="_refId_1ko9s_124",RT="_refStatus_1ko9s_131",AT="_markdown_1ko9s_138",PT="_muted_1ko9s_157",LT="_broken_1ko9s_162",MT="_error_1ko9s_167",it={view:yT,tree:vT,treeTitle:xT,treeRoot:kT,treeChildren:wT,dirName:_T,fileBtn:bT,fileBtnActive:ST,detail:CT,docPath:ET,refs:NT,refsTitle:TT,refsList:jT,refBtn:IT,refId:DT,refStatus:RT,markdown:AT,muted:PT,broken:LT,error:MT};function OT({board:e,onOpen:n}){const{t:r}=gt(),[l,o]=C.useState(null),[a,u]=C.useState(!1),[d,f]=C.useState(null),[h,y]=C.useState(null),[m,k]=C.useState(null),x=C.useRef(null),b=C.useMemo(()=>{const N=new Map(e.config.columns.map($=>[$.id,$.label]));return $=>N.get($)??$},[e.config.columns]);C.useEffect(()=>{let N=!0;const $=new AbortController;return(async()=>{try{const H=await Om($.signal);N&&(o(H),u(!1))}catch{N&&u(!0)}})(),()=>{N=!1,$.abort()}},[e]);const j=async N=>{f(N),x.current=N,y(null),k(null);try{const $=await zm(N);if(x.current!==N)return;y($)}catch($){if(x.current!==N)return;$ instanceof ki&&($.status===404||$.status===403)?y("broken"):k($ instanceof Error?$.message:r("docs.loadError"))}},D=C.useMemo(()=>d===null?[]:fT(e.tasks.map(N=>({id:N.frontmatter.id,title:N.frontmatter.title,status:N.frontmatter.status,related_docs:N.frontmatter.related_docs})),d),[e.tasks,d]),S=C.useMemo(()=>new Map(e.tasks.map(N=>[N.frontmatter.id,N])),[e.tasks]),M=N=>v.jsx("li",{children:N.type==="dir"?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:it.dirName,children:N.name}),N.children&&N.children.length>0&&v.jsx("ul",{className:it.treeChildren,children:N.children.map(M)})]}):v.jsx("button",{type:"button",className:`${it.fileBtn} ${d===N.path?it.fileBtnActive:""}`,onClick:()=>void j(N.path),"aria-current":d===N.path?"true":void 0,children:N.name})},N.path);return v.jsxs("div",{className:it.view,children:[v.jsxs("nav",{className:it.tree,"aria-label":r("docs.view.treeTitle"),children:[v.jsx("h2",{className:it.treeTitle,children:r("docs.view.treeTitle")}),a?v.jsx("p",{className:it.error,role:"alert",children:r("docs.treeError")}):l===null?v.jsx("p",{className:it.muted,children:r("board.loading")}):l.length===0?v.jsx("p",{className:it.muted,children:r("docs.pickerEmpty")}):v.jsx("ul",{className:it.treeRoot,children:l.map(M)})]}),v.jsxs("section",{className:it.detail,"aria-label":r("view.docs"),children:[m&&v.jsx("p",{className:it.error,role:"alert",children:m}),d===null?v.jsx("p",{className:it.muted,children:r("docs.view.selectPrompt")}):v.jsxs(v.Fragment,{children:[v.jsx("p",{className:it.docPath,children:d}),v.jsxs("div",{className:it.refs,children:[v.jsx("h3",{className:it.refsTitle,children:r("docs.view.referencedBy")}),D.length===0?v.jsx("p",{className:it.muted,children:r("docs.view.noRefs")}):v.jsx("ul",{className:it.refsList,children:D.map(N=>{const $=S.get(N.id);return v.jsx("li",{children:v.jsxs("button",{type:"button",className:it.refBtn,onClick:()=>$&&n($),disabled:!$,children:[v.jsx("span",{className:it.refId,children:N.id})," ",N.title,v.jsx("span",{className:it.refStatus,children:b(N.status)})]})},N.id)})})]}),h===null?v.jsx("p",{className:it.muted,children:r("board.loading")}):h==="broken"?v.jsx("p",{className:it.broken,children:r("docs.broken")}):v.jsx("div",{className:it.markdown,children:v.jsx(jc,{remarkPlugins:[Dc],children:h.content})})]})]})]})}const zT="_view_1b67y_1",FT="_sidebar_1b67y_7",$T="_sectionTitle_1b67y_14",BT="_fileItem_1b67y_23",UT="_fileItemActive_1b67y_41",VT="_tree_1b67y_46",HT="_treeDir_1b67y_50",WT="_catalogItem_1b67y_56",ZT="_catalogName_1b67y_61",KT="_catalogDesc_1b67y_65",qT="_main_1b67y_69",QT="_mainHeader_1b67y_77",YT="_mainPath_1b67y_84",XT="_editor_1b67y_91",GT="_notice_1b67y_103",JT="_footer_1b67y_112",ej="_error_1b67y_119",tj="_saved_1b67y_124",nj="_btn_1b67y_129",rj="_btnPrimary_1b67y_136",ij="_empty_1b67y_147",Ye={view:zT,sidebar:FT,sectionTitle:$T,fileItem:BT,fileItemActive:UT,tree:VT,treeDir:HT,catalogItem:WT,catalogName:ZT,catalogDesc:KT,main:qT,mainHeader:QT,mainPath:YT,editor:XT,notice:GT,footer:JT,error:ej,saved:tj,btn:nj,btnPrimary:rj,empty:ij};function lj({board:e}){const{t:n}=gt(),r=e.config.aiConfigPaths,l=e.config.aiConfigPaths.rootFiles,[o,a]=C.useState([]),[u,d]=C.useState([]),[f,h]=C.useState(null),[y,m]=C.useState(""),[k,x]=C.useState(0),[b,j]=C.useState(""),[D,S]=C.useState("idle"),[M,N]=C.useState(null);C.useEffect(()=>{let I=!0;return(async()=>{try{const[q,X]=await Promise.all([Ax(),Px()]);I&&(a(q),d(X))}catch{}})(),()=>{I=!1}},[e]);const $=C.useMemo(()=>f!==null&&l.includes(f),[f,l]),H=f!==null&&f.endsWith(".json"),L=b!==y,Y=async I=>{h(I),N(null),S("idle");try{const q=await Dx(I);m(q.content),j(q.content),x(q.mtimeMs)}catch(q){q instanceof ki&&q.status===404?(m(""),j(""),x(0),N(n("files.notFound"))):(N(q instanceof Error?q.message:n("files.loadError")),m(""),j(""))}},te=async()=>{if(f!==null){if(H)try{JSON.parse(b)}catch{N(n("files.invalidJson"));return}S("saving"),N(null);try{const I=await Rx(f,b,k);m(I.content),x(I.mtimeMs),S("saved")}catch(I){S("idle"),I instanceof ki&&I.status===409?N(n("files.conflict")):N(I instanceof Error?I.message:n("files.saveError"))}}},Q=(I,q=0)=>I.flatMap(X=>X.type==="dir"?[v.jsxs("div",{className:Ye.treeDir,style:{paddingLeft:q*12},children:[X.name,"/"]},X.path),...Q(X.children??[],q+1)]:[v.jsx("button",{type:"button",className:`${Ye.fileItem} ${f===X.path?Ye.fileItemActive:""}`,style:{paddingLeft:q*12+6},onClick:()=>void Y(X.path),children:X.name},X.path)]);return v.jsxs("div",{className:Ye.view,children:[v.jsxs("div",{className:Ye.sidebar,children:[v.jsx("div",{className:Ye.sectionTitle,children:n("files.settings")}),[...r.settingsFiles,...l].map(I=>v.jsx("button",{type:"button",className:`${Ye.fileItem} ${f===I?Ye.fileItemActive:""}`,onClick:()=>void Y(I),children:I},I)),v.jsx("div",{className:Ye.sectionTitle,children:n("files.browse")}),v.jsx("div",{className:Ye.tree,children:Q(o)}),v.jsx("div",{className:Ye.sectionTitle,children:n("files.catalog")}),u.length===0?v.jsx("div",{className:Ye.catalogDesc,children:n("files.catalogEmpty")}):u.map(I=>v.jsx("div",{className:Ye.catalogItem,children:v.jsxs("button",{type:"button",className:Ye.fileItem,onClick:()=>void Y(I.path),children:[v.jsx("span",{className:Ye.catalogName,children:I.name??n("files.noName")}),I.description&&v.jsx("div",{className:Ye.catalogDesc,children:I.description})]})},I.path))]}),v.jsx("div",{className:Ye.main,children:f===null?v.jsx("div",{className:Ye.empty,children:n("files.selectPrompt")}):v.jsxs(v.Fragment,{children:[v.jsx("div",{className:Ye.mainHeader,children:v.jsx("span",{className:Ye.mainPath,children:f})}),v.jsx("textarea",{className:Ye.editor,value:b,onChange:I=>{j(I.target.value),S("idle")},spellCheck:!1,"aria-label":f}),$&&v.jsx("div",{className:Ye.notice,children:n("files.restartNotice")}),v.jsxs("div",{className:Ye.footer,children:[M&&v.jsx("span",{className:Ye.error,children:M}),D==="saved"&&!L&&v.jsx("span",{className:Ye.saved,children:n("files.saved")}),v.jsx("span",{style:{flex:1}}),v.jsx("button",{type:"button",className:Ye.btn,onClick:()=>void Y(f),children:n("files.reload")}),v.jsx("button",{type:"button",className:`${Ye.btn} ${Ye.btnPrimary}`,onClick:()=>void te(),disabled:!L||D==="saving",children:n(D==="saving"?"files.saving":"files.save")})]})]})})]})}function sj(e,n){const r=[],l=new Set;for(const d of e)l.has(d.id)||(l.add(d.id),r.push(d));const o=new Map;for(const d of r)o.set(d.id,{done:0,total:0});const a={done:0,total:0};for(const d of n){const f=d.milestone!==null&&l.has(d.milestone)?o.get(d.milestone):a;f.total+=1,d.done&&(f.done+=1)}return{milestones:r.map(d=>({milestone:d,...o.get(d.id)})).sort((d,f)=>d.milestone.order-f.milestone.order||d.milestone.id.localeCompare(f.milestone.id)),unassigned:a}}const oj="_view_znlga_1",aj="_sectionTitle_znlga_8",uj="_roadmap_znlga_17",cj="_milestone_znlga_23",dj="_milestoneactive_znlga_32",fj="_milestonedone_znlga_36",pj="_milestoneplanned_znlga_40",hj="_msInfo_znlga_44",mj="_msTitle_znlga_49",gj="_msStatus_znlga_53",yj="_msProgress_znlga_58",vj="_month_znlga_62",xj="_monthHeader_znlga_66",kj="_histEntry_znlga_74",wj="_histId_znlga_86",_j="_histTitle_znlga_93",bj="_histSummary_znlga_98",Sj="_empty_znlga_103",ct={view:oj,sectionTitle:aj,roadmap:uj,milestone:cj,milestoneactive:dj,milestonedone:fj,milestoneplanned:pj,msInfo:hj,msTitle:mj,msStatus:gj,msProgress:yj,month:vj,monthHeader:xj,histEntry:kj,histId:wj,histTitle:_j,histSummary:bj,empty:Sj},Cj={planned:"milestone.status.planned",active:"milestone.status.active",done:"milestone.status.done"};function cm(e){var l;const n=sg(e),r=n[n.length-1];return r?{summary:r.message,date:((l=r.timestamp)==null?void 0:l.slice(0,7))??null}:{summary:"",date:null}}function Ej({board:e,onOpen:n}){const{t:r}=gt(),[l,o]=C.useState([]);C.useEffect(()=>{let f=!0;const h=new AbortController;return(async()=>{try{const y=await Mm(h.signal);f&&o(y.tasks)}catch{f&&o([])}})(),()=>{f=!1,h.abort()}},[e]);const a=C.useMemo(()=>sj(e.config.milestones,e.tasks.map(f=>({milestone:f.frontmatter.milestone,done:f.frontmatter.status==="done"}))),[e.config.milestones,e.tasks]),u=C.useMemo(()=>{const f=[],h=new Set;for(const m of e.tasks){if(m.frontmatter.status!=="done")continue;h.add(m.frontmatter.id);const{summary:k,date:x}=cm(m.body);f.push({id:m.frontmatter.id,title:m.frontmatter.title,month:x??m.frontmatter.updated.slice(0,7),summary:k,task:m})}for(const m of l){if(h.has(m.id))continue;const{summary:k,date:x}=cm(m.body);f.push({id:m.id,title:m.id,month:x??"----",summary:k})}const y=new Map;for(const m of f){const k=y.get(m.month)??[];k.push(m),y.set(m.month,k)}return[...y.entries()].sort((m,k)=>k[0].localeCompare(m[0])).map(([m,k])=>({month:m,items:k.sort((x,b)=>x.id.localeCompare(b.id,"en",{numeric:!0}))}))},[e.tasks,l]),d=e.config.milestones.length>0;return v.jsxs("div",{className:ct.view,children:[v.jsx("p",{className:ct.sectionTitle,children:r("milestone.roadmap")}),!d&&a.unassigned.total===0?v.jsx("div",{className:ct.empty,children:r("milestone.empty")}):v.jsxs("div",{className:ct.roadmap,children:[a.milestones.map(f=>v.jsxs("div",{className:`${ct.milestone} ${ct[`milestone${f.milestone.status}`]}`,children:[v.jsxs("div",{className:ct.msInfo,children:[v.jsx("div",{className:ct.msTitle,children:f.milestone.title}),v.jsx("span",{className:ct.msStatus,children:r(Cj[f.milestone.status])})]}),v.jsx("div",{className:ct.msProgress,children:v.jsx(yc,{done:f.done,total:f.total})})]},f.milestone.id)),a.unassigned.total>0&&v.jsxs("div",{className:`${ct.milestone} ${ct.milestoneplanned}`,children:[v.jsx("div",{className:ct.msInfo,children:v.jsx("div",{className:ct.msTitle,children:r("milestone.unassignedTasks")})}),v.jsx("div",{className:ct.msProgress,children:v.jsx(yc,{done:a.unassigned.done,total:a.unassigned.total})})]})]}),v.jsx("p",{className:ct.sectionTitle,children:r("milestone.history")}),u.length===0?v.jsx("div",{className:ct.empty,children:r("digest.empty")}):u.map(f=>v.jsxs("section",{className:ct.month,children:[v.jsx("div",{className:ct.monthHeader,children:f.month}),f.items.map(h=>v.jsxs("div",{className:ct.histEntry,role:h.task?"button":void 0,tabIndex:h.task?0:void 0,onClick:()=>h.task&&n(h.task),onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&h.task&&(y.preventDefault(),n(h.task))},children:[v.jsx("span",{className:ct.histId,children:h.id}),v.jsx("span",{className:ct.histTitle,children:h.title}),h.summary&&v.jsx("span",{className:ct.histSummary,children:h.summary})]},h.id))]},f.month))]})}var Ze;(function(e){e.assertEqual=o=>{};function n(o){}e.assertIs=n;function r(o){throw new Error}e.assertNever=r,e.arrayToEnum=o=>{const a={};for(const u of o)a[u]=u;return a},e.getValidEnumValues=o=>{const a=e.objectKeys(o).filter(d=>typeof o[o[d]]!="number"),u={};for(const d of a)u[d]=o[d];return e.objectValues(u)},e.objectValues=o=>e.objectKeys(o).map(function(a){return o[a]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const a=[];for(const u in o)Object.prototype.hasOwnProperty.call(o,u)&&a.push(u);return a},e.find=(o,a)=>{for(const u of o)if(a(u))return u},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function l(o,a=" | "){return o.map(u=>typeof u=="string"?`'${u}'`:u).join(a)}e.joinValues=l,e.jsonStringifyReplacer=(o,a)=>typeof a=="bigint"?a.toString():a})(Ze||(Ze={}));var dm;(function(e){e.mergeShapes=(n,r)=>({...n,...r})})(dm||(dm={}));const xe=Ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Xr=e=>{switch(typeof e){case"undefined":return xe.undefined;case"string":return xe.string;case"number":return Number.isNaN(e)?xe.nan:xe.number;case"boolean":return xe.boolean;case"function":return xe.function;case"bigint":return xe.bigint;case"symbol":return xe.symbol;case"object":return Array.isArray(e)?xe.array:e===null?xe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?xe.promise:typeof Map<"u"&&e instanceof Map?xe.map:typeof Set<"u"&&e instanceof Set?xe.set:typeof Date<"u"&&e instanceof Date?xe.date:xe.object;default:return xe.unknown}},le=Ze.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Cr extends Error{get errors(){return this.issues}constructor(n){super(),this.issues=[],this.addIssue=l=>{this.issues=[...this.issues,l]},this.addIssues=(l=[])=>{this.issues=[...this.issues,...l]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=n}format(n){const r=n||function(a){return a.message},l={_errors:[]},o=a=>{for(const u of a.issues)if(u.code==="invalid_union")u.unionErrors.map(o);else if(u.code==="invalid_return_type")o(u.returnTypeError);else if(u.code==="invalid_arguments")o(u.argumentsError);else if(u.path.length===0)l._errors.push(r(u));else{let d=l,f=0;for(;f<u.path.length;){const h=u.path[f];f===u.path.length-1?(d[h]=d[h]||{_errors:[]},d[h]._errors.push(r(u))):d[h]=d[h]||{_errors:[]},d=d[h],f++}}};return o(this),l}static assert(n){if(!(n instanceof Cr))throw new Error(`Not a ZodError: ${n}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(n=r=>r.message){const r={},l=[];for(const o of this.issues)if(o.path.length>0){const a=o.path[0];r[a]=r[a]||[],r[a].push(n(o))}else l.push(n(o));return{formErrors:l,fieldErrors:r}}get formErrors(){return this.flatten()}}Cr.create=e=>new Cr(e);const Rc=(e,n)=>{let r;switch(e.code){case le.invalid_type:e.received===xe.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case le.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ze.jsonStringifyReplacer)}`;break;case le.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ze.joinValues(e.keys,", ")}`;break;case le.invalid_union:r="Invalid input";break;case le.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ze.joinValues(e.options)}`;break;case le.invalid_enum_value:r=`Invalid enum value. Expected ${Ze.joinValues(e.options)}, received '${e.received}'`;break;case le.invalid_arguments:r="Invalid function arguments";break;case le.invalid_return_type:r="Invalid function return type";break;case le.invalid_date:r="Invalid date";break;case le.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Ze.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case le.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case le.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case le.custom:r="Invalid input";break;case le.invalid_intersection_types:r="Intersection results could not be merged";break;case le.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case le.not_finite:r="Number must be finite";break;default:r=n.defaultError,Ze.assertNever(e)}return{message:r}};let Nj=Rc;function Tj(){return Nj}const jj=e=>{const{data:n,path:r,errorMaps:l,issueData:o}=e,a=[...r,...o.path||[]],u={...o,path:a};if(o.message!==void 0)return{...o,path:a,message:o.message};let d="";const f=l.filter(h=>!!h).slice().reverse();for(const h of f)d=h(u,{data:n,defaultError:d}).message;return{...o,path:a,message:d}};function fe(e,n){const r=Tj(),l=jj({issueData:n,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Rc?void 0:Rc].filter(o=>!!o)});e.common.issues.push(l)}class Cn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(n,r){const l=[];for(const o of r){if(o.status==="aborted")return Pe;o.status==="dirty"&&n.dirty(),l.push(o.value)}return{status:n.value,value:l}}static async mergeObjectAsync(n,r){const l=[];for(const o of r){const a=await o.key,u=await o.value;l.push({key:a,value:u})}return Cn.mergeObjectSync(n,l)}static mergeObjectSync(n,r){const l={};for(const o of r){const{key:a,value:u}=o;if(a.status==="aborted"||u.status==="aborted")return Pe;a.status==="dirty"&&n.dirty(),u.status==="dirty"&&n.dirty(),a.value!=="__proto__"&&(typeof u.value<"u"||o.alwaysSet)&&(l[a.value]=u.value)}return{status:n.value,value:l}}}const Pe=Object.freeze({status:"aborted"}),Gl=e=>({status:"dirty",value:e}),zn=e=>({status:"valid",value:e}),fm=e=>e.status==="aborted",pm=e=>e.status==="dirty",Gi=e=>e.status==="valid",Uo=e=>typeof Promise<"u"&&e instanceof Promise;var _e;(function(e){e.errToObj=n=>typeof n=="string"?{message:n}:n||{},e.toString=n=>typeof n=="string"?n:n==null?void 0:n.message})(_e||(_e={}));class ti{constructor(n,r,l,o){this._cachedPath=[],this.parent=n,this.data=r,this._path=l,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const hm=(e,n)=>{if(Gi(n))return{success:!0,data:n.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Cr(e.common.issues);return this._error=r,this._error}}};function ze(e){if(!e)return{};const{errorMap:n,invalid_type_error:r,required_error:l,description:o}=e;if(n&&(r||l))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return n?{errorMap:n,description:o}:{errorMap:(u,d)=>{const{message:f}=e;return u.code==="invalid_enum_value"?{message:f??d.defaultError}:typeof d.data>"u"?{message:f??l??d.defaultError}:u.code!=="invalid_type"?{message:d.defaultError}:{message:f??r??d.defaultError}},description:o}}class He{get description(){return this._def.description}_getType(n){return Xr(n.data)}_getOrReturnCtx(n,r){return r||{common:n.parent.common,data:n.data,parsedType:Xr(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}_processInputParams(n){return{status:new Cn,ctx:{common:n.parent.common,data:n.data,parsedType:Xr(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}}_parseSync(n){const r=this._parse(n);if(Uo(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(n){const r=this._parse(n);return Promise.resolve(r)}parse(n,r){const l=this.safeParse(n,r);if(l.success)return l.data;throw l.error}safeParse(n,r){const l={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:Xr(n)},o=this._parseSync({data:n,path:l.path,parent:l});return hm(l,o)}"~validate"(n){var l,o;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:Xr(n)};if(!this["~standard"].async)try{const a=this._parseSync({data:n,path:[],parent:r});return Gi(a)?{value:a.value}:{issues:r.common.issues}}catch(a){(o=(l=a==null?void 0:a.message)==null?void 0:l.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:n,path:[],parent:r}).then(a=>Gi(a)?{value:a.value}:{issues:r.common.issues})}async parseAsync(n,r){const l=await this.safeParseAsync(n,r);if(l.success)return l.data;throw l.error}async safeParseAsync(n,r){const l={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:Xr(n)},o=this._parse({data:n,path:l.path,parent:l}),a=await(Uo(o)?o:Promise.resolve(o));return hm(l,a)}refine(n,r){const l=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,a)=>{const u=n(o),d=()=>a.addIssue({code:le.custom,...l(o)});return typeof Promise<"u"&&u instanceof Promise?u.then(f=>f?!0:(d(),!1)):u?!0:(d(),!1)})}refinement(n,r){return this._refinement((l,o)=>n(l)?!0:(o.addIssue(typeof r=="function"?r(l,o):r),!1))}_refinement(n){return new tl({schema:this,typeName:Le.ZodEffects,effect:{type:"refinement",refinement:n}})}superRefine(n){return this._refinement(n)}constructor(n){this.spa=this.safeParseAsync,this._def=n,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Jr.create(this,this._def)}nullable(){return nl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return dr.create(this)}promise(){return Zo.create(this,this._def)}or(n){return Ho.create([this,n],this._def)}and(n){return Wo.create(this,n,this._def)}transform(n){return new tl({...ze(this._def),schema:this,typeName:Le.ZodEffects,effect:{type:"transform",transform:n}})}default(n){const r=typeof n=="function"?n:()=>n;return new Lc({...ze(this._def),innerType:this,defaultValue:r,typeName:Le.ZodDefault})}brand(){return new Gj({typeName:Le.ZodBranded,type:this,...ze(this._def)})}catch(n){const r=typeof n=="function"?n:()=>n;return new Mc({...ze(this._def),innerType:this,catchValue:r,typeName:Le.ZodCatch})}describe(n){const r=this.constructor;return new r({...this._def,description:n})}pipe(n){return md.create(this,n)}readonly(){return Oc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Ij=/^c[^\s-]{8,}$/i,Dj=/^[0-9a-z]+$/,Rj=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Aj=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Pj=/^[a-z0-9_-]{21}$/i,Lj=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Mj=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Oj=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,zj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let uc;const Fj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,$j=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Bj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Uj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Vj=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Hj=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,fy="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Wj=new RegExp(`^${fy}$`);function py(e){let n="[0-5]\\d";e.precision?n=`${n}\\.\\d{${e.precision}}`:e.precision==null&&(n=`${n}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${n})${r}`}function Zj(e){return new RegExp(`^${py(e)}$`)}function Kj(e){let n=`${fy}T${py(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),n=`${n}(${r.join("|")})`,new RegExp(`^${n}$`)}function qj(e,n){return!!((n==="v4"||!n)&&Fj.test(e)||(n==="v6"||!n)&&Bj.test(e))}function Qj(e,n){if(!Lj.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const l=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(l));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||n&&o.alg!==n)}catch{return!1}}function Yj(e,n){return!!((n==="v4"||!n)&&$j.test(e)||(n==="v6"||!n)&&Uj.test(e))}class Gr extends He{_parse(n){if(this._def.coerce&&(n.data=String(n.data)),this._getType(n)!==xe.string){const a=this._getOrReturnCtx(n);return fe(a,{code:le.invalid_type,expected:xe.string,received:a.parsedType}),Pe}const l=new Cn;let o;for(const a of this._def.checks)if(a.kind==="min")n.data.length<a.value&&(o=this._getOrReturnCtx(n,o),fe(o,{code:le.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),l.dirty());else if(a.kind==="max")n.data.length>a.value&&(o=this._getOrReturnCtx(n,o),fe(o,{code:le.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),l.dirty());else if(a.kind==="length"){const u=n.data.length>a.value,d=n.data.length<a.value;(u||d)&&(o=this._getOrReturnCtx(n,o),u?fe(o,{code:le.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):d&&fe(o,{code:le.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),l.dirty())}else if(a.kind==="email")Oj.test(n.data)||(o=this._getOrReturnCtx(n,o),fe(o,{validation:"email",code:le.invalid_string,message:a.message}),l.dirty());else if(a.kind==="emoji")uc||(uc=new RegExp(zj,"u")),uc.test(n.data)||(o=this._getOrReturnCtx(n,o),fe(o,{validation:"emoji",code:le.invalid_string,message:a.message}),l.dirty());else if(a.kind==="uuid")Aj.test(n.data)||(o=this._getOrReturnCtx(n,o),fe(o,{validation:"uuid",code:le.invalid_string,message:a.message}),l.dirty());else if(a.kind==="nanoid")Pj.test(n.data)||(o=this._getOrReturnCtx(n,o),fe(o,{validation:"nanoid",code:le.invalid_string,message:a.message}),l.dirty());else if(a.kind==="cuid")Ij.test(n.data)||(o=this._getOrReturnCtx(n,o),fe(o,{validation:"cuid",code:le.invalid_string,message:a.message}),l.dirty());else if(a.kind==="cuid2")Dj.test(n.data)||(o=this._getOrReturnCtx(n,o),fe(o,{validation:"cuid2",code:le.invalid_string,message:a.message}),l.dirty());else if(a.kind==="ulid")Rj.test(n.data)||(o=this._getOrReturnCtx(n,o),fe(o,{validation:"ulid",code:le.invalid_string,message:a.message}),l.dirty());else if(a.kind==="url")try{new URL(n.data)}catch{o=this._getOrReturnCtx(n,o),fe(o,{validation:"url",code:le.invalid_string,message:a.message}),l.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(n.data)||(o=this._getOrReturnCtx(n,o),fe(o,{validation:"regex",code:le.invalid_string,message:a.message}),l.dirty())):a.kind==="trim"?n.data=n.data.trim():a.kind==="includes"?n.data.includes(a.value,a.position)||(o=this._getOrReturnCtx(n,o),fe(o,{code:le.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),l.dirty()):a.kind==="toLowerCase"?n.data=n.data.toLowerCase():a.kind==="toUpperCase"?n.data=n.data.toUpperCase():a.kind==="startsWith"?n.data.startsWith(a.value)||(o=this._getOrReturnCtx(n,o),fe(o,{code:le.invalid_string,validation:{startsWith:a.value},message:a.message}),l.dirty()):a.kind==="endsWith"?n.data.endsWith(a.value)||(o=this._getOrReturnCtx(n,o),fe(o,{code:le.invalid_string,validation:{endsWith:a.value},message:a.message}),l.dirty()):a.kind==="datetime"?Kj(a).test(n.data)||(o=this._getOrReturnCtx(n,o),fe(o,{code:le.invalid_string,validation:"datetime",message:a.message}),l.dirty()):a.kind==="date"?Wj.test(n.data)||(o=this._getOrReturnCtx(n,o),fe(o,{code:le.invalid_string,validation:"date",message:a.message}),l.dirty()):a.kind==="time"?Zj(a).test(n.data)||(o=this._getOrReturnCtx(n,o),fe(o,{code:le.invalid_string,validation:"time",message:a.message}),l.dirty()):a.kind==="duration"?Mj.test(n.data)||(o=this._getOrReturnCtx(n,o),fe(o,{validation:"duration",code:le.invalid_string,message:a.message}),l.dirty()):a.kind==="ip"?qj(n.data,a.version)||(o=this._getOrReturnCtx(n,o),fe(o,{validation:"ip",code:le.invalid_string,message:a.message}),l.dirty()):a.kind==="jwt"?Qj(n.data,a.alg)||(o=this._getOrReturnCtx(n,o),fe(o,{validation:"jwt",code:le.invalid_string,message:a.message}),l.dirty()):a.kind==="cidr"?Yj(n.data,a.version)||(o=this._getOrReturnCtx(n,o),fe(o,{validation:"cidr",code:le.invalid_string,message:a.message}),l.dirty()):a.kind==="base64"?Vj.test(n.data)||(o=this._getOrReturnCtx(n,o),fe(o,{validation:"base64",code:le.invalid_string,message:a.message}),l.dirty()):a.kind==="base64url"?Hj.test(n.data)||(o=this._getOrReturnCtx(n,o),fe(o,{validation:"base64url",code:le.invalid_string,message:a.message}),l.dirty()):Ze.assertNever(a);return{status:l.value,value:n.data}}_regex(n,r,l){return this.refinement(o=>n.test(o),{validation:r,code:le.invalid_string,..._e.errToObj(l)})}_addCheck(n){return new Gr({...this._def,checks:[...this._def.checks,n]})}email(n){return this._addCheck({kind:"email",..._e.errToObj(n)})}url(n){return this._addCheck({kind:"url",..._e.errToObj(n)})}emoji(n){return this._addCheck({kind:"emoji",..._e.errToObj(n)})}uuid(n){return this._addCheck({kind:"uuid",..._e.errToObj(n)})}nanoid(n){return this._addCheck({kind:"nanoid",..._e.errToObj(n)})}cuid(n){return this._addCheck({kind:"cuid",..._e.errToObj(n)})}cuid2(n){return this._addCheck({kind:"cuid2",..._e.errToObj(n)})}ulid(n){return this._addCheck({kind:"ulid",..._e.errToObj(n)})}base64(n){return this._addCheck({kind:"base64",..._e.errToObj(n)})}base64url(n){return this._addCheck({kind:"base64url",..._e.errToObj(n)})}jwt(n){return this._addCheck({kind:"jwt",..._e.errToObj(n)})}ip(n){return this._addCheck({kind:"ip",..._e.errToObj(n)})}cidr(n){return this._addCheck({kind:"cidr",..._e.errToObj(n)})}datetime(n){return typeof n=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:n}):this._addCheck({kind:"datetime",precision:typeof(n==null?void 0:n.precision)>"u"?null:n==null?void 0:n.precision,offset:(n==null?void 0:n.offset)??!1,local:(n==null?void 0:n.local)??!1,..._e.errToObj(n==null?void 0:n.message)})}date(n){return this._addCheck({kind:"date",message:n})}time(n){return typeof n=="string"?this._addCheck({kind:"time",precision:null,message:n}):this._addCheck({kind:"time",precision:typeof(n==null?void 0:n.precision)>"u"?null:n==null?void 0:n.precision,..._e.errToObj(n==null?void 0:n.message)})}duration(n){return this._addCheck({kind:"duration",..._e.errToObj(n)})}regex(n,r){return this._addCheck({kind:"regex",regex:n,..._e.errToObj(r)})}includes(n,r){return this._addCheck({kind:"includes",value:n,position:r==null?void 0:r.position,..._e.errToObj(r==null?void 0:r.message)})}startsWith(n,r){return this._addCheck({kind:"startsWith",value:n,..._e.errToObj(r)})}endsWith(n,r){return this._addCheck({kind:"endsWith",value:n,..._e.errToObj(r)})}min(n,r){return this._addCheck({kind:"min",value:n,..._e.errToObj(r)})}max(n,r){return this._addCheck({kind:"max",value:n,..._e.errToObj(r)})}length(n,r){return this._addCheck({kind:"length",value:n,..._e.errToObj(r)})}nonempty(n){return this.min(1,_e.errToObj(n))}trim(){return new Gr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Gr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Gr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(n=>n.kind==="datetime")}get isDate(){return!!this._def.checks.find(n=>n.kind==="date")}get isTime(){return!!this._def.checks.find(n=>n.kind==="time")}get isDuration(){return!!this._def.checks.find(n=>n.kind==="duration")}get isEmail(){return!!this._def.checks.find(n=>n.kind==="email")}get isURL(){return!!this._def.checks.find(n=>n.kind==="url")}get isEmoji(){return!!this._def.checks.find(n=>n.kind==="emoji")}get isUUID(){return!!this._def.checks.find(n=>n.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(n=>n.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(n=>n.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(n=>n.kind==="cuid2")}get isULID(){return!!this._def.checks.find(n=>n.kind==="ulid")}get isIP(){return!!this._def.checks.find(n=>n.kind==="ip")}get isCIDR(){return!!this._def.checks.find(n=>n.kind==="cidr")}get isBase64(){return!!this._def.checks.find(n=>n.kind==="base64")}get isBase64url(){return!!this._def.checks.find(n=>n.kind==="base64url")}get minLength(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxLength(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}}Gr.create=e=>new Gr({checks:[],typeName:Le.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...ze(e)});function Xj(e,n){const r=(e.toString().split(".")[1]||"").length,l=(n.toString().split(".")[1]||"").length,o=r>l?r:l,a=Number.parseInt(e.toFixed(o).replace(".","")),u=Number.parseInt(n.toFixed(o).replace(".",""));return a%u/10**o}class Ji extends He{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(n){if(this._def.coerce&&(n.data=Number(n.data)),this._getType(n)!==xe.number){const a=this._getOrReturnCtx(n);return fe(a,{code:le.invalid_type,expected:xe.number,received:a.parsedType}),Pe}let l;const o=new Cn;for(const a of this._def.checks)a.kind==="int"?Ze.isInteger(n.data)||(l=this._getOrReturnCtx(n,l),fe(l,{code:le.invalid_type,expected:"integer",received:"float",message:a.message}),o.dirty()):a.kind==="min"?(a.inclusive?n.data<a.value:n.data<=a.value)&&(l=this._getOrReturnCtx(n,l),fe(l,{code:le.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="max"?(a.inclusive?n.data>a.value:n.data>=a.value)&&(l=this._getOrReturnCtx(n,l),fe(l,{code:le.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="multipleOf"?Xj(n.data,a.value)!==0&&(l=this._getOrReturnCtx(n,l),fe(l,{code:le.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):a.kind==="finite"?Number.isFinite(n.data)||(l=this._getOrReturnCtx(n,l),fe(l,{code:le.not_finite,message:a.message}),o.dirty()):Ze.assertNever(a);return{status:o.value,value:n.data}}gte(n,r){return this.setLimit("min",n,!0,_e.toString(r))}gt(n,r){return this.setLimit("min",n,!1,_e.toString(r))}lte(n,r){return this.setLimit("max",n,!0,_e.toString(r))}lt(n,r){return this.setLimit("max",n,!1,_e.toString(r))}setLimit(n,r,l,o){return new Ji({...this._def,checks:[...this._def.checks,{kind:n,value:r,inclusive:l,message:_e.toString(o)}]})}_addCheck(n){return new Ji({...this._def,checks:[...this._def.checks,n]})}int(n){return this._addCheck({kind:"int",message:_e.toString(n)})}positive(n){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_e.toString(n)})}negative(n){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_e.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_e.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_e.toString(n)})}multipleOf(n,r){return this._addCheck({kind:"multipleOf",value:n,message:_e.toString(r)})}finite(n){return this._addCheck({kind:"finite",message:_e.toString(n)})}safe(n){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_e.toString(n)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_e.toString(n)})}get minValue(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxValue(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}get isInt(){return!!this._def.checks.find(n=>n.kind==="int"||n.kind==="multipleOf"&&Ze.isInteger(n.value))}get isFinite(){let n=null,r=null;for(const l of this._def.checks){if(l.kind==="finite"||l.kind==="int"||l.kind==="multipleOf")return!0;l.kind==="min"?(r===null||l.value>r)&&(r=l.value):l.kind==="max"&&(n===null||l.value<n)&&(n=l.value)}return Number.isFinite(r)&&Number.isFinite(n)}}Ji.create=e=>new Ji({checks:[],typeName:Le.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ze(e)});class cs extends He{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(n){if(this._def.coerce)try{n.data=BigInt(n.data)}catch{return this._getInvalidInput(n)}if(this._getType(n)!==xe.bigint)return this._getInvalidInput(n);let l;const o=new Cn;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?n.data<a.value:n.data<=a.value)&&(l=this._getOrReturnCtx(n,l),fe(l,{code:le.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind==="max"?(a.inclusive?n.data>a.value:n.data>=a.value)&&(l=this._getOrReturnCtx(n,l),fe(l,{code:le.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind==="multipleOf"?n.data%a.value!==BigInt(0)&&(l=this._getOrReturnCtx(n,l),fe(l,{code:le.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):Ze.assertNever(a);return{status:o.value,value:n.data}}_getInvalidInput(n){const r=this._getOrReturnCtx(n);return fe(r,{code:le.invalid_type,expected:xe.bigint,received:r.parsedType}),Pe}gte(n,r){return this.setLimit("min",n,!0,_e.toString(r))}gt(n,r){return this.setLimit("min",n,!1,_e.toString(r))}lte(n,r){return this.setLimit("max",n,!0,_e.toString(r))}lt(n,r){return this.setLimit("max",n,!1,_e.toString(r))}setLimit(n,r,l,o){return new cs({...this._def,checks:[...this._def.checks,{kind:n,value:r,inclusive:l,message:_e.toString(o)}]})}_addCheck(n){return new cs({...this._def,checks:[...this._def.checks,n]})}positive(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_e.toString(n)})}negative(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_e.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_e.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_e.toString(n)})}multipleOf(n,r){return this._addCheck({kind:"multipleOf",value:n,message:_e.toString(r)})}get minValue(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxValue(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}}cs.create=e=>new cs({checks:[],typeName:Le.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...ze(e)});class Ac extends He{_parse(n){if(this._def.coerce&&(n.data=!!n.data),this._getType(n)!==xe.boolean){const l=this._getOrReturnCtx(n);return fe(l,{code:le.invalid_type,expected:xe.boolean,received:l.parsedType}),Pe}return zn(n.data)}}Ac.create=e=>new Ac({typeName:Le.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ze(e)});class Vo extends He{_parse(n){if(this._def.coerce&&(n.data=new Date(n.data)),this._getType(n)!==xe.date){const a=this._getOrReturnCtx(n);return fe(a,{code:le.invalid_type,expected:xe.date,received:a.parsedType}),Pe}if(Number.isNaN(n.data.getTime())){const a=this._getOrReturnCtx(n);return fe(a,{code:le.invalid_date}),Pe}const l=new Cn;let o;for(const a of this._def.checks)a.kind==="min"?n.data.getTime()<a.value&&(o=this._getOrReturnCtx(n,o),fe(o,{code:le.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),l.dirty()):a.kind==="max"?n.data.getTime()>a.value&&(o=this._getOrReturnCtx(n,o),fe(o,{code:le.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),l.dirty()):Ze.assertNever(a);return{status:l.value,value:new Date(n.data.getTime())}}_addCheck(n){return new Vo({...this._def,checks:[...this._def.checks,n]})}min(n,r){return this._addCheck({kind:"min",value:n.getTime(),message:_e.toString(r)})}max(n,r){return this._addCheck({kind:"max",value:n.getTime(),message:_e.toString(r)})}get minDate(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n!=null?new Date(n):null}get maxDate(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n!=null?new Date(n):null}}Vo.create=e=>new Vo({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Le.ZodDate,...ze(e)});class mm extends He{_parse(n){if(this._getType(n)!==xe.symbol){const l=this._getOrReturnCtx(n);return fe(l,{code:le.invalid_type,expected:xe.symbol,received:l.parsedType}),Pe}return zn(n.data)}}mm.create=e=>new mm({typeName:Le.ZodSymbol,...ze(e)});class gm extends He{_parse(n){if(this._getType(n)!==xe.undefined){const l=this._getOrReturnCtx(n);return fe(l,{code:le.invalid_type,expected:xe.undefined,received:l.parsedType}),Pe}return zn(n.data)}}gm.create=e=>new gm({typeName:Le.ZodUndefined,...ze(e)});class ym extends He{_parse(n){if(this._getType(n)!==xe.null){const l=this._getOrReturnCtx(n);return fe(l,{code:le.invalid_type,expected:xe.null,received:l.parsedType}),Pe}return zn(n.data)}}ym.create=e=>new ym({typeName:Le.ZodNull,...ze(e)});class vm extends He{constructor(){super(...arguments),this._any=!0}_parse(n){return zn(n.data)}}vm.create=e=>new vm({typeName:Le.ZodAny,...ze(e)});class xm extends He{constructor(){super(...arguments),this._unknown=!0}_parse(n){return zn(n.data)}}xm.create=e=>new xm({typeName:Le.ZodUnknown,...ze(e)});class ni extends He{_parse(n){const r=this._getOrReturnCtx(n);return fe(r,{code:le.invalid_type,expected:xe.never,received:r.parsedType}),Pe}}ni.create=e=>new ni({typeName:Le.ZodNever,...ze(e)});class km extends He{_parse(n){if(this._getType(n)!==xe.undefined){const l=this._getOrReturnCtx(n);return fe(l,{code:le.invalid_type,expected:xe.void,received:l.parsedType}),Pe}return zn(n.data)}}km.create=e=>new km({typeName:Le.ZodVoid,...ze(e)});class dr extends He{_parse(n){const{ctx:r,status:l}=this._processInputParams(n),o=this._def;if(r.parsedType!==xe.array)return fe(r,{code:le.invalid_type,expected:xe.array,received:r.parsedType}),Pe;if(o.exactLength!==null){const u=r.data.length>o.exactLength.value,d=r.data.length<o.exactLength.value;(u||d)&&(fe(r,{code:u?le.too_big:le.too_small,minimum:d?o.exactLength.value:void 0,maximum:u?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),l.dirty())}if(o.minLength!==null&&r.data.length<o.minLength.value&&(fe(r,{code:le.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),l.dirty()),o.maxLength!==null&&r.data.length>o.maxLength.value&&(fe(r,{code:le.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),l.dirty()),r.common.async)return Promise.all([...r.data].map((u,d)=>o.type._parseAsync(new ti(r,u,r.path,d)))).then(u=>Cn.mergeArray(l,u));const a=[...r.data].map((u,d)=>o.type._parseSync(new ti(r,u,r.path,d)));return Cn.mergeArray(l,a)}get element(){return this._def.type}min(n,r){return new dr({...this._def,minLength:{value:n,message:_e.toString(r)}})}max(n,r){return new dr({...this._def,maxLength:{value:n,message:_e.toString(r)}})}length(n,r){return new dr({...this._def,exactLength:{value:n,message:_e.toString(r)}})}nonempty(n){return this.min(1,n)}}dr.create=(e,n)=>new dr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Le.ZodArray,...ze(n)});function Qi(e){if(e instanceof wt){const n={};for(const r in e.shape){const l=e.shape[r];n[r]=Jr.create(Qi(l))}return new wt({...e._def,shape:()=>n})}else return e instanceof dr?new dr({...e._def,type:Qi(e.element)}):e instanceof Jr?Jr.create(Qi(e.unwrap())):e instanceof nl?nl.create(Qi(e.unwrap())):e instanceof _i?_i.create(e.items.map(n=>Qi(n))):e}class wt extends He{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const n=this._def.shape(),r=Ze.objectKeys(n);return this._cached={shape:n,keys:r},this._cached}_parse(n){if(this._getType(n)!==xe.object){const h=this._getOrReturnCtx(n);return fe(h,{code:le.invalid_type,expected:xe.object,received:h.parsedType}),Pe}const{status:l,ctx:o}=this._processInputParams(n),{shape:a,keys:u}=this._getCached(),d=[];if(!(this._def.catchall instanceof ni&&this._def.unknownKeys==="strip"))for(const h in o.data)u.includes(h)||d.push(h);const f=[];for(const h of u){const y=a[h],m=o.data[h];f.push({key:{status:"valid",value:h},value:y._parse(new ti(o,m,o.path,h)),alwaysSet:h in o.data})}if(this._def.catchall instanceof ni){const h=this._def.unknownKeys;if(h==="passthrough")for(const y of d)f.push({key:{status:"valid",value:y},value:{status:"valid",value:o.data[y]}});else if(h==="strict")d.length>0&&(fe(o,{code:le.unrecognized_keys,keys:d}),l.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const y of d){const m=o.data[y];f.push({key:{status:"valid",value:y},value:h._parse(new ti(o,m,o.path,y)),alwaysSet:y in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const h=[];for(const y of f){const m=await y.key,k=await y.value;h.push({key:m,value:k,alwaysSet:y.alwaysSet})}return h}).then(h=>Cn.mergeObjectSync(l,h)):Cn.mergeObjectSync(l,f)}get shape(){return this._def.shape()}strict(n){return _e.errToObj,new wt({...this._def,unknownKeys:"strict",...n!==void 0?{errorMap:(r,l)=>{var a,u;const o=((u=(a=this._def).errorMap)==null?void 0:u.call(a,r,l).message)??l.defaultError;return r.code==="unrecognized_keys"?{message:_e.errToObj(n).message??o}:{message:o}}}:{}})}strip(){return new wt({...this._def,unknownKeys:"strip"})}passthrough(){return new wt({...this._def,unknownKeys:"passthrough"})}extend(n){return new wt({...this._def,shape:()=>({...this._def.shape(),...n})})}merge(n){return new wt({unknownKeys:n._def.unknownKeys,catchall:n._def.catchall,shape:()=>({...this._def.shape(),...n._def.shape()}),typeName:Le.ZodObject})}setKey(n,r){return this.augment({[n]:r})}catchall(n){return new wt({...this._def,catchall:n})}pick(n){const r={};for(const l of Ze.objectKeys(n))n[l]&&this.shape[l]&&(r[l]=this.shape[l]);return new wt({...this._def,shape:()=>r})}omit(n){const r={};for(const l of Ze.objectKeys(this.shape))n[l]||(r[l]=this.shape[l]);return new wt({...this._def,shape:()=>r})}deepPartial(){return Qi(this)}partial(n){const r={};for(const l of Ze.objectKeys(this.shape)){const o=this.shape[l];n&&!n[l]?r[l]=o:r[l]=o.optional()}return new wt({...this._def,shape:()=>r})}required(n){const r={};for(const l of Ze.objectKeys(this.shape))if(n&&!n[l])r[l]=this.shape[l];else{let a=this.shape[l];for(;a instanceof Jr;)a=a._def.innerType;r[l]=a}return new wt({...this._def,shape:()=>r})}keyof(){return hy(Ze.objectKeys(this.shape))}}wt.create=(e,n)=>new wt({shape:()=>e,unknownKeys:"strip",catchall:ni.create(),typeName:Le.ZodObject,...ze(n)});wt.strictCreate=(e,n)=>new wt({shape:()=>e,unknownKeys:"strict",catchall:ni.create(),typeName:Le.ZodObject,...ze(n)});wt.lazycreate=(e,n)=>new wt({shape:e,unknownKeys:"strip",catchall:ni.create(),typeName:Le.ZodObject,...ze(n)});class Ho extends He{_parse(n){const{ctx:r}=this._processInputParams(n),l=this._def.options;function o(a){for(const d of a)if(d.result.status==="valid")return d.result;for(const d of a)if(d.result.status==="dirty")return r.common.issues.push(...d.ctx.common.issues),d.result;const u=a.map(d=>new Cr(d.ctx.common.issues));return fe(r,{code:le.invalid_union,unionErrors:u}),Pe}if(r.common.async)return Promise.all(l.map(async a=>{const u={...r,common:{...r.common,issues:[]},parent:null};return{result:await a._parseAsync({data:r.data,path:r.path,parent:u}),ctx:u}})).then(o);{let a;const u=[];for(const f of l){const h={...r,common:{...r.common,issues:[]},parent:null},y=f._parseSync({data:r.data,path:r.path,parent:h});if(y.status==="valid")return y;y.status==="dirty"&&!a&&(a={result:y,ctx:h}),h.common.issues.length&&u.push(h.common.issues)}if(a)return r.common.issues.push(...a.ctx.common.issues),a.result;const d=u.map(f=>new Cr(f));return fe(r,{code:le.invalid_union,unionErrors:d}),Pe}}get options(){return this._def.options}}Ho.create=(e,n)=>new Ho({options:e,typeName:Le.ZodUnion,...ze(n)});function Pc(e,n){const r=Xr(e),l=Xr(n);if(e===n)return{valid:!0,data:e};if(r===xe.object&&l===xe.object){const o=Ze.objectKeys(n),a=Ze.objectKeys(e).filter(d=>o.indexOf(d)!==-1),u={...e,...n};for(const d of a){const f=Pc(e[d],n[d]);if(!f.valid)return{valid:!1};u[d]=f.data}return{valid:!0,data:u}}else if(r===xe.array&&l===xe.array){if(e.length!==n.length)return{valid:!1};const o=[];for(let a=0;a<e.length;a++){const u=e[a],d=n[a],f=Pc(u,d);if(!f.valid)return{valid:!1};o.push(f.data)}return{valid:!0,data:o}}else return r===xe.date&&l===xe.date&&+e==+n?{valid:!0,data:e}:{valid:!1}}class Wo extends He{_parse(n){const{status:r,ctx:l}=this._processInputParams(n),o=(a,u)=>{if(fm(a)||fm(u))return Pe;const d=Pc(a.value,u.value);return d.valid?((pm(a)||pm(u))&&r.dirty(),{status:r.value,value:d.data}):(fe(l,{code:le.invalid_intersection_types}),Pe)};return l.common.async?Promise.all([this._def.left._parseAsync({data:l.data,path:l.path,parent:l}),this._def.right._parseAsync({data:l.data,path:l.path,parent:l})]).then(([a,u])=>o(a,u)):o(this._def.left._parseSync({data:l.data,path:l.path,parent:l}),this._def.right._parseSync({data:l.data,path:l.path,parent:l}))}}Wo.create=(e,n,r)=>new Wo({left:e,right:n,typeName:Le.ZodIntersection,...ze(r)});class _i extends He{_parse(n){const{status:r,ctx:l}=this._processInputParams(n);if(l.parsedType!==xe.array)return fe(l,{code:le.invalid_type,expected:xe.array,received:l.parsedType}),Pe;if(l.data.length<this._def.items.length)return fe(l,{code:le.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Pe;!this._def.rest&&l.data.length>this._def.items.length&&(fe(l,{code:le.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const a=[...l.data].map((u,d)=>{const f=this._def.items[d]||this._def.rest;return f?f._parse(new ti(l,u,l.path,d)):null}).filter(u=>!!u);return l.common.async?Promise.all(a).then(u=>Cn.mergeArray(r,u)):Cn.mergeArray(r,a)}get items(){return this._def.items}rest(n){return new _i({...this._def,rest:n})}}_i.create=(e,n)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _i({items:e,typeName:Le.ZodTuple,rest:null,...ze(n)})};class wm extends He{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(n){const{status:r,ctx:l}=this._processInputParams(n);if(l.parsedType!==xe.map)return fe(l,{code:le.invalid_type,expected:xe.map,received:l.parsedType}),Pe;const o=this._def.keyType,a=this._def.valueType,u=[...l.data.entries()].map(([d,f],h)=>({key:o._parse(new ti(l,d,l.path,[h,"key"])),value:a._parse(new ti(l,f,l.path,[h,"value"]))}));if(l.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const f of u){const h=await f.key,y=await f.value;if(h.status==="aborted"||y.status==="aborted")return Pe;(h.status==="dirty"||y.status==="dirty")&&r.dirty(),d.set(h.value,y.value)}return{status:r.value,value:d}})}else{const d=new Map;for(const f of u){const h=f.key,y=f.value;if(h.status==="aborted"||y.status==="aborted")return Pe;(h.status==="dirty"||y.status==="dirty")&&r.dirty(),d.set(h.value,y.value)}return{status:r.value,value:d}}}}wm.create=(e,n,r)=>new wm({valueType:n,keyType:e,typeName:Le.ZodMap,...ze(r)});class ds extends He{_parse(n){const{status:r,ctx:l}=this._processInputParams(n);if(l.parsedType!==xe.set)return fe(l,{code:le.invalid_type,expected:xe.set,received:l.parsedType}),Pe;const o=this._def;o.minSize!==null&&l.data.size<o.minSize.value&&(fe(l,{code:le.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),r.dirty()),o.maxSize!==null&&l.data.size>o.maxSize.value&&(fe(l,{code:le.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());const a=this._def.valueType;function u(f){const h=new Set;for(const y of f){if(y.status==="aborted")return Pe;y.status==="dirty"&&r.dirty(),h.add(y.value)}return{status:r.value,value:h}}const d=[...l.data.values()].map((f,h)=>a._parse(new ti(l,f,l.path,h)));return l.common.async?Promise.all(d).then(f=>u(f)):u(d)}min(n,r){return new ds({...this._def,minSize:{value:n,message:_e.toString(r)}})}max(n,r){return new ds({...this._def,maxSize:{value:n,message:_e.toString(r)}})}size(n,r){return this.min(n,r).max(n,r)}nonempty(n){return this.min(1,n)}}ds.create=(e,n)=>new ds({valueType:e,minSize:null,maxSize:null,typeName:Le.ZodSet,...ze(n)});class _m extends He{get schema(){return this._def.getter()}_parse(n){const{ctx:r}=this._processInputParams(n);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}_m.create=(e,n)=>new _m({getter:e,typeName:Le.ZodLazy,...ze(n)});class bm extends He{_parse(n){if(n.data!==this._def.value){const r=this._getOrReturnCtx(n);return fe(r,{received:r.data,code:le.invalid_literal,expected:this._def.value}),Pe}return{status:"valid",value:n.data}}get value(){return this._def.value}}bm.create=(e,n)=>new bm({value:e,typeName:Le.ZodLiteral,...ze(n)});function hy(e,n){return new el({values:e,typeName:Le.ZodEnum,...ze(n)})}class el extends He{_parse(n){if(typeof n.data!="string"){const r=this._getOrReturnCtx(n),l=this._def.values;return fe(r,{expected:Ze.joinValues(l),received:r.parsedType,code:le.invalid_type}),Pe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(n.data)){const r=this._getOrReturnCtx(n),l=this._def.values;return fe(r,{received:r.data,code:le.invalid_enum_value,options:l}),Pe}return zn(n.data)}get options(){return this._def.values}get enum(){const n={};for(const r of this._def.values)n[r]=r;return n}get Values(){const n={};for(const r of this._def.values)n[r]=r;return n}get Enum(){const n={};for(const r of this._def.values)n[r]=r;return n}extract(n,r=this._def){return el.create(n,{...this._def,...r})}exclude(n,r=this._def){return el.create(this.options.filter(l=>!n.includes(l)),{...this._def,...r})}}el.create=hy;class Sm extends He{_parse(n){const r=Ze.getValidEnumValues(this._def.values),l=this._getOrReturnCtx(n);if(l.parsedType!==xe.string&&l.parsedType!==xe.number){const o=Ze.objectValues(r);return fe(l,{expected:Ze.joinValues(o),received:l.parsedType,code:le.invalid_type}),Pe}if(this._cache||(this._cache=new Set(Ze.getValidEnumValues(this._def.values))),!this._cache.has(n.data)){const o=Ze.objectValues(r);return fe(l,{received:l.data,code:le.invalid_enum_value,options:o}),Pe}return zn(n.data)}get enum(){return this._def.values}}Sm.create=(e,n)=>new Sm({values:e,typeName:Le.ZodNativeEnum,...ze(n)});class Zo extends He{unwrap(){return this._def.type}_parse(n){const{ctx:r}=this._processInputParams(n);if(r.parsedType!==xe.promise&&r.common.async===!1)return fe(r,{code:le.invalid_type,expected:xe.promise,received:r.parsedType}),Pe;const l=r.parsedType===xe.promise?r.data:Promise.resolve(r.data);return zn(l.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Zo.create=(e,n)=>new Zo({type:e,typeName:Le.ZodPromise,...ze(n)});class tl extends He{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Le.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(n){const{status:r,ctx:l}=this._processInputParams(n),o=this._def.effect||null,a={addIssue:u=>{fe(l,u),u.fatal?r.abort():r.dirty()},get path(){return l.path}};if(a.addIssue=a.addIssue.bind(a),o.type==="preprocess"){const u=o.transform(l.data,a);if(l.common.async)return Promise.resolve(u).then(async d=>{if(r.value==="aborted")return Pe;const f=await this._def.schema._parseAsync({data:d,path:l.path,parent:l});return f.status==="aborted"?Pe:f.status==="dirty"||r.value==="dirty"?Gl(f.value):f});{if(r.value==="aborted")return Pe;const d=this._def.schema._parseSync({data:u,path:l.path,parent:l});return d.status==="aborted"?Pe:d.status==="dirty"||r.value==="dirty"?Gl(d.value):d}}if(o.type==="refinement"){const u=d=>{const f=o.refinement(d,a);if(l.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(l.common.async===!1){const d=this._def.schema._parseSync({data:l.data,path:l.path,parent:l});return d.status==="aborted"?Pe:(d.status==="dirty"&&r.dirty(),u(d.value),{status:r.value,value:d.value})}else return this._def.schema._parseAsync({data:l.data,path:l.path,parent:l}).then(d=>d.status==="aborted"?Pe:(d.status==="dirty"&&r.dirty(),u(d.value).then(()=>({status:r.value,value:d.value}))))}if(o.type==="transform")if(l.common.async===!1){const u=this._def.schema._parseSync({data:l.data,path:l.path,parent:l});if(!Gi(u))return Pe;const d=o.transform(u.value,a);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:d}}else return this._def.schema._parseAsync({data:l.data,path:l.path,parent:l}).then(u=>Gi(u)?Promise.resolve(o.transform(u.value,a)).then(d=>({status:r.value,value:d})):Pe);Ze.assertNever(o)}}tl.create=(e,n,r)=>new tl({schema:e,typeName:Le.ZodEffects,effect:n,...ze(r)});tl.createWithPreprocess=(e,n,r)=>new tl({schema:n,effect:{type:"preprocess",transform:e},typeName:Le.ZodEffects,...ze(r)});class Jr extends He{_parse(n){return this._getType(n)===xe.undefined?zn(void 0):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}Jr.create=(e,n)=>new Jr({innerType:e,typeName:Le.ZodOptional,...ze(n)});class nl extends He{_parse(n){return this._getType(n)===xe.null?zn(null):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}nl.create=(e,n)=>new nl({innerType:e,typeName:Le.ZodNullable,...ze(n)});class Lc extends He{_parse(n){const{ctx:r}=this._processInputParams(n);let l=r.data;return r.parsedType===xe.undefined&&(l=this._def.defaultValue()),this._def.innerType._parse({data:l,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Lc.create=(e,n)=>new Lc({innerType:e,typeName:Le.ZodDefault,defaultValue:typeof n.default=="function"?n.default:()=>n.default,...ze(n)});class Mc extends He{_parse(n){const{ctx:r}=this._processInputParams(n),l={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:l.data,path:l.path,parent:{...l}});return Uo(o)?o.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Cr(l.common.issues)},input:l.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Cr(l.common.issues)},input:l.data})}}removeCatch(){return this._def.innerType}}Mc.create=(e,n)=>new Mc({innerType:e,typeName:Le.ZodCatch,catchValue:typeof n.catch=="function"?n.catch:()=>n.catch,...ze(n)});class Cm extends He{_parse(n){if(this._getType(n)!==xe.nan){const l=this._getOrReturnCtx(n);return fe(l,{code:le.invalid_type,expected:xe.nan,received:l.parsedType}),Pe}return{status:"valid",value:n.data}}}Cm.create=e=>new Cm({typeName:Le.ZodNaN,...ze(e)});class Gj extends He{_parse(n){const{ctx:r}=this._processInputParams(n),l=r.data;return this._def.type._parse({data:l,path:r.path,parent:r})}unwrap(){return this._def.type}}class md extends He{_parse(n){const{status:r,ctx:l}=this._processInputParams(n);if(l.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:l.data,path:l.path,parent:l});return a.status==="aborted"?Pe:a.status==="dirty"?(r.dirty(),Gl(a.value)):this._def.out._parseAsync({data:a.value,path:l.path,parent:l})})();{const o=this._def.in._parseSync({data:l.data,path:l.path,parent:l});return o.status==="aborted"?Pe:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:l.path,parent:l})}}static create(n,r){return new md({in:n,out:r,typeName:Le.ZodPipeline})}}class Oc extends He{_parse(n){const r=this._def.innerType._parse(n),l=o=>(Gi(o)&&(o.value=Object.freeze(o.value)),o);return Uo(r)?r.then(o=>l(o)):l(r)}unwrap(){return this._def.innerType}}Oc.create=(e,n)=>new Oc({innerType:e,typeName:Le.ZodReadonly,...ze(n)});var Le;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Le||(Le={}));const Se=Gr.create,en=Ji.create,my=Ac.create;ni.create;const Pt=dr.create,et=wt.create;Ho.create;Wo.create;_i.create;const nn=el.create;Zo.create;Jr.create;nl.create;const na=["proposed","backlog","todo","in_progress","pending","done"],gd=["decision","external","dependency"],yd=["high","medium","low"],gy=["human","ai"],Jj=["planned","active","done"],e2=5151,Em=Se().datetime({offset:!0,message:"ISO 8601 (タイムゾーン付き) の文字列で指定する (例: 2026-06-10T10:00:00+09:00)"}),Nm=Se().regex(/^[A-Za-z0-9_]+-\d{3,}$/,"タスク ID は <接頭辞>-<3 桁以上の数字> 形式 (例: TASK-001)"),xs=Se().min(1).regex(/^[^\r\n]+$/,"1 行で書く (改行不可)"),t2=et({id:Se().min(1),type:nn(gy)}),n2=et({id:Se().min(1),label:Se().min(1),hideWhenEmpty:my().optional(),wipLimit:en().int().positive().optional()}),r2=et({id:Se().min(1),title:Se().min(1),order:en().int().default(0),status:nn(Jj).default("planned")}),i2=et({name:Se().min(1),title:Se().optional(),body:Se().optional(),labels:Pt(Se().min(1)).optional(),priority:nn(yd).optional()}).strict(),yy=et({projectName:Se().min(1).default("project"),idPrefix:Se().regex(/^[A-Za-z0-9_]+$/,"idPrefix は英数字とアンダースコアのみ").default("TASK"),port:en().int().min(1).max(65535).default(e2),aiTaskCreation:nn(["free","proposal"]).default("free"),members:Pt(t2).min(1).default([{id:"kurata",type:"human"},{id:"fujimaki",type:"human"},{id:"claude",type:"ai"},{id:"codex",type:"ai"}]),columns:Pt(n2).min(1).default([{id:"proposed",label:"提案",hideWhenEmpty:!0},{id:"backlog",label:"Backlog"},{id:"todo",label:"Todo"},{id:"in_progress",label:"In Progress",wipLimit:2},{id:"pending",label:"Pending"},{id:"done",label:"Done"}]),instructionTemplate:Se().default("タスク {id} の内容を {path} で確認し、CLAUDE.md の運用規約に従って実行してください。"),aiConfigPaths:et({settingsFiles:Pt(Se()).default([".claude/settings.json",".claude/settings.local.json"]),browseDirs:Pt(Se()).default([".claude/skills",".claude/rules",".claude/agents"]),rootFiles:Pt(Se()).default(["CLAUDE.md"])}).default({}),milestones:Pt(r2).default([]),taskTemplates:Pt(i2).default([]),docsDirs:Pt(Se().min(1)).default([])}),l2=et({id:Nm,title:xs,status:nn(na),assignee:Se().min(1).nullable().default(null),created_by:Se().min(1),priority:nn(yd).default("medium"),labels:Pt(Se().min(1)).default([]),blocked_type:nn(gd).nullable().default(null),blocked_reason:Se().min(1).nullable().default(null),depends_on:Pt(Nm).default([]),milestone:Se().min(1).nullable().default(null),related_docs:Pt(Se().min(1)).optional(),created:Em,updated:Em}).strict().superRefine((e,n)=>{e.status==="pending"&&(e.blocked_type===null&&n.addIssue({code:le.custom,path:["blocked_type"],message:"pending のタスクは blocked_type (decision / external / dependency) が必須"}),e.blocked_reason===null&&n.addIssue({code:le.custom,path:["blocked_reason"],message:"pending のタスクは blocked_reason (誰の・何待ちか) が必須"}))}),s2=["invalid_task","duplicate_id","unregistered_member","invalid_config","mode_violation"],o2=et({kind:nn(s2),path:Se(),taskId:Se().nullable(),message:Se()}),a2=et({frontmatter:l2,path:Se(),body:Se(),raw:Se(),mtimeMs:en()});et({tasks:Pt(a2),config:yy,warnings:Pt(o2)});et({title:xs,created_by:Se().min(1),assignee:Se().min(1).nullable().optional(),priority:nn(yd).optional(),labels:Pt(Se().min(1)).optional(),body:Se().optional()}).strict();et({status:nn(na),blocked_type:nn(gd).nullable().optional(),blocked_reason:xs.nullable().optional()}).strict().superRefine((e,n)=>{e.status!=="pending"&&(e.blocked_type!=null&&n.addIssue({code:le.custom,path:["blocked_type"],message:"pending 以外への移動では blocked_type を指定しない"}),e.blocked_reason!=null&&n.addIssue({code:le.custom,path:["blocked_reason"],message:"pending 以外への移動では blocked_reason を指定しない"}))});et({content:Se().min(1),baseMtimeMs:en()}).strict();et({error:Se(),serverContent:Se(),serverMtimeMs:en()});et({type:nn(["connected","change"])});const u2=et({proposed:en().int().nonnegative(),backlog:en().int().nonnegative(),todo:en().int().nonnegative(),in_progress:en().int().nonnegative(),pending:en().int().nonnegative(),done:en().int().nonnegative()}),c2=et({name:Se().min(1),dir:Se().min(1),root:Se().min(1),statusCounts:u2,warningCount:en().int().nonnegative(),wipExceeded:my()}),d2=et({id:Se().min(1),title:Se(),status:nn(["in_progress","pending","proposed"]),assignee:Se().nullable(),blocked_type:nn(gd).nullable(),blocked_reason:Se().nullable(),project:Se().min(1)});et({projects:Pt(c2),attention:Pt(d2)});et({mode:nn(["board","overview"])});et({reason:xs}).strict();et({path:Se(),content:Se(),mtimeMs:en()});et({path:Se().min(1),content:Se(),baseMtimeMs:en()}).strict();et({path:Se(),name:Se().nullable(),description:Se().nullable()});et({hash:Se(),subject:Se(),authorDate:Se()});et({member:Se().min(1),message:xs}).strict();et({}).strict();const f2="_section_1cnyn_1",p2="_sectionTitle_1cnyn_5",h2="_modeBox_1cnyn_14",m2="_memberRow_1cnyn_22",g2="_memberId_1cnyn_36",y2="_removeBtn_1cnyn_40",v2="_addBtn_1cnyn_48",x2="_advanced_1cnyn_57",k2="_jsonEditor_1cnyn_65",w2="_saved_1cnyn_76",_2="_reloadBtn_1cnyn_82",Gn={section:f2,sectionTitle:p2,modeBox:h2,memberRow:m2,memberId:g2,removeBtn:y2,addBtn:v2,advanced:x2,jsonEditor:k2,saved:w2,reloadBtn:_2};let Tm=0;function jm(){return Tm+=1,`m${Tm}`}function b2({onClose:e,onSaved:n}){const{t:r,lang:l,setLang:o}=gt(),[a,u]=C.useState(null),[d,f]=C.useState(null),[h,y]=C.useState(null),[m,k]=C.useState(""),[x,b]=C.useState(""),[j,D]=C.useState(""),[S,M]=C.useState("free"),[N,$]=C.useState([]),[H,L]=C.useState(""),[Y,te]=C.useState(!1),[Q,I]=C.useState(!1),[q,X]=C.useState(null),[G,K]=C.useState(!1),F=C.useCallback(async()=>{const{config:U,mtimeMs:oe}=await oh(),_=yy.parse(U);u(U),f(oe),k(_.projectName),b(_.idPrefix),D(_.instructionTemplate),M(_.aiTaskCreation),$(_.members.map(A=>({key:jm(),id:A.id,type:A.type}))),L(JSON.stringify({columns:_.columns,milestones:_.milestones,aiConfigPaths:_.aiConfigPaths},null,2)),K(!1),X(null)},[]);C.useEffect(()=>{let U=!0;return(async()=>{try{await F()}catch(oe){U&&y(oe instanceof Error?oe.message:"load failed")}})(),()=>{U=!1}},[F]);const pe=async()=>{try{await F()}catch(U){X(U instanceof Error?U.message:r("settings.loadError"))}},ye=async()=>{if(a){te(!0),I(!1),X(null),K(!1);try{let U={};H.trim().length>0&&(U=JSON.parse(H));const oe={...a,projectName:m,idPrefix:x,instructionTemplate:j,aiTaskCreation:S,members:N.map(_=>({id:_.id,type:_.type})),...U};await Ix(oe,d);try{const{mtimeMs:_}=await oh();f(_)}catch{}I(!0),n(),window.setTimeout(()=>I(!1),2e3)}catch(U){U instanceof ls?(f(U.serverMtimeMs),K(!0),X(r("settings.conflict"))):X(U instanceof Error?U.message:r("settings.error"))}finally{te(!1)}}};return v.jsx(fs,{title:r("settings.title"),onClose:e,wide:!0,children:h?v.jsx("p",{className:ce.error,children:h==="load failed"?r("settings.loadError"):h}):a?v.jsxs(v.Fragment,{children:[q&&v.jsxs("p",{className:ce.error,role:"alert",children:[q,G&&v.jsxs(v.Fragment,{children:[" ",v.jsx("button",{type:"button",className:Gn.reloadBtn,onClick:()=>void pe(),children:r("settings.reload")})]})]}),v.jsxs("div",{className:Gn.modeBox,children:[v.jsx("label",{className:ce.label,htmlFor:"ai-mode",children:r("settings.aiTaskCreation")}),v.jsxs("select",{id:"ai-mode",className:ce.select,value:S,onChange:U=>M(U.target.value),children:[v.jsx("option",{value:"free",children:r("settings.aiTaskCreation.free")}),v.jsx("option",{value:"proposal",children:r("settings.aiTaskCreation.proposal")})]})]}),v.jsxs("div",{className:ce.field,children:[v.jsx("label",{className:ce.label,htmlFor:"set-lang",children:r("settings.language")}),v.jsx("select",{id:"set-lang",className:ce.select,value:l,onChange:U=>o(U.target.value),children:Uc.map(U=>v.jsx("option",{value:U,children:r(U==="en"?"settings.language.en":"settings.language.ja")},U))})]}),v.jsxs("div",{className:ce.field,children:[v.jsx("label",{className:ce.label,htmlFor:"set-project",children:r("settings.projectName")}),v.jsx("input",{id:"set-project",className:ce.input,value:m,onChange:U=>k(U.target.value.replace(/[\r\n]/g,""))})]}),v.jsxs("div",{className:ce.field,children:[v.jsx("label",{className:ce.label,htmlFor:"set-prefix",children:r("settings.idPrefix")}),v.jsx("input",{id:"set-prefix",className:ce.input,value:x,onChange:U=>b(U.target.value.replace(/[\r\n]/g,""))})]}),v.jsxs("div",{className:ce.field,children:[v.jsx("label",{className:ce.label,htmlFor:"set-instruction",children:r("settings.instructionTemplate")}),v.jsx("input",{id:"set-instruction",className:ce.input,value:j,onChange:U=>D(U.target.value.replace(/[\r\n]/g,""))})]}),v.jsxs("div",{className:Gn.section,children:[v.jsx("p",{className:Gn.sectionTitle,children:r("settings.members")}),N.map((U,oe)=>v.jsxs("div",{className:Gn.memberRow,children:[v.jsx("input",{className:Gn.memberId,value:U.id,onChange:_=>$(A=>A.map((V,E)=>E===oe?{...V,id:_.target.value.replace(/[\r\n]/g,"")}:V))}),v.jsx("select",{value:U.type,onChange:_=>$(A=>A.map((V,E)=>E===oe?{...V,type:_.target.value}:V)),children:gy.map(_=>v.jsx("option",{value:_,children:_},_))}),v.jsx("button",{type:"button",className:Gn.removeBtn,onClick:()=>$(_=>_.filter((A,V)=>V!==oe)),children:"×"})]},U.key)),v.jsx("button",{type:"button",className:Gn.addBtn,onClick:()=>$(U=>[...U,{key:jm(),id:"",type:"ai"}]),children:r("settings.members.add")})]}),v.jsxs("details",{className:Gn.advanced,children:[v.jsx("summary",{children:r("settings.advanced")}),v.jsx("textarea",{className:Gn.jsonEditor,value:H,onChange:U=>L(U.target.value),spellCheck:!1})]}),v.jsxs("div",{className:ce.actions,children:[Q&&v.jsx("span",{className:Gn.saved,children:r("settings.saved")}),v.jsx("button",{type:"button",className:ce.btn,onClick:e,children:r("common.cancel")}),v.jsx("button",{type:"button",className:`${ce.btn} ${ce.btnPrimary}`,onClick:()=>void ye(),disabled:Y,children:r(Y?"settings.saving":"settings.save")})]})]}):v.jsx("p",{children:r("board.loading")})})}const vy=1440*60*1e3,S2=5,C2=/未完了|未完|完了予定|完了見込|完了せず|undone|not\s+(done|finished|closed)|n['’]t\s+(done|finished|closed)/i,E2=/完了(した|しました|です|済)?[。.!!]?\s*$/,N2=/\b(done|closed|finished)\b[.!]?\s*$/i;function cc(e){return Math.max(0,Math.round(e/vy*10)/10)}function Ao(e){const n=Date.parse(e);return Number.isNaN(n)?null:n}function T2(e){const n=e.trim();return C2.test(n)?!1:E2.test(n)||N2.test(n)}function j2(e){const n=og(e.body);for(let r=n.length-1;r>=0;r--)if(T2(n[r].message)){const l=Date.parse(`${n[r].date}T${n[r].time}`);if(!Number.isNaN(l))return l}return Ao(e.updated)}function zc(e){const n=new Date(e),r=n.getFullYear(),l=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");return`${r}-${l}-${o}`}function Im(e){const n=new Date(e);n.setHours(0,0,0,0);const r=(n.getDay()+6)%7;return n.setDate(n.getDate()-r),zc(n.getTime())}function I2(e){const n=e.length;if(n===0)return 0;const r=Math.floor(n/2);return n%2===0?(e[r-1]+e[r])/2:e[r]}function Dm(e){return[...e.entries()].map(([n,r])=>({key:n,count:r})).sort((n,r)=>n.key.localeCompare(r.key))}function D2(e,n,r={}){const l=r.maxBottlenecks??S2,o=e.filter(b=>b.status==="done"),a=new Map,u=new Map,d=[],f=new Map;for(const b of o){const j=j2(b);if(f.set(b.assignee,(f.get(b.assignee)??0)+1),j===null)continue;a.set(zc(j),(a.get(zc(j))??0)+1),u.set(Im(j),(u.get(Im(j))??0)+1);const D=Ao(b.created);D!==null&&j>=D&&d.push((j-D)/vy)}const h=[...d].sort((b,j)=>b-j),y={sampleSize:h.length,medianDays:h.length>0?Math.round(I2(h)*10)/10:null,meanDays:h.length>0?Math.round(h.reduce((b,j)=>b+j,0)/h.length*10)/10:null},m=na.map(b=>{const j=e.filter(M=>M.status===b),D=j.map(M=>Ao(M.updated)).filter(M=>M!==null).map(M=>n-M);if(D.length===0)return{status:b,count:j.length,avgDays:null,maxDays:null};const S=D.reduce((M,N)=>M+N,0)/D.length;return{status:b,count:j.length,avgDays:cc(S),maxDays:cc(Math.max(...D))}}),k=[...f.entries()].map(([b,j])=>({member:b,count:j})).sort((b,j)=>j.count-b.count||(b.member??"").localeCompare(j.member??"")),x=e.filter(b=>b.status==="pending").map(b=>{const j=Ao(b.updated);return{id:b.id,title:b.title,blockedType:b.blocked_type,blockedReason:b.blocked_reason,dwellDays:j!==null?cc(n-j):0}}).sort((b,j)=>j.dwellDays-b.dwellDays||b.id.localeCompare(j.id,"en",{numeric:!0})).slice(0,l);return{totalTasks:e.length,doneTasks:o.length,completionsByDay:Dm(a),completionsByWeek:Dm(u),cycleTime:y,dwellByStatus:m,completionsByMember:k,bottlenecks:x}}const R2="_view_1nb8r_1",A2="_card_1nb8r_11",P2="_cardHead_1nb8r_19",L2="_cardTitle_1nb8r_27",M2="_note_1nb8r_37",O2="_metrics_1nb8r_45",z2="_metric_1nb8r_45",F2="_metricValue_1nb8r_58",$2="_metricLabel_1nb8r_65",B2="_metricSub_1nb8r_70",U2="_toggle_1nb8r_76",V2="_toggleBtn_1nb8r_83",H2="_toggleActive_1nb8r_96",W2="_chartWrap_1nb8r_102",Z2="_chart_1nb8r_102",K2="_bar_1nb8r_114",q2="_barCount_1nb8r_118",Q2="_barLabel_1nb8r_124",Y2="_table_1nb8r_131",X2="_bId_1nb8r_159",G2="_empty_1nb8r_165",J2="_srOnly_1nb8r_172",Ne={view:R2,card:A2,cardHead:P2,cardTitle:L2,note:M2,metrics:O2,metric:z2,metricValue:F2,metricLabel:$2,metricSub:B2,toggle:U2,toggleBtn:V2,toggleActive:H2,chartWrap:W2,chart:Z2,bar:K2,barCount:q2,barLabel:Q2,table:Y2,bId:X2,empty:G2,srOnly:J2},eI=5,tI={decision:"blocked.decision",external:"blocked.external",dependency:"blocked.dependency"};function nI({board:e}){const{t:n}=gt(),[r]=C.useState(()=>Date.now()),l=C.useMemo(()=>{const k=new Map(e.config.columns.map(x=>[x.id,x.label]));return x=>k.get(x)??x},[e.config.columns]),o=k=>k===null?"—":n(tI[k]),a=C.useMemo(()=>e.tasks.map(k=>({id:k.frontmatter.id,title:k.frontmatter.title,status:k.frontmatter.status,assignee:k.frontmatter.assignee,blocked_type:k.frontmatter.blocked_type,blocked_reason:k.frontmatter.blocked_reason,created:k.frontmatter.created,updated:k.frontmatter.updated,body:k.body})),[e.tasks]),u=C.useMemo(()=>D2(a,r,{maxBottlenecks:eI}),[a,r]),[d,f]=C.useState("day");if(u.totalTasks===0)return v.jsx("div",{className:Ne.view,children:v.jsx("div",{className:Ne.empty,children:n("stats.empty")})});const h=d==="day"?u.completionsByDay:u.completionsByWeek,y=h.reduce((k,x)=>Math.max(k,x.count),0),m=k=>k===null?"—":n("stats.days",{n:k});return v.jsxs("div",{className:Ne.view,children:[v.jsxs("section",{className:Ne.card,"aria-labelledby":"stats-summary",children:[v.jsx("h2",{id:"stats-summary",className:Ne.cardTitle,children:n("stats.summary.title")}),v.jsxs("div",{className:Ne.metrics,children:[v.jsxs("div",{className:Ne.metric,children:[v.jsx("span",{className:Ne.metricValue,children:u.totalTasks}),v.jsx("span",{className:Ne.metricLabel,children:n("stats.summary.total")})]}),v.jsxs("div",{className:Ne.metric,children:[v.jsx("span",{className:Ne.metricValue,children:u.doneTasks}),v.jsx("span",{className:Ne.metricLabel,children:n("stats.summary.done")})]})]})]}),v.jsxs("section",{className:Ne.card,"aria-labelledby":"stats-completions",children:[v.jsxs("div",{className:Ne.cardHead,children:[v.jsx("h2",{id:"stats-completions",className:Ne.cardTitle,children:n("stats.completions.title")}),v.jsxs("div",{className:Ne.toggle,role:"group","aria-label":n("stats.completions.granularity"),children:[v.jsx("button",{type:"button",className:`${Ne.toggleBtn} ${d==="day"?Ne.toggleActive:""}`,"aria-pressed":d==="day",onClick:()=>f("day"),children:n("stats.completions.byDay")}),v.jsx("button",{type:"button",className:`${Ne.toggleBtn} ${d==="week"?Ne.toggleActive:""}`,"aria-pressed":d==="week",onClick:()=>f("week"),children:n("stats.completions.byWeek")})]})]}),h.length===0?v.jsx("p",{className:Ne.note,children:n("stats.completions.empty")}):v.jsx(rI,{bins:h,maxCount:y,ariaLabel:k=>n("stats.completions.barAria",k)})]}),v.jsxs("section",{className:Ne.card,"aria-labelledby":"stats-cycle",children:[v.jsx("h2",{id:"stats-cycle",className:Ne.cardTitle,children:n("stats.cycleTime.title")}),u.cycleTime.sampleSize===0?v.jsx("p",{className:Ne.note,children:n("stats.cycleTime.empty")}):v.jsxs("div",{className:Ne.metrics,children:[v.jsxs("div",{className:Ne.metric,children:[v.jsx("span",{className:Ne.metricValue,children:m(u.cycleTime.medianDays)}),v.jsx("span",{className:Ne.metricLabel,children:n("stats.cycleTime.median")})]}),v.jsxs("div",{className:Ne.metric,children:[v.jsx("span",{className:Ne.metricValue,children:m(u.cycleTime.meanDays)}),v.jsx("span",{className:Ne.metricLabel,children:n("stats.cycleTime.mean")})]}),v.jsx("div",{className:Ne.metric,children:v.jsx("span",{className:Ne.metricSub,children:n("stats.cycleTime.sample",{n:u.cycleTime.sampleSize})})})]})]}),v.jsxs("section",{className:Ne.card,"aria-labelledby":"stats-dwell",children:[v.jsx("h2",{id:"stats-dwell",className:Ne.cardTitle,children:n("stats.dwell.title")}),v.jsx("p",{className:Ne.note,children:n("stats.dwell.note")}),v.jsxs("table",{className:Ne.table,children:[v.jsx("thead",{children:v.jsxs("tr",{children:[v.jsx("th",{scope:"col",children:n("stats.dwell.status")}),v.jsx("th",{scope:"col",children:n("stats.dwell.count")}),v.jsx("th",{scope:"col",children:n("stats.dwell.avg")}),v.jsx("th",{scope:"col",children:n("stats.dwell.max")})]})}),v.jsx("tbody",{children:u.dwellByStatus.filter(k=>k.count>0).map(k=>v.jsxs("tr",{children:[v.jsx("td",{children:l(k.status)}),v.jsx("td",{children:k.count}),v.jsx("td",{children:m(k.avgDays)}),v.jsx("td",{children:m(k.maxDays)})]},k.status))})]})]}),v.jsxs("section",{className:Ne.card,"aria-labelledby":"stats-member",children:[v.jsx("h2",{id:"stats-member",className:Ne.cardTitle,children:n("stats.member.title")}),u.completionsByMember.length===0?v.jsx("p",{className:Ne.note,children:n("stats.member.empty")}):v.jsxs("table",{className:Ne.table,children:[v.jsx("thead",{children:v.jsxs("tr",{children:[v.jsx("th",{scope:"col",children:n("stats.member.name")}),v.jsx("th",{scope:"col",children:n("stats.summary.done")})]})}),v.jsx("tbody",{children:u.completionsByMember.map(k=>v.jsxs("tr",{children:[v.jsx("td",{children:k.member??n("stats.member.unassigned")}),v.jsx("td",{children:k.count})]},k.member??"(unassigned)"))})]})]}),v.jsxs("section",{className:Ne.card,"aria-labelledby":"stats-bottleneck",children:[v.jsx("h2",{id:"stats-bottleneck",className:Ne.cardTitle,children:n("stats.bottlenecks.title")}),u.bottlenecks.length===0?v.jsx("p",{className:Ne.note,children:n("stats.bottlenecks.empty")}):v.jsxs("table",{className:Ne.table,children:[v.jsx("thead",{children:v.jsxs("tr",{children:[v.jsx("th",{scope:"col",children:n("stats.bottlenecks.task")}),v.jsx("th",{scope:"col",children:n("stats.bottlenecks.dwell")}),v.jsx("th",{scope:"col",children:n("stats.bottlenecks.type")}),v.jsx("th",{scope:"col",children:n("stats.bottlenecks.reason")})]})}),v.jsx("tbody",{children:u.bottlenecks.map(k=>v.jsxs("tr",{children:[v.jsxs("td",{children:[v.jsx("span",{className:Ne.bId,children:k.id})," ",k.title]}),v.jsx("td",{children:n("stats.days",{n:k.dwellDays})}),v.jsx("td",{children:o(k.blockedType)}),v.jsx("td",{children:k.blockedReason??"—"})]},k.id))})]})]})]})}function rI({bins:e,maxCount:n,ariaLabel:r}){const{t:l}=gt(),o=28,a=8,u=120,d=28,f=e.length*(o+a)+a,h=u+d;return v.jsxs("div",{className:Ne.chartWrap,children:[v.jsx("svg",{className:Ne.chart,viewBox:`0 0 ${f} ${h}`,role:"img","aria-label":l("stats.completions.title"),preserveAspectRatio:"xMinYMid meet",children:e.map((y,m)=>{const k=n>0?Math.max(2,Math.round(y.count/n*u)):2,x=a+m*(o+a),b=u-k;return v.jsxs("g",{children:[v.jsx("title",{children:r(y)}),v.jsx("rect",{x,y:b,width:o,height:k,className:Ne.bar,rx:2}),v.jsx("text",{x:x+o/2,y:b-4,className:Ne.barCount,textAnchor:"middle",children:y.count}),v.jsx("text",{x:x+o/2,y:u+16,className:Ne.barLabel,textAnchor:"middle",children:y.key.slice(5)})]},y.key)})}),v.jsxs("table",{className:Ne.srOnly,children:[v.jsx("caption",{children:l("stats.completions.title")}),v.jsx("thead",{children:v.jsxs("tr",{children:[v.jsx("th",{scope:"col",children:l("stats.completions.date")}),v.jsx("th",{scope:"col",children:l("stats.summary.done")})]})}),v.jsx("tbody",{children:e.map(y=>v.jsxs("tr",{children:[v.jsx("td",{children:y.key}),v.jsx("td",{children:y.count})]},y.key))})]})]})}function iI(e,n){const r=e.split(`
|
|
81
|
-
`),l=n.split(`
|
|
82
|
-
`),o=r.length,a=l.length,u=Array.from({length:o+1},()=>new Array(a+1).fill(0));for(let y=o-1;y>=0;y--)for(let m=a-1;m>=0;m--)u[y][m]=r[y]===l[m]?u[y+1][m+1]+1:Math.max(u[y+1][m],u[y][m+1]);const d=[];let f=0,h=0;for(;f<o&&h<a;)r[f]===l[h]?(d.push({op:"equal",text:r[f]}),f++,h++):u[f+1][h]>=u[f][h+1]?(d.push({op:"remove",text:r[f]}),f++):(d.push({op:"add",text:l[h]}),h++);for(;f<o;)d.push({op:"remove",text:r[f++]});for(;h<a;)d.push({op:"add",text:l[h++]});return d}const lI="_intro_9mryh_1",sI="_diff_9mryh_6",oI="_line_9mryh_17",aI="_sign_9mryh_24",uI="_equal_9mryh_30",cI="_add_9mryh_34",dI="_remove_9mryh_39",fI="_legend_9mryh_44",qr={intro:lI,diff:sI,line:oI,sign:aI,equal:uI,add:cI,remove:dI,legend:fI};function pI({serverContent:e,localContent:n,onClose:r,onOverwrite:l,onReload:o}){const{t:a}=gt(),u=C.useMemo(()=>iI(e,n),[e,n]);return v.jsxs(fs,{title:a("conflict.title"),onClose:r,wide:!0,children:[v.jsx("p",{className:qr.intro,children:a("conflict.intro")}),v.jsx("div",{className:qr.diff,role:"region","aria-label":a("conflict.diffAria"),children:u.map((d,f)=>v.jsxs("div",{className:`${qr.line} ${d.op==="add"?qr.add:d.op==="remove"?qr.remove:qr.equal}`,children:[v.jsx("span",{className:qr.sign,children:d.op==="add"?"+":d.op==="remove"?"-":" "}),v.jsx("span",{children:d.text})]},f))}),v.jsxs("p",{className:qr.legend,children:[v.jsx("span",{children:a("conflict.legend.add")}),v.jsx("span",{children:a("conflict.legend.remove")})]}),v.jsxs("div",{className:ce.actions,children:[v.jsx("button",{type:"button",className:ce.btn,onClick:o,children:a("conflict.reload")}),v.jsx("button",{type:"button",className:`${ce.btn} ${ce.btnDanger}`,onClick:l,children:a("conflict.overwrite")})]})]})}const hI="_overlay_1vdme_1",mI="_panel_1vdme_10",gI="_header_1vdme_20",yI="_id_1vdme_28",vI="_title_1vdme_34",xI="_copyBtn_1vdme_41",kI="_close_1vdme_55",wI="_tabs_1vdme_68",_I="_tab_1vdme_68",bI="_tabActive_1vdme_88",SI="_body_1vdme_93",CI="_markdown_1vdme_99",EI="_editor_1vdme_134",NI="_timeline_1vdme_147",TI="_entry_1vdme_156",jI="_entryMeta_1vdme_175",II="_entryMember_1vdme_182",DI="_entryMessage_1vdme_187",RI="_emptyTimeline_1vdme_191",AI="_footer_1vdme_196",PI="_dirty_1vdme_204",LI="_error_1vdme_209",MI="_spacer_1vdme_215",OI="_btn_1vdme_219",zI="_btnPrimary_1vdme_230",FI="_commentInput_1vdme_241",$I="_commentField_1vdme_256",BI="_docsHint_1vdme_264",UI="_docsList_1vdme_274",VI="_docRow_1vdme_283",HI="_docLink_1vdme_289",WI="_docLinkActive_1vdme_308",ZI="_docBroken_1vdme_312",KI="_docRemove_1vdme_321",qI="_docsActions_1vdme_336",QI="_docsPicker_1vdme_340",YI="_docsPreview_1vdme_350",XI="_docsPreviewPath_1vdme_355",ue={overlay:hI,panel:mI,header:gI,id:yI,title:vI,copyBtn:xI,close:kI,tabs:wI,tab:_I,tabActive:bI,body:SI,markdown:CI,editor:EI,timeline:NI,entry:TI,entryMeta:jI,entryMember:II,entryMessage:DI,emptyTimeline:RI,footer:AI,dirty:PI,error:LI,spacer:MI,btn:OI,btnPrimary:zI,commentInput:FI,commentField:$I,docsHint:BI,docsList:UI,docRow:VI,docLink:HI,docLinkActive:WI,docBroken:ZI,docRemove:KI,docsActions:qI,docsPicker:QI,docsPreview:YI,docsPreviewPath:XI},Rm="aizuchi.commentMember";function Fc(e){const n=[];for(const r of e)r.type==="file"?n.push(r.path):r.children&&n.push(...Fc(r.children));return n}function GI({task:e,instructionTemplate:n,members:r,docsEnabled:l=!1,onClose:o,onSaved:a}){var be;const{t:u}=gt(),[d,f]=C.useState("preview"),[h,y]=C.useState(e.raw),[m,k]=C.useState(e.mtimeMs),[x,b]=C.useState(!1),[j,D]=C.useState(null),[S,M]=C.useState(null),[N,$]=C.useState(null),H=typeof localStorage<"u"?localStorage.getItem(Rm):null,[L,Y]=C.useState(H&&r.some(Z=>Z.id===H)?H:((be=r[0])==null?void 0:be.id)??""),[te,Q]=C.useState(""),[I,q]=C.useState(null),[X,G]=C.useState(null),[K,F]=C.useState(!1),[pe,ye]=C.useState(!1),[U,oe]=C.useState(null),[_,A]=C.useState(null),V=C.useRef(null),[E,ke]=C.useState(null),[je,me]=C.useState(!1),[De,Re]=C.useState(null),[Me,Be]=C.useState(null),[Dt,rn]=C.useState(!1),[Fn,Lt]=C.useState(null),yn=(De==null?void 0:De.raw)??e.raw,_t=[...new Set((De==null?void 0:De.relatedDocs)??e.frontmatter.related_docs??[])],$n=l||_t.length>0,qt=h!==e.raw;C.useEffect(()=>{De!==null&&e.raw===De.raw&&Re(null)},[e.raw,De]);const Qt=C.useRef(e.raw);C.useEffect(()=>{e.raw!==Qt.current&&(y(Z=>Z===Qt.current?e.raw:Z),k(Z=>h===Qt.current?e.mtimeMs:Z),Qt.current=e.raw)},[e.raw,e.mtimeMs]);const yt=async(Z=m)=>{b(!0),D(null);try{const ae=await lh(e.frontmatter.id,h,Z);k(ae.mtimeMs),M(null),a(),f("preview")}catch(ae){ae instanceof ls?M({serverContent:ae.serverContent,serverMtimeMs:ae.serverMtimeMs}):D(ae instanceof Error?ae.message:u("detail.saveError"))}finally{b(!1)}},Yt=async()=>{const Z=Gw(n,e.frontmatter.id,Jw(e.frontmatter.id)),ae=await vc(Z);$(ae?"done":"failed"),window.setTimeout(()=>$(null),2e3)};C.useEffect(()=>{if(d!=="docs"||X!==null||K)return;let Z=!0;return(async()=>{try{const ae=await Om();Z&&G(ae)}catch{Z&&F(!0)}})(),()=>{Z=!1}},[d,X,K]),C.useEffect(()=>{if(d!=="commits"||Me!==null||Dt)return;let Z=!0;return(async()=>{try{const ae=await Lx(e.frontmatter.id);Z&&Be(ae)}catch{Z&&rn(!0)}})(),()=>{Z=!1}},[d,Me,Dt,e.frontmatter.id]);const En=async Z=>{await vc(Z)&&(Lt(Z),window.setTimeout(()=>Lt($e=>$e===Z?null:$e),2e3))},tr=async Z=>{me(!0),ke(null);try{const ae=mT(yn,Z);if(ae===yn){ke(u("docs.noChange"));return}const $e=await lh(e.frontmatter.id,ae,m);k($e.mtimeMs),Re({raw:$e.raw,relatedDocs:$e.frontmatter.related_docs??[]}),a()}catch(ae){ae instanceof ls?(Re(null),ke(u("docs.conflict")),a()):ke(ae instanceof Error?ae.message:u("detail.saveError"))}finally{me(!1)}},pr=async Z=>{A(Z),V.current=Z,oe(null),ke(null);try{const ae=await zm(Z);if(V.current!==Z)return;oe(ae)}catch(ae){if(V.current!==Z)return;ae instanceof ki&&(ae.status===404||ae.status===403)?oe("broken"):ke(ae instanceof Error?ae.message:u("docs.loadError"))}},hr=async()=>{const Z=te.trim();if(!(Z.length===0||L==="")){q(null);try{await Mx(e.frontmatter.id,L,Z),Q(""),typeof localStorage<"u"&&localStorage.setItem(Rm,L),a()}catch(ae){q(ae instanceof Error?ae.message:u("comment.error"))}}},W=sg(e.body),re=O1(e.body);return v.jsxs("div",{className:ue.overlay,onClick:Z=>{Vc(Z.target,Z.currentTarget)&&o()},children:[v.jsxs("aside",{className:ue.panel,role:"dialog","aria-modal":"true","aria-label":u("detail.aria",{id:e.frontmatter.id}),children:[v.jsxs("header",{className:ue.header,children:[v.jsx("span",{className:ue.id,children:e.frontmatter.id}),v.jsx("span",{className:ue.title,children:e.frontmatter.title}),v.jsx("button",{type:"button",className:ue.copyBtn,onClick:()=>void Yt(),title:u("detail.copyInstruction.title"),children:u(N==="done"?"detail.copyInstruction.done":N==="failed"?"detail.copyInstruction.failed":"detail.copyInstruction")}),v.jsx("button",{type:"button",className:ue.close,onClick:o,"aria-label":u("detail.close"),children:"×"})]}),v.jsxs("nav",{className:ue.tabs,children:[v.jsx("button",{type:"button",className:`${ue.tab} ${d==="preview"?ue.tabActive:""}`,onClick:()=>f("preview"),children:u("detail.tab.preview")}),v.jsx("button",{type:"button",className:`${ue.tab} ${d==="edit"?ue.tabActive:""}`,onClick:()=>f("edit"),children:u("detail.tab.edit")}),v.jsx("button",{type:"button",className:`${ue.tab} ${d==="log"?ue.tabActive:""}`,onClick:()=>f("log"),children:u("detail.tab.log")}),v.jsx("button",{type:"button",className:`${ue.tab} ${d==="comment"?ue.tabActive:""}`,onClick:()=>f("comment"),children:u("comment.title")}),$n&&v.jsx("button",{type:"button",className:`${ue.tab} ${d==="docs"?ue.tabActive:""}`,onClick:()=>f("docs"),children:u("detail.tab.docs")}),v.jsx("button",{type:"button",className:`${ue.tab} ${d==="commits"?ue.tabActive:""}`,onClick:()=>f("commits"),children:u("detail.tab.commits")})]}),v.jsxs("div",{className:ue.body,children:[d==="preview"&&v.jsx("div",{className:ue.markdown,children:v.jsx(jc,{remarkPlugins:[Dc],children:e.body})}),d==="edit"&&v.jsx("textarea",{className:ue.editor,value:h,onChange:Z=>y(Z.target.value),spellCheck:!1,"aria-label":u("detail.editAria")}),d==="log"&&v.jsx(v.Fragment,{children:W.length===0?v.jsx("p",{className:ue.emptyTimeline,children:u("detail.log.empty")}):v.jsx("ol",{className:ue.timeline,children:W.map((Z,ae)=>v.jsxs("li",{className:ue.entry,children:[v.jsxs("span",{className:ue.entryMeta,children:[Z.timestamp??"—",Z.member&&v.jsxs("span",{className:ue.entryMember,children:[" [",Z.member,"]"]})]}),v.jsx("span",{className:ue.entryMessage,children:Z.message})]},ae))})}),d==="comment"&&v.jsxs(v.Fragment,{children:[re.length===0?v.jsx("p",{className:ue.emptyTimeline,children:u("comment.empty")}):v.jsx("ol",{className:ue.timeline,children:re.map((Z,ae)=>v.jsxs("li",{className:ue.entry,children:[v.jsxs("span",{className:ue.entryMeta,children:[Z.timestamp??"—",Z.member&&v.jsxs("span",{className:ue.entryMember,children:[" [",Z.member,"]"]})]}),v.jsx("span",{className:ue.entryMessage,children:Z.message})]},ae))}),I&&v.jsx("p",{className:ue.error,children:I}),v.jsxs("div",{className:ue.commentInput,children:[v.jsx("select",{value:L,onChange:Z=>Y(Z.target.value),"aria-label":"member",children:r.map(Z=>v.jsx("option",{value:Z.id,children:Z.id},Z.id))}),v.jsx("input",{className:ue.commentField,value:te,onChange:Z=>Q(Z.target.value.replace(/[\r\n]/g,"")),placeholder:u("comment.placeholder"),onKeyDown:Z=>{Z.key==="Enter"&&(Z.preventDefault(),hr())}}),v.jsx("button",{type:"button",className:`${ue.btn} ${ue.btnPrimary}`,onClick:()=>void hr(),disabled:te.trim().length===0,children:u("comment.send")})]})]}),d==="docs"&&v.jsxs(v.Fragment,{children:[E&&v.jsx("p",{className:ue.error,role:"alert",children:E}),qt&&v.jsx("p",{className:ue.docsHint,children:u("docs.dirtyHint")}),_t.length===0?v.jsx("p",{className:ue.emptyTimeline,children:u("docs.empty")}):v.jsx("ul",{className:ue.docsList,children:_t.map(Z=>{const ae=X!==null?Fc(X):null,$e=ae!==null&&!ae.includes(Z);return v.jsxs("li",{className:ue.docRow,children:[v.jsx("button",{type:"button",className:`${ue.docLink} ${_===Z?ue.docLinkActive:""}`,onClick:()=>void pr(Z),children:Z}),$e&&v.jsx("span",{className:ue.docBroken,children:u("docs.broken")}),v.jsx("button",{type:"button",className:ue.docRemove,onClick:()=>void tr(_t.filter(ln=>ln!==Z)),disabled:qt||je,"aria-label":`${u("docs.remove")}: ${Z}`,children:"×"})]},Z)})}),v.jsx("div",{className:ue.docsActions,children:v.jsx("button",{type:"button",className:ue.btn,onClick:()=>ye(Z=>!Z),disabled:qt||je,"aria-expanded":pe,children:u("docs.add")})}),pe&&v.jsx("div",{className:ue.docsPicker,children:K?v.jsx("p",{className:ue.error,role:"alert",children:u("docs.treeError")}):X===null?v.jsx("p",{className:ue.emptyTimeline,children:u("board.loading")}):(()=>{const Z=Fc(X).filter(ae=>!_t.includes(ae));return Z.length===0?v.jsx("p",{className:ue.emptyTimeline,children:u("docs.pickerEmpty")}):v.jsx("ul",{className:ue.docsList,"aria-label":u("docs.pickerTitle"),children:Z.map(ae=>v.jsx("li",{className:ue.docRow,children:v.jsx("button",{type:"button",className:ue.docLink,onClick:()=>{ye(!1),tr([..._t,ae])},disabled:qt||je,children:ae})},ae))})})()}),_!==null&&v.jsxs("div",{className:ue.docsPreview,children:[v.jsx("p",{className:ue.docsPreviewPath,children:_}),U===null?v.jsx("p",{className:ue.emptyTimeline,children:u("board.loading")}):U==="broken"?v.jsx("p",{className:ue.docBroken,children:u("docs.broken")}):v.jsx("div",{className:ue.markdown,children:v.jsx(jc,{remarkPlugins:[Dc],children:U.content})})]})]}),d==="commits"&&v.jsx(v.Fragment,{children:Dt?v.jsx("p",{className:ue.error,role:"alert",children:u("commits.error")}):Me===null?v.jsx("p",{className:ue.emptyTimeline,children:u("board.loading")}):Me.length===0?v.jsx("p",{className:ue.emptyTimeline,children:u("commits.empty")}):v.jsx("ol",{className:ue.timeline,children:Me.map(Z=>v.jsxs("li",{className:ue.entry,children:[v.jsxs("span",{className:ue.entryMeta,children:[v.jsx("button",{type:"button",className:ue.docLink,onClick:()=>void En(Z.hash),title:u("commits.copyHash"),children:Fn===Z.hash?u("commits.copied"):Z.hash.slice(0,7)})," · ",Z.authorDate.slice(0,10)]}),v.jsx("span",{className:ue.entryMessage,children:Z.subject})]},Z.hash))})})]}),d==="edit"&&v.jsxs("footer",{className:ue.footer,children:[j?v.jsx("span",{className:ue.error,children:j}):qt?v.jsx("span",{className:ue.dirty,children:u("detail.dirty")}):v.jsx("span",{className:ue.spacer}),v.jsx("button",{type:"button",className:ue.btn,onClick:()=>{y(e.raw),D(null)},disabled:!qt||x,children:u("common.discard")}),v.jsx("button",{type:"button",className:`${ue.btn} ${ue.btnPrimary}`,onClick:()=>void yt(),disabled:!qt||x,children:u(x?"common.saving":"common.save")})]})]}),S&&v.jsx(pI,{serverContent:S.serverContent,localContent:h,onClose:()=>M(null),onOverwrite:()=>void yt(S.serverMtimeMs),onReload:()=>{y(S.serverContent),k(S.serverMtimeMs),M(null),D(null)}})]})}const JI="_banner_1p1es_1",eD="_summary_1p1es_9",tD="_icon_1p1es_22",nD="_list_1p1es_26",rD="_item_1p1es_35",iD="_kind_1p1es_39",lD="_path_1p1es_51",sD="_renameBtn_1p1es_57",Qr={banner:JI,summary:eD,icon:tD,list:nD,item:rD,kind:iD,path:lD,renameBtn:sD},oD={invalid_task:"warning.kind.invalid_task",duplicate_id:"warning.kind.duplicate_id",unregistered_member:"warning.kind.unregistered_member",invalid_config:"warning.kind.invalid_config",mode_violation:"warning.kind.mode_violation"};function aD({warnings:e,onRename:n}){const{t:r}=gt();return e.length===0?null:v.jsxs("details",{className:Qr.banner,open:!0,children:[v.jsxs("summary",{className:Qr.summary,children:[v.jsx("span",{className:Qr.icon,"aria-hidden":"true",children:"⚠"}),r("warning.summary",{n:e.length})]}),v.jsx("ul",{className:Qr.list,children:e.map((l,o)=>v.jsxs("li",{className:Qr.item,children:[v.jsx("span",{className:Qr.kind,children:r(oD[l.kind])}),l.taskId&&v.jsxs("strong",{children:[l.taskId,": "]}),l.message,l.path&&v.jsxs("span",{className:Qr.path,children:[" (",l.path,")"]}),l.kind==="duplicate_id"&&l.taskId&&n&&v.jsx("button",{type:"button",className:Qr.renameBtn,onClick:()=>n(l.taskId),children:r("rename.action")})]},o))})]})}const uD="_app_1br7f_1",cD="_header_1br7f_7",dD="_brand_1br7f_16",fD="_tabs_1br7f_22",pD="_tab_1br7f_22",hD="_tabActive_1br7f_43",mD="_project_1br7f_48",gD="_spacer_1br7f_53",yD="_status_1br7f_57",vD="_dot_1br7f_65",xD="_dotOn_1br7f_71",kD="_dotOff_1br7f_75",wD="_langSelect_1br7f_79",_D="_settingsBtn_1br7f_87",bD="_addBtn_1br7f_99",SD="_banner_1br7f_112",CD="_bannerClose_1br7f_122",ED="_center_1br7f_131",Ct={app:uD,header:cD,brand:dD,tabs:fD,tab:pD,tabActive:hD,project:mD,spacer:gD,status:yD,dot:vD,dotOn:xD,dotOff:kD,langSelect:wD,settingsBtn:_D,addBtn:bD,banner:SD,bannerClose:CD,center:ED},ND=[{id:"board",labelKey:"view.board"},{id:"critical",labelKey:"view.critical"},{id:"milestones",labelKey:"view.milestones"},{id:"digest",labelKey:"view.digest"},{id:"docs",labelKey:"view.docs"},{id:"stats",labelKey:"view.stats"},{id:"files",labelKey:"view.files"}];function TD(){const{t:e,lang:n,setLang:r}=gt(),{board:l,loading:o,error:a,connected:u,refresh:d}=Ox(),[f,h]=C.useState("board"),[y,m]=C.useState(!1),[k,x]=C.useState(!1),[b,j]=C.useState(!1),[D,S]=C.useState(null),[M,N]=C.useState(null),$=D!==null?(l==null?void 0:l.tasks.find(Q=>Q.frontmatter.id===D))??null:null,H=y||k||D!==null,L=C.useRef(H);L.current=H,C.useEffect(()=>{const Q=I=>{(I.metaKey||I.ctrlKey)&&(I.key==="k"||I.key==="K")&&!I.isComposing&&(I.preventDefault(),j(q=>q?!1:!L.current))};return window.addEventListener("keydown",Q),()=>window.removeEventListener("keydown",Q)},[]),C.useEffect(()=>{f==="docs"&&l&&l.config.docsDirs.length===0&&h("board")},[f,l]);const Y=async Q=>{await Cx(Q),m(!1),d()},te=async Q=>{try{await jx(Q),d()}catch(I){N(I instanceof Error?I.message:e("rename.error"))}};return v.jsxs("div",{className:Ct.app,children:[v.jsxs("header",{className:Ct.header,children:[v.jsx("span",{className:Ct.brand,children:"AIzuchi"}),l&&v.jsx("span",{className:Ct.project,children:l.config.projectName}),v.jsx("span",{className:Ct.spacer}),v.jsxs("span",{className:Ct.status,title:e(u?"header.live.title":"header.reconnecting.title"),children:[v.jsx("span",{className:`${Ct.dot} ${u?Ct.dotOn:Ct.dotOff}`,"aria-hidden":"true"}),e(u?"header.live":"header.reconnecting")]}),v.jsx("select",{className:Ct.langSelect,value:n,onChange:Q=>r(Q.target.value),"aria-label":e("settings.language"),children:Uc.map(Q=>v.jsx("option",{value:Q,children:e(Q==="en"?"settings.language.en":"settings.language.ja")},Q))}),v.jsx("button",{type:"button",className:Ct.settingsBtn,onClick:()=>x(!0),disabled:!l,children:e("header.settings")}),v.jsx("button",{type:"button",className:Ct.addBtn,onClick:()=>m(!0),disabled:!l,children:e("header.addTask")})]}),(a||M)&&v.jsxs("div",{className:Ct.banner,role:"alert",children:[a??M,!a&&M&&v.jsx("button",{type:"button",className:Ct.bannerClose,onClick:()=>N(null),children:e("banner.close")})]}),l&&v.jsx("nav",{className:Ct.tabs,"aria-label":"views",children:ND.filter(Q=>Q.id!=="docs"||l.config.docsDirs.length>0).map(Q=>v.jsx("button",{type:"button",className:`${Ct.tab} ${f===Q.id?Ct.tabActive:""}`,onClick:()=>h(Q.id),children:e(Q.labelKey)},Q.id))}),l&&v.jsx(aD,{warnings:l.warnings,onRename:Q=>void te(Q)}),o&&!l?v.jsx("div",{className:Ct.center,children:e("board.loading")}):l?f==="board"?v.jsx($w,{board:l,onOpen:Q=>S(Q.frontmatter.id),onChanged:()=>void d(),onError:N}):f==="critical"?v.jsx(S_,{board:l,onOpen:Q=>S(Q.frontmatter.id)}):f==="digest"?v.jsx(U_,{board:l}):f==="docs"?v.jsx(OT,{board:l,onOpen:Q=>S(Q.frontmatter.id)}):f==="stats"?v.jsx(nI,{board:l}):f==="files"?v.jsx(lj,{board:l}):v.jsx(Ej,{board:l,onOpen:Q=>S(Q.frontmatter.id)}):v.jsx("div",{className:Ct.center,children:e("board.unavailable")}),y&&l&&v.jsx(lk,{members:l.config.members,templates:l.config.taskTemplates,onCancel:()=>m(!1),onSubmit:Y}),k&&v.jsx(b2,{onClose:()=>x(!1),onSaved:()=>void d()}),b&&l&&v.jsx(Yw,{board:l,onClose:()=>j(!1),onSelectView:Q=>h(Q),onOpenAdd:()=>m(!0),onOpenSettings:()=>x(!0),onOpenTask:Q=>S(Q)}),$&&l&&v.jsx(GI,{task:$,instructionTemplate:l.config.instructionTemplate,members:l.config.members,docsEnabled:l.config.docsDirs.length>0,onClose:()=>S(null),onSaved:()=>void d()},$.frontmatter.id)]})}const jD="_app_1fu9m_1",ID="_header_1fu9m_7",DD="_brand_1fu9m_16",RD="_mode_1fu9m_22",AD="_spacer_1fu9m_27",PD="_status_1fu9m_31",LD="_dot_1fu9m_39",MD="_dotOn_1fu9m_45",OD="_dotOff_1fu9m_49",zD="_langSelect_1fu9m_53",FD="_banner_1fu9m_62",$D="_center_1fu9m_70",BD="_main_1fu9m_78",UD="_sectionTitle_1fu9m_88",VD="_cards_1fu9m_95",HD="_card_1fu9m_95",WD="_cardName_1fu9m_109",ZD="_cardDir_1fu9m_115",KD="_counts_1fu9m_122",qD="_count_1fu9m_122",QD="_badges_1fu9m_147",YD="_badgeWip_1fu9m_154",XD="_badgeWarn_1fu9m_162",GD="_tableWrap_1fu9m_171",JD="_table_1fu9m_171",eR="_taskId_1fu9m_199",tR="_empty_1fu9m_205",Qe={app:jD,header:ID,brand:DD,mode:RD,spacer:AD,status:PD,dot:LD,dotOn:MD,dotOff:OD,langSelect:zD,banner:FD,center:$D,main:BD,sectionTitle:UD,cards:VD,card:HD,cardName:WD,cardDir:ZD,counts:KD,count:qD,badges:QD,badgeWip:YD,badgeWarn:XD,tableWrap:GD,table:JD,taskId:eR,empty:tR},Am={proposed:"status.proposed",backlog:"status.backlog",todo:"status.todo",in_progress:"status.in_progress",pending:"status.pending",done:"status.done"},nR={decision:"blocked.decision",external:"blocked.external",dependency:"blocked.dependency"};function rR(){const[e,n]=C.useState(null),[r,l]=C.useState(!0),[o,a]=C.useState(null),[u,d]=C.useState(!1),f=C.useRef(0),h=C.useCallback(async()=>{const y=++f.current;try{const m=await Sx();y===f.current&&(n(m),a(null))}catch(m){y===f.current&&a(m instanceof Error?m.message:"failed")}finally{y===f.current&&l(!1)}},[]);return C.useEffect(()=>{h();const y=new EventSource("/api/events");return y.onopen=()=>{d(!0),h()},y.onmessage=m=>{try{const k=JSON.parse(m.data);k.type==="change"?h():k.type==="connected"&&d(!0)}catch{}},y.onerror=()=>d(!1),()=>{y.close()}},[h]),{overview:e,loading:r,error:o,connected:u}}function iR(){const{t:e,lang:n,setLang:r}=gt(),{overview:l,loading:o,error:a,connected:u}=rR(),d=f=>{if(f.status!=="pending"||f.blocked_type===null)return"—";const h=e(nR[f.blocked_type]);return f.blocked_reason!==null?`${h}: ${f.blocked_reason}`:h};return v.jsxs("div",{className:Qe.app,children:[v.jsxs("header",{className:Qe.header,children:[v.jsx("span",{className:Qe.brand,children:"AIzuchi"}),v.jsx("span",{className:Qe.mode,children:e("overview.title")}),v.jsx("span",{className:Qe.spacer}),v.jsxs("span",{className:Qe.status,title:e(u?"header.live.title":"header.reconnecting.title"),children:[v.jsx("span",{className:`${Qe.dot} ${u?Qe.dotOn:Qe.dotOff}`,"aria-hidden":"true"}),e(u?"header.live":"header.reconnecting")]}),v.jsx("select",{className:Qe.langSelect,value:n,onChange:f=>r(f.target.value),"aria-label":e("settings.language"),children:Uc.map(f=>v.jsx("option",{value:f,children:e(f==="en"?"settings.language.en":"settings.language.ja")},f))})]}),a!==null&&l!==null&&v.jsx("div",{className:Qe.banner,role:"alert",children:e("overview.loadError")}),o&&!l?v.jsx("div",{className:Qe.center,children:e("board.loading")}):l?v.jsxs("main",{className:Qe.main,children:[v.jsxs("section",{"aria-labelledby":"ov-projects",children:[v.jsx("h2",{id:"ov-projects",className:Qe.sectionTitle,children:e("overview.projects")}),v.jsx("div",{className:Qe.cards,children:l.projects.map(f=>v.jsxs("article",{className:Qe.card,title:f.root,children:[v.jsx("h3",{className:Qe.cardName,children:f.name}),f.name!==f.dir&&v.jsx("p",{className:Qe.cardDir,children:f.dir}),v.jsx("dl",{className:Qe.counts,children:na.map(h=>v.jsxs("div",{className:Qe.count,children:[v.jsx("dt",{children:e(Am[h])}),v.jsx("dd",{children:f.statusCounts[h]})]},h))}),v.jsxs("div",{className:Qe.badges,children:[f.wipExceeded&&v.jsx("span",{className:Qe.badgeWip,children:e("overview.wipExceeded")}),f.warningCount>0&&v.jsx("span",{className:Qe.badgeWarn,children:e("overview.warnings",{n:f.warningCount})})]})]},f.dir))})]}),v.jsxs("section",{"aria-labelledby":"ov-attention",children:[v.jsx("h2",{id:"ov-attention",className:Qe.sectionTitle,children:e("overview.attention.title")}),l.attention.length===0?v.jsx("p",{className:Qe.empty,children:e("overview.attention.empty")}):v.jsx("div",{className:Qe.tableWrap,children:v.jsxs("table",{className:Qe.table,children:[v.jsx("thead",{children:v.jsxs("tr",{children:[v.jsx("th",{scope:"col",children:e("overview.col.project")}),v.jsx("th",{scope:"col",children:e("overview.col.task")}),v.jsx("th",{scope:"col",children:e("overview.col.status")}),v.jsx("th",{scope:"col",children:e("overview.col.assignee")}),v.jsx("th",{scope:"col",children:e("overview.col.blocked")})]})}),v.jsx("tbody",{children:l.attention.map(f=>v.jsxs("tr",{children:[v.jsx("td",{children:f.project}),v.jsxs("td",{children:[v.jsx("span",{className:Qe.taskId,children:f.id})," ",f.title]}),v.jsx("td",{children:e(Am[f.status])}),v.jsx("td",{children:f.assignee??e("card.unassigned")}),v.jsx("td",{children:d(f)})]},`${f.project}:${f.id}`))})]})})]})]}):v.jsx("div",{className:Qe.center,children:e("overview.loadError")})]})}const Pm=3,lR=700;function sR(){const{t:e}=gt(),[n,r]=C.useState(null);return C.useEffect(()=>{let l=!0;return(async()=>{for(let o=1;o<=Pm;o++)try{const a=await bx();l&&r(a.mode==="overview"?"overview":"board");return}catch(a){if(a instanceof ki&&a.status>=400&&a.status<500){l&&r("board");return}if(o===Pm){l&&r("error");return}if(await new Promise(u=>setTimeout(u,lR)),!l)return}})(),()=>{l=!1}},[]),n===null?v.jsx(v.Fragment,{}):n==="error"?v.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,padding:48},role:"alert",children:[v.jsx("p",{children:e("mode.connectError")}),v.jsx("button",{type:"button",onClick:()=>window.location.reload(),children:e("settings.reload")})]}):n==="overview"?v.jsx(iR,{}):v.jsx(TD,{})}const xy=document.getElementById("root");if(!xy)throw new Error("#root not found");wx.createRoot(xy).render(v.jsx(C.StrictMode,{children:v.jsx(Ux,{children:v.jsx(sR,{})})}));
|