aizuchi 0.2.0 → 0.4.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.
@@ -1,82 +0,0 @@
1
- var kk=Object.defineProperty;var xk=(e,t,r)=>t in e?kk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Hs=(e,t,r)=>xk(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(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"&&s(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 s(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();function Uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fu={exports:{}},Ws={},$u={exports:{}},Be={};/**
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 Jp;function _k(){if(Jp)return Be;Jp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=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"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.iterator;function x(A){return A===null||typeof A!="object"?null:(A=h&&A[h]||A["@@iterator"],typeof A=="function"?A:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,j={};function I(A,W,N){this.props=A,this.context=W,this.refs=j,this.updater=N||k}I.prototype.isReactComponent={},I.prototype.setState=function(A,W){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,W,"setState")},I.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function b(){}b.prototype=I.prototype;function M(A,W,N){this.props=A,this.context=W,this.refs=j,this.updater=N||k}var E=M.prototype=new b;E.constructor=M,w(E,I.prototype),E.isPureReactComponent=!0;var z=Array.isArray,V=Object.prototype.hasOwnProperty,L={current:null},K={key:!0,ref:!0,__self:!0,__source:!0};function Y(A,W,N){var xe,Te={},ye=null,$e=null;if(W!=null)for(xe in W.ref!==void 0&&($e=W.ref),W.key!==void 0&&(ye=""+W.key),W)V.call(W,xe)&&!K.hasOwnProperty(xe)&&(Te[xe]=W[xe]);var Ne=arguments.length-2;if(Ne===1)Te.children=N;else if(1<Ne){for(var ee=Array(Ne),ce=0;ce<Ne;ce++)ee[ce]=arguments[ce+2];Te.children=ee}if(A&&A.defaultProps)for(xe in Ne=A.defaultProps,Ne)Te[xe]===void 0&&(Te[xe]=Ne[xe]);return{$$typeof:e,type:A,key:ye,ref:$e,props:Te,_owner:L.current}}function oe(A,W){return{$$typeof:e,type:A.type,key:W,ref:A.ref,props:A.props,_owner:A._owner}}function R(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function H(A){var W={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(N){return W[N]})}var B=/\/+/g;function ae(A,W){return typeof A=="object"&&A!==null&&A.key!=null?H(""+A.key):W.toString(36)}function le(A,W,N,xe,Te){var ye=typeof A;(ye==="undefined"||ye==="boolean")&&(A=null);var $e=!1;if(A===null)$e=!0;else switch(ye){case"string":case"number":$e=!0;break;case"object":switch(A.$$typeof){case e:case t:$e=!0}}if($e)return $e=A,Te=Te($e),A=xe===""?"."+ae($e,0):xe,z(Te)?(N="",A!=null&&(N=A.replace(B,"$&/")+"/"),le(Te,W,N,"",function(ce){return ce})):Te!=null&&(R(Te)&&(Te=oe(Te,N+(!Te.key||$e&&$e.key===Te.key?"":(""+Te.key).replace(B,"$&/")+"/")+A)),W.push(Te)),1;if($e=0,xe=xe===""?".":xe+":",z(A))for(var Ne=0;Ne<A.length;Ne++){ye=A[Ne];var ee=xe+ae(ye,Ne);$e+=le(ye,W,N,ee,Te)}else if(ee=x(A),typeof ee=="function")for(A=ee.call(A),Ne=0;!(ye=A.next()).done;)ye=ye.value,ee=xe+ae(ye,Ne++),$e+=le(ye,W,N,ee,Te);else if(ye==="object")throw W=String(A),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return $e}function O(A,W,N){if(A==null)return A;var xe=[],Te=0;return le(A,xe,"","",function(ye){return W.call(N,ye,Te++)}),xe}function G(A){if(A._status===-1){var W=A._result;W=W(),W.then(function(N){(A._status===0||A._status===-1)&&(A._status=1,A._result=N)},function(N){(A._status===0||A._status===-1)&&(A._status=2,A._result=N)}),A._status===-1&&(A._status=0,A._result=W)}if(A._status===1)return A._result.default;throw A._result}var ue={current:null},J={transition:null},fe={ReactCurrentDispatcher:ue,ReactCurrentBatchConfig:J,ReactCurrentOwner:L};function S(){throw Error("act(...) is not supported in production builds of React.")}return Be.Children={map:O,forEach:function(A,W,N){O(A,function(){W.apply(this,arguments)},N)},count:function(A){var W=0;return O(A,function(){W++}),W},toArray:function(A){return O(A,function(W){return W})||[]},only:function(A){if(!R(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},Be.Component=I,Be.Fragment=r,Be.Profiler=o,Be.PureComponent=M,Be.StrictMode=s,Be.Suspense=f,Be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fe,Be.act=S,Be.cloneElement=function(A,W,N){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var xe=w({},A.props),Te=A.key,ye=A.ref,$e=A._owner;if(W!=null){if(W.ref!==void 0&&(ye=W.ref,$e=L.current),W.key!==void 0&&(Te=""+W.key),A.type&&A.type.defaultProps)var Ne=A.type.defaultProps;for(ee in W)V.call(W,ee)&&!K.hasOwnProperty(ee)&&(xe[ee]=W[ee]===void 0&&Ne!==void 0?Ne[ee]:W[ee])}var ee=arguments.length-2;if(ee===1)xe.children=N;else if(1<ee){Ne=Array(ee);for(var ce=0;ce<ee;ce++)Ne[ce]=arguments[ce+2];xe.children=Ne}return{$$typeof:e,type:A.type,key:Te,ref:ye,props:xe,_owner:$e}},Be.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},Be.createElement=Y,Be.createFactory=function(A){var W=Y.bind(null,A);return W.type=A,W},Be.createRef=function(){return{current:null}},Be.forwardRef=function(A){return{$$typeof:d,render:A}},Be.isValidElement=R,Be.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:G}},Be.memo=function(A,W){return{$$typeof:m,type:A,compare:W===void 0?null:W}},Be.startTransition=function(A){var W=J.transition;J.transition={};try{A()}finally{J.transition=W}},Be.unstable_act=S,Be.useCallback=function(A,W){return ue.current.useCallback(A,W)},Be.useContext=function(A){return ue.current.useContext(A)},Be.useDebugValue=function(){},Be.useDeferredValue=function(A){return ue.current.useDeferredValue(A)},Be.useEffect=function(A,W){return ue.current.useEffect(A,W)},Be.useId=function(){return ue.current.useId()},Be.useImperativeHandle=function(A,W,N){return ue.current.useImperativeHandle(A,W,N)},Be.useInsertionEffect=function(A,W){return ue.current.useInsertionEffect(A,W)},Be.useLayoutEffect=function(A,W){return ue.current.useLayoutEffect(A,W)},Be.useMemo=function(A,W){return ue.current.useMemo(A,W)},Be.useReducer=function(A,W,N){return ue.current.useReducer(A,W,N)},Be.useRef=function(A){return ue.current.useRef(A)},Be.useState=function(A){return ue.current.useState(A)},Be.useSyncExternalStore=function(A,W,N){return ue.current.useSyncExternalStore(A,W,N)},Be.useTransition=function(){return ue.current.useTransition()},Be.version="18.3.1",Be}var em;function Vc(){return em||(em=1,$u.exports=_k()),$u.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 tm;function wk(){if(tm)return Ws;tm=1;var e=Vc(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=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,m){var v,h={},x=null,k=null;m!==void 0&&(x=""+m),f.key!==void 0&&(x=""+f.key),f.ref!==void 0&&(k=f.ref);for(v in f)s.call(f,v)&&!a.hasOwnProperty(v)&&(h[v]=f[v]);if(d&&d.defaultProps)for(v in f=d.defaultProps,f)h[v]===void 0&&(h[v]=f[v]);return{$$typeof:t,type:d,key:x,ref:k,props:h,_owner:o.current}}return Ws.Fragment=r,Ws.jsx=u,Ws.jsxs=u,Ws}var nm;function bk(){return nm||(nm=1,Fu.exports=wk()),Fu.exports}var y=bk(),C=Vc();const zn=Uc(C);var Eo={},Bu={exports:{}},hn={},Uu={exports:{}},Vu={};/**
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 rm;function Sk(){return rm||(rm=1,(function(e){function t(J,fe){var S=J.length;J.push(fe);e:for(;0<S;){var A=S-1>>>1,W=J[A];if(0<o(W,fe))J[A]=fe,J[S]=W,S=A;else break e}}function r(J){return J.length===0?null:J[0]}function s(J){if(J.length===0)return null;var fe=J[0],S=J.pop();if(S!==fe){J[0]=S;e:for(var A=0,W=J.length,N=W>>>1;A<N;){var xe=2*(A+1)-1,Te=J[xe],ye=xe+1,$e=J[ye];if(0>o(Te,S))ye<W&&0>o($e,Te)?(J[A]=$e,J[ye]=S,A=ye):(J[A]=Te,J[xe]=S,A=xe);else if(ye<W&&0>o($e,S))J[A]=$e,J[ye]=S,A=ye;else break e}}return fe}function o(J,fe){var S=J.sortIndex-fe.sortIndex;return S!==0?S:J.id-fe.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=[],m=[],v=1,h=null,x=3,k=!1,w=!1,j=!1,I=typeof setTimeout=="function"?setTimeout:null,b=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 E(J){for(var fe=r(m);fe!==null;){if(fe.callback===null)s(m);else if(fe.startTime<=J)s(m),fe.sortIndex=fe.expirationTime,t(f,fe);else break;fe=r(m)}}function z(J){if(j=!1,E(J),!w)if(r(f)!==null)w=!0,G(V);else{var fe=r(m);fe!==null&&ue(z,fe.startTime-J)}}function V(J,fe){w=!1,j&&(j=!1,b(Y),Y=-1),k=!0;var S=x;try{for(E(fe),h=r(f);h!==null&&(!(h.expirationTime>fe)||J&&!H());){var A=h.callback;if(typeof A=="function"){h.callback=null,x=h.priorityLevel;var W=A(h.expirationTime<=fe);fe=e.unstable_now(),typeof W=="function"?h.callback=W:h===r(f)&&s(f),E(fe)}else s(f);h=r(f)}if(h!==null)var N=!0;else{var xe=r(m);xe!==null&&ue(z,xe.startTime-fe),N=!1}return N}finally{h=null,x=S,k=!1}}var L=!1,K=null,Y=-1,oe=5,R=-1;function H(){return!(e.unstable_now()-R<oe)}function B(){if(K!==null){var J=e.unstable_now();R=J;var fe=!0;try{fe=K(!0,J)}finally{fe?ae():(L=!1,K=null)}}else L=!1}var ae;if(typeof M=="function")ae=function(){M(B)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,O=le.port2;le.port1.onmessage=B,ae=function(){O.postMessage(null)}}else ae=function(){I(B,0)};function G(J){K=J,L||(L=!0,ae())}function ue(J,fe){Y=I(function(){J(e.unstable_now())},fe)}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(J){J.callback=null},e.unstable_continueExecution=function(){w||k||(w=!0,G(V))},e.unstable_forceFrameRate=function(J){0>J||125<J?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<J?Math.floor(1e3/J):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return r(f)},e.unstable_next=function(J){switch(x){case 1:case 2:case 3:var fe=3;break;default:fe=x}var S=x;x=fe;try{return J()}finally{x=S}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(J,fe){switch(J){case 1:case 2:case 3:case 4:case 5:break;default:J=3}var S=x;x=J;try{return fe()}finally{x=S}},e.unstable_scheduleCallback=function(J,fe,S){var A=e.unstable_now();switch(typeof S=="object"&&S!==null?(S=S.delay,S=typeof S=="number"&&0<S?A+S:A):S=A,J){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=S+W,J={id:v++,callback:fe,priorityLevel:J,startTime:S,expirationTime:W,sortIndex:-1},S>A?(J.sortIndex=S,t(m,J),r(f)===null&&J===r(m)&&(j?(b(Y),Y=-1):j=!0,ue(z,S-A))):(J.sortIndex=W,t(f,J),w||k||(w=!0,G(V))),J},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(J){var fe=x;return function(){var S=x;x=fe;try{return J.apply(this,arguments)}finally{x=S}}}})(Vu)),Vu}var im;function Ck(){return im||(im=1,Uu.exports=Sk()),Uu.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 sm;function Ek(){if(sm)return hn;sm=1;var e=Vc(),t=Ck();function r(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,l=1;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,o={};function a(n,i){u(n,i),u(n+"Capture",i)}function u(n,i){for(o[n]=i,n=0;n<i.length;n++)s.add(i[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,m=/^[: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]*$/,v={},h={};function x(n){return f.call(h,n)?!0:f.call(v,n)?!1:m.test(n)?h[n]=!0:(v[n]=!0,!1)}function k(n,i,l,c){if(l!==null&&l.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return c?!1:l!==null?!l.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function w(n,i,l,c){if(i===null||typeof i>"u"||k(n,i,l,c))return!0;if(c)return!1;if(l!==null)switch(l.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(n,i,l,c,p,g,_){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=c,this.attributeNamespace=p,this.mustUseProperty=l,this.propertyName=n,this.type=i,this.sanitizeURL=g,this.removeEmptyString=_}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){I[n]=new j(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var i=n[0];I[i]=new j(i,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){I[n]=new j(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){I[n]=new j(n,2,!1,n,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(n){I[n]=new j(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){I[n]=new j(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){I[n]=new j(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){I[n]=new j(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){I[n]=new j(n,5,!1,n.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function M(n){return n[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(n){var i=n.replace(b,M);I[i]=new j(i,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var i=n.replace(b,M);I[i]=new j(i,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var i=n.replace(b,M);I[i]=new j(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){I[n]=new j(n,1,!1,n.toLowerCase(),null,!1,!1)}),I.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){I[n]=new j(n,1,!1,n.toLowerCase(),null,!0,!0)});function E(n,i,l,c){var p=I.hasOwnProperty(i)?I[i]:null;(p!==null?p.type!==0:c||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(w(i,l,p,c)&&(l=null),c||p===null?x(i)&&(l===null?n.removeAttribute(i):n.setAttribute(i,""+l)):p.mustUseProperty?n[p.propertyName]=l===null?p.type===3?!1:"":l:(i=p.attributeName,c=p.attributeNamespace,l===null?n.removeAttribute(i):(p=p.type,l=p===3||p===4&&l===!0?"":""+l,c?n.setAttributeNS(c,i,l):n.setAttribute(i,l))))}var z=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),L=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),oe=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),H=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),ue=Symbol.for("react.offscreen"),J=Symbol.iterator;function fe(n){return n===null||typeof n!="object"?null:(n=J&&n[J]||n["@@iterator"],typeof n=="function"?n:null)}var S=Object.assign,A;function W(n){if(A===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);A=i&&i[1]||""}return`
34
- `+A+n}var N=!1;function xe(n,i){if(!n||N)return"";N=!0;var l=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(U){var c=U}Reflect.construct(n,[],i)}else{try{i.call()}catch(U){c=U}n.call(i.prototype)}else{try{throw Error()}catch(U){c=U}n()}}catch(U){if(U&&c&&typeof U.stack=="string"){for(var p=U.stack.split(`
35
- `),g=c.stack.split(`
36
- `),_=p.length-1,T=g.length-1;1<=_&&0<=T&&p[_]!==g[T];)T--;for(;1<=_&&0<=T;_--,T--)if(p[_]!==g[T]){if(_!==1||T!==1)do if(_--,T--,0>T||p[_]!==g[T]){var D=`
37
- `+p[_].replace(" at new "," at ");return n.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",n.displayName)),D}while(1<=_&&0<=T);break}}}finally{N=!1,Error.prepareStackTrace=l}return(n=n?n.displayName||n.name:"")?W(n):""}function Te(n){switch(n.tag){case 5:return W(n.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return n=xe(n.type,!1),n;case 11:return n=xe(n.type.render,!1),n;case 1:return n=xe(n.type,!0),n;default:return""}}function ye(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case K:return"Fragment";case L:return"Portal";case oe:return"Profiler";case Y:return"StrictMode";case ae:return"Suspense";case le:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case H:return(n.displayName||"Context")+".Consumer";case R:return(n._context.displayName||"Context")+".Provider";case B:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case O:return i=n.displayName||null,i!==null?i:ye(n.type)||"Memo";case G:i=n._payload,n=n._init;try{return ye(n(i))}catch{}}return null}function $e(n){var i=n.type;switch(n.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 n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(i);case 8:return i===Y?"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 Ne(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function ee(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function ce(n){var i=ee(n)?"checked":"value",l=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+n[i];if(!n.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,g=l.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return p.call(this)},set:function(_){c=""+_,g.call(this,_)}}),Object.defineProperty(n,i,{enumerable:l.enumerable}),{getValue:function(){return c},setValue:function(_){c=""+_},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Ae(n){n._valueTracker||(n._valueTracker=ce(n))}function We(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var l=i.getValue(),c="";return n&&(c=ee(n)?n.checked?"true":"false":n.value),n=c,n!==l?(i.setValue(n),!0):!1}function Ve(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function st(n,i){var l=i.checked;return S({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??n._wrapperState.initialChecked})}function kn(n,i){var l=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;l=Ne(i.value!=null?i.value:l),n._wrapperState={initialChecked:c,initialValue:l,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function nn(n,i){i=i.checked,i!=null&&E(n,"checked",i,!1)}function Bt(n,i){nn(n,i);var l=Ne(i.value),c=i.type;if(l!=null)c==="number"?(l===0&&n.value===""||n.value!=l)&&(n.value=""+l):n.value!==""+l&&(n.value=""+l);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?Rt(n,i.type,l):i.hasOwnProperty("defaultValue")&&Rt(n,i.type,Ne(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function fr(n,i,l){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=""+n._wrapperState.initialValue,l||i===n.value||(n.value=i),n.defaultValue=i}l=n.name,l!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,l!==""&&(n.name=l)}function Rt(n,i,l){(i!=="number"||Ve(n.ownerDocument)!==n)&&(l==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+l&&(n.defaultValue=""+l))}var gt=Array.isArray;function Ut(n,i,l,c){if(n=n.options,i){i={};for(var p=0;p<l.length;p++)i["$"+l[p]]=!0;for(l=0;l<n.length;l++)p=i.hasOwnProperty("$"+n[l].value),n[l].selected!==p&&(n[l].selected=p),p&&c&&(n[l].defaultSelected=!0)}else{for(l=""+Ne(l),i=null,p=0;p<n.length;p++){if(n[p].value===l){n[p].selected=!0,c&&(n[p].defaultSelected=!0);return}i!==null||n[p].disabled||(i=n[p])}i!==null&&(i.selected=!0)}}function Tn(n,i){if(i.dangerouslySetInnerHTML!=null)throw Error(r(91));return S({},i,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function pr(n,i){var l=i.value;if(l==null){if(l=i.children,i=i.defaultValue,l!=null){if(i!=null)throw Error(r(92));if(gt(l)){if(1<l.length)throw Error(r(93));l=l[0]}i=l}i==null&&(i=""),l=i}n._wrapperState={initialValue:Ne(l)}}function er(n,i){var l=Ne(i.value),c=Ne(i.defaultValue);l!=null&&(l=""+l,l!==n.value&&(n.value=l),i.defaultValue==null&&n.defaultValue!==l&&(n.defaultValue=l)),c!=null&&(n.defaultValue=""+c)}function Er(n){var i=n.textContent;i===n._wrapperState.initialValue&&i!==""&&i!==null&&(n.value=i)}function Z(n){switch(n){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 ne(n,i){return n==null||n==="http://www.w3.org/1999/xhtml"?Z(i):n==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var Ce,Pe=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,c,p){MSApp.execUnsafeLocalFunction(function(){return n(i,l,c,p)})}:n})(function(n,i){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=i;else{for(Ce=Ce||document.createElement("div"),Ce.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Ce.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function q(n,i){if(i){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=i;return}}n.textContent=i}var me={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},xt=["Webkit","ms","Moz","O"];Object.keys(me).forEach(function(n){xt.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),me[i]=me[n]})});function Vt(n,i,l){return i==null||typeof i=="boolean"||i===""?"":l||typeof i!="number"||i===0||me.hasOwnProperty(n)&&me[n]?(""+i).trim():i+"px"}function tr(n,i){n=n.style;for(var l in i)if(i.hasOwnProperty(l)){var c=l.indexOf("--")===0,p=Vt(l,i[l],c);l==="float"&&(l="cssFloat"),c?n.setProperty(l,p):n[l]=p}}var Bn=S({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 St(n,i){if(i){if(Bn[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(r(137,n));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 jn(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){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 Ht=null;function as(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var us=null,Nr=null,dt=null;function Wt(n){if(n=js(n)){if(typeof us!="function")throw Error(r(280));var i=n.stateNode;i&&(i=$l(i),us(n.stateNode,n.type,i))}}function Zt(n){Nr?dt?dt.push(n):dt=[n]:Nr=n}function Un(){if(Nr){var n=Nr,i=dt;if(dt=Nr=null,Wt(n),i)for(n=0;n<i.length;n++)Wt(i[n])}}function rn(n,i){return n(i)}function Kt(){}var un=!1;function mr(n,i,l){if(un)return n(i,l);un=!0;try{return rn(n,i,l)}finally{un=!1,(Nr!==null||dt!==null)&&(Kt(),Un())}}function ft(n,i){var l=n.stateNode;if(l===null)return null;var c=$l(l);if(c===null)return null;l=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)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(r(231,i,typeof l));return l}var In=!1;if(d)try{var qt={};Object.defineProperty(qt,"passive",{get:function(){In=!0}}),window.addEventListener("test",qt,qt),window.removeEventListener("test",qt,qt)}catch{In=!1}function Vn(n,i,l,c,p,g,_,T,D){var U=Array.prototype.slice.call(arguments,3);try{i.apply(l,U)}catch(X){this.onError(X)}}var Hn=!1,nr=null,xn=!1,hr=null,cs={onError:function(n){Hn=!0,nr=n}};function Ny(n,i,l,c,p,g,_,T,D){Hn=!1,nr=null,Vn.apply(cs,arguments)}function Ty(n,i,l,c,p,g,_,T,D){if(Ny.apply(this,arguments),Hn){if(Hn){var U=nr;Hn=!1,nr=null}else throw Error(r(198));xn||(xn=!0,hr=U)}}function ii(n){var i=n,l=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(l=i.return),n=i.return;while(n)}return i.tag===3?l:null}function _d(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function wd(n){if(ii(n)!==n)throw Error(r(188))}function jy(n){var i=n.alternate;if(!i){if(i=ii(n),i===null)throw Error(r(188));return i!==n?null:n}for(var l=n,c=i;;){var p=l.return;if(p===null)break;var g=p.alternate;if(g===null){if(c=p.return,c!==null){l=c;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===l)return wd(p),n;if(g===c)return wd(p),i;g=g.sibling}throw Error(r(188))}if(l.return!==c.return)l=p,c=g;else{for(var _=!1,T=p.child;T;){if(T===l){_=!0,l=p,c=g;break}if(T===c){_=!0,c=p,l=g;break}T=T.sibling}if(!_){for(T=g.child;T;){if(T===l){_=!0,l=g,c=p;break}if(T===c){_=!0,c=g,l=p;break}T=T.sibling}if(!_)throw Error(r(189))}}if(l.alternate!==c)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?n:i}function bd(n){return n=jy(n),n!==null?Sd(n):null}function Sd(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var i=Sd(n);if(i!==null)return i;n=n.sibling}return null}var Cd=t.unstable_scheduleCallback,Ed=t.unstable_cancelCallback,Iy=t.unstable_shouldYield,Dy=t.unstable_requestPaint,_t=t.unstable_now,Ry=t.unstable_getCurrentPriorityLevel,sa=t.unstable_ImmediatePriority,Nd=t.unstable_UserBlockingPriority,xl=t.unstable_NormalPriority,Ay=t.unstable_LowPriority,Td=t.unstable_IdlePriority,_l=null,rr=null;function Py(n){if(rr&&typeof rr.onCommitFiberRoot=="function")try{rr.onCommitFiberRoot(_l,n,void 0,(n.current.flags&128)===128)}catch{}}var Wn=Math.clz32?Math.clz32:Oy,Ly=Math.log,My=Math.LN2;function Oy(n){return n>>>=0,n===0?32:31-(Ly(n)/My|0)|0}var wl=64,bl=4194304;function ds(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Sl(n,i){var l=n.pendingLanes;if(l===0)return 0;var c=0,p=n.suspendedLanes,g=n.pingedLanes,_=l&268435455;if(_!==0){var T=_&~p;T!==0?c=ds(T):(g&=_,g!==0&&(c=ds(g)))}else _=l&~p,_!==0?c=ds(_):g!==0&&(c=ds(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|=l&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=c;0<i;)l=31-Wn(i),p=1<<l,c|=n[l],i&=~p;return c}function zy(n,i){switch(n){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 Fy(n,i){for(var l=n.suspendedLanes,c=n.pingedLanes,p=n.expirationTimes,g=n.pendingLanes;0<g;){var _=31-Wn(g),T=1<<_,D=p[_];D===-1?((T&l)===0||(T&c)!==0)&&(p[_]=zy(T,i)):D<=i&&(n.expiredLanes|=T),g&=~T}}function la(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function jd(){var n=wl;return wl<<=1,(wl&4194240)===0&&(wl=64),n}function oa(n){for(var i=[],l=0;31>l;l++)i.push(n);return i}function fs(n,i,l){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-Wn(i),n[i]=l}function $y(n,i){var l=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0<l;){var p=31-Wn(l),g=1<<p;i[p]=0,c[p]=-1,n[p]=-1,l&=~g}}function aa(n,i){var l=n.entangledLanes|=i;for(n=n.entanglements;l;){var c=31-Wn(l),p=1<<c;p&i|n[c]&i&&(n[c]|=i),l&=~p}}var Ge=0;function Id(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Dd,ua,Rd,Ad,Pd,ca=!1,Cl=[],Tr=null,jr=null,Ir=null,ps=new Map,ms=new Map,Dr=[],By="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 Ld(n,i){switch(n){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":ps.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ms.delete(i.pointerId)}}function hs(n,i,l,c,p,g){return n===null||n.nativeEvent!==g?(n={blockedOn:i,domEventName:l,eventSystemFlags:c,nativeEvent:g,targetContainers:[p]},i!==null&&(i=js(i),i!==null&&ua(i)),n):(n.eventSystemFlags|=c,i=n.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),n)}function Uy(n,i,l,c,p){switch(i){case"focusin":return Tr=hs(Tr,n,i,l,c,p),!0;case"dragenter":return jr=hs(jr,n,i,l,c,p),!0;case"mouseover":return Ir=hs(Ir,n,i,l,c,p),!0;case"pointerover":var g=p.pointerId;return ps.set(g,hs(ps.get(g)||null,n,i,l,c,p)),!0;case"gotpointercapture":return g=p.pointerId,ms.set(g,hs(ms.get(g)||null,n,i,l,c,p)),!0}return!1}function Md(n){var i=si(n.target);if(i!==null){var l=ii(i);if(l!==null){if(i=l.tag,i===13){if(i=_d(l),i!==null){n.blockedOn=i,Pd(n.priority,function(){Rd(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function El(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var l=fa(n.domEventName,n.eventSystemFlags,i[0],n.nativeEvent);if(l===null){l=n.nativeEvent;var c=new l.constructor(l.type,l);Ht=c,l.target.dispatchEvent(c),Ht=null}else return i=js(l),i!==null&&ua(i),n.blockedOn=l,!1;i.shift()}return!0}function Od(n,i,l){El(n)&&l.delete(i)}function Vy(){ca=!1,Tr!==null&&El(Tr)&&(Tr=null),jr!==null&&El(jr)&&(jr=null),Ir!==null&&El(Ir)&&(Ir=null),ps.forEach(Od),ms.forEach(Od)}function gs(n,i){n.blockedOn===i&&(n.blockedOn=null,ca||(ca=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Vy)))}function ys(n){function i(p){return gs(p,n)}if(0<Cl.length){gs(Cl[0],n);for(var l=1;l<Cl.length;l++){var c=Cl[l];c.blockedOn===n&&(c.blockedOn=null)}}for(Tr!==null&&gs(Tr,n),jr!==null&&gs(jr,n),Ir!==null&&gs(Ir,n),ps.forEach(i),ms.forEach(i),l=0;l<Dr.length;l++)c=Dr[l],c.blockedOn===n&&(c.blockedOn=null);for(;0<Dr.length&&(l=Dr[0],l.blockedOn===null);)Md(l),l.blockedOn===null&&Dr.shift()}var Ci=z.ReactCurrentBatchConfig,Nl=!0;function Hy(n,i,l,c){var p=Ge,g=Ci.transition;Ci.transition=null;try{Ge=1,da(n,i,l,c)}finally{Ge=p,Ci.transition=g}}function Wy(n,i,l,c){var p=Ge,g=Ci.transition;Ci.transition=null;try{Ge=4,da(n,i,l,c)}finally{Ge=p,Ci.transition=g}}function da(n,i,l,c){if(Nl){var p=fa(n,i,l,c);if(p===null)ja(n,i,c,Tl,l),Ld(n,c);else if(Uy(p,n,i,l,c))c.stopPropagation();else if(Ld(n,c),i&4&&-1<By.indexOf(n)){for(;p!==null;){var g=js(p);if(g!==null&&Dd(g),g=fa(n,i,l,c),g===null&&ja(n,i,c,Tl,l),g===p)break;p=g}p!==null&&c.stopPropagation()}else ja(n,i,c,null,l)}}var Tl=null;function fa(n,i,l,c){if(Tl=null,n=as(c),n=si(n),n!==null)if(i=ii(n),i===null)n=null;else if(l=i.tag,l===13){if(n=_d(i),n!==null)return n;n=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null);return Tl=n,null}function zd(n){switch(n){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(Ry()){case sa:return 1;case Nd:return 4;case xl:case Ay:return 16;case Td:return 536870912;default:return 16}default:return 16}}var Rr=null,pa=null,jl=null;function Fd(){if(jl)return jl;var n,i=pa,l=i.length,c,p="value"in Rr?Rr.value:Rr.textContent,g=p.length;for(n=0;n<l&&i[n]===p[n];n++);var _=l-n;for(c=1;c<=_&&i[l-c]===p[g-c];c++);return jl=p.slice(n,1<c?1-c:void 0)}function Il(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Dl(){return!0}function $d(){return!1}function _n(n){function i(l,c,p,g,_){this._reactName=l,this._targetInst=p,this.type=c,this.nativeEvent=g,this.target=_,this.currentTarget=null;for(var T in n)n.hasOwnProperty(T)&&(l=n[T],this[T]=l?l(g):g[T]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Dl:$d,this.isPropagationStopped=$d,this}return S(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Dl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Dl)},persist:function(){},isPersistent:Dl}),i}var Ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ma=_n(Ei),vs=S({},Ei,{view:0,detail:0}),Zy=_n(vs),ha,ga,ks,Rl=S({},vs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:va,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ks&&(ks&&n.type==="mousemove"?(ha=n.screenX-ks.screenX,ga=n.screenY-ks.screenY):ga=ha=0,ks=n),ha)},movementY:function(n){return"movementY"in n?n.movementY:ga}}),Bd=_n(Rl),Ky=S({},Rl,{dataTransfer:0}),qy=_n(Ky),Qy=S({},vs,{relatedTarget:0}),ya=_n(Qy),Yy=S({},Ei,{animationName:0,elapsedTime:0,pseudoElement:0}),Xy=_n(Yy),Gy=S({},Ei,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Jy=_n(Gy),ev=S({},Ei,{data:0}),Ud=_n(ev),tv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nv={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"},rv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iv(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=rv[n])?!!i[n]:!1}function va(){return iv}var sv=S({},vs,{key:function(n){if(n.key){var i=tv[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Il(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?nv[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:va,charCode:function(n){return n.type==="keypress"?Il(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Il(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),lv=_n(sv),ov=S({},Rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vd=_n(ov),av=S({},vs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:va}),uv=_n(av),cv=S({},Ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),dv=_n(cv),fv=S({},Rl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),pv=_n(fv),mv=[9,13,27,32],ka=d&&"CompositionEvent"in window,xs=null;d&&"documentMode"in document&&(xs=document.documentMode);var hv=d&&"TextEvent"in window&&!xs,Hd=d&&(!ka||xs&&8<xs&&11>=xs),Wd=" ",Zd=!1;function Kd(n,i){switch(n){case"keyup":return mv.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qd(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ni=!1;function gv(n,i){switch(n){case"compositionend":return qd(i);case"keypress":return i.which!==32?null:(Zd=!0,Wd);case"textInput":return n=i.data,n===Wd&&Zd?null:n;default:return null}}function yv(n,i){if(Ni)return n==="compositionend"||!ka&&Kd(n,i)?(n=Fd(),jl=pa=Rr=null,Ni=!1,n):null;switch(n){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 Hd&&i.locale!=="ko"?null:i.data;default:return null}}var vv={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 Qd(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!vv[n.type]:i==="textarea"}function Yd(n,i,l,c){Zt(c),i=Ol(i,"onChange"),0<i.length&&(l=new ma("onChange","change",null,l,c),n.push({event:l,listeners:i}))}var _s=null,ws=null;function kv(n){hf(n,0)}function Al(n){var i=Ri(n);if(We(i))return n}function xv(n,i){if(n==="change")return i}var Xd=!1;if(d){var xa;if(d){var _a="oninput"in document;if(!_a){var Gd=document.createElement("div");Gd.setAttribute("oninput","return;"),_a=typeof Gd.oninput=="function"}xa=_a}else xa=!1;Xd=xa&&(!document.documentMode||9<document.documentMode)}function Jd(){_s&&(_s.detachEvent("onpropertychange",ef),ws=_s=null)}function ef(n){if(n.propertyName==="value"&&Al(ws)){var i=[];Yd(i,ws,n,as(n)),mr(kv,i)}}function _v(n,i,l){n==="focusin"?(Jd(),_s=i,ws=l,_s.attachEvent("onpropertychange",ef)):n==="focusout"&&Jd()}function wv(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Al(ws)}function bv(n,i){if(n==="click")return Al(i)}function Sv(n,i){if(n==="input"||n==="change")return Al(i)}function Cv(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var Zn=typeof Object.is=="function"?Object.is:Cv;function bs(n,i){if(Zn(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var l=Object.keys(n),c=Object.keys(i);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var p=l[c];if(!f.call(i,p)||!Zn(n[p],i[p]))return!1}return!0}function tf(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function nf(n,i){var l=tf(n);n=0;for(var c;l;){if(l.nodeType===3){if(c=n+l.textContent.length,n<=i&&c>=i)return{node:l,offset:i-n};n=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=tf(l)}}function rf(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?rf(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function sf(){for(var n=window,i=Ve();i instanceof n.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)n=i.contentWindow;else break;i=Ve(n.document)}return i}function wa(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function Ev(n){var i=sf(),l=n.focusedElem,c=n.selectionRange;if(i!==l&&l&&l.ownerDocument&&rf(l.ownerDocument.documentElement,l)){if(c!==null&&wa(l)){if(i=c.start,n=c.end,n===void 0&&(n=i),"selectionStart"in l)l.selectionStart=i,l.selectionEnd=Math.min(n,l.value.length);else if(n=(i=l.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var p=l.textContent.length,g=Math.min(c.start,p);c=c.end===void 0?g:Math.min(c.end,p),!n.extend&&g>c&&(p=c,c=g,g=p),p=nf(l,g);var _=nf(l,c);p&&_&&(n.rangeCount!==1||n.anchorNode!==p.node||n.anchorOffset!==p.offset||n.focusNode!==_.node||n.focusOffset!==_.offset)&&(i=i.createRange(),i.setStart(p.node,p.offset),n.removeAllRanges(),g>c?(n.addRange(i),n.extend(_.node,_.offset)):(i.setEnd(_.node,_.offset),n.addRange(i)))}}for(i=[],n=l;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<i.length;l++)n=i[l],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var Nv=d&&"documentMode"in document&&11>=document.documentMode,Ti=null,ba=null,Ss=null,Sa=!1;function lf(n,i,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Sa||Ti==null||Ti!==Ve(c)||(c=Ti,"selectionStart"in c&&wa(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}),Ss&&bs(Ss,c)||(Ss=c,c=Ol(ba,"onSelect"),0<c.length&&(i=new ma("onSelect","select",null,i,l),n.push({event:i,listeners:c}),i.target=Ti)))}function Pl(n,i){var l={};return l[n.toLowerCase()]=i.toLowerCase(),l["Webkit"+n]="webkit"+i,l["Moz"+n]="moz"+i,l}var ji={animationend:Pl("Animation","AnimationEnd"),animationiteration:Pl("Animation","AnimationIteration"),animationstart:Pl("Animation","AnimationStart"),transitionend:Pl("Transition","TransitionEnd")},Ca={},of={};d&&(of=document.createElement("div").style,"AnimationEvent"in window||(delete ji.animationend.animation,delete ji.animationiteration.animation,delete ji.animationstart.animation),"TransitionEvent"in window||delete ji.transitionend.transition);function Ll(n){if(Ca[n])return Ca[n];if(!ji[n])return n;var i=ji[n],l;for(l in i)if(i.hasOwnProperty(l)&&l in of)return Ca[n]=i[l];return n}var af=Ll("animationend"),uf=Ll("animationiteration"),cf=Ll("animationstart"),df=Ll("transitionend"),ff=new Map,pf="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(n,i){ff.set(n,i),a(i,[n])}for(var Ea=0;Ea<pf.length;Ea++){var Na=pf[Ea],Tv=Na.toLowerCase(),jv=Na[0].toUpperCase()+Na.slice(1);Ar(Tv,"on"+jv)}Ar(af,"onAnimationEnd"),Ar(uf,"onAnimationIteration"),Ar(cf,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(df,"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 Cs="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(" "),Iv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cs));function mf(n,i,l){var c=n.type||"unknown-event";n.currentTarget=l,Ty(c,i,void 0,n),n.currentTarget=null}function hf(n,i){i=(i&4)!==0;for(var l=0;l<n.length;l++){var c=n[l],p=c.event;c=c.listeners;e:{var g=void 0;if(i)for(var _=c.length-1;0<=_;_--){var T=c[_],D=T.instance,U=T.currentTarget;if(T=T.listener,D!==g&&p.isPropagationStopped())break e;mf(p,T,U),g=D}else for(_=0;_<c.length;_++){if(T=c[_],D=T.instance,U=T.currentTarget,T=T.listener,D!==g&&p.isPropagationStopped())break e;mf(p,T,U),g=D}}}if(xn)throw n=hr,xn=!1,hr=null,n}function ot(n,i){var l=i[La];l===void 0&&(l=i[La]=new Set);var c=n+"__bubble";l.has(c)||(gf(i,n,2,!1),l.add(c))}function Ta(n,i,l){var c=0;i&&(c|=4),gf(l,n,c,i)}var Ml="_reactListening"+Math.random().toString(36).slice(2);function Es(n){if(!n[Ml]){n[Ml]=!0,s.forEach(function(l){l!=="selectionchange"&&(Iv.has(l)||Ta(l,!1,n),Ta(l,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Ml]||(i[Ml]=!0,Ta("selectionchange",!1,i))}}function gf(n,i,l,c){switch(zd(i)){case 1:var p=Hy;break;case 4:p=Wy;break;default:p=da}l=p.bind(null,i,l,n),p=void 0,!In||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),c?p!==void 0?n.addEventListener(i,l,{capture:!0,passive:p}):n.addEventListener(i,l,!0):p!==void 0?n.addEventListener(i,l,{passive:p}):n.addEventListener(i,l,!1)}function ja(n,i,l,c,p){var g=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var _=c.tag;if(_===3||_===4){var T=c.stateNode.containerInfo;if(T===p||T.nodeType===8&&T.parentNode===p)break;if(_===4)for(_=c.return;_!==null;){var D=_.tag;if((D===3||D===4)&&(D=_.stateNode.containerInfo,D===p||D.nodeType===8&&D.parentNode===p))return;_=_.return}for(;T!==null;){if(_=si(T),_===null)return;if(D=_.tag,D===5||D===6){c=g=_;continue e}T=T.parentNode}}c=c.return}mr(function(){var U=g,X=as(l),te=[];e:{var Q=ff.get(n);if(Q!==void 0){var he=ma,ke=n;switch(n){case"keypress":if(Il(l)===0)break e;case"keydown":case"keyup":he=lv;break;case"focusin":ke="focus",he=ya;break;case"focusout":ke="blur",he=ya;break;case"beforeblur":case"afterblur":he=ya;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=qy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=uv;break;case af:case uf:case cf:he=Xy;break;case df:he=dv;break;case"scroll":he=Zy;break;case"wheel":he=pv;break;case"copy":case"cut":case"paste":he=Jy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=Vd}var _e=(i&4)!==0,wt=!_e&&n==="scroll",F=_e?Q!==null?Q+"Capture":null:Q;_e=[];for(var P=U,$;P!==null;){$=P;var se=$.stateNode;if($.tag===5&&se!==null&&($=se,F!==null&&(se=ft(P,F),se!=null&&_e.push(Ns(P,se,$)))),wt)break;P=P.return}0<_e.length&&(Q=new he(Q,ke,null,l,X),te.push({event:Q,listeners:_e}))}}if((i&7)===0){e:{if(Q=n==="mouseover"||n==="pointerover",he=n==="mouseout"||n==="pointerout",Q&&l!==Ht&&(ke=l.relatedTarget||l.fromElement)&&(si(ke)||ke[gr]))break e;if((he||Q)&&(Q=X.window===X?X:(Q=X.ownerDocument)?Q.defaultView||Q.parentWindow:window,he?(ke=l.relatedTarget||l.toElement,he=U,ke=ke?si(ke):null,ke!==null&&(wt=ii(ke),ke!==wt||ke.tag!==5&&ke.tag!==6)&&(ke=null)):(he=null,ke=U),he!==ke)){if(_e=Bd,se="onMouseLeave",F="onMouseEnter",P="mouse",(n==="pointerout"||n==="pointerover")&&(_e=Vd,se="onPointerLeave",F="onPointerEnter",P="pointer"),wt=he==null?Q:Ri(he),$=ke==null?Q:Ri(ke),Q=new _e(se,P+"leave",he,l,X),Q.target=wt,Q.relatedTarget=$,se=null,si(X)===U&&(_e=new _e(F,P+"enter",ke,l,X),_e.target=$,_e.relatedTarget=wt,se=_e),wt=se,he&&ke)t:{for(_e=he,F=ke,P=0,$=_e;$;$=Ii($))P++;for($=0,se=F;se;se=Ii(se))$++;for(;0<P-$;)_e=Ii(_e),P--;for(;0<$-P;)F=Ii(F),$--;for(;P--;){if(_e===F||F!==null&&_e===F.alternate)break t;_e=Ii(_e),F=Ii(F)}_e=null}else _e=null;he!==null&&yf(te,Q,he,_e,!1),ke!==null&&wt!==null&&yf(te,wt,ke,_e,!0)}}e:{if(Q=U?Ri(U):window,he=Q.nodeName&&Q.nodeName.toLowerCase(),he==="select"||he==="input"&&Q.type==="file")var be=xv;else if(Qd(Q))if(Xd)be=Sv;else{be=wv;var je=_v}else(he=Q.nodeName)&&he.toLowerCase()==="input"&&(Q.type==="checkbox"||Q.type==="radio")&&(be=bv);if(be&&(be=be(n,U))){Yd(te,be,l,X);break e}je&&je(n,Q,U),n==="focusout"&&(je=Q._wrapperState)&&je.controlled&&Q.type==="number"&&Rt(Q,"number",Q.value)}switch(je=U?Ri(U):window,n){case"focusin":(Qd(je)||je.contentEditable==="true")&&(Ti=je,ba=U,Ss=null);break;case"focusout":Ss=ba=Ti=null;break;case"mousedown":Sa=!0;break;case"contextmenu":case"mouseup":case"dragend":Sa=!1,lf(te,l,X);break;case"selectionchange":if(Nv)break;case"keydown":case"keyup":lf(te,l,X)}var Ie;if(ka)e:{switch(n){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Ni?Kd(n,l)&&(Le="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(Le="onCompositionStart");Le&&(Hd&&l.locale!=="ko"&&(Ni||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Ni&&(Ie=Fd()):(Rr=X,pa="value"in Rr?Rr.value:Rr.textContent,Ni=!0)),je=Ol(U,Le),0<je.length&&(Le=new Ud(Le,n,null,l,X),te.push({event:Le,listeners:je}),Ie?Le.data=Ie:(Ie=qd(l),Ie!==null&&(Le.data=Ie)))),(Ie=hv?gv(n,l):yv(n,l))&&(U=Ol(U,"onBeforeInput"),0<U.length&&(X=new Ud("onBeforeInput","beforeinput",null,l,X),te.push({event:X,listeners:U}),X.data=Ie))}hf(te,i)})}function Ns(n,i,l){return{instance:n,listener:i,currentTarget:l}}function Ol(n,i){for(var l=i+"Capture",c=[];n!==null;){var p=n,g=p.stateNode;p.tag===5&&g!==null&&(p=g,g=ft(n,l),g!=null&&c.unshift(Ns(n,g,p)),g=ft(n,i),g!=null&&c.push(Ns(n,g,p))),n=n.return}return c}function Ii(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function yf(n,i,l,c,p){for(var g=i._reactName,_=[];l!==null&&l!==c;){var T=l,D=T.alternate,U=T.stateNode;if(D!==null&&D===c)break;T.tag===5&&U!==null&&(T=U,p?(D=ft(l,g),D!=null&&_.unshift(Ns(l,D,T))):p||(D=ft(l,g),D!=null&&_.push(Ns(l,D,T)))),l=l.return}_.length!==0&&n.push({event:i,listeners:_})}var Dv=/\r\n?/g,Rv=/\u0000|\uFFFD/g;function vf(n){return(typeof n=="string"?n:""+n).replace(Dv,`
38
- `).replace(Rv,"")}function zl(n,i,l){if(i=vf(i),vf(n)!==i&&l)throw Error(r(425))}function Fl(){}var Ia=null,Da=null;function Ra(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Aa=typeof setTimeout=="function"?setTimeout:void 0,Av=typeof clearTimeout=="function"?clearTimeout:void 0,kf=typeof Promise=="function"?Promise:void 0,Pv=typeof queueMicrotask=="function"?queueMicrotask:typeof kf<"u"?function(n){return kf.resolve(null).then(n).catch(Lv)}:Aa;function Lv(n){setTimeout(function(){throw n})}function Pa(n,i){var l=i,c=0;do{var p=l.nextSibling;if(n.removeChild(l),p&&p.nodeType===8)if(l=p.data,l==="/$"){if(c===0){n.removeChild(p),ys(i);return}c--}else l!=="$"&&l!=="$?"&&l!=="$!"||c++;l=p}while(l);ys(i)}function Pr(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function xf(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return n;i--}else l==="/$"&&i++}n=n.previousSibling}return null}var Di=Math.random().toString(36).slice(2),ir="__reactFiber$"+Di,Ts="__reactProps$"+Di,gr="__reactContainer$"+Di,La="__reactEvents$"+Di,Mv="__reactListeners$"+Di,Ov="__reactHandles$"+Di;function si(n){var i=n[ir];if(i)return i;for(var l=n.parentNode;l;){if(i=l[gr]||l[ir]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=xf(n);n!==null;){if(l=n[ir])return l;n=xf(n)}return i}n=l,l=n.parentNode}return null}function js(n){return n=n[ir]||n[gr],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function Ri(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function $l(n){return n[Ts]||null}var Ma=[],Ai=-1;function Lr(n){return{current:n}}function at(n){0>Ai||(n.current=Ma[Ai],Ma[Ai]=null,Ai--)}function lt(n,i){Ai++,Ma[Ai]=n.current,n.current=i}var Mr={},Qt=Lr(Mr),cn=Lr(!1),li=Mr;function Pi(n,i){var l=n.type.contextTypes;if(!l)return Mr;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var p={},g;for(g in l)p[g]=i[g];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=p),p}function dn(n){return n=n.childContextTypes,n!=null}function Bl(){at(cn),at(Qt)}function _f(n,i,l){if(Qt.current!==Mr)throw Error(r(168));lt(Qt,i),lt(cn,l)}function wf(n,i,l){var c=n.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return l;c=c.getChildContext();for(var p in c)if(!(p in i))throw Error(r(108,$e(n)||"Unknown",p));return S({},l,c)}function Ul(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Mr,li=Qt.current,lt(Qt,n),lt(cn,cn.current),!0}function bf(n,i,l){var c=n.stateNode;if(!c)throw Error(r(169));l?(n=wf(n,i,li),c.__reactInternalMemoizedMergedChildContext=n,at(cn),at(Qt),lt(Qt,n)):at(cn),lt(cn,l)}var yr=null,Vl=!1,Oa=!1;function Sf(n){yr===null?yr=[n]:yr.push(n)}function zv(n){Vl=!0,Sf(n)}function Or(){if(!Oa&&yr!==null){Oa=!0;var n=0,i=Ge;try{var l=yr;for(Ge=1;n<l.length;n++){var c=l[n];do c=c(!0);while(c!==null)}yr=null,Vl=!1}catch(p){throw yr!==null&&(yr=yr.slice(n+1)),Cd(sa,Or),p}finally{Ge=i,Oa=!1}}return null}var Li=[],Mi=0,Hl=null,Wl=0,Dn=[],Rn=0,oi=null,vr=1,kr="";function ai(n,i){Li[Mi++]=Wl,Li[Mi++]=Hl,Hl=n,Wl=i}function Cf(n,i,l){Dn[Rn++]=vr,Dn[Rn++]=kr,Dn[Rn++]=oi,oi=n;var c=vr;n=kr;var p=32-Wn(c)-1;c&=~(1<<p),l+=1;var g=32-Wn(i)+p;if(30<g){var _=p-p%5;g=(c&(1<<_)-1).toString(32),c>>=_,p-=_,vr=1<<32-Wn(i)+p|l<<p|c,kr=g+n}else vr=1<<g|l<<p|c,kr=n}function za(n){n.return!==null&&(ai(n,1),Cf(n,1,0))}function Fa(n){for(;n===Hl;)Hl=Li[--Mi],Li[Mi]=null,Wl=Li[--Mi],Li[Mi]=null;for(;n===oi;)oi=Dn[--Rn],Dn[Rn]=null,kr=Dn[--Rn],Dn[Rn]=null,vr=Dn[--Rn],Dn[Rn]=null}var wn=null,bn=null,ct=!1,Kn=null;function Ef(n,i){var l=Mn(5,null,null,0);l.elementType="DELETED",l.stateNode=i,l.return=n,i=n.deletions,i===null?(n.deletions=[l],n.flags|=16):i.push(l)}function Nf(n,i){switch(n.tag){case 5:var l=n.type;return i=i.nodeType!==1||l.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,wn=n,bn=Pr(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,wn=n,bn=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(l=oi!==null?{id:vr,overflow:kr}:null,n.memoizedState={dehydrated:i,treeContext:l,retryLane:1073741824},l=Mn(18,null,null,0),l.stateNode=i,l.return=n,n.child=l,wn=n,bn=null,!0):!1;default:return!1}}function $a(n){return(n.mode&1)!==0&&(n.flags&128)===0}function Ba(n){if(ct){var i=bn;if(i){var l=i;if(!Nf(n,i)){if($a(n))throw Error(r(418));i=Pr(l.nextSibling);var c=wn;i&&Nf(n,i)?Ef(c,l):(n.flags=n.flags&-4097|2,ct=!1,wn=n)}}else{if($a(n))throw Error(r(418));n.flags=n.flags&-4097|2,ct=!1,wn=n}}}function Tf(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;wn=n}function Zl(n){if(n!==wn)return!1;if(!ct)return Tf(n),ct=!0,!1;var i;if((i=n.tag!==3)&&!(i=n.tag!==5)&&(i=n.type,i=i!=="head"&&i!=="body"&&!Ra(n.type,n.memoizedProps)),i&&(i=bn)){if($a(n))throw jf(),Error(r(418));for(;i;)Ef(n,i),i=Pr(i.nextSibling)}if(Tf(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"){if(i===0){bn=Pr(n.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++}n=n.nextSibling}bn=null}}else bn=wn?Pr(n.stateNode.nextSibling):null;return!0}function jf(){for(var n=bn;n;)n=Pr(n.nextSibling)}function Oi(){bn=wn=null,ct=!1}function Ua(n){Kn===null?Kn=[n]:Kn.push(n)}var Fv=z.ReactCurrentBatchConfig;function Is(n,i,l){if(n=l.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(r(309));var c=l.stateNode}if(!c)throw Error(r(147,n));var p=c,g=""+n;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===g?i.ref:(i=function(_){var T=p.refs;_===null?delete T[g]:T[g]=_},i._stringRef=g,i)}if(typeof n!="string")throw Error(r(284));if(!l._owner)throw Error(r(290,n))}return n}function Kl(n,i){throw n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n))}function If(n){var i=n._init;return i(n._payload)}function Df(n){function i(F,P){if(n){var $=F.deletions;$===null?(F.deletions=[P],F.flags|=16):$.push(P)}}function l(F,P){if(!n)return null;for(;P!==null;)i(F,P),P=P.sibling;return null}function c(F,P){for(F=new Map;P!==null;)P.key!==null?F.set(P.key,P):F.set(P.index,P),P=P.sibling;return F}function p(F,P){return F=Wr(F,P),F.index=0,F.sibling=null,F}function g(F,P,$){return F.index=$,n?($=F.alternate,$!==null?($=$.index,$<P?(F.flags|=2,P):$):(F.flags|=2,P)):(F.flags|=1048576,P)}function _(F){return n&&F.alternate===null&&(F.flags|=2),F}function T(F,P,$,se){return P===null||P.tag!==6?(P=Au($,F.mode,se),P.return=F,P):(P=p(P,$),P.return=F,P)}function D(F,P,$,se){var be=$.type;return be===K?X(F,P,$.props.children,se,$.key):P!==null&&(P.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===G&&If(be)===P.type)?(se=p(P,$.props),se.ref=Is(F,P,$),se.return=F,se):(se=vo($.type,$.key,$.props,null,F.mode,se),se.ref=Is(F,P,$),se.return=F,se)}function U(F,P,$,se){return P===null||P.tag!==4||P.stateNode.containerInfo!==$.containerInfo||P.stateNode.implementation!==$.implementation?(P=Pu($,F.mode,se),P.return=F,P):(P=p(P,$.children||[]),P.return=F,P)}function X(F,P,$,se,be){return P===null||P.tag!==7?(P=gi($,F.mode,se,be),P.return=F,P):(P=p(P,$),P.return=F,P)}function te(F,P,$){if(typeof P=="string"&&P!==""||typeof P=="number")return P=Au(""+P,F.mode,$),P.return=F,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case V:return $=vo(P.type,P.key,P.props,null,F.mode,$),$.ref=Is(F,null,P),$.return=F,$;case L:return P=Pu(P,F.mode,$),P.return=F,P;case G:var se=P._init;return te(F,se(P._payload),$)}if(gt(P)||fe(P))return P=gi(P,F.mode,$,null),P.return=F,P;Kl(F,P)}return null}function Q(F,P,$,se){var be=P!==null?P.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return be!==null?null:T(F,P,""+$,se);if(typeof $=="object"&&$!==null){switch($.$$typeof){case V:return $.key===be?D(F,P,$,se):null;case L:return $.key===be?U(F,P,$,se):null;case G:return be=$._init,Q(F,P,be($._payload),se)}if(gt($)||fe($))return be!==null?null:X(F,P,$,se,null);Kl(F,$)}return null}function he(F,P,$,se,be){if(typeof se=="string"&&se!==""||typeof se=="number")return F=F.get($)||null,T(P,F,""+se,be);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case V:return F=F.get(se.key===null?$:se.key)||null,D(P,F,se,be);case L:return F=F.get(se.key===null?$:se.key)||null,U(P,F,se,be);case G:var je=se._init;return he(F,P,$,je(se._payload),be)}if(gt(se)||fe(se))return F=F.get($)||null,X(P,F,se,be,null);Kl(P,se)}return null}function ke(F,P,$,se){for(var be=null,je=null,Ie=P,Le=P=0,Lt=null;Ie!==null&&Le<$.length;Le++){Ie.index>Le?(Lt=Ie,Ie=null):Lt=Ie.sibling;var Qe=Q(F,Ie,$[Le],se);if(Qe===null){Ie===null&&(Ie=Lt);break}n&&Ie&&Qe.alternate===null&&i(F,Ie),P=g(Qe,P,Le),je===null?be=Qe:je.sibling=Qe,je=Qe,Ie=Lt}if(Le===$.length)return l(F,Ie),ct&&ai(F,Le),be;if(Ie===null){for(;Le<$.length;Le++)Ie=te(F,$[Le],se),Ie!==null&&(P=g(Ie,P,Le),je===null?be=Ie:je.sibling=Ie,je=Ie);return ct&&ai(F,Le),be}for(Ie=c(F,Ie);Le<$.length;Le++)Lt=he(Ie,F,Le,$[Le],se),Lt!==null&&(n&&Lt.alternate!==null&&Ie.delete(Lt.key===null?Le:Lt.key),P=g(Lt,P,Le),je===null?be=Lt:je.sibling=Lt,je=Lt);return n&&Ie.forEach(function(Zr){return i(F,Zr)}),ct&&ai(F,Le),be}function _e(F,P,$,se){var be=fe($);if(typeof be!="function")throw Error(r(150));if($=be.call($),$==null)throw Error(r(151));for(var je=be=null,Ie=P,Le=P=0,Lt=null,Qe=$.next();Ie!==null&&!Qe.done;Le++,Qe=$.next()){Ie.index>Le?(Lt=Ie,Ie=null):Lt=Ie.sibling;var Zr=Q(F,Ie,Qe.value,se);if(Zr===null){Ie===null&&(Ie=Lt);break}n&&Ie&&Zr.alternate===null&&i(F,Ie),P=g(Zr,P,Le),je===null?be=Zr:je.sibling=Zr,je=Zr,Ie=Lt}if(Qe.done)return l(F,Ie),ct&&ai(F,Le),be;if(Ie===null){for(;!Qe.done;Le++,Qe=$.next())Qe=te(F,Qe.value,se),Qe!==null&&(P=g(Qe,P,Le),je===null?be=Qe:je.sibling=Qe,je=Qe);return ct&&ai(F,Le),be}for(Ie=c(F,Ie);!Qe.done;Le++,Qe=$.next())Qe=he(Ie,F,Le,Qe.value,se),Qe!==null&&(n&&Qe.alternate!==null&&Ie.delete(Qe.key===null?Le:Qe.key),P=g(Qe,P,Le),je===null?be=Qe:je.sibling=Qe,je=Qe);return n&&Ie.forEach(function(vk){return i(F,vk)}),ct&&ai(F,Le),be}function wt(F,P,$,se){if(typeof $=="object"&&$!==null&&$.type===K&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case V:e:{for(var be=$.key,je=P;je!==null;){if(je.key===be){if(be=$.type,be===K){if(je.tag===7){l(F,je.sibling),P=p(je,$.props.children),P.return=F,F=P;break e}}else if(je.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===G&&If(be)===je.type){l(F,je.sibling),P=p(je,$.props),P.ref=Is(F,je,$),P.return=F,F=P;break e}l(F,je);break}else i(F,je);je=je.sibling}$.type===K?(P=gi($.props.children,F.mode,se,$.key),P.return=F,F=P):(se=vo($.type,$.key,$.props,null,F.mode,se),se.ref=Is(F,P,$),se.return=F,F=se)}return _(F);case L:e:{for(je=$.key;P!==null;){if(P.key===je)if(P.tag===4&&P.stateNode.containerInfo===$.containerInfo&&P.stateNode.implementation===$.implementation){l(F,P.sibling),P=p(P,$.children||[]),P.return=F,F=P;break e}else{l(F,P);break}else i(F,P);P=P.sibling}P=Pu($,F.mode,se),P.return=F,F=P}return _(F);case G:return je=$._init,wt(F,P,je($._payload),se)}if(gt($))return ke(F,P,$,se);if(fe($))return _e(F,P,$,se);Kl(F,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,P!==null&&P.tag===6?(l(F,P.sibling),P=p(P,$),P.return=F,F=P):(l(F,P),P=Au($,F.mode,se),P.return=F,F=P),_(F)):l(F,P)}return wt}var zi=Df(!0),Rf=Df(!1),ql=Lr(null),Ql=null,Fi=null,Va=null;function Ha(){Va=Fi=Ql=null}function Wa(n){var i=ql.current;at(ql),n._currentValue=i}function Za(n,i,l){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===l)break;n=n.return}}function $i(n,i){Ql=n,Va=Fi=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&i)!==0&&(fn=!0),n.firstContext=null)}function An(n){var i=n._currentValue;if(Va!==n)if(n={context:n,memoizedValue:i,next:null},Fi===null){if(Ql===null)throw Error(r(308));Fi=n,Ql.dependencies={lanes:0,firstContext:n}}else Fi=Fi.next=n;return i}var ui=null;function Ka(n){ui===null?ui=[n]:ui.push(n)}function Af(n,i,l,c){var p=i.interleaved;return p===null?(l.next=l,Ka(i)):(l.next=p.next,p.next=l),i.interleaved=l,xr(n,c)}function xr(n,i){n.lanes|=i;var l=n.alternate;for(l!==null&&(l.lanes|=i),l=n,n=n.return;n!==null;)n.childLanes|=i,l=n.alternate,l!==null&&(l.childLanes|=i),l=n,n=n.return;return l.tag===3?l.stateNode:null}var zr=!1;function qa(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pf(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function _r(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function Fr(n,i,l){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Ke&2)!==0){var p=c.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),c.pending=i,xr(n,l)}return p=c.interleaved,p===null?(i.next=i,Ka(c)):(i.next=p.next,p.next=i),c.interleaved=i,xr(n,l)}function Yl(n,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194240)!==0)){var c=i.lanes;c&=n.pendingLanes,l|=c,i.lanes=l,aa(n,l)}}function Lf(n,i){var l=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var p=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var _={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};g===null?p=g=_:g=g.next=_,l=l.next}while(l!==null);g===null?p=g=i:g=g.next=i}else p=g=i;l={baseState:c.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:c.shared,effects:c.effects},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=i:n.next=i,l.lastBaseUpdate=i}function Xl(n,i,l,c){var p=n.updateQueue;zr=!1;var g=p.firstBaseUpdate,_=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var D=T,U=D.next;D.next=null,_===null?g=U:_.next=U,_=D;var X=n.alternate;X!==null&&(X=X.updateQueue,T=X.lastBaseUpdate,T!==_&&(T===null?X.firstBaseUpdate=U:T.next=U,X.lastBaseUpdate=D))}if(g!==null){var te=p.baseState;_=0,X=U=D=null,T=g;do{var Q=T.lane,he=T.eventTime;if((c&Q)===Q){X!==null&&(X=X.next={eventTime:he,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var ke=n,_e=T;switch(Q=i,he=l,_e.tag){case 1:if(ke=_e.payload,typeof ke=="function"){te=ke.call(he,te,Q);break e}te=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=_e.payload,Q=typeof ke=="function"?ke.call(he,te,Q):ke,Q==null)break e;te=S({},te,Q);break e;case 2:zr=!0}}T.callback!==null&&T.lane!==0&&(n.flags|=64,Q=p.effects,Q===null?p.effects=[T]:Q.push(T))}else he={eventTime:he,lane:Q,tag:T.tag,payload:T.payload,callback:T.callback,next:null},X===null?(U=X=he,D=te):X=X.next=he,_|=Q;if(T=T.next,T===null){if(T=p.shared.pending,T===null)break;Q=T,T=Q.next,Q.next=null,p.lastBaseUpdate=Q,p.shared.pending=null}}while(!0);if(X===null&&(D=te),p.baseState=D,p.firstBaseUpdate=U,p.lastBaseUpdate=X,i=p.shared.interleaved,i!==null){p=i;do _|=p.lane,p=p.next;while(p!==i)}else g===null&&(p.shared.lanes=0);fi|=_,n.lanes=_,n.memoizedState=te}}function Mf(n,i,l){if(n=i.effects,i.effects=null,n!==null)for(i=0;i<n.length;i++){var c=n[i],p=c.callback;if(p!==null){if(c.callback=null,c=l,typeof p!="function")throw Error(r(191,p));p.call(c)}}}var Ds={},sr=Lr(Ds),Rs=Lr(Ds),As=Lr(Ds);function ci(n){if(n===Ds)throw Error(r(174));return n}function Qa(n,i){switch(lt(As,i),lt(Rs,n),lt(sr,Ds),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:ne(null,"");break;default:n=n===8?i.parentNode:i,i=n.namespaceURI||null,n=n.tagName,i=ne(i,n)}at(sr),lt(sr,i)}function Bi(){at(sr),at(Rs),at(As)}function Of(n){ci(As.current);var i=ci(sr.current),l=ne(i,n.type);i!==l&&(lt(Rs,n),lt(sr,l))}function Ya(n){Rs.current===n&&(at(sr),at(Rs))}var pt=Lr(0);function Gl(n){for(var i=n;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.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===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Xa=[];function Ga(){for(var n=0;n<Xa.length;n++)Xa[n]._workInProgressVersionPrimary=null;Xa.length=0}var Jl=z.ReactCurrentDispatcher,Ja=z.ReactCurrentBatchConfig,di=0,mt=null,Tt=null,At=null,eo=!1,Ps=!1,Ls=0,$v=0;function Yt(){throw Error(r(321))}function eu(n,i){if(i===null)return!1;for(var l=0;l<i.length&&l<n.length;l++)if(!Zn(n[l],i[l]))return!1;return!0}function tu(n,i,l,c,p,g){if(di=g,mt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Jl.current=n===null||n.memoizedState===null?Hv:Wv,n=l(c,p),Ps){g=0;do{if(Ps=!1,Ls=0,25<=g)throw Error(r(301));g+=1,At=Tt=null,i.updateQueue=null,Jl.current=Zv,n=l(c,p)}while(Ps)}if(Jl.current=ro,i=Tt!==null&&Tt.next!==null,di=0,At=Tt=mt=null,eo=!1,i)throw Error(r(300));return n}function nu(){var n=Ls!==0;return Ls=0,n}function lr(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?mt.memoizedState=At=n:At=At.next=n,At}function Pn(){if(Tt===null){var n=mt.alternate;n=n!==null?n.memoizedState:null}else n=Tt.next;var i=At===null?mt.memoizedState:At.next;if(i!==null)At=i,Tt=n;else{if(n===null)throw Error(r(310));Tt=n,n={memoizedState:Tt.memoizedState,baseState:Tt.baseState,baseQueue:Tt.baseQueue,queue:Tt.queue,next:null},At===null?mt.memoizedState=At=n:At=At.next=n}return At}function Ms(n,i){return typeof i=="function"?i(n):i}function ru(n){var i=Pn(),l=i.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var c=Tt,p=c.baseQueue,g=l.pending;if(g!==null){if(p!==null){var _=p.next;p.next=g.next,g.next=_}c.baseQueue=p=g,l.pending=null}if(p!==null){g=p.next,c=c.baseState;var T=_=null,D=null,U=g;do{var X=U.lane;if((di&X)===X)D!==null&&(D=D.next={lane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),c=U.hasEagerState?U.eagerState:n(c,U.action);else{var te={lane:X,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null};D===null?(T=D=te,_=c):D=D.next=te,mt.lanes|=X,fi|=X}U=U.next}while(U!==null&&U!==g);D===null?_=c:D.next=T,Zn(c,i.memoizedState)||(fn=!0),i.memoizedState=c,i.baseState=_,i.baseQueue=D,l.lastRenderedState=c}if(n=l.interleaved,n!==null){p=n;do g=p.lane,mt.lanes|=g,fi|=g,p=p.next;while(p!==n)}else p===null&&(l.lanes=0);return[i.memoizedState,l.dispatch]}function iu(n){var i=Pn(),l=i.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var c=l.dispatch,p=l.pending,g=i.memoizedState;if(p!==null){l.pending=null;var _=p=p.next;do g=n(g,_.action),_=_.next;while(_!==p);Zn(g,i.memoizedState)||(fn=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),l.lastRenderedState=g}return[g,c]}function zf(){}function Ff(n,i){var l=mt,c=Pn(),p=i(),g=!Zn(c.memoizedState,p);if(g&&(c.memoizedState=p,fn=!0),c=c.queue,su(Uf.bind(null,l,c,n),[n]),c.getSnapshot!==i||g||At!==null&&At.memoizedState.tag&1){if(l.flags|=2048,Os(9,Bf.bind(null,l,c,p,i),void 0,null),Pt===null)throw Error(r(349));(di&30)!==0||$f(l,i,p)}return p}function $f(n,i,l){n.flags|=16384,n={getSnapshot:i,value:l},i=mt.updateQueue,i===null?(i={lastEffect:null,stores:null},mt.updateQueue=i,i.stores=[n]):(l=i.stores,l===null?i.stores=[n]:l.push(n))}function Bf(n,i,l,c){i.value=l,i.getSnapshot=c,Vf(i)&&Hf(n)}function Uf(n,i,l){return l(function(){Vf(i)&&Hf(n)})}function Vf(n){var i=n.getSnapshot;n=n.value;try{var l=i();return!Zn(n,l)}catch{return!0}}function Hf(n){var i=xr(n,1);i!==null&&Xn(i,n,1,-1)}function Wf(n){var i=lr();return typeof n=="function"&&(n=n()),i.memoizedState=i.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ms,lastRenderedState:n},i.queue=n,n=n.dispatch=Vv.bind(null,mt,n),[i.memoizedState,n]}function Os(n,i,l,c){return n={tag:n,create:i,destroy:l,deps:c,next:null},i=mt.updateQueue,i===null?(i={lastEffect:null,stores:null},mt.updateQueue=i,i.lastEffect=n.next=n):(l=i.lastEffect,l===null?i.lastEffect=n.next=n:(c=l.next,l.next=n,n.next=c,i.lastEffect=n)),n}function Zf(){return Pn().memoizedState}function to(n,i,l,c){var p=lr();mt.flags|=n,p.memoizedState=Os(1|i,l,void 0,c===void 0?null:c)}function no(n,i,l,c){var p=Pn();c=c===void 0?null:c;var g=void 0;if(Tt!==null){var _=Tt.memoizedState;if(g=_.destroy,c!==null&&eu(c,_.deps)){p.memoizedState=Os(i,l,g,c);return}}mt.flags|=n,p.memoizedState=Os(1|i,l,g,c)}function Kf(n,i){return to(8390656,8,n,i)}function su(n,i){return no(2048,8,n,i)}function qf(n,i){return no(4,2,n,i)}function Qf(n,i){return no(4,4,n,i)}function Yf(n,i){if(typeof i=="function")return n=n(),i(n),function(){i(null)};if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function Xf(n,i,l){return l=l!=null?l.concat([n]):null,no(4,4,Yf.bind(null,i,n),l)}function lu(){}function Gf(n,i){var l=Pn();i=i===void 0?null:i;var c=l.memoizedState;return c!==null&&i!==null&&eu(i,c[1])?c[0]:(l.memoizedState=[n,i],n)}function Jf(n,i){var l=Pn();i=i===void 0?null:i;var c=l.memoizedState;return c!==null&&i!==null&&eu(i,c[1])?c[0]:(n=n(),l.memoizedState=[n,i],n)}function ep(n,i,l){return(di&21)===0?(n.baseState&&(n.baseState=!1,fn=!0),n.memoizedState=l):(Zn(l,i)||(l=jd(),mt.lanes|=l,fi|=l,n.baseState=!0),i)}function Bv(n,i){var l=Ge;Ge=l!==0&&4>l?l:4,n(!0);var c=Ja.transition;Ja.transition={};try{n(!1),i()}finally{Ge=l,Ja.transition=c}}function tp(){return Pn().memoizedState}function Uv(n,i,l){var c=Vr(n);if(l={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null},np(n))rp(i,l);else if(l=Af(n,i,l,c),l!==null){var p=ln();Xn(l,n,c,p),ip(l,i,c)}}function Vv(n,i,l){var c=Vr(n),p={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null};if(np(n))rp(i,p);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var _=i.lastRenderedState,T=g(_,l);if(p.hasEagerState=!0,p.eagerState=T,Zn(T,_)){var D=i.interleaved;D===null?(p.next=p,Ka(i)):(p.next=D.next,D.next=p),i.interleaved=p;return}}catch{}finally{}l=Af(n,i,p,c),l!==null&&(p=ln(),Xn(l,n,c,p),ip(l,i,c))}}function np(n){var i=n.alternate;return n===mt||i!==null&&i===mt}function rp(n,i){Ps=eo=!0;var l=n.pending;l===null?i.next=i:(i.next=l.next,l.next=i),n.pending=i}function ip(n,i,l){if((l&4194240)!==0){var c=i.lanes;c&=n.pendingLanes,l|=c,i.lanes=l,aa(n,l)}}var ro={readContext:An,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useInsertionEffect:Yt,useLayoutEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useMutableSource:Yt,useSyncExternalStore:Yt,useId:Yt,unstable_isNewReconciler:!1},Hv={readContext:An,useCallback:function(n,i){return lr().memoizedState=[n,i===void 0?null:i],n},useContext:An,useEffect:Kf,useImperativeHandle:function(n,i,l){return l=l!=null?l.concat([n]):null,to(4194308,4,Yf.bind(null,i,n),l)},useLayoutEffect:function(n,i){return to(4194308,4,n,i)},useInsertionEffect:function(n,i){return to(4,2,n,i)},useMemo:function(n,i){var l=lr();return i=i===void 0?null:i,n=n(),l.memoizedState=[n,i],n},useReducer:function(n,i,l){var c=lr();return i=l!==void 0?l(i):i,c.memoizedState=c.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},c.queue=n,n=n.dispatch=Uv.bind(null,mt,n),[c.memoizedState,n]},useRef:function(n){var i=lr();return n={current:n},i.memoizedState=n},useState:Wf,useDebugValue:lu,useDeferredValue:function(n){return lr().memoizedState=n},useTransition:function(){var n=Wf(!1),i=n[0];return n=Bv.bind(null,n[1]),lr().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,l){var c=mt,p=lr();if(ct){if(l===void 0)throw Error(r(407));l=l()}else{if(l=i(),Pt===null)throw Error(r(349));(di&30)!==0||$f(c,i,l)}p.memoizedState=l;var g={value:l,getSnapshot:i};return p.queue=g,Kf(Uf.bind(null,c,g,n),[n]),c.flags|=2048,Os(9,Bf.bind(null,c,g,l,i),void 0,null),l},useId:function(){var n=lr(),i=Pt.identifierPrefix;if(ct){var l=kr,c=vr;l=(c&~(1<<32-Wn(c)-1)).toString(32)+l,i=":"+i+"R"+l,l=Ls++,0<l&&(i+="H"+l.toString(32)),i+=":"}else l=$v++,i=":"+i+"r"+l.toString(32)+":";return n.memoizedState=i},unstable_isNewReconciler:!1},Wv={readContext:An,useCallback:Gf,useContext:An,useEffect:su,useImperativeHandle:Xf,useInsertionEffect:qf,useLayoutEffect:Qf,useMemo:Jf,useReducer:ru,useRef:Zf,useState:function(){return ru(Ms)},useDebugValue:lu,useDeferredValue:function(n){var i=Pn();return ep(i,Tt.memoizedState,n)},useTransition:function(){var n=ru(Ms)[0],i=Pn().memoizedState;return[n,i]},useMutableSource:zf,useSyncExternalStore:Ff,useId:tp,unstable_isNewReconciler:!1},Zv={readContext:An,useCallback:Gf,useContext:An,useEffect:su,useImperativeHandle:Xf,useInsertionEffect:qf,useLayoutEffect:Qf,useMemo:Jf,useReducer:iu,useRef:Zf,useState:function(){return iu(Ms)},useDebugValue:lu,useDeferredValue:function(n){var i=Pn();return Tt===null?i.memoizedState=n:ep(i,Tt.memoizedState,n)},useTransition:function(){var n=iu(Ms)[0],i=Pn().memoizedState;return[n,i]},useMutableSource:zf,useSyncExternalStore:Ff,useId:tp,unstable_isNewReconciler:!1};function qn(n,i){if(n&&n.defaultProps){i=S({},i),n=n.defaultProps;for(var l in n)i[l]===void 0&&(i[l]=n[l]);return i}return i}function ou(n,i,l,c){i=n.memoizedState,l=l(c,i),l=l==null?i:S({},i,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var io={isMounted:function(n){return(n=n._reactInternals)?ii(n)===n:!1},enqueueSetState:function(n,i,l){n=n._reactInternals;var c=ln(),p=Vr(n),g=_r(c,p);g.payload=i,l!=null&&(g.callback=l),i=Fr(n,g,p),i!==null&&(Xn(i,n,p,c),Yl(i,n,p))},enqueueReplaceState:function(n,i,l){n=n._reactInternals;var c=ln(),p=Vr(n),g=_r(c,p);g.tag=1,g.payload=i,l!=null&&(g.callback=l),i=Fr(n,g,p),i!==null&&(Xn(i,n,p,c),Yl(i,n,p))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var l=ln(),c=Vr(n),p=_r(l,c);p.tag=2,i!=null&&(p.callback=i),i=Fr(n,p,c),i!==null&&(Xn(i,n,c,l),Yl(i,n,c))}};function sp(n,i,l,c,p,g,_){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,g,_):i.prototype&&i.prototype.isPureReactComponent?!bs(l,c)||!bs(p,g):!0}function lp(n,i,l){var c=!1,p=Mr,g=i.contextType;return typeof g=="object"&&g!==null?g=An(g):(p=dn(i)?li:Qt.current,c=i.contextTypes,g=(c=c!=null)?Pi(n,p):Mr),i=new i(l,g),n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=io,n.stateNode=i,i._reactInternals=n,c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=p,n.__reactInternalMemoizedMaskedChildContext=g),i}function op(n,i,l,c){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,c),i.state!==n&&io.enqueueReplaceState(i,i.state,null)}function au(n,i,l,c){var p=n.stateNode;p.props=l,p.state=n.memoizedState,p.refs={},qa(n);var g=i.contextType;typeof g=="object"&&g!==null?p.context=An(g):(g=dn(i)?li:Qt.current,p.context=Pi(n,g)),p.state=n.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(ou(n,i,g,l),p.state=n.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),Xl(n,l,p,c),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308)}function Ui(n,i){try{var l="",c=i;do l+=Te(c),c=c.return;while(c);var p=l}catch(g){p=`
39
- Error generating stack: `+g.message+`
40
- `+g.stack}return{value:n,source:i,stack:p,digest:null}}function uu(n,i,l){return{value:n,source:null,stack:l??null,digest:i??null}}function cu(n,i){try{console.error(i.value)}catch(l){setTimeout(function(){throw l})}}var Kv=typeof WeakMap=="function"?WeakMap:Map;function ap(n,i,l){l=_r(-1,l),l.tag=3,l.payload={element:null};var c=i.value;return l.callback=function(){fo||(fo=!0,Cu=c),cu(n,i)},l}function up(n,i,l){l=_r(-1,l),l.tag=3;var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var p=i.value;l.payload=function(){return c(p)},l.callback=function(){cu(n,i)}}var g=n.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(l.callback=function(){cu(n,i),typeof c!="function"&&(Br===null?Br=new Set([this]):Br.add(this));var _=i.stack;this.componentDidCatch(i.value,{componentStack:_!==null?_:""})}),l}function cp(n,i,l){var c=n.pingCache;if(c===null){c=n.pingCache=new Kv;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(l)||(p.add(l),n=ok.bind(null,n,i,l),i.then(n,n))}function dp(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function fp(n,i,l,c,p){return(n.mode&1)===0?(n===i?n.flags|=65536:(n.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(i=_r(-1,1),i.tag=2,Fr(l,i,1))),l.lanes|=1),n):(n.flags|=65536,n.lanes=p,n)}var qv=z.ReactCurrentOwner,fn=!1;function sn(n,i,l,c){i.child=n===null?Rf(i,null,l,c):zi(i,n.child,l,c)}function pp(n,i,l,c,p){l=l.render;var g=i.ref;return $i(i,p),c=tu(n,i,l,c,g,p),l=nu(),n!==null&&!fn?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~p,wr(n,i,p)):(ct&&l&&za(i),i.flags|=1,sn(n,i,c,p),i.child)}function mp(n,i,l,c,p){if(n===null){var g=l.type;return typeof g=="function"&&!Ru(g)&&g.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(i.tag=15,i.type=g,hp(n,i,g,c,p)):(n=vo(l.type,null,c,i,i.mode,p),n.ref=i.ref,n.return=i,i.child=n)}if(g=n.child,(n.lanes&p)===0){var _=g.memoizedProps;if(l=l.compare,l=l!==null?l:bs,l(_,c)&&n.ref===i.ref)return wr(n,i,p)}return i.flags|=1,n=Wr(g,c),n.ref=i.ref,n.return=i,i.child=n}function hp(n,i,l,c,p){if(n!==null){var g=n.memoizedProps;if(bs(g,c)&&n.ref===i.ref)if(fn=!1,i.pendingProps=c=g,(n.lanes&p)!==0)(n.flags&131072)!==0&&(fn=!0);else return i.lanes=n.lanes,wr(n,i,p)}return du(n,i,l,c,p)}function gp(n,i,l){var c=i.pendingProps,p=c.children,g=n!==null?n.memoizedState:null;if(c.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},lt(Hi,Sn),Sn|=l;else{if((l&1073741824)===0)return n=g!==null?g.baseLanes|l:l,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,lt(Hi,Sn),Sn|=n,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=g!==null?g.baseLanes:l,lt(Hi,Sn),Sn|=c}else g!==null?(c=g.baseLanes|l,i.memoizedState=null):c=l,lt(Hi,Sn),Sn|=c;return sn(n,i,p,l),i.child}function yp(n,i){var l=i.ref;(n===null&&l!==null||n!==null&&n.ref!==l)&&(i.flags|=512,i.flags|=2097152)}function du(n,i,l,c,p){var g=dn(l)?li:Qt.current;return g=Pi(i,g),$i(i,p),l=tu(n,i,l,c,g,p),c=nu(),n!==null&&!fn?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~p,wr(n,i,p)):(ct&&c&&za(i),i.flags|=1,sn(n,i,l,p),i.child)}function vp(n,i,l,c,p){if(dn(l)){var g=!0;Ul(i)}else g=!1;if($i(i,p),i.stateNode===null)lo(n,i),lp(i,l,c),au(i,l,c,p),c=!0;else if(n===null){var _=i.stateNode,T=i.memoizedProps;_.props=T;var D=_.context,U=l.contextType;typeof U=="object"&&U!==null?U=An(U):(U=dn(l)?li:Qt.current,U=Pi(i,U));var X=l.getDerivedStateFromProps,te=typeof X=="function"||typeof _.getSnapshotBeforeUpdate=="function";te||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(T!==c||D!==U)&&op(i,_,c,U),zr=!1;var Q=i.memoizedState;_.state=Q,Xl(i,c,_,p),D=i.memoizedState,T!==c||Q!==D||cn.current||zr?(typeof X=="function"&&(ou(i,l,X,c),D=i.memoizedState),(T=zr||sp(i,l,T,c,Q,D,U))?(te||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(i.flags|=4194308)):(typeof _.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=D),_.props=c,_.state=D,_.context=U,c=T):(typeof _.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{_=i.stateNode,Pf(n,i),T=i.memoizedProps,U=i.type===i.elementType?T:qn(i.type,T),_.props=U,te=i.pendingProps,Q=_.context,D=l.contextType,typeof D=="object"&&D!==null?D=An(D):(D=dn(l)?li:Qt.current,D=Pi(i,D));var he=l.getDerivedStateFromProps;(X=typeof he=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(T!==te||Q!==D)&&op(i,_,c,D),zr=!1,Q=i.memoizedState,_.state=Q,Xl(i,c,_,p);var ke=i.memoizedState;T!==te||Q!==ke||cn.current||zr?(typeof he=="function"&&(ou(i,l,he,c),ke=i.memoizedState),(U=zr||sp(i,l,U,c,Q,ke,D)||!1)?(X||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(c,ke,D),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(c,ke,D)),typeof _.componentDidUpdate=="function"&&(i.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof _.componentDidUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=ke),_.props=c,_.state=ke,_.context=D,c=U):(typeof _.componentDidUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=1024),c=!1)}return fu(n,i,l,c,g,p)}function fu(n,i,l,c,p,g){yp(n,i);var _=(i.flags&128)!==0;if(!c&&!_)return p&&bf(i,l,!1),wr(n,i,g);c=i.stateNode,qv.current=i;var T=_&&typeof l.getDerivedStateFromError!="function"?null:c.render();return i.flags|=1,n!==null&&_?(i.child=zi(i,n.child,null,g),i.child=zi(i,null,T,g)):sn(n,i,T,g),i.memoizedState=c.state,p&&bf(i,l,!0),i.child}function kp(n){var i=n.stateNode;i.pendingContext?_f(n,i.pendingContext,i.pendingContext!==i.context):i.context&&_f(n,i.context,!1),Qa(n,i.containerInfo)}function xp(n,i,l,c,p){return Oi(),Ua(p),i.flags|=256,sn(n,i,l,c),i.child}var pu={dehydrated:null,treeContext:null,retryLane:0};function mu(n){return{baseLanes:n,cachePool:null,transitions:null}}function _p(n,i,l){var c=i.pendingProps,p=pt.current,g=!1,_=(i.flags&128)!==0,T;if((T=_)||(T=n!==null&&n.memoizedState===null?!1:(p&2)!==0),T?(g=!0,i.flags&=-129):(n===null||n.memoizedState!==null)&&(p|=1),lt(pt,p&1),n===null)return Ba(i),n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((i.mode&1)===0?i.lanes=1:n.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(_=c.children,n=c.fallback,g?(c=i.mode,g=i.child,_={mode:"hidden",children:_},(c&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=_):g=ko(_,c,0,null),n=gi(n,c,l,null),g.return=i,n.return=i,g.sibling=n,i.child=g,i.child.memoizedState=mu(l),i.memoizedState=pu,n):hu(i,_));if(p=n.memoizedState,p!==null&&(T=p.dehydrated,T!==null))return Qv(n,i,_,c,T,p,l);if(g){g=c.fallback,_=i.mode,p=n.child,T=p.sibling;var D={mode:"hidden",children:c.children};return(_&1)===0&&i.child!==p?(c=i.child,c.childLanes=0,c.pendingProps=D,i.deletions=null):(c=Wr(p,D),c.subtreeFlags=p.subtreeFlags&14680064),T!==null?g=Wr(T,g):(g=gi(g,_,l,null),g.flags|=2),g.return=i,c.return=i,c.sibling=g,i.child=c,c=g,g=i.child,_=n.child.memoizedState,_=_===null?mu(l):{baseLanes:_.baseLanes|l,cachePool:null,transitions:_.transitions},g.memoizedState=_,g.childLanes=n.childLanes&~l,i.memoizedState=pu,c}return g=n.child,n=g.sibling,c=Wr(g,{mode:"visible",children:c.children}),(i.mode&1)===0&&(c.lanes=l),c.return=i,c.sibling=null,n!==null&&(l=i.deletions,l===null?(i.deletions=[n],i.flags|=16):l.push(n)),i.child=c,i.memoizedState=null,c}function hu(n,i){return i=ko({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function so(n,i,l,c){return c!==null&&Ua(c),zi(i,n.child,null,l),n=hu(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function Qv(n,i,l,c,p,g,_){if(l)return i.flags&256?(i.flags&=-257,c=uu(Error(r(422))),so(n,i,_,c)):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(g=c.fallback,p=i.mode,c=ko({mode:"visible",children:c.children},p,0,null),g=gi(g,p,_,null),g.flags|=2,c.return=i,g.return=i,c.sibling=g,i.child=c,(i.mode&1)!==0&&zi(i,n.child,null,_),i.child.memoizedState=mu(_),i.memoizedState=pu,g);if((i.mode&1)===0)return so(n,i,_,null);if(p.data==="$!"){if(c=p.nextSibling&&p.nextSibling.dataset,c)var T=c.dgst;return c=T,g=Error(r(419)),c=uu(g,c,void 0),so(n,i,_,c)}if(T=(_&n.childLanes)!==0,fn||T){if(c=Pt,c!==null){switch(_&-_){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|_))!==0?0:p,p!==0&&p!==g.retryLane&&(g.retryLane=p,xr(n,p),Xn(c,n,p,-1))}return Du(),c=uu(Error(r(421))),so(n,i,_,c)}return p.data==="$?"?(i.flags|=128,i.child=n.child,i=ak.bind(null,n),p._reactRetry=i,null):(n=g.treeContext,bn=Pr(p.nextSibling),wn=i,ct=!0,Kn=null,n!==null&&(Dn[Rn++]=vr,Dn[Rn++]=kr,Dn[Rn++]=oi,vr=n.id,kr=n.overflow,oi=i),i=hu(i,c.children),i.flags|=4096,i)}function wp(n,i,l){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i),Za(n.return,i,l)}function gu(n,i,l,c,p){var g=n.memoizedState;g===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:p}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=l,g.tailMode=p)}function bp(n,i,l){var c=i.pendingProps,p=c.revealOrder,g=c.tail;if(sn(n,i,c.children,l),c=pt.current,(c&2)!==0)c=c&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&wp(n,l,i);else if(n.tag===19)wp(n,l,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}if(lt(pt,c),(i.mode&1)===0)i.memoizedState=null;else switch(p){case"forwards":for(l=i.child,p=null;l!==null;)n=l.alternate,n!==null&&Gl(n)===null&&(p=l),l=l.sibling;l=p,l===null?(p=i.child,i.child=null):(p=l.sibling,l.sibling=null),gu(i,!1,p,l,g);break;case"backwards":for(l=null,p=i.child,i.child=null;p!==null;){if(n=p.alternate,n!==null&&Gl(n)===null){i.child=p;break}n=p.sibling,p.sibling=l,l=p,p=n}gu(i,!0,l,null,g);break;case"together":gu(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function lo(n,i){(i.mode&1)===0&&n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2)}function wr(n,i,l){if(n!==null&&(i.dependencies=n.dependencies),fi|=i.lanes,(l&i.childLanes)===0)return null;if(n!==null&&i.child!==n.child)throw Error(r(153));if(i.child!==null){for(n=i.child,l=Wr(n,n.pendingProps),i.child=l,l.return=i;n.sibling!==null;)n=n.sibling,l=l.sibling=Wr(n,n.pendingProps),l.return=i;l.sibling=null}return i.child}function Yv(n,i,l){switch(i.tag){case 3:kp(i),Oi();break;case 5:Of(i);break;case 1:dn(i.type)&&Ul(i);break;case 4:Qa(i,i.stateNode.containerInfo);break;case 10:var c=i.type._context,p=i.memoizedProps.value;lt(ql,c._currentValue),c._currentValue=p;break;case 13:if(c=i.memoizedState,c!==null)return c.dehydrated!==null?(lt(pt,pt.current&1),i.flags|=128,null):(l&i.child.childLanes)!==0?_p(n,i,l):(lt(pt,pt.current&1),n=wr(n,i,l),n!==null?n.sibling:null);lt(pt,pt.current&1);break;case 19:if(c=(l&i.childLanes)!==0,(n.flags&128)!==0){if(c)return bp(n,i,l);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),lt(pt,pt.current),c)break;return null;case 22:case 23:return i.lanes=0,gp(n,i,l)}return wr(n,i,l)}var Sp,yu,Cp,Ep;Sp=function(n,i){for(var l=i.child;l!==null;){if(l.tag===5||l.tag===6)n.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},yu=function(){},Cp=function(n,i,l,c){var p=n.memoizedProps;if(p!==c){n=i.stateNode,ci(sr.current);var g=null;switch(l){case"input":p=st(n,p),c=st(n,c),g=[];break;case"select":p=S({},p,{value:void 0}),c=S({},c,{value:void 0}),g=[];break;case"textarea":p=Tn(n,p),c=Tn(n,c),g=[];break;default:typeof p.onClick!="function"&&typeof c.onClick=="function"&&(n.onclick=Fl)}St(l,c);var _;l=null;for(U in p)if(!c.hasOwnProperty(U)&&p.hasOwnProperty(U)&&p[U]!=null)if(U==="style"){var T=p[U];for(_ in T)T.hasOwnProperty(_)&&(l||(l={}),l[_]="")}else U!=="dangerouslySetInnerHTML"&&U!=="children"&&U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(o.hasOwnProperty(U)?g||(g=[]):(g=g||[]).push(U,null));for(U in c){var D=c[U];if(T=p!=null?p[U]:void 0,c.hasOwnProperty(U)&&D!==T&&(D!=null||T!=null))if(U==="style")if(T){for(_ in T)!T.hasOwnProperty(_)||D&&D.hasOwnProperty(_)||(l||(l={}),l[_]="");for(_ in D)D.hasOwnProperty(_)&&T[_]!==D[_]&&(l||(l={}),l[_]=D[_])}else l||(g||(g=[]),g.push(U,l)),l=D;else U==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,T=T?T.__html:void 0,D!=null&&T!==D&&(g=g||[]).push(U,D)):U==="children"?typeof D!="string"&&typeof D!="number"||(g=g||[]).push(U,""+D):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&(o.hasOwnProperty(U)?(D!=null&&U==="onScroll"&&ot("scroll",n),g||T===D||(g=[])):(g=g||[]).push(U,D))}l&&(g=g||[]).push("style",l);var U=g;(i.updateQueue=U)&&(i.flags|=4)}},Ep=function(n,i,l,c){l!==c&&(i.flags|=4)};function zs(n,i){if(!ct)switch(n.tailMode){case"hidden":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function Xt(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,c=0;if(i)for(var p=n.child;p!==null;)l|=p.lanes|p.childLanes,c|=p.subtreeFlags&14680064,c|=p.flags&14680064,p.return=n,p=p.sibling;else for(p=n.child;p!==null;)l|=p.lanes|p.childLanes,c|=p.subtreeFlags,c|=p.flags,p.return=n,p=p.sibling;return n.subtreeFlags|=c,n.childLanes=l,i}function Xv(n,i,l){var c=i.pendingProps;switch(Fa(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(i),null;case 1:return dn(i.type)&&Bl(),Xt(i),null;case 3:return c=i.stateNode,Bi(),at(cn),at(Qt),Ga(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(Zl(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Kn!==null&&(Tu(Kn),Kn=null))),yu(n,i),Xt(i),null;case 5:Ya(i);var p=ci(As.current);if(l=i.type,n!==null&&i.stateNode!=null)Cp(n,i,l,c,p),n.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!c){if(i.stateNode===null)throw Error(r(166));return Xt(i),null}if(n=ci(sr.current),Zl(i)){c=i.stateNode,l=i.type;var g=i.memoizedProps;switch(c[ir]=i,c[Ts]=g,n=(i.mode&1)!==0,l){case"dialog":ot("cancel",c),ot("close",c);break;case"iframe":case"object":case"embed":ot("load",c);break;case"video":case"audio":for(p=0;p<Cs.length;p++)ot(Cs[p],c);break;case"source":ot("error",c);break;case"img":case"image":case"link":ot("error",c),ot("load",c);break;case"details":ot("toggle",c);break;case"input":kn(c,g),ot("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!g.multiple},ot("invalid",c);break;case"textarea":pr(c,g),ot("invalid",c)}St(l,g),p=null;for(var _ in g)if(g.hasOwnProperty(_)){var T=g[_];_==="children"?typeof T=="string"?c.textContent!==T&&(g.suppressHydrationWarning!==!0&&zl(c.textContent,T,n),p=["children",T]):typeof T=="number"&&c.textContent!==""+T&&(g.suppressHydrationWarning!==!0&&zl(c.textContent,T,n),p=["children",""+T]):o.hasOwnProperty(_)&&T!=null&&_==="onScroll"&&ot("scroll",c)}switch(l){case"input":Ae(c),fr(c,g,!0);break;case"textarea":Ae(c),Er(c);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(c.onclick=Fl)}c=p,i.updateQueue=c,c!==null&&(i.flags|=4)}else{_=p.nodeType===9?p:p.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=Z(l)),n==="http://www.w3.org/1999/xhtml"?l==="script"?(n=_.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=_.createElement(l,{is:c.is}):(n=_.createElement(l),l==="select"&&(_=n,c.multiple?_.multiple=!0:c.size&&(_.size=c.size))):n=_.createElementNS(n,l),n[ir]=i,n[Ts]=c,Sp(n,i,!1,!1),i.stateNode=n;e:{switch(_=jn(l,c),l){case"dialog":ot("cancel",n),ot("close",n),p=c;break;case"iframe":case"object":case"embed":ot("load",n),p=c;break;case"video":case"audio":for(p=0;p<Cs.length;p++)ot(Cs[p],n);p=c;break;case"source":ot("error",n),p=c;break;case"img":case"image":case"link":ot("error",n),ot("load",n),p=c;break;case"details":ot("toggle",n),p=c;break;case"input":kn(n,c),p=st(n,c),ot("invalid",n);break;case"option":p=c;break;case"select":n._wrapperState={wasMultiple:!!c.multiple},p=S({},c,{value:void 0}),ot("invalid",n);break;case"textarea":pr(n,c),p=Tn(n,c),ot("invalid",n);break;default:p=c}St(l,p),T=p;for(g in T)if(T.hasOwnProperty(g)){var D=T[g];g==="style"?tr(n,D):g==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,D!=null&&Pe(n,D)):g==="children"?typeof D=="string"?(l!=="textarea"||D!=="")&&q(n,D):typeof D=="number"&&q(n,""+D):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(o.hasOwnProperty(g)?D!=null&&g==="onScroll"&&ot("scroll",n):D!=null&&E(n,g,D,_))}switch(l){case"input":Ae(n),fr(n,c,!1);break;case"textarea":Ae(n),Er(n);break;case"option":c.value!=null&&n.setAttribute("value",""+Ne(c.value));break;case"select":n.multiple=!!c.multiple,g=c.value,g!=null?Ut(n,!!c.multiple,g,!1):c.defaultValue!=null&&Ut(n,!!c.multiple,c.defaultValue,!0);break;default:typeof p.onClick=="function"&&(n.onclick=Fl)}switch(l){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 Xt(i),null;case 6:if(n&&i.stateNode!=null)Ep(n,i,n.memoizedProps,c);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(l=ci(As.current),ci(sr.current),Zl(i)){if(c=i.stateNode,l=i.memoizedProps,c[ir]=i,(g=c.nodeValue!==l)&&(n=wn,n!==null))switch(n.tag){case 3:zl(c.nodeValue,l,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&zl(c.nodeValue,l,(n.mode&1)!==0)}g&&(i.flags|=4)}else c=(l.nodeType===9?l:l.ownerDocument).createTextNode(c),c[ir]=i,i.stateNode=c}return Xt(i),null;case 13:if(at(pt),c=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(ct&&bn!==null&&(i.mode&1)!==0&&(i.flags&128)===0)jf(),Oi(),i.flags|=98560,g=!1;else if(g=Zl(i),c!==null&&c.dehydrated!==null){if(n===null){if(!g)throw Error(r(318));if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[ir]=i}else Oi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Xt(i),g=!1}else Kn!==null&&(Tu(Kn),Kn=null),g=!0;if(!g)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=l,i):(c=c!==null,c!==(n!==null&&n.memoizedState!==null)&&c&&(i.child.flags|=8192,(i.mode&1)!==0&&(n===null||(pt.current&1)!==0?jt===0&&(jt=3):Du())),i.updateQueue!==null&&(i.flags|=4),Xt(i),null);case 4:return Bi(),yu(n,i),n===null&&Es(i.stateNode.containerInfo),Xt(i),null;case 10:return Wa(i.type._context),Xt(i),null;case 17:return dn(i.type)&&Bl(),Xt(i),null;case 19:if(at(pt),g=i.memoizedState,g===null)return Xt(i),null;if(c=(i.flags&128)!==0,_=g.rendering,_===null)if(c)zs(g,!1);else{if(jt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(_=Gl(n),_!==null){for(i.flags|=128,zs(g,!1),c=_.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),i.subtreeFlags=0,c=l,l=i.child;l!==null;)g=l,n=c,g.flags&=14680066,_=g.alternate,_===null?(g.childLanes=0,g.lanes=n,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=_.childLanes,g.lanes=_.lanes,g.child=_.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=_.memoizedProps,g.memoizedState=_.memoizedState,g.updateQueue=_.updateQueue,g.type=_.type,n=_.dependencies,g.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),l=l.sibling;return lt(pt,pt.current&1|2),i.child}n=n.sibling}g.tail!==null&&_t()>Wi&&(i.flags|=128,c=!0,zs(g,!1),i.lanes=4194304)}else{if(!c)if(n=Gl(_),n!==null){if(i.flags|=128,c=!0,l=n.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),zs(g,!0),g.tail===null&&g.tailMode==="hidden"&&!_.alternate&&!ct)return Xt(i),null}else 2*_t()-g.renderingStartTime>Wi&&l!==1073741824&&(i.flags|=128,c=!0,zs(g,!1),i.lanes=4194304);g.isBackwards?(_.sibling=i.child,i.child=_):(l=g.last,l!==null?l.sibling=_:i.child=_,g.last=_)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=_t(),i.sibling=null,l=pt.current,lt(pt,c?l&1|2:l&1),i):(Xt(i),null);case 22:case 23:return Iu(),c=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(i.flags|=8192),c&&(i.mode&1)!==0?(Sn&1073741824)!==0&&(Xt(i),i.subtreeFlags&6&&(i.flags|=8192)):Xt(i),null;case 24:return null;case 25:return null}throw Error(r(156,i.tag))}function Gv(n,i){switch(Fa(i),i.tag){case 1:return dn(i.type)&&Bl(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return Bi(),at(cn),at(Qt),Ga(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return Ya(i),null;case 13:if(at(pt),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Oi()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return at(pt),null;case 4:return Bi(),null;case 10:return Wa(i.type._context),null;case 22:case 23:return Iu(),null;case 24:return null;default:return null}}var oo=!1,Gt=!1,Jv=typeof WeakSet=="function"?WeakSet:Set,ve=null;function Vi(n,i){var l=n.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(c){yt(n,i,c)}else l.current=null}function vu(n,i,l){try{l()}catch(c){yt(n,i,c)}}var Np=!1;function ek(n,i){if(Ia=Nl,n=sf(),wa(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var p=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var _=0,T=-1,D=-1,U=0,X=0,te=n,Q=null;t:for(;;){for(var he;te!==l||p!==0&&te.nodeType!==3||(T=_+p),te!==g||c!==0&&te.nodeType!==3||(D=_+c),te.nodeType===3&&(_+=te.nodeValue.length),(he=te.firstChild)!==null;)Q=te,te=he;for(;;){if(te===n)break t;if(Q===l&&++U===p&&(T=_),Q===g&&++X===c&&(D=_),(he=te.nextSibling)!==null)break;te=Q,Q=te.parentNode}te=he}l=T===-1||D===-1?null:{start:T,end:D}}else l=null}l=l||{start:0,end:0}}else l=null;for(Da={focusedElem:n,selectionRange:l},Nl=!1,ve=i;ve!==null;)if(i=ve,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,ve=n;else for(;ve!==null;){i=ve;try{var ke=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(ke!==null){var _e=ke.memoizedProps,wt=ke.memoizedState,F=i.stateNode,P=F.getSnapshotBeforeUpdate(i.elementType===i.type?_e:qn(i.type,_e),wt);F.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var $=i.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(se){yt(i,i.return,se)}if(n=i.sibling,n!==null){n.return=i.return,ve=n;break}ve=i.return}return ke=Np,Np=!1,ke}function Fs(n,i,l){var c=i.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&n)===n){var g=p.destroy;p.destroy=void 0,g!==void 0&&vu(i,l,g)}p=p.next}while(p!==c)}}function ao(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&n)===n){var c=l.create;l.destroy=c()}l=l.next}while(l!==i)}}function ku(n){var i=n.ref;if(i!==null){var l=n.stateNode;switch(n.tag){case 5:n=l;break;default:n=l}typeof i=="function"?i(n):i.current=n}}function Tp(n){var i=n.alternate;i!==null&&(n.alternate=null,Tp(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[ir],delete i[Ts],delete i[La],delete i[Mv],delete i[Ov])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function jp(n){return n.tag===5||n.tag===3||n.tag===4}function Ip(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||jp(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function xu(n,i,l){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?l.nodeType===8?l.parentNode.insertBefore(n,i):l.insertBefore(n,i):(l.nodeType===8?(i=l.parentNode,i.insertBefore(n,l)):(i=l,i.appendChild(n)),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Fl));else if(c!==4&&(n=n.child,n!==null))for(xu(n,i,l),n=n.sibling;n!==null;)xu(n,i,l),n=n.sibling}function _u(n,i,l){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?l.insertBefore(n,i):l.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(_u(n,i,l),n=n.sibling;n!==null;)_u(n,i,l),n=n.sibling}var Ot=null,Qn=!1;function $r(n,i,l){for(l=l.child;l!==null;)Dp(n,i,l),l=l.sibling}function Dp(n,i,l){if(rr&&typeof rr.onCommitFiberUnmount=="function")try{rr.onCommitFiberUnmount(_l,l)}catch{}switch(l.tag){case 5:Gt||Vi(l,i);case 6:var c=Ot,p=Qn;Ot=null,$r(n,i,l),Ot=c,Qn=p,Ot!==null&&(Qn?(n=Ot,l=l.stateNode,n.nodeType===8?n.parentNode.removeChild(l):n.removeChild(l)):Ot.removeChild(l.stateNode));break;case 18:Ot!==null&&(Qn?(n=Ot,l=l.stateNode,n.nodeType===8?Pa(n.parentNode,l):n.nodeType===1&&Pa(n,l),ys(n)):Pa(Ot,l.stateNode));break;case 4:c=Ot,p=Qn,Ot=l.stateNode.containerInfo,Qn=!0,$r(n,i,l),Ot=c,Qn=p;break;case 0:case 11:case 14:case 15:if(!Gt&&(c=l.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){p=c=c.next;do{var g=p,_=g.destroy;g=g.tag,_!==void 0&&((g&2)!==0||(g&4)!==0)&&vu(l,i,_),p=p.next}while(p!==c)}$r(n,i,l);break;case 1:if(!Gt&&(Vi(l,i),c=l.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=l.memoizedProps,c.state=l.memoizedState,c.componentWillUnmount()}catch(T){yt(l,i,T)}$r(n,i,l);break;case 21:$r(n,i,l);break;case 22:l.mode&1?(Gt=(c=Gt)||l.memoizedState!==null,$r(n,i,l),Gt=c):$r(n,i,l);break;default:$r(n,i,l)}}function Rp(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var l=n.stateNode;l===null&&(l=n.stateNode=new Jv),i.forEach(function(c){var p=uk.bind(null,n,c);l.has(c)||(l.add(c),c.then(p,p))})}}function Yn(n,i){var l=i.deletions;if(l!==null)for(var c=0;c<l.length;c++){var p=l[c];try{var g=n,_=i,T=_;e:for(;T!==null;){switch(T.tag){case 5:Ot=T.stateNode,Qn=!1;break e;case 3:Ot=T.stateNode.containerInfo,Qn=!0;break e;case 4:Ot=T.stateNode.containerInfo,Qn=!0;break e}T=T.return}if(Ot===null)throw Error(r(160));Dp(g,_,p),Ot=null,Qn=!1;var D=p.alternate;D!==null&&(D.return=null),p.return=null}catch(U){yt(p,i,U)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Ap(i,n),i=i.sibling}function Ap(n,i){var l=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(Yn(i,n),or(n),c&4){try{Fs(3,n,n.return),ao(3,n)}catch(_e){yt(n,n.return,_e)}try{Fs(5,n,n.return)}catch(_e){yt(n,n.return,_e)}}break;case 1:Yn(i,n),or(n),c&512&&l!==null&&Vi(l,l.return);break;case 5:if(Yn(i,n),or(n),c&512&&l!==null&&Vi(l,l.return),n.flags&32){var p=n.stateNode;try{q(p,"")}catch(_e){yt(n,n.return,_e)}}if(c&4&&(p=n.stateNode,p!=null)){var g=n.memoizedProps,_=l!==null?l.memoizedProps:g,T=n.type,D=n.updateQueue;if(n.updateQueue=null,D!==null)try{T==="input"&&g.type==="radio"&&g.name!=null&&nn(p,g),jn(T,_);var U=jn(T,g);for(_=0;_<D.length;_+=2){var X=D[_],te=D[_+1];X==="style"?tr(p,te):X==="dangerouslySetInnerHTML"?Pe(p,te):X==="children"?q(p,te):E(p,X,te,U)}switch(T){case"input":Bt(p,g);break;case"textarea":er(p,g);break;case"select":var Q=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!g.multiple;var he=g.value;he!=null?Ut(p,!!g.multiple,he,!1):Q!==!!g.multiple&&(g.defaultValue!=null?Ut(p,!!g.multiple,g.defaultValue,!0):Ut(p,!!g.multiple,g.multiple?[]:"",!1))}p[Ts]=g}catch(_e){yt(n,n.return,_e)}}break;case 6:if(Yn(i,n),or(n),c&4){if(n.stateNode===null)throw Error(r(162));p=n.stateNode,g=n.memoizedProps;try{p.nodeValue=g}catch(_e){yt(n,n.return,_e)}}break;case 3:if(Yn(i,n),or(n),c&4&&l!==null&&l.memoizedState.isDehydrated)try{ys(i.containerInfo)}catch(_e){yt(n,n.return,_e)}break;case 4:Yn(i,n),or(n);break;case 13:Yn(i,n),or(n),p=n.child,p.flags&8192&&(g=p.memoizedState!==null,p.stateNode.isHidden=g,!g||p.alternate!==null&&p.alternate.memoizedState!==null||(Su=_t())),c&4&&Rp(n);break;case 22:if(X=l!==null&&l.memoizedState!==null,n.mode&1?(Gt=(U=Gt)||X,Yn(i,n),Gt=U):Yn(i,n),or(n),c&8192){if(U=n.memoizedState!==null,(n.stateNode.isHidden=U)&&!X&&(n.mode&1)!==0)for(ve=n,X=n.child;X!==null;){for(te=ve=X;ve!==null;){switch(Q=ve,he=Q.child,Q.tag){case 0:case 11:case 14:case 15:Fs(4,Q,Q.return);break;case 1:Vi(Q,Q.return);var ke=Q.stateNode;if(typeof ke.componentWillUnmount=="function"){c=Q,l=Q.return;try{i=c,ke.props=i.memoizedProps,ke.state=i.memoizedState,ke.componentWillUnmount()}catch(_e){yt(c,l,_e)}}break;case 5:Vi(Q,Q.return);break;case 22:if(Q.memoizedState!==null){Mp(te);continue}}he!==null?(he.return=Q,ve=he):Mp(te)}X=X.sibling}e:for(X=null,te=n;;){if(te.tag===5){if(X===null){X=te;try{p=te.stateNode,U?(g=p.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(T=te.stateNode,D=te.memoizedProps.style,_=D!=null&&D.hasOwnProperty("display")?D.display:null,T.style.display=Vt("display",_))}catch(_e){yt(n,n.return,_e)}}}else if(te.tag===6){if(X===null)try{te.stateNode.nodeValue=U?"":te.memoizedProps}catch(_e){yt(n,n.return,_e)}}else if((te.tag!==22&&te.tag!==23||te.memoizedState===null||te===n)&&te.child!==null){te.child.return=te,te=te.child;continue}if(te===n)break e;for(;te.sibling===null;){if(te.return===null||te.return===n)break e;X===te&&(X=null),te=te.return}X===te&&(X=null),te.sibling.return=te.return,te=te.sibling}}break;case 19:Yn(i,n),or(n),c&4&&Rp(n);break;case 21:break;default:Yn(i,n),or(n)}}function or(n){var i=n.flags;if(i&2){try{e:{for(var l=n.return;l!==null;){if(jp(l)){var c=l;break e}l=l.return}throw Error(r(160))}switch(c.tag){case 5:var p=c.stateNode;c.flags&32&&(q(p,""),c.flags&=-33);var g=Ip(n);_u(n,g,p);break;case 3:case 4:var _=c.stateNode.containerInfo,T=Ip(n);xu(n,T,_);break;default:throw Error(r(161))}}catch(D){yt(n,n.return,D)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function tk(n,i,l){ve=n,Pp(n)}function Pp(n,i,l){for(var c=(n.mode&1)!==0;ve!==null;){var p=ve,g=p.child;if(p.tag===22&&c){var _=p.memoizedState!==null||oo;if(!_){var T=p.alternate,D=T!==null&&T.memoizedState!==null||Gt;T=oo;var U=Gt;if(oo=_,(Gt=D)&&!U)for(ve=p;ve!==null;)_=ve,D=_.child,_.tag===22&&_.memoizedState!==null?Op(p):D!==null?(D.return=_,ve=D):Op(p);for(;g!==null;)ve=g,Pp(g),g=g.sibling;ve=p,oo=T,Gt=U}Lp(n)}else(p.subtreeFlags&8772)!==0&&g!==null?(g.return=p,ve=g):Lp(n)}}function Lp(n){for(;ve!==null;){var i=ve;if((i.flags&8772)!==0){var l=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Gt||ao(5,i);break;case 1:var c=i.stateNode;if(i.flags&4&&!Gt)if(l===null)c.componentDidMount();else{var p=i.elementType===i.type?l.memoizedProps:qn(i.type,l.memoizedProps);c.componentDidUpdate(p,l.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var g=i.updateQueue;g!==null&&Mf(i,g,c);break;case 3:var _=i.updateQueue;if(_!==null){if(l=null,i.child!==null)switch(i.child.tag){case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}Mf(i,_,l)}break;case 5:var T=i.stateNode;if(l===null&&i.flags&4){l=T;var D=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":D.autoFocus&&l.focus();break;case"img":D.src&&(l.src=D.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var U=i.alternate;if(U!==null){var X=U.memoizedState;if(X!==null){var te=X.dehydrated;te!==null&&ys(te)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Gt||i.flags&512&&ku(i)}catch(Q){yt(i,i.return,Q)}}if(i===n){ve=null;break}if(l=i.sibling,l!==null){l.return=i.return,ve=l;break}ve=i.return}}function Mp(n){for(;ve!==null;){var i=ve;if(i===n){ve=null;break}var l=i.sibling;if(l!==null){l.return=i.return,ve=l;break}ve=i.return}}function Op(n){for(;ve!==null;){var i=ve;try{switch(i.tag){case 0:case 11:case 15:var l=i.return;try{ao(4,i)}catch(D){yt(i,l,D)}break;case 1:var c=i.stateNode;if(typeof c.componentDidMount=="function"){var p=i.return;try{c.componentDidMount()}catch(D){yt(i,p,D)}}var g=i.return;try{ku(i)}catch(D){yt(i,g,D)}break;case 5:var _=i.return;try{ku(i)}catch(D){yt(i,_,D)}}}catch(D){yt(i,i.return,D)}if(i===n){ve=null;break}var T=i.sibling;if(T!==null){T.return=i.return,ve=T;break}ve=i.return}}var nk=Math.ceil,uo=z.ReactCurrentDispatcher,wu=z.ReactCurrentOwner,Ln=z.ReactCurrentBatchConfig,Ke=0,Pt=null,Ct=null,zt=0,Sn=0,Hi=Lr(0),jt=0,$s=null,fi=0,co=0,bu=0,Bs=null,pn=null,Su=0,Wi=1/0,br=null,fo=!1,Cu=null,Br=null,po=!1,Ur=null,mo=0,Us=0,Eu=null,ho=-1,go=0;function ln(){return(Ke&6)!==0?_t():ho!==-1?ho:ho=_t()}function Vr(n){return(n.mode&1)===0?1:(Ke&2)!==0&&zt!==0?zt&-zt:Fv.transition!==null?(go===0&&(go=jd()),go):(n=Ge,n!==0||(n=window.event,n=n===void 0?16:zd(n.type)),n)}function Xn(n,i,l,c){if(50<Us)throw Us=0,Eu=null,Error(r(185));fs(n,l,c),((Ke&2)===0||n!==Pt)&&(n===Pt&&((Ke&2)===0&&(co|=l),jt===4&&Hr(n,zt)),mn(n,c),l===1&&Ke===0&&(i.mode&1)===0&&(Wi=_t()+500,Vl&&Or()))}function mn(n,i){var l=n.callbackNode;Fy(n,i);var c=Sl(n,n===Pt?zt:0);if(c===0)l!==null&&Ed(l),n.callbackNode=null,n.callbackPriority=0;else if(i=c&-c,n.callbackPriority!==i){if(l!=null&&Ed(l),i===1)n.tag===0?zv(Fp.bind(null,n)):Sf(Fp.bind(null,n)),Pv(function(){(Ke&6)===0&&Or()}),l=null;else{switch(Id(c)){case 1:l=sa;break;case 4:l=Nd;break;case 16:l=xl;break;case 536870912:l=Td;break;default:l=xl}l=Kp(l,zp.bind(null,n))}n.callbackPriority=i,n.callbackNode=l}}function zp(n,i){if(ho=-1,go=0,(Ke&6)!==0)throw Error(r(327));var l=n.callbackNode;if(Zi()&&n.callbackNode!==l)return null;var c=Sl(n,n===Pt?zt:0);if(c===0)return null;if((c&30)!==0||(c&n.expiredLanes)!==0||i)i=yo(n,c);else{i=c;var p=Ke;Ke|=2;var g=Bp();(Pt!==n||zt!==i)&&(br=null,Wi=_t()+500,mi(n,i));do try{sk();break}catch(T){$p(n,T)}while(!0);Ha(),uo.current=g,Ke=p,Ct!==null?i=0:(Pt=null,zt=0,i=jt)}if(i!==0){if(i===2&&(p=la(n),p!==0&&(c=p,i=Nu(n,p))),i===1)throw l=$s,mi(n,0),Hr(n,c),mn(n,_t()),l;if(i===6)Hr(n,c);else{if(p=n.current.alternate,(c&30)===0&&!rk(p)&&(i=yo(n,c),i===2&&(g=la(n),g!==0&&(c=g,i=Nu(n,g))),i===1))throw l=$s,mi(n,0),Hr(n,c),mn(n,_t()),l;switch(n.finishedWork=p,n.finishedLanes=c,i){case 0:case 1:throw Error(r(345));case 2:hi(n,pn,br);break;case 3:if(Hr(n,c),(c&130023424)===c&&(i=Su+500-_t(),10<i)){if(Sl(n,0)!==0)break;if(p=n.suspendedLanes,(p&c)!==c){ln(),n.pingedLanes|=n.suspendedLanes&p;break}n.timeoutHandle=Aa(hi.bind(null,n,pn,br),i);break}hi(n,pn,br);break;case 4:if(Hr(n,c),(c&4194240)===c)break;for(i=n.eventTimes,p=-1;0<c;){var _=31-Wn(c);g=1<<_,_=i[_],_>p&&(p=_),c&=~g}if(c=p,c=_t()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*nk(c/1960))-c,10<c){n.timeoutHandle=Aa(hi.bind(null,n,pn,br),c);break}hi(n,pn,br);break;case 5:hi(n,pn,br);break;default:throw Error(r(329))}}}return mn(n,_t()),n.callbackNode===l?zp.bind(null,n):null}function Nu(n,i){var l=Bs;return n.current.memoizedState.isDehydrated&&(mi(n,i).flags|=256),n=yo(n,i),n!==2&&(i=pn,pn=l,i!==null&&Tu(i)),n}function Tu(n){pn===null?pn=n:pn.push.apply(pn,n)}function rk(n){for(var i=n;;){if(i.flags&16384){var l=i.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var c=0;c<l.length;c++){var p=l[c],g=p.getSnapshot;p=p.value;try{if(!Zn(g(),p))return!1}catch{return!1}}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Hr(n,i){for(i&=~bu,i&=~co,n.suspendedLanes|=i,n.pingedLanes&=~i,n=n.expirationTimes;0<i;){var l=31-Wn(i),c=1<<l;n[l]=-1,i&=~c}}function Fp(n){if((Ke&6)!==0)throw Error(r(327));Zi();var i=Sl(n,0);if((i&1)===0)return mn(n,_t()),null;var l=yo(n,i);if(n.tag!==0&&l===2){var c=la(n);c!==0&&(i=c,l=Nu(n,c))}if(l===1)throw l=$s,mi(n,0),Hr(n,i),mn(n,_t()),l;if(l===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=i,hi(n,pn,br),mn(n,_t()),null}function ju(n,i){var l=Ke;Ke|=1;try{return n(i)}finally{Ke=l,Ke===0&&(Wi=_t()+500,Vl&&Or())}}function pi(n){Ur!==null&&Ur.tag===0&&(Ke&6)===0&&Zi();var i=Ke;Ke|=1;var l=Ln.transition,c=Ge;try{if(Ln.transition=null,Ge=1,n)return n()}finally{Ge=c,Ln.transition=l,Ke=i,(Ke&6)===0&&Or()}}function Iu(){Sn=Hi.current,at(Hi)}function mi(n,i){n.finishedWork=null,n.finishedLanes=0;var l=n.timeoutHandle;if(l!==-1&&(n.timeoutHandle=-1,Av(l)),Ct!==null)for(l=Ct.return;l!==null;){var c=l;switch(Fa(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Bl();break;case 3:Bi(),at(cn),at(Qt),Ga();break;case 5:Ya(c);break;case 4:Bi();break;case 13:at(pt);break;case 19:at(pt);break;case 10:Wa(c.type._context);break;case 22:case 23:Iu()}l=l.return}if(Pt=n,Ct=n=Wr(n.current,null),zt=Sn=i,jt=0,$s=null,bu=co=fi=0,pn=Bs=null,ui!==null){for(i=0;i<ui.length;i++)if(l=ui[i],c=l.interleaved,c!==null){l.interleaved=null;var p=c.next,g=l.pending;if(g!==null){var _=g.next;g.next=p,c.next=_}l.pending=c}ui=null}return n}function $p(n,i){do{var l=Ct;try{if(Ha(),Jl.current=ro,eo){for(var c=mt.memoizedState;c!==null;){var p=c.queue;p!==null&&(p.pending=null),c=c.next}eo=!1}if(di=0,At=Tt=mt=null,Ps=!1,Ls=0,wu.current=null,l===null||l.return===null){jt=1,$s=i,Ct=null;break}e:{var g=n,_=l.return,T=l,D=i;if(i=zt,T.flags|=32768,D!==null&&typeof D=="object"&&typeof D.then=="function"){var U=D,X=T,te=X.tag;if((X.mode&1)===0&&(te===0||te===11||te===15)){var Q=X.alternate;Q?(X.updateQueue=Q.updateQueue,X.memoizedState=Q.memoizedState,X.lanes=Q.lanes):(X.updateQueue=null,X.memoizedState=null)}var he=dp(_);if(he!==null){he.flags&=-257,fp(he,_,T,g,i),he.mode&1&&cp(g,U,i),i=he,D=U;var ke=i.updateQueue;if(ke===null){var _e=new Set;_e.add(D),i.updateQueue=_e}else ke.add(D);break e}else{if((i&1)===0){cp(g,U,i),Du();break e}D=Error(r(426))}}else if(ct&&T.mode&1){var wt=dp(_);if(wt!==null){(wt.flags&65536)===0&&(wt.flags|=256),fp(wt,_,T,g,i),Ua(Ui(D,T));break e}}g=D=Ui(D,T),jt!==4&&(jt=2),Bs===null?Bs=[g]:Bs.push(g),g=_;do{switch(g.tag){case 3:g.flags|=65536,i&=-i,g.lanes|=i;var F=ap(g,D,i);Lf(g,F);break e;case 1:T=D;var P=g.type,$=g.stateNode;if((g.flags&128)===0&&(typeof P.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Br===null||!Br.has($)))){g.flags|=65536,i&=-i,g.lanes|=i;var se=up(g,T,i);Lf(g,se);break e}}g=g.return}while(g!==null)}Vp(l)}catch(be){i=be,Ct===l&&l!==null&&(Ct=l=l.return);continue}break}while(!0)}function Bp(){var n=uo.current;return uo.current=ro,n===null?ro:n}function Du(){(jt===0||jt===3||jt===2)&&(jt=4),Pt===null||(fi&268435455)===0&&(co&268435455)===0||Hr(Pt,zt)}function yo(n,i){var l=Ke;Ke|=2;var c=Bp();(Pt!==n||zt!==i)&&(br=null,mi(n,i));do try{ik();break}catch(p){$p(n,p)}while(!0);if(Ha(),Ke=l,uo.current=c,Ct!==null)throw Error(r(261));return Pt=null,zt=0,jt}function ik(){for(;Ct!==null;)Up(Ct)}function sk(){for(;Ct!==null&&!Iy();)Up(Ct)}function Up(n){var i=Zp(n.alternate,n,Sn);n.memoizedProps=n.pendingProps,i===null?Vp(n):Ct=i,wu.current=null}function Vp(n){var i=n;do{var l=i.alternate;if(n=i.return,(i.flags&32768)===0){if(l=Xv(l,i,Sn),l!==null){Ct=l;return}}else{if(l=Gv(l,i),l!==null){l.flags&=32767,Ct=l;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{jt=6,Ct=null;return}}if(i=i.sibling,i!==null){Ct=i;return}Ct=i=n}while(i!==null);jt===0&&(jt=5)}function hi(n,i,l){var c=Ge,p=Ln.transition;try{Ln.transition=null,Ge=1,lk(n,i,l,c)}finally{Ln.transition=p,Ge=c}return null}function lk(n,i,l,c){do Zi();while(Ur!==null);if((Ke&6)!==0)throw Error(r(327));l=n.finishedWork;var p=n.finishedLanes;if(l===null)return null;if(n.finishedWork=null,n.finishedLanes=0,l===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var g=l.lanes|l.childLanes;if($y(n,g),n===Pt&&(Ct=Pt=null,zt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||po||(po=!0,Kp(xl,function(){return Zi(),null})),g=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||g){g=Ln.transition,Ln.transition=null;var _=Ge;Ge=1;var T=Ke;Ke|=4,wu.current=null,ek(n,l),Ap(l,n),Ev(Da),Nl=!!Ia,Da=Ia=null,n.current=l,tk(l),Dy(),Ke=T,Ge=_,Ln.transition=g}else n.current=l;if(po&&(po=!1,Ur=n,mo=p),g=n.pendingLanes,g===0&&(Br=null),Py(l.stateNode),mn(n,_t()),i!==null)for(c=n.onRecoverableError,l=0;l<i.length;l++)p=i[l],c(p.value,{componentStack:p.stack,digest:p.digest});if(fo)throw fo=!1,n=Cu,Cu=null,n;return(mo&1)!==0&&n.tag!==0&&Zi(),g=n.pendingLanes,(g&1)!==0?n===Eu?Us++:(Us=0,Eu=n):Us=0,Or(),null}function Zi(){if(Ur!==null){var n=Id(mo),i=Ln.transition,l=Ge;try{if(Ln.transition=null,Ge=16>n?16:n,Ur===null)var c=!1;else{if(n=Ur,Ur=null,mo=0,(Ke&6)!==0)throw Error(r(331));var p=Ke;for(Ke|=4,ve=n.current;ve!==null;){var g=ve,_=g.child;if((ve.flags&16)!==0){var T=g.deletions;if(T!==null){for(var D=0;D<T.length;D++){var U=T[D];for(ve=U;ve!==null;){var X=ve;switch(X.tag){case 0:case 11:case 15:Fs(8,X,g)}var te=X.child;if(te!==null)te.return=X,ve=te;else for(;ve!==null;){X=ve;var Q=X.sibling,he=X.return;if(Tp(X),X===U){ve=null;break}if(Q!==null){Q.return=he,ve=Q;break}ve=he}}}var ke=g.alternate;if(ke!==null){var _e=ke.child;if(_e!==null){ke.child=null;do{var wt=_e.sibling;_e.sibling=null,_e=wt}while(_e!==null)}}ve=g}}if((g.subtreeFlags&2064)!==0&&_!==null)_.return=g,ve=_;else e:for(;ve!==null;){if(g=ve,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Fs(9,g,g.return)}var F=g.sibling;if(F!==null){F.return=g.return,ve=F;break e}ve=g.return}}var P=n.current;for(ve=P;ve!==null;){_=ve;var $=_.child;if((_.subtreeFlags&2064)!==0&&$!==null)$.return=_,ve=$;else e:for(_=P;ve!==null;){if(T=ve,(T.flags&2048)!==0)try{switch(T.tag){case 0:case 11:case 15:ao(9,T)}}catch(be){yt(T,T.return,be)}if(T===_){ve=null;break e}var se=T.sibling;if(se!==null){se.return=T.return,ve=se;break e}ve=T.return}}if(Ke=p,Or(),rr&&typeof rr.onPostCommitFiberRoot=="function")try{rr.onPostCommitFiberRoot(_l,n)}catch{}c=!0}return c}finally{Ge=l,Ln.transition=i}}return!1}function Hp(n,i,l){i=Ui(l,i),i=ap(n,i,1),n=Fr(n,i,1),i=ln(),n!==null&&(fs(n,1,i),mn(n,i))}function yt(n,i,l){if(n.tag===3)Hp(n,n,l);else for(;i!==null;){if(i.tag===3){Hp(i,n,l);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))){n=Ui(l,n),n=up(i,n,1),i=Fr(i,n,1),n=ln(),i!==null&&(fs(i,1,n),mn(i,n));break}}i=i.return}}function ok(n,i,l){var c=n.pingCache;c!==null&&c.delete(i),i=ln(),n.pingedLanes|=n.suspendedLanes&l,Pt===n&&(zt&l)===l&&(jt===4||jt===3&&(zt&130023424)===zt&&500>_t()-Su?mi(n,0):bu|=l),mn(n,i)}function Wp(n,i){i===0&&((n.mode&1)===0?i=1:(i=bl,bl<<=1,(bl&130023424)===0&&(bl=4194304)));var l=ln();n=xr(n,i),n!==null&&(fs(n,i,l),mn(n,l))}function ak(n){var i=n.memoizedState,l=0;i!==null&&(l=i.retryLane),Wp(n,l)}function uk(n,i){var l=0;switch(n.tag){case 13:var c=n.stateNode,p=n.memoizedState;p!==null&&(l=p.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(i),Wp(n,l)}var Zp;Zp=function(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps||cn.current)fn=!0;else{if((n.lanes&l)===0&&(i.flags&128)===0)return fn=!1,Yv(n,i,l);fn=(n.flags&131072)!==0}else fn=!1,ct&&(i.flags&1048576)!==0&&Cf(i,Wl,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;lo(n,i),n=i.pendingProps;var p=Pi(i,Qt.current);$i(i,l),p=tu(null,i,c,n,p,l);var g=nu();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,dn(c)?(g=!0,Ul(i)):g=!1,i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,qa(i),p.updater=io,i.stateNode=p,p._reactInternals=i,au(i,c,n,l),i=fu(null,i,c,!0,g,l)):(i.tag=0,ct&&g&&za(i),sn(null,i,p,l),i=i.child),i;case 16:c=i.elementType;e:{switch(lo(n,i),n=i.pendingProps,p=c._init,c=p(c._payload),i.type=c,p=i.tag=dk(c),n=qn(c,n),p){case 0:i=du(null,i,c,n,l);break e;case 1:i=vp(null,i,c,n,l);break e;case 11:i=pp(null,i,c,n,l);break e;case 14:i=mp(null,i,c,qn(c.type,n),l);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),du(n,i,c,p,l);case 1:return c=i.type,p=i.pendingProps,p=i.elementType===c?p:qn(c,p),vp(n,i,c,p,l);case 3:e:{if(kp(i),n===null)throw Error(r(387));c=i.pendingProps,g=i.memoizedState,p=g.element,Pf(n,i),Xl(i,c,null,l);var _=i.memoizedState;if(c=_.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){p=Ui(Error(r(423)),i),i=xp(n,i,c,l,p);break e}else if(c!==p){p=Ui(Error(r(424)),i),i=xp(n,i,c,l,p);break e}else for(bn=Pr(i.stateNode.containerInfo.firstChild),wn=i,ct=!0,Kn=null,l=Rf(i,null,c,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Oi(),c===p){i=wr(n,i,l);break e}sn(n,i,c,l)}i=i.child}return i;case 5:return Of(i),n===null&&Ba(i),c=i.type,p=i.pendingProps,g=n!==null?n.memoizedProps:null,_=p.children,Ra(c,p)?_=null:g!==null&&Ra(c,g)&&(i.flags|=32),yp(n,i),sn(n,i,_,l),i.child;case 6:return n===null&&Ba(i),null;case 13:return _p(n,i,l);case 4:return Qa(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=zi(i,null,c,l):sn(n,i,c,l),i.child;case 11:return c=i.type,p=i.pendingProps,p=i.elementType===c?p:qn(c,p),pp(n,i,c,p,l);case 7:return sn(n,i,i.pendingProps,l),i.child;case 8:return sn(n,i,i.pendingProps.children,l),i.child;case 12:return sn(n,i,i.pendingProps.children,l),i.child;case 10:e:{if(c=i.type._context,p=i.pendingProps,g=i.memoizedProps,_=p.value,lt(ql,c._currentValue),c._currentValue=_,g!==null)if(Zn(g.value,_)){if(g.children===p.children&&!cn.current){i=wr(n,i,l);break e}}else for(g=i.child,g!==null&&(g.return=i);g!==null;){var T=g.dependencies;if(T!==null){_=g.child;for(var D=T.firstContext;D!==null;){if(D.context===c){if(g.tag===1){D=_r(-1,l&-l),D.tag=2;var U=g.updateQueue;if(U!==null){U=U.shared;var X=U.pending;X===null?D.next=D:(D.next=X.next,X.next=D),U.pending=D}}g.lanes|=l,D=g.alternate,D!==null&&(D.lanes|=l),Za(g.return,l,i),T.lanes|=l;break}D=D.next}}else if(g.tag===10)_=g.type===i.type?null:g.child;else if(g.tag===18){if(_=g.return,_===null)throw Error(r(341));_.lanes|=l,T=_.alternate,T!==null&&(T.lanes|=l),Za(_,l,i),_=g.sibling}else _=g.child;if(_!==null)_.return=g;else for(_=g;_!==null;){if(_===i){_=null;break}if(g=_.sibling,g!==null){g.return=_.return,_=g;break}_=_.return}g=_}sn(n,i,p.children,l),i=i.child}return i;case 9:return p=i.type,c=i.pendingProps.children,$i(i,l),p=An(p),c=c(p),i.flags|=1,sn(n,i,c,l),i.child;case 14:return c=i.type,p=qn(c,i.pendingProps),p=qn(c.type,p),mp(n,i,c,p,l);case 15:return hp(n,i,i.type,i.pendingProps,l);case 17:return c=i.type,p=i.pendingProps,p=i.elementType===c?p:qn(c,p),lo(n,i),i.tag=1,dn(c)?(n=!0,Ul(i)):n=!1,$i(i,l),lp(i,c,p),au(i,c,p,l),fu(null,i,c,!0,n,l);case 19:return bp(n,i,l);case 22:return gp(n,i,l)}throw Error(r(156,i.tag))};function Kp(n,i){return Cd(n,i)}function ck(n,i,l,c){this.tag=n,this.key=l,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 Mn(n,i,l,c){return new ck(n,i,l,c)}function Ru(n){return n=n.prototype,!(!n||!n.isReactComponent)}function dk(n){if(typeof n=="function")return Ru(n)?1:0;if(n!=null){if(n=n.$$typeof,n===B)return 11;if(n===O)return 14}return 2}function Wr(n,i){var l=n.alternate;return l===null?(l=Mn(n.tag,i,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=i,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&14680064,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,i=n.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l}function vo(n,i,l,c,p,g){var _=2;if(c=n,typeof n=="function")Ru(n)&&(_=1);else if(typeof n=="string")_=5;else e:switch(n){case K:return gi(l.children,p,g,i);case Y:_=8,p|=8;break;case oe:return n=Mn(12,l,i,p|2),n.elementType=oe,n.lanes=g,n;case ae:return n=Mn(13,l,i,p),n.elementType=ae,n.lanes=g,n;case le:return n=Mn(19,l,i,p),n.elementType=le,n.lanes=g,n;case ue:return ko(l,p,g,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case R:_=10;break e;case H:_=9;break e;case B:_=11;break e;case O:_=14;break e;case G:_=16,c=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return i=Mn(_,l,i,p),i.elementType=n,i.type=c,i.lanes=g,i}function gi(n,i,l,c){return n=Mn(7,n,c,i),n.lanes=l,n}function ko(n,i,l,c){return n=Mn(22,n,c,i),n.elementType=ue,n.lanes=l,n.stateNode={isHidden:!1},n}function Au(n,i,l){return n=Mn(6,n,null,i),n.lanes=l,n}function Pu(n,i,l){return i=Mn(4,n.children!==null?n.children:[],n.key,i),i.lanes=l,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function fk(n,i,l,c,p){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oa(0),this.expirationTimes=oa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oa(0),this.identifierPrefix=c,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Lu(n,i,l,c,p,g,_,T,D){return n=new fk(n,i,l,T,D),i===1?(i=1,g===!0&&(i|=8)):i=0,g=Mn(3,null,null,i),n.current=g,g.stateNode=n,g.memoizedState={element:c,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},qa(g),n}function pk(n,i,l){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:c==null?null:""+c,children:n,containerInfo:i,implementation:l}}function qp(n){if(!n)return Mr;n=n._reactInternals;e:{if(ii(n)!==n||n.tag!==1)throw Error(r(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(dn(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(r(171))}if(n.tag===1){var l=n.type;if(dn(l))return wf(n,l,i)}return i}function Qp(n,i,l,c,p,g,_,T,D){return n=Lu(l,c,!0,n,p,g,_,T,D),n.context=qp(null),l=n.current,c=ln(),p=Vr(l),g=_r(c,p),g.callback=i??null,Fr(l,g,p),n.current.lanes=p,fs(n,p,c),mn(n,c),n}function xo(n,i,l,c){var p=i.current,g=ln(),_=Vr(p);return l=qp(l),i.context===null?i.context=l:i.pendingContext=l,i=_r(g,_),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=Fr(p,i,_),n!==null&&(Xn(n,p,_,g),Yl(n,p,_)),_}function _o(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function Yp(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<i?l:i}}function Mu(n,i){Yp(n,i),(n=n.alternate)&&Yp(n,i)}function mk(){return null}var Xp=typeof reportError=="function"?reportError:function(n){console.error(n)};function Ou(n){this._internalRoot=n}wo.prototype.render=Ou.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));xo(n,i,null,null)},wo.prototype.unmount=Ou.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;pi(function(){xo(null,n,null,null)}),i[gr]=null}};function wo(n){this._internalRoot=n}wo.prototype.unstable_scheduleHydration=function(n){if(n){var i=Ad();n={blockedOn:null,target:n,priority:i};for(var l=0;l<Dr.length&&i!==0&&i<Dr[l].priority;l++);Dr.splice(l,0,n),l===0&&Md(n)}};function zu(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function bo(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function Gp(){}function hk(n,i,l,c,p){if(p){if(typeof c=="function"){var g=c;c=function(){var U=_o(_);g.call(U)}}var _=Qp(i,c,n,0,null,!1,!1,"",Gp);return n._reactRootContainer=_,n[gr]=_.current,Es(n.nodeType===8?n.parentNode:n),pi(),_}for(;p=n.lastChild;)n.removeChild(p);if(typeof c=="function"){var T=c;c=function(){var U=_o(D);T.call(U)}}var D=Lu(n,0,!1,null,null,!1,!1,"",Gp);return n._reactRootContainer=D,n[gr]=D.current,Es(n.nodeType===8?n.parentNode:n),pi(function(){xo(i,D,l,c)}),D}function So(n,i,l,c,p){var g=l._reactRootContainer;if(g){var _=g;if(typeof p=="function"){var T=p;p=function(){var D=_o(_);T.call(D)}}xo(i,_,n,p)}else _=hk(l,i,n,p,c);return _o(_)}Dd=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var l=ds(i.pendingLanes);l!==0&&(aa(i,l|1),mn(i,_t()),(Ke&6)===0&&(Wi=_t()+500,Or()))}break;case 13:pi(function(){var c=xr(n,1);if(c!==null){var p=ln();Xn(c,n,1,p)}}),Mu(n,1)}},ua=function(n){if(n.tag===13){var i=xr(n,134217728);if(i!==null){var l=ln();Xn(i,n,134217728,l)}Mu(n,134217728)}},Rd=function(n){if(n.tag===13){var i=Vr(n),l=xr(n,i);if(l!==null){var c=ln();Xn(l,n,i,c)}Mu(n,i)}},Ad=function(){return Ge},Pd=function(n,i){var l=Ge;try{return Ge=n,i()}finally{Ge=l}},us=function(n,i,l){switch(i){case"input":if(Bt(n,l),i=l.name,l.type==="radio"&&i!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<l.length;i++){var c=l[i];if(c!==n&&c.form===n.form){var p=$l(c);if(!p)throw Error(r(90));We(c),Bt(c,p)}}}break;case"textarea":er(n,l);break;case"select":i=l.value,i!=null&&Ut(n,!!l.multiple,i,!1)}},rn=ju,Kt=pi;var gk={usingClientEntryPoint:!1,Events:[js,Ri,$l,Zt,Un,ju]},Vs={findFiberByHostInstance:si,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},yk={bundleType:Vs.bundleType,version:Vs.version,rendererPackageName:Vs.rendererPackageName,rendererConfig:Vs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:z.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=bd(n),n===null?null:n.stateNode},findFiberByHostInstance:Vs.findFiberByHostInstance||mk,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{_l=Co.inject(yk),rr=Co}catch{}}return hn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gk,hn.createPortal=function(n,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zu(i))throw Error(r(200));return pk(n,i,null,l)},hn.createRoot=function(n,i){if(!zu(n))throw Error(r(299));var l=!1,c="",p=Xp;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(p=i.onRecoverableError)),i=Lu(n,1,!1,null,null,l,!1,c,p),n[gr]=i.current,Es(n.nodeType===8?n.parentNode:n),new Ou(i)},hn.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=bd(i),n=n===null?null:n.stateNode,n},hn.flushSync=function(n){return pi(n)},hn.hydrate=function(n,i,l){if(!bo(i))throw Error(r(200));return So(null,n,i,!0,l)},hn.hydrateRoot=function(n,i,l){if(!zu(n))throw Error(r(405));var c=l!=null&&l.hydratedSources||null,p=!1,g="",_=Xp;if(l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onRecoverableError!==void 0&&(_=l.onRecoverableError)),i=Qp(i,null,n,1,l??null,p,!1,g,_),n[gr]=i.current,Es(n),c)for(n=0;n<c.length;n++)l=c[n],p=l._getVersion,p=p(l._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[l,p]:i.mutableSourceEagerHydrationData.push(l,p);return new wo(i)},hn.render=function(n,i,l){if(!bo(i))throw Error(r(200));return So(null,n,i,!1,l)},hn.unmountComponentAtNode=function(n){if(!bo(n))throw Error(r(40));return n._reactRootContainer?(pi(function(){So(null,null,n,!1,function(){n._reactRootContainer=null,n[gr]=null})}),!0):!1},hn.unstable_batchedUpdates=ju,hn.unstable_renderSubtreeIntoContainer=function(n,i,l,c){if(!bo(l))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return So(n,i,l,!1,c)},hn.version="18.3.1-next-f1338f8080-20240426",hn}var lm;function Oh(){if(lm)return Bu.exports;lm=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(t){console.error(t)}}return e(),Bu.exports=Ek(),Bu.exports}var om;function Nk(){if(om)return Eo;om=1;var e=Oh();return Eo.createRoot=e.createRoot,Eo.hydrateRoot=e.hydrateRoot,Eo}var Tk=Nk();class xi extends Error{constructor(r,s,o){super(s);Hs(this,"status");Hs(this,"issues");this.name="ApiError",this.status=r,this.issues=o}}class ll extends xi{constructor(r){super(409,r.error);Hs(this,"serverContent");Hs(this,"serverMtimeMs");this.name="ConflictError",this.serverContent=r.serverContent,this.serverMtimeMs=r.serverMtimeMs}}async function kt(e){if(e.ok)return await e.json();let t={};try{t=await e.json()}catch{}throw new xi(e.status,t.error??`エラー (${e.status})`,t.issues)}async function jk(e){return kt(await fetch("/api/board",{signal:e}))}async function Ik(){return kt(await fetch("/api/mode"))}async function Dk(e){return kt(await fetch("/api/overview",{signal:e}))}async function zh(e){return kt(await fetch("/api/archive",{signal:e}))}async function Rk(e){const t=await fetch("/api/tasks",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)});return kt(t)}async function Ak(e){const{id:t,...r}=e,s=await fetch(`/api/tasks/${encodeURIComponent(t)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(r)});return kt(s)}async function am(e,t,r){const s=await fetch(`/api/tasks/${encodeURIComponent(e)}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({content:t,baseMtimeMs:r})});if(s.status===409)throw new ll(await s.json());return kt(s)}async function Pk(e){const t=await fetch(`/api/tasks/${encodeURIComponent(e)}/approve`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"});return kt(t)}async function Lk(e,t){const r=await fetch(`/api/tasks/${encodeURIComponent(e)}/reject`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({reason:t})});return kt(r)}async function um(e){const t=await fetch(`/api/tasks/${encodeURIComponent(e)}/archive`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"});return kt(t)}async function Mk(e){const t=await fetch(`/api/tasks/${encodeURIComponent(e)}/rename`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"});return kt(t)}async function pc(){const e=await fetch("/api/config"),t=await kt(e),r=e.headers.get("x-config-mtime-ms"),s=r!==null&&r!==""?Number(r):null;return{config:t,mtimeMs:s!==null&&Number.isFinite(s)?s:null}}async function Fh(e,t){const r={"content-type":"application/json"};t!=null&&(r["x-base-mtime-ms"]=String(t));const s=await fetch("/api/config",{method:"PUT",headers:r,body:JSON.stringify(e)});if(s.status===409)throw new ll(await s.json());await kt(s)}async function Ok(e,t){const r=await fetch("/api/members/rename",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({from:e,to:t})});return kt(r)}async function zk(e){try{const{config:t,mtimeMs:r}=await pc();if(t.language===e)return;await Fh({...t,language:e},r)}catch{}}async function Fk(e){return kt(await fetch(`/api/files?path=${encodeURIComponent(e)}`))}async function $k(e,t,r){const s=await fetch("/api/files",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,content:t,baseMtimeMs:r})});return kt(s)}async function Bk(){return(await kt(await fetch("/api/files/tree"))).trees}async function $h(e){return(await kt(await fetch("/api/docs/tree",{signal:e}))).trees}async function Bh(e,t){return kt(await fetch(`/api/docs?path=${encodeURIComponent(e)}`,{signal:t}))}async function Uk(){return(await kt(await fetch("/api/files/catalog"))).items}async function Vk(e,t){return(await kt(await fetch(`/api/tasks/${encodeURIComponent(e)}/commits`,{signal:t}))).commits}async function Hk(e,t,r){const s=await fetch(`/api/tasks/${encodeURIComponent(e)}/comment`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({member:t,message:r})});return kt(s)}function Wk(){const[e,t]=C.useState(null),[r,s]=C.useState(!0),[o,a]=C.useState(null),[u,d]=C.useState(!1),f=C.useRef(0),m=C.useCallback(async()=>{const v=++f.current;try{const h=await jk();v===f.current&&(t(h),a(null))}catch(h){v===f.current&&a(h instanceof Error?h.message:"ボードの取得に失敗しました")}finally{v===f.current&&s(!1)}},[]);return C.useEffect(()=>{m();const v=new EventSource("/api/events");return v.onopen=()=>{d(!0),m()},v.onmessage=h=>{try{const x=JSON.parse(h.data);x.type==="change"?m():x.type==="connected"&&d(!0)}catch{}},v.onerror=()=>{d(!1)},()=>{v.close()}},[m]),{board:e,loading:r,error:o,connected:u,refresh:m}}var Ye;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;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 s(o,a=" | "){return o.map(u=>typeof u=="string"?`'${u}'`:u).join(a)}e.joinValues=s,e.jsonStringifyReplacer=(o,a)=>typeof a=="bigint"?a.toString():a})(Ye||(Ye={}));var cm;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(cm||(cm={}));const we=Ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Yr=e=>{switch(typeof e){case"undefined":return we.undefined;case"string":return we.string;case"number":return Number.isNaN(e)?we.nan:we.number;case"boolean":return we.boolean;case"function":return we.function;case"bigint":return we.bigint;case"symbol":return we.symbol;case"object":return Array.isArray(e)?we.array:e===null?we.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?we.promise:typeof Map<"u"&&e instanceof Map?we.map:typeof Set<"u"&&e instanceof Set?we.set:typeof Date<"u"&&e instanceof Date?we.date:we.object;default:return we.unknown}},re=Ye.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 Sr extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(a){return a.message},s={_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)s._errors.push(r(u));else{let d=s,f=0;for(;f<u.path.length;){const m=u.path[f];f===u.path.length-1?(d[m]=d[m]||{_errors:[]},d[m]._errors.push(r(u))):d[m]=d[m]||{_errors:[]},d=d[m],f++}}};return o(this),s}static assert(t){if(!(t instanceof Sr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},s=[];for(const o of this.issues)if(o.path.length>0){const a=o.path[0];r[a]=r[a]||[],r[a].push(t(o))}else s.push(t(o));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}}Sr.create=e=>new Sr(e);const mc=(e,t)=>{let r;switch(e.code){case re.invalid_type:e.received===we.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case re.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ye.jsonStringifyReplacer)}`;break;case re.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ye.joinValues(e.keys,", ")}`;break;case re.invalid_union:r="Invalid input";break;case re.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ye.joinValues(e.options)}`;break;case re.invalid_enum_value:r=`Invalid enum value. Expected ${Ye.joinValues(e.options)}, received '${e.received}'`;break;case re.invalid_arguments:r="Invalid function arguments";break;case re.invalid_return_type:r="Invalid function return type";break;case re.invalid_date:r="Invalid date";break;case re.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}"`:Ye.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case re.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 re.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 re.custom:r="Invalid input";break;case re.invalid_intersection_types:r="Intersection results could not be merged";break;case re.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case re.not_finite:r="Number must be finite";break;default:r=t.defaultError,Ye.assertNever(e)}return{message:r}};let Zk=mc;function Kk(){return Zk}const qk=e=>{const{data:t,path:r,errorMaps:s,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=s.filter(m=>!!m).slice().reverse();for(const m of f)d=m(u,{data:t,defaultError:d}).message;return{...o,path:a,message:d}};function ge(e,t){const r=Kk(),s=qk({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===mc?void 0:mc].filter(o=>!!o)});e.common.issues.push(s)}class Nn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const s=[];for(const o of r){if(o.status==="aborted")return Oe;o.status==="dirty"&&t.dirty(),s.push(o.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,r){const s=[];for(const o of r){const a=await o.key,u=await o.value;s.push({key:a,value:u})}return Nn.mergeObjectSync(t,s)}static mergeObjectSync(t,r){const s={};for(const o of r){const{key:a,value:u}=o;if(a.status==="aborted"||u.status==="aborted")return Oe;a.status==="dirty"&&t.dirty(),u.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof u.value<"u"||o.alwaysSet)&&(s[a.value]=u.value)}return{status:t.value,value:s}}}const Oe=Object.freeze({status:"aborted"}),Gs=e=>({status:"dirty",value:e}),$n=e=>({status:"valid",value:e}),dm=e=>e.status==="aborted",fm=e=>e.status==="dirty",Gi=e=>e.status==="valid",Po=e=>typeof Promise<"u"&&e instanceof Promise;var Se;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Se||(Se={}));class ei{constructor(t,r,s,o){this._cachedPath=[],this.parent=t,this.data=r,this._path=s,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 pm=(e,t)=>{if(Gi(t))return{success:!0,data:t.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 Sr(e.common.issues);return this._error=r,this._error}}};function Ue(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:s,description:o}=e;if(t&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,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??s??d.defaultError}:u.code!=="invalid_type"?{message:d.defaultError}:{message:f??r??d.defaultError}},description:o}}class qe{get description(){return this._def.description}_getType(t){return Yr(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Yr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Nn,ctx:{common:t.parent.common,data:t.data,parsedType:Yr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(Po(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const s=this.safeParse(t,r);if(s.success)return s.data;throw s.error}safeParse(t,r){const s={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:t,parsedType:Yr(t)},o=this._parseSync({data:t,path:s.path,parent:s});return pm(s,o)}"~validate"(t){var s,o;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Yr(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:r});return Gi(a)?{value:a.value}:{issues:r.common.issues}}catch(a){(o=(s=a==null?void 0:a.message)==null?void 0:s.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(a=>Gi(a)?{value:a.value}:{issues:r.common.issues})}async parseAsync(t,r){const s=await this.safeParseAsync(t,r);if(s.success)return s.data;throw s.error}async safeParseAsync(t,r){const s={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:t,parsedType:Yr(t)},o=this._parse({data:t,path:s.path,parent:s}),a=await(Po(o)?o:Promise.resolve(o));return pm(s,a)}refine(t,r){const s=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,a)=>{const u=t(o),d=()=>a.addIssue({code:re.custom,...s(o)});return typeof Promise<"u"&&u instanceof Promise?u.then(f=>f?!0:(d(),!1)):u?!0:(d(),!1)})}refinement(t,r){return this._refinement((s,o)=>t(s)?!0:(o.addIssue(typeof r=="function"?r(s,o):r),!1))}_refinement(t){return new ts({schema:this,typeName:ze.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,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 ns.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return cr.create(this)}promise(){return zo.create(this,this._def)}or(t){return Mo.create([this,t],this._def)}and(t){return Oo.create(this,t,this._def)}transform(t){return new ts({...Ue(this._def),schema:this,typeName:ze.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new yc({...Ue(this._def),innerType:this,defaultValue:r,typeName:ze.ZodDefault})}brand(){return new yx({typeName:ze.ZodBranded,type:this,...Ue(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new vc({...Ue(this._def),innerType:this,catchValue:r,typeName:ze.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Hc.create(this,t)}readonly(){return kc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Qk=/^c[^\s-]{8,}$/i,Yk=/^[0-9a-z]+$/,Xk=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Gk=/^[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,Jk=/^[a-z0-9_-]{21}$/i,ex=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,tx=/^[-+]?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)?)??$/,nx=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,rx="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Hu;const ix=/^(?:(?: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])$/,sx=/^(?:(?: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])$/,lx=/^(([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]))$/,ox=/^(([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])$/,ax=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ux=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Uh="((\\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])))",cx=new RegExp(`^${Uh}$`);function Vh(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function dx(e){return new RegExp(`^${Vh(e)}$`)}function fx(e){let t=`${Uh}T${Vh(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function px(e,t){return!!((t==="v4"||!t)&&ix.test(e)||(t==="v6"||!t)&&lx.test(e))}function mx(e,t){if(!ex.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const s=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(s));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function hx(e,t){return!!((t==="v4"||!t)&&sx.test(e)||(t==="v6"||!t)&&ox.test(e))}class Gr extends qe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==we.string){const a=this._getOrReturnCtx(t);return ge(a,{code:re.invalid_type,expected:we.string,received:a.parsedType}),Oe}const s=new Nn;let o;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(o=this._getOrReturnCtx(t,o),ge(o,{code:re.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if(a.kind==="max")t.data.length>a.value&&(o=this._getOrReturnCtx(t,o),ge(o,{code:re.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if(a.kind==="length"){const u=t.data.length>a.value,d=t.data.length<a.value;(u||d)&&(o=this._getOrReturnCtx(t,o),u?ge(o,{code:re.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):d&&ge(o,{code:re.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),s.dirty())}else if(a.kind==="email")nx.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"email",code:re.invalid_string,message:a.message}),s.dirty());else if(a.kind==="emoji")Hu||(Hu=new RegExp(rx,"u")),Hu.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"emoji",code:re.invalid_string,message:a.message}),s.dirty());else if(a.kind==="uuid")Gk.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"uuid",code:re.invalid_string,message:a.message}),s.dirty());else if(a.kind==="nanoid")Jk.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"nanoid",code:re.invalid_string,message:a.message}),s.dirty());else if(a.kind==="cuid")Qk.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"cuid",code:re.invalid_string,message:a.message}),s.dirty());else if(a.kind==="cuid2")Yk.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"cuid2",code:re.invalid_string,message:a.message}),s.dirty());else if(a.kind==="ulid")Xk.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"ulid",code:re.invalid_string,message:a.message}),s.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),ge(o,{validation:"url",code:re.invalid_string,message:a.message}),s.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"regex",code:re.invalid_string,message:a.message}),s.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(o=this._getOrReturnCtx(t,o),ge(o,{code:re.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),s.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(o=this._getOrReturnCtx(t,o),ge(o,{code:re.invalid_string,validation:{startsWith:a.value},message:a.message}),s.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(o=this._getOrReturnCtx(t,o),ge(o,{code:re.invalid_string,validation:{endsWith:a.value},message:a.message}),s.dirty()):a.kind==="datetime"?fx(a).test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{code:re.invalid_string,validation:"datetime",message:a.message}),s.dirty()):a.kind==="date"?cx.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{code:re.invalid_string,validation:"date",message:a.message}),s.dirty()):a.kind==="time"?dx(a).test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{code:re.invalid_string,validation:"time",message:a.message}),s.dirty()):a.kind==="duration"?tx.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"duration",code:re.invalid_string,message:a.message}),s.dirty()):a.kind==="ip"?px(t.data,a.version)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"ip",code:re.invalid_string,message:a.message}),s.dirty()):a.kind==="jwt"?mx(t.data,a.alg)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"jwt",code:re.invalid_string,message:a.message}),s.dirty()):a.kind==="cidr"?hx(t.data,a.version)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"cidr",code:re.invalid_string,message:a.message}),s.dirty()):a.kind==="base64"?ax.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"base64",code:re.invalid_string,message:a.message}),s.dirty()):a.kind==="base64url"?ux.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"base64url",code:re.invalid_string,message:a.message}),s.dirty()):Ye.assertNever(a);return{status:s.value,value:t.data}}_regex(t,r,s){return this.refinement(o=>t.test(o),{validation:r,code:re.invalid_string,...Se.errToObj(s)})}_addCheck(t){return new Gr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Se.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Se.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Se.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Se.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Se.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Se.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Se.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Se.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Se.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Se.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Se.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Se.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Se.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Se.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Se.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Se.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Se.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...Se.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Se.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Se.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Se.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Se.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Se.errToObj(r)})}nonempty(t){return this.min(1,Se.errToObj(t))}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(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Gr.create=e=>new Gr({checks:[],typeName:ze.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Ue(e)});function gx(e,t){const r=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,o=r>s?r:s,a=Number.parseInt(e.toFixed(o).replace(".","")),u=Number.parseInt(t.toFixed(o).replace(".",""));return a%u/10**o}class Ji extends qe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==we.number){const a=this._getOrReturnCtx(t);return ge(a,{code:re.invalid_type,expected:we.number,received:a.parsedType}),Oe}let s;const o=new Nn;for(const a of this._def.checks)a.kind==="int"?Ye.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{code:re.invalid_type,expected:"integer",received:"float",message:a.message}),o.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(s=this._getOrReturnCtx(t,s),ge(s,{code:re.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(s=this._getOrReturnCtx(t,s),ge(s,{code:re.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="multipleOf"?gx(t.data,a.value)!==0&&(s=this._getOrReturnCtx(t,s),ge(s,{code:re.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),ge(s,{code:re.not_finite,message:a.message}),o.dirty()):Ye.assertNever(a);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Se.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Se.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Se.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Se.toString(r))}setLimit(t,r,s,o){return new Ji({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:Se.toString(o)}]})}_addCheck(t){return new Ji({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Se.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Se.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Se.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Se.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Se.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Se.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ye.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(r)&&Number.isFinite(t)}}Ji.create=e=>new Ji({checks:[],typeName:ze.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ue(e)});class ol extends qe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==we.bigint)return this._getInvalidInput(t);let s;const o=new Nn;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(s=this._getOrReturnCtx(t,s),ge(s,{code:re.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(s=this._getOrReturnCtx(t,s),ge(s,{code:re.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),ge(s,{code:re.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):Ye.assertNever(a);return{status:o.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return ge(r,{code:re.invalid_type,expected:we.bigint,received:r.parsedType}),Oe}gte(t,r){return this.setLimit("min",t,!0,Se.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Se.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Se.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Se.toString(r))}setLimit(t,r,s,o){return new ol({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:Se.toString(o)}]})}_addCheck(t){return new ol({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Se.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Se.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}ol.create=e=>new ol({checks:[],typeName:ze.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Ue(e)});class hc extends qe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==we.boolean){const s=this._getOrReturnCtx(t);return ge(s,{code:re.invalid_type,expected:we.boolean,received:s.parsedType}),Oe}return $n(t.data)}}hc.create=e=>new hc({typeName:ze.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ue(e)});class Lo extends qe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==we.date){const a=this._getOrReturnCtx(t);return ge(a,{code:re.invalid_type,expected:we.date,received:a.parsedType}),Oe}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return ge(a,{code:re.invalid_date}),Oe}const s=new Nn;let o;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(o=this._getOrReturnCtx(t,o),ge(o,{code:re.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),s.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(o=this._getOrReturnCtx(t,o),ge(o,{code:re.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),s.dirty()):Ye.assertNever(a);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Lo({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Se.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Se.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}Lo.create=e=>new Lo({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ze.ZodDate,...Ue(e)});class mm extends qe{_parse(t){if(this._getType(t)!==we.symbol){const s=this._getOrReturnCtx(t);return ge(s,{code:re.invalid_type,expected:we.symbol,received:s.parsedType}),Oe}return $n(t.data)}}mm.create=e=>new mm({typeName:ze.ZodSymbol,...Ue(e)});class hm extends qe{_parse(t){if(this._getType(t)!==we.undefined){const s=this._getOrReturnCtx(t);return ge(s,{code:re.invalid_type,expected:we.undefined,received:s.parsedType}),Oe}return $n(t.data)}}hm.create=e=>new hm({typeName:ze.ZodUndefined,...Ue(e)});class gm extends qe{_parse(t){if(this._getType(t)!==we.null){const s=this._getOrReturnCtx(t);return ge(s,{code:re.invalid_type,expected:we.null,received:s.parsedType}),Oe}return $n(t.data)}}gm.create=e=>new gm({typeName:ze.ZodNull,...Ue(e)});class ym extends qe{constructor(){super(...arguments),this._any=!0}_parse(t){return $n(t.data)}}ym.create=e=>new ym({typeName:ze.ZodAny,...Ue(e)});class vm extends qe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return $n(t.data)}}vm.create=e=>new vm({typeName:ze.ZodUnknown,...Ue(e)});class ti extends qe{_parse(t){const r=this._getOrReturnCtx(t);return ge(r,{code:re.invalid_type,expected:we.never,received:r.parsedType}),Oe}}ti.create=e=>new ti({typeName:ze.ZodNever,...Ue(e)});class km extends qe{_parse(t){if(this._getType(t)!==we.undefined){const s=this._getOrReturnCtx(t);return ge(s,{code:re.invalid_type,expected:we.void,received:s.parsedType}),Oe}return $n(t.data)}}km.create=e=>new km({typeName:ze.ZodVoid,...Ue(e)});class cr extends qe{_parse(t){const{ctx:r,status:s}=this._processInputParams(t),o=this._def;if(r.parsedType!==we.array)return ge(r,{code:re.invalid_type,expected:we.array,received:r.parsedType}),Oe;if(o.exactLength!==null){const u=r.data.length>o.exactLength.value,d=r.data.length<o.exactLength.value;(u||d)&&(ge(r,{code:u?re.too_big:re.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}),s.dirty())}if(o.minLength!==null&&r.data.length<o.minLength.value&&(ge(r,{code:re.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),s.dirty()),o.maxLength!==null&&r.data.length>o.maxLength.value&&(ge(r,{code:re.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((u,d)=>o.type._parseAsync(new ei(r,u,r.path,d)))).then(u=>Nn.mergeArray(s,u));const a=[...r.data].map((u,d)=>o.type._parseSync(new ei(r,u,r.path,d)));return Nn.mergeArray(s,a)}get element(){return this._def.type}min(t,r){return new cr({...this._def,minLength:{value:t,message:Se.toString(r)}})}max(t,r){return new cr({...this._def,maxLength:{value:t,message:Se.toString(r)}})}length(t,r){return new cr({...this._def,exactLength:{value:t,message:Se.toString(r)}})}nonempty(t){return this.min(1,t)}}cr.create=(e,t)=>new cr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ze.ZodArray,...Ue(t)});function Qi(e){if(e instanceof Nt){const t={};for(const r in e.shape){const s=e.shape[r];t[r]=Jr.create(Qi(s))}return new Nt({...e._def,shape:()=>t})}else return e instanceof cr?new cr({...e._def,type:Qi(e.element)}):e instanceof Jr?Jr.create(Qi(e.unwrap())):e instanceof ns?ns.create(Qi(e.unwrap())):e instanceof _i?_i.create(e.items.map(t=>Qi(t))):e}class Nt extends qe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=Ye.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==we.object){const m=this._getOrReturnCtx(t);return ge(m,{code:re.invalid_type,expected:we.object,received:m.parsedType}),Oe}const{status:s,ctx:o}=this._processInputParams(t),{shape:a,keys:u}=this._getCached(),d=[];if(!(this._def.catchall instanceof ti&&this._def.unknownKeys==="strip"))for(const m in o.data)u.includes(m)||d.push(m);const f=[];for(const m of u){const v=a[m],h=o.data[m];f.push({key:{status:"valid",value:m},value:v._parse(new ei(o,h,o.path,m)),alwaysSet:m in o.data})}if(this._def.catchall instanceof ti){const m=this._def.unknownKeys;if(m==="passthrough")for(const v of d)f.push({key:{status:"valid",value:v},value:{status:"valid",value:o.data[v]}});else if(m==="strict")d.length>0&&(ge(o,{code:re.unrecognized_keys,keys:d}),s.dirty());else if(m!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const m=this._def.catchall;for(const v of d){const h=o.data[v];f.push({key:{status:"valid",value:v},value:m._parse(new ei(o,h,o.path,v)),alwaysSet:v in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const m=[];for(const v of f){const h=await v.key,x=await v.value;m.push({key:h,value:x,alwaysSet:v.alwaysSet})}return m}).then(m=>Nn.mergeObjectSync(s,m)):Nn.mergeObjectSync(s,f)}get shape(){return this._def.shape()}strict(t){return Se.errToObj,new Nt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,s)=>{var a,u;const o=((u=(a=this._def).errorMap)==null?void 0:u.call(a,r,s).message)??s.defaultError;return r.code==="unrecognized_keys"?{message:Se.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new Nt({...this._def,unknownKeys:"strip"})}passthrough(){return new Nt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Nt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Nt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ze.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Nt({...this._def,catchall:t})}pick(t){const r={};for(const s of Ye.objectKeys(t))t[s]&&this.shape[s]&&(r[s]=this.shape[s]);return new Nt({...this._def,shape:()=>r})}omit(t){const r={};for(const s of Ye.objectKeys(this.shape))t[s]||(r[s]=this.shape[s]);return new Nt({...this._def,shape:()=>r})}deepPartial(){return Qi(this)}partial(t){const r={};for(const s of Ye.objectKeys(this.shape)){const o=this.shape[s];t&&!t[s]?r[s]=o:r[s]=o.optional()}return new Nt({...this._def,shape:()=>r})}required(t){const r={};for(const s of Ye.objectKeys(this.shape))if(t&&!t[s])r[s]=this.shape[s];else{let a=this.shape[s];for(;a instanceof Jr;)a=a._def.innerType;r[s]=a}return new Nt({...this._def,shape:()=>r})}keyof(){return Hh(Ye.objectKeys(this.shape))}}Nt.create=(e,t)=>new Nt({shape:()=>e,unknownKeys:"strip",catchall:ti.create(),typeName:ze.ZodObject,...Ue(t)});Nt.strictCreate=(e,t)=>new Nt({shape:()=>e,unknownKeys:"strict",catchall:ti.create(),typeName:ze.ZodObject,...Ue(t)});Nt.lazycreate=(e,t)=>new Nt({shape:e,unknownKeys:"strip",catchall:ti.create(),typeName:ze.ZodObject,...Ue(t)});class Mo extends qe{_parse(t){const{ctx:r}=this._processInputParams(t),s=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 Sr(d.ctx.common.issues));return ge(r,{code:re.invalid_union,unionErrors:u}),Oe}if(r.common.async)return Promise.all(s.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 s){const m={...r,common:{...r.common,issues:[]},parent:null},v=f._parseSync({data:r.data,path:r.path,parent:m});if(v.status==="valid")return v;v.status==="dirty"&&!a&&(a={result:v,ctx:m}),m.common.issues.length&&u.push(m.common.issues)}if(a)return r.common.issues.push(...a.ctx.common.issues),a.result;const d=u.map(f=>new Sr(f));return ge(r,{code:re.invalid_union,unionErrors:d}),Oe}}get options(){return this._def.options}}Mo.create=(e,t)=>new Mo({options:e,typeName:ze.ZodUnion,...Ue(t)});function gc(e,t){const r=Yr(e),s=Yr(t);if(e===t)return{valid:!0,data:e};if(r===we.object&&s===we.object){const o=Ye.objectKeys(t),a=Ye.objectKeys(e).filter(d=>o.indexOf(d)!==-1),u={...e,...t};for(const d of a){const f=gc(e[d],t[d]);if(!f.valid)return{valid:!1};u[d]=f.data}return{valid:!0,data:u}}else if(r===we.array&&s===we.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let a=0;a<e.length;a++){const u=e[a],d=t[a],f=gc(u,d);if(!f.valid)return{valid:!1};o.push(f.data)}return{valid:!0,data:o}}else return r===we.date&&s===we.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Oo extends qe{_parse(t){const{status:r,ctx:s}=this._processInputParams(t),o=(a,u)=>{if(dm(a)||dm(u))return Oe;const d=gc(a.value,u.value);return d.valid?((fm(a)||fm(u))&&r.dirty(),{status:r.value,value:d.data}):(ge(s,{code:re.invalid_intersection_types}),Oe)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([a,u])=>o(a,u)):o(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}Oo.create=(e,t,r)=>new Oo({left:e,right:t,typeName:ze.ZodIntersection,...Ue(r)});class _i extends qe{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==we.array)return ge(s,{code:re.invalid_type,expected:we.array,received:s.parsedType}),Oe;if(s.data.length<this._def.items.length)return ge(s,{code:re.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Oe;!this._def.rest&&s.data.length>this._def.items.length&&(ge(s,{code:re.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const a=[...s.data].map((u,d)=>{const f=this._def.items[d]||this._def.rest;return f?f._parse(new ei(s,u,s.path,d)):null}).filter(u=>!!u);return s.common.async?Promise.all(a).then(u=>Nn.mergeArray(r,u)):Nn.mergeArray(r,a)}get items(){return this._def.items}rest(t){return new _i({...this._def,rest:t})}}_i.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _i({items:e,typeName:ze.ZodTuple,rest:null,...Ue(t)})};class xm extends qe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==we.map)return ge(s,{code:re.invalid_type,expected:we.map,received:s.parsedType}),Oe;const o=this._def.keyType,a=this._def.valueType,u=[...s.data.entries()].map(([d,f],m)=>({key:o._parse(new ei(s,d,s.path,[m,"key"])),value:a._parse(new ei(s,f,s.path,[m,"value"]))}));if(s.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const f of u){const m=await f.key,v=await f.value;if(m.status==="aborted"||v.status==="aborted")return Oe;(m.status==="dirty"||v.status==="dirty")&&r.dirty(),d.set(m.value,v.value)}return{status:r.value,value:d}})}else{const d=new Map;for(const f of u){const m=f.key,v=f.value;if(m.status==="aborted"||v.status==="aborted")return Oe;(m.status==="dirty"||v.status==="dirty")&&r.dirty(),d.set(m.value,v.value)}return{status:r.value,value:d}}}}xm.create=(e,t,r)=>new xm({valueType:t,keyType:e,typeName:ze.ZodMap,...Ue(r)});class al extends qe{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==we.set)return ge(s,{code:re.invalid_type,expected:we.set,received:s.parsedType}),Oe;const o=this._def;o.minSize!==null&&s.data.size<o.minSize.value&&(ge(s,{code:re.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),r.dirty()),o.maxSize!==null&&s.data.size>o.maxSize.value&&(ge(s,{code:re.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 m=new Set;for(const v of f){if(v.status==="aborted")return Oe;v.status==="dirty"&&r.dirty(),m.add(v.value)}return{status:r.value,value:m}}const d=[...s.data.values()].map((f,m)=>a._parse(new ei(s,f,s.path,m)));return s.common.async?Promise.all(d).then(f=>u(f)):u(d)}min(t,r){return new al({...this._def,minSize:{value:t,message:Se.toString(r)}})}max(t,r){return new al({...this._def,maxSize:{value:t,message:Se.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}al.create=(e,t)=>new al({valueType:e,minSize:null,maxSize:null,typeName:ze.ZodSet,...Ue(t)});class _m extends qe{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}_m.create=(e,t)=>new _m({getter:e,typeName:ze.ZodLazy,...Ue(t)});class wm extends qe{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return ge(r,{received:r.data,code:re.invalid_literal,expected:this._def.value}),Oe}return{status:"valid",value:t.data}}get value(){return this._def.value}}wm.create=(e,t)=>new wm({value:e,typeName:ze.ZodLiteral,...Ue(t)});function Hh(e,t){return new es({values:e,typeName:ze.ZodEnum,...Ue(t)})}class es extends qe{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),s=this._def.values;return ge(r,{expected:Ye.joinValues(s),received:r.parsedType,code:re.invalid_type}),Oe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),s=this._def.values;return ge(r,{received:r.data,code:re.invalid_enum_value,options:s}),Oe}return $n(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return es.create(t,{...this._def,...r})}exclude(t,r=this._def){return es.create(this.options.filter(s=>!t.includes(s)),{...this._def,...r})}}es.create=Hh;class bm extends qe{_parse(t){const r=Ye.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==we.string&&s.parsedType!==we.number){const o=Ye.objectValues(r);return ge(s,{expected:Ye.joinValues(o),received:s.parsedType,code:re.invalid_type}),Oe}if(this._cache||(this._cache=new Set(Ye.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const o=Ye.objectValues(r);return ge(s,{received:s.data,code:re.invalid_enum_value,options:o}),Oe}return $n(t.data)}get enum(){return this._def.values}}bm.create=(e,t)=>new bm({values:e,typeName:ze.ZodNativeEnum,...Ue(t)});class zo extends qe{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==we.promise&&r.common.async===!1)return ge(r,{code:re.invalid_type,expected:we.promise,received:r.parsedType}),Oe;const s=r.parsedType===we.promise?r.data:Promise.resolve(r.data);return $n(s.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}}zo.create=(e,t)=>new zo({type:e,typeName:ze.ZodPromise,...Ue(t)});class ts extends qe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ze.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:s}=this._processInputParams(t),o=this._def.effect||null,a={addIssue:u=>{ge(s,u),u.fatal?r.abort():r.dirty()},get path(){return s.path}};if(a.addIssue=a.addIssue.bind(a),o.type==="preprocess"){const u=o.transform(s.data,a);if(s.common.async)return Promise.resolve(u).then(async d=>{if(r.value==="aborted")return Oe;const f=await this._def.schema._parseAsync({data:d,path:s.path,parent:s});return f.status==="aborted"?Oe:f.status==="dirty"||r.value==="dirty"?Gs(f.value):f});{if(r.value==="aborted")return Oe;const d=this._def.schema._parseSync({data:u,path:s.path,parent:s});return d.status==="aborted"?Oe:d.status==="dirty"||r.value==="dirty"?Gs(d.value):d}}if(o.type==="refinement"){const u=d=>{const f=o.refinement(d,a);if(s.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(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return d.status==="aborted"?Oe:(d.status==="dirty"&&r.dirty(),u(d.value),{status:r.value,value:d.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>d.status==="aborted"?Oe:(d.status==="dirty"&&r.dirty(),u(d.value).then(()=>({status:r.value,value:d.value}))))}if(o.type==="transform")if(s.common.async===!1){const u=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Gi(u))return Oe;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:s.data,path:s.path,parent:s}).then(u=>Gi(u)?Promise.resolve(o.transform(u.value,a)).then(d=>({status:r.value,value:d})):Oe);Ye.assertNever(o)}}ts.create=(e,t,r)=>new ts({schema:e,typeName:ze.ZodEffects,effect:t,...Ue(r)});ts.createWithPreprocess=(e,t,r)=>new ts({schema:t,effect:{type:"preprocess",transform:e},typeName:ze.ZodEffects,...Ue(r)});class Jr extends qe{_parse(t){return this._getType(t)===we.undefined?$n(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Jr.create=(e,t)=>new Jr({innerType:e,typeName:ze.ZodOptional,...Ue(t)});class ns extends qe{_parse(t){return this._getType(t)===we.null?$n(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ns.create=(e,t)=>new ns({innerType:e,typeName:ze.ZodNullable,...Ue(t)});class yc extends qe{_parse(t){const{ctx:r}=this._processInputParams(t);let s=r.data;return r.parsedType===we.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}yc.create=(e,t)=>new yc({innerType:e,typeName:ze.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ue(t)});class vc extends qe{_parse(t){const{ctx:r}=this._processInputParams(t),s={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Po(o)?o.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Sr(s.common.issues)},input:s.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Sr(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}vc.create=(e,t)=>new vc({innerType:e,typeName:ze.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ue(t)});class Sm extends qe{_parse(t){if(this._getType(t)!==we.nan){const s=this._getOrReturnCtx(t);return ge(s,{code:re.invalid_type,expected:we.nan,received:s.parsedType}),Oe}return{status:"valid",value:t.data}}}Sm.create=e=>new Sm({typeName:ze.ZodNaN,...Ue(e)});class yx extends qe{_parse(t){const{ctx:r}=this._processInputParams(t),s=r.data;return this._def.type._parse({data:s,path:r.path,parent:r})}unwrap(){return this._def.type}}class Hc extends qe{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?Oe:a.status==="dirty"?(r.dirty(),Gs(a.value)):this._def.out._parseAsync({data:a.value,path:s.path,parent:s})})();{const o=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?Oe:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:s.path,parent:s})}}static create(t,r){return new Hc({in:t,out:r,typeName:ze.ZodPipeline})}}class kc extends qe{_parse(t){const r=this._def.innerType._parse(t),s=o=>(Gi(o)&&(o.value=Object.freeze(o.value)),o);return Po(r)?r.then(o=>s(o)):s(r)}unwrap(){return this._def.innerType}}kc.create=(e,t)=>new kc({innerType:e,typeName:ze.ZodReadonly,...Ue(t)});var ze;(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"})(ze||(ze={}));const Ee=Gr.create,on=Ji.create,Wh=hc.create;ti.create;const $t=cr.create,tt=Nt.create;Mo.create;Oo.create;_i.create;const en=es.create;zo.create;Jr.create;ns.create;const qo=["proposed","backlog","todo","in_progress","pending","done"],Wc=["decision","external","dependency"],Zc=["high","medium","low"],Zh=["human","ai"],vx=["planned","active","done"],Kh=["en","ja"],kx=5151,Cm=Ee().datetime({offset:!0,message:"ISO 8601 (タイムゾーン付き) の文字列で指定する (例: 2026-06-10T10:00:00+09:00)"}),Em=Ee().regex(/^[A-Za-z0-9_]+-\d{3,}$/,"タスク ID は <接頭辞>-<3 桁以上の数字> 形式 (例: TASK-001)"),wi=Ee().min(1).regex(/^[^\r\n]+$/,"1 行で書く (改行不可)"),xx=tt({id:Ee().min(1),label:Ee().min(1).optional(),type:en(Zh)}),_x=tt({id:Ee().min(1),label:Ee().min(1).optional(),hideWhenEmpty:Wh().optional(),wipLimit:on().int().positive().optional()}),wx=tt({id:Ee().min(1),title:Ee().min(1),order:on().int().default(0),status:en(vx).default("planned")}),bx=tt({name:Ee().min(1),title:Ee().optional(),body:Ee().optional(),labels:$t(Ee().min(1)).optional(),priority:en(Zc).optional()}).strict(),qh=tt({projectName:Ee().min(1).default("project"),idPrefix:Ee().regex(/^[A-Za-z0-9_]+$/,"idPrefix は英数字とアンダースコアのみ").default("TASK"),port:on().int().min(1).max(65535).default(kx),aiTaskCreation:en(["free","proposal"]).default("free"),language:en(Kh).optional(),members:$t(xx).min(1).default([{id:"member1",type:"human"},{id:"member2",type:"human"},{id:"claude",type:"ai"},{id:"codex",type:"ai"}]).superRefine((e,t)=>{const r=new Set;for(const s of e)r.has(s.id)&&t.addIssue({code:re.custom,message:`member id が重複しています: ${s.id}`}),r.add(s.id)}),columns:$t(_x).min(1).default([{id:"proposed",hideWhenEmpty:!0},{id:"backlog"},{id:"todo"},{id:"in_progress",wipLimit:2},{id:"pending"},{id:"done"}]),instructionTemplate:Ee().default("タスク {id} の内容を {path} で確認し、CLAUDE.md の運用規約に従って実行してください。"),aiConfigPaths:tt({settingsFiles:$t(Ee()).default([".claude/settings.json",".claude/settings.local.json"]),browseDirs:$t(Ee()).default([".claude/skills",".claude/rules",".claude/agents"]),rootFiles:$t(Ee()).default(["CLAUDE.md"])}).default({}),milestones:$t(wx).default([]),taskTemplates:$t(bx).default([]),docsDirs:$t(Ee().min(1)).default([])}),Sx=tt({id:Em,title:wi,status:en(qo),assignee:Ee().min(1).nullable().default(null),created_by:Ee().min(1),priority:en(Zc).default("medium"),labels:$t(Ee().min(1)).default([]),blocked_type:en(Wc).nullable().default(null),blocked_reason:Ee().min(1).nullable().default(null),depends_on:$t(Em).default([]),milestone:Ee().min(1).nullable().default(null),related_docs:$t(Ee().min(1)).optional(),created:Cm,updated:Cm}).strict().superRefine((e,t)=>{e.status==="pending"&&(e.blocked_type===null&&t.addIssue({code:re.custom,path:["blocked_type"],message:"pending のタスクは blocked_type (decision / external / dependency) が必須"}),e.blocked_reason===null&&t.addIssue({code:re.custom,path:["blocked_reason"],message:"pending のタスクは blocked_reason (誰の・何待ちか) が必須"}))}),Cx=["invalid_task","duplicate_id","unregistered_member","invalid_config","mode_violation"],Ex=tt({kind:en(Cx),path:Ee(),taskId:Ee().nullable(),message:Ee()}),Nx=tt({frontmatter:Sx,path:Ee(),body:Ee(),raw:Ee(),mtimeMs:on()});tt({tasks:$t(Nx),config:qh,warnings:$t(Ex)});tt({title:wi,created_by:Ee().min(1),assignee:Ee().min(1).nullable().optional(),priority:en(Zc).optional(),labels:$t(Ee().min(1)).optional(),body:Ee().optional()}).strict();tt({status:en(qo),blocked_type:en(Wc).nullable().optional(),blocked_reason:wi.nullable().optional()}).strict().superRefine((e,t)=>{e.status!=="pending"&&(e.blocked_type!=null&&t.addIssue({code:re.custom,path:["blocked_type"],message:"pending 以外への移動では blocked_type を指定しない"}),e.blocked_reason!=null&&t.addIssue({code:re.custom,path:["blocked_reason"],message:"pending 以外への移動では blocked_reason を指定しない"}))});tt({content:Ee().min(1),baseMtimeMs:on()}).strict();tt({error:Ee(),serverContent:Ee(),serverMtimeMs:on()});tt({type:en(["connected","change"])});const Tx=tt({proposed:on().int().nonnegative(),backlog:on().int().nonnegative(),todo:on().int().nonnegative(),in_progress:on().int().nonnegative(),pending:on().int().nonnegative(),done:on().int().nonnegative()}),jx=tt({name:Ee().min(1),dir:Ee().min(1),root:Ee().min(1),statusCounts:Tx,warningCount:on().int().nonnegative(),wipExceeded:Wh()}),Ix=tt({id:Ee().min(1),title:Ee(),status:en(["in_progress","pending","proposed"]),assignee:Ee().nullable(),blocked_type:en(Wc).nullable(),blocked_reason:Ee().nullable(),project:Ee().min(1)});tt({projects:$t(jx),attention:$t(Ix)});tt({mode:en(["board","overview"])});tt({reason:wi}).strict();tt({path:Ee(),content:Ee(),mtimeMs:on()});tt({path:Ee().min(1),content:Ee(),baseMtimeMs:on()}).strict();tt({path:Ee(),name:Ee().nullable(),description:Ee().nullable()});tt({hash:Ee(),subject:Ee(),authorDate:Ee()});tt({member:Ee().min(1),message:wi}).strict();tt({}).strict();tt({from:wi,to:wi}).strict().refine(e=>e.from!==e.to,{message:"from と to が同じです"});const Qh={"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","digest.days":"Days","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.tasks":"Tasks","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.members.idPlaceholder":"ID (slug)","settings.members.labelPlaceholder":"Display name (optional)","settings.migrate.title":"These member changes affect existing tasks","settings.migrate.rename":"{from} → {to}: reassign {n} referencing task(s)","settings.migrate.removed":"Removing {id} ({n} referencing task(s)). Reassign to:","settings.migrate.noTransfer":"Do not reassign (tasks will show warnings)","settings.migrate.execute":"Save and apply","settings.migrate.skipped":"Some task files could not be updated: {files}","settings.migrate.swap":"Swapping member IDs in one save is not supported. Save in two steps.","settings.migrate.failed":"Settings were saved, but reassigning task references failed. Save again to retry the rest.","settings.members.duplicate":"Duplicate member IDs: {ids}","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."},Dx={"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":"完了した項目を一括アーカイブする","archive.confirm":"完了したタスク {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} 件","digest.days":"日付","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.tasks":"所属タスク","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.members.idPlaceholder":"ID(スラッグ)","settings.members.labelPlaceholder":"表示名(任意)","settings.migrate.title":"このメンバー変更は既存タスクに影響します","settings.migrate.rename":"{from} → {to}: 参照タスク {n} 件を付け替えます","settings.migrate.removed":"{id} を削除します(参照タスク {n} 件)。移譲先:","settings.migrate.noTransfer":"移譲しない(警告表示のまま)","settings.migrate.execute":"保存して実行","settings.migrate.skipped":"一部のタスクを書き換えられませんでした: {files}","settings.migrate.swap":"メンバー ID の入れ替えは 1 回の保存では実行できません。2 回に分けて保存してください。","settings.migrate.failed":"設定は保存済みです。参照の付け替えに失敗しました — もう一度保存すると残りを再実行します。","settings.members.duplicate":"メンバー ID が重複しています: {ids}","settings.columns":"カラム","settings.advanced":"詳細(生 JSON)","settings.save":"保存","settings.saving":"保存中…","settings.saved":"保存しました","settings.error":"設定の保存に失敗しました","settings.reload":"再読み込み","settings.loadError":"設定の読み込みに失敗しました","settings.conflict":"config.json が外部 (エディタや AI) で変更されました。設定を一度閉じて開き直して再読み込みしてから、保存し直してください。"},Kc=Kh,Yh="aizuchi.lang",Rx={en:Qh,ja:Dx};function Ax(e,t){return t?e.replace(/\{(\w+)\}/g,(r,s)=>Object.prototype.hasOwnProperty.call(t,s)?String(t[s]):r):e}function Xh(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(Yh);return e==="en"||e==="ja"?e:null}catch{return null}}function Px(){return Xh()!==null}const Gh=C.createContext(null);function Lx({children:e}){const[t,r]=C.useState(()=>Xh()??"en"),s=C.useRef(!1),o=C.useCallback(m=>{r(m),typeof document<"u"&&(document.documentElement.lang=m)},[]),a=C.useCallback(m=>{s.current=!0,r(m);try{typeof localStorage<"u"&&localStorage.setItem(Yh,m)}catch{}typeof document<"u"&&(document.documentElement.lang=m)},[]),u=C.useCallback(()=>s.current||Px(),[]),d=C.useCallback((m,v)=>{const x=Rx[t][m]??Qh[m]??m;return Ax(x,v)},[t]),f=C.useMemo(()=>({lang:t,setLang:a,applyLang:o,hasUserChoice:u,t:d}),[t,a,o,u,d]);return y.jsx(Gh.Provider,{value:f,children:e})}function bt(){const e=C.useContext(Gh);if(!e)throw new Error("useI18n は I18nProvider の内側で使ってください");return e}function Mx(e,t){switch(t.unit){case"justNow":return e("time.justNow");case"minutes":return e("time.minutesAgo",{n:t.n});case"hours":return e("time.hoursAgo",{n:t.n});case"days":return e("time.daysAgo",{n:t.n})}}const Ox="_overlay_6l86f_1",zx="_dialog_6l86f_12",Fx="_dialogWide_6l86f_23",$x="_title_6l86f_27",Bx="_field_6l86f_32",Ux="_label_6l86f_39",Vx="_input_6l86f_45",Hx="_select_6l86f_46",Wx="_textarea_6l86f_47",Zx="_actions_6l86f_69",Kx="_btn_6l86f_76",qx="_btnPrimary_6l86f_88",Qx="_btnDanger_6l86f_103",Yx="_error_6l86f_109",pe={overlay:Ox,dialog:zx,dialogWide:Fx,title:$x,field:Bx,label:Ux,input:Vx,select:Hx,textarea:Wx,actions:Zx,btn:Kx,btnPrimary:qx,btnDanger:Qx,error:Yx};function qc(e,t){return e===t}function pl({title:e,onClose:t,children:r,wide:s}){const o=C.useRef(null);return C.useEffect(()=>{var d;const a=document.activeElement,u=f=>{f.key==="Escape"&&t()};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)}},[t]),y.jsx("div",{className:pe.overlay,onClick:a=>{qc(a.target,a.currentTarget)&&(a.stopPropagation(),t())},children:y.jsxs("div",{ref:o,className:`${pe.dialog} ${s?pe.dialogWide:""}`,role:"dialog","aria-modal":"true","aria-label":e,tabIndex:-1,children:[y.jsx("h2",{className:pe.title,children:e}),r]})})}const Nm="aizuchi.createdBy",Xx=["high","medium","low"];function Gx({members:e,templates:t=[],onCancel:r,onSubmit:s}){var le;const{t:o}=bt(),a=typeof localStorage<"u"?localStorage.getItem(Nm):null,u=a&&e.some(O=>O.id===a)?a:((le=e[0])==null?void 0:le.id)??"",[d,f]=C.useState(""),[m,v]=C.useState(u),[h,x]=C.useState(""),[k,w]=C.useState("medium"),[j,I]=C.useState(""),[b,M]=C.useState(""),[E,z]=C.useState(-1),[V,L]=C.useState(null),[K,Y]=C.useState(!1),oe=O=>{if(z(O),O<0||O>=t.length){f(""),M(""),I(""),w("medium");return}const G=t[O];f((G.title??"").replace(/[\r\n]/g,"")),M(G.body??""),I((G.labels??[]).join(", ")),w(G.priority??"medium")},R=C.useRef(!0);C.useEffect(()=>()=>{R.current=!1},[]);const H=d.trim(),B=H.length>0&&m.length>0&&!K,ae=async()=>{if(B){Y(!0),L(null);try{const O=j.split(",").map(ue=>ue.trim()).filter(ue=>ue.length>0),G={title:H,created_by:m,assignee:h||null,priority:k,labels:O,...b.length>0?{body:b}:{}};await s(G),typeof localStorage<"u"&&localStorage.setItem(Nm,m)}catch(O){R.current&&(L(O instanceof Error?O.message:o("addTask.error")),Y(!1))}}};return y.jsxs(pl,{title:o("addTask.title"),onClose:r,children:[V&&y.jsx("p",{className:pe.error,children:V}),y.jsxs("form",{onSubmit:O=>{O.preventDefault(),ae()},children:[t.length>0&&y.jsxs("div",{className:pe.field,children:[y.jsx("label",{className:pe.label,htmlFor:"new-template",children:o("addTask.field.template")}),y.jsxs("select",{id:"new-template",className:pe.select,value:E,onChange:O=>oe(Number(O.target.value)),children:[y.jsx("option",{value:-1,children:o("addTask.template.none")}),t.map((O,G)=>y.jsx("option",{value:G,children:O.name},G))]})]}),y.jsxs("div",{className:pe.field,children:[y.jsx("label",{className:pe.label,htmlFor:"new-title",children:o("addTask.field.title")}),y.jsx("input",{id:"new-title",className:pe.input,value:d,onChange:O=>f(O.target.value.replace(/[\r\n]/g,"")),placeholder:o("addTask.field.title.placeholder"),autoFocus:!0})]}),y.jsxs("div",{className:pe.field,children:[y.jsx("label",{className:pe.label,htmlFor:"new-created-by",children:o("addTask.field.createdBy")}),y.jsx("select",{id:"new-created-by",className:pe.select,value:m,onChange:O=>v(O.target.value),children:e.map(O=>y.jsxs("option",{value:O.id,children:[O.label??O.id,"(",O.type,")"]},O.id))})]}),y.jsxs("div",{className:pe.field,children:[y.jsx("label",{className:pe.label,htmlFor:"new-assignee",children:o("addTask.field.assignee")}),y.jsxs("select",{id:"new-assignee",className:pe.select,value:h,onChange:O=>x(O.target.value),children:[y.jsx("option",{value:"",children:o("card.unassigned")}),e.map(O=>y.jsxs("option",{value:O.id,children:[O.label??O.id,"(",O.type,")"]},O.id))]})]}),y.jsxs("div",{className:pe.field,children:[y.jsx("label",{className:pe.label,htmlFor:"new-priority",children:o("addTask.field.priority")}),y.jsx("select",{id:"new-priority",className:pe.select,value:k,onChange:O=>w(O.target.value),children:Xx.map(O=>y.jsx("option",{value:O,children:O},O))})]}),y.jsxs("div",{className:pe.field,children:[y.jsx("label",{className:pe.label,htmlFor:"new-labels",children:o("addTask.field.labels")}),y.jsx("input",{id:"new-labels",className:pe.input,value:j,onChange:O=>I(O.target.value.replace(/[\r\n]/g,"")),placeholder:o("addTask.field.labels.placeholder")})]}),t.length>0&&y.jsxs("div",{className:pe.field,children:[y.jsx("label",{className:pe.label,htmlFor:"new-body",children:o("addTask.field.body")}),y.jsx("textarea",{id:"new-body",className:pe.textarea,value:b,onChange:O=>M(O.target.value),placeholder:o("addTask.field.body.placeholder")})]}),y.jsxs("div",{className:pe.actions,children:[y.jsx("button",{type:"button",className:pe.btn,onClick:r,children:o("common.cancel")}),y.jsx("button",{type:"submit",className:`${pe.btn} ${pe.btnPrimary}`,disabled:!B,children:o(K?"addTask.submitting":"addTask.submit")})]})]})]})}var Js=Oh();const Qo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function is(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Qc(e){return"nodeType"in e}function yn(e){var t,r;return e?is(e)?e:Qc(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function Yc(e){const{Document:t}=yn(e);return e instanceof t}function ml(e){return is(e)?!1:e instanceof yn(e).HTMLElement}function Jh(e){return e instanceof yn(e).SVGElement}function ss(e){return e?is(e)?e.document:Qc(e)?Yc(e)?e:ml(e)||Jh(e)?e.ownerDocument:document:document:document}const ni=Qo?C.useLayoutEffect:C.useEffect;function Xc(e){const t=C.useRef(e);return ni(()=>{t.current=e}),C.useCallback(function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return t.current==null?void 0:t.current(...s)},[])}function Jx(){const e=C.useRef(null),t=C.useCallback((s,o)=>{e.current=setInterval(s,o)},[]),r=C.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function ul(e,t){t===void 0&&(t=[e]);const r=C.useRef(e);return ni(()=>{r.current!==e&&(r.current=e)},t),r}function hl(e,t){const r=C.useRef();return C.useMemo(()=>{const s=e(r.current);return r.current=s,s},[...t])}function Fo(e){const t=Xc(e),r=C.useRef(null),s=C.useCallback(o=>{o!==r.current&&(t==null||t(o,r.current)),r.current=o},[]);return[r,s]}function xc(e){const t=C.useRef();return C.useEffect(()=>{t.current=e},[e]),t.current}let Wu={};function Yo(e,t){return C.useMemo(()=>{if(t)return t;const r=Wu[e]==null?0:Wu[e]+1;return Wu[e]=r,e+"-"+r},[e,t])}function eg(e){return function(t){for(var r=arguments.length,s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];return s.reduce((a,u)=>{const d=Object.entries(u);for(const[f,m]of d){const v=a[f];v!=null&&(a[f]=v+e*m)}return a},{...t})}}const Xi=eg(1),$o=eg(-1);function e1(e){return"clientX"in e&&"clientY"in e}function tg(e){if(!e)return!1;const{KeyboardEvent:t}=yn(e.target);return t&&e instanceof t}function t1(e){if(!e)return!1;const{TouchEvent:t}=yn(e.target);return t&&e instanceof t}function _c(e){if(t1(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return e1(e)?{x:e.clientX,y:e.clientY}:null}const wc=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[wc.Translate.toString(e),wc.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:s}=e;return t+" "+r+"ms "+s}}}),Tm="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function n1(e){return e.matches(Tm)?e:e.querySelector(Tm)}const r1={display:"none"};function i1(e){let{id:t,value:r}=e;return zn.createElement("div",{id:t,style:r1},r)}function s1(e){let{id:t,announcement:r,ariaLiveType:s="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 zn.createElement("div",{id:t,style:o,role:"status","aria-live":s,"aria-atomic":!0},r)}function l1(){const[e,t]=C.useState("");return{announce:C.useCallback(s=>{s!=null&&t(s)},[]),announcement:e}}const ng=C.createContext(null);function o1(e){const t=C.useContext(ng);C.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function a1(){const[e]=C.useState(()=>new Set),t=C.useCallback(s=>(e.add(s),()=>e.delete(s)),[e]);return[C.useCallback(s=>{let{type:o,event:a}=s;e.forEach(u=>{var d;return(d=u[o])==null?void 0:d.call(u,a)})},[e]),t]}const u1={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
- `},c1={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function d1(e){let{announcements:t=c1,container:r,hiddenTextDescribedById:s,screenReaderInstructions:o=u1}=e;const{announce:a,announcement:u}=l1(),d=Yo("DndLiveRegion"),[f,m]=C.useState(!1);if(C.useEffect(()=>{m(!0)},[]),o1(C.useMemo(()=>({onDragStart(h){let{active:x}=h;a(t.onDragStart({active:x}))},onDragMove(h){let{active:x,over:k}=h;t.onDragMove&&a(t.onDragMove({active:x,over:k}))},onDragOver(h){let{active:x,over:k}=h;a(t.onDragOver({active:x,over:k}))},onDragEnd(h){let{active:x,over:k}=h;a(t.onDragEnd({active:x,over:k}))},onDragCancel(h){let{active:x,over:k}=h;a(t.onDragCancel({active:x,over:k}))}}),[a,t])),!f)return null;const v=zn.createElement(zn.Fragment,null,zn.createElement(i1,{id:s,value:o.draggable}),zn.createElement(s1,{id:d,announcement:u}));return r?Js.createPortal(v,r):v}var Dt;(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"})(Dt||(Dt={}));function Bo(){}function f1(e,t){return C.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function p1(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return C.useMemo(()=>[...t].filter(s=>s!=null),[...t])}const Jn=Object.freeze({x:0,y:0});function m1(e,t){let{data:{value:r}}=e,{data:{value:s}}=t;return s-r}function h1(e,t){if(!e||e.length===0)return null;const[r]=e;return r[t]}function g1(e,t){const r=Math.max(t.top,e.top),s=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),u=o-s,d=a-r;if(s<o&&r<a){const f=t.width*t.height,m=e.width*e.height,v=u*d,h=v/(f+m-v);return Number(h.toFixed(4))}return 0}const y1=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:s}=e;const o=[];for(const a of s){const{id:u}=a,d=r.get(u);if(d){const f=g1(d,t);f>0&&o.push({id:u,data:{droppableContainer:a,value:f}})}}return o.sort(m1)};function v1(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function rg(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Jn}function k1(e){return function(r){for(var s=arguments.length,o=new Array(s>1?s-1:0),a=1;a<s;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 x1=k1(1);function _1(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function w1(e,t,r){const s=_1(t);if(!s)return e;const{scaleX:o,scaleY:a,x:u,y:d}=s,f=e.left-u-(1-o)*parseFloat(r),m=e.top-d-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),v=o?e.width/o:e.width,h=a?e.height/a:e.height;return{width:v,height:h,top:m,right:f+v,bottom:m+h,left:f}}const b1={ignoreTransform:!1};function gl(e,t){t===void 0&&(t=b1);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:m,transformOrigin:v}=yn(e).getComputedStyle(e);m&&(r=w1(r,m,v))}const{top:s,left:o,width:a,height:u,bottom:d,right:f}=r;return{top:s,left:o,width:a,height:u,bottom:d,right:f}}function jm(e){return gl(e,{ignoreTransform:!0})}function S1(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function C1(e,t){return t===void 0&&(t=yn(e).getComputedStyle(e)),t.position==="fixed"}function E1(e,t){t===void 0&&(t=yn(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const a=t[o];return typeof a=="string"?r.test(a):!1})}function Gc(e,t){const r=[];function s(o){if(t!=null&&r.length>=t||!o)return r;if(Yc(o)&&o.scrollingElement!=null&&!r.includes(o.scrollingElement))return r.push(o.scrollingElement),r;if(!ml(o)||Jh(o)||r.includes(o))return r;const a=yn(e).getComputedStyle(o);return o!==e&&E1(o,a)&&r.push(o),C1(o,a)?r:s(o.parentNode)}return e?s(e):r}function ig(e){const[t]=Gc(e,1);return t??null}function Zu(e){return!Qo||!e?null:is(e)?e:Qc(e)?Yc(e)||e===ss(e).scrollingElement?window:ml(e)?e:null:null}function sg(e){return is(e)?e.scrollX:e.scrollLeft}function lg(e){return is(e)?e.scrollY:e.scrollTop}function bc(e){return{x:sg(e),y:lg(e)}}var Mt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Mt||(Mt={}));function og(e){return!Qo||!e?!1:e===document.scrollingElement}function ag(e){const t={x:0,y:0},r=og(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},o=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,u=e.scrollTop>=s.y,d=e.scrollLeft>=s.x;return{isTop:o,isLeft:a,isBottom:u,isRight:d,maxScroll:s,minScroll:t}}const N1={x:.2,y:.2};function T1(e,t,r,s,o){let{top:a,left:u,right:d,bottom:f}=r;s===void 0&&(s=10),o===void 0&&(o=N1);const{isTop:m,isBottom:v,isLeft:h,isRight:x}=ag(e),k={x:0,y:0},w={x:0,y:0},j={height:t.height*o.y,width:t.width*o.x};return!m&&a<=t.top+j.height?(k.y=Mt.Backward,w.y=s*Math.abs((t.top+j.height-a)/j.height)):!v&&f>=t.bottom-j.height&&(k.y=Mt.Forward,w.y=s*Math.abs((t.bottom-j.height-f)/j.height)),!x&&d>=t.right-j.width?(k.x=Mt.Forward,w.x=s*Math.abs((t.right-j.width-d)/j.width)):!h&&u<=t.left+j.width&&(k.x=Mt.Backward,w.x=s*Math.abs((t.left+j.width-u)/j.width)),{direction:k,speed:w}}function j1(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:t,left:r,right:s,bottom:o}=e.getBoundingClientRect();return{top:t,left:r,right:s,bottom:o,width:e.clientWidth,height:e.clientHeight}}function ug(e){return e.reduce((t,r)=>Xi(t,bc(r)),Jn)}function I1(e){return e.reduce((t,r)=>t+sg(r),0)}function D1(e){return e.reduce((t,r)=>t+lg(r),0)}function R1(e,t){if(t===void 0&&(t=gl),!e)return;const{top:r,left:s,bottom:o,right:a}=t(e);ig(e)&&(o<=0||a<=0||r>=window.innerHeight||s>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const A1=[["x",["left","right"],I1],["y",["top","bottom"],D1]];class Jc{constructor(t,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 s=Gc(r),o=ug(s);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,u,d]of A1)for(const f of u)Object.defineProperty(this,f,{get:()=>{const m=d(s),v=o[a]-m;return this.rect[f]+v},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class el{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var s;return(s=this.target)==null?void 0:s.removeEventListener(...r)})},this.target=t}add(t,r,s){var o;(o=this.target)==null||o.addEventListener(t,r,s),this.listeners.push([t,r,s])}}function P1(e){const{EventTarget:t}=yn(e);return e instanceof t?e:ss(e)}function Ku(e,t){const r=Math.abs(e.x),s=Math.abs(e.y);return typeof t=="number"?Math.sqrt(r**2+s**2)>t:"x"in t&&"y"in t?r>t.x&&s>t.y:"x"in t?r>t.x:"y"in t?s>t.y:!1}var On;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(On||(On={}));function Im(e){e.preventDefault()}function L1(e){e.stopPropagation()}var rt;(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"})(rt||(rt={}));const cg={start:[rt.Space,rt.Enter],cancel:[rt.Esc],end:[rt.Space,rt.Enter,rt.Tab]},M1=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case rt.Right:return{...r,x:r.x+25};case rt.Left:return{...r,x:r.x-25};case rt.Down:return{...r,y:r.y+25};case rt.Up:return{...r,y:r.y-25}}};class dg{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:r}}=t;this.props=t,this.listeners=new el(ss(r)),this.windowListeners=new el(yn(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(On.Resize,this.handleCancel),this.windowListeners.add(On.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(On.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,s=t.node.current;s&&R1(s),r(Jn)}handleKeyDown(t){if(tg(t)){const{active:r,context:s,options:o}=this.props,{keyboardCodes:a=cg,coordinateGetter:u=M1,scrollBehavior:d="smooth"}=o,{code:f}=t;if(a.end.includes(f)){this.handleEnd(t);return}if(a.cancel.includes(f)){this.handleCancel(t);return}const{collisionRect:m}=s.current,v=m?{x:m.left,y:m.top}:Jn;this.referenceCoordinates||(this.referenceCoordinates=v);const h=u(t,{active:r,context:s.current,currentCoordinates:v});if(h){const x=$o(h,v),k={x:0,y:0},{scrollableAncestors:w}=s.current;for(const j of w){const I=t.code,{isTop:b,isRight:M,isLeft:E,isBottom:z,maxScroll:V,minScroll:L}=ag(j),K=j1(j),Y={x:Math.min(I===rt.Right?K.right-K.width/2:K.right,Math.max(I===rt.Right?K.left:K.left+K.width/2,h.x)),y:Math.min(I===rt.Down?K.bottom-K.height/2:K.bottom,Math.max(I===rt.Down?K.top:K.top+K.height/2,h.y))},oe=I===rt.Right&&!M||I===rt.Left&&!E,R=I===rt.Down&&!z||I===rt.Up&&!b;if(oe&&Y.x!==h.x){const H=j.scrollLeft+x.x,B=I===rt.Right&&H<=V.x||I===rt.Left&&H>=L.x;if(B&&!x.y){j.scrollTo({left:H,behavior:d});return}B?k.x=j.scrollLeft-H:k.x=I===rt.Right?j.scrollLeft-V.x:j.scrollLeft-L.x,k.x&&j.scrollBy({left:-k.x,behavior:d});break}else if(R&&Y.y!==h.y){const H=j.scrollTop+x.y,B=I===rt.Down&&H<=V.y||I===rt.Up&&H>=L.y;if(B&&!x.x){j.scrollTo({top:H,behavior:d});return}B?k.y=j.scrollTop-H:k.y=I===rt.Down?j.scrollTop-V.y:j.scrollTop-L.y,k.y&&j.scrollBy({top:-k.y,behavior:d});break}}this.handleMove(t,Xi($o(h,this.referenceCoordinates),k))}}}handleMove(t,r){const{onMove:s}=this.props;t.preventDefault(),s(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}dg.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:s=cg,onActivation:o}=t,{active:a}=r;const{code:u}=e.nativeEvent;if(s.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 Dm(e){return!!(e&&"distance"in e)}function Rm(e){return!!(e&&"delay"in e)}class ed{constructor(t,r,s){var o;s===void 0&&(s=P1(t.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=t,this.events=r;const{event:a}=t,{target:u}=a;this.props=t,this.events=r,this.document=ss(u),this.documentListeners=new el(this.document),this.listeners=new el(s),this.windowListeners=new el(yn(u)),this.initialCoordinates=(o=_c(a))!=null?o:Jn,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:t,props:{options:{activationConstraint:r,bypassActivationConstraint:s}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(On.Resize,this.handleCancel),this.windowListeners.add(On.DragStart,Im),this.windowListeners.add(On.VisibilityChange,this.handleCancel),this.windowListeners.add(On.ContextMenu,Im),this.documentListeners.add(On.Keydown,this.handleKeydown),r){if(s!=null&&s({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Rm(r)){this.timeoutId=setTimeout(this.handleStart,r.delay),this.handlePending(r);return}if(Dm(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(t,r){const{active:s,onPending:o}=this.props;o(s,t,this.initialCoordinates,r)}handleStart(){const{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(On.Click,L1,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(On.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:s,initialCoordinates:o,props:a}=this,{onMove:u,options:{activationConstraint:d}}=a;if(!o)return;const f=(r=_c(t))!=null?r:Jn,m=$o(o,f);if(!s&&d){if(Dm(d)){if(d.tolerance!=null&&Ku(m,d.tolerance))return this.handleCancel();if(Ku(m,d.distance))return this.handleStart()}if(Rm(d)&&Ku(m,d.tolerance))return this.handleCancel();this.handlePending(d,m);return}t.cancelable&&t.preventDefault(),u(f)}handleEnd(){const{onAbort:t,onEnd:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleCancel(){const{onAbort:t,onCancel:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleKeydown(t){t.code===rt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const O1={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class td extends ed{constructor(t){const{event:r}=t,s=ss(r.target);super(t,O1,s)}}td.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:s}=t;return!r.isPrimary||r.button!==0?!1:(s==null||s({event:r}),!0)}}];const z1={move:{name:"mousemove"},end:{name:"mouseup"}};var Sc;(function(e){e[e.RightClick=2]="RightClick"})(Sc||(Sc={}));class F1 extends ed{constructor(t){super(t,z1,ss(t.event.target))}}F1.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:s}=t;return r.button===Sc.RightClick?!1:(s==null||s({event:r}),!0)}}];const qu={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class $1 extends ed{constructor(t){super(t,qu)}static setup(){return window.addEventListener(qu.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(qu.move.name,t)};function t(){}}}$1.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:s}=t;const{touches:o}=r;return o.length>1?!1:(s==null||s({event:r}),!0)}}];var tl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(tl||(tl={}));var Uo;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Uo||(Uo={}));function B1(e){let{acceleration:t,activator:r=tl.Pointer,canScroll:s,draggingRect:o,enabled:a,interval:u=5,order:d=Uo.TreeOrder,pointerCoordinates:f,scrollableAncestors:m,scrollableAncestorRects:v,delta:h,threshold:x}=e;const k=V1({delta:h,disabled:!a}),[w,j]=Jx(),I=C.useRef({x:0,y:0}),b=C.useRef({x:0,y:0}),M=C.useMemo(()=>{switch(r){case tl.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case tl.DraggableRect:return o}},[r,o,f]),E=C.useRef(null),z=C.useCallback(()=>{const L=E.current;if(!L)return;const K=I.current.x*b.current.x,Y=I.current.y*b.current.y;L.scrollBy(K,Y)},[]),V=C.useMemo(()=>d===Uo.TreeOrder?[...m].reverse():m,[d,m]);C.useEffect(()=>{if(!a||!m.length||!M){j();return}for(const L of V){if((s==null?void 0:s(L))===!1)continue;const K=m.indexOf(L),Y=v[K];if(!Y)continue;const{direction:oe,speed:R}=T1(L,Y,M,t,x);for(const H of["x","y"])k[H][oe[H]]||(R[H]=0,oe[H]=0);if(R.x>0||R.y>0){j(),E.current=L,w(z,u),I.current=R,b.current=oe;return}}I.current={x:0,y:0},b.current={x:0,y:0},j()},[t,z,s,j,a,u,JSON.stringify(M),JSON.stringify(k),w,m,V,v,JSON.stringify(x)])}const U1={x:{[Mt.Backward]:!1,[Mt.Forward]:!1},y:{[Mt.Backward]:!1,[Mt.Forward]:!1}};function V1(e){let{delta:t,disabled:r}=e;const s=xc(t);return hl(o=>{if(r||!s||!o)return U1;const a={x:Math.sign(t.x-s.x),y:Math.sign(t.y-s.y)};return{x:{[Mt.Backward]:o.x[Mt.Backward]||a.x===-1,[Mt.Forward]:o.x[Mt.Forward]||a.x===1},y:{[Mt.Backward]:o.y[Mt.Backward]||a.y===-1,[Mt.Forward]:o.y[Mt.Forward]||a.y===1}}},[r,t,s])}function H1(e,t){const r=t!=null?e.get(t):void 0,s=r?r.node.current:null;return hl(o=>{var a;return t==null?null:(a=s??o)!=null?a:null},[s,t])}function W1(e,t){return C.useMemo(()=>e.reduce((r,s)=>{const{sensor:o}=s,a=o.activators.map(u=>({eventName:u.eventName,handler:t(u.handler,s)}));return[...r,...a]},[]),[e,t])}var cl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(cl||(cl={}));var Cc;(function(e){e.Optimized="optimized"})(Cc||(Cc={}));const Am=new Map;function Z1(e,t){let{dragging:r,dependencies:s,config:o}=t;const[a,u]=C.useState(null),{frequency:d,measure:f,strategy:m}=o,v=C.useRef(e),h=I(),x=ul(h),k=C.useCallback(function(b){b===void 0&&(b=[]),!x.current&&u(M=>M===null?b:M.concat(b.filter(E=>!M.includes(E))))},[x]),w=C.useRef(null),j=hl(b=>{if(h&&!r)return Am;if(!b||b===Am||v.current!==e||a!=null){const M=new Map;for(let E of e){if(!E)continue;if(a&&a.length>0&&!a.includes(E.id)&&E.rect.current){M.set(E.id,E.rect.current);continue}const z=E.node.current,V=z?new Jc(f(z),z):null;E.rect.current=V,V&&M.set(E.id,V)}return M}return b},[e,a,r,h,f]);return C.useEffect(()=>{v.current=e},[e]),C.useEffect(()=>{h||k()},[r,h]),C.useEffect(()=>{a&&a.length>0&&u(null)},[JSON.stringify(a)]),C.useEffect(()=>{h||typeof d!="number"||w.current!==null||(w.current=setTimeout(()=>{k(),w.current=null},d))},[d,h,k,...s]),{droppableRects:j,measureDroppableContainers:k,measuringScheduled:a!=null};function I(){switch(m){case cl.Always:return!1;case cl.BeforeDragging:return r;default:return!r}}}function fg(e,t){return hl(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function K1(e,t){return fg(e,t)}function q1(e){let{callback:t,disabled:r}=e;const s=Xc(t),o=C.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(s)},[s,r]);return C.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Xo(e){let{callback:t,disabled:r}=e;const s=Xc(t),o=C.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(s)},[r]);return C.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Q1(e){return new Jc(gl(e),e)}function Pm(e,t,r){t===void 0&&(t=Q1);const[s,o]=C.useState(null);function a(){o(f=>{if(!e)return null;if(e.isConnected===!1){var m;return(m=f??r)!=null?m:null}const v=t(e);return JSON.stringify(f)===JSON.stringify(v)?f:v})}const u=q1({callback(f){if(e)for(const m of f){const{type:v,target:h}=m;if(v==="childList"&&h instanceof HTMLElement&&h.contains(e)){a();break}}}}),d=Xo({callback:a});return ni(()=>{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]),s}function Y1(e){const t=fg(e);return rg(e,t)}const Lm=[];function X1(e){const t=C.useRef(e),r=hl(s=>e?s&&s!==Lm&&e&&t.current&&e.parentNode===t.current.parentNode?s:Gc(e):Lm,[e]);return C.useEffect(()=>{t.current=e},[e]),r}function G1(e){const[t,r]=C.useState(null),s=C.useRef(e),o=C.useCallback(a=>{const u=Zu(a.target);u&&r(d=>d?(d.set(u,bc(u)),new Map(d)):null)},[]);return C.useEffect(()=>{const a=s.current;if(e!==a){u(a);const d=e.map(f=>{const m=Zu(f);return m?(m.addEventListener("scroll",o,{passive:!0}),[m,bc(m)]):null}).filter(f=>f!=null);r(d.length?new Map(d):null),s.current=e}return()=>{u(e),u(a)};function u(d){d.forEach(f=>{const m=Zu(f);m==null||m.removeEventListener("scroll",o)})}},[o,e]),C.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,u)=>Xi(a,u),Jn):ug(e):Jn,[e,t])}function Mm(e,t){t===void 0&&(t=[]);const r=C.useRef(null);return C.useEffect(()=>{r.current=null},t),C.useEffect(()=>{const s=e!==Jn;s&&!r.current&&(r.current=e),!s&&r.current&&(r.current=null)},[e]),r.current?$o(e,r.current):Jn}function J1(e){C.useEffect(()=>{if(!Qo)return;const t=e.map(r=>{let{sensor:s}=r;return s.setup==null?void 0:s.setup()});return()=>{for(const r of t)r==null||r()}},e.map(t=>{let{sensor:r}=t;return r}))}function e_(e,t){return C.useMemo(()=>e.reduce((r,s)=>{let{eventName:o,handler:a}=s;return r[o]=u=>{a(u,t)},r},{}),[e,t])}function pg(e){return C.useMemo(()=>e?S1(e):null,[e])}const Om=[];function t_(e,t){t===void 0&&(t=gl);const[r]=e,s=pg(r?yn(r):null),[o,a]=C.useState(Om);function u(){a(()=>e.length?e.map(f=>og(f)?s:new Jc(t(f),f)):Om)}const d=Xo({callback:u});return ni(()=>{d==null||d.disconnect(),u(),e.forEach(f=>d==null?void 0:d.observe(f))},[e]),o}function n_(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return ml(t)?t:e}function r_(e){let{measure:t}=e;const[r,s]=C.useState(null),o=C.useCallback(m=>{for(const{target:v}of m)if(ml(v)){s(h=>{const x=t(v);return h?{...h,width:x.width,height:x.height}:x});break}},[t]),a=Xo({callback:o}),u=C.useCallback(m=>{const v=n_(m);a==null||a.disconnect(),v&&(a==null||a.observe(v)),s(v?t(v):null)},[t,a]),[d,f]=Fo(u);return C.useMemo(()=>({nodeRef:d,rect:r,setRef:f}),[r,d,f])}const i_=[{sensor:td,options:{}},{sensor:dg,options:{}}],s_={current:{}},Do={draggable:{measure:jm},droppable:{measure:jm,strategy:cl.WhileDragging,frequency:Cc.Optimized},dragOverlay:{measure:gl}};class nl extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,s;return(r=(s=this.get(t))==null?void 0:s.node.current)!=null?r:void 0}}const l_={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new nl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Bo},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Do,measureDroppableContainers:Bo,windowRect:null,measuringScheduled:!1},o_={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Bo,draggableNodes:new Map,over:null,measureDroppableContainers:Bo},Go=C.createContext(o_),a_=C.createContext(l_);function u_(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new nl}}}function c_(e,t){switch(t.type){case Dt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Dt.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Dt.DragEnd:case Dt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Dt.RegisterDroppable:{const{element:r}=t,{id:s}=r,o=new nl(e.droppable.containers);return o.set(s,r),{...e,droppable:{...e.droppable,containers:o}}}case Dt.SetDroppableDisabled:{const{id:r,key:s,disabled:o}=t,a=e.droppable.containers.get(r);if(!a||s!==a.key)return e;const u=new nl(e.droppable.containers);return u.set(r,{...a,disabled:o}),{...e,droppable:{...e.droppable,containers:u}}}case Dt.UnregisterDroppable:{const{id:r,key:s}=t,o=e.droppable.containers.get(r);if(!o||s!==o.key)return e;const a=new nl(e.droppable.containers);return a.delete(r),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function d_(e){let{disabled:t}=e;const{active:r,activatorEvent:s,draggableNodes:o}=C.useContext(Go),a=xc(s),u=xc(r==null?void 0:r.id);return C.useEffect(()=>{if(!t&&!s&&a&&u!=null){if(!tg(a)||document.activeElement===a.target)return;const d=o.get(u);if(!d)return;const{activatorNode:f,node:m}=d;if(!f.current&&!m.current)return;requestAnimationFrame(()=>{for(const v of[f.current,m.current]){if(!v)continue;const h=n1(v);if(h){h.focus();break}}})}},[s,t,o,u,a]),null}function f_(e,t){let{transform:r,...s}=t;return e!=null&&e.length?e.reduce((o,a)=>a({transform:o,...s}),r):r}function p_(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 m_(e){let{activeNode:t,measure:r,initialRect:s,config:o=!0}=e;const a=C.useRef(!1),{x:u,y:d}=typeof o=="boolean"?{x:o,y:o}:o;ni(()=>{if(!u&&!d||!t){a.current=!1;return}if(a.current||!s)return;const m=t==null?void 0:t.node.current;if(!m||m.isConnected===!1)return;const v=r(m),h=rg(v,s);if(u||(h.x=0),d||(h.y=0),a.current=!0,Math.abs(h.x)>0||Math.abs(h.y)>0){const x=ig(m);x&&x.scrollBy({top:h.y,left:h.x})}},[t,u,d,s,r])}const mg=C.createContext({...Jn,scaleX:1,scaleY:1});var Xr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Xr||(Xr={}));const h_=C.memo(function(t){var r,s,o,a;let{id:u,accessibility:d,autoScroll:f=!0,children:m,sensors:v=i_,collisionDetection:h=y1,measuring:x,modifiers:k,...w}=t;const j=C.useReducer(c_,void 0,u_),[I,b]=j,[M,E]=a1(),[z,V]=C.useState(Xr.Uninitialized),L=z===Xr.Initialized,{draggable:{active:K,nodes:Y,translate:oe},droppable:{containers:R}}=I,H=K!=null?Y.get(K):null,B=C.useRef({initial:null,translated:null}),ae=C.useMemo(()=>{var dt;return K!=null?{id:K,data:(dt=H==null?void 0:H.data)!=null?dt:s_,rect:B}:null},[K,H]),le=C.useRef(null),[O,G]=C.useState(null),[ue,J]=C.useState(null),fe=ul(w,Object.values(w)),S=Yo("DndDescribedBy",u),A=C.useMemo(()=>R.getEnabled(),[R]),W=p_(x),{droppableRects:N,measureDroppableContainers:xe,measuringScheduled:Te}=Z1(A,{dragging:L,dependencies:[oe.x,oe.y],config:W.droppable}),ye=H1(Y,K),$e=C.useMemo(()=>ue?_c(ue):null,[ue]),Ne=Nr(),ee=K1(ye,W.draggable.measure);m_({activeNode:K!=null?Y.get(K):null,config:Ne.layoutShiftCompensation,initialRect:ee,measure:W.draggable.measure});const ce=Pm(ye,W.draggable.measure,ee),Ae=Pm(ye?ye.parentElement:null),We=C.useRef({activatorEvent:null,active:null,activeNode:ye,collisionRect:null,collisions:null,droppableRects:N,draggableNodes:Y,draggingNode:null,draggingNodeRect:null,droppableContainers:R,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ve=R.getNodeFor((r=We.current.over)==null?void 0:r.id),st=r_({measure:W.dragOverlay.measure}),kn=(s=st.nodeRef.current)!=null?s:ye,nn=L?(o=st.rect)!=null?o:ce:null,Bt=!!(st.nodeRef.current&&st.rect),fr=Y1(Bt?null:ce),Rt=pg(kn?yn(kn):null),gt=X1(L?Ve??ye:null),Ut=t_(gt),Tn=f_(k,{transform:{x:oe.x-fr.x,y:oe.y-fr.y,scaleX:1,scaleY:1},activatorEvent:ue,active:ae,activeNodeRect:ce,containerNodeRect:Ae,draggingNodeRect:nn,over:We.current.over,overlayNodeRect:st.rect,scrollableAncestors:gt,scrollableAncestorRects:Ut,windowRect:Rt}),pr=$e?Xi($e,oe):null,er=G1(gt),Er=Mm(er),Z=Mm(er,[ce]),ne=Xi(Tn,Er),Ce=nn?x1(nn,Tn):null,Pe=ae&&Ce?h({active:ae,collisionRect:Ce,droppableRects:N,droppableContainers:A,pointerCoordinates:pr}):null,q=h1(Pe,"id"),[me,xt]=C.useState(null),Vt=Bt?Tn:Xi(Tn,Z),tr=v1(Vt,(a=me==null?void 0:me.rect)!=null?a:null,ce),Bn=C.useRef(null),St=C.useCallback((dt,Wt)=>{let{sensor:Zt,options:Un}=Wt;if(le.current==null)return;const rn=Y.get(le.current);if(!rn)return;const Kt=dt.nativeEvent,un=new Zt({active:le.current,activeNode:rn,event:Kt,options:Un,context:We,onAbort(ft){if(!Y.get(ft))return;const{onDragAbort:qt}=fe.current,Vn={id:ft};qt==null||qt(Vn),M({type:"onDragAbort",event:Vn})},onPending(ft,In,qt,Vn){if(!Y.get(ft))return;const{onDragPending:nr}=fe.current,xn={id:ft,constraint:In,initialCoordinates:qt,offset:Vn};nr==null||nr(xn),M({type:"onDragPending",event:xn})},onStart(ft){const In=le.current;if(In==null)return;const qt=Y.get(In);if(!qt)return;const{onDragStart:Vn}=fe.current,Hn={activatorEvent:Kt,active:{id:In,data:qt.data,rect:B}};Js.unstable_batchedUpdates(()=>{Vn==null||Vn(Hn),V(Xr.Initializing),b({type:Dt.DragStart,initialCoordinates:ft,active:In}),M({type:"onDragStart",event:Hn}),G(Bn.current),J(Kt)})},onMove(ft){b({type:Dt.DragMove,coordinates:ft})},onEnd:mr(Dt.DragEnd),onCancel:mr(Dt.DragCancel)});Bn.current=un;function mr(ft){return async function(){const{active:qt,collisions:Vn,over:Hn,scrollAdjustedTranslate:nr}=We.current;let xn=null;if(qt&&nr){const{cancelDrop:hr}=fe.current;xn={activatorEvent:Kt,active:qt,collisions:Vn,delta:nr,over:Hn},ft===Dt.DragEnd&&typeof hr=="function"&&await Promise.resolve(hr(xn))&&(ft=Dt.DragCancel)}le.current=null,Js.unstable_batchedUpdates(()=>{b({type:ft}),V(Xr.Uninitialized),xt(null),G(null),J(null),Bn.current=null;const hr=ft===Dt.DragEnd?"onDragEnd":"onDragCancel";if(xn){const cs=fe.current[hr];cs==null||cs(xn),M({type:hr,event:xn})}})}}},[Y]),jn=C.useCallback((dt,Wt)=>(Zt,Un)=>{const rn=Zt.nativeEvent,Kt=Y.get(Un);if(le.current!==null||!Kt||rn.dndKit||rn.defaultPrevented)return;const un={active:Kt};dt(Zt,Wt.options,un)===!0&&(rn.dndKit={capturedBy:Wt.sensor},le.current=Un,St(Zt,Wt))},[Y,St]),Ht=W1(v,jn);J1(v),ni(()=>{ce&&z===Xr.Initializing&&V(Xr.Initialized)},[ce,z]),C.useEffect(()=>{const{onDragMove:dt}=fe.current,{active:Wt,activatorEvent:Zt,collisions:Un,over:rn}=We.current;if(!Wt||!Zt)return;const Kt={active:Wt,activatorEvent:Zt,collisions:Un,delta:{x:ne.x,y:ne.y},over:rn};Js.unstable_batchedUpdates(()=>{dt==null||dt(Kt),M({type:"onDragMove",event:Kt})})},[ne.x,ne.y]),C.useEffect(()=>{const{active:dt,activatorEvent:Wt,collisions:Zt,droppableContainers:Un,scrollAdjustedTranslate:rn}=We.current;if(!dt||le.current==null||!Wt||!rn)return;const{onDragOver:Kt}=fe.current,un=Un.get(q),mr=un&&un.rect.current?{id:un.id,rect:un.rect.current,data:un.data,disabled:un.disabled}:null,ft={active:dt,activatorEvent:Wt,collisions:Zt,delta:{x:rn.x,y:rn.y},over:mr};Js.unstable_batchedUpdates(()=>{xt(mr),Kt==null||Kt(ft),M({type:"onDragOver",event:ft})})},[q]),ni(()=>{We.current={activatorEvent:ue,active:ae,activeNode:ye,collisionRect:Ce,collisions:Pe,droppableRects:N,draggableNodes:Y,draggingNode:kn,draggingNodeRect:nn,droppableContainers:R,over:me,scrollableAncestors:gt,scrollAdjustedTranslate:ne},B.current={initial:nn,translated:Ce}},[ae,ye,Pe,Ce,Y,kn,nn,N,R,me,gt,ne]),B1({...Ne,delta:oe,draggingRect:Ce,pointerCoordinates:pr,scrollableAncestors:gt,scrollableAncestorRects:Ut});const as=C.useMemo(()=>({active:ae,activeNode:ye,activeNodeRect:ce,activatorEvent:ue,collisions:Pe,containerNodeRect:Ae,dragOverlay:st,draggableNodes:Y,droppableContainers:R,droppableRects:N,over:me,measureDroppableContainers:xe,scrollableAncestors:gt,scrollableAncestorRects:Ut,measuringConfiguration:W,measuringScheduled:Te,windowRect:Rt}),[ae,ye,ce,ue,Pe,Ae,st,Y,R,N,me,xe,gt,Ut,W,Te,Rt]),us=C.useMemo(()=>({activatorEvent:ue,activators:Ht,active:ae,activeNodeRect:ce,ariaDescribedById:{draggable:S},dispatch:b,draggableNodes:Y,over:me,measureDroppableContainers:xe}),[ue,Ht,ae,ce,b,S,Y,me,xe]);return zn.createElement(ng.Provider,{value:E},zn.createElement(Go.Provider,{value:us},zn.createElement(a_.Provider,{value:as},zn.createElement(mg.Provider,{value:tr},m)),zn.createElement(d_,{disabled:(d==null?void 0:d.restoreFocus)===!1})),zn.createElement(d1,{...d,hiddenTextDescribedById:S}));function Nr(){const dt=(O==null?void 0:O.autoScrollEnabled)===!1,Wt=typeof f=="object"?f.enabled===!1:f===!1,Zt=L&&!dt&&!Wt;return typeof f=="object"?{...f,enabled:Zt}:{enabled:Zt}}}),g_=C.createContext(null),zm="button",y_="Draggable";function v_(e){let{id:t,data:r,disabled:s=!1,attributes:o}=e;const a=Yo(y_),{activators:u,activatorEvent:d,active:f,activeNodeRect:m,ariaDescribedById:v,draggableNodes:h,over:x}=C.useContext(Go),{role:k=zm,roleDescription:w="draggable",tabIndex:j=0}=o??{},I=(f==null?void 0:f.id)===t,b=C.useContext(I?mg:g_),[M,E]=Fo(),[z,V]=Fo(),L=e_(u,t),K=ul(r);ni(()=>(h.set(t,{id:t,key:a,node:M,activatorNode:z,data:K}),()=>{const oe=h.get(t);oe&&oe.key===a&&h.delete(t)}),[h,t]);const Y=C.useMemo(()=>({role:k,tabIndex:j,"aria-disabled":s,"aria-pressed":I&&k===zm?!0:void 0,"aria-roledescription":w,"aria-describedby":v.draggable}),[s,k,j,I,w,v.draggable]);return{active:f,activatorEvent:d,activeNodeRect:m,attributes:Y,isDragging:I,listeners:s?void 0:L,node:M,over:x,setNodeRef:E,setActivatorNodeRef:V,transform:b}}const k_="Droppable",x_={timeout:25};function __(e){let{data:t,disabled:r=!1,id:s,resizeObserverConfig:o}=e;const a=Yo(k_),{active:u,dispatch:d,over:f,measureDroppableContainers:m}=C.useContext(Go),v=C.useRef({disabled:r}),h=C.useRef(!1),x=C.useRef(null),k=C.useRef(null),{disabled:w,updateMeasurementsFor:j,timeout:I}={...x_,...o},b=ul(j??s),M=C.useCallback(()=>{if(!h.current){h.current=!0;return}k.current!=null&&clearTimeout(k.current),k.current=setTimeout(()=>{m(Array.isArray(b.current)?b.current:[b.current]),k.current=null},I)},[I]),E=Xo({callback:M,disabled:w||!u}),z=C.useCallback((Y,oe)=>{E&&(oe&&(E.unobserve(oe),h.current=!1),Y&&E.observe(Y))},[E]),[V,L]=Fo(z),K=ul(t);return C.useEffect(()=>{!E||!V.current||(E.disconnect(),h.current=!1,E.observe(V.current))},[V,E]),C.useEffect(()=>(d({type:Dt.RegisterDroppable,element:{id:s,key:a,disabled:r,node:V,rect:x,data:K}}),()=>d({type:Dt.UnregisterDroppable,key:a,id:s})),[s]),C.useEffect(()=>{r!==v.current.disabled&&(d({type:Dt.SetDroppableDisabled,id:s,key:a,disabled:r}),v.current.disabled=r)},[s,a,r,d]),{active:u,rect:x,isOver:(f==null?void 0:f.id)===s,node:V,over:f,setNodeRef:L}}function hg(e,t,r){const s=t.query.trim().toLowerCase();return e.filter(o=>{const a=o.frontmatter;if(t.label!==""&&!a.labels.includes(t.label)||t.assignee!==""&&a.assignee!==t.assignee)return!1;if(s==="")return!0;const u=a.assignee!==null?[a.assignee,(r==null?void 0:r(a.assignee))??""]:[""];return[a.id,a.title,...u,...a.labels].join(" ").toLowerCase().includes(s)})}function w_(e){const t=new Set;for(const r of e)for(const s of r.frontmatter.labels)t.add(s);return[...t].sort((r,s)=>r.localeCompare(s))}function Jo(e){const t=new Map(e.map(r=>[r.id,r.label??r.id]));return r=>t.get(r)??r}const b_='[role="button"], button, input, select, textarea, a',S_=5;function C_(e,t){return Math.abs(t-e)>=S_}function E_(e){if(e===null)return!0;const t=e;return typeof t.closest!="function"?!0:t.closest(b_)!==null}function N_(e,t,r){return e-(r-t)}function T_(e,t,r){const s=e.getBoundingClientRect();return t>s.left+e.clientWidth||r>s.top+e.clientHeight}function j_(){const e=C.useRef(null),t=C.useRef(null),r=C.useCallback(a=>{const u=e.current,d=t.current;if(!(u===null||d===null||d.pointerId!==a.pointerId)&&(t.current=null,!!d.active)){try{u.releasePointerCapture(a.pointerId)}catch{}u.style.cursor="",u.style.userSelect=""}},[]),s=C.useCallback(a=>{const u=e.current;u!==null&&(a.pointerType!=="mouse"||a.button!==0||E_(a.target)||a.target instanceof Element&&T_(a.target,a.clientX,a.clientY)||(t.current={pointerId:a.pointerId,startX:a.clientX,startScrollLeft:u.scrollLeft,active:!1}))},[]),o=C.useCallback(a=>{const u=e.current,d=t.current;if(!(u===null||d===null||d.pointerId!==a.pointerId)){if(!d.active){if(!C_(d.startX,a.clientX))return;d.active=!0,d.startX=a.clientX,d.startScrollLeft=u.scrollLeft;try{u.setPointerCapture(a.pointerId)}catch{}u.style.cursor="grabbing",u.style.userSelect="none";return}u.scrollLeft=N_(d.startScrollLeft,d.startX,a.clientX)}},[]);return{ref:e,handlers:{onPointerDown:s,onPointerMove:o,onPointerUp:r,onPointerCancel:r}}}function I_(e=3e4){const[t,r]=C.useState(()=>Date.now());return C.useEffect(()=>{const s=setInterval(()=>r(Date.now()),e);return()=>clearInterval(s)},[e]),t}const D_=[{value:"decision",labelKey:"blocked.decision.option"},{value:"external",labelKey:"blocked.external.option"},{value:"dependency",labelKey:"blocked.dependency.option"}];function R_({taskTitle:e,onCancel:t,onConfirm:r}){const{t:s}=bt(),[o,a]=C.useState("decision"),[u,d]=C.useState(""),f=u.trim(),m=f.length>0;return y.jsxs(pl,{title:s("blockedDialog.title"),onClose:t,children:[y.jsx("p",{className:pe.label,style:{marginBottom:12},children:s("blockedDialog.intro",{title:e})}),y.jsxs("div",{className:pe.field,children:[y.jsx("label",{className:pe.label,htmlFor:"blocked-type",children:s("blockedDialog.type")}),y.jsx("select",{id:"blocked-type",className:pe.select,value:o,onChange:v=>a(v.target.value),children:D_.map(v=>y.jsx("option",{value:v.value,children:s(v.labelKey)},v.value))})]}),y.jsxs("div",{className:pe.field,children:[y.jsx("label",{className:pe.label,htmlFor:"blocked-reason",children:s("blockedDialog.reason")}),y.jsx("input",{id:"blocked-reason",className:pe.input,value:u,onChange:v=>d(v.target.value.replace(/[\r\n]/g,"")),placeholder:s("blockedDialog.reason.placeholder"),autoFocus:!0})]}),y.jsxs("div",{className:pe.actions,children:[y.jsx("button",{type:"button",className:pe.btn,onClick:t,children:s("common.cancel")}),y.jsx("button",{type:"button",className:`${pe.btn} ${pe.btnPrimary}`,disabled:!m,onClick:()=>r(o,f),children:s("blockedDialog.confirm")})]})]})}const Vo={proposed:"status.proposed",backlog:"status.backlog",todo:"status.todo",in_progress:"status.in_progress",pending:"status.pending",done:"status.done"};function gg(e,t){if(t.label!==void 0)return t.label;const r=Vo[t.id];return r!==void 0?e(r):t.id}function nd(e,t){const r=new Map(t.map(s=>[s.id,gg(e,s)]));return s=>r.get(s)??e(Vo[s])}function A_(e,t=Date.now()){const r=Date.parse(e);if(Number.isNaN(r))return null;const s=Math.max(0,Math.floor((t-r)/1e3));if(s<60)return{unit:"justNow"};const o=Math.floor(s/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 P_=/^-\s*(\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2})\s+\[([^\]]+)\]\s*(.*)$/,L_=/^#{1,6}\s*(?:作業ログ|work log)\s*$/i,M_=/^#{1,6}\s*(?:やりとり|comments?|discussion)\s*$/i;function yg(e,t){const r=e.split(`
45
- `),s=r.findIndex(a=>t.test(a.trim()));if(s===-1)return[];const o=[];for(let a=s+1;a<r.length;a++){const u=r[a];if(/^#{1,6}\s/.test(u))break;if(u.trim()==="")continue;const d=u.match(P_);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 vg(e){return yg(e,L_)}function O_(e){return yg(e,M_)}const z_=/^\s*[-*]\s+\[([ xX])\]\s/;function F_(e){let t=0,r=0;for(const s of e.split(`
46
- `)){const o=s.match(z_);o&&(r+=1,o[1]!==" "&&(t+=1))}return{done:t,total:r}}const $_="_wrap_g8rj0_1",B_="_track_g8rj0_7",U_="_fill_g8rj0_15",V_="_fillComplete_g8rj0_22",H_="_label_g8rj0_26",Zs={wrap:$_,track:B_,fill:U_,fillComplete:V_,label:H_};function kg({done:e,total:t}){const r=t>0?Math.round(e/t*100):0,s=t>0&&e>=t;return y.jsxs("div",{className:Zs.wrap,children:[y.jsx("div",{className:Zs.track,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":t,children:y.jsx("div",{className:`${Zs.fill} ${s?Zs.fillComplete:""}`,style:{width:`${r}%`}})}),y.jsx("span",{className:Zs.label,children:t>0?`${e}/${t}`:"—"})]})}const W_="_card_gvp55_1",Z_="_dragging_gvp55_18",K_="_inProgress_gvp55_22",q_="_topRow_gvp55_26",Q_="_id_gvp55_33",Y_="_priority_gvp55_40",X_="_priorityhigh_gvp55_49",G_="_prioritymedium_gvp55_53",J_="_prioritylow_gvp55_57",ew="_title_gvp55_61",tw="_metaRow_gvp55_66",nw="_assignee_gvp55_73",rw="_memberDot_gvp55_81",iw="_memberhuman_gvp55_88",sw="_memberai_gvp55_92",lw="_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",mw="_blockedexternal_gvp55_146",hw="_blockeddependency_gvp55_150",gw="_blockedReason_gvp55_154",yw="_proposalActions_gvp55_160",vw="_actionBtn_gvp55_169",kw="_approveBtn_gvp55_178",xw="_rejectBtn_gvp55_184",Xe={card:W_,dragging:Z_,inProgress:K_,topRow:q_,id:Q_,priority:Y_,priorityhigh:X_,prioritymedium:G_,prioritylow:J_,title:ew,metaRow:tw,assignee:nw,memberDot:rw,memberhuman:iw,memberai:sw,memberunknown:lw,labels:ow,label:aw,elapsed:uw,elapsedStrong:cw,blocked:dw,blockedBadge:fw,blockeddecision:pw,blockedexternal:mw,blockeddependency:hw,blockedReason:gw,proposalActions:yw,actionBtn:vw,approveBtn:kw,rejectBtn:xw},_w={decision:"blocked.decision",external:"blocked.external",dependency:"blocked.dependency"};function ww({task:e,memberType:t,memberLabel:r,now:s,onOpen:o,onApprove:a,onReject:u,onArchive:d}){const{t:f}=bt(),{id:m,title:v,status:h,priority:x,labels:k,assignee:w,blocked_type:j,blocked_reason:I,updated:b}=e.frontmatter,{attributes:M,listeners:E,setNodeRef:z,transform:V,isDragging:L}=v_({id:m,data:{status:h}}),K=w?t(w):void 0,Y=K==="human"?Xe.memberhuman:K==="ai"?Xe.memberai:Xe.memberunknown,oe=A_(b,s),R=F_(e.body);return y.jsxs("div",{ref:z,className:`${Xe.card} ${L?Xe.dragging:""} ${h==="in_progress"?Xe.inProgress:""}`,style:{transform:wc.Translate.toString(V)},...E,...M,role:"button",tabIndex:0,onClick:()=>o(e),onKeyDown:H=>{(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),o(e))},"aria-label":`${m} ${v}`,children:[y.jsxs("div",{className:Xe.topRow,children:[y.jsx("span",{className:Xe.id,children:m}),y.jsx("span",{className:`${Xe.priority} ${Xe[`priority${x}`]}`,children:x})]}),y.jsx("div",{className:Xe.title,children:v}),k.length>0&&y.jsx("div",{className:Xe.labels,children:k.map(H=>y.jsx("span",{className:Xe.label,children:H},H))}),R.total>0&&y.jsx(kg,{done:R.done,total:R.total}),y.jsxs("div",{className:Xe.metaRow,children:[w?y.jsxs("span",{className:Xe.assignee,title:K?f("card.memberType",{type:f(K==="human"?"member.human":"member.ai")}):f("card.unregisteredMember"),children:[y.jsx("span",{className:`${Xe.memberDot} ${Y}`,"aria-hidden":"true"}),r(w)]}):y.jsx("span",{className:Xe.assignee,children:f("card.unassigned")}),oe&&y.jsx("span",{className:`${Xe.elapsed} ${h==="in_progress"?Xe.elapsedStrong:""}`,children:f("card.lastUpdated",{elapsed:Mx(f,oe)})})]}),h==="pending"&&(j||I)&&y.jsxs("div",{className:Xe.blocked,children:[j&&y.jsx("span",{className:`${Xe.blockedBadge} ${Xe[`blocked${j}`]}`,children:f(_w[j])}),I&&y.jsx("span",{className:Xe.blockedReason,children:I})]}),h==="proposed"&&(a||u)&&y.jsxs("div",{className:Xe.proposalActions,onPointerDown:H=>H.stopPropagation(),onClick:H=>H.stopPropagation(),children:[u&&y.jsx("button",{type:"button",className:`${Xe.actionBtn} ${Xe.rejectBtn}`,onClick:()=>u(e),children:f("proposal.reject")}),a&&y.jsx("button",{type:"button",className:`${Xe.actionBtn} ${Xe.approveBtn}`,onClick:()=>a(e),children:f("proposal.approve")})]}),h==="done"&&d&&y.jsx("div",{className:Xe.proposalActions,onPointerDown:H=>H.stopPropagation(),onClick:H=>H.stopPropagation(),children:y.jsx("button",{type:"button",className:Xe.actionBtn,onClick:()=>d(e),children:f("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",ar={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:t,memberType:r,memberLabel:s,now:o,onOpen:a,onApprove:u,onReject:d,onArchive:f}){const{t:m}=bt(),{setNodeRef:v,isOver:h}=__({id:e.id}),x=e.wipLimit!==void 0&&t.length>e.wipLimit,k=gg(m,e);return y.jsxs("section",{className:`${ar.column} ${x?ar.columnOver:""}`,"aria-label":k,children:[y.jsxs("header",{className:`${ar.header} ${x?ar.headerOver:""}`,children:[y.jsx("span",{className:ar.label,children:k}),y.jsx("span",{className:`${ar.count} ${x?ar.countOver:""}`,title:e.wipLimit!==void 0?x?m("column.wipExceeded",{limit:e.wipLimit}):m("column.wipLimit",{limit:e.wipLimit}):void 0,children:e.wipLimit!==void 0?`${t.length} / ${e.wipLimit}`:t.length})]}),y.jsx("div",{ref:v,className:`${ar.list} ${h?ar.over:""}`,children:t.length===0?y.jsx("div",{className:ar.empty,children:m("column.empty")}):t.map(w=>y.jsx(ww,{task:w,memberType:r,memberLabel:s,now:o,onOpen:a,onApprove:u,onReject:d,onArchive:f},w.frontmatter.id))})]})}function Pw({taskTitle:e,onCancel:t,onConfirm:r}){const{t:s}=bt(),[o,a]=C.useState(""),u=o.trim();return y.jsxs(pl,{title:s("proposal.reject"),onClose:t,children:[y.jsx("p",{className:pe.label,style:{marginBottom:12},children:e}),y.jsxs("div",{className:pe.field,children:[y.jsx("label",{className:pe.label,htmlFor:"reject-reason",children:s("proposal.reject.prompt")}),y.jsx("input",{id:"reject-reason",className:pe.input,value:o,onChange:d=>a(d.target.value.replace(/[\r\n]/g,"")),autoFocus:!0})]}),y.jsxs("div",{className:pe.actions,children:[y.jsx("button",{type:"button",className:pe.btn,onClick:t,children:s("common.cancel")}),y.jsx("button",{type:"button",className:`${pe.btn} ${pe.btnDanger}`,disabled:u.length===0,onClick:()=>r(u),children:s("proposal.reject")})]})]})}const Lw="_filterBar_ima6a_1",Mw="_search_ima6a_10",Ow="_filterSpacer_ima6a_24",zw="_archiveAllBtn_ima6a_28",Fw="_board_ima6a_39",Ks={filterBar:Lw,search:Mw,filterSpacer:Ow,archiveAllBtn:zw,board:Fw};function $w({board:e,onOpen:t,onChanged:r,onError:s}){const{t:o}=bt(),a=I_(),[u,d]=C.useState(null),[f,m]=C.useState(null),[v,h]=C.useState(""),[x,k]=C.useState(""),[w,j]=C.useState(""),I=p1(f1(td,{activationConstraint:{distance:5}})),b=j_(),M=C.useMemo(()=>{const O=new Map(e.config.members.map(G=>[G.id,G.type]));return G=>O.get(G)},[e.config.members]),E=C.useMemo(()=>Jo(e.config.members),[e.config.members]);C.useEffect(()=>{w!==""&&!e.config.members.some(O=>O.id===w)&&j("")},[e.config.members,w]);const z=C.useMemo(()=>w_(e.tasks),[e.tasks]),V=C.useMemo(()=>hg(e.tasks,{query:v,label:x,assignee:w},E),[e.tasks,v,x,w,E]),L=C.useMemo(()=>{const O=new Map;for(const G of V){const ue=O.get(G.frontmatter.status)??[];ue.push(G),O.set(G.frontmatter.status,ue)}return O},[V]),K=C.useMemo(()=>e.tasks.filter(O=>O.frontmatter.status==="done"),[e.tasks]),Y=e.config.columns.filter(O=>{var ue;const G=((ue=L.get(O.id))==null?void 0:ue.length)??0;return!(O.hideWhenEmpty&&G===0)}),oe=async(O,G,ue)=>{try{await Ak({id:O,status:G,...ue}),r()}catch(J){s(J instanceof Error?J.message:o("move.error"))}},R=async O=>{try{await Pk(O.frontmatter.id),r()}catch(G){s(G instanceof Error?G.message:o("proposal.approve.error"))}},H=async(O,G)=>{try{await Lk(O,G),r()}catch(ue){s(ue instanceof Error?ue.message:o("proposal.reject.error"))}},B=async O=>{try{await um(O.frontmatter.id),r()}catch(G){s(G instanceof Error?G.message:o("archive.error"))}},ae=async()=>{if(K.length!==0&&!(typeof window<"u"&&!window.confirm(o("archive.confirm",{n:K.length})))){for(const O of K)try{await um(O.frontmatter.id)}catch(G){s(G instanceof Error?G.message:o("archive.error"));break}r()}},le=O=>{var A;const{active:G,over:ue}=O;if(!ue)return;const J=ue.id,fe=(A=G.data.current)==null?void 0:A.status;if(J===fe)return;const S=e.tasks.find(W=>W.frontmatter.id===G.id);if(S){if(J==="pending"){d({task:S});return}oe(String(G.id),J)}};return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:Ks.filterBar,children:[y.jsx("input",{className:Ks.search,value:v,onChange:O=>h(O.target.value),placeholder:o("search.placeholder"),"aria-label":o("search.placeholder")}),y.jsxs("select",{value:x,onChange:O=>k(O.target.value),"aria-label":o("search.label"),children:[y.jsxs("option",{value:"",children:[o("search.label"),": ",o("search.all")]}),z.map(O=>y.jsx("option",{value:O,children:O},O))]}),y.jsxs("select",{value:w,onChange:O=>j(O.target.value),"aria-label":o("search.assignee"),children:[y.jsxs("option",{value:"",children:[o("search.assignee"),": ",o("search.all")]}),e.config.members.map(O=>y.jsx("option",{value:O.id,children:O.label??O.id},O.id))]}),y.jsx("span",{className:Ks.filterSpacer}),K.length>0&&y.jsx("button",{type:"button",className:Ks.archiveAllBtn,onClick:()=>void ae(),children:o("archive.archiveDone")})]}),y.jsx(h_,{sensors:I,onDragEnd:le,children:y.jsx("div",{className:Ks.board,ref:b.ref,...b.handlers,children:Y.map(O=>y.jsx(Aw,{column:O,tasks:L.get(O.id)??[],memberType:M,memberLabel:E,now:a,onOpen:t,onApprove:G=>void R(G),onReject:G=>m(G),onArchive:G=>void B(G)},O.id))})}),u&&y.jsx(R_,{taskTitle:u.task.frontmatter.title,onCancel:()=>d(null),onConfirm:(O,G)=>{const ue=u.task.frontmatter.id;d(null),oe(ue,"pending",{blocked_type:O,blocked_reason:G})}}),f&&y.jsx(Pw,{taskTitle:f.frontmatter.title,onCancel:()=>m(null),onConfirm:O=>{const G=f.frontmatter.id;m(null),H(G,O)}})]})}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:t,onSelectView:r,onOpenAdd:s,onOpenSettings:o,onOpenTask:a}){const{t:u}=bt(),[d,f]=C.useState(""),[m,v]=C.useState(0),h=C.useRef(null),x=C.useRef(null);C.useEffect(()=>{var M;const b=document.activeElement;return(M=h.current)==null||M.focus(),()=>{var E;return(E=b==null?void 0:b.focus)==null?void 0:E.call(b)}},[]);const k=C.useMemo(()=>{const b=d.trim().toLowerCase(),M=V=>b===""||V.toLowerCase().includes(b),E=[...qw.filter(V=>V.view!=="docs"||e.config.docsDirs.length>0).map(V=>({id:`view:${V.view}`,kind:"view",label:`${u("palette.go")}: ${u(V.labelKey)}`,view:V.view})),{id:"action:add",kind:"add",label:u("palette.addTask")},{id:"action:settings",kind:"settings",label:u("palette.settings")}].filter(V=>M(V.label)),z=b===""?[]:hg(e.tasks,{query:d,label:"",assignee:""}).slice(0,Qw).map(V=>({id:`task:${V.frontmatter.id}`,kind:"task",label:`${V.frontmatter.id} — ${V.frontmatter.title}`,taskId:V.frontmatter.id}));return[...E,...z]},[d,e.tasks,e.config.docsDirs,u]);C.useEffect(()=>{v(0)},[d]),C.useEffect(()=>{var M;const b=(M=x.current)==null?void 0:M.querySelector(`[data-idx="${m}"]`);b==null||b.scrollIntoView({block:"nearest"})},[m]);const w=b=>{if(b){switch(b.kind){case"view":r(b.view);break;case"add":s();break;case"settings":o();break;case"task":a(b.taskId);break}t()}},j=b=>{b.nativeEvent.isComposing||(b.key==="Escape"?(b.preventDefault(),b.stopPropagation(),t()):b.key==="ArrowDown"?(b.preventDefault(),b.stopPropagation(),v(M=>k.length===0?0:(M+1)%k.length)):b.key==="ArrowUp"?(b.preventDefault(),b.stopPropagation(),v(M=>k.length===0?0:(M-1+k.length)%k.length)):b.key==="Enter"&&(b.preventDefault(),b.stopPropagation(),w(k[m])))},I=k[m]?`cmd-opt-${k[m].id}`:void 0;return y.jsx("div",{className:yi.overlay,onClick:b=>{qc(b.target,b.currentTarget)&&(b.stopPropagation(),t())},children:y.jsxs("div",{className:yi.palette,role:"dialog","aria-modal":"true","aria-label":u("palette.title"),children:[y.jsx("input",{ref:h,className:yi.input,type:"text",role:"combobox","aria-expanded":k.length>0?"true":"false","aria-controls":"cmd-listbox","aria-activedescendant":I,"aria-label":u("palette.title"),placeholder:u("palette.placeholder"),value:d,onChange:b=>f(b.target.value),onKeyDown:j}),k.length===0?y.jsx("p",{className:yi.empty,children:u("palette.empty")}):y.jsx("ul",{id:"cmd-listbox",className:yi.list,role:"listbox","aria-label":u("palette.title"),ref:x,children:k.map((b,M)=>y.jsx("li",{id:`cmd-opt-${b.id}`,"data-idx":M,role:"option","aria-selected":M===m,className:`${yi.option} ${M===m?yi.optionActive:""}`,onMouseDown:E=>{E.preventDefault(),w(b)},onMouseEnter:()=>v(M),children:b.label},b.id))})]})})}function Xw(e){const t=new Set(e.map(E=>E.id)),r=new Map;for(const E of e)r.set(E.id,E.dependsOn.filter(z=>t.has(z)&&z!==E.id));const s=0,o=1,a=2,u=new Map,d=new Set;for(const E of t)u.set(E,s);const f=[],m=new Set,v=E=>{u.set(E,o),f.push(E),m.add(E);for(const z of r.get(E)??[])if(u.get(z)===o){const V=f.indexOf(z);for(let L=V;L<f.length;L++)d.add(f[L])}else u.get(z)===s&&v(z);u.set(E,a),f.pop(),m.delete(E)};for(const E of t)u.get(E)===s&&v(E);const h=new Map,x=new Set,k=E=>{if(d.has(E))return null;if(h.has(E))return h.get(E)??null;if(x.has(E))return null;x.add(E);let z=-1;for(const L of r.get(E)??[]){const K=k(L);if(K===null)return x.delete(E),h.set(E,null),null;K>z&&(z=K)}x.delete(E);const V=z+1;return h.set(E,V),V};let w=-1;for(const E of t){const z=k(E);z!==null&&z>w&&(w=z)}const j=(E,z)=>E.localeCompare(z,"en",{numeric:!0});let I=[];if(w>=0){const E=[...t].filter(z=>h.get(z)===w).sort(j);if(E.length>0){const z=[];let V=E[0];for(;V!==void 0;){z.push(V);const L=h.get(V);V=(r.get(V)??[]).filter(Y=>h.get(Y)===(L??0)-1).sort(j)[0]}I=z.reverse()}}const b=new Set(I);return{nodes:e.map(E=>({id:E.id,level:h.get(E.id)??null,dependsOn:r.get(E.id)??[],onCriticalPath:b.has(E.id)})).sort((E,z)=>E.id.localeCompare(z.id,"en",{numeric:!0})),criticalPath:I,cycleNodes:[...d].sort((E,z)=>E.localeCompare(z,"en",{numeric:!0})),maxLevel:w}}function Gw(e,t,r){return e.replaceAll("{id}",()=>t).replaceAll("{path}",()=>r)}function Jw(e){return`.kanban/tasks/${e}.md`}async function Ec(e){var t;try{if(typeof navigator<"u"&&((t=navigator.clipboard)!=null&&t.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 s=document.execCommand("copy");return document.body.removeChild(r),s}catch{return!1}}const e0="_view_ruvk1_1",t0="_toolbar_ruvk1_7",n0="_cycleWarn_ruvk1_14",r0="_levels_ruvk1_23",i0="_level_ruvk1_23",s0="_levelLabel_ruvk1_36",l0="_node_ruvk1_44",o0="_nodeCp_ruvk1_61",a0="_nodeCycle_ruvk1_66",u0="_statusproposed_ruvk1_72",c0="_statusbacklog_ruvk1_75",d0="_statustodo_ruvk1_78",f0="_statusin_progress_ruvk1_81",p0="_statuspending_ruvk1_84",m0="_nodeTop_ruvk1_88",h0="_nodeId_ruvk1_94",g0="_cpTag_ruvk1_100",y0="_nodeTitle_ruvk1_106",v0="_deps_ruvk1_111",k0="_depsLabel_ruvk1_118",x0="_depChip_ruvk1_123",_0="_pendingBadge_ruvk1_131",w0="_empty_ruvk1_141",b0="_copyBtn_ruvk1_147",vt={view:e0,toolbar:t0,cycleWarn:n0,levels:r0,level:i0,levelLabel:s0,node:l0,nodeCp:o0,nodeCycle:a0,statusproposed:u0,statusbacklog:c0,statustodo:d0,statusin_progress:f0,statuspending:p0,nodeTop:m0,nodeId:h0,cpTag:g0,nodeTitle:y0,deps:v0,depsLabel:k0,depChip:x0,pendingBadge:_0,empty:w0,copyBtn:b0};function S0({board:e,onOpen:t}){const{t:r}=bt(),[s,o]=C.useState(null),a=C.useMemo(()=>e.tasks.filter(k=>k.frontmatter.status!=="done"),[e.tasks]),u=C.useMemo(()=>new Map(a.map(k=>[k.frontmatter.id,k])),[a]),d=C.useMemo(()=>Xw(a.map(k=>({id:k.frontmatter.id,dependsOn:k.frontmatter.depends_on}))),[a]),f=C.useMemo(()=>{const k=new Map,w=[];for(const j of d.nodes)if(j.level===null)w.push(j);else{const I=k.get(j.level)??[];I.push(j),k.set(j.level,I)}return{map:k,cyclic:w}},[d.nodes]),m=async()=>{const w=["このプロジェクトのタスク依存関係 (depends_on) を見直し、クリティカルパスを最短化できないか検討してください。","CLAUDE.md の運用規約に従い、各タスクファイルの frontmatter `depends_on` を必要に応じて編集してください。","","現在の未完了タスクと依存:",...a.map(I=>`- ${I.frontmatter.id} (${I.frontmatter.status})`+(I.frontmatter.depends_on.length>0?` depends_on: ${I.frontmatter.depends_on.join(", ")}`:""))].join(`
47
- `),j=await Ec(w);o(j?"done":"failed"),window.setTimeout(()=>o(null),2e3)},v=[...f.map.keys()].sort((k,w)=>k-w),h=a.length>0,x=k=>{const w=u.get(k.id),j=k.level===null,I=w?vt[`status${w.frontmatter.status}`]:"";return y.jsxs("div",{className:`${vt.node} ${k.onCriticalPath?vt.nodeCp:""} ${j?vt.nodeCycle:I}`,role:"button",tabIndex:0,onClick:()=>w&&t(w),onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&w&&(b.preventDefault(),t(w))},children:[y.jsxs("div",{className:vt.nodeTop,children:[y.jsx("span",{className:vt.nodeId,children:k.id}),k.onCriticalPath&&y.jsxs("span",{className:vt.cpTag,children:["★ ",r("cp.criticalPath")]})]}),y.jsx("div",{className:vt.nodeTitle,children:(w==null?void 0:w.frontmatter.title)??k.id}),(w==null?void 0:w.frontmatter.status)==="pending"&&y.jsx("span",{className:vt.pendingBadge,children:r("status.pending")}),k.dependsOn.length>0&&y.jsxs("div",{className:vt.deps,children:[y.jsx("span",{className:vt.depsLabel,children:r("cp.dependsOn")}),k.dependsOn.map(b=>y.jsx("span",{className:vt.depChip,children:b},b))]})]},k.id)};return y.jsxs("div",{className:vt.view,children:[y.jsx("div",{className:vt.toolbar,children:y.jsx("button",{type:"button",className:vt.copyBtn,onClick:()=>void m(),disabled:!h,children:r(s==="done"?"cp.copied":s==="failed"?"cp.copyFailed":"cp.copyReorg")})}),d.cycleNodes.length>0&&y.jsxs("div",{className:vt.cycleWarn,role:"alert",children:["⚠ ",r("cp.cycleWarning",{ids:d.cycleNodes.join(", ")})]}),h?y.jsxs("div",{className:vt.levels,children:[v.map(k=>y.jsxs("div",{className:vt.level,children:[y.jsx("span",{className:vt.levelLabel,children:r("cp.level",{n:k})}),(f.map.get(k)??[]).map(x)]},k)),f.cyclic.length>0&&y.jsxs("div",{className:vt.level,children:[y.jsxs("span",{className:vt.levelLabel,children:["⚠ ",r("cp.cycleLevel")]}),f.cyclic.map(x)]})]}):y.jsx("div",{className:vt.empty,children:r("cp.empty")})]})}const C0=/^\s*[-*]\s*(\d{4}-\d{2}-\d{2})\s+(\d{2}:\d{2})\s+\[([^\]]+)\]\s*(.*)$/;function xg(e){const t=[];for(const r of e.split(`
48
- `)){const s=r.match(C0);if(!s)continue;const[,o,a,u,d]=s;t.push({date:o,time:a,member:u,message:d})}return t}function E0(e){const t=new Map;for(const s of e)for(const{date:o,time:a,member:u,message:d}of xg(s.body)){const f=t.get(o)??[];f.push({taskId:s.id,time:a,member:u,message:d}),t.set(o,f)}const r=[...t.entries()].map(([s,o])=>({date:s,entries:o.sort((a,u)=>a.time.localeCompare(u.time)||a.taskId.localeCompare(u.taskId,"en",{numeric:!0}))}));return r.sort((s,o)=>o.date.localeCompare(s.date)),r}const N0="_view_1hy13_1",T0="_viewEmpty_1hy13_7",j0="_sidebar_1hy13_14",I0="_sidebarTitle_1hy13_22",D0="_navList_1hy13_28",R0="_navBtn_1hy13_34",A0="_navBtnActive_1hy13_55",P0="_navCount_1hy13_61",L0="_detail_1hy13_71",M0="_day_1hy13_77",O0="_dayHeader_1hy13_81",z0="_date_1hy13_90",F0="_count_1hy13_95",$0="_entry_1hy13_100",B0="_time_1hy13_108",U0="_taskId_1hy13_115",V0="_member_1hy13_122",H0="_memberDot_1hy13_130",W0="_memberhuman_1hy13_136",Z0="_memberai_1hy13_140",K0="_memberunknown_1hy13_144",q0="_message_1hy13_148",Q0="_empty_1hy13_152",ht={view:N0,viewEmpty:T0,sidebar:j0,sidebarTitle:I0,navList:D0,navBtn:R0,navBtnActive:A0,navCount:P0,detail:L0,day:M0,dayHeader:O0,date:z0,count:F0,entry:$0,time:B0,taskId:U0,member:V0,memberDot:H0,memberhuman:W0,memberai:Z0,memberunknown:K0,message:q0,empty:Q0};function Y0({board:e}){const{t}=bt(),[r,s]=C.useState([]),[o,a]=C.useState(null);C.useEffect(()=>{let h=!0;const x=new AbortController;return(async()=>{try{const k=await zh(x.signal);h&&s(k.tasks)}catch{h&&s([])}})(),()=>{h=!1,x.abort()}},[e]);const u=C.useMemo(()=>{const h=new Map(e.config.members.map(x=>[x.id,x.type]));return x=>h.get(x)},[e.config.members]),d=C.useMemo(()=>Jo(e.config.members),[e.config.members]),f=C.useMemo(()=>{const h=e.tasks.map(w=>({id:w.frontmatter.id,body:w.body})),x=new Set(h.map(w=>w.id)),k=r.filter(w=>!x.has(w.id));return E0([...h,...k])},[e.tasks,r]),m=h=>{const x=u(h);return x==="human"?ht.memberhuman:x==="ai"?ht.memberai:ht.memberunknown},v=f.find(h=>h.date===o)??f[0]??null;return f.length===0||v===null?y.jsx("div",{className:ht.viewEmpty,children:y.jsx("div",{className:ht.empty,children:t("digest.empty")})}):y.jsxs("div",{className:ht.view,children:[y.jsxs("aside",{className:ht.sidebar,"aria-label":t("digest.days"),children:[y.jsx("p",{className:ht.sidebarTitle,children:t("digest.days")}),y.jsx("ul",{className:ht.navList,children:f.map(h=>y.jsx("li",{children:y.jsxs("button",{type:"button",className:`${ht.navBtn} ${h.date===v.date?ht.navBtnActive:""}`,onClick:()=>a(h.date),children:[y.jsx("span",{children:h.date}),y.jsx("span",{className:ht.navCount,children:t("digest.entries",{n:h.entries.length})})]})},h.date))})]}),y.jsx("div",{className:ht.detail,children:y.jsxs("section",{className:ht.day,children:[y.jsxs("div",{className:ht.dayHeader,children:[y.jsx("span",{className:ht.date,children:v.date}),y.jsx("span",{className:ht.count,children:t("digest.entries",{n:v.entries.length})})]}),v.entries.map((h,x)=>y.jsxs("div",{className:ht.entry,children:[y.jsx("span",{className:ht.time,children:h.time}),y.jsx("span",{className:ht.taskId,children:h.taskId}),y.jsxs("span",{className:ht.member,children:[y.jsx("span",{className:`${ht.memberDot} ${m(h.member)}`,"aria-hidden":"true"}),d(h.member)]}),y.jsx("span",{className:ht.message,children:h.message})]},x))]})})]})}function X0(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const G0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,J0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eb={};function Fm(e,t){return(eb.jsx?J0:G0).test(e)}const tb=/[ \t\n\f\r]/g;function nb(e){return typeof e=="object"?e.type==="text"?$m(e.value):!1:$m(e)}function $m(e){return e.replace(tb,"")===""}class yl{constructor(t,r,s){this.normal=r,this.property=t,s&&(this.space=s)}}yl.prototype.normal={};yl.prototype.property={};yl.prototype.space=void 0;function _g(e,t){const r={},s={};for(const o of e)Object.assign(r,o.property),Object.assign(s,o.normal);return new yl(r,s,t)}function Nc(e){return e.toLowerCase()}class vn{constructor(t,r){this.attribute=r,this.property=t}}vn.prototype.attribute="";vn.prototype.booleanish=!1;vn.prototype.boolean=!1;vn.prototype.commaOrSpaceSeparated=!1;vn.prototype.commaSeparated=!1;vn.prototype.defined=!1;vn.prototype.mustUseProperty=!1;vn.prototype.number=!1;vn.prototype.overloadedBoolean=!1;vn.prototype.property="";vn.prototype.spaceSeparated=!1;vn.prototype.space=void 0;let rb=0;const Me=Si(),Et=Si(),Tc=Si(),ie=Si(),nt=Si(),ki=Si(),Cn=Si();function Si(){return 2**++rb}const jc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Me,booleanish:Et,commaOrSpaceSeparated:Cn,commaSeparated:ki,number:ie,overloadedBoolean:Tc,spaceSeparated:nt},Symbol.toStringTag,{value:"Module"})),Qu=Object.keys(jc);class rd extends vn{constructor(t,r,s,o){let a=-1;if(super(t,r),Bm(this,"space",o),typeof s=="number")for(;++a<Qu.length;){const u=Qu[a];Bm(this,Qu[a],(s&jc[u])===jc[u])}}}rd.prototype.defined=!0;function Bm(e,t,r){r&&(e[t]=r)}function ls(e){const t={},r={};for(const[s,o]of Object.entries(e.properties)){const a=new rd(s,e.transform(e.attributes||{},s),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(s)&&(a.mustUseProperty=!0),t[s]=a,r[Nc(s)]=s,r[Nc(a.attribute)]=s}return new yl(t,r,e.space)}const wg=ls({properties:{ariaActiveDescendant:null,ariaAtomic:Et,ariaAutoComplete:null,ariaBusy:Et,ariaChecked:Et,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:nt,ariaCurrent:null,ariaDescribedBy:nt,ariaDetails:null,ariaDisabled:Et,ariaDropEffect:nt,ariaErrorMessage:null,ariaExpanded:Et,ariaFlowTo:nt,ariaGrabbed:Et,ariaHasPopup:null,ariaHidden:Et,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nt,ariaLevel:ie,ariaLive:null,ariaModal:Et,ariaMultiLine:Et,ariaMultiSelectable:Et,ariaOrientation:null,ariaOwns:nt,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:Et,ariaReadOnly:Et,ariaRelevant:null,ariaRequired:Et,ariaRoleDescription:nt,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:Et,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function bg(e,t){return t in e?e[t]:t}function Sg(e,t){return bg(e,t.toLowerCase())}const ib=ls({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ki,acceptCharset:nt,accessKey:nt,action:null,allow:null,allowFullScreen:Me,allowPaymentRequest:Me,allowUserMedia:Me,alpha:Me,alt:null,as:null,async:Me,autoCapitalize:null,autoComplete:nt,autoFocus:Me,autoPlay:Me,blocking:nt,capture:null,charSet:null,checked:Me,cite:null,className:nt,closedBy:null,colorSpace:null,cols:ie,colSpan:ie,command:null,commandFor:null,content:null,contentEditable:Et,controls:Me,controlsList:nt,coords:ie|ki,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Me,defer:Me,dir:null,dirName:null,disabled:Me,download:Tc,draggable:Et,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Me,formTarget:null,headers:nt,height:ie,hidden:Tc,high:ie,href:null,hrefLang:null,htmlFor:nt,httpEquiv:nt,id:null,imageSizes:null,imageSrcSet:null,inert:Me,inputMode:null,integrity:null,is:null,isMap:Me,itemId:null,itemProp:nt,itemRef:nt,itemScope:Me,itemType:nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Me,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Me,muted:Me,name:null,nonce:null,noModule:Me,noValidate:Me,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:Me,optimum:ie,pattern:null,ping:nt,placeholder:null,playsInline:Me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Me,referrerPolicy:null,rel:nt,required:Me,reversed:Me,rows:ie,rowSpan:ie,sandbox:nt,scope:null,scoped:Me,seamless:Me,selected:Me,shadowRootClonable:Me,shadowRootCustomElementRegistry:Me,shadowRootDelegatesFocus:Me,shadowRootMode:null,shadowRootSerializable:Me,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:Et,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:Me,useMap:null,value:Et,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nt,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:Me,declare:Me,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Me,noHref:Me,noShade:Me,noWrap:Me,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:Et,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:Me,disablePictureInPicture:Me,disableRemotePlayback:Me,exportParts:ki,part:nt,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:Sg}),sb=ls({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:Cn,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:nt,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:Me,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:ki,g2:ki,glyphName:ki,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:Cn,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:nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Cn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Cn,rev:Cn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Cn,requiredFeatures:Cn,requiredFonts:Cn,requiredFormats:Cn,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:Cn,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:Cn,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:Cn,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:bg}),Cg=ls({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Eg=ls({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Sg}),Ng=ls({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),lb={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"},ob=/[A-Z]/g,Um=/-[a-z]/g,ab=/^data[-\w.:]+$/i;function ub(e,t){const r=Nc(t);let s=t,o=vn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ab.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Um,db);s="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Um.test(a)){let u=a.replace(ob,cb);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}o=rd}return new o(s,t)}function cb(e){return"-"+e.toLowerCase()}function db(e){return e.charAt(1).toUpperCase()}const fb=_g([wg,ib,Cg,Eg,Ng],"html"),id=_g([wg,sb,Cg,Eg,Ng],"svg");function pb(e){return e.join(" ").trim()}var Ki={},Yu,Vm;function mb(){if(Vm)return Yu;Vm=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,s=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
49
- `,m="/",v="*",h="",x="comment",k="declaration";function w(I,b){if(typeof I!="string")throw new TypeError("First argument must be a string");if(!I)return[];b=b||{};var M=1,E=1;function z(le){var O=le.match(t);O&&(M+=O.length);var G=le.lastIndexOf(f);E=~G?le.length-G:E+le.length}function V(){var le={line:M,column:E};return function(O){return O.position=new L(le),oe(),O}}function L(le){this.start=le,this.end={line:M,column:E},this.source=b.source}L.prototype.content=I;function K(le){var O=new Error(b.source+":"+M+":"+E+": "+le);if(O.reason=le,O.filename=b.source,O.line=M,O.column=E,O.source=I,!b.silent)throw O}function Y(le){var O=le.exec(I);if(O){var G=O[0];return z(G),I=I.slice(G.length),O}}function oe(){Y(r)}function R(le){var O;for(le=le||[];O=H();)O!==!1&&le.push(O);return le}function H(){var le=V();if(!(m!=I.charAt(0)||v!=I.charAt(1))){for(var O=2;h!=I.charAt(O)&&(v!=I.charAt(O)||m!=I.charAt(O+1));)++O;if(O+=2,h===I.charAt(O-1))return K("End of comment missing");var G=I.slice(2,O-2);return E+=2,z(G),I=I.slice(O),E+=2,le({type:x,comment:G})}}function B(){var le=V(),O=Y(s);if(O){if(H(),!Y(o))return K("property missing ':'");var G=Y(a),ue=le({type:k,property:j(O[0].replace(e,h)),value:G?j(G[0].replace(e,h)):h});return Y(u),ue}}function ae(){var le=[];R(le);for(var O;O=B();)O!==!1&&(le.push(O),R(le));return le}return oe(),ae()}function j(I){return I?I.replace(d,h):h}return Yu=w,Yu}var Hm;function hb(){if(Hm)return Ki;Hm=1;var e=Ki&&Ki.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=r;const t=e(mb());function r(s,o){let a=null;if(!s||typeof s!="string")return a;const u=(0,t.default)(s),d=typeof o=="function";return u.forEach(f=>{if(f.type!=="declaration")return;const{property:m,value:v}=f;d?o(m,v,f):v&&(a=a||{},a[m]=v)}),a}return Ki}var qs={},Wm;function gb(){if(Wm)return qs;Wm=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(m){return!m||r.test(m)||e.test(m)},u=function(m,v){return v.toUpperCase()},d=function(m,v){return"".concat(v,"-")},f=function(m,v){return v===void 0&&(v={}),a(m)?m:(m=m.toLowerCase(),v.reactCompat?m=m.replace(o,d):m=m.replace(s,d),m.replace(t,u))};return qs.camelCase=f,qs}var Qs,Zm;function yb(){if(Zm)return Qs;Zm=1;var e=Qs&&Qs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(hb()),r=gb();function s(o,a){var u={};return!o||typeof o!="string"||(0,t.default)(o,function(d,f){d&&f&&(u[(0,r.camelCase)(d,a)]=f)}),u}return s.default=s,Qs=s,Qs}var vb=yb();const kb=Uc(vb),Tg=jg("end"),sd=jg("start");function jg(e){return t;function t(r){const s=r&&r.position&&r.position[e]||{};if(typeof s.line=="number"&&s.line>0&&typeof s.column=="number"&&s.column>0)return{line:s.line,column:s.column,offset:typeof s.offset=="number"&&s.offset>-1?s.offset:void 0}}}function xb(e){const t=sd(e),r=Tg(e);if(t&&r)return{start:t,end:r}}function rl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Km(e.position):"start"in e||"end"in e?Km(e):"line"in e||"column"in e?Ic(e):""}function Ic(e){return qm(e&&e.line)+":"+qm(e&&e.column)}function Km(e){return Ic(e&&e.start)+"-"+Ic(e&&e.end)}function qm(e){return e&&typeof e=="number"?e:1}class tn extends Error{constructor(t,r,s){super(),typeof r=="string"&&(s=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 t=="string"?o=t:!a.cause&&t&&(u=!0,o=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof s=="string"){const f=s.indexOf(":");f===-1?a.ruleId=s:(a.source=s.slice(0,f),a.ruleId=s.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=rl(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}}tn.prototype.file="";tn.prototype.name="";tn.prototype.reason="";tn.prototype.message="";tn.prototype.stack="";tn.prototype.column=void 0;tn.prototype.line=void 0;tn.prototype.ancestors=void 0;tn.prototype.cause=void 0;tn.prototype.fatal=void 0;tn.prototype.place=void 0;tn.prototype.ruleId=void 0;tn.prototype.source=void 0;const ld={}.hasOwnProperty,_b=new Map,wb=/[A-Z]/g,bb=new Set(["table","tbody","thead","tfoot","tr"]),Sb=new Set(["td","th"]),Ig="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Cb(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let s;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");s=Ab(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");s=Rb(r,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?id:fb,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Dg(o,e,void 0);return a&&typeof a!="string"?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function Dg(e,t,r){if(t.type==="element")return Eb(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Nb(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return jb(e,t,r);if(t.type==="mdxjsEsm")return Tb(e,t);if(t.type==="root")return Ib(e,t,r);if(t.type==="text")return Db(e,t)}function Eb(e,t,r){const s=e.schema;let o=s;t.tagName.toLowerCase()==="svg"&&s.space==="html"&&(o=id,e.schema=o),e.ancestors.push(t);const a=Ag(e,t.tagName,!1),u=Pb(e,t);let d=ad(e,t);return bb.has(t.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!nb(f):!0})),Rg(e,u,a,t),od(u,d),e.ancestors.pop(),e.schema=s,e.create(t,a,u,r)}function Nb(e,t){if(t.data&&t.data.estree&&e.evaluater){const s=t.data.estree.body[0];return s.type,e.evaluater.evaluateExpression(s.expression)}dl(e,t.position)}function Tb(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);dl(e,t.position)}function jb(e,t,r){const s=e.schema;let o=s;t.name==="svg"&&s.space==="html"&&(o=id,e.schema=o),e.ancestors.push(t);const a=t.name===null?e.Fragment:Ag(e,t.name,!0),u=Lb(e,t),d=ad(e,t);return Rg(e,u,a,t),od(u,d),e.ancestors.pop(),e.schema=s,e.create(t,a,u,r)}function Ib(e,t,r){const s={};return od(s,ad(e,t)),e.create(t,e.Fragment,s,r)}function Db(e,t){return t.value}function Rg(e,t,r,s){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=s)}function od(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Rb(e,t,r){return s;function s(o,a,u,d){const m=Array.isArray(u.children)?r:t;return d?m(a,u,d):m(a,u)}}function Ab(e,t){return r;function r(s,o,a,u){const d=Array.isArray(a.children),f=sd(s);return t(o,a,u,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function Pb(e,t){const r={};let s,o;for(o in t.properties)if(o!=="children"&&ld.call(t.properties,o)){const a=Mb(e,o,t.properties[o]);if(a){const[u,d]=a;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&Sb.has(t.tagName)?s=d:r[u]=d}}if(s){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=s}return r}function Lb(e,t){const r={};for(const s of t.attributes)if(s.type==="mdxJsxExpressionAttribute")if(s.data&&s.data.estree&&e.evaluater){const a=s.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 dl(e,t.position);else{const o=s.name;let a;if(s.value&&typeof s.value=="object")if(s.value.data&&s.value.data.estree&&e.evaluater){const d=s.value.data.estree.body[0];d.type,a=e.evaluater.evaluateExpression(d.expression)}else dl(e,t.position);else a=s.value===null?!0:s.value;r[o]=a}return r}function ad(e,t){const r=[];let s=-1;const o=e.passKeys?new Map:_b;for(;++s<t.children.length;){const a=t.children[s];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 m=o.get(f)||0;u=f+"-"+m,o.set(f,m+1)}}const d=Dg(e,a,u);d!==void 0&&r.push(d)}return r}function Mb(e,t,r){const s=ub(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=s.commaSeparated?X0(r):pb(r)),s.property==="style"){let o=typeof r=="object"?r:Ob(e,String(r));return e.stylePropertyNameCase==="css"&&(o=zb(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&s.space?lb[s.property]||s.property:s.attribute,r]}}function Ob(e,t){try{return kb(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const s=r,o=new tn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=Ig+"#cannot-parse-style-attribute",o}}function Ag(e,t,r){let s;if(!r)s={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let a=-1,u;for(;++a<o.length;){const d=Fm(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}s=u}else s=Fm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(s.type==="Literal"){const o=s.value;return ld.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(s);dl(e)}function dl(e,t){const r=new tn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Ig+"#cannot-handle-mdx-estrees-without-createevaluater",r}function zb(e){const t={};let r;for(r in e)ld.call(e,r)&&(t[Fb(r)]=e[r]);return t}function Fb(e){let t=e.replace(wb,$b);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function $b(e){return"-"+e.toLowerCase()}const Xu={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"]},Bb={};function ud(e,t){const r=Bb,s=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Pg(e,s,o)}function Pg(e,t,r){if(Ub(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Qm(e.children,t,r)}return Array.isArray(e)?Qm(e,t,r):""}function Qm(e,t,r){const s=[];let o=-1;for(;++o<e.length;)s[o]=Pg(e[o],t,r);return s.join("")}function Ub(e){return!!(e&&typeof e=="object")}const Ym=document.createElement("i");function cd(e){const t="&"+e+";";Ym.innerHTML=t;const r=Ym.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function En(e,t,r,s){const o=e.length;let a=0,u;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,s.length<1e4)u=Array.from(s),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);a<s.length;)u=s.slice(a,a+1e4),u.unshift(t,0),e.splice(...u),a+=1e4,t+=1e4}function Fn(e,t){return e.length>0?(En(e,e.length,0,t),e):t}const Xm={}.hasOwnProperty;function Lg(e){const t={};let r=-1;for(;++r<e.length;)Vb(t,e[r]);return t}function Vb(e,t){let r;for(r in t){const o=(Xm.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let u;if(a)for(u in a){Xm.call(o,u)||(o[u]=[]);const d=a[u];Hb(o[u],Array.isArray(d)?d:d?[d]:[])}}}function Hb(e,t){let r=-1;const s=[];for(;++r<t.length;)(t[r].add==="after"?e:s).push(t[r]);En(e,0,0,s)}function Mg(e,t){const r=Number.parseInt(e,t);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 Gn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const an=ri(/[A-Za-z]/),Jt=ri(/[\dA-Za-z]/),Wb=ri(/[#-'*+\--9=?A-Z^-~]/);function Ho(e){return e!==null&&(e<32||e===127)}const Dc=ri(/\d/),Zb=ri(/[\dA-Fa-f]/),Kb=ri(/[!-/:-@[-`{-~]/);function Re(e){return e!==null&&e<-2}function it(e){return e!==null&&(e<0||e===32)}function He(e){return e===-2||e===-1||e===32}const ea=ri(new RegExp("\\p{P}|\\p{S}","u")),bi=ri(/\s/);function ri(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function os(e){const t=[];let r=-1,s=0,o=0;for(;++r<e.length;){const a=e.charCodeAt(r);let u="";if(a===37&&Jt(e.charCodeAt(r+1))&&Jt(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&&(t.push(e.slice(s,r),encodeURIComponent(u)),s=r+o+1,u=""),o&&(r+=o,o=0)}return t.join("")+e.slice(s)}function Ze(e,t,r,s){const o=s?s-1:Number.POSITIVE_INFINITY;let a=0;return u;function u(f){return He(f)?(e.enter(r),d(f)):t(f)}function d(f){return He(f)&&a++<o?(e.consume(f),d):(e.exit(r),t(f))}}const qb={tokenize:Qb};function Qb(e){const t=e.attempt(this.parser.constructs.contentInitial,s,o);let r;return t;function s(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Ze(e,t,"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 Re(d)?(e.consume(d),e.exit("chunkText"),a):(e.consume(d),u)}}const Yb={tokenize:Xb},Gm={tokenize:Gb};function Xb(e){const t=this,r=[];let s=0,o,a,u;return d;function d(E){if(s<r.length){const z=r[s];return t.containerState=z[1],e.attempt(z[0].continuation,f,m)(E)}return m(E)}function f(E){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&M();const z=t.events.length;let V=z,L;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){L=t.events[V][1].end;break}b(s);let K=z;for(;K<t.events.length;)t.events[K][1].end={...L},K++;return En(t.events,V+1,0,t.events.slice(z)),t.events.length=K,m(E)}return d(E)}function m(E){if(s===r.length){if(!o)return x(E);if(o.currentConstruct&&o.currentConstruct.concrete)return w(E);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Gm,v,h)(E)}function v(E){return o&&M(),b(s),x(E)}function h(E){return t.parser.lazy[t.now().line]=s!==r.length,u=t.now().offset,w(E)}function x(E){return t.containerState={},e.attempt(Gm,k,w)(E)}function k(E){return s++,r.push([t.currentConstruct,t.containerState]),x(E)}function w(E){if(E===null){o&&M(),b(0),e.consume(E);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:a}),j(E)}function j(E){if(E===null){I(e.exit("chunkFlow"),!0),b(0),e.consume(E);return}return Re(E)?(e.consume(E),I(e.exit("chunkFlow")),s=0,t.interrupt=void 0,d):(e.consume(E),j)}function I(E,z){const V=t.sliceStream(E);if(z&&V.push(null),E.previous=a,a&&(a.next=E),a=E,o.defineSkip(E.start),o.write(V),t.parser.lazy[E.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 K=t.events.length;let Y=K,oe,R;for(;Y--;)if(t.events[Y][0]==="exit"&&t.events[Y][1].type==="chunkFlow"){if(oe){R=t.events[Y][1].end;break}oe=!0}for(b(s),L=K;L<t.events.length;)t.events[L][1].end={...R},L++;En(t.events,Y+1,0,t.events.slice(K)),t.events.length=L}}function b(E){let z=r.length;for(;z-- >E;){const V=r[z];t.containerState=V[1],V[0].exit.call(t,e)}r.length=E}function M(){o.write([null]),a=void 0,o=void 0,t.containerState._closeFlow=void 0}}function Gb(e,t,r){return Ze(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rs(e){if(e===null||it(e)||bi(e))return 1;if(ea(e))return 2}function ta(e,t,r){const s=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!s.includes(a)&&(t=a(t,r),s.push(a))}return t}const Rc={name:"attention",resolveAll:Jb,tokenize:eS};function Jb(e,t){let r=-1,s,o,a,u,d,f,m,v;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(s=r;s--;)if(e[s][0]==="exit"&&e[s][1].type==="attentionSequence"&&e[s][1]._open&&t.sliceSerialize(e[s][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[s][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[s][1].end.offset-e[s][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[s][1].end.offset-e[s][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const h={...e[s][1].end},x={...e[r][1].start};Jm(h,-f),Jm(x,f),u={type:f>1?"strongSequence":"emphasisSequence",start:h,end:{...e[s][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:x},a={type:f>1?"strongText":"emphasisText",start:{...e[s][1].end},end:{...e[r][1].start}},o={type:f>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},e[s][1].end={...u.start},e[r][1].start={...d.end},m=[],e[s][1].end.offset-e[s][1].start.offset&&(m=Fn(m,[["enter",e[s][1],t],["exit",e[s][1],t]])),m=Fn(m,[["enter",o,t],["enter",u,t],["exit",u,t],["enter",a,t]]),m=Fn(m,ta(t.parser.constructs.insideSpan.null,e.slice(s+1,r),t)),m=Fn(m,[["exit",a,t],["enter",d,t],["exit",d,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(v=2,m=Fn(m,[["enter",e[r][1],t],["exit",e[r][1],t]])):v=0,En(e,s-1,r-s+3,m),r=s+m.length-v-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function eS(e,t){const r=this.parser.constructs.attentionMarkers.null,s=this.previous,o=rs(s);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 m=e.exit("attentionSequence"),v=rs(f),h=!v||v===2&&o||r.includes(f),x=!o||o===2&&v||r.includes(s);return m._open=!!(a===42?h:h&&(o||!x)),m._close=!!(a===42?x:x&&(v||!h)),t(f)}}function Jm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const tS={name:"autolink",tokenize:nS};function nS(e,t,r){let s=0;return o;function o(k){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(k),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(k){return an(k)?(e.consume(k),u):k===64?r(k):m(k)}function u(k){return k===43||k===45||k===46||Jt(k)?(s=1,d(k)):m(k)}function d(k){return k===58?(e.consume(k),s=0,f):(k===43||k===45||k===46||Jt(k))&&s++<32?(e.consume(k),d):(s=0,m(k))}function f(k){return k===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(k),e.exit("autolinkMarker"),e.exit("autolink"),t):k===null||k===32||k===60||Ho(k)?r(k):(e.consume(k),f)}function m(k){return k===64?(e.consume(k),v):Wb(k)?(e.consume(k),m):r(k)}function v(k){return Jt(k)?h(k):r(k)}function h(k){return k===46?(e.consume(k),s=0,v):k===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(k),e.exit("autolinkMarker"),e.exit("autolink"),t):x(k)}function x(k){if((k===45||Jt(k))&&s++<63){const w=k===45?x:h;return e.consume(k),w}return r(k)}}const vl={partial:!0,tokenize:rS};function rS(e,t,r){return s;function s(a){return He(a)?Ze(e,o,"linePrefix")(a):o(a)}function o(a){return a===null||Re(a)?t(a):r(a)}}const Og={continuation:{tokenize:sS},exit:lS,name:"blockQuote",tokenize:iS};function iS(e,t,r){const s=this;return o;function o(u){if(u===62){const d=s.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 He(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function sS(e,t,r){const s=this;return o;function o(u){return He(u)?Ze(e,a,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):a(u)}function a(u){return e.attempt(Og,t,r)(u)}}function lS(e){e.exit("blockQuote")}const zg={name:"characterEscape",tokenize:oS};function oS(e,t,r){return s;function s(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return Kb(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const Fg={name:"characterReference",tokenize:aS};function aS(e,t,r){const s=this;let o=0,a,u;return d;function d(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),f}function f(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),a=31,u=Jt,v(h))}function m(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,u=Zb,v):(e.enter("characterReferenceValue"),a=7,u=Dc,v(h))}function v(h){if(h===59&&o){const x=e.exit("characterReferenceValue");return u===Jt&&!cd(s.sliceSerialize(x))?r(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(h)&&o++<a?(e.consume(h),v):r(h)}}const eh={partial:!0,tokenize:cS},th={concrete:!0,name:"codeFenced",tokenize:uS};function uS(e,t,r){const s=this,o={partial:!0,tokenize:V};let a=0,u=0,d;return f;function f(L){return m(L)}function m(L){const K=s.events[s.events.length-1];return a=K&&K[1].type==="linePrefix"?K[2].sliceSerialize(K[1],!0).length:0,d=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),v(L)}function v(L){return L===d?(u++,e.consume(L),v):u<3?r(L):(e.exit("codeFencedFenceSequence"),He(L)?Ze(e,h,"whitespace")(L):h(L))}function h(L){return L===null||Re(L)?(e.exit("codeFencedFence"),s.interrupt?t(L):e.check(eh,j,z)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(L))}function x(L){return L===null||Re(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(L)):He(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ze(e,k,"whitespace")(L)):L===96&&L===d?r(L):(e.consume(L),x)}function k(L){return L===null||Re(L)?h(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(L))}function w(L){return L===null||Re(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(L)):L===96&&L===d?r(L):(e.consume(L),w)}function j(L){return e.attempt(o,z,I)(L)}function I(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),b}function b(L){return a>0&&He(L)?Ze(e,M,"linePrefix",a+1)(L):M(L)}function M(L){return L===null||Re(L)?e.check(eh,j,z)(L):(e.enter("codeFlowValue"),E(L))}function E(L){return L===null||Re(L)?(e.exit("codeFlowValue"),M(L)):(e.consume(L),E)}function z(L){return e.exit("codeFenced"),t(L)}function V(L,K,Y){let oe=0;return R;function R(O){return L.enter("lineEnding"),L.consume(O),L.exit("lineEnding"),H}function H(O){return L.enter("codeFencedFence"),He(O)?Ze(L,B,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):B(O)}function B(O){return O===d?(L.enter("codeFencedFenceSequence"),ae(O)):Y(O)}function ae(O){return O===d?(oe++,L.consume(O),ae):oe>=u?(L.exit("codeFencedFenceSequence"),He(O)?Ze(L,le,"whitespace")(O):le(O)):Y(O)}function le(O){return O===null||Re(O)?(L.exit("codeFencedFence"),K(O)):Y(O)}}}function cS(e,t,r){const s=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 s.parser.lazy[s.now().line]?r(u):t(u)}}const Gu={name:"codeIndented",tokenize:fS},dS={partial:!0,tokenize:pS};function fS(e,t,r){const s=this;return o;function o(m){return e.enter("codeIndented"),Ze(e,a,"linePrefix",5)(m)}function a(m){const v=s.events[s.events.length-1];return v&&v[1].type==="linePrefix"&&v[2].sliceSerialize(v[1],!0).length>=4?u(m):r(m)}function u(m){return m===null?f(m):Re(m)?e.attempt(dS,u,f)(m):(e.enter("codeFlowValue"),d(m))}function d(m){return m===null||Re(m)?(e.exit("codeFlowValue"),u(m)):(e.consume(m),d)}function f(m){return e.exit("codeIndented"),t(m)}}function pS(e,t,r){const s=this;return o;function o(u){return s.parser.lazy[s.now().line]?r(u):Re(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):Ze(e,a,"linePrefix",5)(u)}function a(u){const d=s.events[s.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):Re(u)?o(u):r(u)}}const mS={name:"codeText",previous:gS,resolve:hS,tokenize:yS};function hS(e){let t=e.length-4,r=3,s,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(s=r;++s<t;)if(e[s][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(s=r-1,t++;++s<=t;)o===void 0?s!==t&&e[s][1].type!=="lineEnding"&&(o=s):(s===t||e[s][1].type==="lineEnding")&&(e[o][1].type="codeTextData",s!==o+2&&(e[o][1].end=e[s-1][1].end,e.splice(o+2,s-o-2),t-=s-o-2,s=o+2),o=void 0);return e}function gS(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yS(e,t,r){let s=0,o,a;return u;function u(h){return e.enter("codeText"),e.enter("codeTextSequence"),d(h)}function d(h){return h===96?(e.consume(h),s++,d):(e.exit("codeTextSequence"),f(h))}function f(h){return h===null?r(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),f):h===96?(a=e.enter("codeTextSequence"),o=0,v(h)):Re(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("codeTextData"),m(h))}function m(h){return h===null||h===32||h===96||Re(h)?(e.exit("codeTextData"),f(h)):(e.consume(h),m)}function v(h){return h===96?(e.consume(h),o++,v):o===s?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(a.type="codeTextData",m(h))}}class vS{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const s=r??Number.POSITIVE_INFINITY;return s<this.left.length?this.left.slice(t,s):t>this.left.length?this.right.slice(this.right.length-s+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-s+this.left.length).reverse())}splice(t,r,s){const o=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return s&&Ys(this.left,s),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ys(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ys(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Ys(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ys(this.left,r.reverse())}}}function Ys(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function $g(e){const t={};let r=-1,s,o,a,u,d,f,m;const v=new vS(e);for(;++r<v.length;){for(;r in t;)r=t[r];if(s=v.get(r),r&&s[1].type==="chunkFlow"&&v.get(r-1)[1].type==="listItemPrefix"&&(f=s[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(s[0]==="enter")s[1].contentType&&(Object.assign(t,kS(v,r)),r=t[r],m=!0);else if(s[1]._container){for(a=r,o=void 0;a--;)if(u=v.get(a),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(o&&(v.get(o)[1].type="lineEndingBlank"),u[1].type="lineEnding",o=a);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;o&&(s[1].end={...v.get(o)[1].start},d=v.slice(o,r),d.unshift(s),v.splice(o,r-o+1,d))}}return En(e,0,Number.POSITIVE_INFINITY,v.slice(0)),!m}function kS(e,t){const r=e.get(t)[1],s=e.get(t)[2];let o=t-1;const a=[];let u=r._tokenizer;u||(u=s.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,f=[],m={};let v,h,x=-1,k=r,w=0,j=0;const I=[j];for(;k;){for(;e.get(++o)[1]!==k;);a.push(o),k._tokenizer||(v=s.sliceStream(k),k.next||v.push(null),h&&u.defineSkip(k.start),k._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(v),k._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),h=k,k=k.next}for(k=r;++x<d.length;)d[x][0]==="exit"&&d[x-1][0]==="enter"&&d[x][1].type===d[x-1][1].type&&d[x][1].start.line!==d[x][1].end.line&&(j=x+1,I.push(j),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(u.events=[],k?(k._tokenizer=void 0,k.previous=void 0):I.pop(),x=I.length;x--;){const b=d.slice(I[x],I[x+1]),M=a.pop();f.push([M,M+b.length-1]),e.splice(M,2,b)}for(f.reverse(),x=-1;++x<f.length;)m[w+f[x][0]]=w+f[x][1],w+=f[x][1]-f[x][0]-1;return m}const xS={resolve:wS,tokenize:bS},_S={partial:!0,tokenize:SS};function wS(e){return $g(e),e}function bS(e,t){let r;return s;function s(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?a(d):Re(d)?e.check(_S,u,a)(d):(e.consume(d),o)}function a(d){return e.exit("chunkContent"),e.exit("content"),t(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 SS(e,t,r){const s=this;return o;function o(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Ze(e,a,"linePrefix")}function a(u){if(u===null||Re(u))return r(u);const d=s.events[s.events.length-1];return!s.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):e.interrupt(s.parser.constructs.flow,r,t)(u)}}function Bg(e,t,r,s,o,a,u,d,f){const m=f||Number.POSITIVE_INFINITY;let v=0;return h;function h(b){return b===60?(e.enter(s),e.enter(o),e.enter(a),e.consume(b),e.exit(a),x):b===null||b===32||b===41||Ho(b)?r(b):(e.enter(s),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),j(b))}function x(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(o),e.exit(s),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),k(b))}function k(b){return b===62?(e.exit("chunkString"),e.exit(d),x(b)):b===null||b===60||Re(b)?r(b):(e.consume(b),b===92?w:k)}function w(b){return b===60||b===62||b===92?(e.consume(b),k):k(b)}function j(b){return!v&&(b===null||b===41||it(b))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(s),t(b)):v<m&&b===40?(e.consume(b),v++,j):b===41?(e.consume(b),v--,j):b===null||b===32||b===40||Ho(b)?r(b):(e.consume(b),b===92?I:j)}function I(b){return b===40||b===41||b===92?(e.consume(b),j):j(b)}}function Ug(e,t,r,s,o,a){const u=this;let d=0,f;return m;function m(k){return e.enter(s),e.enter(o),e.consume(k),e.exit(o),e.enter(a),v}function v(k){return d>999||k===null||k===91||k===93&&!f||k===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?r(k):k===93?(e.exit(a),e.enter(o),e.consume(k),e.exit(o),e.exit(s),t):Re(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),v):(e.enter("chunkString",{contentType:"string"}),h(k))}function h(k){return k===null||k===91||k===93||Re(k)||d++>999?(e.exit("chunkString"),v(k)):(e.consume(k),f||(f=!He(k)),k===92?x:h)}function x(k){return k===91||k===92||k===93?(e.consume(k),d++,h):h(k)}}function Vg(e,t,r,s,o,a){let u;return d;function d(x){return x===34||x===39||x===40?(e.enter(s),e.enter(o),e.consume(x),e.exit(o),u=x===40?41:x,f):r(x)}function f(x){return x===u?(e.enter(o),e.consume(x),e.exit(o),e.exit(s),t):(e.enter(a),m(x))}function m(x){return x===u?(e.exit(a),f(u)):x===null?r(x):Re(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),Ze(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),v(x))}function v(x){return x===u||x===null||Re(x)?(e.exit("chunkString"),m(x)):(e.consume(x),x===92?h:v)}function h(x){return x===u||x===92?(e.consume(x),v):v(x)}}function il(e,t){let r;return s;function s(o){return Re(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,s):He(o)?Ze(e,s,r?"linePrefix":"lineSuffix")(o):t(o)}}const CS={name:"definition",tokenize:NS},ES={partial:!0,tokenize:TS};function NS(e,t,r){const s=this;let o;return a;function a(k){return e.enter("definition"),u(k)}function u(k){return Ug.call(s,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(k)}function d(k){return o=Gn(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)),k===58?(e.enter("definitionMarker"),e.consume(k),e.exit("definitionMarker"),f):r(k)}function f(k){return it(k)?il(e,m)(k):m(k)}function m(k){return Bg(e,v,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(k)}function v(k){return e.attempt(ES,h,h)(k)}function h(k){return He(k)?Ze(e,x,"whitespace")(k):x(k)}function x(k){return k===null||Re(k)?(e.exit("definition"),s.parser.defined.push(o),t(k)):r(k)}}function TS(e,t,r){return s;function s(d){return it(d)?il(e,o)(d):r(d)}function o(d){return Vg(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function a(d){return He(d)?Ze(e,u,"whitespace")(d):u(d)}function u(d){return d===null||Re(d)?t(d):r(d)}}const jS={name:"hardBreakEscape",tokenize:IS};function IS(e,t,r){return s;function s(a){return e.enter("hardBreakEscape"),e.consume(a),o}function o(a){return Re(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const DS={name:"headingAtx",resolve:RS,tokenize:AS};function RS(e,t){let r=e.length-2,s=3,o,a;return e[s][1].type==="whitespace"&&(s+=2),r-2>s&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(s===r-1||r-4>s&&e[r-2][1].type==="whitespace")&&(r-=s+1===r?2:4),r>s&&(o={type:"atxHeadingText",start:e[s][1].start,end:e[r][1].end},a={type:"chunkText",start:e[s][1].start,end:e[r][1].end,contentType:"text"},En(e,s,r-s+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}function AS(e,t,r){let s=0;return o;function o(v){return e.enter("atxHeading"),a(v)}function a(v){return e.enter("atxHeadingSequence"),u(v)}function u(v){return v===35&&s++<6?(e.consume(v),u):v===null||it(v)?(e.exit("atxHeadingSequence"),d(v)):r(v)}function d(v){return v===35?(e.enter("atxHeadingSequence"),f(v)):v===null||Re(v)?(e.exit("atxHeading"),t(v)):He(v)?Ze(e,d,"whitespace")(v):(e.enter("atxHeadingText"),m(v))}function f(v){return v===35?(e.consume(v),f):(e.exit("atxHeadingSequence"),d(v))}function m(v){return v===null||v===35||it(v)?(e.exit("atxHeadingText"),d(v)):(e.consume(v),m)}}const PS=["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"],nh=["pre","script","style","textarea"],LS={concrete:!0,name:"htmlFlow",resolveTo:zS,tokenize:FS},MS={partial:!0,tokenize:BS},OS={partial:!0,tokenize:$S};function zS(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function FS(e,t,r){const s=this;let o,a,u,d,f;return m;function m(N){return v(N)}function v(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),h}function h(N){return N===33?(e.consume(N),x):N===47?(e.consume(N),a=!0,j):N===63?(e.consume(N),o=3,s.interrupt?t:S):an(N)?(e.consume(N),u=String.fromCharCode(N),I):r(N)}function x(N){return N===45?(e.consume(N),o=2,k):N===91?(e.consume(N),o=5,d=0,w):an(N)?(e.consume(N),o=4,s.interrupt?t:S):r(N)}function k(N){return N===45?(e.consume(N),s.interrupt?t:S):r(N)}function w(N){const xe="CDATA[";return N===xe.charCodeAt(d++)?(e.consume(N),d===xe.length?s.interrupt?t:B:w):r(N)}function j(N){return an(N)?(e.consume(N),u=String.fromCharCode(N),I):r(N)}function I(N){if(N===null||N===47||N===62||it(N)){const xe=N===47,Te=u.toLowerCase();return!xe&&!a&&nh.includes(Te)?(o=1,s.interrupt?t(N):B(N)):PS.includes(u.toLowerCase())?(o=6,xe?(e.consume(N),b):s.interrupt?t(N):B(N)):(o=7,s.interrupt&&!s.parser.lazy[s.now().line]?r(N):a?M(N):E(N))}return N===45||Jt(N)?(e.consume(N),u+=String.fromCharCode(N),I):r(N)}function b(N){return N===62?(e.consume(N),s.interrupt?t:B):r(N)}function M(N){return He(N)?(e.consume(N),M):R(N)}function E(N){return N===47?(e.consume(N),R):N===58||N===95||an(N)?(e.consume(N),z):He(N)?(e.consume(N),E):R(N)}function z(N){return N===45||N===46||N===58||N===95||Jt(N)?(e.consume(N),z):V(N)}function V(N){return N===61?(e.consume(N),L):He(N)?(e.consume(N),V):E(N)}function L(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),f=N,K):He(N)?(e.consume(N),L):Y(N)}function K(N){return N===f?(e.consume(N),f=null,oe):N===null||Re(N)?r(N):(e.consume(N),K)}function Y(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||it(N)?V(N):(e.consume(N),Y)}function oe(N){return N===47||N===62||He(N)?E(N):r(N)}function R(N){return N===62?(e.consume(N),H):r(N)}function H(N){return N===null||Re(N)?B(N):He(N)?(e.consume(N),H):r(N)}function B(N){return N===45&&o===2?(e.consume(N),G):N===60&&o===1?(e.consume(N),ue):N===62&&o===4?(e.consume(N),A):N===63&&o===3?(e.consume(N),S):N===93&&o===5?(e.consume(N),fe):Re(N)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(MS,W,ae)(N)):N===null||Re(N)?(e.exit("htmlFlowData"),ae(N)):(e.consume(N),B)}function ae(N){return e.check(OS,le,W)(N)}function le(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),O}function O(N){return N===null||Re(N)?ae(N):(e.enter("htmlFlowData"),B(N))}function G(N){return N===45?(e.consume(N),S):B(N)}function ue(N){return N===47?(e.consume(N),u="",J):B(N)}function J(N){if(N===62){const xe=u.toLowerCase();return nh.includes(xe)?(e.consume(N),A):B(N)}return an(N)&&u.length<8?(e.consume(N),u+=String.fromCharCode(N),J):B(N)}function fe(N){return N===93?(e.consume(N),S):B(N)}function S(N){return N===62?(e.consume(N),A):N===45&&o===2?(e.consume(N),S):B(N)}function A(N){return N===null||Re(N)?(e.exit("htmlFlowData"),W(N)):(e.consume(N),A)}function W(N){return e.exit("htmlFlow"),t(N)}}function $S(e,t,r){const s=this;return o;function o(u){return Re(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):r(u)}function a(u){return s.parser.lazy[s.now().line]?r(u):t(u)}}function BS(e,t,r){return s;function s(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(vl,t,r)}}const US={name:"htmlText",tokenize:VS};function VS(e,t,r){const s=this;let o,a,u;return d;function d(S){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(S),f}function f(S){return S===33?(e.consume(S),m):S===47?(e.consume(S),V):S===63?(e.consume(S),E):an(S)?(e.consume(S),Y):r(S)}function m(S){return S===45?(e.consume(S),v):S===91?(e.consume(S),a=0,w):an(S)?(e.consume(S),M):r(S)}function v(S){return S===45?(e.consume(S),k):r(S)}function h(S){return S===null?r(S):S===45?(e.consume(S),x):Re(S)?(u=h,ue(S)):(e.consume(S),h)}function x(S){return S===45?(e.consume(S),k):h(S)}function k(S){return S===62?G(S):S===45?x(S):h(S)}function w(S){const A="CDATA[";return S===A.charCodeAt(a++)?(e.consume(S),a===A.length?j:w):r(S)}function j(S){return S===null?r(S):S===93?(e.consume(S),I):Re(S)?(u=j,ue(S)):(e.consume(S),j)}function I(S){return S===93?(e.consume(S),b):j(S)}function b(S){return S===62?G(S):S===93?(e.consume(S),b):j(S)}function M(S){return S===null||S===62?G(S):Re(S)?(u=M,ue(S)):(e.consume(S),M)}function E(S){return S===null?r(S):S===63?(e.consume(S),z):Re(S)?(u=E,ue(S)):(e.consume(S),E)}function z(S){return S===62?G(S):E(S)}function V(S){return an(S)?(e.consume(S),L):r(S)}function L(S){return S===45||Jt(S)?(e.consume(S),L):K(S)}function K(S){return Re(S)?(u=K,ue(S)):He(S)?(e.consume(S),K):G(S)}function Y(S){return S===45||Jt(S)?(e.consume(S),Y):S===47||S===62||it(S)?oe(S):r(S)}function oe(S){return S===47?(e.consume(S),G):S===58||S===95||an(S)?(e.consume(S),R):Re(S)?(u=oe,ue(S)):He(S)?(e.consume(S),oe):G(S)}function R(S){return S===45||S===46||S===58||S===95||Jt(S)?(e.consume(S),R):H(S)}function H(S){return S===61?(e.consume(S),B):Re(S)?(u=H,ue(S)):He(S)?(e.consume(S),H):oe(S)}function B(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(e.consume(S),o=S,ae):Re(S)?(u=B,ue(S)):He(S)?(e.consume(S),B):(e.consume(S),le)}function ae(S){return S===o?(e.consume(S),o=void 0,O):S===null?r(S):Re(S)?(u=ae,ue(S)):(e.consume(S),ae)}function le(S){return S===null||S===34||S===39||S===60||S===61||S===96?r(S):S===47||S===62||it(S)?oe(S):(e.consume(S),le)}function O(S){return S===47||S===62||it(S)?oe(S):r(S)}function G(S){return S===62?(e.consume(S),e.exit("htmlTextData"),e.exit("htmlText"),t):r(S)}function ue(S){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),J}function J(S){return He(S)?Ze(e,fe,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):fe(S)}function fe(S){return e.enter("htmlTextData"),u(S)}}const dd={name:"labelEnd",resolveAll:KS,resolveTo:qS,tokenize:QS},HS={tokenize:YS},WS={tokenize:XS},ZS={tokenize:GS};function KS(e){let t=-1;const r=[];for(;++t<e.length;){const s=e[t][1];if(r.push(e[t]),s.type==="labelImage"||s.type==="labelLink"||s.type==="labelEnd"){const o=s.type==="labelImage"?4:2;s.type="data",t+=o}}return e.length!==r.length&&En(e,0,e.length,r),e}function qS(e,t){let r=e.length,s=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")){s=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}},m={type:"label",start:{...e[a][1].start},end:{...e[u][1].end}},v={type:"labelText",start:{...e[a+s+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",f,t],["enter",m,t]],d=Fn(d,e.slice(a+1,a+s+3)),d=Fn(d,[["enter",v,t]]),d=Fn(d,ta(t.parser.constructs.insideSpan.null,e.slice(a+s+4,u-3),t)),d=Fn(d,[["exit",v,t],e[u-2],e[u-1],["exit",m,t]]),d=Fn(d,e.slice(u+1)),d=Fn(d,[["exit",f,t]]),En(e,a,e.length,d),e}function QS(e,t,r){const s=this;let o=s.events.length,a,u;for(;o--;)if((s.events[o][1].type==="labelImage"||s.events[o][1].type==="labelLink")&&!s.events[o][1]._balanced){a=s.events[o][1];break}return d;function d(x){return a?a._inactive?h(x):(u=s.parser.defined.includes(Gn(s.sliceSerialize({start:a.end,end:s.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelEnd"),f):r(x)}function f(x){return x===40?e.attempt(HS,v,u?v:h)(x):x===91?e.attempt(WS,v,u?m:h)(x):u?v(x):h(x)}function m(x){return e.attempt(ZS,v,h)(x)}function v(x){return t(x)}function h(x){return a._balanced=!0,r(x)}}function YS(e,t,r){return s;function s(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),o}function o(h){return it(h)?il(e,a)(h):a(h)}function a(h){return h===41?v(h):Bg(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function u(h){return it(h)?il(e,f)(h):v(h)}function d(h){return r(h)}function f(h){return h===34||h===39||h===40?Vg(e,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):v(h)}function m(h){return it(h)?il(e,v)(h):v(h)}function v(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):r(h)}}function XS(e,t,r){const s=this;return o;function o(d){return Ug.call(s,e,a,u,"reference","referenceMarker","referenceString")(d)}function a(d){return s.parser.defined.includes(Gn(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function u(d){return r(d)}}function GS(e,t,r){return s;function s(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"),t):r(a)}}const JS={name:"labelStartImage",resolveAll:dd.resolveAll,tokenize:eC};function eC(e,t,r){const s=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 s.parser.constructs?r(d):t(d)}}const tC={name:"labelStartLink",resolveAll:dd.resolveAll,tokenize:nC};function nC(e,t,r){const s=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 s.parser.constructs?r(u):t(u)}}const Ju={name:"lineEnding",tokenize:rC};function rC(e,t){return r;function r(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Ze(e,t,"linePrefix")}}const Ro={name:"thematicBreak",tokenize:iC};function iC(e,t,r){let s=0,o;return a;function a(m){return e.enter("thematicBreak"),u(m)}function u(m){return o=m,d(m)}function d(m){return m===o?(e.enter("thematicBreakSequence"),f(m)):s>=3&&(m===null||Re(m))?(e.exit("thematicBreak"),t(m)):r(m)}function f(m){return m===o?(e.consume(m),s++,f):(e.exit("thematicBreakSequence"),He(m)?Ze(e,d,"whitespace")(m):d(m))}}const gn={continuation:{tokenize:aC},exit:cC,name:"list",tokenize:oC},sC={partial:!0,tokenize:dC},lC={partial:!0,tokenize:uC};function oC(e,t,r){const s=this,o=s.events[s.events.length-1];let a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0;return d;function d(k){const w=s.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!s.containerState.marker||k===s.containerState.marker:Dc(k)){if(s.containerState.type||(s.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),k===42||k===45?e.check(Ro,r,m)(k):m(k);if(!s.interrupt||k===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(k)}return r(k)}function f(k){return Dc(k)&&++u<10?(e.consume(k),f):(!s.interrupt||u<2)&&(s.containerState.marker?k===s.containerState.marker:k===41||k===46)?(e.exit("listItemValue"),m(k)):r(k)}function m(k){return e.enter("listItemMarker"),e.consume(k),e.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||k,e.check(vl,s.interrupt?r:v,e.attempt(sC,x,h))}function v(k){return s.containerState.initialBlankLine=!0,a++,x(k)}function h(k){return He(k)?(e.enter("listItemPrefixWhitespace"),e.consume(k),e.exit("listItemPrefixWhitespace"),x):r(k)}function x(k){return s.containerState.size=a+s.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(k)}}function aC(e,t,r){const s=this;return s.containerState._closeFlow=void 0,e.check(vl,o,a);function o(d){return s.containerState.furtherBlankLines=s.containerState.furtherBlankLines||s.containerState.initialBlankLine,Ze(e,t,"listItemIndent",s.containerState.size+1)(d)}function a(d){return s.containerState.furtherBlankLines||!He(d)?(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,u(d)):(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,e.attempt(lC,t,u)(d))}function u(d){return s.containerState._closeFlow=!0,s.interrupt=void 0,Ze(e,e.attempt(gn,t,r),"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function uC(e,t,r){const s=this;return Ze(e,o,"listItemIndent",s.containerState.size+1);function o(a){const u=s.events[s.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===s.containerState.size?t(a):r(a)}}function cC(e){e.exit(this.containerState.type)}function dC(e,t,r){const s=this;return Ze(e,o,"listItemPrefixWhitespace",s.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(a){const u=s.events[s.events.length-1];return!He(a)&&u&&u[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const rh={name:"setextUnderline",resolveTo:fC,tokenize:pC};function fC(e,t){let r=e.length,s,o,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){s=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[s][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",u,t]),e.splice(a+1,0,["exit",e[s][1],t]),e[s][1].end={...e[a][1].end}):e[s][1]=u,e.push(["exit",u,t]),e}function pC(e,t,r){const s=this;let o;return a;function a(m){let v=s.events.length,h;for(;v--;)if(s.events[v][1].type!=="lineEnding"&&s.events[v][1].type!=="linePrefix"&&s.events[v][1].type!=="content"){h=s.events[v][1].type==="paragraph";break}return!s.parser.lazy[s.now().line]&&(s.interrupt||h)?(e.enter("setextHeadingLine"),o=m,u(m)):r(m)}function u(m){return e.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===o?(e.consume(m),d):(e.exit("setextHeadingLineSequence"),He(m)?Ze(e,f,"lineSuffix")(m):f(m))}function f(m){return m===null||Re(m)?(e.exit("setextHeadingLine"),t(m)):r(m)}}const mC={tokenize:hC};function hC(e){const t=this,r=e.attempt(vl,s,e.attempt(this.parser.constructs.flowInitial,o,Ze(e,e.attempt(this.parser.constructs.flow,o,e.attempt(xS,o)),"linePrefix")));return r;function s(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const gC={resolveAll:Wg()},yC=Hg("string"),vC=Hg("text");function Hg(e){return{resolveAll:Wg(e==="text"?kC:void 0),tokenize:t};function t(r){const s=this,o=this.parser.constructs[e],a=r.attempt(o,u,d);return u;function u(v){return m(v)?a(v):d(v)}function d(v){if(v===null){r.consume(v);return}return r.enter("data"),r.consume(v),f}function f(v){return m(v)?(r.exit("data"),a(v)):(r.consume(v),f)}function m(v){if(v===null)return!0;const h=o[v];let x=-1;if(h)for(;++x<h.length;){const k=h[x];if(!k.previous||k.previous.call(s,s.previous))return!0}return!1}}}function Wg(e){return t;function t(r,s){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,s):r}}function kC(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const s=e[r-1][1],o=t.sliceStream(s);let a=o.length,u=-1,d=0,f;for(;a--;){const m=o[a];if(typeof m=="string"){for(u=m.length;m.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(m===-2)f=!0,d++;else if(m!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const m={type:r===e.length||f||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?u:s.start._bufferIndex+u,_index:s.start._index+a,line:s.end.line,column:s.end.column-d,offset:s.end.offset-d},end:{...s.end}};s.end={...m.start},s.start.offset===s.end.offset?Object.assign(s,m):(e.splice(r,0,["enter",m,t],["exit",m,t]),r+=2)}r++}return e}const xC={42:gn,43:gn,45:gn,48:gn,49:gn,50:gn,51:gn,52:gn,53:gn,54:gn,55:gn,56:gn,57:gn,62:Og},_C={91:CS},wC={[-2]:Gu,[-1]:Gu,32:Gu},bC={35:DS,42:Ro,45:[rh,Ro],60:LS,61:rh,95:Ro,96:th,126:th},SC={38:Fg,92:zg},CC={[-5]:Ju,[-4]:Ju,[-3]:Ju,33:JS,38:Fg,42:Rc,60:[tS,US],91:tC,92:[jS,zg],93:dd,95:Rc,96:mS},EC={null:[Rc,gC]},NC={null:[42,95]},TC={null:[]},jC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:NC,contentInitial:_C,disable:TC,document:xC,flow:bC,flowInitial:wC,insideSpan:EC,string:SC,text:CC},Symbol.toStringTag,{value:"Module"}));function IC(e,t,r){let s={_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:K(V),check:K(L),consume:M,enter:E,exit:z,interrupt:K(L,{interrupt:!0})},m={code:null,containerState:{},defineSkip:j,events:[],now:w,parser:e,previous:null,sliceSerialize:x,sliceStream:k,write:h};let v=t.tokenize.call(m,f);return t.resolveAll&&a.push(t),m;function h(H){return u=Fn(u,H),I(),u[u.length-1]!==null?[]:(Y(t,0),m.events=ta(a,m.events,m),m.events)}function x(H,B){return RC(k(H),B)}function k(H){return DC(u,H)}function w(){const{_bufferIndex:H,_index:B,line:ae,column:le,offset:O}=s;return{_bufferIndex:H,_index:B,line:ae,column:le,offset:O}}function j(H){o[H.line]=H.column,R()}function I(){let H;for(;s._index<u.length;){const B=u[s._index];if(typeof B=="string")for(H=s._index,s._bufferIndex<0&&(s._bufferIndex=0);s._index===H&&s._bufferIndex<B.length;)b(B.charCodeAt(s._bufferIndex));else b(B)}}function b(H){v=v(H)}function M(H){Re(H)?(s.line++,s.column=1,s.offset+=H===-3?2:1,R()):H!==-1&&(s.column++,s.offset++),s._bufferIndex<0?s._index++:(s._bufferIndex++,s._bufferIndex===u[s._index].length&&(s._bufferIndex=-1,s._index++)),m.previous=H}function E(H,B){const ae=B||{};return ae.type=H,ae.start=w(),m.events.push(["enter",ae,m]),d.push(ae),ae}function z(H){const B=d.pop();return B.end=w(),m.events.push(["exit",B,m]),B}function V(H,B){Y(H,B.from)}function L(H,B){B.restore()}function K(H,B){return ae;function ae(le,O,G){let ue,J,fe,S;return Array.isArray(le)?W(le):"tokenize"in le?W([le]):A(le);function A(ye){return $e;function $e(Ne){const ee=Ne!==null&&ye[Ne],ce=Ne!==null&&ye.null,Ae=[...Array.isArray(ee)?ee:ee?[ee]:[],...Array.isArray(ce)?ce:ce?[ce]:[]];return W(Ae)(Ne)}}function W(ye){return ue=ye,J=0,ye.length===0?G:N(ye[J])}function N(ye){return $e;function $e(Ne){return S=oe(),fe=ye,ye.partial||(m.currentConstruct=ye),ye.name&&m.parser.constructs.disable.null.includes(ye.name)?Te():ye.tokenize.call(B?Object.assign(Object.create(m),B):m,f,xe,Te)(Ne)}}function xe(ye){return H(fe,S),O}function Te(ye){return S.restore(),++J<ue.length?N(ue[J]):G}}}function Y(H,B){H.resolveAll&&!a.includes(H)&&a.push(H),H.resolve&&En(m.events,B,m.events.length-B,H.resolve(m.events.slice(B),m)),H.resolveTo&&(m.events=H.resolveTo(m.events,m))}function oe(){const H=w(),B=m.previous,ae=m.currentConstruct,le=m.events.length,O=Array.from(d);return{from:le,restore:G};function G(){s=H,m.previous=B,m.currentConstruct=ae,m.events.length=le,d=O,R()}}function R(){s.line in o&&s.column<2&&(s.column=o[s.line],s.offset+=o[s.line]-1)}}function DC(e,t){const r=t.start._index,s=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let u;if(r===o)u=[e[r].slice(s,a)];else{if(u=e.slice(r,o),s>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(s):u.shift()}a>0&&u.push(e[o].slice(0,a))}return u}function RC(e,t){let r=-1;const s=[];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=t?" ":" ";break}case-1:{if(!t&&o)continue;u=" ";break}default:u=String.fromCharCode(a)}o=a===-2,s.push(u)}return s.join("")}function AC(e){const s={constructs:Lg([jC,...(e||{}).extensions||[]]),content:o(qb),defined:[],document:o(Yb),flow:o(mC),lazy:{},string:o(yC),text:o(vC)};return s;function o(a){return u;function u(d){return IC(s,a,d)}}}function PC(e){for(;!$g(e););return e}const ih=/[\0\t\n\r]/g;function LC(){let e=1,t="",r=!0,s;return o;function o(a,u,d){const f=[];let m,v,h,x,k;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(u||void 0).decode(a)),h=0,t="",r&&(a.charCodeAt(0)===65279&&h++,r=void 0);h<a.length;){if(ih.lastIndex=h,m=ih.exec(a),x=m&&m.index!==void 0?m.index:a.length,k=a.charCodeAt(x),!m){t=a.slice(h);break}if(k===10&&h===x&&s)f.push(-3),s=void 0;else switch(s&&(f.push(-5),s=void 0),h<x&&(f.push(a.slice(h,x)),e+=x-h),k){case 0:{f.push(65533),e++;break}case 9:{for(v=Math.ceil(e/4)*4,f.push(-2);e++<v;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:s=!0,e=1}h=x+1}return d&&(s&&f.push(-5),t&&f.push(t),f.push(null)),f}}const MC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function OC(e){return e.replace(MC,zC)}function zC(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),a=o===120||o===88;return Mg(r.slice(a?2:1),a?16:10)}return cd(r)||e}const Zg={}.hasOwnProperty;function FC(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),$C(r)(PC(AC(r).document().write(LC()(e,t,!0))))}function $C(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Rt),autolinkProtocol:oe,autolinkEmail:oe,atxHeading:a(kn),blockQuote:a(ce),characterEscape:oe,characterReference:oe,codeFenced:a(Ae),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:a(Ae,u),codeText:a(We,u),codeTextData:oe,data:oe,codeFlowValue:oe,definition:a(Ve),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:a(st),hardBreakEscape:a(nn),hardBreakTrailing:a(nn),htmlFlow:a(Bt,u),htmlFlowData:oe,htmlText:a(Bt,u),htmlTextData:oe,image:a(fr),label:u,link:a(Rt),listItem:a(Ut),listItemValue:x,listOrdered:a(gt,h),listUnordered:a(gt),paragraph:a(Tn),reference:N,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:a(kn),strong:a(pr),thematicBreak:a(Er)},exit:{atxHeading:f(),atxHeadingSequence:V,autolink:f(),autolinkEmail:ee,autolinkProtocol:Ne,blockQuote:f(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:Te,characterReferenceMarkerNumeric:Te,characterReferenceValue:ye,characterReference:$e,codeFenced:f(I),codeFencedFence:j,codeFencedFenceInfo:k,codeFencedFenceMeta:w,codeFlowValue:R,codeIndented:f(b),codeText:f(O),codeTextData:R,data:R,definition:f(),definitionDestinationString:z,definitionLabelString:M,definitionTitleString:E,emphasis:f(),hardBreakEscape:f(B),hardBreakTrailing:f(B),htmlFlow:f(ae),htmlFlowData:R,htmlText:f(le),htmlTextData:R,image:f(ue),label:fe,labelText:J,lineEnding:H,link:f(G),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:xe,resourceDestinationString:S,resourceTitleString:A,resource:W,setextHeading:f(Y),setextHeadingLineSequence:K,setextHeadingText:L,strong:f(),thematicBreak:f()}};Kg(t,(e||{}).mdastExtensions||[]);const r={};return s;function s(Z){let ne={type:"root",children:[]};const Ce={stack:[ne],tokenStack:[],config:t,enter:d,exit:m,buffer:u,resume:v,data:r},Pe=[];let q=-1;for(;++q<Z.length;)if(Z[q][1].type==="listOrdered"||Z[q][1].type==="listUnordered")if(Z[q][0]==="enter")Pe.push(q);else{const me=Pe.pop();q=o(Z,me,q)}for(q=-1;++q<Z.length;){const me=t[Z[q][0]];Zg.call(me,Z[q][1].type)&&me[Z[q][1].type].call(Object.assign({sliceSerialize:Z[q][2].sliceSerialize},Ce),Z[q][1])}if(Ce.tokenStack.length>0){const me=Ce.tokenStack[Ce.tokenStack.length-1];(me[1]||sh).call(Ce,void 0,me[0])}for(ne.position={start:Kr(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Kr(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},q=-1;++q<t.transforms.length;)ne=t.transforms[q](ne)||ne;return ne}function o(Z,ne,Ce){let Pe=ne-1,q=-1,me=!1,xt,Vt,tr,Bn;for(;++Pe<=Ce;){const St=Z[Pe];switch(St[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{St[0]==="enter"?q++:q--,Bn=void 0;break}case"lineEndingBlank":{St[0]==="enter"&&(xt&&!Bn&&!q&&!tr&&(tr=Pe),Bn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bn=void 0}if(!q&&St[0]==="enter"&&St[1].type==="listItemPrefix"||q===-1&&St[0]==="exit"&&(St[1].type==="listUnordered"||St[1].type==="listOrdered")){if(xt){let jn=Pe;for(Vt=void 0;jn--;){const Ht=Z[jn];if(Ht[1].type==="lineEnding"||Ht[1].type==="lineEndingBlank"){if(Ht[0]==="exit")continue;Vt&&(Z[Vt][1].type="lineEndingBlank",me=!0),Ht[1].type="lineEnding",Vt=jn}else if(!(Ht[1].type==="linePrefix"||Ht[1].type==="blockQuotePrefix"||Ht[1].type==="blockQuotePrefixWhitespace"||Ht[1].type==="blockQuoteMarker"||Ht[1].type==="listItemIndent"))break}tr&&(!Vt||tr<Vt)&&(xt._spread=!0),xt.end=Object.assign({},Vt?Z[Vt][1].start:St[1].end),Z.splice(Vt||Pe,0,["exit",xt,St[2]]),Pe++,Ce++}if(St[1].type==="listItemPrefix"){const jn={type:"listItem",_spread:!1,start:Object.assign({},St[1].start),end:void 0};xt=jn,Z.splice(Pe,0,["enter",jn,St[2]]),Pe++,Ce++,tr=void 0,Bn=!0}}}return Z[ne][1]._spread=me,Ce}function a(Z,ne){return Ce;function Ce(Pe){d.call(this,Z(Pe),Pe),ne&&ne.call(this,Pe)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(Z,ne,Ce){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([ne,Ce||void 0]),Z.position={start:Kr(ne.start),end:void 0}}function f(Z){return ne;function ne(Ce){Z&&Z.call(this,Ce),m.call(this,Ce)}}function m(Z,ne){const Ce=this.stack.pop(),Pe=this.tokenStack.pop();if(Pe)Pe[0].type!==Z.type&&(ne?ne.call(this,Z,Pe[0]):(Pe[1]||sh).call(this,Z,Pe[0]));else throw new Error("Cannot close `"+Z.type+"` ("+rl({start:Z.start,end:Z.end})+"): it’s not open");Ce.position.end=Kr(Z.end)}function v(){return ud(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function x(Z){if(this.data.expectingFirstListItemValue){const ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function k(){const Z=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=Z}function w(){const Z=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=Z}function j(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const Z=this.resume(),ne=this.stack[this.stack.length-1];ne.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const Z=this.resume(),ne=this.stack[this.stack.length-1];ne.value=Z.replace(/(\r?\n|\r)$/g,"")}function M(Z){const ne=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ne,Ce.identifier=Gn(this.sliceSerialize(Z)).toLowerCase()}function E(){const Z=this.resume(),ne=this.stack[this.stack.length-1];ne.title=Z}function z(){const Z=this.resume(),ne=this.stack[this.stack.length-1];ne.url=Z}function V(Z){const ne=this.stack[this.stack.length-1];if(!ne.depth){const Ce=this.sliceSerialize(Z).length;ne.depth=Ce}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function K(Z){const ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function Y(){this.data.setextHeadingSlurpLineEnding=void 0}function oe(Z){const Ce=this.stack[this.stack.length-1].children;let Pe=Ce[Ce.length-1];(!Pe||Pe.type!=="text")&&(Pe=er(),Pe.position={start:Kr(Z.start),end:void 0},Ce.push(Pe)),this.stack.push(Pe)}function R(Z){const ne=this.stack.pop();ne.value+=this.sliceSerialize(Z),ne.position.end=Kr(Z.end)}function H(Z){const ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=ne.children[ne.children.length-1];Ce.position.end=Kr(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ne.type)&&(oe.call(this,Z),R.call(this,Z))}function B(){this.data.atHardBreak=!0}function ae(){const Z=this.resume(),ne=this.stack[this.stack.length-1];ne.value=Z}function le(){const Z=this.resume(),ne=this.stack[this.stack.length-1];ne.value=Z}function O(){const Z=this.resume(),ne=this.stack[this.stack.length-1];ne.value=Z}function G(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ne,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function ue(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ne,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function J(Z){const ne=this.sliceSerialize(Z),Ce=this.stack[this.stack.length-2];Ce.label=OC(ne),Ce.identifier=Gn(ne).toLowerCase()}function fe(){const Z=this.stack[this.stack.length-1],ne=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const Pe=Z.children;Ce.children=Pe}else Ce.alt=ne}function S(){const Z=this.resume(),ne=this.stack[this.stack.length-1];ne.url=Z}function A(){const Z=this.resume(),ne=this.stack[this.stack.length-1];ne.title=Z}function W(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function xe(Z){const ne=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ne,Ce.identifier=Gn(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function Te(Z){this.data.characterReferenceType=Z.type}function ye(Z){const ne=this.sliceSerialize(Z),Ce=this.data.characterReferenceType;let Pe;Ce?(Pe=Mg(ne,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Pe=cd(ne);const q=this.stack[this.stack.length-1];q.value+=Pe}function $e(Z){const ne=this.stack.pop();ne.position.end=Kr(Z.end)}function Ne(Z){R.call(this,Z);const ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(Z)}function ee(Z){R.call(this,Z);const ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(Z)}function ce(){return{type:"blockquote",children:[]}}function Ae(){return{type:"code",lang:null,meta:null,value:""}}function We(){return{type:"inlineCode",value:""}}function Ve(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function st(){return{type:"emphasis",children:[]}}function kn(){return{type:"heading",depth:0,children:[]}}function nn(){return{type:"break"}}function Bt(){return{type:"html",value:""}}function fr(){return{type:"image",title:null,url:"",alt:null}}function Rt(){return{type:"link",title:null,url:"",children:[]}}function gt(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Ut(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function Tn(){return{type:"paragraph",children:[]}}function pr(){return{type:"strong",children:[]}}function er(){return{type:"text",value:""}}function Er(){return{type:"thematicBreak"}}}function Kr(e){return{line:e.line,column:e.column,offset:e.offset}}function Kg(e,t){let r=-1;for(;++r<t.length;){const s=t[r];Array.isArray(s)?Kg(e,s):BC(e,s)}}function BC(e,t){let r;for(r in t)if(Zg.call(t,r))switch(r){case"canContainEols":{const s=t[r];s&&e[r].push(...s);break}case"transforms":{const s=t[r];s&&e[r].push(...s);break}case"enter":case"exit":{const s=t[r];s&&Object.assign(e[r],s);break}}}function sh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+rl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+rl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+rl({start:t.start,end:t.end})+") is still open")}function UC(e){const t=this;t.parser=r;function r(s){return FC(s,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function VC(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function HC(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
52
- `}]}function WC(e,t){const r=t.value?t.value+`
53
- `:"",s={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(s.className=["language-"+o[0]]);let a={type:"element",tagName:"code",properties:s,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function ZC(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function KC(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function qC(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",s=String(t.identifier).toUpperCase(),o=os(s.toLowerCase()),a=e.footnoteOrder.indexOf(s);let u,d=e.footnoteCounts.get(s);d===void 0?(d=0,e.footnoteOrder.push(s),u=e.footnoteOrder.length):u=a+1,d+=1,e.footnoteCounts.set(s,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(t,f);const m={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,m),e.applyData(t,m)}function QC(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function YC(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function qg(e,t){const r=t.referenceType;let s="]";if(r==="collapsed"?s+="[]":r==="full"&&(s+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+s}];const o=e.all(t),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+=s:o.push({type:"text",value:s}),o}function XC(e,t){const r=String(t.identifier).toUpperCase(),s=e.definitionById.get(r);if(!s)return qg(e,t);const o={src:os(s.url||""),alt:t.alt};s.title!==null&&s.title!==void 0&&(o.title=s.title);const a={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,a),e.applyData(t,a)}function GC(e,t){const r={src:os(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const s={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,s),e.applyData(t,s)}function JC(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const s={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,s),e.applyData(t,s)}function eE(e,t){const r=String(t.identifier).toUpperCase(),s=e.definitionById.get(r);if(!s)return qg(e,t);const o={href:os(s.url||"")};s.title!==null&&s.title!==void 0&&(o.title=s.title);const a={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function tE(e,t){const r={href:os(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const s={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function nE(e,t,r){const s=e.all(t),o=r?rE(r):Qg(t),a={},u=[];if(typeof t.checked=="boolean"){const v=s[0];let h;v&&v.type==="element"&&v.tagName==="p"?h=v:(h={type:"element",tagName:"p",properties:{},children:[]},s.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let d=-1;for(;++d<s.length;){const v=s[d];(o||d!==0||v.type!=="element"||v.tagName!=="p")&&u.push({type:"text",value:`
54
- `}),v.type==="element"&&v.tagName==="p"&&!o?u.push(...v.children):u.push(v)}const f=s[s.length-1];f&&(o||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
55
- `});const m={type:"element",tagName:"li",properties:a,children:u};return e.patch(t,m),e.applyData(t,m)}function rE(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let s=-1;for(;!t&&++s<r.length;)t=Qg(r[s])}return t}function Qg(e){const t=e.spread;return t??e.children.length>1}function iE(e,t){const r={},s=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++o<s.length;){const u=s[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:t.ordered?"ol":"ul",properties:r,children:e.wrap(s,!0)};return e.patch(t,a),e.applyData(t,a)}function sE(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lE(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function oE(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function aE(e,t){const r=e.all(t),s=r.shift(),o=[];if(s){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([s],!0)};e.patch(t.children[0],u),o.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=sd(t.children[1]),f=Tg(t.children[t.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(t,a),e.applyData(t,a)}function uE(e,t,r){const s=r?r.children:void 0,a=(s?s.indexOf(t):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,d=u?u.length:t.children.length;let f=-1;const m=[];for(;++f<d;){const h=t.children[f],x={},k=u?u[f]:void 0;k&&(x.align=k);let w={type:"element",tagName:a,properties:x,children:[]};h&&(w.children=e.all(h),e.patch(h,w),w=e.applyData(h,w)),m.push(w)}const v={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(t,v),e.applyData(t,v)}function cE(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const lh=9,oh=32;function dE(e){const t=String(e),r=/\r?\n|\r/g;let s=r.exec(t),o=0;const a=[];for(;s;)a.push(ah(t.slice(o,s.index),o>0,!0),s[0]),o=s.index+s[0].length,s=r.exec(t);return a.push(ah(t.slice(o),o>0,!1)),a.join("")}function ah(e,t,r){let s=0,o=e.length;if(t){let a=e.codePointAt(s);for(;a===lh||a===oh;)s++,a=e.codePointAt(s)}if(r){let a=e.codePointAt(o-1);for(;a===lh||a===oh;)o--,a=e.codePointAt(o-1)}return o>s?e.slice(s,o):""}function fE(e,t){const r={type:"text",value:dE(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function pE(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const mE={blockquote:VC,break:HC,code:WC,delete:ZC,emphasis:KC,footnoteReference:qC,heading:QC,html:YC,imageReference:XC,image:GC,inlineCode:JC,linkReference:eE,link:tE,listItem:nE,list:iE,paragraph:sE,root:lE,strong:oE,table:aE,tableCell:cE,tableRow:uE,text:fE,thematicBreak:pE,toml:No,yaml:No,definition:No,footnoteDefinition:No};function No(){}const Yg=-1,na=0,sl=1,Wo=2,fd=3,pd=4,md=5,hd=6,Xg=7,Gg=8,hE=typeof self=="object"?self:globalThis,uh=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new hE[e](t)},gE=(e,t)=>{const r=(o,a)=>(e.set(a,o),o),s=o=>{if(e.has(o))return e.get(o);const[a,u]=t[o];switch(a){case na:case Yg:return r(u,o);case sl:{const d=r([],o);for(const f of u)d.push(s(f));return d}case Wo:{const d=r({},o);for(const[f,m]of u)d[s(f)]=s(m);return d}case fd:return r(new Date(u),o);case pd:{const{source:d,flags:f}=u;return r(new RegExp(d,f),o)}case md:{const d=r(new Map,o);for(const[f,m]of u)d.set(s(f),s(m));return d}case hd:{const d=r(new Set,o);for(const f of u)d.add(s(f));return d}case Xg:{const{name:d,message:f}=u;return r(uh(d,f),o)}case Gg: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(uh(a,u),o)};return s},ch=e=>gE(new Map,e)(0),qi="",{toString:yE}={},{keys:vE}=Object,Xs=e=>{const t=typeof e;if(t!=="object"||!e)return[na,t];const r=yE.call(e).slice(8,-1);switch(r){case"Array":return[sl,qi];case"Object":return[Wo,qi];case"Date":return[fd,qi];case"RegExp":return[pd,qi];case"Map":return[md,qi];case"Set":return[hd,qi];case"DataView":return[sl,r]}return r.includes("Array")?[sl,r]:r.includes("Error")?[Xg,r]:[Wo,r]},To=([e,t])=>e===na&&(t==="function"||t==="symbol"),kE=(e,t,r,s)=>{const o=(u,d)=>{const f=s.push(u)-1;return r.set(d,f),f},a=u=>{if(r.has(u))return r.get(u);let[d,f]=Xs(u);switch(d){case na:{let v=u;switch(f){case"bigint":d=Gg,v=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);v=null;break;case"undefined":return o([Yg],u)}return o([d,v],u)}case sl:{if(f){let x=u;return f==="DataView"?x=new Uint8Array(u.buffer):f==="ArrayBuffer"&&(x=new Uint8Array(u)),o([f,[...x]],u)}const v=[],h=o([d,v],u);for(const x of u)v.push(a(x));return h}case Wo:{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(t&&"toJSON"in u)return a(u.toJSON());const v=[],h=o([d,v],u);for(const x of vE(u))(e||!To(Xs(u[x])))&&v.push([a(x),a(u[x])]);return h}case fd:return o([d,u.toISOString()],u);case pd:{const{source:v,flags:h}=u;return o([d,{source:v,flags:h}],u)}case md:{const v=[],h=o([d,v],u);for(const[x,k]of u)(e||!(To(Xs(x))||To(Xs(k))))&&v.push([a(x),a(k)]);return h}case hd:{const v=[],h=o([d,v],u);for(const x of u)(e||!To(Xs(x)))&&v.push(a(x));return h}}const{message:m}=u;return o([d,{name:f,message:m}],u)};return a},dh=(e,{json:t,lossy:r}={})=>{const s=[];return kE(!(t||r),!!t,new Map,s)(e),s},Zo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ch(dh(e,t)):structuredClone(e):(e,t)=>ch(dh(e,t));function xE(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function _E(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function wE(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||xE,s=e.options.footnoteBackLabel||_E,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 m=e.footnoteById.get(e.footnoteOrder[f]);if(!m)continue;const v=e.all(m),h=String(m.identifier).toUpperCase(),x=os(h.toLowerCase());let k=0;const w=[],j=e.footnoteCounts.get(h);for(;j!==void 0&&++k<=j;){w.length>0&&w.push({type:"text",value:" "});let M=typeof r=="string"?r:r(f,k);typeof M=="string"&&(M={type:"text",value:M}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+x+(k>1?"-"+k:""),dataFootnoteBackref:"",ariaLabel:typeof s=="string"?s:s(f,k),className:["data-footnote-backref"]},children:Array.isArray(M)?M:[M]})}const I=v[v.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const M=I.children[I.children.length-1];M&&M.type==="text"?M.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...w)}else v.push(...w);const b={type:"element",tagName:"li",properties:{id:t+"fn-"+x},children:e.wrap(v,!0)};e.patch(m,b),d.push(b)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Zo(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 ra=(function(e){if(e==null)return EE;if(typeof e=="function")return ia(e);if(typeof e=="object")return Array.isArray(e)?bE(e):SE(e);if(typeof e=="string")return CE(e);throw new Error("Expected function, string, or object as test")});function bE(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=ra(e[r]);return ia(s);function s(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function SE(e){const t=e;return ia(r);function r(s){const o=s;let a;for(a in e)if(o[a]!==t[a])return!1;return!0}}function CE(e){return ia(t);function t(r){return r&&r.type===e}}function ia(e){return t;function t(r,s,o){return!!(NE(r)&&e.call(this,r,typeof s=="number"?s:void 0,o||void 0))}}function EE(){return!0}function NE(e){return e!==null&&typeof e=="object"&&"type"in e}const Jg=[],TE=!0,Ac=!1,jE="skip";function ey(e,t,r,s){let o;typeof t=="function"&&typeof r!="function"?(s=r,r=t):o=t;const a=ra(o),u=s?-1:1;d(e,void 0,[])();function d(f,m,v){const h=f&&typeof f=="object"?f:{};if(typeof h.type=="string"){const k=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(f.type+(k?"<"+k+">":""))+")"})}return x;function x(){let k=Jg,w,j,I;if((!t||a(f,m,v[v.length-1]||void 0))&&(k=IE(r(f,v)),k[0]===Ac))return k;if("children"in f&&f.children){const b=f;if(b.children&&k[0]!==jE)for(j=(s?b.children.length:-1)+u,I=v.concat(b);j>-1&&j<b.children.length;){const M=b.children[j];if(w=d(M,j,I)(),w[0]===Ac)return w;j=typeof w[1]=="number"?w[1]:j+u}}return k}}}function IE(e){return Array.isArray(e)?e:typeof e=="number"?[TE,e]:e==null?Jg:[e]}function gd(e,t,r,s){let o,a,u;typeof t=="function"&&typeof r!="function"?(a=void 0,u=t,o=r):(a=t,u=r,o=s),ey(e,a,d,o);function d(f,m){const v=m[m.length-1],h=v?v.children.indexOf(f):void 0;return u(f,h,v)}}const Pc={}.hasOwnProperty,DE={};function RE(e,t){const r=t||DE,s=new Map,o=new Map,a=new Map,u={...mE,...r.handlers},d={all:m,applyData:PE,definitionById:s,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:u,one:f,options:r,patch:AE,wrap:ME};return gd(e,function(v){if(v.type==="definition"||v.type==="footnoteDefinition"){const h=v.type==="definition"?s:o,x=String(v.identifier).toUpperCase();h.has(x)||h.set(x,v)}}),d;function f(v,h){const x=v.type,k=d.handlers[x];if(Pc.call(d.handlers,x)&&k)return k(d,v,h);if(d.options.passThrough&&d.options.passThrough.includes(x)){if("children"in v){const{children:j,...I}=v,b=Zo(I);return b.children=d.all(v),b}return Zo(v)}return(d.options.unknownHandler||LE)(d,v,h)}function m(v){const h=[];if("children"in v){const x=v.children;let k=-1;for(;++k<x.length;){const w=d.one(x[k],v);if(w){if(k&&x[k-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=fh(w.value)),!Array.isArray(w)&&w.type==="element")){const j=w.children[0];j&&j.type==="text"&&(j.value=fh(j.value))}Array.isArray(w)?h.push(...w):h.push(w)}}}return h}}function AE(e,t){e.position&&(t.position=xb(e))}function PE(e,t){let r=t;if(e&&e.data){const s=e.data.hName,o=e.data.hChildren,a=e.data.hProperties;if(typeof s=="string")if(r.type==="element")r.tagName=s;else{const u="children"in r?r.children:[r];r={type:"element",tagName:s,properties:{},children:u}}r.type==="element"&&a&&Object.assign(r.properties,Zo(a)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function LE(e,t){const r=t.data||{},s="value"in t&&!(Pc.call(r,"hProperties")||Pc.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function ME(e,t){const r=[];let s=-1;for(t&&r.push({type:"text",value:`
58
- `});++s<e.length;)s&&r.push({type:"text",value:`
59
- `}),r.push(e[s]);return t&&e.length>0&&r.push({type:"text",value:`
60
- `}),r}function fh(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function ph(e,t){const r=RE(e,t),s=r.one(e,void 0),o=wE(r),a=Array.isArray(s)?{type:"root",children:s}:s||{type:"root",children:[]};return o&&a.children.push({type:"text",value:`
61
- `},o),a}function OE(e,t){return e&&"run"in e?async function(r,s){const o=ph(r,{file:s,...t});await e.run(o,s)}:function(r,s){return ph(r,{file:s,...e||t})}}function mh(e){if(e)throw e}var ec,hh;function zE(){if(hh)return ec;hh=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=function(m){return typeof Array.isArray=="function"?Array.isArray(m):t.call(m)==="[object Array]"},a=function(m){if(!m||t.call(m)!=="[object Object]")return!1;var v=e.call(m,"constructor"),h=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!v&&!h)return!1;var x;for(x in m);return typeof x>"u"||e.call(m,x)},u=function(m,v){r&&v.name==="__proto__"?r(m,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):m[v.name]=v.newValue},d=function(m,v){if(v==="__proto__")if(e.call(m,v)){if(s)return s(m,v).value}else return;return m[v]};return ec=function f(){var m,v,h,x,k,w,j=arguments[0],I=1,b=arguments.length,M=!1;for(typeof j=="boolean"&&(M=j,j=arguments[1]||{},I=2),(j==null||typeof j!="object"&&typeof j!="function")&&(j={});I<b;++I)if(m=arguments[I],m!=null)for(v in m)h=d(j,v),x=d(m,v),j!==x&&(M&&x&&(a(x)||(k=o(x)))?(k?(k=!1,w=h&&o(h)?h:[]):w=h&&a(h)?h:{},u(j,{name:v,newValue:f(M,w,x)})):typeof x<"u"&&u(j,{name:v,newValue:x}));return j},ec}var FE=zE();const tc=Uc(FE);function Lc(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $E(){const e=[],t={run:r,use:s};return t;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,...m){const v=e[++a];let h=-1;if(f){u(f);return}for(;++h<o.length;)(m[h]===null||m[h]===void 0)&&(m[h]=o[h]);o=m,v?BE(v,d)(...m):u(null,...m)}}function s(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function BE(e,t){let r;return s;function s(...u){const d=e.length>u.length;let f;d&&u.push(o);try{f=e.apply(this,u)}catch(m){const v=m;if(d&&r)throw v;return o(v)}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,t(u,...d))}function a(u){o(null,u)}}const ur={basename:UE,dirname:VE,extname:HE,join:WE,sep:"/"};function UE(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');kl(e);let r=0,s=-1,o=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(a){r=o+1;break}}else s<0&&(a=!0,s=o+1);return s<0?"":e.slice(r,s)}if(t===e)return"";let u=-1,d=t.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)===t.codePointAt(d--)?d<0&&(s=o):(d=-1,s=u));return r===s?s=u:s<0&&(s=e.length),e.slice(r,s)}function VE(e){if(kl(e),e.length===0)return".";let t=-1,r=e.length,s;for(;--r;)if(e.codePointAt(r)===47){if(s){t=r;break}}else s||(s=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function HE(e){kl(e);let t=e.length,r=-1,s=0,o=-1,a=0,u;for(;t--;){const d=e.codePointAt(t);if(d===47){if(u){s=t+1;break}continue}r<0&&(u=!0,r=t+1),d===46?o<0?o=t:a!==1&&(a=1):o>-1&&(a=-1)}return o<0||r<0||a===0||a===1&&o===r-1&&o===s+1?"":e.slice(o,r)}function WE(...e){let t=-1,r;for(;++t<e.length;)kl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":ZE(r)}function ZE(e){kl(e);const t=e.codePointAt(0)===47;let r=KE(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function KE(e,t){let r="",s=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||s!==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="",s=0):(r=r.slice(0,f),s=r.length-1-r.lastIndexOf("/")),o=u,a=0;continue}}else if(r.length>0){r="",s=0,o=u,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",s=2)}else r.length>0?r+="/"+e.slice(o+1,u):r=e.slice(o+1,u),s=u-o-1;o=u,a=0}else d===46&&a>-1?a++:a=-1}return r}function kl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const qE={cwd:QE};function QE(){return"/"}function Mc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function YE(e){if(typeof e=="string")e=new URL(e);else if(!Mc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return XE(e)}function XE(e){if(e.hostname!==""){const s=new TypeError('File URL host must be "localhost" or empty on darwin');throw s.code="ERR_INVALID_FILE_URL_HOST",s}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const s=t.codePointAt(r+2);if(s===70||s===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const nc=["history","path","basename","stem","extname","dirname"];class ty{constructor(t){let r;t?Mc(t)?r={path:t}:typeof t=="string"||GE(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":qE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let s=-1;for(;++s<nc.length;){const a=nc[s];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let o;for(o in r)nc.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?ur.basename(this.path):void 0}set basename(t){ic(t,"basename"),rc(t,"basename"),this.path=ur.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ur.dirname(this.path):void 0}set dirname(t){gh(this.basename,"dirname"),this.path=ur.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ur.extname(this.path):void 0}set extname(t){if(rc(t,"extname"),gh(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ur.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Mc(t)&&(t=YE(t)),ic(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ur.basename(this.path,this.extname):void 0}set stem(t){ic(t,"stem"),rc(t,"stem"),this.path=ur.join(this.dirname||"",t+(this.extname||""))}fail(t,r,s){const o=this.message(t,r,s);throw o.fatal=!0,o}info(t,r,s){const o=this.message(t,r,s);return o.fatal=void 0,o}message(t,r,s){const o=new tn(t,r,s);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function rc(e,t){if(e&&e.includes(ur.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ur.sep+"`")}function ic(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function gh(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function GE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const JE=(function(e){const s=this.constructor.prototype,o=s[e],a=function(){return o.apply(a,arguments)};return Object.setPrototypeOf(a,s),a}),eN={}.hasOwnProperty;class yd extends JE{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=$E()}copy(){const t=new yd;let r=-1;for(;++r<this.attachers.length;){const s=this.attachers[r];t.use(...s)}return t.data(tc(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(oc("data",this.frozen),this.namespace[t]=r,this):eN.call(this.namespace,t)&&this.namespace[t]||void 0:t?(oc("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...s]=this.attachers[this.freezeIndex];if(s[0]===!1)continue;s[0]===!0&&(s[0]=void 0);const o=r.call(t,...s);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=jo(t),s=this.parser||this.Parser;return sc("parse",s),s(String(r),r)}process(t,r){const s=this;return this.freeze(),sc("process",this.parser||this.Parser),lc("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(a,u){const d=jo(t),f=s.parse(d);s.run(f,d,function(v,h,x){if(v||!h||!x)return m(v);const k=h,w=s.stringify(k,x);rN(w)?x.value=w:x.result=w,m(v,x)});function m(v,h){v||!h?u(v):a?a(h):r(void 0,h)}}}processSync(t){let r=!1,s;return this.freeze(),sc("processSync",this.parser||this.Parser),lc("processSync",this.compiler||this.Compiler),this.process(t,o),vh("processSync","process",r),s;function o(a,u){r=!0,mh(a),s=u}}run(t,r,s){yh(t),this.freeze();const o=this.transformers;return!s&&typeof r=="function"&&(s=r,r=void 0),s?a(void 0,s):new Promise(a);function a(u,d){const f=jo(r);o.run(t,f,m);function m(v,h,x){const k=h||t;v?d(v):u?u(k):s(void 0,k,x)}}}runSync(t,r){let s=!1,o;return this.run(t,r,a),vh("runSync","run",s),o;function a(u,d){mh(u),o=d,s=!0}}stringify(t,r){this.freeze();const s=jo(r),o=this.compiler||this.Compiler;return lc("stringify",o),yh(t),o(t,s)}use(t,...r){const s=this.attachers,o=this.namespace;if(oc("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(m){if(typeof m=="function")f(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[v,...h]=m;f(v,h)}else u(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function u(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(m.plugins),m.settings&&(o.settings=tc(!0,o.settings,m.settings))}function d(m){let v=-1;if(m!=null)if(Array.isArray(m))for(;++v<m.length;){const h=m[v];a(h)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function f(m,v){let h=-1,x=-1;for(;++h<s.length;)if(s[h][0]===m){x=h;break}if(x===-1)s.push([m,...v]);else if(v.length>0){let[k,...w]=v;const j=s[x][1];Lc(j)&&Lc(k)&&(k=tc(!0,j,k)),s[x]=[m,k,...w]}}}}const tN=new yd().freeze();function sc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function lc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function oc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function yh(e){if(!Lc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function vh(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function jo(e){return nN(e)?e:new ty(e)}function nN(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function rN(e){return typeof e=="string"||iN(e)}function iN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sN="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",kh=[],xh={allowDangerousHtml:!0},lN=/^(https?|ircs?|mailto|xmpp)$/i,oN=[{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 Oc(e){const t=aN(e),r=uN(e);return cN(t.runSync(t.parse(r),r),e)}function aN(e){const t=e.rehypePlugins||kh,r=e.remarkPlugins||kh,s=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...xh}:xh;return tN().use(UC).use(r).use(OE,s).use(t)}function uN(e){const t=e.children||"",r=new ty;return typeof t=="string"&&(r.value=t),r}function cN(e,t){const r=t.allowedElements,s=t.allowElement,o=t.components,a=t.disallowedElements,u=t.skipHtml,d=t.unwrapDisallowed,f=t.urlTransform||dN;for(const v of oN)Object.hasOwn(t,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+sN+v.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),gd(e,m),Cb(e,{Fragment:y.Fragment,components:o,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function m(v,h,x){if(v.type==="raw"&&x&&typeof h=="number")return u?x.children.splice(h,1):x.children[h]={type:"text",value:v.value},h;if(v.type==="element"){let k;for(k in Xu)if(Object.hasOwn(Xu,k)&&Object.hasOwn(v.properties,k)){const w=v.properties[k],j=Xu[k];(j===null||j.includes(v.tagName))&&(v.properties[k]=f(String(w||""),k,v))}}if(v.type==="element"){let k=r?!r.includes(v.tagName):a?a.includes(v.tagName):!1;if(!k&&s&&typeof h=="number"&&(k=!s(v,h,x)),k&&x&&typeof h=="number")return d&&v.children?x.children.splice(h,1,...v.children):x.children.splice(h,1),h}}}function dN(e){const t=e.indexOf(":"),r=e.indexOf("?"),s=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||r!==-1&&t>r||s!==-1&&t>s||lN.test(e.slice(0,t))?e:""}function _h(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let s=0,o=r.indexOf(t);for(;o!==-1;)s++,o=r.indexOf(t,o+t.length);return s}function fN(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function pN(e,t,r){const o=ra((r||{}).ignore||[]),a=mN(t);let u=-1;for(;++u<a.length;)ey(e,"text",d);function d(m,v){let h=-1,x;for(;++h<v.length;){const k=v[h],w=x?x.children:void 0;if(o(k,w?w.indexOf(k):void 0,x))return;x=k}if(x)return f(m,v)}function f(m,v){const h=v[v.length-1],x=a[u][0],k=a[u][1];let w=0;const I=h.children.indexOf(m);let b=!1,M=[];x.lastIndex=0;let E=x.exec(m.value);for(;E;){const z=E.index,V={index:E.index,input:E.input,stack:[...v,m]};let L=k(...E,V);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?x.lastIndex=z+1:(w!==z&&M.push({type:"text",value:m.value.slice(w,z)}),Array.isArray(L)?M.push(...L):L&&M.push(L),w=z+E[0].length,b=!0),!x.global)break;E=x.exec(m.value)}return b?(w<m.value.length&&M.push({type:"text",value:m.value.slice(w)}),h.children.splice(I,1,...M)):M=[m],I+M.length}}function mN(e){const t=[];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 s=-1;for(;++s<r.length;){const o=r[s];t.push([hN(o[0]),gN(o[1])])}return t}function hN(e){return typeof e=="string"?new RegExp(fN(e),"g"):e}function gN(e){return typeof e=="function"?e:function(){return e}}const ac="phrasing",uc=["autolink","link","image","label"];function yN(){return{transforms:[SN],enter:{literalAutolink:kN,literalAutolinkEmail:cc,literalAutolinkHttp:cc,literalAutolinkWww:cc},exit:{literalAutolink:bN,literalAutolinkEmail:wN,literalAutolinkHttp:xN,literalAutolinkWww:_N}}}function vN(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ac,notInConstruct:uc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ac,notInConstruct:uc},{character:":",before:"[ps]",after:"\\/",inConstruct:ac,notInConstruct:uc}]}}function kN(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function cc(e){this.config.enter.autolinkProtocol.call(this,e)}function xN(e){this.config.exit.autolinkProtocol.call(this,e)}function _N(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function wN(e){this.config.exit.autolinkEmail.call(this,e)}function bN(e){this.exit(e)}function SN(e){pN(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,CN],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),EN]],{ignore:["link","linkReference"]})}function CN(e,t,r,s,o){let a="";if(!ny(o)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!NN(r)))return!1;const u=TN(r+s);if(!u[0])return!1;const d={type:"link",title:null,url:a+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function EN(e,t,r,s){return!ny(s,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function NN(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function TN(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],s=r.indexOf(")");const o=_h(e,"(");let a=_h(e,")");for(;s!==-1&&o>a;)e+=r.slice(0,s+1),r=r.slice(s+1),s=r.indexOf(")"),a++;return[e,r]}function ny(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||bi(r)||ea(r))&&(!t||r!==47)}ry.peek=ON;function jN(){this.buffer()}function IN(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function DN(){this.buffer()}function RN(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function AN(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Gn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function PN(e){this.exit(e)}function LN(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Gn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function MN(e){this.exit(e)}function ON(){return"["}function ry(e,t,r,s){const o=r.createTracker(s);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 zN(){return{enter:{gfmFootnoteCallString:jN,gfmFootnoteCall:IN,gfmFootnoteDefinitionLabelString:DN,gfmFootnoteDefinition:RN},exit:{gfmFootnoteCallString:AN,gfmFootnoteCall:PN,gfmFootnoteDefinitionLabelString:LN,gfmFootnoteDefinition:MN}}}function FN(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:ry},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(s,o,a,u){const d=a.createTracker(u);let f=d.move("[^");const m=a.enter("footnoteDefinition"),v=a.enter("label");return f+=d.move(a.safe(a.associationId(s),{before:f,after:"]"})),v(),f+=d.move("]:"),s.children&&s.children.length>0&&(d.shift(4),f+=d.move((t?`
62
- `:" ")+a.indentLines(a.containerFlow(s,d.current()),t?iy:$N))),m(),f}}function $N(e,t,r){return t===0?e:iy(e,t,r)}function iy(e,t,r){return(r?"":" ")+e}const BN=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];sy.peek=ZN;function UN(){return{canContainEols:["delete"],enter:{strikethrough:HN},exit:{strikethrough:WN}}}function VN(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:BN}],handlers:{delete:sy}}}function HN(e){this.enter({type:"delete",children:[]},e)}function WN(e){this.exit(e)}function sy(e,t,r,s){const o=r.createTracker(s),a=r.enter("strikethrough");let u=o.move("~~");return u+=r.containerPhrasing(e,{...o.current(),before:u,after:"~"}),u+=o.move("~~"),a(),u}function ZN(){return"~"}function KN(e){return e.length}function qN(e,t){const r=t||{},s=(r.align||[]).concat(),o=r.stringLength||KN,a=[],u=[],d=[],f=[];let m=0,v=-1;for(;++v<e.length;){const j=[],I=[];let b=-1;for(e[v].length>m&&(m=e[v].length);++b<e[v].length;){const M=QN(e[v][b]);if(r.alignDelimiters!==!1){const E=o(M);I[b]=E,(f[b]===void 0||E>f[b])&&(f[b]=E)}j.push(M)}u[v]=j,d[v]=I}let h=-1;if(typeof s=="object"&&"length"in s)for(;++h<m;)a[h]=wh(s[h]);else{const j=wh(s);for(;++h<m;)a[h]=j}h=-1;const x=[],k=[];for(;++h<m;){const j=a[h];let I="",b="";j===99?(I=":",b=":"):j===108?I=":":j===114&&(b=":");let M=r.alignDelimiters===!1?1:Math.max(1,f[h]-I.length-b.length);const E=I+"-".repeat(M)+b;r.alignDelimiters!==!1&&(M=I.length+M+b.length,M>f[h]&&(f[h]=M),k[h]=M),x[h]=E}u.splice(1,0,x),d.splice(1,0,k),v=-1;const w=[];for(;++v<u.length;){const j=u[v],I=d[v];h=-1;const b=[];for(;++h<m;){const M=j[h]||"";let E="",z="";if(r.alignDelimiters!==!1){const V=f[h]-(I[h]||0),L=a[h];L===114?E=" ".repeat(V):L===99?V%2?(E=" ".repeat(V/2+.5),z=" ".repeat(V/2-.5)):(E=" ".repeat(V/2),z=E):z=" ".repeat(V)}r.delimiterStart!==!1&&!h&&b.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&M==="")&&(r.delimiterStart!==!1||h)&&b.push(" "),r.alignDelimiters!==!1&&b.push(E),b.push(M),r.alignDelimiters!==!1&&b.push(z),r.padding!==!1&&b.push(" "),(r.delimiterEnd!==!1||h!==m-1)&&b.push("|")}w.push(r.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return w.join(`
63
- `)}function QN(e){return e==null?"":String(e)}function wh(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function YN(e,t,r,s){const o=r.enter("blockquote"),a=r.createTracker(s);a.move("> "),a.shift(2);const u=r.indentLines(r.containerFlow(e,a.current()),XN);return o(),u}function XN(e,t,r){return">"+(r?"":" ")+e}function GN(e,t){return bh(e,t.inConstruct,!0)&&!bh(e,t.notInConstruct,!1)}function bh(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let s=-1;for(;++s<t.length;)if(e.includes(t[s]))return!0;return!1}function Sh(e,t,r,s){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
64
- `&&GN(r.stack,r.unsafe[o]))return/[ \t]/.test(s.before)?"":" ";return`\\
65
- `}function JN(e,t){const r=String(e);let s=r.indexOf(t),o=s,a=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;s!==-1;)s===o?++a>u&&(u=a):a=1,o=s+t.length,s=r.indexOf(t,o);return u}function eT(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function tT(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function nT(e,t,r,s){const o=tT(r),a=e.value||"",u=o==="`"?"GraveAccent":"Tilde";if(eT(e,r)){const h=r.enter("codeIndented"),x=r.indentLines(a,rT);return h(),x}const d=r.createTracker(s),f=o.repeat(Math.max(JN(a,o)+1,3)),m=r.enter("codeFenced");let v=d.move(f);if(e.lang){const h=r.enter(`codeFencedLang${u}`);v+=d.move(r.safe(e.lang,{before:v,after:" ",encode:["`"],...d.current()})),h()}if(e.lang&&e.meta){const h=r.enter(`codeFencedMeta${u}`);v+=d.move(" "),v+=d.move(r.safe(e.meta,{before:v,after:`
66
- `,encode:["`"],...d.current()})),h()}return v+=d.move(`
67
- `),a&&(v+=d.move(a+`
68
- `)),v+=d.move(f),m(),v}function rT(e,t,r){return(r?"":" ")+e}function vd(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function iT(e,t,r,s){const o=vd(r),a=o==='"'?"Quote":"Apostrophe",u=r.enter("definition");let d=r.enter("label");const f=r.createTracker(s);let m=f.move("[");return m+=f.move(r.safe(r.associationId(e),{before:m,after:"]",...f.current()})),m+=f.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),m+=f.move("<"),m+=f.move(r.safe(e.url,{before:m,after:">",...f.current()})),m+=f.move(">")):(d=r.enter("destinationRaw"),m+=f.move(r.safe(e.url,{before:m,after:e.title?" ":`
69
- `,...f.current()}))),d(),e.title&&(d=r.enter(`title${a}`),m+=f.move(" "+o),m+=f.move(r.safe(e.title,{before:m,after:o,...f.current()})),m+=f.move(o),d()),u(),m}function sT(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function fl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ko(e,t,r){const s=rs(e),o=rs(t);return s===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:s===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}}ly.peek=lT;function ly(e,t,r,s){const o=sT(r),a=r.enter("emphasis"),u=r.createTracker(s),d=u.move(o);let f=u.move(r.containerPhrasing(e,{after:o,before:d,...u.current()}));const m=f.charCodeAt(0),v=Ko(s.before.charCodeAt(s.before.length-1),m,o);v.inside&&(f=fl(m)+f.slice(1));const h=f.charCodeAt(f.length-1),x=Ko(s.after.charCodeAt(0),h,o);x.inside&&(f=f.slice(0,-1)+fl(h));const k=u.move(o);return a(),r.attentionEncodeSurroundingInfo={after:x.outside,before:v.outside},d+f+k}function lT(e,t,r){return r.options.emphasis||"*"}function oT(e,t){let r=!1;return gd(e,function(s){if("value"in s&&/\r?\n|\r/.test(s.value)||s.type==="break")return r=!0,Ac}),!!((!e.depth||e.depth<3)&&ud(e)&&(t.options.setext||r))}function aT(e,t,r,s){const o=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(s);if(oT(e,r)){const v=r.enter("headingSetext"),h=r.enter("phrasing"),x=r.containerPhrasing(e,{...a.current(),before:`
70
- `,after:`
71
- `});return h(),v(),x+`
72
- `+(o===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
73
- `))+1))}const u="#".repeat(o),d=r.enter("headingAtx"),f=r.enter("phrasing");a.move(u+" ");let m=r.containerPhrasing(e,{before:"# ",after:`
74
- `,...a.current()});return/^[\t ]/.test(m)&&(m=fl(m.charCodeAt(0))+m.slice(1)),m=m?u+" "+m:u,r.options.closeAtx&&(m+=" "+u),f(),d(),m}oy.peek=uT;function oy(e){return e.value||""}function uT(){return"<"}ay.peek=cT;function ay(e,t,r,s){const o=vd(r),a=o==='"'?"Quote":"Apostrophe",u=r.enter("image");let d=r.enter("label");const f=r.createTracker(s);let m=f.move("![");return m+=f.move(r.safe(e.alt,{before:m,after:"]",...f.current()})),m+=f.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),m+=f.move("<"),m+=f.move(r.safe(e.url,{before:m,after:">",...f.current()})),m+=f.move(">")):(d=r.enter("destinationRaw"),m+=f.move(r.safe(e.url,{before:m,after:e.title?" ":")",...f.current()}))),d(),e.title&&(d=r.enter(`title${a}`),m+=f.move(" "+o),m+=f.move(r.safe(e.title,{before:m,after:o,...f.current()})),m+=f.move(o),d()),m+=f.move(")"),u(),m}function cT(){return"!"}uy.peek=dT;function uy(e,t,r,s){const o=e.referenceType,a=r.enter("imageReference");let u=r.enter("label");const d=r.createTracker(s);let f=d.move("![");const m=r.safe(e.alt,{before:f,after:"]",...d.current()});f+=d.move(m+"]["),u();const v=r.stack;r.stack=[],u=r.enter("reference");const h=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=v,a(),o==="full"||!m||m!==h?f+=d.move(h+"]"):o==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function dT(){return"!"}cy.peek=fT;function cy(e,t,r){let s=e.value||"",o="`",a=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(s);)o+="`";for(/[^ \r\n]/.test(s)&&(/^[ \r\n]/.test(s)&&/[ \r\n]$/.test(s)||/^`|`$/.test(s))&&(s=" "+s+" ");++a<r.unsafe.length;){const u=r.unsafe[a],d=r.compilePattern(u);let f;if(u.atBreak)for(;f=d.exec(s);){let m=f.index;s.charCodeAt(m)===10&&s.charCodeAt(m-1)===13&&m--,s=s.slice(0,m)+" "+s.slice(f.index+1)}}return o+s+o}function fT(){return"`"}function dy(e,t){const r=ud(e);return!!(!t.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))}fy.peek=pT;function fy(e,t,r,s){const o=vd(r),a=o==='"'?"Quote":"Apostrophe",u=r.createTracker(s);let d,f;if(dy(e,r)){const v=r.stack;r.stack=[],d=r.enter("autolink");let h=u.move("<");return h+=u.move(r.containerPhrasing(e,{before:h,after:">",...u.current()})),h+=u.move(">"),d(),r.stack=v,h}d=r.enter("link"),f=r.enter("label");let m=u.move("[");return m+=u.move(r.containerPhrasing(e,{before:m,after:"](",...u.current()})),m+=u.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),m+=u.move("<"),m+=u.move(r.safe(e.url,{before:m,after:">",...u.current()})),m+=u.move(">")):(f=r.enter("destinationRaw"),m+=u.move(r.safe(e.url,{before:m,after:e.title?" ":")",...u.current()}))),f(),e.title&&(f=r.enter(`title${a}`),m+=u.move(" "+o),m+=u.move(r.safe(e.title,{before:m,after:o,...u.current()})),m+=u.move(o),f()),m+=u.move(")"),d(),m}function pT(e,t,r){return dy(e,r)?"<":"["}py.peek=mT;function py(e,t,r,s){const o=e.referenceType,a=r.enter("linkReference");let u=r.enter("label");const d=r.createTracker(s);let f=d.move("[");const m=r.containerPhrasing(e,{before:f,after:"]",...d.current()});f+=d.move(m+"]["),u();const v=r.stack;r.stack=[],u=r.enter("reference");const h=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=v,a(),o==="full"||!m||m!==h?f+=d.move(h+"]"):o==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function mT(){return"["}function kd(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function hT(e){const t=kd(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function gT(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function my(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function yT(e,t,r,s){const o=r.enter("list"),a=r.bulletCurrent;let u=e.ordered?gT(r):kd(r);const d=e.ordered?u==="."?")":".":hT(r);let f=t&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!e.ordered){const v=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&v&&(!v.children||!v.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),my(r)===u&&v){let h=-1;for(;++h<e.children.length;){const x=e.children[h];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(u=d),r.bulletCurrent=u;const m=r.containerFlow(e,s);return r.bulletLastUsed=u,r.bulletCurrent=a,o(),m}function vT(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function kT(e,t,r,s){const o=vT(r);let a=r.bulletCurrent||kd(r);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let u=a.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const d=r.createTracker(s);d.move(a+" ".repeat(u-a.length)),d.shift(u);const f=r.enter("listItem"),m=r.indentLines(r.containerFlow(e,d.current()),v);return f(),m;function v(h,x,k){return x?(k?"":" ".repeat(u))+h:(k?a:a+" ".repeat(u-a.length))+h}}function xT(e,t,r,s){const o=r.enter("paragraph"),a=r.enter("phrasing"),u=r.containerPhrasing(e,s);return a(),o(),u}const _T=ra(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function wT(e,t,r,s){return(e.children.some(function(u){return _T(u)})?r.containerPhrasing:r.containerFlow).call(r,e,s)}function bT(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}hy.peek=ST;function hy(e,t,r,s){const o=bT(r),a=r.enter("strong"),u=r.createTracker(s),d=u.move(o+o);let f=u.move(r.containerPhrasing(e,{after:o,before:d,...u.current()}));const m=f.charCodeAt(0),v=Ko(s.before.charCodeAt(s.before.length-1),m,o);v.inside&&(f=fl(m)+f.slice(1));const h=f.charCodeAt(f.length-1),x=Ko(s.after.charCodeAt(0),h,o);x.inside&&(f=f.slice(0,-1)+fl(h));const k=u.move(o+o);return a(),r.attentionEncodeSurroundingInfo={after:x.outside,before:v.outside},d+f+k}function ST(e,t,r){return r.options.strong||"*"}function CT(e,t,r,s){return r.safe(e.value,s)}function ET(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function NT(e,t,r){const s=(my(r)+(r.options.ruleSpaces?" ":"")).repeat(ET(r));return r.options.ruleSpaces?s.slice(0,-1):s}const gy={blockquote:YN,break:Sh,code:nT,definition:iT,emphasis:ly,hardBreak:Sh,heading:aT,html:oy,image:ay,imageReference:uy,inlineCode:cy,link:fy,linkReference:py,list:yT,listItem:kT,paragraph:xT,root:wT,strong:hy,text:CT,thematicBreak:NT};function TT(){return{enter:{table:jT,tableData:Ch,tableHeader:Ch,tableRow:DT},exit:{codeText:RT,table:IT,tableData:dc,tableHeader:dc,tableRow:dc}}}function jT(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function IT(e){this.exit(e),this.data.inTable=void 0}function DT(e){this.enter({type:"tableRow",children:[]},e)}function dc(e){this.exit(e)}function Ch(e){this.enter({type:"tableCell",children:[]},e)}function RT(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,AT));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function AT(e,t){return t==="|"?t:e}function PT(e){const t=e||{},r=t.tableCellPadding,s=t.tablePipeAlign,o=t.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:x,table:u,tableCell:f,tableRow:d}};function u(k,w,j,I){return m(v(k,j,I),k.align)}function d(k,w,j,I){const b=h(k,j,I),M=m([b]);return M.slice(0,M.indexOf(`
76
- `))}function f(k,w,j,I){const b=j.enter("tableCell"),M=j.enter("phrasing"),E=j.containerPhrasing(k,{...I,before:a,after:a});return M(),b(),E}function m(k,w){return qN(k,{align:w,alignDelimiters:s,padding:r,stringLength:o})}function v(k,w,j){const I=k.children;let b=-1;const M=[],E=w.enter("table");for(;++b<I.length;)M[b]=h(I[b],w,j);return E(),M}function h(k,w,j){const I=k.children;let b=-1;const M=[],E=w.enter("tableRow");for(;++b<I.length;)M[b]=f(I[b],k,w,j);return E(),M}function x(k,w,j){let I=gy.inlineCode(k,w,j);return j.stack.includes("tableCell")&&(I=I.replace(/\|/g,"\\$&")),I}}function LT(){return{exit:{taskListCheckValueChecked:Eh,taskListCheckValueUnchecked:Eh,paragraph:OT}}}function MT(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:zT}}}function Eh(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function OT(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const s=r.children[0];if(s&&s.type==="text"){const o=t.children;let a=-1,u;for(;++a<o.length;){const d=o[a];if(d.type==="paragraph"){u=d;break}}u===r&&(s.value=s.value.slice(1),s.value.length===0?r.children.shift():r.position&&s.position&&typeof s.position.start.offset=="number"&&(s.position.start.column++,s.position.start.offset++,r.position.start=Object.assign({},s.position.start)))}}this.exit(e)}function zT(e,t,r,s){const o=e.children[0],a=typeof e.checked=="boolean"&&o&&o.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",d=r.createTracker(s);a&&d.move(u);let f=gy.listItem(e,t,r,{...s,...d.current()});return a&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),f;function m(v){return v+u}}function FT(){return[yN(),zN(),UN(),TT(),LT()]}function $T(e){return{extensions:[vN(),FN(e),VN(),PT(e),MT()]}}const BT={tokenize:KT,partial:!0},yy={tokenize:qT,partial:!0},vy={tokenize:QT,partial:!0},ky={tokenize:YT,partial:!0},UT={tokenize:XT,partial:!0},xy={name:"wwwAutolink",tokenize:WT,previous:wy},_y={name:"protocolAutolink",tokenize:ZT,previous:by},Cr={name:"emailAutolink",tokenize:HT,previous:Sy},dr={};function VT(){return{text:dr}}let vi=48;for(;vi<123;)dr[vi]=Cr,vi++,vi===58?vi=65:vi===91&&(vi=97);dr[43]=Cr;dr[45]=Cr;dr[46]=Cr;dr[95]=Cr;dr[72]=[Cr,_y];dr[104]=[Cr,_y];dr[87]=[Cr,xy];dr[119]=[Cr,xy];function HT(e,t,r){const s=this;let o,a;return u;function u(h){return!zc(h)||!Sy.call(s,s.previous)||xd(s.events)?r(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(h))}function d(h){return zc(h)?(e.consume(h),d):h===64?(e.consume(h),f):r(h)}function f(h){return h===46?e.check(UT,v,m)(h):h===45||h===95||Jt(h)?(a=!0,e.consume(h),f):v(h)}function m(h){return e.consume(h),o=!0,f}function v(h){return a&&o&&an(s.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):r(h)}}function WT(e,t,r){const s=this;return o;function o(u){return u!==87&&u!==119||!wy.call(s,s.previous)||xd(s.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(BT,e.attempt(yy,e.attempt(vy,a),r),r)(u))}function a(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function ZT(e,t,r){const s=this;let o="",a=!1;return u;function u(h){return(h===72||h===104)&&by.call(s,s.previous)&&!xd(s.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(h),e.consume(h),d):r(h)}function d(h){if(an(h)&&o.length<5)return o+=String.fromCodePoint(h),e.consume(h),d;if(h===58){const x=o.toLowerCase();if(x==="http"||x==="https")return e.consume(h),f}return r(h)}function f(h){return h===47?(e.consume(h),a?m:(a=!0,f)):r(h)}function m(h){return h===null||Ho(h)||it(h)||bi(h)||ea(h)?r(h):e.attempt(yy,e.attempt(vy,v),r)(h)}function v(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function KT(e,t,r){let s=0;return o;function o(u){return(u===87||u===119)&&s<3?(s++,e.consume(u),o):u===46&&s===3?(e.consume(u),a):r(u)}function a(u){return u===null?r(u):t(u)}}function qT(e,t,r){let s,o,a;return u;function u(m){return m===46||m===95?e.check(ky,f,d)(m):m===null||it(m)||bi(m)||m!==45&&ea(m)?f(m):(a=!0,e.consume(m),u)}function d(m){return m===95?s=!0:(o=s,s=void 0),e.consume(m),u}function f(m){return o||s||!a?r(m):t(m)}}function QT(e,t){let r=0,s=0;return o;function o(u){return u===40?(r++,e.consume(u),o):u===41&&s<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(ky,t,a)(u):u===null||it(u)||bi(u)?t(u):(e.consume(u),o)}function a(u){return u===41&&s++,e.consume(u),o}}function YT(e,t,r){return s;function s(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),s):d===38?(e.consume(d),a):d===93?(e.consume(d),o):d===60||d===null||it(d)||bi(d)?t(d):r(d)}function o(d){return d===null||d===40||d===91||it(d)||bi(d)?t(d):s(d)}function a(d){return an(d)?u(d):r(d)}function u(d){return d===59?(e.consume(d),s):an(d)?(e.consume(d),u):r(d)}}function XT(e,t,r){return s;function s(a){return e.consume(a),o}function o(a){return Jt(a)?r(a):t(a)}}function wy(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||it(e)}function by(e){return!an(e)}function Sy(e){return!(e===47||zc(e))}function zc(e){return e===43||e===45||e===46||e===95||Jt(e)}function xd(e){let t=e.length,r=!1;for(;t--;){const s=e[t][1];if((s.type==="labelLink"||s.type==="labelImage")&&!s._balanced){r=!0;break}if(s._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const GT={tokenize:lj,partial:!0};function JT(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:rj,continuation:{tokenize:ij},exit:sj}},text:{91:{name:"gfmFootnoteCall",tokenize:nj},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ej,resolveTo:tj}}}}function ej(e,t,r){const s=this;let o=s.events.length;const a=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let u;for(;o--;){const f=s.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 m=Gn(s.sliceSerialize({start:u.end,end:s.now()}));return m.codePointAt(0)!==94||!a.includes(m.slice(1))?r(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function tj(e,t){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 s={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",s,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",u,t],["exit",u,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",s,t]];return e.splice(r,e.length-r+1,...d),e}function nj(e,t,r){const s=this,o=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let a=0,u;return d;function d(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),f}function f(h){return h!==94?r(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",m)}function m(h){if(a>999||h===93&&!u||h===null||h===91||it(h))return r(h);if(h===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return o.includes(Gn(s.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(h)}return it(h)||(u=!0),a++,e.consume(h),h===92?v:m}function v(h){return h===91||h===92||h===93?(e.consume(h),a++,m):m(h)}}function rj(e,t,r){const s=this,o=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let a,u=0,d;return f;function f(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",v):r(w)}function v(w){if(u>999||w===93&&!d||w===null||w===91||it(w))return r(w);if(w===93){e.exit("chunkString");const j=e.exit("gfmFootnoteDefinitionLabelString");return a=Gn(s.sliceSerialize(j)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return it(w)||(d=!0),u++,e.consume(w),w===92?h:v}function h(w){return w===91||w===92||w===93?(e.consume(w),u++,v):v(w)}function x(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),o.includes(a)||o.push(a),Ze(e,k,"gfmFootnoteDefinitionWhitespace")):r(w)}function k(w){return t(w)}}function ij(e,t,r){return e.check(vl,t,e.attempt(GT,t,r))}function sj(e){e.exit("gfmFootnoteDefinition")}function lj(e,t,r){const s=this;return Ze(e,o,"gfmFootnoteDefinitionIndent",5);function o(a){const u=s.events[s.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(a):r(a)}}function oj(e){let r=(e||{}).singleTilde;const s={name:"strikethrough",tokenize:a,resolveAll:o};return r==null&&(r=!0),{text:{126:s},insideSpan:{null:[s]},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 m=f;for(;m--;)if(u[m][0]==="exit"&&u[m][1].type==="strikethroughSequenceTemporary"&&u[m][1]._open&&u[f][1].end.offset-u[f][1].start.offset===u[m][1].end.offset-u[m][1].start.offset){u[f][1].type="strikethroughSequence",u[m][1].type="strikethroughSequence";const v={type:"strikethrough",start:Object.assign({},u[m][1].start),end:Object.assign({},u[f][1].end)},h={type:"strikethroughText",start:Object.assign({},u[m][1].end),end:Object.assign({},u[f][1].start)},x=[["enter",v,d],["enter",u[m][1],d],["exit",u[m][1],d],["enter",h,d]],k=d.parser.constructs.insideSpan.null;k&&En(x,x.length,0,ta(k,u.slice(m+1,f),d)),En(x,x.length,0,[["exit",h,d],["enter",u[f][1],d],["exit",u[f][1],d],["exit",v,d]]),En(u,m-1,f-m+3,x),f=m+x.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 m=this.previous,v=this.events;let h=0;return x;function x(w){return m===126&&v[v.length-1][1].type!=="characterEscape"?f(w):(u.enter("strikethroughSequenceTemporary"),k(w))}function k(w){const j=rs(m);if(w===126)return h>1?f(w):(u.consume(w),h++,k);if(h<2&&!r)return f(w);const I=u.exit("strikethroughSequenceTemporary"),b=rs(w);return I._open=!b||b===2&&!!j,I._close=!j||j===2&&!!b,d(w)}}}class aj{constructor(){this.map=[]}add(t,r,s){uj(this,t,r,s)}consume(t){if(this.map.sort(function(a,u){return a[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const s=[];for(;r>0;)r-=1,s.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];s.push(t.slice()),t.length=0;let o=s.pop();for(;o;){for(const a of o)t.push(a);o=s.pop()}this.map.length=0}}function uj(e,t,r,s){let o=0;if(!(r===0&&s.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=r,e.map[o][2].push(...s);return}o+=1}e.map.push([t,r,s])}}function cj(e,t){let r=!1;const s=[];for(;t<e.length;){const o=e[t];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&s.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=s.length-1;s[a]=s[a]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return s}function dj(){return{flow:{null:{name:"table",tokenize:fj,resolveAll:pj}}}}function fj(e,t,r){const s=this;let o=0,a=0,u;return d;function d(R){let H=s.events.length-1;for(;H>-1;){const le=s.events[H][1].type;if(le==="lineEnding"||le==="linePrefix")H--;else break}const B=H>-1?s.events[H][1].type:null,ae=B==="tableHead"||B==="tableRow"?L:f;return ae===L&&s.parser.lazy[s.now().line]?r(R):ae(R)}function f(R){return e.enter("tableHead"),e.enter("tableRow"),m(R)}function m(R){return R===124||(u=!0,a+=1),v(R)}function v(R){return R===null?r(R):Re(R)?a>1?(a=0,s.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),k):r(R):He(R)?Ze(e,v,"whitespace")(R):(a+=1,u&&(u=!1,o+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),u=!0,v):(e.enter("data"),h(R)))}function h(R){return R===null||R===124||it(R)?(e.exit("data"),v(R)):(e.consume(R),R===92?x:h)}function x(R){return R===92||R===124?(e.consume(R),h):h(R)}function k(R){return s.interrupt=!1,s.parser.lazy[s.now().line]?r(R):(e.enter("tableDelimiterRow"),u=!1,He(R)?Ze(e,w,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):w(R))}function w(R){return R===45||R===58?I(R):R===124?(u=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),j):V(R)}function j(R){return He(R)?Ze(e,I,"whitespace")(R):I(R)}function I(R){return R===58?(a+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),b):R===45?(a+=1,b(R)):R===null||Re(R)?z(R):V(R)}function b(R){return R===45?(e.enter("tableDelimiterFiller"),M(R)):V(R)}function M(R){return R===45?(e.consume(R),M):R===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(R))}function E(R){return He(R)?Ze(e,z,"whitespace")(R):z(R)}function z(R){return R===124?w(R):R===null||Re(R)?!u||o!==a?V(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):V(R)}function V(R){return r(R)}function L(R){return e.enter("tableRow"),K(R)}function K(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),K):R===null||Re(R)?(e.exit("tableRow"),t(R)):He(R)?Ze(e,K,"whitespace")(R):(e.enter("data"),Y(R))}function Y(R){return R===null||R===124||it(R)?(e.exit("data"),K(R)):(e.consume(R),R===92?oe:Y)}function oe(R){return R===92||R===124?(e.consume(R),Y):Y(R)}}function pj(e,t){let r=-1,s=!0,o=0,a=[0,0,0,0],u=[0,0,0,0],d=!1,f=0,m,v,h;const x=new aj;for(;++r<e.length;){const k=e[r],w=k[1];k[0]==="enter"?w.type==="tableHead"?(d=!1,f!==0&&(Nh(x,t,f,m,v),v=void 0,f=0),m={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},x.add(r,0,[["enter",m,t]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(s=!0,h=void 0,a=[0,0,0,0],u=[0,r+1,0,0],d&&(d=!1,v={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},x.add(r,0,[["enter",v,t]])),o=w.type==="tableDelimiterRow"?2:v?3:1):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(s=!1,u[2]===0&&(a[1]!==0&&(u[0]=u[1],h=Io(x,t,a,o,void 0,h),a=[0,0,0,0]),u[2]=r)):w.type==="tableCellDivider"&&(s?s=!1:(a[1]!==0&&(u[0]=u[1],h=Io(x,t,a,o,void 0,h)),a=u,u=[a[1],r,0,0])):w.type==="tableHead"?(d=!0,f=r):w.type==="tableRow"||w.type==="tableDelimiterRow"?(f=r,a[1]!==0?(u[0]=u[1],h=Io(x,t,a,o,r,h)):u[1]!==0&&(h=Io(x,t,u,o,r,h)),o=0):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(u[3]=r)}for(f!==0&&Nh(x,t,f,m,v),x.consume(t.events),r=-1;++r<t.events.length;){const k=t.events[r];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=cj(t.events,r))}return e}function Io(e,t,r,s,o,a){const u=s===1?"tableHeader":s===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(a.end=Object.assign({},Yi(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const f=Yi(t.events,r[1]);if(a={type:u,start:Object.assign({},f),end:Object.assign({},f)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const m=Yi(t.events,r[2]),v=Yi(t.events,r[3]),h={type:d,start:Object.assign({},m),end:Object.assign({},v)};if(e.add(r[2],0,[["enter",h,t]]),s!==2){const x=t.events[r[2]],k=t.events[r[3]];if(x[1].end=Object.assign({},k[1].end),x[1].type="chunkText",x[1].contentType="text",r[3]>r[2]+1){const w=r[2]+1,j=r[3]-r[2]-1;e.add(w,j,[])}}e.add(r[3]+1,0,[["exit",h,t]])}return o!==void 0&&(a.end=Object.assign({},Yi(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function Nh(e,t,r,s,o){const a=[],u=Yi(t.events,r);o&&(o.end=Object.assign({},u),a.push(["exit",o,t])),s.end=Object.assign({},u),a.push(["exit",s,t]),e.add(r+1,0,a)}function Yi(e,t){const r=e[t],s=r[0]==="enter"?"start":"end";return r[1][s]}const mj={name:"tasklistCheck",tokenize:gj};function hj(){return{text:{91:mj}}}function gj(e,t,r){const s=this;return o;function o(f){return s.previous!==null||!s._gfmTasklistFirstContentOfListItem?r(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),a)}function a(f){return it(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 Re(f)?t(f):He(f)?e.check({tokenize:yj},t,r)(f):r(f)}}function yj(e,t,r){return Ze(e,s,"whitespace");function s(o){return o===null?r(o):t(o)}}function vj(e){return Lg([VT(),JT(),oj(e),dj(),hj()])}const kj={};function Fc(e){const t=this,r=e||kj,s=t.data(),o=s.micromarkExtensions||(s.micromarkExtensions=[]),a=s.fromMarkdownExtensions||(s.fromMarkdownExtensions=[]),u=s.toMarkdownExtensions||(s.toMarkdownExtensions=[]);o.push(vj(r)),a.push(FT()),u.push($T(r))}function xj(e,t){return e.filter(r=>(r.related_docs??[]).includes(t)).map(({id:r,title:s,status:o})=>({id:r,title:s,status:o})).sort((r,s)=>r.id.localeCompare(s.id,"en",{numeric:!0}))}const _j=/^---[ \t]*\r?\n/,wj=/^---[ \t]*$/,Th="\uFEFF";function bj(e,t){const r=e.startsWith(Th),s=r?e.slice(1):e,o=Sj(s,t);return r?Th+o:o}function Sj(e,t){if(!_j.test(e))return e;const r=e.split(`
77
- `);let s=-1;for(let m=1;m<r.length;m++)if(wj.test(r[m].replace(/\r$/,""))){s=m;break}if(s===-1)return e;const o=[];let a=1;for(;a<s;){const m=r[a].replace(/\r$/,"");if(/^related_docs\s*:/.test(m)){for(a++;a<s&&/^\s*-\s/.test(r[a].replace(/\r$/,""));)a++;continue}o.push(r[a]),a++}const u=t.length>0?`related_docs: [${t.map(m=>JSON.stringify(m)).join(", ")}]`:null;if(u!==null){const m=o.findIndex(v=>/^created\s*:/.test(v.replace(/\r$/,"")));m!==-1?o.splice(m,0,u):o.push(u)}const d=[r[0],...o].join(`
78
- `),f=r.slice(s).join(`
79
- `);return`${d}
80
- ${f}`}const Cj="_view_1ko9s_1",Ej="_tree_1ko9s_8",Nj="_treeTitle_1ko9s_16",Tj="_treeRoot_1ko9s_22",jj="_treeChildren_1ko9s_23",Ij="_dirName_1ko9s_33",Dj="_fileBtn_1ko9s_41",Rj="_fileBtnActive_1ko9s_61",Aj="_detail_1ko9s_68",Pj="_docPath_1ko9s_75",Lj="_refs_1ko9s_82",Mj="_refsTitle_1ko9s_90",Oj="_refsList_1ko9s_96",zj="_refBtn_1ko9s_105",Fj="_refId_1ko9s_124",$j="_refStatus_1ko9s_131",Bj="_markdown_1ko9s_138",Uj="_muted_1ko9s_157",Vj="_broken_1ko9s_162",Hj="_error_1ko9s_167",ut={view:Cj,tree:Ej,treeTitle:Nj,treeRoot:Tj,treeChildren:jj,dirName:Ij,fileBtn:Dj,fileBtnActive:Rj,detail:Aj,docPath:Pj,refs:Lj,refsTitle:Mj,refsList:Oj,refBtn:zj,refId:Fj,refStatus:$j,markdown:Bj,muted:Uj,broken:Vj,error:Hj};function Wj({board:e,onOpen:t}){const{t:r}=bt(),[s,o]=C.useState(null),[a,u]=C.useState(!1),[d,f]=C.useState(null),[m,v]=C.useState(null),[h,x]=C.useState(null),k=C.useRef(null),w=C.useMemo(()=>nd(r,e.config.columns),[r,e.config.columns]);C.useEffect(()=>{let E=!0;const z=new AbortController;return(async()=>{try{const V=await $h(z.signal);E&&(o(V),u(!1))}catch{E&&u(!0)}})(),()=>{E=!1,z.abort()}},[e]);const j=async E=>{f(E),k.current=E,v(null),x(null);try{const z=await Bh(E);if(k.current!==E)return;v(z)}catch(z){if(k.current!==E)return;z instanceof xi&&(z.status===404||z.status===403)?v("broken"):x(z instanceof Error?z.message:r("docs.loadError"))}},I=C.useMemo(()=>d===null?[]:xj(e.tasks.map(E=>({id:E.frontmatter.id,title:E.frontmatter.title,status:E.frontmatter.status,related_docs:E.frontmatter.related_docs})),d),[e.tasks,d]),b=C.useMemo(()=>new Map(e.tasks.map(E=>[E.frontmatter.id,E])),[e.tasks]),M=E=>y.jsx("li",{children:E.type==="dir"?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:ut.dirName,children:E.name}),E.children&&E.children.length>0&&y.jsx("ul",{className:ut.treeChildren,children:E.children.map(M)})]}):y.jsx("button",{type:"button",className:`${ut.fileBtn} ${d===E.path?ut.fileBtnActive:""}`,onClick:()=>void j(E.path),"aria-current":d===E.path?"true":void 0,children:E.name})},E.path);return y.jsxs("div",{className:ut.view,children:[y.jsxs("nav",{className:ut.tree,"aria-label":r("docs.view.treeTitle"),children:[y.jsx("h2",{className:ut.treeTitle,children:r("docs.view.treeTitle")}),a?y.jsx("p",{className:ut.error,role:"alert",children:r("docs.treeError")}):s===null?y.jsx("p",{className:ut.muted,children:r("board.loading")}):s.length===0?y.jsx("p",{className:ut.muted,children:r("docs.pickerEmpty")}):y.jsx("ul",{className:ut.treeRoot,children:s.map(M)})]}),y.jsxs("section",{className:ut.detail,"aria-label":r("view.docs"),children:[h&&y.jsx("p",{className:ut.error,role:"alert",children:h}),d===null?y.jsx("p",{className:ut.muted,children:r("docs.view.selectPrompt")}):y.jsxs(y.Fragment,{children:[y.jsx("p",{className:ut.docPath,children:d}),y.jsxs("div",{className:ut.refs,children:[y.jsx("h3",{className:ut.refsTitle,children:r("docs.view.referencedBy")}),I.length===0?y.jsx("p",{className:ut.muted,children:r("docs.view.noRefs")}):y.jsx("ul",{className:ut.refsList,children:I.map(E=>{const z=b.get(E.id);return y.jsx("li",{children:y.jsxs("button",{type:"button",className:ut.refBtn,onClick:()=>z&&t(z),disabled:!z,children:[y.jsx("span",{className:ut.refId,children:E.id})," ",E.title,y.jsx("span",{className:ut.refStatus,children:w(E.status)})]})},E.id)})})]}),m===null?y.jsx("p",{className:ut.muted,children:r("board.loading")}):m==="broken"?y.jsx("p",{className:ut.broken,children:r("docs.broken")}):y.jsx("div",{className:ut.markdown,children:y.jsx(Oc,{remarkPlugins:[Fc],children:m.content})})]})]})]})}const Zj="_view_1b67y_1",Kj="_sidebar_1b67y_7",qj="_sectionTitle_1b67y_14",Qj="_fileItem_1b67y_23",Yj="_fileItemActive_1b67y_41",Xj="_tree_1b67y_46",Gj="_treeDir_1b67y_50",Jj="_catalogItem_1b67y_56",e2="_catalogName_1b67y_61",t2="_catalogDesc_1b67y_65",n2="_main_1b67y_69",r2="_mainHeader_1b67y_77",i2="_mainPath_1b67y_84",s2="_editor_1b67y_91",l2="_notice_1b67y_103",o2="_footer_1b67y_112",a2="_error_1b67y_119",u2="_saved_1b67y_124",c2="_btn_1b67y_129",d2="_btnPrimary_1b67y_136",f2="_empty_1b67y_147",et={view:Zj,sidebar:Kj,sectionTitle:qj,fileItem:Qj,fileItemActive:Yj,tree:Xj,treeDir:Gj,catalogItem:Jj,catalogName:e2,catalogDesc:t2,main:n2,mainHeader:r2,mainPath:i2,editor:s2,notice:l2,footer:o2,error:a2,saved:u2,btn:c2,btnPrimary:d2,empty:f2};function p2({board:e}){const{t}=bt(),r=e.config.aiConfigPaths,s=e.config.aiConfigPaths.rootFiles,[o,a]=C.useState([]),[u,d]=C.useState([]),[f,m]=C.useState(null),[v,h]=C.useState(""),[x,k]=C.useState(0),[w,j]=C.useState(""),[I,b]=C.useState("idle"),[M,E]=C.useState(null);C.useEffect(()=>{let R=!0;return(async()=>{try{const[H,B]=await Promise.all([Bk(),Uk()]);R&&(a(H),d(B))}catch{}})(),()=>{R=!1}},[e]);const z=C.useMemo(()=>f!==null&&s.includes(f),[f,s]),V=f!==null&&f.endsWith(".json"),L=w!==v,K=async R=>{m(R),E(null),b("idle");try{const H=await Fk(R);h(H.content),j(H.content),k(H.mtimeMs)}catch(H){H instanceof xi&&H.status===404?(h(""),j(""),k(0),E(t("files.notFound"))):(E(H instanceof Error?H.message:t("files.loadError")),h(""),j(""))}},Y=async()=>{if(f!==null){if(V)try{JSON.parse(w)}catch{E(t("files.invalidJson"));return}b("saving"),E(null);try{const R=await $k(f,w,x);h(R.content),k(R.mtimeMs),b("saved")}catch(R){b("idle"),R instanceof xi&&R.status===409?E(t("files.conflict")):E(R instanceof Error?R.message:t("files.saveError"))}}},oe=(R,H=0)=>R.flatMap(B=>B.type==="dir"?[y.jsxs("div",{className:et.treeDir,style:{paddingLeft:H*12},children:[B.name,"/"]},B.path),...oe(B.children??[],H+1)]:[y.jsx("button",{type:"button",className:`${et.fileItem} ${f===B.path?et.fileItemActive:""}`,style:{paddingLeft:H*12+6},onClick:()=>void K(B.path),children:B.name},B.path)]);return y.jsxs("div",{className:et.view,children:[y.jsxs("div",{className:et.sidebar,children:[y.jsx("div",{className:et.sectionTitle,children:t("files.settings")}),[...r.settingsFiles,...s].map(R=>y.jsx("button",{type:"button",className:`${et.fileItem} ${f===R?et.fileItemActive:""}`,onClick:()=>void K(R),children:R},R)),y.jsx("div",{className:et.sectionTitle,children:t("files.browse")}),y.jsx("div",{className:et.tree,children:oe(o)}),y.jsx("div",{className:et.sectionTitle,children:t("files.catalog")}),u.length===0?y.jsx("div",{className:et.catalogDesc,children:t("files.catalogEmpty")}):u.map(R=>y.jsx("div",{className:et.catalogItem,children:y.jsxs("button",{type:"button",className:et.fileItem,onClick:()=>void K(R.path),children:[y.jsx("span",{className:et.catalogName,children:R.name??t("files.noName")}),R.description&&y.jsx("div",{className:et.catalogDesc,children:R.description})]})},R.path))]}),y.jsx("div",{className:et.main,children:f===null?y.jsx("div",{className:et.empty,children:t("files.selectPrompt")}):y.jsxs(y.Fragment,{children:[y.jsx("div",{className:et.mainHeader,children:y.jsx("span",{className:et.mainPath,children:f})}),y.jsx("textarea",{className:et.editor,value:w,onChange:R=>{j(R.target.value),b("idle")},spellCheck:!1,"aria-label":f}),z&&y.jsx("div",{className:et.notice,children:t("files.restartNotice")}),y.jsxs("div",{className:et.footer,children:[M&&y.jsx("span",{className:et.error,children:M}),I==="saved"&&!L&&y.jsx("span",{className:et.saved,children:t("files.saved")}),y.jsx("span",{style:{flex:1}}),y.jsx("button",{type:"button",className:et.btn,onClick:()=>void K(f),children:t("files.reload")}),y.jsx("button",{type:"button",className:`${et.btn} ${et.btnPrimary}`,onClick:()=>void Y(),disabled:!L||I==="saving",children:t(I==="saving"?"files.saving":"files.save")})]})]})})]})}function m2(e,t){const r=[],s=new Set;for(const d of e)s.has(d.id)||(s.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 t){const f=d.milestone!==null&&s.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 h2="_view_o329y_1",g2="_viewEmpty_o329y_7",y2="_sidebar_o329y_14",v2="_sidebarTitle_o329y_22",k2="_navList_o329y_29",x2="_sideEmpty_o329y_30",_2="_navBtn_o329y_46",w2="_navBtnActive_o329y_66",b2="_navLabel_o329y_72",S2="_navCount_o329y_78",C2="_detail_o329y_90",E2="_sectionTitle_o329y_96",N2="_histStatus_o329y_105",T2="_milestone_o329y_112",j2="_milestoneactive_o329y_121",I2="_milestonedone_o329y_125",D2="_milestoneplanned_o329y_129",R2="_msInfo_o329y_133",A2="_msTitle_o329y_138",P2="_msStatus_o329y_142",L2="_msProgress_o329y_147",M2="_month_o329y_151",O2="_monthHeader_o329y_155",z2="_histEntry_o329y_163",F2="_histId_o329y_175",$2="_histTitle_o329y_182",B2="_histSummary_o329y_187",U2="_empty_o329y_192",Fe={view:h2,viewEmpty:g2,sidebar:y2,sidebarTitle:v2,navList:k2,sideEmpty:x2,navBtn:_2,navBtnActive:w2,navLabel:b2,navCount:S2,detail:C2,sectionTitle:E2,histStatus:N2,milestone:T2,milestoneactive:j2,milestonedone:I2,milestoneplanned:D2,msInfo:R2,msTitle:A2,msStatus:P2,msProgress:L2,month:M2,monthHeader:O2,histEntry:z2,histId:F2,histTitle:$2,histSummary:B2,empty:U2},V2={planned:"milestone.status.planned",active:"milestone.status.active",done:"milestone.status.done"};function jh(e){var s;const t=vg(e),r=t[t.length-1];return r?{summary:r.message,date:((s=r.timestamp)==null?void 0:s.slice(0,7))??null}:{summary:"",date:null}}function H2({board:e,onOpen:t}){const{t:r}=bt(),[s,o]=C.useState([]),[a,u]=C.useState(null);C.useEffect(()=>{let b=!0;const M=new AbortController;return(async()=>{try{const E=await zh(M.signal);b&&o(E.tasks)}catch{b&&o([])}})(),()=>{b=!1,M.abort()}},[e]);const d=C.useMemo(()=>m2(e.config.milestones,e.tasks.map(b=>({milestone:b.frontmatter.milestone,done:b.frontmatter.status==="done"}))),[e.config.milestones,e.tasks]),f=C.useMemo(()=>{const b=[],M=new Set;for(const z of e.tasks){if(z.frontmatter.status!=="done")continue;M.add(z.frontmatter.id);const{summary:V,date:L}=jh(z.body);b.push({id:z.frontmatter.id,title:z.frontmatter.title,month:L??z.frontmatter.updated.slice(0,7),summary:V,task:z})}for(const z of s){if(M.has(z.id))continue;const{summary:V,date:L}=jh(z.body);b.push({id:z.id,title:z.id,month:L??"----",summary:V})}const E=new Map;for(const z of b){const V=E.get(z.month)??[];V.push(z),E.set(z.month,V)}return[...E.entries()].sort((z,V)=>V[0].localeCompare(z[0])).map(([z,V])=>({month:z,items:V.sort((L,K)=>L.id.localeCompare(K.id,"en",{numeric:!0}))}))},[e.tasks,s]),m=C.useMemo(()=>nd(r,e.config.columns),[r,e.config.columns]),v=C.useMemo(()=>new Set(e.config.milestones.map(b=>b.id)),[e.config.milestones]),h=b=>e.tasks.filter(M=>b===null?M.frontmatter.milestone===null||!v.has(M.frontmatter.milestone):M.frontmatter.milestone===b).sort((M,E)=>M.frontmatter.id.localeCompare(E.frontmatter.id,"en",{numeric:!0})),k=a!==null&&(a.kind==="milestone"&&d.milestones.some(b=>b.milestone.id===a.id)||a.kind==="unassigned"&&d.unassigned.total>0||a.kind==="month"&&f.some(b=>b.month===a.month))?a:f.length>0?{kind:"month",month:f[0].month}:d.milestones.length>0?{kind:"milestone",id:d.milestones[0].milestone.id}:d.unassigned.total>0?{kind:"unassigned"}:null,w=b=>k===null?!1:b.kind==="milestone"?k.kind==="milestone"&&k.id===b.id:b.kind==="month"?k.kind==="month"&&k.month===b.month:k.kind==="unassigned";if(k===null)return y.jsx("div",{className:Fe.viewEmpty,children:y.jsx("div",{className:Fe.empty,children:r("milestone.empty")})});const j=b=>{const M=b!==null?b.milestone.title:r("milestone.unassignedTasks"),E=b!==null?Fe[`milestone${b.milestone.status}`]:Fe.milestoneplanned,z=b!==null?b.done:d.unassigned.done,V=b!==null?b.total:d.unassigned.total,L=h(b!==null?b.milestone.id:null);return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:`${Fe.milestone} ${E}`,children:[y.jsxs("div",{className:Fe.msInfo,children:[y.jsx("div",{className:Fe.msTitle,children:M}),b!==null&&y.jsx("span",{className:Fe.msStatus,children:r(V2[b.milestone.status])})]}),y.jsx("div",{className:Fe.msProgress,children:y.jsx(kg,{done:z,total:V})})]}),y.jsx("p",{className:Fe.sectionTitle,children:r("milestone.tasks")}),L.length===0?y.jsx("div",{className:Fe.empty,children:r("column.empty")}):L.map(K=>y.jsxs("div",{className:Fe.histEntry,role:"button",tabIndex:0,onClick:()=>t(K),onKeyDown:Y=>{(Y.key==="Enter"||Y.key===" ")&&(Y.preventDefault(),t(K))},children:[y.jsx("span",{className:Fe.histId,children:K.frontmatter.id}),y.jsx("span",{className:Fe.histTitle,children:K.frontmatter.title}),y.jsx("span",{className:Fe.histStatus,children:m(K.frontmatter.status)})]},K.frontmatter.id))]})},I=b=>{const M=f.find(E=>E.month===b);return M?y.jsxs("section",{className:Fe.month,children:[y.jsx("div",{className:Fe.monthHeader,children:M.month}),M.items.map(E=>y.jsxs("div",{className:Fe.histEntry,role:E.task?"button":void 0,tabIndex:E.task?0:void 0,onClick:()=>E.task&&t(E.task),onKeyDown:z=>{(z.key==="Enter"||z.key===" ")&&E.task&&(z.preventDefault(),t(E.task))},children:[y.jsx("span",{className:Fe.histId,children:E.id}),y.jsx("span",{className:Fe.histTitle,children:E.title}),E.summary&&y.jsx("span",{className:Fe.histSummary,children:E.summary})]},E.id))]}):null};return y.jsxs("div",{className:Fe.view,children:[y.jsxs("aside",{className:Fe.sidebar,"aria-label":r("view.milestones"),children:[y.jsx("p",{className:Fe.sidebarTitle,children:r("milestone.roadmap")}),d.milestones.length===0&&d.unassigned.total===0?y.jsx("p",{className:Fe.sideEmpty,children:r("milestone.empty")}):y.jsxs("ul",{className:Fe.navList,children:[d.milestones.map(b=>y.jsx("li",{children:y.jsxs("button",{type:"button",className:`${Fe.navBtn} ${w({kind:"milestone",id:b.milestone.id})?Fe.navBtnActive:""}`,onClick:()=>u({kind:"milestone",id:b.milestone.id}),children:[y.jsx("span",{className:Fe.navLabel,children:b.milestone.title}),y.jsxs("span",{className:Fe.navCount,children:[b.done,"/",b.total]})]})},b.milestone.id)),d.unassigned.total>0&&y.jsx("li",{children:y.jsxs("button",{type:"button",className:`${Fe.navBtn} ${w({kind:"unassigned"})?Fe.navBtnActive:""}`,onClick:()=>u({kind:"unassigned"}),children:[y.jsx("span",{className:Fe.navLabel,children:r("milestone.unassignedTasks")}),y.jsxs("span",{className:Fe.navCount,children:[d.unassigned.done,"/",d.unassigned.total]})]})})]}),y.jsx("p",{className:Fe.sidebarTitle,children:r("milestone.history")}),f.length===0?y.jsx("p",{className:Fe.sideEmpty,children:r("digest.empty")}):y.jsx("ul",{className:Fe.navList,children:f.map(b=>y.jsx("li",{children:y.jsxs("button",{type:"button",className:`${Fe.navBtn} ${w({kind:"month",month:b.month})?Fe.navBtnActive:""}`,onClick:()=>u({kind:"month",month:b.month}),children:[y.jsx("span",{className:Fe.navLabel,children:b.month}),y.jsx("span",{className:Fe.navCount,children:b.items.length})]})},b.month))})]}),y.jsx("div",{className:Fe.detail,children:k.kind==="month"?I(k.month):j(k.kind==="milestone"?d.milestones.find(b=>b.milestone.id===k.id)??null:null)})]})}function Ih(e,t){return e.filter(r=>r.frontmatter.created_by===t||r.frontmatter.assignee===t).length}function W2(e,t,r){const s=[];for(const x of t)x.originalId===null||x.id.trim()===""||x.id===x.originalId||s.push({from:x.originalId,to:x.id,count:Ih(r,x.originalId)});const o=new Set(t.map(x=>x.originalId).filter(x=>x!==null)),a=t.map(x=>x.id).filter(x=>x.trim()!==""),u=new Set(a),d=e.filter(x=>!o.has(x)&&!u.has(x)).map(x=>({id:x,count:Ih(r,x)})),f=new Set([...s.map(x=>x.from),...d.map(x=>x.id)]),m=s.some(x=>f.has(x.to)),v=new Set,h=[];for(const x of a)v.has(x)&&!h.includes(x)&&h.push(x),v.add(x);return{renames:s,removals:d,swap:m,duplicates:h}}const Z2="_section_jdjm6_1",K2="_sectionTitle_jdjm6_5",q2="_modeBox_jdjm6_14",Q2="_memberRow_jdjm6_22",Y2="_memberId_jdjm6_36",X2="_removeBtn_jdjm6_40",G2="_addBtn_jdjm6_48",J2="_advanced_jdjm6_57",eI="_jsonEditor_jdjm6_65",tI="_saved_jdjm6_76",nI="_reloadBtn_jdjm6_82",rI="_migrateBox_jdjm6_94",iI="_migrateTitle_jdjm6_103",sI="_migrateItem_jdjm6_109",lI="_migrateActions_jdjm6_125",Ft={section:Z2,sectionTitle:K2,modeBox:q2,memberRow:Q2,memberId:Y2,removeBtn:X2,addBtn:G2,advanced:J2,jsonEditor:eI,saved:tI,reloadBtn:nI,migrateBox:rI,migrateTitle:iI,migrateItem:sI,migrateActions:lI};let Dh=0;function Rh(){return Dh+=1,`m${Dh}`}function oI({onClose:e,onSaved:t,tasks:r=[]}){const{t:s,lang:o,setLang:a}=bt(),[u,d]=C.useState(null),[f,m]=C.useState(null),[v,h]=C.useState(null),[x,k]=C.useState(""),[w,j]=C.useState(""),[I,b]=C.useState(""),[M,E]=C.useState("free"),[z,V]=C.useState([]),[L,K]=C.useState([]),[Y,oe]=C.useState(""),[R,H]=C.useState(!1),[B,ae]=C.useState(null),[le,O]=C.useState({}),[G,ue]=C.useState(!1),[J,fe]=C.useState(!1),[S,A]=C.useState(null),[W,N]=C.useState(!1),xe=C.useCallback(async()=>{const{config:ee,mtimeMs:ce}=await pc(),Ae=qh.parse(ee);d(ee),m(ce),k(Ae.projectName),j(Ae.idPrefix),b(Ae.instructionTemplate),E(Ae.aiTaskCreation),V(Ae.members.map(We=>({key:Rh(),id:We.id,label:We.label??"",type:We.type,originalId:We.id}))),K(Ae.members.map(We=>We.id)),ae(null),O({}),oe(JSON.stringify({columns:Ae.columns,milestones:Ae.milestones,aiConfigPaths:Ae.aiConfigPaths},null,2)),N(!1),A(null)},[]);C.useEffect(()=>{let ee=!0;return(async()=>{try{await xe()}catch(ce){ee&&h(ce instanceof Error?ce.message:"load failed")}})(),()=>{ee=!1}},[xe]);const Te=async()=>{try{await xe()}catch(ee){A(ee instanceof Error?ee.message:s("settings.loadError"))}},ye=async ee=>{if(u){ue(!0),fe(!1),A(null),N(!1);try{let ce={};if(Y.trim().length>0){ce=JSON.parse(Y);for(const Ve of["members","projectName","idPrefix","instructionTemplate","aiTaskCreation","language"])delete ce[Ve]}const Ae={...u,projectName:x,idPrefix:w,instructionTemplate:I,aiTaskCreation:M,...R?{language:o}:{},members:z.map(Ve=>({id:Ve.id,...Ve.label.trim()!==""?{label:Ve.label.trim()}:{},type:Ve.type})),...ce};await Fh(Ae,f);try{const{mtimeMs:Ve}=await pc();m(Ve)}catch{}const We=[];try{for(const Ve of ee){const st=await Ok(Ve.from,Ve.to);We.push(...st.skipped)}}catch{A(s("settings.migrate.failed"));return}try{for(const Ve of ee)for(const st of["aizuchi.createdBy","aizuchi.commentMember"])typeof localStorage<"u"&&localStorage.getItem(st)===Ve.from&&localStorage.setItem(st,Ve.to)}catch{}try{await xe()}catch{}We.length>0&&A(s("settings.migrate.skipped",{files:We.join(", ")})),fe(!0),t(),window.setTimeout(()=>fe(!1),2e3)}catch(ce){ce instanceof ll?(m(ce.serverMtimeMs),N(!0),A(s("settings.conflict"))):A(ce instanceof Error?ce.message:s("settings.error"))}finally{ue(!1)}}},$e=async()=>{if(!u)return;const ee=W2(L,z,r);if(ee.duplicates.length>0){A(s("settings.members.duplicate",{ids:ee.duplicates.join(", ")}));return}if(ee.swap){A(s("settings.migrate.swap"));return}const ce=ee.removals.filter(Ae=>Ae.count>0);if(ee.renames.some(Ae=>Ae.count>0)||ce.length>0){A(null),ae({renames:ee.renames,removals:ce}),O({});return}await ye(ee.renames.map(Ae=>({from:Ae.from,to:Ae.to})))},Ne=async()=>{if(B===null)return;const ee=[...B.renames.map(ce=>({from:ce.from,to:ce.to})),...B.removals.filter(ce=>(le[ce.id]??"")!=="").map(ce=>({from:ce.id,to:le[ce.id]}))];ae(null),await ye(ee)};return y.jsx(pl,{title:s("settings.title"),onClose:e,wide:!0,children:v?y.jsx("p",{className:pe.error,children:v==="load failed"?s("settings.loadError"):v}):u?y.jsxs(y.Fragment,{children:[S&&y.jsxs("p",{className:pe.error,role:"alert",children:[S,W&&y.jsxs(y.Fragment,{children:[" ",y.jsx("button",{type:"button",className:Ft.reloadBtn,onClick:()=>void Te(),children:s("settings.reload")})]})]}),y.jsxs("div",{className:Ft.modeBox,children:[y.jsx("label",{className:pe.label,htmlFor:"ai-mode",children:s("settings.aiTaskCreation")}),y.jsxs("select",{id:"ai-mode",className:pe.select,value:M,onChange:ee=>E(ee.target.value),children:[y.jsx("option",{value:"free",children:s("settings.aiTaskCreation.free")}),y.jsx("option",{value:"proposal",children:s("settings.aiTaskCreation.proposal")})]})]}),y.jsxs("div",{className:pe.field,children:[y.jsx("label",{className:pe.label,htmlFor:"set-lang",children:s("settings.language")}),y.jsx("select",{id:"set-lang",className:pe.select,value:o,onChange:ee=>{a(ee.target.value),H(!0)},children:Kc.map(ee=>y.jsx("option",{value:ee,children:s(ee==="en"?"settings.language.en":"settings.language.ja")},ee))})]}),y.jsxs("div",{className:pe.field,children:[y.jsx("label",{className:pe.label,htmlFor:"set-project",children:s("settings.projectName")}),y.jsx("input",{id:"set-project",className:pe.input,value:x,onChange:ee=>k(ee.target.value.replace(/[\r\n]/g,""))})]}),y.jsxs("div",{className:pe.field,children:[y.jsx("label",{className:pe.label,htmlFor:"set-prefix",children:s("settings.idPrefix")}),y.jsx("input",{id:"set-prefix",className:pe.input,value:w,onChange:ee=>j(ee.target.value.replace(/[\r\n]/g,""))})]}),y.jsxs("div",{className:pe.field,children:[y.jsx("label",{className:pe.label,htmlFor:"set-instruction",children:s("settings.instructionTemplate")}),y.jsx("input",{id:"set-instruction",className:pe.input,value:I,onChange:ee=>b(ee.target.value.replace(/[\r\n]/g,""))})]}),y.jsxs("div",{className:Ft.section,children:[y.jsx("p",{className:Ft.sectionTitle,children:s("settings.members")}),z.map((ee,ce)=>y.jsxs("div",{className:Ft.memberRow,children:[y.jsx("input",{className:Ft.memberId,value:ee.id,placeholder:s("settings.members.idPlaceholder"),"aria-label":s("settings.members.idPlaceholder"),onChange:Ae=>V(We=>We.map((Ve,st)=>st===ce?{...Ve,id:Ae.target.value.replace(/[\r\n]/g,"")}:Ve))}),y.jsx("input",{className:Ft.memberId,value:ee.label,placeholder:s("settings.members.labelPlaceholder"),"aria-label":s("settings.members.labelPlaceholder"),onChange:Ae=>V(We=>We.map((Ve,st)=>st===ce?{...Ve,label:Ae.target.value.replace(/[\r\n]/g,"")}:Ve))}),y.jsx("select",{value:ee.type,onChange:Ae=>V(We=>We.map((Ve,st)=>st===ce?{...Ve,type:Ae.target.value}:Ve)),children:Zh.map(Ae=>y.jsx("option",{value:Ae,children:Ae},Ae))}),y.jsx("button",{type:"button",className:Ft.removeBtn,onClick:()=>V(Ae=>Ae.filter((We,Ve)=>Ve!==ce)),children:"×"})]},ee.key)),y.jsx("button",{type:"button",className:Ft.addBtn,onClick:()=>V(ee=>[...ee,{key:Rh(),id:"",label:"",type:"ai",originalId:null}]),children:s("settings.members.add")})]}),y.jsxs("details",{className:Ft.advanced,children:[y.jsx("summary",{children:s("settings.advanced")}),y.jsx("textarea",{className:Ft.jsonEditor,value:Y,onChange:ee=>oe(ee.target.value),spellCheck:!1})]}),B!==null&&y.jsxs("div",{className:Ft.migrateBox,role:"alert",children:[y.jsx("p",{className:Ft.migrateTitle,children:s("settings.migrate.title")}),B.renames.map(ee=>y.jsx("p",{className:Ft.migrateItem,children:s("settings.migrate.rename",{from:ee.from,to:ee.to,n:ee.count})},`rename-${ee.from}`)),B.removals.map(ee=>y.jsxs("div",{className:Ft.migrateItem,children:[y.jsx("span",{children:s("settings.migrate.removed",{id:ee.id,n:ee.count})})," ",y.jsxs("select",{value:le[ee.id]??"",onChange:ce=>O(Ae=>({...Ae,[ee.id]:ce.target.value})),"aria-label":s("settings.migrate.removed",{id:ee.id,n:ee.count}),children:[y.jsx("option",{value:"",children:s("settings.migrate.noTransfer")}),z.filter(ce=>ce.id.trim()!=="").map(ce=>y.jsx("option",{value:ce.id,children:ce.label.trim()!==""?ce.label:ce.id},ce.key))]})]},`remove-${ee.id}`)),y.jsxs("div",{className:Ft.migrateActions,children:[y.jsx("button",{type:"button",className:pe.btn,onClick:()=>ae(null),children:s("common.cancel")}),y.jsx("button",{type:"button",className:`${pe.btn} ${pe.btnPrimary}`,onClick:()=>void Ne(),disabled:G,children:s("settings.migrate.execute")})]})]}),y.jsxs("div",{className:pe.actions,children:[J&&y.jsx("span",{className:Ft.saved,children:s("settings.saved")}),y.jsx("button",{type:"button",className:pe.btn,onClick:e,children:s("common.cancel")}),y.jsx("button",{type:"button",className:`${pe.btn} ${pe.btnPrimary}`,onClick:()=>void $e(),disabled:G||B!==null,children:s(G?"settings.saving":"settings.save")})]})]}):y.jsx("p",{children:s("board.loading")})})}const Cy=1440*60*1e3,aI=5,uI=/未完了|未完|完了予定|完了見込|完了せず|undone|not\s+(done|finished|closed)|n['’]t\s+(done|finished|closed)/i,cI=/完了(した|しました|です|済)?[。.!!]?\s*$/,dI=/\b(done|closed|finished)\b[.!]?\s*$/i;function fc(e){return Math.max(0,Math.round(e/Cy*10)/10)}function Ao(e){const t=Date.parse(e);return Number.isNaN(t)?null:t}function fI(e){const t=e.trim();return uI.test(t)?!1:cI.test(t)||dI.test(t)}function pI(e){const t=xg(e.body);for(let r=t.length-1;r>=0;r--)if(fI(t[r].message)){const s=Date.parse(`${t[r].date}T${t[r].time}`);if(!Number.isNaN(s))return s}return Ao(e.updated)}function $c(e){const t=new Date(e),r=t.getFullYear(),s=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0");return`${r}-${s}-${o}`}function Ah(e){const t=new Date(e);t.setHours(0,0,0,0);const r=(t.getDay()+6)%7;return t.setDate(t.getDate()-r),$c(t.getTime())}function mI(e){const t=e.length;if(t===0)return 0;const r=Math.floor(t/2);return t%2===0?(e[r-1]+e[r])/2:e[r]}function Ph(e){return[...e.entries()].map(([t,r])=>({key:t,count:r})).sort((t,r)=>t.key.localeCompare(r.key))}function hI(e,t,r={}){const s=r.maxBottlenecks??aI,o=e.filter(w=>w.status==="done"),a=new Map,u=new Map,d=[],f=new Map;for(const w of o){const j=pI(w);if(f.set(w.assignee,(f.get(w.assignee)??0)+1),j===null)continue;a.set($c(j),(a.get($c(j))??0)+1),u.set(Ah(j),(u.get(Ah(j))??0)+1);const I=Ao(w.created);I!==null&&j>=I&&d.push((j-I)/Cy)}const m=[...d].sort((w,j)=>w-j),v={sampleSize:m.length,medianDays:m.length>0?Math.round(mI(m)*10)/10:null,meanDays:m.length>0?Math.round(m.reduce((w,j)=>w+j,0)/m.length*10)/10:null},h=qo.map(w=>{const j=e.filter(M=>M.status===w),I=j.map(M=>Ao(M.updated)).filter(M=>M!==null).map(M=>t-M);if(I.length===0)return{status:w,count:j.length,avgDays:null,maxDays:null};const b=I.reduce((M,E)=>M+E,0)/I.length;return{status:w,count:j.length,avgDays:fc(b),maxDays:fc(Math.max(...I))}}),x=[...f.entries()].map(([w,j])=>({member:w,count:j})).sort((w,j)=>j.count-w.count||(w.member??"￿").localeCompare(j.member??"￿")),k=e.filter(w=>w.status==="pending").map(w=>{const j=Ao(w.updated);return{id:w.id,title:w.title,blockedType:w.blocked_type,blockedReason:w.blocked_reason,dwellDays:j!==null?fc(t-j):0}}).sort((w,j)=>j.dwellDays-w.dwellDays||w.id.localeCompare(j.id,"en",{numeric:!0})).slice(0,s);return{totalTasks:e.length,doneTasks:o.length,completionsByDay:Ph(a),completionsByWeek:Ph(u),cycleTime:v,dwellByStatus:h,completionsByMember:x,bottlenecks:k}}const gI="_view_19mvk_1",yI="_card_19mvk_18",vI="_cardHead_19mvk_26",kI="_cardTitle_19mvk_34",xI="_note_19mvk_44",_I="_metrics_19mvk_52",wI="_metric_19mvk_52",bI="_metricValue_19mvk_65",SI="_metricLabel_19mvk_72",CI="_metricSub_19mvk_77",EI="_toggle_19mvk_83",NI="_toggleBtn_19mvk_90",TI="_toggleActive_19mvk_103",jI="_chartWrap_19mvk_109",II="_chart_19mvk_109",DI="_bar_19mvk_121",RI="_barCount_19mvk_125",AI="_barLabel_19mvk_131",PI="_table_19mvk_138",LI="_bId_19mvk_166",MI="_empty_19mvk_172",OI="_srOnly_19mvk_181",De={view:gI,card:yI,cardHead:vI,cardTitle:kI,note:xI,metrics:_I,metric:wI,metricValue:bI,metricLabel:SI,metricSub:CI,toggle:EI,toggleBtn:NI,toggleActive:TI,chartWrap:jI,chart:II,bar:DI,barCount:RI,barLabel:AI,table:PI,bId:LI,empty:MI,srOnly:OI},zI=5,FI={decision:"blocked.decision",external:"blocked.external",dependency:"blocked.dependency"};function $I({board:e}){const{t}=bt(),[r]=C.useState(()=>Date.now()),s=C.useMemo(()=>nd(t,e.config.columns),[t,e.config.columns]),o=C.useMemo(()=>Jo(e.config.members),[e.config.members]),a=k=>k===null?"—":t(FI[k]),u=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]),d=C.useMemo(()=>hI(u,r,{maxBottlenecks:zI}),[u,r]),[f,m]=C.useState("day");if(d.totalTasks===0)return y.jsx("div",{className:De.view,children:y.jsx("div",{className:De.empty,children:t("stats.empty")})});const v=f==="day"?d.completionsByDay:d.completionsByWeek,h=v.reduce((k,w)=>Math.max(k,w.count),0),x=k=>k===null?"—":t("stats.days",{n:k});return y.jsxs("div",{className:De.view,children:[y.jsxs("section",{className:De.card,"aria-labelledby":"stats-summary",children:[y.jsx("h2",{id:"stats-summary",className:De.cardTitle,children:t("stats.summary.title")}),y.jsxs("div",{className:De.metrics,children:[y.jsxs("div",{className:De.metric,children:[y.jsx("span",{className:De.metricValue,children:d.totalTasks}),y.jsx("span",{className:De.metricLabel,children:t("stats.summary.total")})]}),y.jsxs("div",{className:De.metric,children:[y.jsx("span",{className:De.metricValue,children:d.doneTasks}),y.jsx("span",{className:De.metricLabel,children:t("stats.summary.done")})]})]})]}),y.jsxs("section",{className:De.card,"aria-labelledby":"stats-completions",children:[y.jsxs("div",{className:De.cardHead,children:[y.jsx("h2",{id:"stats-completions",className:De.cardTitle,children:t("stats.completions.title")}),y.jsxs("div",{className:De.toggle,role:"group","aria-label":t("stats.completions.granularity"),children:[y.jsx("button",{type:"button",className:`${De.toggleBtn} ${f==="day"?De.toggleActive:""}`,"aria-pressed":f==="day",onClick:()=>m("day"),children:t("stats.completions.byDay")}),y.jsx("button",{type:"button",className:`${De.toggleBtn} ${f==="week"?De.toggleActive:""}`,"aria-pressed":f==="week",onClick:()=>m("week"),children:t("stats.completions.byWeek")})]})]}),v.length===0?y.jsx("p",{className:De.note,children:t("stats.completions.empty")}):y.jsx(BI,{bins:v,maxCount:h,ariaLabel:k=>t("stats.completions.barAria",k)})]}),y.jsxs("section",{className:De.card,"aria-labelledby":"stats-cycle",children:[y.jsx("h2",{id:"stats-cycle",className:De.cardTitle,children:t("stats.cycleTime.title")}),d.cycleTime.sampleSize===0?y.jsx("p",{className:De.note,children:t("stats.cycleTime.empty")}):y.jsxs("div",{className:De.metrics,children:[y.jsxs("div",{className:De.metric,children:[y.jsx("span",{className:De.metricValue,children:x(d.cycleTime.medianDays)}),y.jsx("span",{className:De.metricLabel,children:t("stats.cycleTime.median")})]}),y.jsxs("div",{className:De.metric,children:[y.jsx("span",{className:De.metricValue,children:x(d.cycleTime.meanDays)}),y.jsx("span",{className:De.metricLabel,children:t("stats.cycleTime.mean")})]}),y.jsx("div",{className:De.metric,children:y.jsx("span",{className:De.metricSub,children:t("stats.cycleTime.sample",{n:d.cycleTime.sampleSize})})})]})]}),y.jsxs("section",{className:De.card,"aria-labelledby":"stats-dwell",children:[y.jsx("h2",{id:"stats-dwell",className:De.cardTitle,children:t("stats.dwell.title")}),y.jsx("p",{className:De.note,children:t("stats.dwell.note")}),y.jsxs("table",{className:De.table,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{scope:"col",children:t("stats.dwell.status")}),y.jsx("th",{scope:"col",children:t("stats.dwell.count")}),y.jsx("th",{scope:"col",children:t("stats.dwell.avg")}),y.jsx("th",{scope:"col",children:t("stats.dwell.max")})]})}),y.jsx("tbody",{children:d.dwellByStatus.filter(k=>k.count>0).map(k=>y.jsxs("tr",{children:[y.jsx("td",{children:s(k.status)}),y.jsx("td",{children:k.count}),y.jsx("td",{children:x(k.avgDays)}),y.jsx("td",{children:x(k.maxDays)})]},k.status))})]})]}),y.jsxs("section",{className:De.card,"aria-labelledby":"stats-member",children:[y.jsx("h2",{id:"stats-member",className:De.cardTitle,children:t("stats.member.title")}),d.completionsByMember.length===0?y.jsx("p",{className:De.note,children:t("stats.member.empty")}):y.jsxs("table",{className:De.table,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{scope:"col",children:t("stats.member.name")}),y.jsx("th",{scope:"col",children:t("stats.summary.done")})]})}),y.jsx("tbody",{children:d.completionsByMember.map(k=>y.jsxs("tr",{children:[y.jsx("td",{children:k.member!==null?o(k.member):t("stats.member.unassigned")}),y.jsx("td",{children:k.count})]},k.member??"(unassigned)"))})]})]}),y.jsxs("section",{className:De.card,"aria-labelledby":"stats-bottleneck",children:[y.jsx("h2",{id:"stats-bottleneck",className:De.cardTitle,children:t("stats.bottlenecks.title")}),d.bottlenecks.length===0?y.jsx("p",{className:De.note,children:t("stats.bottlenecks.empty")}):y.jsxs("table",{className:De.table,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{scope:"col",children:t("stats.bottlenecks.task")}),y.jsx("th",{scope:"col",children:t("stats.bottlenecks.dwell")}),y.jsx("th",{scope:"col",children:t("stats.bottlenecks.type")}),y.jsx("th",{scope:"col",children:t("stats.bottlenecks.reason")})]})}),y.jsx("tbody",{children:d.bottlenecks.map(k=>y.jsxs("tr",{children:[y.jsxs("td",{children:[y.jsx("span",{className:De.bId,children:k.id})," ",k.title]}),y.jsx("td",{children:t("stats.days",{n:k.dwellDays})}),y.jsx("td",{children:a(k.blockedType)}),y.jsx("td",{children:k.blockedReason??"—"})]},k.id))})]})]})]})}function BI({bins:e,maxCount:t,ariaLabel:r}){const{t:s}=bt(),o=28,a=8,u=120,d=28,f=e.length*(o+a)+a,m=u+d;return y.jsxs("div",{className:De.chartWrap,children:[y.jsx("svg",{className:De.chart,viewBox:`0 0 ${f} ${m}`,role:"img","aria-label":s("stats.completions.title"),preserveAspectRatio:"xMinYMid meet",children:e.map((v,h)=>{const x=t>0?Math.max(2,Math.round(v.count/t*u)):2,k=a+h*(o+a),w=u-x;return y.jsxs("g",{children:[y.jsx("title",{children:r(v)}),y.jsx("rect",{x:k,y:w,width:o,height:x,className:De.bar,rx:2}),y.jsx("text",{x:k+o/2,y:w-4,className:De.barCount,textAnchor:"middle",children:v.count}),y.jsx("text",{x:k+o/2,y:u+16,className:De.barLabel,textAnchor:"middle",children:v.key.slice(5)})]},v.key)})}),y.jsxs("table",{className:De.srOnly,children:[y.jsx("caption",{children:s("stats.completions.title")}),y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{scope:"col",children:s("stats.completions.date")}),y.jsx("th",{scope:"col",children:s("stats.summary.done")})]})}),y.jsx("tbody",{children:e.map(v=>y.jsxs("tr",{children:[y.jsx("td",{children:v.key}),y.jsx("td",{children:v.count})]},v.key))})]})]})}function UI(e,t){const r=e.split(`
81
- `),s=t.split(`
82
- `),o=r.length,a=s.length,u=Array.from({length:o+1},()=>new Array(a+1).fill(0));for(let v=o-1;v>=0;v--)for(let h=a-1;h>=0;h--)u[v][h]=r[v]===s[h]?u[v+1][h+1]+1:Math.max(u[v+1][h],u[v][h+1]);const d=[];let f=0,m=0;for(;f<o&&m<a;)r[f]===s[m]?(d.push({op:"equal",text:r[f]}),f++,m++):u[f+1][m]>=u[f][m+1]?(d.push({op:"remove",text:r[f]}),f++):(d.push({op:"add",text:s[m]}),m++);for(;f<o;)d.push({op:"remove",text:r[f++]});for(;m<a;)d.push({op:"add",text:s[m++]});return d}const VI="_intro_9mryh_1",HI="_diff_9mryh_6",WI="_line_9mryh_17",ZI="_sign_9mryh_24",KI="_equal_9mryh_30",qI="_add_9mryh_34",QI="_remove_9mryh_39",YI="_legend_9mryh_44",qr={intro:VI,diff:HI,line:WI,sign:ZI,equal:KI,add:qI,remove:QI,legend:YI};function XI({serverContent:e,localContent:t,onClose:r,onOverwrite:s,onReload:o}){const{t:a}=bt(),u=C.useMemo(()=>UI(e,t),[e,t]);return y.jsxs(pl,{title:a("conflict.title"),onClose:r,wide:!0,children:[y.jsx("p",{className:qr.intro,children:a("conflict.intro")}),y.jsx("div",{className:qr.diff,role:"region","aria-label":a("conflict.diffAria"),children:u.map((d,f)=>y.jsxs("div",{className:`${qr.line} ${d.op==="add"?qr.add:d.op==="remove"?qr.remove:qr.equal}`,children:[y.jsx("span",{className:qr.sign,children:d.op==="add"?"+":d.op==="remove"?"-":" "}),y.jsx("span",{children:d.text})]},f))}),y.jsxs("p",{className:qr.legend,children:[y.jsx("span",{children:a("conflict.legend.add")}),y.jsx("span",{children:a("conflict.legend.remove")})]}),y.jsxs("div",{className:pe.actions,children:[y.jsx("button",{type:"button",className:pe.btn,onClick:o,children:a("conflict.reload")}),y.jsx("button",{type:"button",className:`${pe.btn} ${pe.btnDanger}`,onClick:s,children:a("conflict.overwrite")})]})]})}const GI="_overlay_1vdme_1",JI="_panel_1vdme_10",eD="_header_1vdme_20",tD="_id_1vdme_28",nD="_title_1vdme_34",rD="_copyBtn_1vdme_41",iD="_close_1vdme_55",sD="_tabs_1vdme_68",lD="_tab_1vdme_68",oD="_tabActive_1vdme_88",aD="_body_1vdme_93",uD="_markdown_1vdme_99",cD="_editor_1vdme_134",dD="_timeline_1vdme_147",fD="_entry_1vdme_156",pD="_entryMeta_1vdme_175",mD="_entryMember_1vdme_182",hD="_entryMessage_1vdme_187",gD="_emptyTimeline_1vdme_191",yD="_footer_1vdme_196",vD="_dirty_1vdme_204",kD="_error_1vdme_209",xD="_spacer_1vdme_215",_D="_btn_1vdme_219",wD="_btnPrimary_1vdme_230",bD="_commentInput_1vdme_241",SD="_commentField_1vdme_256",CD="_docsHint_1vdme_264",ED="_docsList_1vdme_274",ND="_docRow_1vdme_283",TD="_docLink_1vdme_289",jD="_docLinkActive_1vdme_308",ID="_docBroken_1vdme_312",DD="_docRemove_1vdme_321",RD="_docsActions_1vdme_336",AD="_docsPicker_1vdme_340",PD="_docsPreview_1vdme_350",LD="_docsPreviewPath_1vdme_355",de={overlay:GI,panel:JI,header:eD,id:tD,title:nD,copyBtn:rD,close:iD,tabs:sD,tab:lD,tabActive:oD,body:aD,markdown:uD,editor:cD,timeline:dD,entry:fD,entryMeta:pD,entryMember:mD,entryMessage:hD,emptyTimeline:gD,footer:yD,dirty:vD,error:kD,spacer:xD,btn:_D,btnPrimary:wD,commentInput:bD,commentField:SD,docsHint:CD,docsList:ED,docRow:ND,docLink:TD,docLinkActive:jD,docBroken:ID,docRemove:DD,docsActions:RD,docsPicker:AD,docsPreview:PD,docsPreviewPath:LD},Lh="aizuchi.commentMember";function Bc(e){const t=[];for(const r of e)r.type==="file"?t.push(r.path):r.children&&t.push(...Bc(r.children));return t}function MD({task:e,instructionTemplate:t,members:r,docsEnabled:s=!1,onClose:o,onSaved:a}){var Pe;const{t:u}=bt(),[d,f]=C.useState("preview"),[m,v]=C.useState(e.raw),[h,x]=C.useState(e.mtimeMs),[k,w]=C.useState(!1),[j,I]=C.useState(null),[b,M]=C.useState(null),[E,z]=C.useState(null),V=typeof localStorage<"u"?localStorage.getItem(Lh):null,[L,K]=C.useState(V&&r.some(q=>q.id===V)?V:((Pe=r[0])==null?void 0:Pe.id)??""),[Y,oe]=C.useState(""),[R,H]=C.useState(null),B=C.useMemo(()=>Jo(r),[r]),[ae,le]=C.useState(null),[O,G]=C.useState(!1),[ue,J]=C.useState(!1),[fe,S]=C.useState(null),[A,W]=C.useState(null),N=C.useRef(null),[xe,Te]=C.useState(null),[ye,$e]=C.useState(!1),[Ne,ee]=C.useState(null),[ce,Ae]=C.useState(null),[We,Ve]=C.useState(!1),[st,kn]=C.useState(null),nn=(Ne==null?void 0:Ne.raw)??e.raw,Bt=[...new Set((Ne==null?void 0:Ne.relatedDocs)??e.frontmatter.related_docs??[])],fr=s||Bt.length>0,Rt=m!==e.raw;C.useEffect(()=>{Ne!==null&&e.raw===Ne.raw&&ee(null)},[e.raw,Ne]);const gt=C.useRef(e.raw);C.useEffect(()=>{e.raw!==gt.current&&(v(q=>q===gt.current?e.raw:q),x(q=>m===gt.current?e.mtimeMs:q),gt.current=e.raw)},[e.raw,e.mtimeMs]);const Ut=async(q=h)=>{w(!0),I(null);try{const me=await am(e.frontmatter.id,m,q);x(me.mtimeMs),M(null),a(),f("preview")}catch(me){me instanceof ll?M({serverContent:me.serverContent,serverMtimeMs:me.serverMtimeMs}):I(me instanceof Error?me.message:u("detail.saveError"))}finally{w(!1)}},Tn=async()=>{const q=Gw(t,e.frontmatter.id,Jw(e.frontmatter.id)),me=await Ec(q);z(me?"done":"failed"),window.setTimeout(()=>z(null),2e3)};C.useEffect(()=>{if(d!=="docs"||ae!==null||O)return;let q=!0;return(async()=>{try{const me=await $h();q&&le(me)}catch{q&&G(!0)}})(),()=>{q=!1}},[d,ae,O]),C.useEffect(()=>{if(d!=="commits"||ce!==null||We)return;let q=!0;return(async()=>{try{const me=await Vk(e.frontmatter.id);q&&Ae(me)}catch{q&&Ve(!0)}})(),()=>{q=!1}},[d,ce,We,e.frontmatter.id]);const pr=async q=>{await Ec(q)&&(kn(q),window.setTimeout(()=>kn(xt=>xt===q?null:xt),2e3))},er=async q=>{$e(!0),Te(null);try{const me=bj(nn,q);if(me===nn){Te(u("docs.noChange"));return}const xt=await am(e.frontmatter.id,me,h);x(xt.mtimeMs),ee({raw:xt.raw,relatedDocs:xt.frontmatter.related_docs??[]}),a()}catch(me){me instanceof ll?(ee(null),Te(u("docs.conflict")),a()):Te(me instanceof Error?me.message:u("detail.saveError"))}finally{$e(!1)}},Er=async q=>{W(q),N.current=q,S(null),Te(null);try{const me=await Bh(q);if(N.current!==q)return;S(me)}catch(me){if(N.current!==q)return;me instanceof xi&&(me.status===404||me.status===403)?S("broken"):Te(me instanceof Error?me.message:u("docs.loadError"))}},Z=async()=>{const q=Y.trim();if(!(q.length===0||L==="")){H(null);try{await Hk(e.frontmatter.id,L,q),oe(""),typeof localStorage<"u"&&localStorage.setItem(Lh,L),a()}catch(me){H(me instanceof Error?me.message:u("comment.error"))}}},ne=vg(e.body),Ce=O_(e.body);return y.jsxs("div",{className:de.overlay,onClick:q=>{qc(q.target,q.currentTarget)&&o()},children:[y.jsxs("aside",{className:de.panel,role:"dialog","aria-modal":"true","aria-label":u("detail.aria",{id:e.frontmatter.id}),children:[y.jsxs("header",{className:de.header,children:[y.jsx("span",{className:de.id,children:e.frontmatter.id}),y.jsx("span",{className:de.title,children:e.frontmatter.title}),y.jsx("button",{type:"button",className:de.copyBtn,onClick:()=>void Tn(),title:u("detail.copyInstruction.title"),children:u(E==="done"?"detail.copyInstruction.done":E==="failed"?"detail.copyInstruction.failed":"detail.copyInstruction")}),y.jsx("button",{type:"button",className:de.close,onClick:o,"aria-label":u("detail.close"),children:"×"})]}),y.jsxs("nav",{className:de.tabs,children:[y.jsx("button",{type:"button",className:`${de.tab} ${d==="preview"?de.tabActive:""}`,onClick:()=>f("preview"),children:u("detail.tab.preview")}),y.jsx("button",{type:"button",className:`${de.tab} ${d==="edit"?de.tabActive:""}`,onClick:()=>f("edit"),children:u("detail.tab.edit")}),y.jsx("button",{type:"button",className:`${de.tab} ${d==="log"?de.tabActive:""}`,onClick:()=>f("log"),children:u("detail.tab.log")}),y.jsx("button",{type:"button",className:`${de.tab} ${d==="comment"?de.tabActive:""}`,onClick:()=>f("comment"),children:u("comment.title")}),fr&&y.jsx("button",{type:"button",className:`${de.tab} ${d==="docs"?de.tabActive:""}`,onClick:()=>f("docs"),children:u("detail.tab.docs")}),y.jsx("button",{type:"button",className:`${de.tab} ${d==="commits"?de.tabActive:""}`,onClick:()=>f("commits"),children:u("detail.tab.commits")})]}),y.jsxs("div",{className:de.body,children:[d==="preview"&&y.jsx("div",{className:de.markdown,children:y.jsx(Oc,{remarkPlugins:[Fc],children:e.body})}),d==="edit"&&y.jsx("textarea",{className:de.editor,value:m,onChange:q=>v(q.target.value),spellCheck:!1,"aria-label":u("detail.editAria")}),d==="log"&&y.jsx(y.Fragment,{children:ne.length===0?y.jsx("p",{className:de.emptyTimeline,children:u("detail.log.empty")}):y.jsx("ol",{className:de.timeline,children:ne.map((q,me)=>y.jsxs("li",{className:de.entry,children:[y.jsxs("span",{className:de.entryMeta,children:[q.timestamp??"—",q.member&&y.jsxs("span",{className:de.entryMember,children:[" [",B(q.member),"]"]})]}),y.jsx("span",{className:de.entryMessage,children:q.message})]},me))})}),d==="comment"&&y.jsxs(y.Fragment,{children:[Ce.length===0?y.jsx("p",{className:de.emptyTimeline,children:u("comment.empty")}):y.jsx("ol",{className:de.timeline,children:Ce.map((q,me)=>y.jsxs("li",{className:de.entry,children:[y.jsxs("span",{className:de.entryMeta,children:[q.timestamp??"—",q.member&&y.jsxs("span",{className:de.entryMember,children:[" [",B(q.member),"]"]})]}),y.jsx("span",{className:de.entryMessage,children:q.message})]},me))}),R&&y.jsx("p",{className:de.error,children:R}),y.jsxs("div",{className:de.commentInput,children:[y.jsx("select",{value:L,onChange:q=>K(q.target.value),"aria-label":"member",children:r.map(q=>y.jsx("option",{value:q.id,children:q.label??q.id},q.id))}),y.jsx("input",{className:de.commentField,value:Y,onChange:q=>oe(q.target.value.replace(/[\r\n]/g,"")),placeholder:u("comment.placeholder"),onKeyDown:q=>{q.key==="Enter"&&(q.preventDefault(),Z())}}),y.jsx("button",{type:"button",className:`${de.btn} ${de.btnPrimary}`,onClick:()=>void Z(),disabled:Y.trim().length===0,children:u("comment.send")})]})]}),d==="docs"&&y.jsxs(y.Fragment,{children:[xe&&y.jsx("p",{className:de.error,role:"alert",children:xe}),Rt&&y.jsx("p",{className:de.docsHint,children:u("docs.dirtyHint")}),Bt.length===0?y.jsx("p",{className:de.emptyTimeline,children:u("docs.empty")}):y.jsx("ul",{className:de.docsList,children:Bt.map(q=>{const me=ae!==null?Bc(ae):null,xt=me!==null&&!me.includes(q);return y.jsxs("li",{className:de.docRow,children:[y.jsx("button",{type:"button",className:`${de.docLink} ${A===q?de.docLinkActive:""}`,onClick:()=>void Er(q),children:q}),xt&&y.jsx("span",{className:de.docBroken,children:u("docs.broken")}),y.jsx("button",{type:"button",className:de.docRemove,onClick:()=>void er(Bt.filter(Vt=>Vt!==q)),disabled:Rt||ye,"aria-label":`${u("docs.remove")}: ${q}`,children:"×"})]},q)})}),y.jsx("div",{className:de.docsActions,children:y.jsx("button",{type:"button",className:de.btn,onClick:()=>J(q=>!q),disabled:Rt||ye,"aria-expanded":ue,children:u("docs.add")})}),ue&&y.jsx("div",{className:de.docsPicker,children:O?y.jsx("p",{className:de.error,role:"alert",children:u("docs.treeError")}):ae===null?y.jsx("p",{className:de.emptyTimeline,children:u("board.loading")}):(()=>{const q=Bc(ae).filter(me=>!Bt.includes(me));return q.length===0?y.jsx("p",{className:de.emptyTimeline,children:u("docs.pickerEmpty")}):y.jsx("ul",{className:de.docsList,"aria-label":u("docs.pickerTitle"),children:q.map(me=>y.jsx("li",{className:de.docRow,children:y.jsx("button",{type:"button",className:de.docLink,onClick:()=>{J(!1),er([...Bt,me])},disabled:Rt||ye,children:me})},me))})})()}),A!==null&&y.jsxs("div",{className:de.docsPreview,children:[y.jsx("p",{className:de.docsPreviewPath,children:A}),fe===null?y.jsx("p",{className:de.emptyTimeline,children:u("board.loading")}):fe==="broken"?y.jsx("p",{className:de.docBroken,children:u("docs.broken")}):y.jsx("div",{className:de.markdown,children:y.jsx(Oc,{remarkPlugins:[Fc],children:fe.content})})]})]}),d==="commits"&&y.jsx(y.Fragment,{children:We?y.jsx("p",{className:de.error,role:"alert",children:u("commits.error")}):ce===null?y.jsx("p",{className:de.emptyTimeline,children:u("board.loading")}):ce.length===0?y.jsx("p",{className:de.emptyTimeline,children:u("commits.empty")}):y.jsx("ol",{className:de.timeline,children:ce.map(q=>y.jsxs("li",{className:de.entry,children:[y.jsxs("span",{className:de.entryMeta,children:[y.jsx("button",{type:"button",className:de.docLink,onClick:()=>void pr(q.hash),title:u("commits.copyHash"),children:st===q.hash?u("commits.copied"):q.hash.slice(0,7)})," · ",q.authorDate.slice(0,10)]}),y.jsx("span",{className:de.entryMessage,children:q.subject})]},q.hash))})})]}),d==="edit"&&y.jsxs("footer",{className:de.footer,children:[j?y.jsx("span",{className:de.error,children:j}):Rt?y.jsx("span",{className:de.dirty,children:u("detail.dirty")}):y.jsx("span",{className:de.spacer}),y.jsx("button",{type:"button",className:de.btn,onClick:()=>{v(e.raw),I(null)},disabled:!Rt||k,children:u("common.discard")}),y.jsx("button",{type:"button",className:`${de.btn} ${de.btnPrimary}`,onClick:()=>void Ut(),disabled:!Rt||k,children:u(k?"common.saving":"common.save")})]})]}),b&&y.jsx(XI,{serverContent:b.serverContent,localContent:m,onClose:()=>M(null),onOverwrite:()=>void Ut(b.serverMtimeMs),onReload:()=>{v(b.serverContent),x(b.serverMtimeMs),M(null),I(null)}})]})}const OD="_banner_1p1es_1",zD="_summary_1p1es_9",FD="_icon_1p1es_22",$D="_list_1p1es_26",BD="_item_1p1es_35",UD="_kind_1p1es_39",VD="_path_1p1es_51",HD="_renameBtn_1p1es_57",Qr={banner:OD,summary:zD,icon:FD,list:$D,item:BD,kind:UD,path:VD,renameBtn:HD},WD={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 ZD({warnings:e,onRename:t}){const{t:r}=bt();return e.length===0?null:y.jsxs("details",{className:Qr.banner,open:!0,children:[y.jsxs("summary",{className:Qr.summary,children:[y.jsx("span",{className:Qr.icon,"aria-hidden":"true",children:"⚠"}),r("warning.summary",{n:e.length})]}),y.jsx("ul",{className:Qr.list,children:e.map((s,o)=>y.jsxs("li",{className:Qr.item,children:[y.jsx("span",{className:Qr.kind,children:r(WD[s.kind])}),s.taskId&&y.jsxs("strong",{children:[s.taskId,": "]}),s.message,s.path&&y.jsxs("span",{className:Qr.path,children:[" (",s.path,")"]}),s.kind==="duplicate_id"&&s.taskId&&t&&y.jsx("button",{type:"button",className:Qr.renameBtn,onClick:()=>t(s.taskId),children:r("rename.action")})]},o))})]})}const KD="_app_1br7f_1",qD="_header_1br7f_7",QD="_brand_1br7f_16",YD="_tabs_1br7f_22",XD="_tab_1br7f_22",GD="_tabActive_1br7f_43",JD="_project_1br7f_48",eR="_spacer_1br7f_53",tR="_status_1br7f_57",nR="_dot_1br7f_65",rR="_dotOn_1br7f_71",iR="_dotOff_1br7f_75",sR="_langSelect_1br7f_79",lR="_settingsBtn_1br7f_87",oR="_addBtn_1br7f_99",aR="_banner_1br7f_112",uR="_bannerClose_1br7f_122",cR="_center_1br7f_131",It={app:KD,header:qD,brand:QD,tabs:YD,tab:XD,tabActive:GD,project:JD,spacer:eR,status:tR,dot:nR,dotOn:rR,dotOff:iR,langSelect:sR,settingsBtn:lR,addBtn:oR,banner:aR,bannerClose:uR,center:cR},dR=[{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 fR(){const{t:e,lang:t,setLang:r,applyLang:s,hasUserChoice:o}=bt(),{board:a,loading:u,error:d,connected:f,refresh:m}=Wk(),[v,h]=C.useState("board"),[x,k]=C.useState(!1),[w,j]=C.useState(!1),[I,b]=C.useState(!1),[M,E]=C.useState(null),[z,V]=C.useState(null),L=M!==null?(a==null?void 0:a.tasks.find(B=>B.frontmatter.id===M))??null:null,K=x||w||M!==null,Y=C.useRef(K);Y.current=K,C.useEffect(()=>{const B=ae=>{(ae.metaKey||ae.ctrlKey)&&(ae.key==="k"||ae.key==="K")&&!ae.isComposing&&(ae.preventDefault(),b(le=>le?!1:!Y.current))};return window.addEventListener("keydown",B),()=>window.removeEventListener("keydown",B)},[]),C.useEffect(()=>{v==="docs"&&a&&a.config.docsDirs.length===0&&h("board")},[v,a]),C.useEffect(()=>{const B=a==null?void 0:a.config.language;B!==void 0&&B!==t&&!o()&&s(B)},[a,t,s,o]);const oe=B=>{r(B),zk(B)},R=async B=>{await Rk(B),k(!1),m()},H=async B=>{try{await Mk(B),m()}catch(ae){V(ae instanceof Error?ae.message:e("rename.error"))}};return y.jsxs("div",{className:It.app,children:[y.jsxs("header",{className:It.header,children:[y.jsx("span",{className:It.brand,children:"AIzuchi"}),a&&y.jsx("span",{className:It.project,children:a.config.projectName}),y.jsx("span",{className:It.spacer}),y.jsxs("span",{className:It.status,title:e(f?"header.live.title":"header.reconnecting.title"),children:[y.jsx("span",{className:`${It.dot} ${f?It.dotOn:It.dotOff}`,"aria-hidden":"true"}),e(f?"header.live":"header.reconnecting")]}),y.jsx("select",{className:It.langSelect,value:t,onChange:B=>oe(B.target.value),"aria-label":e("settings.language"),children:Kc.map(B=>y.jsx("option",{value:B,children:e(B==="en"?"settings.language.en":"settings.language.ja")},B))}),y.jsx("button",{type:"button",className:It.settingsBtn,onClick:()=>j(!0),disabled:!a,children:e("header.settings")}),y.jsx("button",{type:"button",className:It.addBtn,onClick:()=>k(!0),disabled:!a,children:e("header.addTask")})]}),(d||z)&&y.jsxs("div",{className:It.banner,role:"alert",children:[d??z,!d&&z&&y.jsx("button",{type:"button",className:It.bannerClose,onClick:()=>V(null),children:e("banner.close")})]}),a&&y.jsx("nav",{className:It.tabs,"aria-label":"views",children:dR.filter(B=>B.id!=="docs"||a.config.docsDirs.length>0).map(B=>y.jsx("button",{type:"button",className:`${It.tab} ${v===B.id?It.tabActive:""}`,onClick:()=>h(B.id),children:e(B.labelKey)},B.id))}),a&&y.jsx(ZD,{warnings:a.warnings,onRename:B=>void H(B)}),u&&!a?y.jsx("div",{className:It.center,children:e("board.loading")}):a?v==="board"?y.jsx($w,{board:a,onOpen:B=>E(B.frontmatter.id),onChanged:()=>void m(),onError:V}):v==="critical"?y.jsx(S0,{board:a,onOpen:B=>E(B.frontmatter.id)}):v==="digest"?y.jsx(Y0,{board:a}):v==="docs"?y.jsx(Wj,{board:a,onOpen:B=>E(B.frontmatter.id)}):v==="stats"?y.jsx($I,{board:a}):v==="files"?y.jsx(p2,{board:a}):y.jsx(H2,{board:a,onOpen:B=>E(B.frontmatter.id)}):y.jsx("div",{className:It.center,children:e("board.unavailable")}),x&&a&&y.jsx(Gx,{members:a.config.members,templates:a.config.taskTemplates,onCancel:()=>k(!1),onSubmit:R}),w&&y.jsx(oI,{tasks:(a==null?void 0:a.tasks)??[],onClose:()=>j(!1),onSaved:()=>void m()}),I&&a&&y.jsx(Yw,{board:a,onClose:()=>b(!1),onSelectView:B=>h(B),onOpenAdd:()=>k(!0),onOpenSettings:()=>j(!0),onOpenTask:B=>E(B)}),L&&a&&y.jsx(MD,{task:L,instructionTemplate:a.config.instructionTemplate,members:a.config.members,docsEnabled:a.config.docsDirs.length>0,onClose:()=>E(null),onSaved:()=>void m()},L.frontmatter.id)]})}const pR="_app_1fu9m_1",mR="_header_1fu9m_7",hR="_brand_1fu9m_16",gR="_mode_1fu9m_22",yR="_spacer_1fu9m_27",vR="_status_1fu9m_31",kR="_dot_1fu9m_39",xR="_dotOn_1fu9m_45",_R="_dotOff_1fu9m_49",wR="_langSelect_1fu9m_53",bR="_banner_1fu9m_62",SR="_center_1fu9m_70",CR="_main_1fu9m_78",ER="_sectionTitle_1fu9m_88",NR="_cards_1fu9m_95",TR="_card_1fu9m_95",jR="_cardName_1fu9m_109",IR="_cardDir_1fu9m_115",DR="_counts_1fu9m_122",RR="_count_1fu9m_122",AR="_badges_1fu9m_147",PR="_badgeWip_1fu9m_154",LR="_badgeWarn_1fu9m_162",MR="_tableWrap_1fu9m_171",OR="_table_1fu9m_171",zR="_taskId_1fu9m_199",FR="_empty_1fu9m_205",Je={app:pR,header:mR,brand:hR,mode:gR,spacer:yR,status:vR,dot:kR,dotOn:xR,dotOff:_R,langSelect:wR,banner:bR,center:SR,main:CR,sectionTitle:ER,cards:NR,card:TR,cardName:jR,cardDir:IR,counts:DR,count:RR,badges:AR,badgeWip:PR,badgeWarn:LR,tableWrap:MR,table:OR,taskId:zR,empty:FR},$R={decision:"blocked.decision",external:"blocked.external",dependency:"blocked.dependency"};function BR(){const[e,t]=C.useState(null),[r,s]=C.useState(!0),[o,a]=C.useState(null),[u,d]=C.useState(!1),f=C.useRef(0),m=C.useCallback(async()=>{const v=++f.current;try{const h=await Dk();v===f.current&&(t(h),a(null))}catch(h){v===f.current&&a(h instanceof Error?h.message:"failed")}finally{v===f.current&&s(!1)}},[]);return C.useEffect(()=>{m();const v=new EventSource("/api/events");return v.onopen=()=>{d(!0),m()},v.onmessage=h=>{try{const x=JSON.parse(h.data);x.type==="change"?m():x.type==="connected"&&d(!0)}catch{}},v.onerror=()=>d(!1),()=>{v.close()}},[m]),{overview:e,loading:r,error:o,connected:u}}function UR(){const{t:e,lang:t,setLang:r}=bt(),{overview:s,loading:o,error:a,connected:u}=BR(),d=f=>{if(f.status!=="pending"||f.blocked_type===null)return"—";const m=e($R[f.blocked_type]);return f.blocked_reason!==null?`${m}: ${f.blocked_reason}`:m};return y.jsxs("div",{className:Je.app,children:[y.jsxs("header",{className:Je.header,children:[y.jsx("span",{className:Je.brand,children:"AIzuchi"}),y.jsx("span",{className:Je.mode,children:e("overview.title")}),y.jsx("span",{className:Je.spacer}),y.jsxs("span",{className:Je.status,title:e(u?"header.live.title":"header.reconnecting.title"),children:[y.jsx("span",{className:`${Je.dot} ${u?Je.dotOn:Je.dotOff}`,"aria-hidden":"true"}),e(u?"header.live":"header.reconnecting")]}),y.jsx("select",{className:Je.langSelect,value:t,onChange:f=>r(f.target.value),"aria-label":e("settings.language"),children:Kc.map(f=>y.jsx("option",{value:f,children:e(f==="en"?"settings.language.en":"settings.language.ja")},f))})]}),a!==null&&s!==null&&y.jsx("div",{className:Je.banner,role:"alert",children:e("overview.loadError")}),o&&!s?y.jsx("div",{className:Je.center,children:e("board.loading")}):s?y.jsxs("main",{className:Je.main,children:[y.jsxs("section",{"aria-labelledby":"ov-projects",children:[y.jsx("h2",{id:"ov-projects",className:Je.sectionTitle,children:e("overview.projects")}),y.jsx("div",{className:Je.cards,children:s.projects.map(f=>y.jsxs("article",{className:Je.card,title:f.root,children:[y.jsx("h3",{className:Je.cardName,children:f.name}),f.name!==f.dir&&y.jsx("p",{className:Je.cardDir,children:f.dir}),y.jsx("dl",{className:Je.counts,children:qo.map(m=>y.jsxs("div",{className:Je.count,children:[y.jsx("dt",{children:e(Vo[m])}),y.jsx("dd",{children:f.statusCounts[m]})]},m))}),y.jsxs("div",{className:Je.badges,children:[f.wipExceeded&&y.jsx("span",{className:Je.badgeWip,children:e("overview.wipExceeded")}),f.warningCount>0&&y.jsx("span",{className:Je.badgeWarn,children:e("overview.warnings",{n:f.warningCount})})]})]},f.dir))})]}),y.jsxs("section",{"aria-labelledby":"ov-attention",children:[y.jsx("h2",{id:"ov-attention",className:Je.sectionTitle,children:e("overview.attention.title")}),s.attention.length===0?y.jsx("p",{className:Je.empty,children:e("overview.attention.empty")}):y.jsx("div",{className:Je.tableWrap,children:y.jsxs("table",{className:Je.table,children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{scope:"col",children:e("overview.col.project")}),y.jsx("th",{scope:"col",children:e("overview.col.task")}),y.jsx("th",{scope:"col",children:e("overview.col.status")}),y.jsx("th",{scope:"col",children:e("overview.col.assignee")}),y.jsx("th",{scope:"col",children:e("overview.col.blocked")})]})}),y.jsx("tbody",{children:s.attention.map(f=>y.jsxs("tr",{children:[y.jsx("td",{children:f.project}),y.jsxs("td",{children:[y.jsx("span",{className:Je.taskId,children:f.id})," ",f.title]}),y.jsx("td",{children:e(Vo[f.status])}),y.jsx("td",{children:f.assignee??e("card.unassigned")}),y.jsx("td",{children:d(f)})]},`${f.project}:${f.id}`))})]})})]})]}):y.jsx("div",{className:Je.center,children:e("overview.loadError")})]})}const Mh=3,VR=700;function HR(){const{t:e}=bt(),[t,r]=C.useState(null);return C.useEffect(()=>{let s=!0;return(async()=>{for(let o=1;o<=Mh;o++)try{const a=await Ik();s&&r(a.mode==="overview"?"overview":"board");return}catch(a){if(a instanceof xi&&a.status>=400&&a.status<500){s&&r("board");return}if(o===Mh){s&&r("error");return}if(await new Promise(u=>setTimeout(u,VR)),!s)return}})(),()=>{s=!1}},[]),t===null?y.jsx(y.Fragment,{}):t==="error"?y.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,padding:48},role:"alert",children:[y.jsx("p",{children:e("mode.connectError")}),y.jsx("button",{type:"button",onClick:()=>window.location.reload(),children:e("settings.reload")})]}):t==="overview"?y.jsx(UR,{}):y.jsx(fR,{})}const Ey=document.getElementById("root");if(!Ey)throw new Error("#root not found");Tk.createRoot(Ey).render(y.jsx(C.StrictMode,{children:y.jsx(Lx,{children:y.jsx(HR,{})})}));