@openboard/start 1.0.24 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/package.json +2 -1
- package/packages/client/dist/assets/index-CIdk7SfN.css +1 -0
- package/packages/client/dist/assets/index-Cpmwbh7h.js +203 -0
- package/packages/client/dist/index.html +2 -2
- package/packages/server/dist/agents/opencode.events.js +45 -19
- package/packages/server/dist/index.js +2 -0
- package/packages/server/dist/routes/system.router.js +173 -0
- package/packages/client/dist/assets/index-B5k_YB6Y.css +0 -1
- package/packages/client/dist/assets/index-D6WEx7Lr.js +0 -173
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var No=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Uu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $p={exports:{}},ca={},Up={exports:{}},te={};/**
|
|
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 xl=Symbol.for("react.element"),zy=Symbol.for("react.portal"),My=Symbol.for("react.fragment"),By=Symbol.for("react.strict_mode"),Fy=Symbol.for("react.profiler"),$y=Symbol.for("react.provider"),Uy=Symbol.for("react.context"),Hy=Symbol.for("react.forward_ref"),Vy=Symbol.for("react.suspense"),Wy=Symbol.for("react.memo"),qy=Symbol.for("react.lazy"),vd=Symbol.iterator;function Ky(e){return e===null||typeof e!="object"?null:(e=vd&&e[vd]||e["@@iterator"],typeof e=="function"?e:null)}var Hp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vp=Object.assign,Wp={};function ni(e,t,n){this.props=e,this.context=t,this.refs=Wp,this.updater=n||Hp}ni.prototype.isReactComponent={};ni.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};ni.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qp(){}qp.prototype=ni.prototype;function Hu(e,t,n){this.props=e,this.context=t,this.refs=Wp,this.updater=n||Hp}var Vu=Hu.prototype=new qp;Vu.constructor=Hu;Vp(Vu,ni.prototype);Vu.isPureReactComponent=!0;var xd=Array.isArray,Kp=Object.prototype.hasOwnProperty,Wu={current:null},Qp={key:!0,ref:!0,__self:!0,__source:!0};function Yp(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)Kp.call(t,r)&&!Qp.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:xl,type:e,key:l,ref:o,props:i,_owner:Wu.current}}function Qy(e,t){return{$$typeof:xl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function qu(e){return typeof e=="object"&&e!==null&&e.$$typeof===xl}function Yy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wd=/\/+/g;function Fa(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Yy(""+e.key):t.toString(36)}function uo(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case xl:case zy:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Fa(o,0):r,xd(i)?(n="",e!=null&&(n=e.replace(wd,"$&/")+"/"),uo(i,t,n,"",function(u){return u})):i!=null&&(qu(i)&&(i=Qy(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(wd,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",xd(e))for(var a=0;a<e.length;a++){l=e[a];var s=r+Fa(l,a);o+=uo(l,t,n,s,i)}else if(s=Ky(e),typeof s=="function")for(e=s.call(e),a=0;!(l=e.next()).done;)l=l.value,s=r+Fa(l,a++),o+=uo(l,t,n,s,i);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function jl(e,t,n){if(e==null)return e;var r=[],i=0;return uo(e,r,"","",function(l){return t.call(n,l,i++)}),r}function Xy(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var nt={current:null},co={transition:null},Gy={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:co,ReactCurrentOwner:Wu};function Xp(){throw Error("act(...) is not supported in production builds of React.")}te.Children={map:jl,forEach:function(e,t,n){jl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return jl(e,function(){t++}),t},toArray:function(e){return jl(e,function(t){return t})||[]},only:function(e){if(!qu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Component=ni;te.Fragment=My;te.Profiler=Fy;te.PureComponent=Hu;te.StrictMode=By;te.Suspense=Vy;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gy;te.act=Xp;te.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Vp({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=Wu.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)Kp.call(t,s)&&!Qp.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&a!==void 0?a[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){a=Array(s);for(var u=0;u<s;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:xl,type:e.type,key:i,ref:l,props:r,_owner:o}};te.createContext=function(e){return e={$$typeof:Uy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:$y,_context:e},e.Consumer=e};te.createElement=Yp;te.createFactory=function(e){var t=Yp.bind(null,e);return t.type=e,t};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:Hy,render:e}};te.isValidElement=qu;te.lazy=function(e){return{$$typeof:qy,_payload:{_status:-1,_result:e},_init:Xy}};te.memo=function(e,t){return{$$typeof:Wy,type:e,compare:t===void 0?null:t}};te.startTransition=function(e){var t=co.transition;co.transition={};try{e()}finally{co.transition=t}};te.unstable_act=Xp;te.useCallback=function(e,t){return nt.current.useCallback(e,t)};te.useContext=function(e){return nt.current.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e){return nt.current.useDeferredValue(e)};te.useEffect=function(e,t){return nt.current.useEffect(e,t)};te.useId=function(){return nt.current.useId()};te.useImperativeHandle=function(e,t,n){return nt.current.useImperativeHandle(e,t,n)};te.useInsertionEffect=function(e,t){return nt.current.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return nt.current.useLayoutEffect(e,t)};te.useMemo=function(e,t){return nt.current.useMemo(e,t)};te.useReducer=function(e,t,n){return nt.current.useReducer(e,t,n)};te.useRef=function(e){return nt.current.useRef(e)};te.useState=function(e){return nt.current.useState(e)};te.useSyncExternalStore=function(e,t,n){return nt.current.useSyncExternalStore(e,t,n)};te.useTransition=function(){return nt.current.useTransition()};te.version="18.3.1";Up.exports=te;var g=Up.exports;const ce=Uu(g);/**
|
|
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 Jy=g,Zy=Symbol.for("react.element"),ev=Symbol.for("react.fragment"),tv=Object.prototype.hasOwnProperty,nv=Jy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rv={key:!0,ref:!0,__self:!0,__source:!0};function Gp(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)tv.call(t,r)&&!rv.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Zy,type:e,key:l,ref:o,props:i,_owner:nv.current}}ca.Fragment=ev;ca.jsx=Gp;ca.jsxs=Gp;$p.exports=ca;var w=$p.exports,Ps={},Jp={exports:{}},_t={},Zp={exports:{}},eh={};/**
|
|
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
|
-
*/(function(e){function t(A,B){var k=A.length;A.push(B);e:for(;0<k;){var X=k-1>>>1,Q=A[X];if(0<i(Q,B))A[X]=B,A[k]=Q,k=X;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var B=A[0],k=A.pop();if(k!==B){A[0]=k;e:for(var X=0,Q=A.length,S=Q>>>1;X<S;){var ee=2*(X+1)-1,se=A[ee],G=ee+1,De=A[G];if(0>i(se,k))G<Q&&0>i(De,se)?(A[X]=De,A[G]=k,X=G):(A[X]=se,A[ee]=k,X=ee);else if(G<Q&&0>i(De,k))A[X]=De,A[G]=k,X=G;else break e}}return B}function i(A,B){var k=A.sortIndex-B.sortIndex;return k!==0?k:A.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var s=[],u=[],c=1,d=null,p=3,f=!1,x=!1,y=!1,_=typeof setTimeout=="function"?setTimeout:null,h=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 v(A){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=A)r(u),B.sortIndex=B.expirationTime,t(s,B);else break;B=n(u)}}function N(A){if(y=!1,v(A),!x)if(n(s)!==null)x=!0,oe(b);else{var B=n(u);B!==null&&V(N,B.startTime-A)}}function b(A,B){x=!1,y&&(y=!1,h(T),T=-1),f=!0;var k=p;try{for(v(B),d=n(s);d!==null&&(!(d.expirationTime>B)||A&&!L());){var X=d.callback;if(typeof X=="function"){d.callback=null,p=d.priorityLevel;var Q=X(d.expirationTime<=B);B=e.unstable_now(),typeof Q=="function"?d.callback=Q:d===n(s)&&r(s),v(B)}else r(s);d=n(s)}if(d!==null)var S=!0;else{var ee=n(u);ee!==null&&V(N,ee.startTime-B),S=!1}return S}finally{d=null,p=k,f=!1}}var C=!1,E=null,T=-1,P=5,D=-1;function L(){return!(e.unstable_now()-D<P)}function R(){if(E!==null){var A=e.unstable_now();D=A;var B=!0;try{B=E(!0,A)}finally{B?M():(C=!1,E=null)}}else C=!1}var M;if(typeof m=="function")M=function(){m(R)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,$=H.port2;H.port1.onmessage=R,M=function(){$.postMessage(null)}}else M=function(){_(R,0)};function oe(A){E=A,C||(C=!0,M())}function V(A,B){T=_(function(){A(e.unstable_now())},B)}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(A){A.callback=null},e.unstable_continueExecution=function(){x||f||(x=!0,oe(b))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(A){switch(p){case 1:case 2:case 3:var B=3;break;default:B=p}var k=p;p=B;try{return A()}finally{p=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,B){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var k=p;p=A;try{return B()}finally{p=k}},e.unstable_scheduleCallback=function(A,B,k){var X=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?X+k:X):k=X,A){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=k+Q,A={id:c++,callback:B,priorityLevel:A,startTime:k,expirationTime:Q,sortIndex:-1},k>X?(A.sortIndex=k,t(u,A),n(s)===null&&A===n(u)&&(y?(h(T),T=-1):y=!0,V(N,k-X))):(A.sortIndex=Q,t(s,A),x||f||(x=!0,oe(b))),A},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(A){var B=p;return function(){var k=p;p=B;try{return A.apply(this,arguments)}finally{p=k}}}})(eh);Zp.exports=eh;var iv=Zp.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 lv=g,Ct=iv;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var th=new Set,Ji={};function mr(e,t){Yr(e,t),Yr(e+"Capture",t)}function Yr(e,t){for(Ji[e]=t,e=0;e<t.length;e++)th.add(t[e])}var vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ds=Object.prototype.hasOwnProperty,ov=/^[: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]*$/,kd={},Sd={};function av(e){return Ds.call(Sd,e)?!0:Ds.call(kd,e)?!1:ov.test(e)?Sd[e]=!0:(kd[e]=!0,!1)}function sv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function uv(e,t,n,r){if(t===null||typeof t>"u"||sv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rt(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new rt(e,2,!1,e,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(e){We[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ku=/[\-:]([a-z])/g;function Qu(e){return e[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(e){var t=e.replace(Ku,Qu);We[t]=new rt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ku,Qu);We[t]=new rt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ku,Qu);We[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){We[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)});We.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){We[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yu(e,t,n,r){var i=We.hasOwnProperty(t)?We[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(uv(t,n,i,r)&&(n=null),r||i===null?av(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Cn=lv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zl=Symbol.for("react.element"),Nr=Symbol.for("react.portal"),Tr=Symbol.for("react.fragment"),Xu=Symbol.for("react.strict_mode"),Ls=Symbol.for("react.profiler"),nh=Symbol.for("react.provider"),rh=Symbol.for("react.context"),Gu=Symbol.for("react.forward_ref"),As=Symbol.for("react.suspense"),Os=Symbol.for("react.suspense_list"),Ju=Symbol.for("react.memo"),Pn=Symbol.for("react.lazy"),ih=Symbol.for("react.offscreen"),Cd=Symbol.iterator;function vi(e){return e===null||typeof e!="object"?null:(e=Cd&&e[Cd]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Object.assign,$a;function Di(e){if($a===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$a=t&&t[1]||""}return`
|
|
34
|
-
`+$a+e}var Ua=!1;function Ha(e,t){if(!e||Ua)return"";Ua=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
-
`),l=r.stack.split(`
|
|
36
|
-
`),o=i.length-1,a=l.length-1;1<=o&&0<=a&&i[o]!==l[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==l[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==l[a]){var s=`
|
|
37
|
-
`+i[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=a);break}}}finally{Ua=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Di(e):""}function cv(e){switch(e.tag){case 5:return Di(e.type);case 16:return Di("Lazy");case 13:return Di("Suspense");case 19:return Di("SuspenseList");case 0:case 2:case 15:return e=Ha(e.type,!1),e;case 11:return e=Ha(e.type.render,!1),e;case 1:return e=Ha(e.type,!0),e;default:return""}}function js(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tr:return"Fragment";case Nr:return"Portal";case Ls:return"Profiler";case Xu:return"StrictMode";case As:return"Suspense";case Os:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case rh:return(e.displayName||"Context")+".Consumer";case nh:return(e._context.displayName||"Context")+".Provider";case Gu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ju:return t=e.displayName||null,t!==null?t:js(e.type)||"Memo";case Pn:t=e._payload,e=e._init;try{return js(e(t))}catch{}}return null}function dv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return js(t);case 8:return t===Xu?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fv(e){var t=lh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ml(e){e._valueTracker||(e._valueTracker=fv(e))}function oh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function To(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zs(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _d(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ah(e,t){t=t.checked,t!=null&&Yu(e,"checked",t,!1)}function Ms(e,t){ah(e,t);var n=Kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Bs(e,t.type,Kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ed(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Bs(e,t,n){(t!=="number"||To(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Li=Array.isArray;function Fr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Kn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Fs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return ke({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(Li(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Kn(n)}}function sh(e,t){var n=Kn(t.value),r=Kn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Nd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function uh(e){switch(e){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 $s(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?uh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bl,ch=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Bl=Bl||document.createElement("div"),Bl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Bl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zi={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},pv=["Webkit","ms","Moz","O"];Object.keys(zi).forEach(function(e){pv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zi[t]=zi[e]})});function dh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zi.hasOwnProperty(e)&&zi[e]?(""+t).trim():t+"px"}function fh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=dh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var hv=ke({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 Us(e,t){if(t){if(hv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Hs(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Vs=null;function Zu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ws=null,$r=null,Ur=null;function Td(e){if(e=Sl(e)){if(typeof Ws!="function")throw Error(O(280));var t=e.stateNode;t&&(t=ma(t),Ws(e.stateNode,e.type,t))}}function ph(e){$r?Ur?Ur.push(e):Ur=[e]:$r=e}function hh(){if($r){var e=$r,t=Ur;if(Ur=$r=null,Td(e),t)for(e=0;e<t.length;e++)Td(t[e])}}function mh(e,t){return e(t)}function gh(){}var Va=!1;function yh(e,t,n){if(Va)return e(t,n);Va=!0;try{return mh(e,t,n)}finally{Va=!1,($r!==null||Ur!==null)&&(gh(),hh())}}function el(e,t){var n=e.stateNode;if(n===null)return null;var r=ma(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var qs=!1;if(vn)try{var xi={};Object.defineProperty(xi,"passive",{get:function(){qs=!0}}),window.addEventListener("test",xi,xi),window.removeEventListener("test",xi,xi)}catch{qs=!1}function mv(e,t,n,r,i,l,o,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Mi=!1,Ro=null,Io=!1,Ks=null,gv={onError:function(e){Mi=!0,Ro=e}};function yv(e,t,n,r,i,l,o,a,s){Mi=!1,Ro=null,mv.apply(gv,arguments)}function vv(e,t,n,r,i,l,o,a,s){if(yv.apply(this,arguments),Mi){if(Mi){var u=Ro;Mi=!1,Ro=null}else throw Error(O(198));Io||(Io=!0,Ks=u)}}function gr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function vh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Rd(e){if(gr(e)!==e)throw Error(O(188))}function xv(e){var t=e.alternate;if(!t){if(t=gr(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return Rd(i),e;if(l===r)return Rd(i),t;l=l.sibling}throw Error(O(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=l;break}if(a===r){o=!0,r=i,n=l;break}a=a.sibling}if(!o){for(a=l.child;a;){if(a===n){o=!0,n=l,r=i;break}if(a===r){o=!0,r=l,n=i;break}a=a.sibling}if(!o)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function xh(e){return e=xv(e),e!==null?wh(e):null}function wh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=wh(e);if(t!==null)return t;e=e.sibling}return null}var kh=Ct.unstable_scheduleCallback,Id=Ct.unstable_cancelCallback,wv=Ct.unstable_shouldYield,kv=Ct.unstable_requestPaint,be=Ct.unstable_now,Sv=Ct.unstable_getCurrentPriorityLevel,ec=Ct.unstable_ImmediatePriority,Sh=Ct.unstable_UserBlockingPriority,Po=Ct.unstable_NormalPriority,Cv=Ct.unstable_LowPriority,Ch=Ct.unstable_IdlePriority,da=null,an=null;function _v(e){if(an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(da,e,void 0,(e.current.flags&128)===128)}catch{}}var Wt=Math.clz32?Math.clz32:Nv,Ev=Math.log,bv=Math.LN2;function Nv(e){return e>>>=0,e===0?32:31-(Ev(e)/bv|0)|0}var Fl=64,$l=4194304;function Ai(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Do(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Ai(a):(l&=o,l!==0&&(r=Ai(l)))}else o=n&~i,o!==0?r=Ai(o):l!==0&&(r=Ai(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Wt(t),i=1<<n,r|=e[n],t&=~i;return r}function Tv(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 Rv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-Wt(l),a=1<<o,s=i[o];s===-1?(!(a&n)||a&r)&&(i[o]=Tv(a,t)):s<=t&&(e.expiredLanes|=a),l&=~a}}function Qs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function _h(){var e=Fl;return Fl<<=1,!(Fl&4194240)&&(Fl=64),e}function Wa(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wt(t),e[t]=n}function Iv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Wt(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function tc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Wt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ae=0;function Eh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var bh,nc,Nh,Th,Rh,Ys=!1,Ul=[],Bn=null,Fn=null,$n=null,tl=new Map,nl=new Map,An=[],Pv="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 Pd(e,t){switch(e){case"focusin":case"focusout":Bn=null;break;case"dragenter":case"dragleave":Fn=null;break;case"mouseover":case"mouseout":$n=null;break;case"pointerover":case"pointerout":tl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nl.delete(t.pointerId)}}function wi(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=Sl(t),t!==null&&nc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Dv(e,t,n,r,i){switch(t){case"focusin":return Bn=wi(Bn,e,t,n,r,i),!0;case"dragenter":return Fn=wi(Fn,e,t,n,r,i),!0;case"mouseover":return $n=wi($n,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return tl.set(l,wi(tl.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,nl.set(l,wi(nl.get(l)||null,e,t,n,r,i)),!0}return!1}function Ih(e){var t=ir(e.target);if(t!==null){var n=gr(t);if(n!==null){if(t=n.tag,t===13){if(t=vh(n),t!==null){e.blockedOn=t,Rh(e.priority,function(){Nh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Vs=r,n.target.dispatchEvent(r),Vs=null}else return t=Sl(n),t!==null&&nc(t),e.blockedOn=n,!1;t.shift()}return!0}function Dd(e,t,n){fo(e)&&n.delete(t)}function Lv(){Ys=!1,Bn!==null&&fo(Bn)&&(Bn=null),Fn!==null&&fo(Fn)&&(Fn=null),$n!==null&&fo($n)&&($n=null),tl.forEach(Dd),nl.forEach(Dd)}function ki(e,t){e.blockedOn===t&&(e.blockedOn=null,Ys||(Ys=!0,Ct.unstable_scheduleCallback(Ct.unstable_NormalPriority,Lv)))}function rl(e){function t(i){return ki(i,e)}if(0<Ul.length){ki(Ul[0],e);for(var n=1;n<Ul.length;n++){var r=Ul[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Bn!==null&&ki(Bn,e),Fn!==null&&ki(Fn,e),$n!==null&&ki($n,e),tl.forEach(t),nl.forEach(t),n=0;n<An.length;n++)r=An[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<An.length&&(n=An[0],n.blockedOn===null);)Ih(n),n.blockedOn===null&&An.shift()}var Hr=Cn.ReactCurrentBatchConfig,Lo=!0;function Av(e,t,n,r){var i=ae,l=Hr.transition;Hr.transition=null;try{ae=1,rc(e,t,n,r)}finally{ae=i,Hr.transition=l}}function Ov(e,t,n,r){var i=ae,l=Hr.transition;Hr.transition=null;try{ae=4,rc(e,t,n,r)}finally{ae=i,Hr.transition=l}}function rc(e,t,n,r){if(Lo){var i=Xs(e,t,n,r);if(i===null)ts(e,t,r,Ao,n),Pd(e,r);else if(Dv(i,e,t,n,r))r.stopPropagation();else if(Pd(e,r),t&4&&-1<Pv.indexOf(e)){for(;i!==null;){var l=Sl(i);if(l!==null&&bh(l),l=Xs(e,t,n,r),l===null&&ts(e,t,r,Ao,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else ts(e,t,r,null,n)}}var Ao=null;function Xs(e,t,n,r){if(Ao=null,e=Zu(r),e=ir(e),e!==null)if(t=gr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=vh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ao=e,null}function Ph(e){switch(e){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(Sv()){case ec:return 1;case Sh:return 4;case Po:case Cv:return 16;case Ch:return 536870912;default:return 16}default:return 16}}var zn=null,ic=null,po=null;function Dh(){if(po)return po;var e,t=ic,n=t.length,r,i="value"in zn?zn.value:zn.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return po=i.slice(e,1<r?1-r:void 0)}function ho(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Hl(){return!0}function Ld(){return!1}function Et(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(l):l[a]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Hl:Ld,this.isPropagationStopped=Ld,this}return ke(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Hl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hl)},persist:function(){},isPersistent:Hl}),t}var ri={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lc=Et(ri),kl=ke({},ri,{view:0,detail:0}),jv=Et(kl),qa,Ka,Si,fa=ke({},kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:oc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Si&&(Si&&e.type==="mousemove"?(qa=e.screenX-Si.screenX,Ka=e.screenY-Si.screenY):Ka=qa=0,Si=e),qa)},movementY:function(e){return"movementY"in e?e.movementY:Ka}}),Ad=Et(fa),zv=ke({},fa,{dataTransfer:0}),Mv=Et(zv),Bv=ke({},kl,{relatedTarget:0}),Qa=Et(Bv),Fv=ke({},ri,{animationName:0,elapsedTime:0,pseudoElement:0}),$v=Et(Fv),Uv=ke({},ri,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hv=Et(Uv),Vv=ke({},ri,{data:0}),Od=Et(Vv),Wv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qv={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"},Kv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kv[e])?!!t[e]:!1}function oc(){return Qv}var Yv=ke({},kl,{key:function(e){if(e.key){var t=Wv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ho(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:oc,charCode:function(e){return e.type==="keypress"?ho(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ho(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Xv=Et(Yv),Gv=ke({},fa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jd=Et(Gv),Jv=ke({},kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oc}),Zv=Et(Jv),e1=ke({},ri,{propertyName:0,elapsedTime:0,pseudoElement:0}),t1=Et(e1),n1=ke({},fa,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),r1=Et(n1),i1=[9,13,27,32],ac=vn&&"CompositionEvent"in window,Bi=null;vn&&"documentMode"in document&&(Bi=document.documentMode);var l1=vn&&"TextEvent"in window&&!Bi,Lh=vn&&(!ac||Bi&&8<Bi&&11>=Bi),zd=" ",Md=!1;function Ah(e,t){switch(e){case"keyup":return i1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rr=!1;function o1(e,t){switch(e){case"compositionend":return Oh(t);case"keypress":return t.which!==32?null:(Md=!0,zd);case"textInput":return e=t.data,e===zd&&Md?null:e;default:return null}}function a1(e,t){if(Rr)return e==="compositionend"||!ac&&Ah(e,t)?(e=Dh(),po=ic=zn=null,Rr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lh&&t.locale!=="ko"?null:t.data;default:return null}}var s1={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 Bd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!s1[e.type]:t==="textarea"}function jh(e,t,n,r){ph(r),t=Oo(t,"onChange"),0<t.length&&(n=new lc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fi=null,il=null;function u1(e){Kh(e,0)}function pa(e){var t=Dr(e);if(oh(t))return e}function c1(e,t){if(e==="change")return t}var zh=!1;if(vn){var Ya;if(vn){var Xa="oninput"in document;if(!Xa){var Fd=document.createElement("div");Fd.setAttribute("oninput","return;"),Xa=typeof Fd.oninput=="function"}Ya=Xa}else Ya=!1;zh=Ya&&(!document.documentMode||9<document.documentMode)}function $d(){Fi&&(Fi.detachEvent("onpropertychange",Mh),il=Fi=null)}function Mh(e){if(e.propertyName==="value"&&pa(il)){var t=[];jh(t,il,e,Zu(e)),yh(u1,t)}}function d1(e,t,n){e==="focusin"?($d(),Fi=t,il=n,Fi.attachEvent("onpropertychange",Mh)):e==="focusout"&&$d()}function f1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pa(il)}function p1(e,t){if(e==="click")return pa(t)}function h1(e,t){if(e==="input"||e==="change")return pa(t)}function m1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:m1;function ll(e,t){if(Kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ds.call(t,i)||!Kt(e[i],t[i]))return!1}return!0}function Ud(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hd(e,t){var n=Ud(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ud(n)}}function Bh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fh(){for(var e=window,t=To();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=To(e.document)}return t}function sc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function g1(e){var t=Fh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Bh(n.ownerDocument.documentElement,n)){if(r!==null&&sc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Hd(n,l);var o=Hd(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var y1=vn&&"documentMode"in document&&11>=document.documentMode,Ir=null,Gs=null,$i=null,Js=!1;function Vd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Js||Ir==null||Ir!==To(r)||(r=Ir,"selectionStart"in r&&sc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),$i&&ll($i,r)||($i=r,r=Oo(Gs,"onSelect"),0<r.length&&(t=new lc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ir)))}function Vl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pr={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionend:Vl("Transition","TransitionEnd")},Ga={},$h={};vn&&($h=document.createElement("div").style,"AnimationEvent"in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),"TransitionEvent"in window||delete Pr.transitionend.transition);function ha(e){if(Ga[e])return Ga[e];if(!Pr[e])return e;var t=Pr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $h)return Ga[e]=t[n];return e}var Uh=ha("animationend"),Hh=ha("animationiteration"),Vh=ha("animationstart"),Wh=ha("transitionend"),qh=new Map,Wd="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 Xn(e,t){qh.set(e,t),mr(t,[e])}for(var Ja=0;Ja<Wd.length;Ja++){var Za=Wd[Ja],v1=Za.toLowerCase(),x1=Za[0].toUpperCase()+Za.slice(1);Xn(v1,"on"+x1)}Xn(Uh,"onAnimationEnd");Xn(Hh,"onAnimationIteration");Xn(Vh,"onAnimationStart");Xn("dblclick","onDoubleClick");Xn("focusin","onFocus");Xn("focusout","onBlur");Xn(Wh,"onTransitionEnd");Yr("onMouseEnter",["mouseout","mouseover"]);Yr("onMouseLeave",["mouseout","mouseover"]);Yr("onPointerEnter",["pointerout","pointerover"]);Yr("onPointerLeave",["pointerout","pointerover"]);mr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));mr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));mr("onBeforeInput",["compositionend","keypress","textInput","paste"]);mr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));mr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));mr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oi="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(" "),w1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Oi));function qd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,vv(r,t,void 0,e),e.currentTarget=null}function Kh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==l&&i.isPropagationStopped())break e;qd(i,a,u),l=s}else for(o=0;o<r.length;o++){if(a=r[o],s=a.instance,u=a.currentTarget,a=a.listener,s!==l&&i.isPropagationStopped())break e;qd(i,a,u),l=s}}}if(Io)throw e=Ks,Io=!1,Ks=null,e}function pe(e,t){var n=t[ru];n===void 0&&(n=t[ru]=new Set);var r=e+"__bubble";n.has(r)||(Qh(t,e,2,!1),n.add(r))}function es(e,t,n){var r=0;t&&(r|=4),Qh(n,e,r,t)}var Wl="_reactListening"+Math.random().toString(36).slice(2);function ol(e){if(!e[Wl]){e[Wl]=!0,th.forEach(function(n){n!=="selectionchange"&&(w1.has(n)||es(n,!1,e),es(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wl]||(t[Wl]=!0,es("selectionchange",!1,t))}}function Qh(e,t,n,r){switch(Ph(t)){case 1:var i=Av;break;case 4:i=Ov;break;default:i=rc}n=i.bind(null,t,n,e),i=void 0,!qs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ts(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;a!==null;){if(o=ir(a),o===null)return;if(s=o.tag,s===5||s===6){r=l=o;continue e}a=a.parentNode}}r=r.return}yh(function(){var u=l,c=Zu(n),d=[];e:{var p=qh.get(e);if(p!==void 0){var f=lc,x=e;switch(e){case"keypress":if(ho(n)===0)break e;case"keydown":case"keyup":f=Xv;break;case"focusin":x="focus",f=Qa;break;case"focusout":x="blur",f=Qa;break;case"beforeblur":case"afterblur":f=Qa;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Mv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=Zv;break;case Uh:case Hh:case Vh:f=$v;break;case Wh:f=t1;break;case"scroll":f=jv;break;case"wheel":f=r1;break;case"copy":case"cut":case"paste":f=Hv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=jd}var y=(t&4)!==0,_=!y&&e==="scroll",h=y?p!==null?p+"Capture":null:p;y=[];for(var m=u,v;m!==null;){v=m;var N=v.stateNode;if(v.tag===5&&N!==null&&(v=N,h!==null&&(N=el(m,h),N!=null&&y.push(al(m,N,v)))),_)break;m=m.return}0<y.length&&(p=new f(p,x,null,n,c),d.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&n!==Vs&&(x=n.relatedTarget||n.fromElement)&&(ir(x)||x[xn]))break e;if((f||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,f?(x=n.relatedTarget||n.toElement,f=u,x=x?ir(x):null,x!==null&&(_=gr(x),x!==_||x.tag!==5&&x.tag!==6)&&(x=null)):(f=null,x=u),f!==x)){if(y=Ad,N="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(y=jd,N="onPointerLeave",h="onPointerEnter",m="pointer"),_=f==null?p:Dr(f),v=x==null?p:Dr(x),p=new y(N,m+"leave",f,n,c),p.target=_,p.relatedTarget=v,N=null,ir(c)===u&&(y=new y(h,m+"enter",x,n,c),y.target=v,y.relatedTarget=_,N=y),_=N,f&&x)t:{for(y=f,h=x,m=0,v=y;v;v=Sr(v))m++;for(v=0,N=h;N;N=Sr(N))v++;for(;0<m-v;)y=Sr(y),m--;for(;0<v-m;)h=Sr(h),v--;for(;m--;){if(y===h||h!==null&&y===h.alternate)break t;y=Sr(y),h=Sr(h)}y=null}else y=null;f!==null&&Kd(d,p,f,y,!1),x!==null&&_!==null&&Kd(d,_,x,y,!0)}}e:{if(p=u?Dr(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var b=c1;else if(Bd(p))if(zh)b=h1;else{b=f1;var C=d1}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(b=p1);if(b&&(b=b(e,u))){jh(d,b,n,c);break e}C&&C(e,p,u),e==="focusout"&&(C=p._wrapperState)&&C.controlled&&p.type==="number"&&Bs(p,"number",p.value)}switch(C=u?Dr(u):window,e){case"focusin":(Bd(C)||C.contentEditable==="true")&&(Ir=C,Gs=u,$i=null);break;case"focusout":$i=Gs=Ir=null;break;case"mousedown":Js=!0;break;case"contextmenu":case"mouseup":case"dragend":Js=!1,Vd(d,n,c);break;case"selectionchange":if(y1)break;case"keydown":case"keyup":Vd(d,n,c)}var E;if(ac)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Rr?Ah(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Lh&&n.locale!=="ko"&&(Rr||T!=="onCompositionStart"?T==="onCompositionEnd"&&Rr&&(E=Dh()):(zn=c,ic="value"in zn?zn.value:zn.textContent,Rr=!0)),C=Oo(u,T),0<C.length&&(T=new Od(T,e,null,n,c),d.push({event:T,listeners:C}),E?T.data=E:(E=Oh(n),E!==null&&(T.data=E)))),(E=l1?o1(e,n):a1(e,n))&&(u=Oo(u,"onBeforeInput"),0<u.length&&(c=new Od("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=E))}Kh(d,t)})}function al(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Oo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=el(e,n),l!=null&&r.unshift(al(e,l,i)),l=el(e,t),l!=null&&r.push(al(e,l,i))),e=e.return}return r}function Sr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Kd(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(s!==null&&s===r)break;a.tag===5&&u!==null&&(a=u,i?(s=el(n,l),s!=null&&o.unshift(al(n,s,a))):i||(s=el(n,l),s!=null&&o.push(al(n,s,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var k1=/\r\n?/g,S1=/\u0000|\uFFFD/g;function Qd(e){return(typeof e=="string"?e:""+e).replace(k1,`
|
|
38
|
-
`).replace(S1,"")}function ql(e,t,n){if(t=Qd(t),Qd(e)!==t&&n)throw Error(O(425))}function jo(){}var Zs=null,eu=null;function tu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var nu=typeof setTimeout=="function"?setTimeout:void 0,C1=typeof clearTimeout=="function"?clearTimeout:void 0,Yd=typeof Promise=="function"?Promise:void 0,_1=typeof queueMicrotask=="function"?queueMicrotask:typeof Yd<"u"?function(e){return Yd.resolve(null).then(e).catch(E1)}:nu;function E1(e){setTimeout(function(){throw e})}function ns(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),rl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);rl(t)}function Un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Xd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ii=Math.random().toString(36).slice(2),ln="__reactFiber$"+ii,sl="__reactProps$"+ii,xn="__reactContainer$"+ii,ru="__reactEvents$"+ii,b1="__reactListeners$"+ii,N1="__reactHandles$"+ii;function ir(e){var t=e[ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xn]||n[ln]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Xd(e);e!==null;){if(n=e[ln])return n;e=Xd(e)}return t}e=n,n=e.parentNode}return null}function Sl(e){return e=e[ln]||e[xn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Dr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function ma(e){return e[sl]||null}var iu=[],Lr=-1;function Gn(e){return{current:e}}function he(e){0>Lr||(e.current=iu[Lr],iu[Lr]=null,Lr--)}function de(e,t){Lr++,iu[Lr]=e.current,e.current=t}var Qn={},Je=Gn(Qn),ct=Gn(!1),ur=Qn;function Xr(e,t){var n=e.type.contextTypes;if(!n)return Qn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function dt(e){return e=e.childContextTypes,e!=null}function zo(){he(ct),he(Je)}function Gd(e,t,n){if(Je.current!==Qn)throw Error(O(168));de(Je,t),de(ct,n)}function Yh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,dv(e)||"Unknown",i));return ke({},n,r)}function Mo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qn,ur=Je.current,de(Je,e),de(ct,ct.current),!0}function Jd(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Yh(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,he(ct),he(Je),de(Je,e)):he(ct),de(ct,n)}var hn=null,ga=!1,rs=!1;function Xh(e){hn===null?hn=[e]:hn.push(e)}function T1(e){ga=!0,Xh(e)}function Jn(){if(!rs&&hn!==null){rs=!0;var e=0,t=ae;try{var n=hn;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}hn=null,ga=!1}catch(i){throw hn!==null&&(hn=hn.slice(e+1)),kh(ec,Jn),i}finally{ae=t,rs=!1}}return null}var Ar=[],Or=0,Bo=null,Fo=0,Pt=[],Dt=0,cr=null,mn=1,gn="";function tr(e,t){Ar[Or++]=Fo,Ar[Or++]=Bo,Bo=e,Fo=t}function Gh(e,t,n){Pt[Dt++]=mn,Pt[Dt++]=gn,Pt[Dt++]=cr,cr=e;var r=mn;e=gn;var i=32-Wt(r)-1;r&=~(1<<i),n+=1;var l=32-Wt(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,mn=1<<32-Wt(t)+i|n<<i|r,gn=l+e}else mn=1<<l|n<<i|r,gn=e}function uc(e){e.return!==null&&(tr(e,1),Gh(e,1,0))}function cc(e){for(;e===Bo;)Bo=Ar[--Or],Ar[Or]=null,Fo=Ar[--Or],Ar[Or]=null;for(;e===cr;)cr=Pt[--Dt],Pt[Dt]=null,gn=Pt[--Dt],Pt[Dt]=null,mn=Pt[--Dt],Pt[Dt]=null}var St=null,wt=null,ge=!1,Vt=null;function Jh(e,t){var n=At(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,St=e,wt=Un(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,St=e,wt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=cr!==null?{id:mn,overflow:gn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=At(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,St=e,wt=null,!0):!1;default:return!1}}function lu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ou(e){if(ge){var t=wt;if(t){var n=t;if(!Zd(e,t)){if(lu(e))throw Error(O(418));t=Un(n.nextSibling);var r=St;t&&Zd(e,t)?Jh(r,n):(e.flags=e.flags&-4097|2,ge=!1,St=e)}}else{if(lu(e))throw Error(O(418));e.flags=e.flags&-4097|2,ge=!1,St=e}}}function ef(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;St=e}function Kl(e){if(e!==St)return!1;if(!ge)return ef(e),ge=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!tu(e.type,e.memoizedProps)),t&&(t=wt)){if(lu(e))throw Zh(),Error(O(418));for(;t;)Jh(e,t),t=Un(t.nextSibling)}if(ef(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){wt=Un(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}wt=null}}else wt=St?Un(e.stateNode.nextSibling):null;return!0}function Zh(){for(var e=wt;e;)e=Un(e.nextSibling)}function Gr(){wt=St=null,ge=!1}function dc(e){Vt===null?Vt=[e]:Vt.push(e)}var R1=Cn.ReactCurrentBatchConfig;function Ci(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var a=i.refs;o===null?delete a[l]:a[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function Ql(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function tf(e){var t=e._init;return t(e._payload)}function em(e){function t(h,m){if(e){var v=h.deletions;v===null?(h.deletions=[m],h.flags|=16):v.push(m)}}function n(h,m){if(!e)return null;for(;m!==null;)t(h,m),m=m.sibling;return null}function r(h,m){for(h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function i(h,m){return h=qn(h,m),h.index=0,h.sibling=null,h}function l(h,m,v){return h.index=v,e?(v=h.alternate,v!==null?(v=v.index,v<m?(h.flags|=2,m):v):(h.flags|=2,m)):(h.flags|=1048576,m)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function a(h,m,v,N){return m===null||m.tag!==6?(m=cs(v,h.mode,N),m.return=h,m):(m=i(m,v),m.return=h,m)}function s(h,m,v,N){var b=v.type;return b===Tr?c(h,m,v.props.children,N,v.key):m!==null&&(m.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Pn&&tf(b)===m.type)?(N=i(m,v.props),N.ref=Ci(h,m,v),N.return=h,N):(N=ko(v.type,v.key,v.props,null,h.mode,N),N.ref=Ci(h,m,v),N.return=h,N)}function u(h,m,v,N){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=ds(v,h.mode,N),m.return=h,m):(m=i(m,v.children||[]),m.return=h,m)}function c(h,m,v,N,b){return m===null||m.tag!==7?(m=sr(v,h.mode,N,b),m.return=h,m):(m=i(m,v),m.return=h,m)}function d(h,m,v){if(typeof m=="string"&&m!==""||typeof m=="number")return m=cs(""+m,h.mode,v),m.return=h,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case zl:return v=ko(m.type,m.key,m.props,null,h.mode,v),v.ref=Ci(h,null,m),v.return=h,v;case Nr:return m=ds(m,h.mode,v),m.return=h,m;case Pn:var N=m._init;return d(h,N(m._payload),v)}if(Li(m)||vi(m))return m=sr(m,h.mode,v,null),m.return=h,m;Ql(h,m)}return null}function p(h,m,v,N){var b=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return b!==null?null:a(h,m,""+v,N);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case zl:return v.key===b?s(h,m,v,N):null;case Nr:return v.key===b?u(h,m,v,N):null;case Pn:return b=v._init,p(h,m,b(v._payload),N)}if(Li(v)||vi(v))return b!==null?null:c(h,m,v,N,null);Ql(h,v)}return null}function f(h,m,v,N,b){if(typeof N=="string"&&N!==""||typeof N=="number")return h=h.get(v)||null,a(m,h,""+N,b);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case zl:return h=h.get(N.key===null?v:N.key)||null,s(m,h,N,b);case Nr:return h=h.get(N.key===null?v:N.key)||null,u(m,h,N,b);case Pn:var C=N._init;return f(h,m,v,C(N._payload),b)}if(Li(N)||vi(N))return h=h.get(v)||null,c(m,h,N,b,null);Ql(m,N)}return null}function x(h,m,v,N){for(var b=null,C=null,E=m,T=m=0,P=null;E!==null&&T<v.length;T++){E.index>T?(P=E,E=null):P=E.sibling;var D=p(h,E,v[T],N);if(D===null){E===null&&(E=P);break}e&&E&&D.alternate===null&&t(h,E),m=l(D,m,T),C===null?b=D:C.sibling=D,C=D,E=P}if(T===v.length)return n(h,E),ge&&tr(h,T),b;if(E===null){for(;T<v.length;T++)E=d(h,v[T],N),E!==null&&(m=l(E,m,T),C===null?b=E:C.sibling=E,C=E);return ge&&tr(h,T),b}for(E=r(h,E);T<v.length;T++)P=f(E,h,T,v[T],N),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?T:P.key),m=l(P,m,T),C===null?b=P:C.sibling=P,C=P);return e&&E.forEach(function(L){return t(h,L)}),ge&&tr(h,T),b}function y(h,m,v,N){var b=vi(v);if(typeof b!="function")throw Error(O(150));if(v=b.call(v),v==null)throw Error(O(151));for(var C=b=null,E=m,T=m=0,P=null,D=v.next();E!==null&&!D.done;T++,D=v.next()){E.index>T?(P=E,E=null):P=E.sibling;var L=p(h,E,D.value,N);if(L===null){E===null&&(E=P);break}e&&E&&L.alternate===null&&t(h,E),m=l(L,m,T),C===null?b=L:C.sibling=L,C=L,E=P}if(D.done)return n(h,E),ge&&tr(h,T),b;if(E===null){for(;!D.done;T++,D=v.next())D=d(h,D.value,N),D!==null&&(m=l(D,m,T),C===null?b=D:C.sibling=D,C=D);return ge&&tr(h,T),b}for(E=r(h,E);!D.done;T++,D=v.next())D=f(E,h,T,D.value,N),D!==null&&(e&&D.alternate!==null&&E.delete(D.key===null?T:D.key),m=l(D,m,T),C===null?b=D:C.sibling=D,C=D);return e&&E.forEach(function(R){return t(h,R)}),ge&&tr(h,T),b}function _(h,m,v,N){if(typeof v=="object"&&v!==null&&v.type===Tr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case zl:e:{for(var b=v.key,C=m;C!==null;){if(C.key===b){if(b=v.type,b===Tr){if(C.tag===7){n(h,C.sibling),m=i(C,v.props.children),m.return=h,h=m;break e}}else if(C.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Pn&&tf(b)===C.type){n(h,C.sibling),m=i(C,v.props),m.ref=Ci(h,C,v),m.return=h,h=m;break e}n(h,C);break}else t(h,C);C=C.sibling}v.type===Tr?(m=sr(v.props.children,h.mode,N,v.key),m.return=h,h=m):(N=ko(v.type,v.key,v.props,null,h.mode,N),N.ref=Ci(h,m,v),N.return=h,h=N)}return o(h);case Nr:e:{for(C=v.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(h,m.sibling),m=i(m,v.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=ds(v,h.mode,N),m.return=h,h=m}return o(h);case Pn:return C=v._init,_(h,m,C(v._payload),N)}if(Li(v))return x(h,m,v,N);if(vi(v))return y(h,m,v,N);Ql(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(h,m.sibling),m=i(m,v),m.return=h,h=m):(n(h,m),m=cs(v,h.mode,N),m.return=h,h=m),o(h)):n(h,m)}return _}var Jr=em(!0),tm=em(!1),$o=Gn(null),Uo=null,jr=null,fc=null;function pc(){fc=jr=Uo=null}function hc(e){var t=$o.current;he($o),e._currentValue=t}function au(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vr(e,t){Uo=e,fc=jr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ut=!0),e.firstContext=null)}function jt(e){var t=e._currentValue;if(fc!==e)if(e={context:e,memoizedValue:t,next:null},jr===null){if(Uo===null)throw Error(O(308));jr=e,Uo.dependencies={lanes:0,firstContext:e}}else jr=jr.next=e;return t}var lr=null;function mc(e){lr===null?lr=[e]:lr.push(e)}function nm(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,mc(t)):(n.next=i.next,i.next=n),t.interleaved=n,wn(e,r)}function wn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Dn=!1;function gc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function rm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function yn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,wn(e,n)}return i=r.interleaved,i===null?(t.next=t,mc(r)):(t.next=i.next,i.next=t),r.interleaved=t,wn(e,n)}function mo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tc(e,n)}}function nf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ho(e,t,n,r){var i=e.updateQueue;Dn=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var s=a,u=s.next;s.next=null,o===null?l=u:o.next=u,o=s;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=s))}if(l!==null){var d=i.baseState;o=0,c=u=s=null,a=l;do{var p=a.lane,f=a.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,y=a;switch(p=t,f=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){d=x.call(f,d,p);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,p=typeof x=="function"?x.call(f,d,p):x,p==null)break e;d=ke({},d,p);break e;case 2:Dn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else f={eventTime:f,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=f,s=d):c=c.next=f,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(c===null&&(s=d),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);fr|=o,e.lanes=o,e.memoizedState=d}}function rf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(O(191,i));i.call(r)}}}var Cl={},sn=Gn(Cl),ul=Gn(Cl),cl=Gn(Cl);function or(e){if(e===Cl)throw Error(O(174));return e}function yc(e,t){switch(de(cl,t),de(ul,e),de(sn,Cl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$s(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$s(t,e)}he(sn),de(sn,t)}function Zr(){he(sn),he(ul),he(cl)}function im(e){or(cl.current);var t=or(sn.current),n=$s(t,e.type);t!==n&&(de(ul,e),de(sn,n))}function vc(e){ul.current===e&&(he(sn),he(ul))}var xe=Gn(0);function Vo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var is=[];function xc(){for(var e=0;e<is.length;e++)is[e]._workInProgressVersionPrimary=null;is.length=0}var go=Cn.ReactCurrentDispatcher,ls=Cn.ReactCurrentBatchConfig,dr=0,we=null,Le=null,ze=null,Wo=!1,Ui=!1,dl=0,I1=0;function Qe(){throw Error(O(321))}function wc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kt(e[n],t[n]))return!1;return!0}function kc(e,t,n,r,i,l){if(dr=l,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,go.current=e===null||e.memoizedState===null?A1:O1,e=n(r,i),Ui){l=0;do{if(Ui=!1,dl=0,25<=l)throw Error(O(301));l+=1,ze=Le=null,t.updateQueue=null,go.current=j1,e=n(r,i)}while(Ui)}if(go.current=qo,t=Le!==null&&Le.next!==null,dr=0,ze=Le=we=null,Wo=!1,t)throw Error(O(300));return e}function Sc(){var e=dl!==0;return dl=0,e}function nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?we.memoizedState=ze=e:ze=ze.next=e,ze}function zt(){if(Le===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=ze===null?we.memoizedState:ze.next;if(t!==null)ze=t,Le=e;else{if(e===null)throw Error(O(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},ze===null?we.memoizedState=ze=e:ze=ze.next=e}return ze}function fl(e,t){return typeof t=="function"?t(e):t}function os(e){var t=zt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=Le,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var a=o=null,s=null,u=l;do{var c=u.lane;if((dr&c)===c)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(a=s=d,o=r):s=s.next=d,we.lanes|=c,fr|=c}u=u.next}while(u!==null&&u!==l);s===null?o=r:s.next=a,Kt(r,t.memoizedState)||(ut=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,we.lanes|=l,fr|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function as(e){var t=zt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);Kt(l,t.memoizedState)||(ut=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function lm(){}function om(e,t){var n=we,r=zt(),i=t(),l=!Kt(r.memoizedState,i);if(l&&(r.memoizedState=i,ut=!0),r=r.queue,Cc(um.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ze!==null&&ze.memoizedState.tag&1){if(n.flags|=2048,pl(9,sm.bind(null,n,r,i,t),void 0,null),Be===null)throw Error(O(349));dr&30||am(n,t,i)}return i}function am(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sm(e,t,n,r){t.value=n,t.getSnapshot=r,cm(t)&&dm(e)}function um(e,t,n){return n(function(){cm(t)&&dm(e)})}function cm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kt(e,n)}catch{return!0}}function dm(e){var t=wn(e,1);t!==null&&qt(t,e,1,-1)}function lf(e){var t=nn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fl,lastRenderedState:e},t.queue=e,e=e.dispatch=L1.bind(null,we,e),[t.memoizedState,e]}function pl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function fm(){return zt().memoizedState}function yo(e,t,n,r){var i=nn();we.flags|=e,i.memoizedState=pl(1|t,n,void 0,r===void 0?null:r)}function ya(e,t,n,r){var i=zt();r=r===void 0?null:r;var l=void 0;if(Le!==null){var o=Le.memoizedState;if(l=o.destroy,r!==null&&wc(r,o.deps)){i.memoizedState=pl(t,n,l,r);return}}we.flags|=e,i.memoizedState=pl(1|t,n,l,r)}function of(e,t){return yo(8390656,8,e,t)}function Cc(e,t){return ya(2048,8,e,t)}function pm(e,t){return ya(4,2,e,t)}function hm(e,t){return ya(4,4,e,t)}function mm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gm(e,t,n){return n=n!=null?n.concat([e]):null,ya(4,4,mm.bind(null,t,e),n)}function _c(){}function ym(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&wc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function vm(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&wc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function xm(e,t,n){return dr&21?(Kt(n,t)||(n=_h(),we.lanes|=n,fr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ut=!0),e.memoizedState=n)}function P1(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=ls.transition;ls.transition={};try{e(!1),t()}finally{ae=n,ls.transition=r}}function wm(){return zt().memoizedState}function D1(e,t,n){var r=Wn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},km(e))Sm(t,n);else if(n=nm(e,t,n,r),n!==null){var i=tt();qt(n,e,r,i),Cm(n,t,r)}}function L1(e,t,n){var r=Wn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(km(e))Sm(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,a=l(o,n);if(i.hasEagerState=!0,i.eagerState=a,Kt(a,o)){var s=t.interleaved;s===null?(i.next=i,mc(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=nm(e,t,i,r),n!==null&&(i=tt(),qt(n,e,r,i),Cm(n,t,r))}}function km(e){var t=e.alternate;return e===we||t!==null&&t===we}function Sm(e,t){Ui=Wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Cm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tc(e,n)}}var qo={readContext:jt,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},A1={readContext:jt,useCallback:function(e,t){return nn().memoizedState=[e,t===void 0?null:t],e},useContext:jt,useEffect:of,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yo(4194308,4,mm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=nn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=D1.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=nn();return e={current:e},t.memoizedState=e},useState:lf,useDebugValue:_c,useDeferredValue:function(e){return nn().memoizedState=e},useTransition:function(){var e=lf(!1),t=e[0];return e=P1.bind(null,e[1]),nn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,i=nn();if(ge){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Be===null)throw Error(O(349));dr&30||am(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,of(um.bind(null,r,l,e),[e]),r.flags|=2048,pl(9,sm.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=nn(),t=Be.identifierPrefix;if(ge){var n=gn,r=mn;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=dl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=I1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},O1={readContext:jt,useCallback:ym,useContext:jt,useEffect:Cc,useImperativeHandle:gm,useInsertionEffect:pm,useLayoutEffect:hm,useMemo:vm,useReducer:os,useRef:fm,useState:function(){return os(fl)},useDebugValue:_c,useDeferredValue:function(e){var t=zt();return xm(t,Le.memoizedState,e)},useTransition:function(){var e=os(fl)[0],t=zt().memoizedState;return[e,t]},useMutableSource:lm,useSyncExternalStore:om,useId:wm,unstable_isNewReconciler:!1},j1={readContext:jt,useCallback:ym,useContext:jt,useEffect:Cc,useImperativeHandle:gm,useInsertionEffect:pm,useLayoutEffect:hm,useMemo:vm,useReducer:as,useRef:fm,useState:function(){return as(fl)},useDebugValue:_c,useDeferredValue:function(e){var t=zt();return Le===null?t.memoizedState=e:xm(t,Le.memoizedState,e)},useTransition:function(){var e=as(fl)[0],t=zt().memoizedState;return[e,t]},useMutableSource:lm,useSyncExternalStore:om,useId:wm,unstable_isNewReconciler:!1};function Ut(e,t){if(e&&e.defaultProps){t=ke({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function su(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ke({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var va={isMounted:function(e){return(e=e._reactInternals)?gr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tt(),i=Wn(e),l=yn(r,i);l.payload=t,n!=null&&(l.callback=n),t=Hn(e,l,i),t!==null&&(qt(t,e,i,r),mo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tt(),i=Wn(e),l=yn(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Hn(e,l,i),t!==null&&(qt(t,e,i,r),mo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tt(),r=Wn(e),i=yn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Hn(e,i,r),t!==null&&(qt(t,e,r,n),mo(t,e,r))}};function af(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!ll(n,r)||!ll(i,l):!0}function _m(e,t,n){var r=!1,i=Qn,l=t.contextType;return typeof l=="object"&&l!==null?l=jt(l):(i=dt(t)?ur:Je.current,r=t.contextTypes,l=(r=r!=null)?Xr(e,i):Qn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=va,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function sf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&va.enqueueReplaceState(t,t.state,null)}function uu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},gc(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=jt(l):(l=dt(t)?ur:Je.current,i.context=Xr(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(su(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&va.enqueueReplaceState(i,i.state,null),Ho(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ei(e,t){try{var n="",r=t;do n+=cv(r),r=r.return;while(r);var i=n}catch(l){i=`
|
|
39
|
-
Error generating stack: `+l.message+`
|
|
40
|
-
`+l.stack}return{value:e,source:t,stack:i,digest:null}}function ss(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function cu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var z1=typeof WeakMap=="function"?WeakMap:Map;function Em(e,t,n){n=yn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qo||(Qo=!0,wu=r),cu(e,t)},n}function bm(e,t,n){n=yn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){cu(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){cu(e,t),typeof r!="function"&&(Vn===null?Vn=new Set([this]):Vn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function uf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new z1;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=G1.bind(null,e,t,n),t.then(e,e))}function cf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function df(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=yn(-1,1),t.tag=2,Hn(n,t,1))),n.lanes|=1),e)}var M1=Cn.ReactCurrentOwner,ut=!1;function et(e,t,n,r){t.child=e===null?tm(t,null,n,r):Jr(t,e.child,n,r)}function ff(e,t,n,r,i){n=n.render;var l=t.ref;return Vr(t,i),r=kc(e,t,n,r,l,i),n=Sc(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kn(e,t,i)):(ge&&n&&uc(t),t.flags|=1,et(e,t,r,i),t.child)}function pf(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Dc(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Nm(e,t,l,r,i)):(e=ko(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:ll,n(o,r)&&e.ref===t.ref)return kn(e,t,i)}return t.flags|=1,e=qn(l,r),e.ref=t.ref,e.return=t,t.child=e}function Nm(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(ll(l,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(ut=!0);else return t.lanes=e.lanes,kn(e,t,i)}return du(e,t,n,r,i)}function Tm(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(Mr,xt),xt|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(Mr,xt),xt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,de(Mr,xt),xt|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,de(Mr,xt),xt|=r;return et(e,t,i,n),t.child}function Rm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function du(e,t,n,r,i){var l=dt(n)?ur:Je.current;return l=Xr(t,l),Vr(t,i),n=kc(e,t,n,r,l,i),r=Sc(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kn(e,t,i)):(ge&&r&&uc(t),t.flags|=1,et(e,t,n,i),t.child)}function hf(e,t,n,r,i){if(dt(n)){var l=!0;Mo(t)}else l=!1;if(Vr(t,i),t.stateNode===null)vo(e,t),_m(t,n,r),uu(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var s=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=jt(u):(u=dt(n)?ur:Je.current,u=Xr(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||s!==u)&&sf(t,o,r,u),Dn=!1;var p=t.memoizedState;o.state=p,Ho(t,r,o,i),s=t.memoizedState,a!==r||p!==s||ct.current||Dn?(typeof c=="function"&&(su(t,n,c,r),s=t.memoizedState),(a=Dn||af(t,n,a,r,p,s,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rm(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Ut(t.type,a),o.props=u,d=t.pendingProps,p=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=jt(s):(s=dt(n)?ur:Je.current,s=Xr(t,s));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||p!==s)&&sf(t,o,r,s),Dn=!1,p=t.memoizedState,o.state=p,Ho(t,r,o,i);var x=t.memoizedState;a!==d||p!==x||ct.current||Dn?(typeof f=="function"&&(su(t,n,f,r),x=t.memoizedState),(u=Dn||af(t,n,u,r,p,x,s)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=s,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return fu(e,t,n,r,l,i)}function fu(e,t,n,r,i,l){Rm(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Jd(t,n,!1),kn(e,t,l);r=t.stateNode,M1.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Jr(t,e.child,null,l),t.child=Jr(t,null,a,l)):et(e,t,a,l),t.memoizedState=r.state,i&&Jd(t,n,!0),t.child}function Im(e){var t=e.stateNode;t.pendingContext?Gd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Gd(e,t.context,!1),yc(e,t.containerInfo)}function mf(e,t,n,r,i){return Gr(),dc(i),t.flags|=256,et(e,t,n,r),t.child}var pu={dehydrated:null,treeContext:null,retryLane:0};function hu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Pm(e,t,n){var r=t.pendingProps,i=xe.current,l=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),de(xe,i&1),e===null)return ou(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=ka(o,r,0,null),e=sr(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=hu(n),t.memoizedState=pu,e):Ec(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return B1(e,t,o,r,a,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,a=i.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=qn(i,s),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?l=qn(a,l):(l=sr(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?hu(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=pu,r}return l=e.child,e=l.sibling,r=qn(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ec(e,t){return t=ka({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Yl(e,t,n,r){return r!==null&&dc(r),Jr(t,e.child,null,n),e=Ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function B1(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=ss(Error(O(422))),Yl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=ka({mode:"visible",children:r.children},i,0,null),l=sr(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Jr(t,e.child,null,o),t.child.memoizedState=hu(o),t.memoizedState=pu,l);if(!(t.mode&1))return Yl(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(O(419)),r=ss(l,r,void 0),Yl(e,t,o,r)}if(a=(o&e.childLanes)!==0,ut||a){if(r=Be,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,wn(e,i),qt(r,e,i,-1))}return Pc(),r=ss(Error(O(421))),Yl(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=J1.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,wt=Un(i.nextSibling),St=t,ge=!0,Vt=null,e!==null&&(Pt[Dt++]=mn,Pt[Dt++]=gn,Pt[Dt++]=cr,mn=e.id,gn=e.overflow,cr=t),t=Ec(t,r.children),t.flags|=4096,t)}function gf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),au(e.return,t,n)}function us(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function Dm(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(et(e,t,r.children,n),r=xe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gf(e,n,t);else if(e.tag===19)gf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(xe,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Vo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),us(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Vo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}us(t,!0,n,null,l);break;case"together":us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=qn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function F1(e,t,n){switch(t.tag){case 3:Im(t),Gr();break;case 5:im(t);break;case 1:dt(t.type)&&Mo(t);break;case 4:yc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;de($o,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(xe,xe.current&1),t.flags|=128,null):n&t.child.childLanes?Pm(e,t,n):(de(xe,xe.current&1),e=kn(e,t,n),e!==null?e.sibling:null);de(xe,xe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Dm(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),de(xe,xe.current),r)break;return null;case 22:case 23:return t.lanes=0,Tm(e,t,n)}return kn(e,t,n)}var Lm,mu,Am,Om;Lm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};mu=function(){};Am=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,or(sn.current);var l=null;switch(n){case"input":i=zs(e,i),r=zs(e,r),l=[];break;case"select":i=ke({},i,{value:void 0}),r=ke({},r,{value:void 0}),l=[];break;case"textarea":i=Fs(e,i),r=Fs(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=jo)}Us(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ji.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var s=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&s!==a&&(s!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&a[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(l||(l=[]),l.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(l=l||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(l=l||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ji.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&pe("scroll",e),l||a===s||(l=[])):(l=l||[]).push(u,s))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};Om=function(e,t,n,r){n!==r&&(t.flags|=4)};function _i(e,t){if(!ge)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $1(e,t,n){var r=t.pendingProps;switch(cc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return dt(t.type)&&zo(),Ye(t),null;case 3:return r=t.stateNode,Zr(),he(ct),he(Je),xc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Kl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vt!==null&&(Cu(Vt),Vt=null))),mu(e,t),Ye(t),null;case 5:vc(t);var i=or(cl.current);if(n=t.type,e!==null&&t.stateNode!=null)Am(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return Ye(t),null}if(e=or(sn.current),Kl(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[ln]=t,r[sl]=l,e=(t.mode&1)!==0,n){case"dialog":pe("cancel",r),pe("close",r);break;case"iframe":case"object":case"embed":pe("load",r);break;case"video":case"audio":for(i=0;i<Oi.length;i++)pe(Oi[i],r);break;case"source":pe("error",r);break;case"img":case"image":case"link":pe("error",r),pe("load",r);break;case"details":pe("toggle",r);break;case"input":_d(r,l),pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},pe("invalid",r);break;case"textarea":bd(r,l),pe("invalid",r)}Us(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="children"?typeof a=="string"?r.textContent!==a&&(l.suppressHydrationWarning!==!0&&ql(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&ql(r.textContent,a,e),i=["children",""+a]):Ji.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&pe("scroll",r)}switch(n){case"input":Ml(r),Ed(r,l,!0);break;case"textarea":Ml(r),Nd(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=jo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=uh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ln]=t,e[sl]=r,Lm(e,t,!1,!1),t.stateNode=e;e:{switch(o=Hs(n,r),n){case"dialog":pe("cancel",e),pe("close",e),i=r;break;case"iframe":case"object":case"embed":pe("load",e),i=r;break;case"video":case"audio":for(i=0;i<Oi.length;i++)pe(Oi[i],e);i=r;break;case"source":pe("error",e),i=r;break;case"img":case"image":case"link":pe("error",e),pe("load",e),i=r;break;case"details":pe("toggle",e),i=r;break;case"input":_d(e,r),i=zs(e,r),pe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ke({},r,{value:void 0}),pe("invalid",e);break;case"textarea":bd(e,r),i=Fs(e,r),pe("invalid",e);break;default:i=r}Us(n,i),a=i;for(l in a)if(a.hasOwnProperty(l)){var s=a[l];l==="style"?fh(e,s):l==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&ch(e,s)):l==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Zi(e,s):typeof s=="number"&&Zi(e,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Ji.hasOwnProperty(l)?s!=null&&l==="onScroll"&&pe("scroll",e):s!=null&&Yu(e,l,s,o))}switch(n){case"input":Ml(e),Ed(e,r,!1);break;case"textarea":Ml(e),Nd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Kn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Fr(e,!!r.multiple,l,!1):r.defaultValue!=null&&Fr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=jo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ye(t),null;case 6:if(e&&t.stateNode!=null)Om(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=or(cl.current),or(sn.current),Kl(t)){if(r=t.stateNode,n=t.memoizedProps,r[ln]=t,(l=r.nodeValue!==n)&&(e=St,e!==null))switch(e.tag){case 3:ql(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ql(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ln]=t,t.stateNode=r}return Ye(t),null;case 13:if(he(xe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ge&&wt!==null&&t.mode&1&&!(t.flags&128))Zh(),Gr(),t.flags|=98560,l=!1;else if(l=Kl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(O(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(O(317));l[ln]=t}else Gr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ye(t),l=!1}else Vt!==null&&(Cu(Vt),Vt=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||xe.current&1?Oe===0&&(Oe=3):Pc())),t.updateQueue!==null&&(t.flags|=4),Ye(t),null);case 4:return Zr(),mu(e,t),e===null&&ol(t.stateNode.containerInfo),Ye(t),null;case 10:return hc(t.type._context),Ye(t),null;case 17:return dt(t.type)&&zo(),Ye(t),null;case 19:if(he(xe),l=t.memoizedState,l===null)return Ye(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)_i(l,!1);else{if(Oe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Vo(e),o!==null){for(t.flags|=128,_i(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(xe,xe.current&1|2),t.child}e=e.sibling}l.tail!==null&&be()>ti&&(t.flags|=128,r=!0,_i(l,!1),t.lanes=4194304)}else{if(!r)if(e=Vo(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_i(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!ge)return Ye(t),null}else 2*be()-l.renderingStartTime>ti&&n!==1073741824&&(t.flags|=128,r=!0,_i(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=be(),t.sibling=null,n=xe.current,de(xe,r?n&1|2:n&1),t):(Ye(t),null);case 22:case 23:return Ic(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xt&1073741824&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function U1(e,t){switch(cc(t),t.tag){case 1:return dt(t.type)&&zo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zr(),he(ct),he(Je),xc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vc(t),null;case 13:if(he(xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Gr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return he(xe),null;case 4:return Zr(),null;case 10:return hc(t.type._context),null;case 22:case 23:return Ic(),null;case 24:return null;default:return null}}var Xl=!1,Ge=!1,H1=typeof WeakSet=="function"?WeakSet:Set,F=null;function zr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Se(e,t,r)}else n.current=null}function gu(e,t,n){try{n()}catch(r){Se(e,t,r)}}var yf=!1;function V1(e,t){if(Zs=Lo,e=Fh(),sc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,a=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==l||r!==0&&d.nodeType!==3||(s=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===i&&(a=o),p===l&&++c===r&&(s=o),(f=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=f}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(eu={focusedElem:e,selectionRange:n},Lo=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,_=x.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ut(t.type,y),_);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(N){Se(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return x=yf,yf=!1,x}function Hi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&gu(t,n,l)}i=i.next}while(i!==r)}}function xa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function yu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function jm(e){var t=e.alternate;t!==null&&(e.alternate=null,jm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ln],delete t[sl],delete t[ru],delete t[b1],delete t[N1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function zm(e){return e.tag===5||e.tag===3||e.tag===4}function vf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function vu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jo));else if(r!==4&&(e=e.child,e!==null))for(vu(e,t,n),e=e.sibling;e!==null;)vu(e,t,n),e=e.sibling}function xu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xu(e,t,n),e=e.sibling;e!==null;)xu(e,t,n),e=e.sibling}var He=null,Ht=!1;function Rn(e,t,n){for(n=n.child;n!==null;)Mm(e,t,n),n=n.sibling}function Mm(e,t,n){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(da,n)}catch{}switch(n.tag){case 5:Ge||zr(n,t);case 6:var r=He,i=Ht;He=null,Rn(e,t,n),He=r,Ht=i,He!==null&&(Ht?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Ht?(e=He,n=n.stateNode,e.nodeType===8?ns(e.parentNode,n):e.nodeType===1&&ns(e,n),rl(e)):ns(He,n.stateNode));break;case 4:r=He,i=Ht,He=n.stateNode.containerInfo,Ht=!0,Rn(e,t,n),He=r,Ht=i;break;case 0:case 11:case 14:case 15:if(!Ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&gu(n,t,o),i=i.next}while(i!==r)}Rn(e,t,n);break;case 1:if(!Ge&&(zr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Se(n,t,a)}Rn(e,t,n);break;case 21:Rn(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,Rn(e,t,n),Ge=r):Rn(e,t,n);break;default:Rn(e,t,n)}}function xf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new H1),t.forEach(function(r){var i=Z1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function $t(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:He=a.stateNode,Ht=!1;break e;case 3:He=a.stateNode.containerInfo,Ht=!0;break e;case 4:He=a.stateNode.containerInfo,Ht=!0;break e}a=a.return}if(He===null)throw Error(O(160));Mm(l,o,i),He=null,Ht=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){Se(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Bm(t,e),t=t.sibling}function Bm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if($t(t,e),tn(e),r&4){try{Hi(3,e,e.return),xa(3,e)}catch(y){Se(e,e.return,y)}try{Hi(5,e,e.return)}catch(y){Se(e,e.return,y)}}break;case 1:$t(t,e),tn(e),r&512&&n!==null&&zr(n,n.return);break;case 5:if($t(t,e),tn(e),r&512&&n!==null&&zr(n,n.return),e.flags&32){var i=e.stateNode;try{Zi(i,"")}catch(y){Se(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,a=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{a==="input"&&l.type==="radio"&&l.name!=null&&ah(i,l),Hs(a,o);var u=Hs(a,l);for(o=0;o<s.length;o+=2){var c=s[o],d=s[o+1];c==="style"?fh(i,d):c==="dangerouslySetInnerHTML"?ch(i,d):c==="children"?Zi(i,d):Yu(i,c,d,u)}switch(a){case"input":Ms(i,l);break;case"textarea":sh(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var f=l.value;f!=null?Fr(i,!!l.multiple,f,!1):p!==!!l.multiple&&(l.defaultValue!=null?Fr(i,!!l.multiple,l.defaultValue,!0):Fr(i,!!l.multiple,l.multiple?[]:"",!1))}i[sl]=l}catch(y){Se(e,e.return,y)}}break;case 6:if($t(t,e),tn(e),r&4){if(e.stateNode===null)throw Error(O(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(y){Se(e,e.return,y)}}break;case 3:if($t(t,e),tn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{rl(t.containerInfo)}catch(y){Se(e,e.return,y)}break;case 4:$t(t,e),tn(e);break;case 13:$t(t,e),tn(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Tc=be())),r&4&&xf(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ge=(u=Ge)||c,$t(t,e),Ge=u):$t(t,e),tn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(F=e,c=e.child;c!==null;){for(d=F=c;F!==null;){switch(p=F,f=p.child,p.tag){case 0:case 11:case 14:case 15:Hi(4,p,p.return);break;case 1:zr(p,p.return);var x=p.stateNode;if(typeof x.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(y){Se(r,n,y)}}break;case 5:zr(p,p.return);break;case 22:if(p.memoizedState!==null){kf(d);continue}}f!==null?(f.return=p,F=f):kf(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(a=d.stateNode,s=d.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,a.style.display=dh("display",o))}catch(y){Se(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){Se(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:$t(t,e),tn(e),r&4&&xf(e);break;case 21:break;default:$t(t,e),tn(e)}}function tn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(zm(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Zi(i,""),r.flags&=-33);var l=vf(e);xu(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=vf(e);vu(e,a,o);break;default:throw Error(O(161))}}catch(s){Se(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function W1(e,t,n){F=e,Fm(e)}function Fm(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var i=F,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Xl;if(!o){var a=i.alternate,s=a!==null&&a.memoizedState!==null||Ge;a=Xl;var u=Ge;if(Xl=o,(Ge=s)&&!u)for(F=i;F!==null;)o=F,s=o.child,o.tag===22&&o.memoizedState!==null?Sf(i):s!==null?(s.return=o,F=s):Sf(i);for(;l!==null;)F=l,Fm(l),l=l.sibling;F=i,Xl=a,Ge=u}wf(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,F=l):wf(e)}}function wf(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ge||xa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ge)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ut(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&rf(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}rf(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&rl(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Ge||t.flags&512&&yu(t)}catch(p){Se(t,t.return,p)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function kf(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Sf(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xa(4,t)}catch(s){Se(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){Se(t,i,s)}}var l=t.return;try{yu(t)}catch(s){Se(t,l,s)}break;case 5:var o=t.return;try{yu(t)}catch(s){Se(t,o,s)}}}catch(s){Se(t,t.return,s)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var q1=Math.ceil,Ko=Cn.ReactCurrentDispatcher,bc=Cn.ReactCurrentOwner,Ot=Cn.ReactCurrentBatchConfig,ne=0,Be=null,Pe=null,Ve=0,xt=0,Mr=Gn(0),Oe=0,hl=null,fr=0,wa=0,Nc=0,Vi=null,st=null,Tc=0,ti=1/0,pn=null,Qo=!1,wu=null,Vn=null,Gl=!1,Mn=null,Yo=0,Wi=0,ku=null,xo=-1,wo=0;function tt(){return ne&6?be():xo!==-1?xo:xo=be()}function Wn(e){return e.mode&1?ne&2&&Ve!==0?Ve&-Ve:R1.transition!==null?(wo===0&&(wo=_h()),wo):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Ph(e.type)),e):1}function qt(e,t,n,r){if(50<Wi)throw Wi=0,ku=null,Error(O(185));wl(e,n,r),(!(ne&2)||e!==Be)&&(e===Be&&(!(ne&2)&&(wa|=n),Oe===4&&On(e,Ve)),ft(e,r),n===1&&ne===0&&!(t.mode&1)&&(ti=be()+500,ga&&Jn()))}function ft(e,t){var n=e.callbackNode;Rv(e,t);var r=Do(e,e===Be?Ve:0);if(r===0)n!==null&&Id(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Id(n),t===1)e.tag===0?T1(Cf.bind(null,e)):Xh(Cf.bind(null,e)),_1(function(){!(ne&6)&&Jn()}),n=null;else{switch(Eh(r)){case 1:n=ec;break;case 4:n=Sh;break;case 16:n=Po;break;case 536870912:n=Ch;break;default:n=Po}n=Qm(n,$m.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function $m(e,t){if(xo=-1,wo=0,ne&6)throw Error(O(327));var n=e.callbackNode;if(Wr()&&e.callbackNode!==n)return null;var r=Do(e,e===Be?Ve:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Xo(e,r);else{t=r;var i=ne;ne|=2;var l=Hm();(Be!==e||Ve!==t)&&(pn=null,ti=be()+500,ar(e,t));do try{Y1();break}catch(a){Um(e,a)}while(!0);pc(),Ko.current=l,ne=i,Pe!==null?t=0:(Be=null,Ve=0,t=Oe)}if(t!==0){if(t===2&&(i=Qs(e),i!==0&&(r=i,t=Su(e,i))),t===1)throw n=hl,ar(e,0),On(e,r),ft(e,be()),n;if(t===6)On(e,r);else{if(i=e.current.alternate,!(r&30)&&!K1(i)&&(t=Xo(e,r),t===2&&(l=Qs(e),l!==0&&(r=l,t=Su(e,l))),t===1))throw n=hl,ar(e,0),On(e,r),ft(e,be()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:nr(e,st,pn);break;case 3:if(On(e,r),(r&130023424)===r&&(t=Tc+500-be(),10<t)){if(Do(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){tt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=nu(nr.bind(null,e,st,pn),t);break}nr(e,st,pn);break;case 4:if(On(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Wt(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*q1(r/1960))-r,10<r){e.timeoutHandle=nu(nr.bind(null,e,st,pn),r);break}nr(e,st,pn);break;case 5:nr(e,st,pn);break;default:throw Error(O(329))}}}return ft(e,be()),e.callbackNode===n?$m.bind(null,e):null}function Su(e,t){var n=Vi;return e.current.memoizedState.isDehydrated&&(ar(e,t).flags|=256),e=Xo(e,t),e!==2&&(t=st,st=n,t!==null&&Cu(t)),e}function Cu(e){st===null?st=e:st.push.apply(st,e)}function K1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!Kt(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function On(e,t){for(t&=~Nc,t&=~wa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function Cf(e){if(ne&6)throw Error(O(327));Wr();var t=Do(e,0);if(!(t&1))return ft(e,be()),null;var n=Xo(e,t);if(e.tag!==0&&n===2){var r=Qs(e);r!==0&&(t=r,n=Su(e,r))}if(n===1)throw n=hl,ar(e,0),On(e,t),ft(e,be()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nr(e,st,pn),ft(e,be()),null}function Rc(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&&(ti=be()+500,ga&&Jn())}}function pr(e){Mn!==null&&Mn.tag===0&&!(ne&6)&&Wr();var t=ne;ne|=1;var n=Ot.transition,r=ae;try{if(Ot.transition=null,ae=1,e)return e()}finally{ae=r,Ot.transition=n,ne=t,!(ne&6)&&Jn()}}function Ic(){xt=Mr.current,he(Mr)}function ar(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,C1(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(cc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&zo();break;case 3:Zr(),he(ct),he(Je),xc();break;case 5:vc(r);break;case 4:Zr();break;case 13:he(xe);break;case 19:he(xe);break;case 10:hc(r.type._context);break;case 22:case 23:Ic()}n=n.return}if(Be=e,Pe=e=qn(e.current,null),Ve=xt=t,Oe=0,hl=null,Nc=wa=fr=0,st=Vi=null,lr!==null){for(t=0;t<lr.length;t++)if(n=lr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}lr=null}return e}function Um(e,t){do{var n=Pe;try{if(pc(),go.current=qo,Wo){for(var r=we.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Wo=!1}if(dr=0,ze=Le=we=null,Ui=!1,dl=0,bc.current=null,n===null||n.return===null){Oe=1,hl=t,Pe=null;break}e:{var l=e,o=n.return,a=n,s=t;if(t=Ve,a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=cf(o);if(f!==null){f.flags&=-257,df(f,o,a,l,t),f.mode&1&&uf(l,u,t),t=f,s=u;var x=t.updateQueue;if(x===null){var y=new Set;y.add(s),t.updateQueue=y}else x.add(s);break e}else{if(!(t&1)){uf(l,u,t),Pc();break e}s=Error(O(426))}}else if(ge&&a.mode&1){var _=cf(o);if(_!==null){!(_.flags&65536)&&(_.flags|=256),df(_,o,a,l,t),dc(ei(s,a));break e}}l=s=ei(s,a),Oe!==4&&(Oe=2),Vi===null?Vi=[l]:Vi.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var h=Em(l,s,t);nf(l,h);break e;case 1:a=s;var m=l.type,v=l.stateNode;if(!(l.flags&128)&&(typeof m.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Vn===null||!Vn.has(v)))){l.flags|=65536,t&=-t,l.lanes|=t;var N=bm(l,a,t);nf(l,N);break e}}l=l.return}while(l!==null)}Wm(n)}catch(b){t=b,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function Hm(){var e=Ko.current;return Ko.current=qo,e===null?qo:e}function Pc(){(Oe===0||Oe===3||Oe===2)&&(Oe=4),Be===null||!(fr&268435455)&&!(wa&268435455)||On(Be,Ve)}function Xo(e,t){var n=ne;ne|=2;var r=Hm();(Be!==e||Ve!==t)&&(pn=null,ar(e,t));do try{Q1();break}catch(i){Um(e,i)}while(!0);if(pc(),ne=n,Ko.current=r,Pe!==null)throw Error(O(261));return Be=null,Ve=0,Oe}function Q1(){for(;Pe!==null;)Vm(Pe)}function Y1(){for(;Pe!==null&&!wv();)Vm(Pe)}function Vm(e){var t=Km(e.alternate,e,xt);e.memoizedProps=e.pendingProps,t===null?Wm(e):Pe=t,bc.current=null}function Wm(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=U1(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Oe=6,Pe=null;return}}else if(n=$1(n,t,xt),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Oe===0&&(Oe=5)}function nr(e,t,n){var r=ae,i=Ot.transition;try{Ot.transition=null,ae=1,X1(e,t,n,r)}finally{Ot.transition=i,ae=r}return null}function X1(e,t,n,r){do Wr();while(Mn!==null);if(ne&6)throw Error(O(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Iv(e,l),e===Be&&(Pe=Be=null,Ve=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Gl||(Gl=!0,Qm(Po,function(){return Wr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Ot.transition,Ot.transition=null;var o=ae;ae=1;var a=ne;ne|=4,bc.current=null,V1(e,n),Bm(n,e),g1(eu),Lo=!!Zs,eu=Zs=null,e.current=n,W1(n),kv(),ne=a,ae=o,Ot.transition=l}else e.current=n;if(Gl&&(Gl=!1,Mn=e,Yo=i),l=e.pendingLanes,l===0&&(Vn=null),_v(n.stateNode),ft(e,be()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Qo)throw Qo=!1,e=wu,wu=null,e;return Yo&1&&e.tag!==0&&Wr(),l=e.pendingLanes,l&1?e===ku?Wi++:(Wi=0,ku=e):Wi=0,Jn(),null}function Wr(){if(Mn!==null){var e=Eh(Yo),t=Ot.transition,n=ae;try{if(Ot.transition=null,ae=16>e?16:e,Mn===null)var r=!1;else{if(e=Mn,Mn=null,Yo=0,ne&6)throw Error(O(331));var i=ne;for(ne|=4,F=e.current;F!==null;){var l=F,o=l.child;if(F.flags&16){var a=l.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for(F=u;F!==null;){var c=F;switch(c.tag){case 0:case 11:case 15:Hi(8,c,l)}var d=c.child;if(d!==null)d.return=c,F=d;else for(;F!==null;){c=F;var p=c.sibling,f=c.return;if(jm(c),c===u){F=null;break}if(p!==null){p.return=f,F=p;break}F=f}}}var x=l.alternate;if(x!==null){var y=x.child;if(y!==null){x.child=null;do{var _=y.sibling;y.sibling=null,y=_}while(y!==null)}}F=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,F=o;else e:for(;F!==null;){if(l=F,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Hi(9,l,l.return)}var h=l.sibling;if(h!==null){h.return=l.return,F=h;break e}F=l.return}}var m=e.current;for(F=m;F!==null;){o=F;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,F=v;else e:for(o=m;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:xa(9,a)}}catch(b){Se(a,a.return,b)}if(a===o){F=null;break e}var N=a.sibling;if(N!==null){N.return=a.return,F=N;break e}F=a.return}}if(ne=i,Jn(),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(da,e)}catch{}r=!0}return r}finally{ae=n,Ot.transition=t}}return!1}function _f(e,t,n){t=ei(n,t),t=Em(e,t,1),e=Hn(e,t,1),t=tt(),e!==null&&(wl(e,1,t),ft(e,t))}function Se(e,t,n){if(e.tag===3)_f(e,e,n);else for(;t!==null;){if(t.tag===3){_f(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Vn===null||!Vn.has(r))){e=ei(n,e),e=bm(t,e,1),t=Hn(t,e,1),e=tt(),t!==null&&(wl(t,1,e),ft(t,e));break}}t=t.return}}function G1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&n,Be===e&&(Ve&n)===n&&(Oe===4||Oe===3&&(Ve&130023424)===Ve&&500>be()-Tc?ar(e,0):Nc|=n),ft(e,t)}function qm(e,t){t===0&&(e.mode&1?(t=$l,$l<<=1,!($l&130023424)&&($l=4194304)):t=1);var n=tt();e=wn(e,t),e!==null&&(wl(e,t,n),ft(e,n))}function J1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qm(e,n)}function Z1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),qm(e,n)}var Km;Km=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ut=!1,F1(e,t,n);ut=!!(e.flags&131072)}else ut=!1,ge&&t.flags&1048576&&Gh(t,Fo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vo(e,t),e=t.pendingProps;var i=Xr(t,Je.current);Vr(t,n),i=kc(null,t,r,e,i,n);var l=Sc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(l=!0,Mo(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,gc(t),i.updater=va,t.stateNode=i,i._reactInternals=t,uu(t,r,e,n),t=fu(null,t,r,!0,l,n)):(t.tag=0,ge&&l&&uc(t),et(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=tx(r),e=Ut(r,e),i){case 0:t=du(null,t,r,e,n);break e;case 1:t=hf(null,t,r,e,n);break e;case 11:t=ff(null,t,r,e,n);break e;case 14:t=pf(null,t,r,Ut(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ut(r,i),du(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ut(r,i),hf(e,t,r,i,n);case 3:e:{if(Im(t),e===null)throw Error(O(387));r=t.pendingProps,l=t.memoizedState,i=l.element,rm(e,t),Ho(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=ei(Error(O(423)),t),t=mf(e,t,r,n,i);break e}else if(r!==i){i=ei(Error(O(424)),t),t=mf(e,t,r,n,i);break e}else for(wt=Un(t.stateNode.containerInfo.firstChild),St=t,ge=!0,Vt=null,n=tm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gr(),r===i){t=kn(e,t,n);break e}et(e,t,r,n)}t=t.child}return t;case 5:return im(t),e===null&&ou(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,tu(r,i)?o=null:l!==null&&tu(r,l)&&(t.flags|=32),Rm(e,t),et(e,t,o,n),t.child;case 6:return e===null&&ou(t),null;case 13:return Pm(e,t,n);case 4:return yc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Jr(t,null,r,n):et(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ut(r,i),ff(e,t,r,i,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,de($o,r._currentValue),r._currentValue=o,l!==null)if(Kt(l.value,o)){if(l.children===i.children&&!ct.current){t=kn(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){o=l.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=yn(-1,n&-n),s.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),au(l.return,n,t),a.lanes|=n;break}s=s.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(O(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),au(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}et(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vr(t,n),i=jt(i),r=r(i),t.flags|=1,et(e,t,r,n),t.child;case 14:return r=t.type,i=Ut(r,t.pendingProps),i=Ut(r.type,i),pf(e,t,r,i,n);case 15:return Nm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ut(r,i),vo(e,t),t.tag=1,dt(r)?(e=!0,Mo(t)):e=!1,Vr(t,n),_m(t,r,i),uu(t,r,i,n),fu(null,t,r,!0,e,n);case 19:return Dm(e,t,n);case 22:return Tm(e,t,n)}throw Error(O(156,t.tag))};function Qm(e,t){return kh(e,t)}function ex(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,r){return new ex(e,t,n,r)}function Dc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tx(e){if(typeof e=="function")return Dc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gu)return 11;if(e===Ju)return 14}return 2}function qn(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ko(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Dc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Tr:return sr(n.children,i,l,t);case Xu:o=8,i|=8;break;case Ls:return e=At(12,n,t,i|2),e.elementType=Ls,e.lanes=l,e;case As:return e=At(13,n,t,i),e.elementType=As,e.lanes=l,e;case Os:return e=At(19,n,t,i),e.elementType=Os,e.lanes=l,e;case ih:return ka(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case nh:o=10;break e;case rh:o=9;break e;case Gu:o=11;break e;case Ju:o=14;break e;case Pn:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=At(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function sr(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function ka(e,t,n,r){return e=At(22,e,r,t),e.elementType=ih,e.lanes=n,e.stateNode={isHidden:!1},e}function cs(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function ds(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nx(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wa(0),this.expirationTimes=Wa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wa(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Lc(e,t,n,r,i,l,o,a,s){return e=new nx(e,t,n,a,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=At(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gc(l),e}function rx(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Nr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ym(e){if(!e)return Qn;e=e._reactInternals;e:{if(gr(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(dt(n))return Yh(e,n,t)}return t}function Xm(e,t,n,r,i,l,o,a,s){return e=Lc(n,r,!0,e,i,l,o,a,s),e.context=Ym(null),n=e.current,r=tt(),i=Wn(n),l=yn(r,i),l.callback=t??null,Hn(n,l,i),e.current.lanes=i,wl(e,i,r),ft(e,r),e}function Sa(e,t,n,r){var i=t.current,l=tt(),o=Wn(i);return n=Ym(n),t.context===null?t.context=n:t.pendingContext=n,t=yn(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Hn(i,t,o),e!==null&&(qt(e,i,o,l),mo(e,i,o)),o}function Go(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ef(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ac(e,t){Ef(e,t),(e=e.alternate)&&Ef(e,t)}function ix(){return null}var Gm=typeof reportError=="function"?reportError:function(e){console.error(e)};function Oc(e){this._internalRoot=e}Ca.prototype.render=Oc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));Sa(e,t,null,null)};Ca.prototype.unmount=Oc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pr(function(){Sa(null,e,null,null)}),t[xn]=null}};function Ca(e){this._internalRoot=e}Ca.prototype.unstable_scheduleHydration=function(e){if(e){var t=Th();e={blockedOn:null,target:e,priority:t};for(var n=0;n<An.length&&t!==0&&t<An[n].priority;n++);An.splice(n,0,e),n===0&&Ih(e)}};function jc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bf(){}function lx(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=Go(o);l.call(u)}}var o=Xm(t,r,e,0,null,!1,!1,"",bf);return e._reactRootContainer=o,e[xn]=o.current,ol(e.nodeType===8?e.parentNode:e),pr(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Go(s);a.call(u)}}var s=Lc(e,0,!1,null,null,!1,!1,"",bf);return e._reactRootContainer=s,e[xn]=s.current,ol(e.nodeType===8?e.parentNode:e),pr(function(){Sa(t,s,n,r)}),s}function Ea(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var a=i;i=function(){var s=Go(o);a.call(s)}}Sa(t,o,e,i)}else o=lx(n,t,e,i,r);return Go(o)}bh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ai(t.pendingLanes);n!==0&&(tc(t,n|1),ft(t,be()),!(ne&6)&&(ti=be()+500,Jn()))}break;case 13:pr(function(){var r=wn(e,1);if(r!==null){var i=tt();qt(r,e,1,i)}}),Ac(e,1)}};nc=function(e){if(e.tag===13){var t=wn(e,134217728);if(t!==null){var n=tt();qt(t,e,134217728,n)}Ac(e,134217728)}};Nh=function(e){if(e.tag===13){var t=Wn(e),n=wn(e,t);if(n!==null){var r=tt();qt(n,e,t,r)}Ac(e,t)}};Th=function(){return ae};Rh=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Ws=function(e,t,n){switch(t){case"input":if(Ms(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ma(r);if(!i)throw Error(O(90));oh(r),Ms(r,i)}}}break;case"textarea":sh(e,n);break;case"select":t=n.value,t!=null&&Fr(e,!!n.multiple,t,!1)}};mh=Rc;gh=pr;var ox={usingClientEntryPoint:!1,Events:[Sl,Dr,ma,ph,hh,Rc]},Ei={findFiberByHostInstance:ir,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ax={bundleType:Ei.bundleType,version:Ei.version,rendererPackageName:Ei.rendererPackageName,rendererConfig:Ei.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Cn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xh(e),e===null?null:e.stateNode},findFiberByHostInstance:Ei.findFiberByHostInstance||ix,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 Jl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jl.isDisabled&&Jl.supportsFiber)try{da=Jl.inject(ax),an=Jl}catch{}}_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ox;_t.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jc(t))throw Error(O(200));return rx(e,t,null,n)};_t.createRoot=function(e,t){if(!jc(e))throw Error(O(299));var n=!1,r="",i=Gm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Lc(e,1,!1,null,null,n,!1,r,i),e[xn]=t.current,ol(e.nodeType===8?e.parentNode:e),new Oc(t)};_t.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=xh(t),e=e===null?null:e.stateNode,e};_t.flushSync=function(e){return pr(e)};_t.hydrate=function(e,t,n){if(!_a(t))throw Error(O(200));return Ea(null,e,t,!0,n)};_t.hydrateRoot=function(e,t,n){if(!jc(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=Gm;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Xm(t,null,e,1,n??null,i,!1,l,o),e[xn]=t.current,ol(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ca(t)};_t.render=function(e,t,n){if(!_a(t))throw Error(O(200));return Ea(null,e,t,!1,n)};_t.unmountComponentAtNode=function(e){if(!_a(e))throw Error(O(40));return e._reactRootContainer?(pr(function(){Ea(null,null,e,!1,function(){e._reactRootContainer=null,e[xn]=null})}),!0):!1};_t.unstable_batchedUpdates=Rc;_t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!_a(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return Ea(e,t,n,!1,r)};_t.version="18.3.1-next-f1338f8080-20240426";function Jm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jm)}catch(e){console.error(e)}}Jm(),Jp.exports=_t;var Br=Jp.exports,Nf=Br;Ps.createRoot=Nf.createRoot,Ps.hydrateRoot=Nf.hydrateRoot;/**
|
|
41
|
-
* react-router v7.13.1
|
|
42
|
-
*
|
|
43
|
-
* Copyright (c) Remix Software Inc.
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the MIT license found in the
|
|
46
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
-
*
|
|
48
|
-
* @license MIT
|
|
49
|
-
*/var Tf="popstate";function Rf(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function sx(e={}){function t(r,i){var u;let l=(u=i.state)==null?void 0:u.masked,{pathname:o,search:a,hash:s}=l||r.location;return _u("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default",l?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,i){return typeof i=="string"?i:ml(i)}return cx(t,n,null,e)}function ye(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Qt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ux(){return Math.random().toString(36).substring(2,10)}function If(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function _u(e,t,n=null,r,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?li(t):t,state:n,key:t&&t.key||r||ux(),unstable_mask:i}}function ml({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function li(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function cx(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:l=!1}=r,o=i.history,a="POP",s=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function d(){a="POP";let _=c(),h=_==null?null:_-u;u=_,s&&s({action:a,location:y.location,delta:h})}function p(_,h){a="PUSH";let m=Rf(_)?_:_u(y.location,_,h);u=c()+1;let v=If(m,u),N=y.createHref(m.unstable_mask||m);try{o.pushState(v,"",N)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;i.location.assign(N)}l&&s&&s({action:a,location:y.location,delta:1})}function f(_,h){a="REPLACE";let m=Rf(_)?_:_u(y.location,_,h);u=c();let v=If(m,u),N=y.createHref(m.unstable_mask||m);o.replaceState(v,"",N),l&&s&&s({action:a,location:y.location,delta:0})}function x(_){return dx(_)}let y={get action(){return a},get location(){return e(i,o)},listen(_){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(Tf,d),s=_,()=>{i.removeEventListener(Tf,d),s=null}},createHref(_){return t(i,_)},createURL:x,encodeLocation(_){let h=x(_);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:p,replace:f,go(_){return o.go(_)}};return y}function dx(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ye(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:ml(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Zm(e,t,n="/"){return fx(e,t,n,!1)}function fx(e,t,n,r){let i=typeof t=="string"?li(t):t,l=Sn(i.pathname||"/",n);if(l==null)return null;let o=eg(e);px(o);let a=null;for(let s=0;a==null&&s<o.length;++s){let u=_x(l);a=Sx(o[s],u,r)}return a}function eg(e,t=[],n=[],r="",i=!1){let l=(o,a,s=i,u)=>{let c={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&s)return;ye(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let d=un([r,c.relativePath]),p=n.concat(c);o.children&&o.children.length>0&&(ye(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),eg(o.children,t,p,d,s)),!(o.path==null&&!o.index)&&t.push({path:d,score:wx(d,o.index),routesMeta:p})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))l(o,a);else for(let u of tg(o.path))l(o,a,!0,u)}),t}function tg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let o=tg(r.join("/")),a=[];return a.push(...o.map(s=>s===""?l:[l,s].join("/"))),i&&a.push(...o),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function px(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:kx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var hx=/^:[\w-]+$/,mx=3,gx=2,yx=1,vx=10,xx=-2,Pf=e=>e==="*";function wx(e,t){let n=e.split("/"),r=n.length;return n.some(Pf)&&(r+=xx),t&&(r+=gx),n.filter(i=>!Pf(i)).reduce((i,l)=>i+(hx.test(l)?mx:l===""?yx:vx),r)}function kx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Sx(e,t,n=!1){let{routesMeta:r}=e,i={},l="/",o=[];for(let a=0;a<r.length;++a){let s=r[a],u=a===r.length-1,c=l==="/"?t:t.slice(l.length)||"/",d=Jo({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c),p=s.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=Jo({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:un([l,d.pathname]),pathnameBase:Tx(un([l,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(l=un([l,d.pathnameBase]))}return o}function Jo(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Cx(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let l=i[0],o=l.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:d},p)=>{if(c==="*"){let x=a[p]||"";o=l.slice(0,l.length-x.length).replace(/(.)\/+$/,"$1")}const f=a[p];return d&&!f?u[c]=void 0:u[c]=(f||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:o,pattern:e}}function Cx(e,t=!1,n=!0){Qt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,s,u,c)=>{if(r.push({paramName:a,isOptional:s!=null}),s){let d=c.charAt(u+o.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function _x(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Qt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Sn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Ex=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function bx(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?li(e):e,l;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?l=Df(n.substring(1),"/"):l=Df(n,t)):l=t,{pathname:l,search:Rx(r),hash:Ix(i)}}function Df(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function fs(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Nx(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function zc(e){let t=Nx(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function ba(e,t,n,r=!1){let i;typeof e=="string"?i=li(e):(i={...e},ye(!i.pathname||!i.pathname.includes("?"),fs("?","pathname","search",i)),ye(!i.pathname||!i.pathname.includes("#"),fs("#","pathname","hash",i)),ye(!i.search||!i.search.includes("#"),fs("#","search","hash",i)));let l=e===""||i.pathname==="",o=l?"/":i.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}a=d>=0?t[d]:"/"}let s=bx(i,a),u=o&&o!=="/"&&o.endsWith("/"),c=(l||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var un=e=>e.join("/").replace(/\/\/+/g,"/"),Tx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Rx=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ix=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Px=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Dx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Lx(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ng=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function rg(e,t){let n=e;if(typeof n!="string"||!Ex.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(ng)try{let l=new URL(window.location.href),o=n.startsWith("//")?new URL(l.protocol+n):new URL(n),a=Sn(o.pathname,t);o.origin===l.origin&&a!=null?n=a+o.search+o.hash:i=!0}catch{Qt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ig=["POST","PUT","PATCH","DELETE"];new Set(ig);var Ax=["GET",...ig];new Set(Ax);var oi=g.createContext(null);oi.displayName="DataRouter";var Na=g.createContext(null);Na.displayName="DataRouterState";var Ox=g.createContext(!1),lg=g.createContext({isTransitioning:!1});lg.displayName="ViewTransition";var jx=g.createContext(new Map);jx.displayName="Fetchers";var zx=g.createContext(null);zx.displayName="Await";var bt=g.createContext(null);bt.displayName="Navigation";var _l=g.createContext(null);_l.displayName="Location";var Gt=g.createContext({outlet:null,matches:[],isDataRoute:!1});Gt.displayName="Route";var Mc=g.createContext(null);Mc.displayName="RouteError";var og="REACT_ROUTER_ERROR",Mx="REDIRECT",Bx="ROUTE_ERROR_RESPONSE";function Fx(e){if(e.startsWith(`${og}:${Mx}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function $x(e){if(e.startsWith(`${og}:${Bx}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Px(t.status,t.statusText,t.data)}catch{}}function Ux(e,{relative:t}={}){ye(ai(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=g.useContext(bt),{hash:i,pathname:l,search:o}=bl(e,{relative:t}),a=l;return n!=="/"&&(a=l==="/"?n:un([n,l])),r.createHref({pathname:a,search:o,hash:i})}function ai(){return g.useContext(_l)!=null}function _n(){return ye(ai(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(_l).location}var ag="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sg(e){g.useContext(bt).static||g.useLayoutEffect(e)}function El(){let{isDataRoute:e}=g.useContext(Gt);return e?tw():Hx()}function Hx(){ye(ai(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(oi),{basename:t,navigator:n}=g.useContext(bt),{matches:r}=g.useContext(Gt),{pathname:i}=_n(),l=JSON.stringify(zc(r)),o=g.useRef(!1);return sg(()=>{o.current=!0}),g.useCallback((s,u={})=>{if(Qt(o.current,ag),!o.current)return;if(typeof s=="number"){n.go(s);return}let c=ba(s,JSON.parse(l),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:un([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,l,i,e])}g.createContext(null);function Bc(){let{matches:e}=g.useContext(Gt),t=e[e.length-1];return t?t.params:{}}function bl(e,{relative:t}={}){let{matches:n}=g.useContext(Gt),{pathname:r}=_n(),i=JSON.stringify(zc(n));return g.useMemo(()=>ba(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function Vx(e,t){return ug(e,t)}function ug(e,t,n){var _;ye(ai(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=g.useContext(bt),{matches:i}=g.useContext(Gt),l=i[i.length-1],o=l?l.params:{},a=l?l.pathname:"/",s=l?l.pathnameBase:"/",u=l&&l.route;{let h=u&&u.path||"";dg(a,!u||h.endsWith("*")||h.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${a}" (under <Route path="${h}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
50
|
-
|
|
51
|
-
Please change the parent <Route path="${h}"> to <Route path="${h==="/"?"*":`${h}/*`}">.`)}let c=_n(),d;if(t){let h=typeof t=="string"?li(t):t;ye(s==="/"||((_=h.pathname)==null?void 0:_.startsWith(s)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${h.pathname}" was given in the \`location\` prop.`),d=h}else d=c;let p=d.pathname||"/",f=p;if(s!=="/"){let h=s.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(h.length).join("/")}let x=Zm(e,{pathname:f});Qt(u||x!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Qt(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=Yx(x&&x.map(h=>Object.assign({},h,{params:Object.assign({},o,h.params),pathname:un([s,r.encodeLocation?r.encodeLocation(h.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?s:un([s,r.encodeLocation?r.encodeLocation(h.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:h.pathnameBase])})),i,n);return t&&y?g.createElement(_l.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...d},navigationType:"POP"}},y):y}function Wx(){let e=ew(),t=Dx(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:l},"ErrorBoundary")," or"," ",g.createElement("code",{style:l},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:i},n):null,o)}var qx=g.createElement(Wx,null),cg=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=$x(e.digest);n&&(e=n)}let t=e!==void 0?g.createElement(Gt.Provider,{value:this.props.routeContext},g.createElement(Mc.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(Kx,{error:e},t):t}};cg.contextType=Ox;var ps=new WeakMap;function Kx({children:e,error:t}){let{basename:n}=g.useContext(bt);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Fx(t.digest);if(r){let i=ps.get(t);if(i)throw i;let l=rg(r.location,n);if(ng&&!ps.get(t))if(l.isExternal||r.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:r.replace}));throw ps.set(t,o),o}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function Qx({routeContext:e,match:t,children:n}){let r=g.useContext(oi);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(Gt.Provider,{value:e},n)}function Yx(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,l=r==null?void 0:r.errors;if(l!=null){let c=i.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);ye(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let o=!1,a=-1;if(n&&r){o=r.renderFallback;for(let c=0;c<i.length;c++){let d=i[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(a=c),d.route.id){let{loaderData:p,errors:f}=r,x=d.route.loader&&!p.hasOwnProperty(d.route.id)&&(!f||f[d.route.id]===void 0);if(d.route.lazy||x){n.isStatic&&(o=!0),a>=0?i=i.slice(0,a+1):i=[i[0]];break}}}}let s=n==null?void 0:n.onError,u=r&&s?(c,d)=>{var p,f;s(c,{location:r.location,params:((f=(p=r.matches)==null?void 0:p[0])==null?void 0:f.params)??{},unstable_pattern:Lx(r.matches),errorInfo:d})}:void 0;return i.reduceRight((c,d,p)=>{let f,x=!1,y=null,_=null;r&&(f=l&&d.route.id?l[d.route.id]:void 0,y=d.route.errorElement||qx,o&&(a<0&&p===0?(dg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,_=null):a===p&&(x=!0,_=d.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,p+1)),m=()=>{let v;return f?v=y:x?v=_:d.route.Component?v=g.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,g.createElement(Qx,{match:d,routeContext:{outlet:c,matches:h,isDataRoute:r!=null},children:v})};return r&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?g.createElement(cg,{location:r.location,revalidation:r.revalidation,component:y,error:f,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):m()},null)}function Fc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Xx(e){let t=g.useContext(oi);return ye(t,Fc(e)),t}function Gx(e){let t=g.useContext(Na);return ye(t,Fc(e)),t}function Jx(e){let t=g.useContext(Gt);return ye(t,Fc(e)),t}function $c(e){let t=Jx(e),n=t.matches[t.matches.length-1];return ye(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Zx(){return $c("useRouteId")}function ew(){var r;let e=g.useContext(Mc),t=Gx("useRouteError"),n=$c("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function tw(){let{router:e}=Xx("useNavigate"),t=$c("useNavigate"),n=g.useRef(!1);return sg(()=>{n.current=!0}),g.useCallback(async(i,l={})=>{Qt(n.current,ag),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var Lf={};function dg(e,t,n){!t&&!Lf[e]&&(Lf[e]=!0,Qt(!1,n))}g.memo(nw);function nw({routes:e,future:t,state:n,isStatic:r,onError:i}){return ug(e,void 0,{state:n,isStatic:r,onError:i})}function rw({to:e,replace:t,state:n,relative:r}){ye(ai(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=g.useContext(bt);Qt(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=g.useContext(Gt),{pathname:o}=_n(),a=El(),s=ba(e,zc(l),o,r==="path"),u=JSON.stringify(s);return g.useEffect(()=>{a(JSON.parse(u),{replace:t,state:n,relative:r})},[a,u,r,t,n]),null}function ji(e){ye(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function iw({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:l=!1,unstable_useTransitions:o}){ye(!ai(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=g.useMemo(()=>({basename:a,navigator:i,static:l,unstable_useTransitions:o,future:{}}),[a,i,l,o]);typeof n=="string"&&(n=li(n));let{pathname:u="/",search:c="",hash:d="",state:p=null,key:f="default",unstable_mask:x}=n,y=g.useMemo(()=>{let _=Sn(u,a);return _==null?null:{location:{pathname:_,search:c,hash:d,state:p,key:f,unstable_mask:x},navigationType:r}},[a,u,c,d,p,f,r,x]);return Qt(y!=null,`<Router basename="${a}"> is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:g.createElement(bt.Provider,{value:s},g.createElement(_l.Provider,{children:t,value:y}))}function lw({children:e,location:t}){return Vx(Eu(e),t)}function Eu(e,t=[]){let n=[];return g.Children.forEach(e,(r,i)=>{if(!g.isValidElement(r))return;let l=[...t,i];if(r.type===g.Fragment){n.push.apply(n,Eu(r.props.children,l));return}ye(r.type===ji,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ye(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Eu(r.props.children,l)),n.push(o)}),n}var So="get",Co="application/x-www-form-urlencoded";function Ta(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function ow(e){return Ta(e)&&e.tagName.toLowerCase()==="button"}function aw(e){return Ta(e)&&e.tagName.toLowerCase()==="form"}function sw(e){return Ta(e)&&e.tagName.toLowerCase()==="input"}function uw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cw(e,t){return e.button===0&&(!t||t==="_self")&&!uw(e)}var Zl=null;function dw(){if(Zl===null)try{new FormData(document.createElement("form"),0),Zl=!1}catch{Zl=!0}return Zl}var fw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hs(e){return e!=null&&!fw.has(e)?(Qt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Co}"`),null):e}function pw(e,t){let n,r,i,l,o;if(aw(e)){let a=e.getAttribute("action");r=a?Sn(a,t):null,n=e.getAttribute("method")||So,i=hs(e.getAttribute("enctype"))||Co,l=new FormData(e)}else if(ow(e)||sw(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?Sn(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||So,i=hs(e.getAttribute("formenctype"))||hs(a.getAttribute("enctype"))||Co,l=new FormData(a,e),!dw()){let{name:u,type:c,value:d}=e;if(c==="image"){let p=u?`${u}.`:"";l.append(`${p}x`,"0"),l.append(`${p}y`,"0")}else u&&l.append(u,d)}}else{if(Ta(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=So,r=null,i=Co,o=e}return l&&i==="text/plain"&&(o=l,l=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:l,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Uc(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function hw(e,t,n,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname==="/"?i.pathname=`_root.${r}`:t&&Sn(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function mw(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function gw(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function yw(e,t,n){let r=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let o=await mw(l,n);return o.links?o.links():[]}return[]}));return kw(r.flat(1).filter(gw).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Af(e,t,n,r,i,l){let o=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,a=(s,u)=>{var c;return n[u].pathname!==s.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==s.params["*"]};return l==="assets"?t.filter((s,u)=>o(s,u)||a(s,u)):l==="data"?t.filter((s,u)=>{var d;let c=r.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(o(s,u)||a(s,u))return!0;if(s.route.shouldRevalidate){let p=s.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function vw(e,t,{includeHydrateFallback:n}={}){return xw(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let l=[i.module];return i.clientActionModule&&(l=l.concat(i.clientActionModule)),i.clientLoaderModule&&(l=l.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(l=l.concat(i.hydrateFallbackModule)),i.imports&&(l=l.concat(i.imports)),l}).flat(1))}function xw(e){return[...new Set(e)]}function ww(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function kw(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let l=JSON.stringify(ww(i));return n.has(l)||(n.add(l),r.push({key:l,link:i})),r},[])}function fg(){let e=g.useContext(oi);return Uc(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Sw(){let e=g.useContext(Na);return Uc(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Hc=g.createContext(void 0);Hc.displayName="FrameworkContext";function pg(){let e=g.useContext(Hc);return Uc(e,"You must render this element inside a <HydratedRouter> element"),e}function Cw(e,t){let n=g.useContext(Hc),[r,i]=g.useState(!1),[l,o]=g.useState(!1),{onFocus:a,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=t,p=g.useRef(null);g.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let y=h=>{h.forEach(m=>{o(m.isIntersecting)})},_=new IntersectionObserver(y,{threshold:.5});return p.current&&_.observe(p.current),()=>{_.disconnect()}}},[e]),g.useEffect(()=>{if(r){let y=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(y)}}},[r]);let f=()=>{i(!0)},x=()=>{i(!1),o(!1)};return n?e!=="intent"?[l,p,{}]:[l,p,{onFocus:bi(a,f),onBlur:bi(s,x),onMouseEnter:bi(u,f),onMouseLeave:bi(c,x),onTouchStart:bi(d,f)}]:[!1,p,{}]}function bi(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function _w({page:e,...t}){let{router:n}=fg(),r=g.useMemo(()=>Zm(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?g.createElement(bw,{page:e,matches:r,...t}):null}function Ew(e){let{manifest:t,routeModules:n}=pg(),[r,i]=g.useState([]);return g.useEffect(()=>{let l=!1;return yw(e,t,n).then(o=>{l||i(o)}),()=>{l=!0}},[e,t,n]),r}function bw({page:e,matches:t,...n}){let r=_n(),{future:i,manifest:l,routeModules:o}=pg(),{basename:a}=fg(),{loaderData:s,matches:u}=Sw(),c=g.useMemo(()=>Af(e,t,u,l,r,"data"),[e,t,u,l,r]),d=g.useMemo(()=>Af(e,t,u,l,r,"assets"),[e,t,u,l,r]),p=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,_=!1;if(t.forEach(m=>{var N;let v=l.routes[m.route.id];!v||!v.hasLoader||(!c.some(b=>b.route.id===m.route.id)&&m.route.id in s&&((N=o[m.route.id])!=null&&N.shouldRevalidate)||v.hasClientLoader?_=!0:y.add(m.route.id))}),y.size===0)return[];let h=hw(e,a,i.unstable_trailingSlashAwareDataRequests,"data");return _&&y.size>0&&h.searchParams.set("_routes",t.filter(m=>y.has(m.route.id)).map(m=>m.route.id).join(",")),[h.pathname+h.search]},[a,i.unstable_trailingSlashAwareDataRequests,s,r,l,c,t,e,o]),f=g.useMemo(()=>vw(d,l),[d,l]),x=Ew(d);return g.createElement(g.Fragment,null,p.map(y=>g.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),f.map(y=>g.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),x.map(({key:y,link:_})=>g.createElement("link",{key:y,nonce:n.nonce,..._,crossOrigin:_.crossOrigin??n.crossOrigin})))}function Nw(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Tw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Tw&&(window.__reactRouterVersion="7.13.1")}catch{}function Rw({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=g.useRef();i.current==null&&(i.current=sx({window:r,v5Compat:!0}));let l=i.current,[o,a]=g.useState({action:l.action,location:l.location}),s=g.useCallback(u=>{n===!1?a(u):g.startTransition(()=>a(u))},[n]);return g.useLayoutEffect(()=>l.listen(s),[l,s]),g.createElement(iw,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:l,unstable_useTransitions:n})}var hg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zo=g.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:l,replace:o,unstable_mask:a,state:s,target:u,to:c,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:f,...x},y){let{basename:_,navigator:h,unstable_useTransitions:m}=g.useContext(bt),v=typeof c=="string"&&hg.test(c),N=rg(c,_);c=N.to;let b=Ux(c,{relative:i}),C=_n(),E=null;if(a){let $=ba(a,[],C.unstable_mask?C.unstable_mask.pathname:"/",!0);_!=="/"&&($.pathname=$.pathname==="/"?_:un([_,$.pathname])),E=h.createHref($)}let[T,P,D]=Cw(r,x),L=Lw(c,{replace:o,unstable_mask:a,state:s,target:u,preventScrollReset:d,relative:i,viewTransition:p,unstable_defaultShouldRevalidate:f,unstable_useTransitions:m});function R($){t&&t($),$.defaultPrevented||L($)}let M=!(N.isExternal||l),H=g.createElement("a",{...x,...D,href:(M?E:void 0)||N.absoluteURL||b,onClick:M?R:t,ref:Nw(y,P),target:u,"data-discover":!v&&n==="render"?"true":void 0});return T&&!v?g.createElement(g.Fragment,null,H,g.createElement(_w,{page:b})):H});Zo.displayName="Link";var Iw=g.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:l,to:o,viewTransition:a,children:s,...u},c){let d=bl(o,{relative:u.relative}),p=_n(),f=g.useContext(Na),{navigator:x,basename:y}=g.useContext(bt),_=f!=null&&Mw(d)&&a===!0,h=x.encodeLocation?x.encodeLocation(d).pathname:d.pathname,m=p.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(m=m.toLowerCase(),v=v?v.toLowerCase():null,h=h.toLowerCase()),v&&y&&(v=Sn(v,y)||v);const N=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let b=m===h||!i&&m.startsWith(h)&&m.charAt(N)==="/",C=v!=null&&(v===h||!i&&v.startsWith(h)&&v.charAt(h.length)==="/"),E={isActive:b,isPending:C,isTransitioning:_},T=b?t:void 0,P;typeof r=="function"?P=r(E):P=[r,b?"active":null,C?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let D=typeof l=="function"?l(E):l;return g.createElement(Zo,{...u,"aria-current":T,className:P,ref:c,style:D,to:o,viewTransition:a},typeof s=="function"?s(E):s)});Iw.displayName="NavLink";var Pw=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:l,method:o=So,action:a,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:p,...f},x)=>{let{unstable_useTransitions:y}=g.useContext(bt),_=jw(),h=zw(a,{relative:u}),m=o.toLowerCase()==="get"?"get":"post",v=typeof a=="string"&&hg.test(a),N=b=>{if(s&&s(b),b.defaultPrevented)return;b.preventDefault();let C=b.nativeEvent.submitter,E=(C==null?void 0:C.getAttribute("formmethod"))||o,T=()=>_(C||b.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:i,state:l,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:p});y&&n!==!1?g.startTransition(()=>T()):T()};return g.createElement("form",{ref:x,method:m,action:h,onSubmit:r?s:N,...f,"data-discover":!v&&e==="render"?"true":void 0})});Pw.displayName="Form";function Dw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mg(e){let t=g.useContext(oi);return ye(t,Dw(e)),t}function Lw(e,{target:t,replace:n,unstable_mask:r,state:i,preventScrollReset:l,relative:o,viewTransition:a,unstable_defaultShouldRevalidate:s,unstable_useTransitions:u}={}){let c=El(),d=_n(),p=bl(e,{relative:o});return g.useCallback(f=>{if(cw(f,t)){f.preventDefault();let x=n!==void 0?n:ml(d)===ml(p),y=()=>c(e,{replace:x,unstable_mask:r,state:i,preventScrollReset:l,relative:o,viewTransition:a,unstable_defaultShouldRevalidate:s});u?g.startTransition(()=>y()):y()}},[d,c,p,n,r,i,t,e,l,o,a,s,u])}var Aw=0,Ow=()=>`__${String(++Aw)}__`;function jw(){let{router:e}=mg("useSubmit"),{basename:t}=g.useContext(bt),n=Zx(),r=e.fetch,i=e.navigate;return g.useCallback(async(l,o={})=>{let{action:a,method:s,encType:u,formData:c,body:d}=pw(l,t);if(o.navigate===!1){let p=o.fetcherKey||Ow();await r(p,n,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:d,formMethod:o.method||s,formEncType:o.encType||u,flushSync:o.flushSync})}else await i(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:d,formMethod:o.method||s,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,i,t,n])}function zw(e,{relative:t}={}){let{basename:n}=g.useContext(bt),r=g.useContext(Gt);ye(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),l={...bl(e||".",{relative:t})},o=_n();if(e==null){l.search=o.search;let a=new URLSearchParams(l.search),s=a.getAll("index");if(s.some(c=>c==="")){a.delete("index"),s.filter(d=>d).forEach(d=>a.append("index",d));let c=a.toString();l.search=c?`?${c}`:""}}return(!e||e===".")&&i.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:un([n,l.pathname])),ml(l)}function Mw(e,{relative:t}={}){let n=g.useContext(lg);ye(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=mg("useViewTransitionState"),i=bl(e,{relative:t});if(!n.isTransitioning)return!1;let l=Sn(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Sn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Jo(i.pathname,o)!=null||Jo(i.pathname,l)!=null}const gg=[{value:"low",labelKey:"priority.low",colorVar:"var(--color-priority-low)"},{value:"medium",labelKey:"priority.medium",colorVar:"var(--color-priority-medium)"},{value:"high",labelKey:"priority.high",colorVar:"var(--color-priority-high)"},{value:"urgent",labelKey:"priority.urgent",colorVar:"var(--color-priority-urgent)"}],si="http://localhost:3001/api";async function eo(e,t){const n=await fetch(`${si}${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){const r=await n.json().catch(()=>({}));throw new Error(r.error??`HTTP ${n.status}`)}if(n.status!==204)return n.json()}const to={getAll:()=>eo("/boards"),create:(e,t,n=[])=>eo("/boards",{method:"POST",body:JSON.stringify({name:e,path:t,workspaces:n})}),update:(e,t,n,r)=>eo(`/boards/${e}`,{method:"PATCH",body:JSON.stringify({name:t,path:n,workspaces:r})}),delete:e=>eo(`/boards/${e}`,{method:"DELETE"})};async function Ni(e,t){const n=await fetch(`${si}${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){const r=await n.json().catch(()=>({}));throw new Error(r.error??`HTTP ${n.status}`)}if(n.status!==204)return n.json()}const Ti={getByBoard:e=>Ni(`/boards/${e}/columns`),create:(e,t)=>Ni(`/boards/${e}/columns`,{method:"POST",body:JSON.stringify({name:t})}),update:(e,t,n)=>Ni(`/boards/${e}/columns/${t}`,{method:"PATCH",body:JSON.stringify({name:n})}),reorder:(e,t)=>Ni(`/boards/${e}/columns/reorder`,{method:"PUT",body:JSON.stringify({orderedIds:t})}),delete:(e,t)=>Ni(`/boards/${e}/columns/${t}`,{method:"DELETE"})};async function Cr(e,t){const n=await fetch(`${si}${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){const r=await n.json().catch(()=>({}));throw new Error(r.error??`HTTP ${n.status}`)}if(n.status!==204)return n.json()}const _r={getByBoard:e=>Cr(`/boards/${e}/tickets`),create:(e,t)=>Cr(`/boards/${e}/tickets`,{method:"POST",body:JSON.stringify(t)}),update:(e,t,n)=>Cr(`/boards/${e}/tickets/${t}`,{method:"PATCH",body:JSON.stringify(n)}),move:(e,t,n,r)=>Cr(`/boards/${e}/tickets/${t}/move`,{method:"PUT",body:JSON.stringify({toColumnId:n,position:r})}),delete:(e,t)=>Cr(`/boards/${e}/tickets/${t}`,{method:"DELETE"}),retry:(e,t)=>Cr(`/boards/${e}/tickets/${t}/retry`,{method:"POST"})};async function Of(e,t){const n=await fetch(`${si}${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){const r=await n.json().catch(()=>({}));throw new Error(r.error??`HTTP ${n.status}`)}if(n.status!==204)return n.json()}const jf={getByTicket:(e,t)=>Of(`/boards/${e}/tickets/${t}/comments`),create:(e,t,n)=>Of(`/boards/${e}/tickets/${t}/comments`,{method:"POST",body:JSON.stringify(n)})};async function no(e,t){const n=await fetch(`${si}${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){if(n.status===404)return null;const r=await n.json().catch(()=>({}));throw new Error(r.error??`HTTP ${n.status}`)}if(n.status!==204)return n.json()}const ro={getAllConfigs:e=>no(`/boards/${e}/columns/configs`),getConfig:(e,t)=>no(`/boards/${e}/columns/${t}/config`),upsert:(e,t,n)=>no(`/boards/${e}/columns/${t}/config`,{method:"PUT",body:JSON.stringify(n)}),delete:(e,t)=>no(`/boards/${e}/columns/${t}/config`,{method:"DELETE"})};function Bw(e,t){const n=g.useRef(t);n.current=t,g.useEffect(()=>{if(!e)return;const i=`${si.replace(/\/api$/,"")}/api/events?boardId=${encodeURIComponent(e)}`,l=new EventSource(i),o=(a,s)=>{l.addEventListener(a,u=>{try{s(JSON.parse(u.data))}catch{}})};return o("ticket:created",a=>n.current({type:"ADD_TICKET",payload:a})),o("ticket:updated",a=>n.current({type:"UPDATE_TICKET",payload:a})),o("ticket:moved",a=>n.current({type:"UPDATE_TICKET",payload:a})),o("ticket:deleted",a=>n.current({type:"DELETE_TICKET",payload:a.id})),o("column:created",a=>n.current({type:"ADD_COLUMN",payload:a})),o("column:updated",a=>n.current({type:"UPDATE_COLUMN",payload:a})),o("columns:reordered",a=>n.current({type:"SET_COLUMNS",payload:a})),o("column:deleted",a=>n.current({type:"DELETE_COLUMN",payload:a.id})),o("board:created",a=>n.current({type:"ADD_BOARD",payload:a})),o("board:updated",a=>n.current({type:"UPDATE_BOARD",payload:a})),o("board:deleted",a=>n.current({type:"DELETE_BOARD",payload:a.id})),o("comment:added",a=>n.current({type:"ADD_COMMENT",payload:a})),o("comment:updated",a=>n.current({type:"UPDATE_COMMENT",payload:a})),o("column:config:updated",a=>n.current({type:"UPDATE_COLUMN_CONFIG",payload:a})),o("column:config:deleted",a=>n.current({type:"DELETE_COLUMN_CONFIG",payload:a.columnId})),l.onerror=()=>{console.warn("[SSE] Connection error; browser will auto-reconnect.")},()=>{l.close()}},[e])}const Fw={boards:[],activeBoardId:null,columns:[],tickets:[],columnConfigs:[],comments:{},loading:!1,error:null};function $w(e,t){var n;switch(t.type){case"SET_LOADING":return{...e,loading:t.payload};case"SET_ERROR":return{...e,error:t.payload};case"SET_BOARDS":return{...e,boards:t.payload};case"ADD_BOARD":{const r=e.boards.some(i=>i.id===t.payload.id);return{...e,boards:r?e.boards.map(i=>i.id===t.payload.id?t.payload:i):[...e.boards,t.payload]}}case"UPDATE_BOARD":return{...e,boards:e.boards.map(r=>r.id===t.payload.id?t.payload:r)};case"DELETE_BOARD":{const r=e.boards.filter(l=>l.id!==t.payload),i=e.activeBoardId===t.payload?((n=r[0])==null?void 0:n.id)??null:e.activeBoardId;return{...e,boards:r,activeBoardId:i,columns:i===t.payload?[]:e.columns,tickets:i===t.payload?[]:e.tickets}}case"SET_ACTIVE_BOARD":return{...e,activeBoardId:t.payload,columns:[],tickets:[]};case"SET_COLUMNS":return{...e,columns:t.payload};case"ADD_COLUMN":{const r=e.columns.some(i=>i.id===t.payload.id);return{...e,columns:r?e.columns.map(i=>i.id===t.payload.id?t.payload:i):[...e.columns,t.payload]}}case"UPDATE_COLUMN":return{...e,columns:e.columns.map(r=>r.id===t.payload.id?t.payload:r)};case"DELETE_COLUMN":return{...e,columns:e.columns.filter(r=>r.id!==t.payload),tickets:e.tickets.filter(r=>r.column_id!==t.payload)};case"SET_TICKETS":return{...e,tickets:t.payload};case"ADD_TICKET":{const r=e.tickets.some(i=>i.id===t.payload.id);return{...e,tickets:r?e.tickets.map(i=>i.id===t.payload.id?t.payload:i):[...e.tickets,t.payload]}}case"UPDATE_TICKET":return e.tickets.some(i=>i.id===t.payload.id)?{...e,tickets:e.tickets.map(i=>i.id===t.payload.id?t.payload:i)}:{...e,tickets:[...e.tickets,t.payload]};case"DELETE_TICKET":return{...e,tickets:e.tickets.filter(r=>r.id!==t.payload)};case"MOVE_TICKET":{const{ticketId:r,toColumnId:i,position:l}=t.payload,o=e.tickets.find(s=>s.id===r);if(!o)return e;const a={...o,column_id:i,position:l};return{...e,tickets:e.tickets.map(s=>s.id===r?a:s)}}case"SET_COMMENTS":return{...e,comments:{...e.comments,[t.payload.ticketId]:t.payload.comments}};case"ADD_COMMENT":{const r=e.comments[t.payload.ticketId]??[];return r.some(i=>i.id===t.payload.comment.id)?e:{...e,comments:{...e.comments,[t.payload.ticketId]:[...r,t.payload.comment]}}}case"UPDATE_COMMENT":{const r=e.comments[t.payload.ticketId]??[];return{...e,comments:{...e.comments,[t.payload.ticketId]:r.map(i=>i.id===t.payload.comment.id?t.payload.comment:i)}}}case"SET_COLUMN_CONFIGS":return{...e,columnConfigs:t.payload};case"UPDATE_COLUMN_CONFIG":{const r=e.columnConfigs.some(i=>i.column_id===t.payload.column_id);return{...e,columnConfigs:r?e.columnConfigs.map(i=>i.column_id===t.payload.column_id?t.payload:i):[...e.columnConfigs,t.payload]}}case"DELETE_COLUMN_CONFIG":return{...e,columnConfigs:e.columnConfigs.filter(r=>r.column_id!==t.payload)};default:return e}}const yg=g.createContext(null);function Uw({children:e}){const[t,n]=g.useReducer($w,Fw);Bw(t.activeBoardId,n);const r=g.useCallback(async()=>{n({type:"SET_LOADING",payload:!0});try{const E=await to.getAll();n({type:"SET_BOARDS",payload:E})}catch{n({type:"SET_ERROR",payload:"error.load"})}finally{n({type:"SET_LOADING",payload:!1})}},[]),i=g.useCallback(async E=>{n({type:"SET_LOADING",payload:!0});try{const[T,P,D]=await Promise.all([Ti.getByBoard(E),_r.getByBoard(E),ro.getAllConfigs(E)]);n({type:"SET_COLUMNS",payload:T}),n({type:"SET_TICKETS",payload:P}),n({type:"SET_COLUMN_CONFIGS",payload:D})}catch{n({type:"SET_ERROR",payload:"error.load"})}finally{n({type:"SET_LOADING",payload:!1})}},[]),l=g.useCallback(E=>{n({type:"SET_ACTIVE_BOARD",payload:E})},[]),o=g.useCallback(async(E,T,P=[])=>{const D=await to.create(E,T,P);return n({type:"ADD_BOARD",payload:D}),D},[]),a=g.useCallback(async(E,T,P,D)=>{const L=await to.update(E,T,P,D);n({type:"UPDATE_BOARD",payload:L})},[]),s=g.useCallback(async E=>{await to.delete(E),n({type:"DELETE_BOARD",payload:E})},[]),u=g.useCallback(async(E,T)=>{const P=await Ti.create(E,T);n({type:"ADD_COLUMN",payload:P})},[]),c=g.useCallback(async(E,T,P)=>{const D=await Ti.update(E,T,P);n({type:"UPDATE_COLUMN",payload:D})},[]),d=g.useCallback(async(E,T)=>{await Ti.reorder(E,T)},[]),p=g.useCallback(async(E,T)=>{await Ti.delete(E,T),n({type:"DELETE_COLUMN",payload:T})},[]),f=g.useCallback(async(E,T)=>{const P=await _r.create(E,T);return n({type:"ADD_TICKET",payload:P}),P},[]),x=g.useCallback(async(E,T,P)=>{const D=await _r.update(E,T,P);n({type:"UPDATE_TICKET",payload:D})},[]),y=g.useCallback(async(E,T,P,D)=>{n({type:"MOVE_TICKET",payload:{ticketId:T,toColumnId:P,position:D}}),await _r.move(E,T,P,D)},[]),_=g.useCallback(async(E,T)=>{await _r.delete(E,T),n({type:"DELETE_TICKET",payload:T})},[]),h=g.useCallback(async(E,T)=>{await _r.retry(E,T)},[]),m=g.useCallback(async E=>{const T=await ro.getAllConfigs(E);n({type:"SET_COLUMN_CONFIGS",payload:T})},[]),v=g.useCallback(async(E,T)=>{const P=await jf.getByTicket(E,T);n({type:"SET_COMMENTS",payload:{ticketId:T,comments:P}})},[]),N=g.useCallback(async(E,T,P,D)=>{const L=await jf.create(E,T,{content:P,author:D});n({type:"ADD_COMMENT",payload:{ticketId:T,comment:L}})},[]),b=g.useCallback(async(E,T,P)=>{const D=await ro.upsert(E,T,P);n({type:"UPDATE_COLUMN_CONFIG",payload:D})},[]),C=g.useCallback(async(E,T)=>{await ro.delete(E,T),n({type:"DELETE_COLUMN_CONFIG",payload:T})},[]);return w.jsx(yg.Provider,{value:{state:t,loadBoards:r,loadBoardData:i,selectBoard:l,createBoard:o,updateBoard:a,deleteBoard:s,createColumn:u,updateColumn:c,reorderColumns:d,deleteColumn:p,createTicket:f,updateTicket:x,moveTicket:y,deleteTicket:_,retryTicket:h,loadColumnConfigs:m,loadComments:v,addComment:N,updateColumnConfig:b,deleteColumnConfig:C},children:e})}function hr(){const e=g.useContext(yg);if(!e)throw new Error("useApp must be used inside AppProvider");return e}const Hw={"app.name":"OpenBoard","nav.boards":"Boards","nav.new_board":"New board","board.untitled":"Untitled board","board.delete":"Delete board","board.rename":"Rename board","board.rename_placeholder":"Board name","board.empty_title":"No board selected","board.empty_subtitle":"Select a board from the sidebar or create a new one.","board.edit":"Edit board","board.name":"Board name","board.path":"Folder Path","board.workspaces":"Workspaces","board.add_workspace":"Add Workspace","column.add":"Add column","column.rename":"Rename column","column.delete":"Delete column","column.rename_placeholder":"Column name","column.empty":"No tickets yet","column.add_ticket":"Add ticket","column.settings":"Column settings","agent.type":"Agent Type","agent.none":"None","agent.dummy":"Dummy Agent","agent.on_finish":"On Finish","agent.do_nothing":"Do nothing","agent.move_to":"Move to","agent.status.processing":"Agent Processing...","agent.status.done":"Agent Finished","ticket.comments":"Comments","ticket.no_comments":"No comments yet","ticket.add_comment_placeholder":"Add a comment…","ticket.add":"New ticket","ticket.edit":"Edit ticket","ticket.delete":"Delete ticket","ticket.title_placeholder":"Ticket title","ticket.description_placeholder":"Add a description…","ticket.priority":"Priority","ticket.created":"Created","ticket.updated":"Updated","ticket.inspect":"Inspect","priority.low":"Low","priority.medium":"Medium","priority.high":"High","priority.urgent":"Urgent","action.save":"Save","action.cancel":"Cancel","action.delete":"Delete","action.confirm_delete":"Delete","action.create":"Create","confirm.delete_board":"Delete this board and all its columns and tickets?","confirm.delete_column":"Delete this column and all its tickets?","confirm.delete_ticket":"Delete this ticket?","theme.dark":"Dark","theme.light":"Light","error.load":"Failed to load data","error.save":"Failed to save","error.generic":"Something went wrong"};let Vw=Hw;function W(e,t){return Vw[e]??e}const Ww="_sidebar_1y03c_1",qw="_header_1y03c_23",Kw="_logo_1y03c_39",Qw="_section_1y03c_67",Yw="_sectionLabel_1y03c_81",Xw="_newBtn_1y03c_97",Gw="_nav_1y03c_129",Jw="_boardItem_1y03c_141",Zw="_boardBtn_1y03c_153",e0="_active_1y03c_189",t0="_boardDot_1y03c_199",n0="_actions_1y03c_225",r0="_action_1y03c_225",lt={sidebar:Ww,header:qw,logo:Kw,section:Qw,sectionLabel:Yw,newBtn:Xw,nav:Gw,boardItem:Jw,boardBtn:Zw,active:e0,boardDot:t0,actions:n0,action:r0};/**
|
|
52
|
-
* @license lucide-react v0.344.0 - ISC
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the ISC license.
|
|
55
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var i0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
57
|
-
* @license lucide-react v0.344.0 - ISC
|
|
58
|
-
*
|
|
59
|
-
* This source code is licensed under the ISC license.
|
|
60
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const l0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),je=(e,t)=>{const n=g.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:a="",children:s,...u},c)=>g.createElement("svg",{ref:c,...i0,width:i,height:i,stroke:r,strokeWidth:o?Number(l)*24/Number(i):l,className:["lucide",`lucide-${l0(e)}`,a].join(" "),...u},[...t.map(([d,p])=>g.createElement(d,p)),...Array.isArray(s)?s:[s]]));return n.displayName=`${e}`,n};/**
|
|
62
|
-
* @license lucide-react v0.344.0 - ISC
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the ISC license.
|
|
65
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const vg=je("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
67
|
-
* @license lucide-react v0.344.0 - ISC
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the ISC license.
|
|
70
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const xg=je("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
72
|
-
* @license lucide-react v0.344.0 - ISC
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the ISC license.
|
|
75
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const o0=je("Code2",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
|
|
77
|
-
* @license lucide-react v0.344.0 - ISC
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the ISC license.
|
|
80
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const ea=je("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
82
|
-
* @license lucide-react v0.344.0 - ISC
|
|
83
|
-
*
|
|
84
|
-
* This source code is licensed under the ISC license.
|
|
85
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const a0=je("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
87
|
-
* @license lucide-react v0.344.0 - ISC
|
|
88
|
-
*
|
|
89
|
-
* This source code is licensed under the ISC license.
|
|
90
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const bu=je("GitPullRequest",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);/**
|
|
92
|
-
* @license lucide-react v0.344.0 - ISC
|
|
93
|
-
*
|
|
94
|
-
* This source code is licensed under the ISC license.
|
|
95
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const wg=je("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
97
|
-
* @license lucide-react v0.344.0 - ISC
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the ISC license.
|
|
100
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const s0=je("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
102
|
-
* @license lucide-react v0.344.0 - ISC
|
|
103
|
-
*
|
|
104
|
-
* This source code is licensed under the ISC license.
|
|
105
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const u0=je("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
107
|
-
* @license lucide-react v0.344.0 - ISC
|
|
108
|
-
*
|
|
109
|
-
* This source code is licensed under the ISC license.
|
|
110
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const c0=je("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
112
|
-
* @license lucide-react v0.344.0 - ISC
|
|
113
|
-
*
|
|
114
|
-
* This source code is licensed under the ISC license.
|
|
115
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const kg=je("Pencil",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
117
|
-
* @license lucide-react v0.344.0 - ISC
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the ISC license.
|
|
120
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const Vc=je("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
122
|
-
* @license lucide-react v0.344.0 - ISC
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the ISC license.
|
|
125
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const d0=je("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
127
|
-
* @license lucide-react v0.344.0 - ISC
|
|
128
|
-
*
|
|
129
|
-
* This source code is licensed under the ISC license.
|
|
130
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const f0=je("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
|
|
132
|
-
* @license lucide-react v0.344.0 - ISC
|
|
133
|
-
*
|
|
134
|
-
* This source code is licensed under the ISC license.
|
|
135
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const Wc=je("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
137
|
-
* @license lucide-react v0.344.0 - ISC
|
|
138
|
-
*
|
|
139
|
-
* This source code is licensed under the ISC license.
|
|
140
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const p0=je("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
142
|
-
* @license lucide-react v0.344.0 - ISC
|
|
143
|
-
*
|
|
144
|
-
* This source code is licensed under the ISC license.
|
|
145
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const h0=je("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
147
|
-
* @license lucide-react v0.344.0 - ISC
|
|
148
|
-
*
|
|
149
|
-
* This source code is licensed under the ISC license.
|
|
150
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const qc=je("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
152
|
-
* @license lucide-react v0.344.0 - ISC
|
|
153
|
-
*
|
|
154
|
-
* This source code is licensed under the ISC license.
|
|
155
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const Kc=je("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),m0="_overlay_1kuf8_1",g0="_dialog_1kuf8_45",y0="_message_1kuf8_91",v0="_actions_1kuf8_105",x0="_cancel_1kuf8_117",w0="_confirm_1kuf8_149",Er={overlay:m0,dialog:g0,message:y0,actions:v0,cancel:x0,confirm:w0};function Qc({message:e,confirmLabel:t,onConfirm:n,onCancel:r}){return g.useEffect(()=>{function i(l){l.key==="Escape"&&r(),l.key==="Enter"&&n()}return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[n,r]),w.jsx("div",{className:Er.overlay,onClick:r,children:w.jsxs("div",{className:Er.dialog,onClick:i=>i.stopPropagation(),children:[w.jsx("p",{className:Er.message,children:e}),w.jsxs("div",{className:Er.actions,children:[w.jsx("button",{className:Er.cancel,onClick:r,children:W("action.cancel")}),w.jsx("button",{className:Er.confirm,onClick:n,children:t})]})]})})}const k0="_overlay_e33j2_1",S0="_modal_e33j2_47",C0="_header_e33j2_99",_0="_closeBtn_e33j2_129",E0="_content_e33j2_167",b0="_field_e33j2_181",N0="_input_e33j2_209",T0="_footer_e33j2_469",R0="_cancelBtn_e33j2_487",I0="_saveBtn_e33j2_519",Rt={overlay:k0,modal:S0,header:C0,closeBtn:_0,content:E0,field:b0,input:N0,footer:T0,cancelBtn:R0,saveBtn:I0};function Nu({board:e,onSave:t,onCancel:n}){const[r,i]=g.useState((e==null?void 0:e.name)??""),[l,o]=g.useState((e==null?void 0:e.path)??""),a=()=>{r.trim()&&t(r.trim(),l.trim()||void 0,[])};return w.jsx("div",{className:Rt.overlay,onClick:n,children:w.jsxs("div",{className:Rt.modal,onClick:s=>s.stopPropagation(),children:[w.jsxs("div",{className:Rt.header,children:[w.jsx("h2",{children:W(e?"board.edit":"nav.new_board")}),w.jsx("button",{className:Rt.closeBtn,onClick:n,children:w.jsx(Kc,{size:20})})]}),w.jsxs("div",{className:Rt.content,children:[w.jsxs("div",{className:Rt.field,children:[w.jsx("label",{children:W("board.name")}),w.jsx("input",{type:"text",value:r,onChange:s=>i(s.target.value),placeholder:W("board.rename_placeholder"),className:Rt.input,autoFocus:!0})]}),w.jsxs("div",{className:Rt.field,children:[w.jsx("label",{children:W("board.path")??"Folder Path"}),w.jsx("input",{type:"text",value:l,onChange:s=>o(s.target.value),placeholder:"e.g. C:/projects/my-app",className:Rt.input})]})]}),w.jsxs("div",{className:Rt.footer,children:[w.jsx("button",{className:Rt.cancelBtn,onClick:n,children:W("action.cancel")}),w.jsx("button",{className:Rt.saveBtn,onClick:a,disabled:!r.trim(),children:W("action.save")})]})]})})}function P0(){const{boardId:e}=Bc(),t=El(),{state:n,createBoard:r,updateBoard:i,deleteBoard:l}=hr(),[o,a]=g.useState(null),[s,u]=g.useState(null),[c,d]=g.useState(null),[p,f]=g.useState(!1);async function x(y,_,h){const m=await r(y.trim(),_,h);f(!1),t(`/boards/${m.id}`)}return w.jsxs("aside",{className:lt.sidebar,children:[w.jsx("div",{className:lt.header,children:w.jsxs(Zo,{to:"/",className:lt.logo,children:[w.jsx(wg,{size:16}),W("app.name")]})}),w.jsxs("div",{className:lt.section,children:[w.jsx("span",{className:lt.sectionLabel,children:W("nav.boards")}),w.jsx("button",{className:lt.newBtn,onClick:()=>f(!0),title:W("nav.new_board"),children:w.jsx(Vc,{size:14})})]}),w.jsx("nav",{className:lt.nav,children:n.boards.map(y=>w.jsxs("div",{className:`${lt.boardItem} ${e===y.id?lt.active:""}`,onMouseEnter:()=>a(y.id),onMouseLeave:()=>a(null),children:[w.jsxs(Zo,{to:`/boards/${y.id}`,className:lt.boardBtn,children:[w.jsx("span",{className:lt.boardDot}),w.jsx("span",{className:"truncate",children:y.name})]}),o===y.id&&w.jsxs("div",{className:lt.actions,children:[w.jsx("button",{className:lt.action,onClick:()=>u(y),title:W("board.rename"),children:w.jsx(kg,{size:12})}),w.jsx("button",{className:lt.action,onClick:()=>d(y),title:W("board.delete"),children:w.jsx(qc,{size:12})})]})]},y.id))}),p&&w.jsx(Nu,{onSave:x,onCancel:()=>f(!1)}),s&&w.jsx(Nu,{board:s,onSave:async(y,_,h)=>{await i(s.id,y,_,h),u(null)},onCancel:()=>u(null)}),c&&w.jsx(Qc,{message:W("confirm.delete_board"),confirmLabel:W("action.confirm_delete"),onConfirm:async()=>{await l(c.id),d(null)},onCancel:()=>d(null)})]})}const D0="_badge_1qhnp_1",L0="_sm_1qhnp_21",A0="_md_1qhnp_31",zf={badge:D0,sm:L0,md:A0};function Sg({priority:e,size:t="sm"}){const n=gg.find(r=>r.value===e);return n?w.jsx("span",{className:`${zf.badge} ${zf[t]}`,style:{"--priority-color":n.colorVar},children:W(n.labelKey)}):null}const O0="_card_mtqwy_1",j0="_dragging_mtqwy_37",z0="_needsApprovalCard_mtqwy_47",M0="_title_mtqwy_97",B0="_titleWithPr_mtqwy_113",F0="_prButtonOverlay_mtqwy_121",$0="_description_mtqwy_135",U0="_footer_mtqwy_159",H0="_left_mtqwy_173",V0="_inspectBtn_mtqwy_185",W0="_processingBtn_mtqwy_209",q0="_doneBtn_mtqwy_227",K0="_blockedBtn_mtqwy_245",Q0="_needsApprovalBtn_mtqwy_263",Xe={card:O0,dragging:j0,needsApprovalCard:z0,title:M0,titleWithPr:B0,prButtonOverlay:F0,description:$0,footer:U0,left:H0,inspectBtn:V0,processingBtn:W0,doneBtn:q0,blockedBtn:K0,needsApprovalBtn:Q0};function Y0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const Ra=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ui(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Yc(e){return"nodeType"in e}function it(e){var t,n;return e?ui(e)?e:Yc(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Xc(e){const{Document:t}=it(e);return e instanceof t}function Nl(e){return ui(e)?!1:e instanceof it(e).HTMLElement}function Cg(e){return e instanceof it(e).SVGElement}function ci(e){return e?ui(e)?e.document:Yc(e)?Xc(e)?e:Nl(e)||Cg(e)?e.ownerDocument:document:document:document}const Yt=Ra?g.useLayoutEffect:g.useEffect;function Ia(e){const t=g.useRef(e);return Yt(()=>{t.current=e}),g.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function X0(){const e=g.useRef(null),t=g.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=g.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function gl(e,t){t===void 0&&(t=[e]);const n=g.useRef(e);return Yt(()=>{n.current!==e&&(n.current=e)},t),n}function Tl(e,t){const n=g.useRef();return g.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function ta(e){const t=Ia(e),n=g.useRef(null),r=g.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function na(e){const t=g.useRef();return g.useEffect(()=>{t.current=e},[e]),t.current}let ms={};function Rl(e,t){return g.useMemo(()=>{if(t)return t;const n=ms[e]==null?0:ms[e]+1;return ms[e]=n,e+"-"+n},[e,t])}function _g(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((l,o)=>{const a=Object.entries(o);for(const[s,u]of a){const c=l[s];c!=null&&(l[s]=c+e*u)}return l},{...t})}}const qr=_g(1),ra=_g(-1);function G0(e){return"clientX"in e&&"clientY"in e}function Pa(e){if(!e)return!1;const{KeyboardEvent:t}=it(e.target);return t&&e instanceof t}function J0(e){if(!e)return!1;const{TouchEvent:t}=it(e.target);return t&&e instanceof t}function ia(e){if(J0(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return G0(e)?{x:e.clientX,y:e.clientY}:null}const Yn=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Yn.Translate.toString(e),Yn.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Mf="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Z0(e){return e.matches(Mf)?e:e.querySelector(Mf)}const ek={display:"none"};function tk(e){let{id:t,value:n}=e;return ce.createElement("div",{id:t,style:ek},n)}function nk(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={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 ce.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function rk(){const[e,t]=g.useState("");return{announce:g.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Eg=g.createContext(null);function ik(e){const t=g.useContext(Eg);g.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function lk(){const[e]=g.useState(()=>new Set),t=g.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[g.useCallback(r=>{let{type:i,event:l}=r;e.forEach(o=>{var a;return(a=o[i])==null?void 0:a.call(o,l)})},[e]),t]}const ok={draggable:`
|
|
157
|
-
To pick up a draggable item, press the space bar.
|
|
158
|
-
While dragging, use the arrow keys to move the item.
|
|
159
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
160
|
-
`},ak={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function sk(e){let{announcements:t=ak,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=ok}=e;const{announce:l,announcement:o}=rk(),a=Rl("DndLiveRegion"),[s,u]=g.useState(!1);if(g.useEffect(()=>{u(!0)},[]),ik(g.useMemo(()=>({onDragStart(d){let{active:p}=d;l(t.onDragStart({active:p}))},onDragMove(d){let{active:p,over:f}=d;t.onDragMove&&l(t.onDragMove({active:p,over:f}))},onDragOver(d){let{active:p,over:f}=d;l(t.onDragOver({active:p,over:f}))},onDragEnd(d){let{active:p,over:f}=d;l(t.onDragEnd({active:p,over:f}))},onDragCancel(d){let{active:p,over:f}=d;l(t.onDragCancel({active:p,over:f}))}}),[l,t])),!s)return null;const c=ce.createElement(ce.Fragment,null,ce.createElement(tk,{id:r,value:i.draggable}),ce.createElement(nk,{id:a,announcement:o}));return n?Br.createPortal(c,n):c}var Ae;(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"})(Ae||(Ae={}));function la(){}function uk(e,t){return g.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function ck(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Xt=Object.freeze({x:0,y:0});function dk(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function fk(e,t){const n=ia(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function pk(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function hk(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function mk(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Bf(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const gk=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=Bf(t,t.left,t.top),l=[];for(const o of r){const{id:a}=o,s=n.get(a);if(s){const u=dk(Bf(s),i);l.push({id:a,data:{droppableContainer:o,value:u}})}}return l.sort(pk)};function yk(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height),o=i-r,a=l-n;if(r<i&&n<l){const s=t.width*t.height,u=e.width*e.height,c=o*a,d=c/(s+u-c);return Number(d.toFixed(4))}return 0}const vk=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const l of r){const{id:o}=l,a=n.get(o);if(a){const s=yk(a,t);s>0&&i.push({id:o,data:{droppableContainer:l,value:s}})}}return i.sort(hk)};function xk(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function bg(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Xt}function wk(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),l=1;l<r;l++)i[l-1]=arguments[l];return i.reduce((o,a)=>({...o,top:o.top+e*a.y,bottom:o.bottom+e*a.y,left:o.left+e*a.x,right:o.right+e*a.x}),{...n})}}const kk=wk(1);function Ng(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 Sk(e,t,n){const r=Ng(t);if(!r)return e;const{scaleX:i,scaleY:l,x:o,y:a}=r,s=e.left-o-(1-i)*parseFloat(n),u=e.top-a-(1-l)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=l?e.height/l:e.height;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s}}const Ck={ignoreTransform:!1};function di(e,t){t===void 0&&(t=Ck);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:c}=it(e).getComputedStyle(e);u&&(n=Sk(n,u,c))}const{top:r,left:i,width:l,height:o,bottom:a,right:s}=n;return{top:r,left:i,width:l,height:o,bottom:a,right:s}}function Ff(e){return di(e,{ignoreTransform:!0})}function _k(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Ek(e,t){return t===void 0&&(t=it(e).getComputedStyle(e)),t.position==="fixed"}function bk(e,t){t===void 0&&(t=it(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const l=t[i];return typeof l=="string"?n.test(l):!1})}function Gc(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(Xc(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Nl(i)||Cg(i)||n.includes(i))return n;const l=it(e).getComputedStyle(i);return i!==e&&bk(i,l)&&n.push(i),Ek(i,l)?n:r(i.parentNode)}return e?r(e):n}function Tg(e){const[t]=Gc(e,1);return t??null}function gs(e){return!Ra||!e?null:ui(e)?e:Yc(e)?Xc(e)||e===ci(e).scrollingElement?window:Nl(e)?e:null:null}function Rg(e){return ui(e)?e.scrollX:e.scrollLeft}function Ig(e){return ui(e)?e.scrollY:e.scrollTop}function Tu(e){return{x:Rg(e),y:Ig(e)}}var Me;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Me||(Me={}));function Pg(e){return!Ra||!e?!1:e===document.scrollingElement}function Dg(e){const t={x:0,y:0},n=Pg(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,l=e.scrollLeft<=t.x,o=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:i,isLeft:l,isBottom:o,isRight:a,maxScroll:r,minScroll:t}}const Nk={x:.2,y:.2};function Tk(e,t,n,r,i){let{top:l,left:o,right:a,bottom:s}=n;r===void 0&&(r=10),i===void 0&&(i=Nk);const{isTop:u,isBottom:c,isLeft:d,isRight:p}=Dg(e),f={x:0,y:0},x={x:0,y:0},y={height:t.height*i.y,width:t.width*i.x};return!u&&l<=t.top+y.height?(f.y=Me.Backward,x.y=r*Math.abs((t.top+y.height-l)/y.height)):!c&&s>=t.bottom-y.height&&(f.y=Me.Forward,x.y=r*Math.abs((t.bottom-y.height-s)/y.height)),!p&&a>=t.right-y.width?(f.x=Me.Forward,x.x=r*Math.abs((t.right-y.width-a)/y.width)):!d&&o<=t.left+y.width&&(f.x=Me.Backward,x.x=r*Math.abs((t.left+y.width-o)/y.width)),{direction:f,speed:x}}function Rk(e){if(e===document.scrollingElement){const{innerWidth:l,innerHeight:o}=window;return{top:0,left:0,right:l,bottom:o,width:l,height:o}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Lg(e){return e.reduce((t,n)=>qr(t,Tu(n)),Xt)}function Ik(e){return e.reduce((t,n)=>t+Rg(n),0)}function Pk(e){return e.reduce((t,n)=>t+Ig(n),0)}function Ag(e,t){if(t===void 0&&(t=di),!e)return;const{top:n,left:r,bottom:i,right:l}=t(e);Tg(e)&&(i<=0||l<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Dk=[["x",["left","right"],Ik],["y",["top","bottom"],Pk]];class Jc{constructor(t,n){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 r=Gc(n),i=Lg(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,o,a]of Dk)for(const s of o)Object.defineProperty(this,s,{get:()=>{const u=a(r),c=i[l]-u;return this.rect[s]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class qi{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Lk(e){const{EventTarget:t}=it(e);return e instanceof t?e:ci(e)}function ys(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var It;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(It||(It={}));function $f(e){e.preventDefault()}function Ak(e){e.stopPropagation()}var re;(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"})(re||(re={}));const Og={start:[re.Space,re.Enter],cancel:[re.Esc],end:[re.Space,re.Enter,re.Tab]},Ok=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case re.Right:return{...n,x:n.x+25};case re.Left:return{...n,x:n.x-25};case re.Down:return{...n,y:n.y+25};case re.Up:return{...n,y:n.y-25}}};class jg{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:n}}=t;this.props=t,this.listeners=new qi(ci(n)),this.windowListeners=new qi(it(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(It.Resize,this.handleCancel),this.windowListeners.add(It.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(It.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Ag(r),n(Xt)}handleKeyDown(t){if(Pa(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:l=Og,coordinateGetter:o=Ok,scrollBehavior:a="smooth"}=i,{code:s}=t;if(l.end.includes(s)){this.handleEnd(t);return}if(l.cancel.includes(s)){this.handleCancel(t);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:Xt;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(t,{active:n,context:r.current,currentCoordinates:c});if(d){const p=ra(d,c),f={x:0,y:0},{scrollableAncestors:x}=r.current;for(const y of x){const _=t.code,{isTop:h,isRight:m,isLeft:v,isBottom:N,maxScroll:b,minScroll:C}=Dg(y),E=Rk(y),T={x:Math.min(_===re.Right?E.right-E.width/2:E.right,Math.max(_===re.Right?E.left:E.left+E.width/2,d.x)),y:Math.min(_===re.Down?E.bottom-E.height/2:E.bottom,Math.max(_===re.Down?E.top:E.top+E.height/2,d.y))},P=_===re.Right&&!m||_===re.Left&&!v,D=_===re.Down&&!N||_===re.Up&&!h;if(P&&T.x!==d.x){const L=y.scrollLeft+p.x,R=_===re.Right&&L<=b.x||_===re.Left&&L>=C.x;if(R&&!p.y){y.scrollTo({left:L,behavior:a});return}R?f.x=y.scrollLeft-L:f.x=_===re.Right?y.scrollLeft-b.x:y.scrollLeft-C.x,f.x&&y.scrollBy({left:-f.x,behavior:a});break}else if(D&&T.y!==d.y){const L=y.scrollTop+p.y,R=_===re.Down&&L<=b.y||_===re.Up&&L>=C.y;if(R&&!p.x){y.scrollTo({top:L,behavior:a});return}R?f.y=y.scrollTop-L:f.y=_===re.Down?y.scrollTop-b.y:y.scrollTop-C.y,f.y&&y.scrollBy({top:-f.y,behavior:a});break}}this.handleMove(t,qr(ra(d,this.referenceCoordinates),f))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}jg.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Og,onActivation:i}=t,{active:l}=n;const{code:o}=e.nativeEvent;if(r.start.includes(o)){const a=l.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function Uf(e){return!!(e&&"distance"in e)}function Hf(e){return!!(e&&"delay"in e)}class Zc{constructor(t,n,r){var i;r===void 0&&(r=Lk(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=n;const{event:l}=t,{target:o}=l;this.props=t,this.events=n,this.document=ci(o),this.documentListeners=new qi(this.document),this.listeners=new qi(r),this.windowListeners=new qi(it(o)),this.initialCoordinates=(i=ia(l))!=null?i:Xt,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:n,bypassActivationConstraint:r}}}=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(It.Resize,this.handleCancel),this.windowListeners.add(It.DragStart,$f),this.windowListeners.add(It.VisibilityChange,this.handleCancel),this.windowListeners.add(It.ContextMenu,$f),this.documentListeners.add(It.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Hf(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Uf(n)){this.handlePending(n);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,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(It.Click,Ak,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(It.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:l}=this,{onMove:o,options:{activationConstraint:a}}=l;if(!i)return;const s=(n=ia(t))!=null?n:Xt,u=ra(i,s);if(!r&&a){if(Uf(a)){if(a.tolerance!=null&&ys(u,a.tolerance))return this.handleCancel();if(ys(u,a.distance))return this.handleStart()}if(Hf(a)&&ys(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}t.cancelable&&t.preventDefault(),o(s)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===re.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const jk={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ed extends Zc{constructor(t){const{event:n}=t,r=ci(n.target);super(t,jk,r)}}ed.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const zk={move:{name:"mousemove"},end:{name:"mouseup"}};var Ru;(function(e){e[e.RightClick=2]="RightClick"})(Ru||(Ru={}));class Mk extends Zc{constructor(t){super(t,zk,ci(t.event.target))}}Mk.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Ru.RightClick?!1:(r==null||r({event:n}),!0)}}];const vs={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Bk extends Zc{constructor(t){super(t,vs)}static setup(){return window.addEventListener(vs.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(vs.move.name,t)};function t(){}}}Bk.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var Ki;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ki||(Ki={}));var oa;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(oa||(oa={}));function Fk(e){let{acceleration:t,activator:n=Ki.Pointer,canScroll:r,draggingRect:i,enabled:l,interval:o=5,order:a=oa.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:p}=e;const f=Uk({delta:d,disabled:!l}),[x,y]=X0(),_=g.useRef({x:0,y:0}),h=g.useRef({x:0,y:0}),m=g.useMemo(()=>{switch(n){case Ki.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case Ki.DraggableRect:return i}},[n,i,s]),v=g.useRef(null),N=g.useCallback(()=>{const C=v.current;if(!C)return;const E=_.current.x*h.current.x,T=_.current.y*h.current.y;C.scrollBy(E,T)},[]),b=g.useMemo(()=>a===oa.TreeOrder?[...u].reverse():u,[a,u]);g.useEffect(()=>{if(!l||!u.length||!m){y();return}for(const C of b){if((r==null?void 0:r(C))===!1)continue;const E=u.indexOf(C),T=c[E];if(!T)continue;const{direction:P,speed:D}=Tk(C,T,m,t,p);for(const L of["x","y"])f[L][P[L]]||(D[L]=0,P[L]=0);if(D.x>0||D.y>0){y(),v.current=C,x(N,o),_.current=D,h.current=P;return}}_.current={x:0,y:0},h.current={x:0,y:0},y()},[t,N,r,y,l,o,JSON.stringify(m),JSON.stringify(f),x,u,b,c,JSON.stringify(p)])}const $k={x:{[Me.Backward]:!1,[Me.Forward]:!1},y:{[Me.Backward]:!1,[Me.Forward]:!1}};function Uk(e){let{delta:t,disabled:n}=e;const r=na(t);return Tl(i=>{if(n||!r||!i)return $k;const l={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Me.Backward]:i.x[Me.Backward]||l.x===-1,[Me.Forward]:i.x[Me.Forward]||l.x===1},y:{[Me.Backward]:i.y[Me.Backward]||l.y===-1,[Me.Forward]:i.y[Me.Forward]||l.y===1}}},[n,t,r])}function Hk(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Tl(i=>{var l;return t==null?null:(l=r??i)!=null?l:null},[r,t])}function Vk(e,t){return g.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,l=i.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,r)}));return[...n,...l]},[]),[e,t])}var yl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(yl||(yl={}));var Iu;(function(e){e.Optimized="optimized"})(Iu||(Iu={}));const Vf=new Map;function Wk(e,t){let{dragging:n,dependencies:r,config:i}=t;const[l,o]=g.useState(null),{frequency:a,measure:s,strategy:u}=i,c=g.useRef(e),d=_(),p=gl(d),f=g.useCallback(function(h){h===void 0&&(h=[]),!p.current&&o(m=>m===null?h:m.concat(h.filter(v=>!m.includes(v))))},[p]),x=g.useRef(null),y=Tl(h=>{if(d&&!n)return Vf;if(!h||h===Vf||c.current!==e||l!=null){const m=new Map;for(let v of e){if(!v)continue;if(l&&l.length>0&&!l.includes(v.id)&&v.rect.current){m.set(v.id,v.rect.current);continue}const N=v.node.current,b=N?new Jc(s(N),N):null;v.rect.current=b,b&&m.set(v.id,b)}return m}return h},[e,l,n,d,s]);return g.useEffect(()=>{c.current=e},[e]),g.useEffect(()=>{d||f()},[n,d]),g.useEffect(()=>{l&&l.length>0&&o(null)},[JSON.stringify(l)]),g.useEffect(()=>{d||typeof a!="number"||x.current!==null||(x.current=setTimeout(()=>{f(),x.current=null},a))},[a,d,f,...r]),{droppableRects:y,measureDroppableContainers:f,measuringScheduled:l!=null};function _(){switch(u){case yl.Always:return!1;case yl.BeforeDragging:return n;default:return!n}}}function td(e,t){return Tl(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function qk(e,t){return td(e,t)}function Kk(e){let{callback:t,disabled:n}=e;const r=Ia(t),i=g.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:l}=window;return new l(r)},[r,n]);return g.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Da(e){let{callback:t,disabled:n}=e;const r=Ia(t),i=g.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:l}=window;return new l(r)},[n]);return g.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Qk(e){return new Jc(di(e),e)}function Wf(e,t,n){t===void 0&&(t=Qk);const[r,i]=g.useState(null);function l(){i(s=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=s??n)!=null?u:null}const c=t(e);return JSON.stringify(s)===JSON.stringify(c)?s:c})}const o=Kk({callback(s){if(e)for(const u of s){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(e)){l();break}}}}),a=Da({callback:l});return Yt(()=>{l(),e?(a==null||a.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),o==null||o.disconnect())},[e]),r}function Yk(e){const t=td(e);return bg(e,t)}const qf=[];function Xk(e){const t=g.useRef(e),n=Tl(r=>e?r&&r!==qf&&e&&t.current&&e.parentNode===t.current.parentNode?r:Gc(e):qf,[e]);return g.useEffect(()=>{t.current=e},[e]),n}function Gk(e){const[t,n]=g.useState(null),r=g.useRef(e),i=g.useCallback(l=>{const o=gs(l.target);o&&n(a=>a?(a.set(o,Tu(o)),new Map(a)):null)},[]);return g.useEffect(()=>{const l=r.current;if(e!==l){o(l);const a=e.map(s=>{const u=gs(s);return u?(u.addEventListener("scroll",i,{passive:!0}),[u,Tu(u)]):null}).filter(s=>s!=null);n(a.length?new Map(a):null),r.current=e}return()=>{o(e),o(l)};function o(a){a.forEach(s=>{const u=gs(s);u==null||u.removeEventListener("scroll",i)})}},[i,e]),g.useMemo(()=>e.length?t?Array.from(t.values()).reduce((l,o)=>qr(l,o),Xt):Lg(e):Xt,[e,t])}function Kf(e,t){t===void 0&&(t=[]);const n=g.useRef(null);return g.useEffect(()=>{n.current=null},t),g.useEffect(()=>{const r=e!==Xt;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?ra(e,n.current):Xt}function Jk(e){g.useEffect(()=>{if(!Ra)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function Zk(e,t){return g.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:l}=r;return n[i]=o=>{l(o,t)},n},{}),[e,t])}function zg(e){return g.useMemo(()=>e?_k(e):null,[e])}const Qf=[];function eS(e,t){t===void 0&&(t=di);const[n]=e,r=zg(n?it(n):null),[i,l]=g.useState(Qf);function o(){l(()=>e.length?e.map(s=>Pg(s)?r:new Jc(t(s),s)):Qf)}const a=Da({callback:o});return Yt(()=>{a==null||a.disconnect(),o(),e.forEach(s=>a==null?void 0:a.observe(s))},[e]),i}function Mg(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Nl(t)?t:e}function tS(e){let{measure:t}=e;const[n,r]=g.useState(null),i=g.useCallback(u=>{for(const{target:c}of u)if(Nl(c)){r(d=>{const p=t(c);return d?{...d,width:p.width,height:p.height}:p});break}},[t]),l=Da({callback:i}),o=g.useCallback(u=>{const c=Mg(u);l==null||l.disconnect(),c&&(l==null||l.observe(c)),r(c?t(c):null)},[t,l]),[a,s]=ta(o);return g.useMemo(()=>({nodeRef:a,rect:n,setRef:s}),[n,a,s])}const nS=[{sensor:ed,options:{}},{sensor:jg,options:{}}],rS={current:{}},_o={draggable:{measure:Ff},droppable:{measure:Ff,strategy:yl.WhileDragging,frequency:Iu.Optimized},dragOverlay:{measure:di}};class Qi extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const iS={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Qi,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:la},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:_o,measureDroppableContainers:la,windowRect:null,measuringScheduled:!1},Bg={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:la,draggableNodes:new Map,over:null,measureDroppableContainers:la},Il=g.createContext(Bg),Fg=g.createContext(iS);function lS(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Qi}}}function oS(e,t){switch(t.type){case Ae.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Ae.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 Ae.DragEnd:case Ae.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ae.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Qi(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Ae.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,l=e.droppable.containers.get(n);if(!l||r!==l.key)return e;const o=new Qi(e.droppable.containers);return o.set(n,{...l,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case Ae.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const l=new Qi(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function aS(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=g.useContext(Il),l=na(r),o=na(n==null?void 0:n.id);return g.useEffect(()=>{if(!t&&!r&&l&&o!=null){if(!Pa(l)||document.activeElement===l.target)return;const a=i.get(o);if(!a)return;const{activatorNode:s,node:u}=a;if(!s.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[s.current,u.current]){if(!c)continue;const d=Z0(c);if(d){d.focus();break}}})}},[r,t,i,o,l]),null}function $g(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,l)=>l({transform:i,...r}),n):n}function sS(e){return g.useMemo(()=>({draggable:{..._o.draggable,...e==null?void 0:e.draggable},droppable:{..._o.droppable,...e==null?void 0:e.droppable},dragOverlay:{..._o.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 uS(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const l=g.useRef(!1),{x:o,y:a}=typeof i=="boolean"?{x:i,y:i}:i;Yt(()=>{if(!o&&!a||!t){l.current=!1;return}if(l.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const c=n(u),d=bg(c,r);if(o||(d.x=0),a||(d.y=0),l.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const p=Tg(u);p&&p.scrollBy({top:d.y,left:d.x})}},[t,o,a,r,n])}const La=g.createContext({...Xt,scaleX:1,scaleY:1});var Ln;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ln||(Ln={}));const cS=g.memo(function(t){var n,r,i,l;let{id:o,accessibility:a,autoScroll:s=!0,children:u,sensors:c=nS,collisionDetection:d=vk,measuring:p,modifiers:f,...x}=t;const y=g.useReducer(oS,void 0,lS),[_,h]=y,[m,v]=lk(),[N,b]=g.useState(Ln.Uninitialized),C=N===Ln.Initialized,{draggable:{active:E,nodes:T,translate:P},droppable:{containers:D}}=_,L=E!=null?T.get(E):null,R=g.useRef({initial:null,translated:null}),M=g.useMemo(()=>{var Ke;return E!=null?{id:E,data:(Ke=L==null?void 0:L.data)!=null?Ke:rS,rect:R}:null},[E,L]),H=g.useRef(null),[$,oe]=g.useState(null),[V,A]=g.useState(null),B=gl(x,Object.values(x)),k=Rl("DndDescribedBy",o),X=g.useMemo(()=>D.getEnabled(),[D]),Q=sS(p),{droppableRects:S,measureDroppableContainers:ee,measuringScheduled:se}=Wk(X,{dragging:C,dependencies:[P.x,P.y],config:Q.droppable}),G=Hk(T,E),De=g.useMemo(()=>V?ia(V):null,[V]),Ce=jy(),Ne=qk(G,Q.draggable.measure);uS({activeNode:E!=null?T.get(E):null,config:Ce.layoutShiftCompensation,initialRect:Ne,measure:Q.draggable.measure});const q=Wf(G,Q.draggable.measure,Ne),Te=Wf(G?G.parentElement:null),_e=g.useRef({activatorEvent:null,active:null,activeNode:G,collisionRect:null,collisions:null,droppableRects:S,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:D,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ee=D.getNodeFor((n=_e.current.over)==null?void 0:n.id),me=tS({measure:Q.dragOverlay.measure}),Fe=(r=me.nodeRef.current)!=null?r:G,Mt=C?(i=me.rect)!=null?i:q:null,hi=!!(me.nodeRef.current&&me.rect),Ll=Yk(hi?null:q),vr=zg(Fe?it(Fe):null),Bt=Xk(C?Ee??G:null),xr=eS(Bt),wr=$g(f,{transform:{x:P.x-Ll.x,y:P.y-Ll.y,scaleX:1,scaleY:1},activatorEvent:V,active:M,activeNodeRect:q,containerNodeRect:Te,draggingNodeRect:Mt,over:_e.current.over,overlayNodeRect:me.rect,scrollableAncestors:Bt,scrollableAncestorRects:xr,windowRect:vr}),Al=De?qr(De,P):null,Ol=Gk(Bt),Ma=Kf(Ol),I=Kf(Ol,[q]),z=qr(wr,Ma),K=Mt?kk(Mt,wr):null,J=M&&K?d({active:M,collisionRect:K,droppableRects:S,droppableContainers:X,pointerCoordinates:Al}):null,le=mk(J,"id"),[Re,Jt]=g.useState(null),Ft=hi?wr:qr(wr,I),er=xk(Ft,(l=Re==null?void 0:Re.rect)!=null?l:null,q),dn=g.useRef(null),qe=g.useCallback((Ke,mt)=>{let{sensor:gt,options:bn}=mt;if(H.current==null)return;const Tt=T.get(H.current);if(!Tt)return;const yt=Ke.nativeEvent,Zt=new gt({active:H.current,activeNode:Tt,event:yt,options:bn,context:_e,onAbort($e){if(!T.get($e))return;const{onDragAbort:en}=B.current,fn={id:$e};en==null||en(fn),m({type:"onDragAbort",event:fn})},onPending($e,Nn,en,fn){if(!T.get($e))return;const{onDragPending:gi}=B.current,Tn={id:$e,constraint:Nn,initialCoordinates:en,offset:fn};gi==null||gi(Tn),m({type:"onDragPending",event:Tn})},onStart($e){const Nn=H.current;if(Nn==null)return;const en=T.get(Nn);if(!en)return;const{onDragStart:fn}=B.current,mi={activatorEvent:yt,active:{id:Nn,data:en.data,rect:R}};Br.unstable_batchedUpdates(()=>{fn==null||fn(mi),b(Ln.Initializing),h({type:Ae.DragStart,initialCoordinates:$e,active:Nn}),m({type:"onDragStart",event:mi}),oe(dn.current),A(yt)})},onMove($e){h({type:Ae.DragMove,coordinates:$e})},onEnd:kr(Ae.DragEnd),onCancel:kr(Ae.DragCancel)});dn.current=Zt;function kr($e){return async function(){const{active:en,collisions:fn,over:mi,scrollAdjustedTranslate:gi}=_e.current;let Tn=null;if(en&&gi){const{cancelDrop:yi}=B.current;Tn={activatorEvent:yt,active:en,collisions:fn,delta:gi,over:mi},$e===Ae.DragEnd&&typeof yi=="function"&&await Promise.resolve(yi(Tn))&&($e=Ae.DragCancel)}H.current=null,Br.unstable_batchedUpdates(()=>{h({type:$e}),b(Ln.Uninitialized),Jt(null),oe(null),A(null),dn.current=null;const yi=$e===Ae.DragEnd?"onDragEnd":"onDragCancel";if(Tn){const Ba=B.current[yi];Ba==null||Ba(Tn),m({type:yi,event:Tn})}})}}},[T]),En=g.useCallback((Ke,mt)=>(gt,bn)=>{const Tt=gt.nativeEvent,yt=T.get(bn);if(H.current!==null||!yt||Tt.dndKit||Tt.defaultPrevented)return;const Zt={active:yt};Ke(gt,mt.options,Zt)===!0&&(Tt.dndKit={capturedBy:mt.sensor},H.current=bn,qe(gt,mt))},[T,qe]),Nt=Vk(c,En);Jk(c),Yt(()=>{q&&N===Ln.Initializing&&b(Ln.Initialized)},[q,N]),g.useEffect(()=>{const{onDragMove:Ke}=B.current,{active:mt,activatorEvent:gt,collisions:bn,over:Tt}=_e.current;if(!mt||!gt)return;const yt={active:mt,activatorEvent:gt,collisions:bn,delta:{x:z.x,y:z.y},over:Tt};Br.unstable_batchedUpdates(()=>{Ke==null||Ke(yt),m({type:"onDragMove",event:yt})})},[z.x,z.y]),g.useEffect(()=>{const{active:Ke,activatorEvent:mt,collisions:gt,droppableContainers:bn,scrollAdjustedTranslate:Tt}=_e.current;if(!Ke||H.current==null||!mt||!Tt)return;const{onDragOver:yt}=B.current,Zt=bn.get(le),kr=Zt&&Zt.rect.current?{id:Zt.id,rect:Zt.rect.current,data:Zt.data,disabled:Zt.disabled}:null,$e={active:Ke,activatorEvent:mt,collisions:gt,delta:{x:Tt.x,y:Tt.y},over:kr};Br.unstable_batchedUpdates(()=>{Jt(kr),yt==null||yt($e),m({type:"onDragOver",event:$e})})},[le]),Yt(()=>{_e.current={activatorEvent:V,active:M,activeNode:G,collisionRect:K,collisions:J,droppableRects:S,draggableNodes:T,draggingNode:Fe,draggingNodeRect:Mt,droppableContainers:D,over:Re,scrollableAncestors:Bt,scrollAdjustedTranslate:z},R.current={initial:Mt,translated:K}},[M,G,J,K,T,Fe,Mt,S,D,Re,Bt,z]),Fk({...Ce,delta:P,draggingRect:K,pointerCoordinates:Al,scrollableAncestors:Bt,scrollableAncestorRects:xr});const Ay=g.useMemo(()=>({active:M,activeNode:G,activeNodeRect:q,activatorEvent:V,collisions:J,containerNodeRect:Te,dragOverlay:me,draggableNodes:T,droppableContainers:D,droppableRects:S,over:Re,measureDroppableContainers:ee,scrollableAncestors:Bt,scrollableAncestorRects:xr,measuringConfiguration:Q,measuringScheduled:se,windowRect:vr}),[M,G,q,V,J,Te,me,T,D,S,Re,ee,Bt,xr,Q,se,vr]),Oy=g.useMemo(()=>({activatorEvent:V,activators:Nt,active:M,activeNodeRect:q,ariaDescribedById:{draggable:k},dispatch:h,draggableNodes:T,over:Re,measureDroppableContainers:ee}),[V,Nt,M,q,h,k,T,Re,ee]);return ce.createElement(Eg.Provider,{value:v},ce.createElement(Il.Provider,{value:Oy},ce.createElement(Fg.Provider,{value:Ay},ce.createElement(La.Provider,{value:er},u)),ce.createElement(aS,{disabled:(a==null?void 0:a.restoreFocus)===!1})),ce.createElement(sk,{...a,hiddenTextDescribedById:k}));function jy(){const Ke=($==null?void 0:$.autoScrollEnabled)===!1,mt=typeof s=="object"?s.enabled===!1:s===!1,gt=C&&!Ke&&!mt;return typeof s=="object"?{...s,enabled:gt}:{enabled:gt}}}),dS=g.createContext(null),Yf="button",fS="Draggable";function pS(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const l=Rl(fS),{activators:o,activatorEvent:a,active:s,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:p}=g.useContext(Il),{role:f=Yf,roleDescription:x="draggable",tabIndex:y=0}=i??{},_=(s==null?void 0:s.id)===t,h=g.useContext(_?La:dS),[m,v]=ta(),[N,b]=ta(),C=Zk(o,t),E=gl(n);Yt(()=>(d.set(t,{id:t,key:l,node:m,activatorNode:N,data:E}),()=>{const P=d.get(t);P&&P.key===l&&d.delete(t)}),[d,t]);const T=g.useMemo(()=>({role:f,tabIndex:y,"aria-disabled":r,"aria-pressed":_&&f===Yf?!0:void 0,"aria-roledescription":x,"aria-describedby":c.draggable}),[r,f,y,_,x,c.draggable]);return{active:s,activatorEvent:a,activeNodeRect:u,attributes:T,isDragging:_,listeners:r?void 0:C,node:m,over:p,setNodeRef:v,setActivatorNodeRef:b,transform:h}}function Ug(){return g.useContext(Fg)}const hS="Droppable",mS={timeout:25};function Hg(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const l=Rl(hS),{active:o,dispatch:a,over:s,measureDroppableContainers:u}=g.useContext(Il),c=g.useRef({disabled:n}),d=g.useRef(!1),p=g.useRef(null),f=g.useRef(null),{disabled:x,updateMeasurementsFor:y,timeout:_}={...mS,...i},h=gl(y??r),m=g.useCallback(()=>{if(!d.current){d.current=!0;return}f.current!=null&&clearTimeout(f.current),f.current=setTimeout(()=>{u(Array.isArray(h.current)?h.current:[h.current]),f.current=null},_)},[_]),v=Da({callback:m,disabled:x||!o}),N=g.useCallback((T,P)=>{v&&(P&&(v.unobserve(P),d.current=!1),T&&v.observe(T))},[v]),[b,C]=ta(N),E=gl(t);return g.useEffect(()=>{!v||!b.current||(v.disconnect(),d.current=!1,v.observe(b.current))},[b,v]),g.useEffect(()=>(a({type:Ae.RegisterDroppable,element:{id:r,key:l,disabled:n,node:b,rect:p,data:E}}),()=>a({type:Ae.UnregisterDroppable,key:l,id:r})),[r]),g.useEffect(()=>{n!==c.current.disabled&&(a({type:Ae.SetDroppableDisabled,id:r,key:l,disabled:n}),c.current.disabled=n)},[r,l,n,a]),{active:o,rect:p,isOver:(s==null?void 0:s.id)===r,node:b,over:s,setNodeRef:C}}function gS(e){let{animation:t,children:n}=e;const[r,i]=g.useState(null),[l,o]=g.useState(null),a=na(n);return!n&&!r&&a&&i(a),Yt(()=>{if(!l)return;const s=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(s==null||u==null){i(null);return}Promise.resolve(t(u,l)).then(()=>{i(null)})},[t,r,l]),ce.createElement(ce.Fragment,null,n,r?g.cloneElement(r,{ref:o}):null)}const yS={x:0,y:0,scaleX:1,scaleY:1};function vS(e){let{children:t}=e;return ce.createElement(Il.Provider,{value:Bg},ce.createElement(La.Provider,{value:yS},t))}const xS={position:"fixed",touchAction:"none"},wS=e=>Pa(e)?"transform 250ms ease":void 0,kS=g.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:l,className:o,rect:a,style:s,transform:u,transition:c=wS}=e;if(!a)return null;const d=i?u:{...u,scaleX:1,scaleY:1},p={...xS,width:a.width,height:a.height,top:a.top,left:a.left,transform:Yn.Transform.toString(d),transformOrigin:i&&r?fk(r,a):void 0,transition:typeof c=="function"?c(r):c,...s};return ce.createElement(n,{className:o,style:p,ref:t},l)}),Vg=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:l,className:o}=e;if(l!=null&&l.active)for(const[a,s]of Object.entries(l.active))s!==void 0&&(i[a]=n.node.style.getPropertyValue(a),n.node.style.setProperty(a,s));if(l!=null&&l.dragOverlay)for(const[a,s]of Object.entries(l.dragOverlay))s!==void 0&&r.node.style.setProperty(a,s);return o!=null&&o.active&&n.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[s,u]of Object.entries(i))n.node.style.setProperty(s,u);o!=null&&o.active&&n.node.classList.remove(o.active)}},SS=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Yn.Transform.toString(t)},{transform:Yn.Transform.toString(n)}]},CS={duration:250,easing:"ease",keyframes:SS,sideEffects:Vg({styles:{active:{opacity:"0"}}})};function _S(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Ia((l,o)=>{if(t===null)return;const a=n.get(l);if(!a)return;const s=a.node.current;if(!s)return;const u=Mg(o);if(!u)return;const{transform:c}=it(o).getComputedStyle(o),d=Ng(c);if(!d)return;const p=typeof t=="function"?t:ES(t);return Ag(s,i.draggable.measure),p({active:{id:l,data:a.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:i,transform:d})})}function ES(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...CS,...e};return l=>{let{active:o,dragOverlay:a,transform:s,...u}=l;if(!t)return;const c={x:a.rect.left-o.rect.left,y:a.rect.top-o.rect.top},d={scaleX:s.scaleX!==1?o.rect.width*s.scaleX/a.rect.width:1,scaleY:s.scaleY!==1?o.rect.height*s.scaleY/a.rect.height:1},p={x:s.x-c.x,y:s.y-c.y,...d},f=i({...u,active:o,dragOverlay:a,transform:{initial:s,final:p}}),[x]=f,y=f[f.length-1];if(JSON.stringify(x)===JSON.stringify(y))return;const _=r==null?void 0:r({active:o,dragOverlay:a,...u}),h=a.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(m=>{h.onfinish=()=>{_==null||_(),m()}})}}let Xf=0;function bS(e){return g.useMemo(()=>{if(e!=null)return Xf++,Xf},[e])}const NS=ce.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:l,modifiers:o,wrapperElement:a="div",className:s,zIndex:u=999}=e;const{activatorEvent:c,active:d,activeNodeRect:p,containerNodeRect:f,draggableNodes:x,droppableContainers:y,dragOverlay:_,over:h,measuringConfiguration:m,scrollableAncestors:v,scrollableAncestorRects:N,windowRect:b}=Ug(),C=g.useContext(La),E=bS(d==null?void 0:d.id),T=$g(o,{activatorEvent:c,active:d,activeNodeRect:p,containerNodeRect:f,draggingNodeRect:_.rect,over:h,overlayNodeRect:_.rect,scrollableAncestors:v,scrollableAncestorRects:N,transform:C,windowRect:b}),P=td(p),D=_S({config:r,draggableNodes:x,droppableContainers:y,measuringConfiguration:m}),L=P?_.setRef:void 0;return ce.createElement(vS,null,ce.createElement(gS,{animation:D},d&&E?ce.createElement(kS,{key:E,id:d.id,ref:L,as:a,activatorEvent:c,adjustScale:t,className:s,transition:l,rect:P,style:{zIndex:u,...i},transform:T},n):null))});function nd(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function TS(e,t){return e.reduce((n,r,i)=>{const l=t.get(r);return l&&(n[i]=l),n},Array(e.length))}function io(e){return e!==null&&e>=0}function RS(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function IS(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Wg=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const l=nd(t,r,n),o=t[i],a=l[i];return!a||!o?null:{x:a.left-o.left,y:a.top-o.top,scaleX:a.width/o.width,scaleY:a.height/o.height}},lo={scaleX:1,scaleY:1},PS=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:l,overIndex:o}=e;const a=(t=l[n])!=null?t:r;if(!a)return null;if(i===n){const u=l[o];return u?{x:0,y:n<o?u.top+u.height-(a.top+a.height):u.top-a.top,...lo}:null}const s=DS(l,i,n);return i>n&&i<=o?{x:0,y:-a.height-s,...lo}:i<n&&i>=o?{x:0,y:a.height+s,...lo}:{x:0,y:0,...lo}};function DS(e,t,n){const r=e[t],i=e[t-1],l=e[t+1];return r?n<t?i?r.top-(i.top+i.height):l?l.top-(r.top+r.height):0:l?l.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const qg="Sortable",Kg=ce.createContext({activeIndex:-1,containerId:qg,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Wg,disabled:{draggable:!1,droppable:!1}});function LS(e){let{children:t,id:n,items:r,strategy:i=Wg,disabled:l=!1}=e;const{active:o,dragOverlay:a,droppableRects:s,over:u,measureDroppableContainers:c}=Ug(),d=Rl(qg,n),p=a.rect!==null,f=g.useMemo(()=>r.map(C=>typeof C=="object"&&"id"in C?C.id:C),[r]),x=o!=null,y=o?f.indexOf(o.id):-1,_=u?f.indexOf(u.id):-1,h=g.useRef(f),m=!RS(f,h.current),v=_!==-1&&y===-1||m,N=IS(l);Yt(()=>{m&&x&&c(f)},[m,f,x,c]),g.useEffect(()=>{h.current=f},[f]);const b=g.useMemo(()=>({activeIndex:y,containerId:d,disabled:N,disableTransforms:v,items:f,overIndex:_,useDragOverlay:p,sortedRects:TS(f,s),strategy:i}),[y,d,N.draggable,N.droppable,v,f,_,s,p,i]);return ce.createElement(Kg.Provider,{value:b},t)}const AS=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return nd(n,r,i).indexOf(t)},OS=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:l,newIndex:o,previousItems:a,previousContainerId:s,transition:u}=e;return!u||!r||a!==l&&i===o?!1:n?!0:o!==i&&t===s},jS={duration:200,easing:"ease"},Qg="transform",zS=Yn.Transition.toString({property:Qg,duration:0,easing:"linear"}),MS={roleDescription:"sortable"};function BS(e){let{disabled:t,index:n,node:r,rect:i}=e;const[l,o]=g.useState(null),a=g.useRef(n);return Yt(()=>{if(!t&&n!==a.current&&r.current){const s=i.current;if(s){const u=di(r.current,{ignoreTransform:!0}),c={x:s.left-u.left,y:s.top-u.top,scaleX:s.width/u.width,scaleY:s.height/u.height};(c.x||c.y)&&o(c)}}n!==a.current&&(a.current=n)},[t,n,r,i]),g.useEffect(()=>{l&&o(null)},[l]),l}function FS(e){let{animateLayoutChanges:t=OS,attributes:n,disabled:r,data:i,getNewIndex:l=AS,id:o,strategy:a,resizeObserverConfig:s,transition:u=jS}=e;const{items:c,containerId:d,activeIndex:p,disabled:f,disableTransforms:x,sortedRects:y,overIndex:_,useDragOverlay:h,strategy:m}=g.useContext(Kg),v=$S(r,f),N=c.indexOf(o),b=g.useMemo(()=>({sortable:{containerId:d,index:N,items:c},...i}),[d,i,N,c]),C=g.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:E,node:T,isOver:P,setNodeRef:D}=Hg({id:o,data:b,disabled:v.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...s}}),{active:L,activatorEvent:R,activeNodeRect:M,attributes:H,setNodeRef:$,listeners:oe,isDragging:V,over:A,setActivatorNodeRef:B,transform:k}=pS({id:o,data:b,attributes:{...MS,...n},disabled:v.draggable}),X=Y0(D,$),Q=!!L,S=Q&&!x&&io(p)&&io(_),ee=!h&&V,se=ee&&S?k:null,De=S?se??(a??m)({rects:y,activeNodeRect:M,activeIndex:p,overIndex:_,index:N}):null,Ce=io(p)&&io(_)?l({id:o,items:c,activeIndex:p,overIndex:_}):N,Ne=L==null?void 0:L.id,q=g.useRef({activeId:Ne,items:c,newIndex:Ce,containerId:d}),Te=c!==q.current.items,_e=t({active:L,containerId:d,isDragging:V,isSorting:Q,id:o,index:N,items:c,newIndex:q.current.newIndex,previousItems:q.current.items,previousContainerId:q.current.containerId,transition:u,wasDragging:q.current.activeId!=null}),Ee=BS({disabled:!_e,index:N,node:T,rect:E});return g.useEffect(()=>{Q&&q.current.newIndex!==Ce&&(q.current.newIndex=Ce),d!==q.current.containerId&&(q.current.containerId=d),c!==q.current.items&&(q.current.items=c)},[Q,Ce,d,c]),g.useEffect(()=>{if(Ne===q.current.activeId)return;if(Ne&&!q.current.activeId){q.current.activeId=Ne;return}const Fe=setTimeout(()=>{q.current.activeId=Ne},50);return()=>clearTimeout(Fe)},[Ne]),{active:L,activeIndex:p,attributes:H,data:b,rect:E,index:N,newIndex:Ce,items:c,isOver:P,isSorting:Q,isDragging:V,listeners:oe,node:T,overIndex:_,over:A,setNodeRef:X,setActivatorNodeRef:B,setDroppableNodeRef:D,setDraggableNodeRef:$,transform:Ee??De,transition:me()};function me(){if(Ee||Te&&q.current.newIndex===N)return zS;if(!(ee&&!Pa(R)||!u)&&(Q||_e))return Yn.Transition.toString({...u,property:Qg})}}function $S(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}re.Down,re.Right,re.Up,re.Left;const jn={opencode:{icon:w.jsx(o0,{size:14}),processingText:"coding...",label:"Coder",color:"#3b82f6"},code_review:{icon:w.jsx(a0,{size:14}),processingText:"reviewing...",label:"Reviewer",color:"#8b5cf6"},dummy:{icon:w.jsx(h0,{size:14}),processingText:"simulating...",label:"Dummy",color:"#6b7280"},default:{icon:w.jsx(vg,{size:14}),processingText:"processing...",label:"Agent",color:"#10b981"}};function aa(e){return e&&jn[e]||jn.default}function US(e){return e==="user"?jn.default:e.includes("opencode")?jn.opencode:e.includes("review")?jn.code_review:e.includes("dummy")?jn.dummy:jn.default}function Yg({ticket:e,isOverlay:t}){const n=El(),{boardId:r}=Bc(),{attributes:i,listeners:l,setNodeRef:o,transform:a,transition:s,isDragging:u}=FS({id:e.id,data:{type:"ticket",ticket:e},disabled:t}),c={transform:Yn.Transform.toString(a),transition:s,opacity:u&&!t?.3:1,cursor:"grab"},d=[...e.agent_sessions??[]].reverse().find(x=>x.column_id===e.column_id),p=(d==null?void 0:d.status)==="needs_approval",f=[...e.agent_sessions??[]].reverse().find(x=>x.pr_url);return w.jsxs("div",{ref:o,style:c,className:`${Xe.card} ${u?Xe.dragging:""} ${p?Xe.needsApprovalCard:""}`,...i,...l,onClick:()=>n(`/boards/${r}/tickets/${e.id}`),children:[f&&f.pr_url&&w.jsxs("a",{href:f.pr_url,target:"_blank",rel:"noopener noreferrer",className:`${Xe.inspectBtn} ${Xe.prButtonOverlay}`,style:{backgroundColor:"#2da44e",color:"white",borderColor:"#2da44e"},title:"View Code Review",onClick:x=>x.stopPropagation(),children:[w.jsx(bu,{size:14}),w.jsx("span",{children:"PR"}),w.jsx(ea,{size:12})]}),w.jsx("p",{className:`${Xe.title} ${f?Xe.titleWithPr:""}`,children:e.title}),e.description&&w.jsx("p",{className:Xe.description,children:e.description}),w.jsx("div",{className:Xe.footer,children:w.jsxs("div",{className:Xe.left,children:[w.jsx(Sg,{priority:e.priority}),(()=>{if(!e.agent_sessions||e.agent_sessions.length===0)return null;let x=null;for(let h=e.agent_sessions.length-1;h>=0;h--)if(e.agent_sessions[h].column_id===e.column_id){x=e.agent_sessions[h];break}if(!x)return null;const y=x;return y&&(y.url||y.status==="processing"||y.status==="done"||y.status==="blocked"||y.status==="needs_approval")?w.jsx(ce.Fragment,{children:w.jsxs("a",{href:y.url||`http://127.0.0.1:${y.port||4096}`,target:"_blank",rel:"noopener noreferrer",className:`${Xe.inspectBtn} ${y.status==="processing"?Xe.processingBtn:y.status==="done"?Xe.doneBtn:y.status==="blocked"?Xe.blockedBtn:y.status==="needs_approval"?Xe.needsApprovalBtn:""}`,title:y.url?"Inspect Agent Session":"Open Agent UI",onClick:h=>h.stopPropagation(),children:[y.status==="done"?w.jsx(xg,{size:14,className:Xe.doneIcon}):y.status==="blocked"?w.jsx("span",{style:{color:"red"},children:"⚠️"}):y.status==="needs_approval"?w.jsx("span",{style:{color:"#f59e0b",fontSize:"14px",lineHeight:1},children:"✋"}):aa(y.agent_type).icon,w.jsx("span",{children:y.status==="blocked"?"Error":y.status==="done"?"Done":y.status==="needs_approval"?"Needs Approval":y.status==="processing"?aa(y.agent_type).processingText:"Agent UI"}),w.jsx(ea,{size:12})]})},((y==null?void 0:y.column_id)||"no-col")+"-"+((y==null?void 0:y.started_at)||"no-start")):null})()]})})]})}function HS(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const VS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,WS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qS={};function Gf(e,t){return(qS.jsx?WS:VS).test(e)}const KS=/[ \t\n\f\r]/g;function QS(e){return typeof e=="object"?e.type==="text"?Jf(e.value):!1:Jf(e)}function Jf(e){return e.replace(KS,"")===""}class Pl{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Pl.prototype.normal={};Pl.prototype.property={};Pl.prototype.space=void 0;function Xg(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Pl(n,r,t)}function Pu(e){return e.toLowerCase()}class ht{constructor(t,n){this.attribute=n,this.property=t}}ht.prototype.attribute="";ht.prototype.booleanish=!1;ht.prototype.boolean=!1;ht.prototype.commaOrSpaceSeparated=!1;ht.prototype.commaSeparated=!1;ht.prototype.defined=!1;ht.prototype.mustUseProperty=!1;ht.prototype.number=!1;ht.prototype.overloadedBoolean=!1;ht.prototype.property="";ht.prototype.spaceSeparated=!1;ht.prototype.space=void 0;let YS=0;const Z=yr(),Ie=yr(),Du=yr(),j=yr(),ue=yr(),Kr=yr(),vt=yr();function yr(){return 2**++YS}const Lu=Object.freeze(Object.defineProperty({__proto__:null,boolean:Z,booleanish:Ie,commaOrSpaceSeparated:vt,commaSeparated:Kr,number:j,overloadedBoolean:Du,spaceSeparated:ue},Symbol.toStringTag,{value:"Module"})),xs=Object.keys(Lu);class rd extends ht{constructor(t,n,r,i){let l=-1;if(super(t,n),Zf(this,"space",i),typeof r=="number")for(;++l<xs.length;){const o=xs[l];Zf(this,xs[l],(r&Lu[o])===Lu[o])}}}rd.prototype.defined=!0;function Zf(e,t,n){n&&(e[t]=n)}function fi(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new rd(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Pu(r)]=r,n[Pu(l.attribute)]=r}return new Pl(t,n,e.space)}const Gg=fi({properties:{ariaActiveDescendant:null,ariaAtomic:Ie,ariaAutoComplete:null,ariaBusy:Ie,ariaChecked:Ie,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:ue,ariaCurrent:null,ariaDescribedBy:ue,ariaDetails:null,ariaDisabled:Ie,ariaDropEffect:ue,ariaErrorMessage:null,ariaExpanded:Ie,ariaFlowTo:ue,ariaGrabbed:Ie,ariaHasPopup:null,ariaHidden:Ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ue,ariaLevel:j,ariaLive:null,ariaModal:Ie,ariaMultiLine:Ie,ariaMultiSelectable:Ie,ariaOrientation:null,ariaOwns:ue,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:Ie,ariaReadOnly:Ie,ariaRelevant:null,ariaRequired:Ie,ariaRoleDescription:ue,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:Ie,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Jg(e,t){return t in e?e[t]:t}function Zg(e,t){return Jg(e,t.toLowerCase())}const XS=fi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kr,acceptCharset:ue,accessKey:ue,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:ue,autoFocus:Z,autoPlay:Z,blocking:ue,capture:null,charSet:null,checked:Z,cite:null,className:ue,cols:j,colSpan:null,content:null,contentEditable:Ie,controls:Z,controlsList:ue,coords:j|Kr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:Du,draggable:Ie,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:ue,height:j,hidden:Du,high:j,href:null,hrefLang:null,htmlFor:ue,httpEquiv:ue,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:ue,itemRef:ue,itemScope:Z,itemType:ue,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,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:Z,optimum:j,pattern:null,ping:ue,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:ue,required:Z,reversed:Z,rows:j,rowSpan:j,sandbox:ue,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:Ie,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:Ie,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ue,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:Ie,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Z,disableRemotePlayback:Z,prefix:null,property:null,results:j,security:null,unselectable:null},space:"html",transform:Zg}),GS=fi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:vt,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:ue,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:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,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:Kr,g2:Kr,glyphName:Kr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:vt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:j,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:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ue,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:vt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:vt,rev:vt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:vt,requiredFeatures:vt,requiredFonts:vt,requiredFormats:vt,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:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:vt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:vt,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:vt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Jg}),ey=fi({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()}}),ty=fi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Zg}),ny=fi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),JS={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"},ZS=/[A-Z]/g,ep=/-[a-z]/g,eC=/^data[-\w.:]+$/i;function tC(e,t){const n=Pu(t);let r=t,i=ht;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&eC.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(ep,rC);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!ep.test(l)){let o=l.replace(ZS,nC);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=rd}return new i(r,t)}function nC(e){return"-"+e.toLowerCase()}function rC(e){return e.charAt(1).toUpperCase()}const iC=Xg([Gg,XS,ey,ty,ny],"html"),id=Xg([Gg,GS,ey,ty,ny],"svg");function lC(e){return e.join(" ").trim()}var ld={},tp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oC=/\n/g,aC=/^\s*/,sC=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,uC=/^:\s*/,cC=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,dC=/^[;\s]*/,fC=/^\s+|\s+$/g,pC=`
|
|
161
|
-
`,np="/",rp="*",rr="",hC="comment",mC="declaration";function gC(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(x){var y=x.match(oC);y&&(n+=y.length);var _=x.lastIndexOf(pC);r=~_?x.length-_:r+x.length}function l(){var x={line:n,column:r};return function(y){return y.position=new o(x),u(),y}}function o(x){this.start=x,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(x){var y=new Error(t.source+":"+n+":"+r+": "+x);if(y.reason=x,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function s(x){var y=x.exec(e);if(y){var _=y[0];return i(_),e=e.slice(_.length),y}}function u(){s(aC)}function c(x){var y;for(x=x||[];y=d();)y!==!1&&x.push(y);return x}function d(){var x=l();if(!(np!=e.charAt(0)||rp!=e.charAt(1))){for(var y=2;rr!=e.charAt(y)&&(rp!=e.charAt(y)||np!=e.charAt(y+1));)++y;if(y+=2,rr===e.charAt(y-1))return a("End of comment missing");var _=e.slice(2,y-2);return r+=2,i(_),e=e.slice(y),r+=2,x({type:hC,comment:_})}}function p(){var x=l(),y=s(sC);if(y){if(d(),!s(uC))return a("property missing ':'");var _=s(cC),h=x({type:mC,property:ip(y[0].replace(tp,rr)),value:_?ip(_[0].replace(tp,rr)):rr});return s(dC),h}}function f(){var x=[];c(x);for(var y;y=p();)y!==!1&&(x.push(y),c(x));return x}return u(),f()}function ip(e){return e?e.replace(fC,rr):rr}var yC=gC,vC=No&&No.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ld,"__esModule",{value:!0});ld.default=wC;const xC=vC(yC);function wC(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,xC.default)(e),i=typeof t=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:a}=l;i?t(o,a,l):a&&(n=n||{},n[o]=a)}),n}var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.camelCase=void 0;var kC=/^--[a-zA-Z0-9_-]+$/,SC=/-([a-z])/g,CC=/^[^-]+$/,_C=/^-(webkit|moz|ms|o|khtml)-/,EC=/^-(ms)-/,bC=function(e){return!e||CC.test(e)||kC.test(e)},NC=function(e,t){return t.toUpperCase()},lp=function(e,t){return"".concat(t,"-")},TC=function(e,t){return t===void 0&&(t={}),bC(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(EC,lp):e=e.replace(_C,lp),e.replace(SC,NC))};Aa.camelCase=TC;var RC=No&&No.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},IC=RC(ld),PC=Aa;function Au(e,t){var n={};return!e||typeof e!="string"||(0,IC.default)(e,function(r,i){r&&i&&(n[(0,PC.camelCase)(r,t)]=i)}),n}Au.default=Au;var DC=Au;const LC=Uu(DC),ry=iy("end"),od=iy("start");function iy(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function AC(e){const t=od(e),n=ry(e);if(t&&n)return{start:t,end:n}}function Yi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?op(e.position):"start"in e||"end"in e?op(e):"line"in e||"column"in e?Ou(e):""}function Ou(e){return ap(e&&e.line)+":"+ap(e&&e.column)}function op(e){return Ou(e&&e.start)+"-"+Ou(e&&e.end)}function ap(e){return e&&typeof e=="number"?e:1}class Ze extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Yi(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ze.prototype.file="";Ze.prototype.name="";Ze.prototype.reason="";Ze.prototype.message="";Ze.prototype.stack="";Ze.prototype.column=void 0;Ze.prototype.line=void 0;Ze.prototype.ancestors=void 0;Ze.prototype.cause=void 0;Ze.prototype.fatal=void 0;Ze.prototype.place=void 0;Ze.prototype.ruleId=void 0;Ze.prototype.source=void 0;const ad={}.hasOwnProperty,OC=new Map,jC=/[A-Z]/g,zC=new Set(["table","tbody","thead","tfoot","tr"]),MC=new Set(["td","th"]),ly="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function BC(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=KC(n,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");r=qC(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?id:iC,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=oy(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function oy(e,t,n){if(t.type==="element")return FC(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return $C(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return HC(e,t,n);if(t.type==="mdxjsEsm")return UC(e,t);if(t.type==="root")return VC(e,t,n);if(t.type==="text")return WC(e,t)}function FC(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=id,e.schema=i),e.ancestors.push(t);const l=sy(e,t.tagName,!1),o=QC(e,t);let a=ud(e,t);return zC.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!QS(s):!0})),ay(e,o,l,t),sd(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function $C(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}vl(e,t.position)}function UC(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);vl(e,t.position)}function HC(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=id,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:sy(e,t.name,!0),o=YC(e,t),a=ud(e,t);return ay(e,o,l,t),sd(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function VC(e,t,n){const r={};return sd(r,ud(e,t)),e.create(t,e.Fragment,r,n)}function WC(e,t){return t.value}function ay(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function sd(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function qC(e,t,n){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?n:t;return a?u(l,o,a):u(l,o)}}function KC(e,t){return n;function n(r,i,l,o){const a=Array.isArray(l.children),s=od(r);return t(i,l,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function QC(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&ad.call(t.properties,i)){const l=XC(e,i,t.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&MC.has(t.tagName)?r=a:n[o]=a}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function YC(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else vl(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else vl(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function ud(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:OC;for(;++r<t.children.length;){const l=t.children[r];let o;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const u=i.get(s)||0;o=s+"-"+u,i.set(s,u+1)}}const a=oy(e,l,o);a!==void 0&&n.push(a)}return n}function XC(e,t,n){const r=tC(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?HS(n):lC(n)),r.property==="style"){let i=typeof n=="object"?n:GC(e,String(n));return e.stylePropertyNameCase==="css"&&(i=JC(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?JS[r.property]||r.property:r.attribute,n]}}function GC(e,t){try{return LC(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Ze("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=ly+"#cannot-parse-style-attribute",i}}function sy(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,o;for(;++l<i.length;){const a=Gf(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=Gf(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return ad.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);vl(e)}function vl(e,t){const n=new Ze("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ly+"#cannot-handle-mdx-estrees-without-createevaluater",n}function JC(e){const t={};let n;for(n in e)ad.call(e,n)&&(t[ZC(n)]=e[n]);return t}function ZC(e){let t=e.replace(jC,e_);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function e_(e){return"-"+e.toLowerCase()}const ws={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"]},t_={};function n_(e,t){const n=t_,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return uy(e,r,i)}function uy(e,t,n){if(r_(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return sp(e.children,t,n)}return Array.isArray(e)?sp(e,t,n):""}function sp(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=uy(e[i],t,n);return r.join("")}function r_(e){return!!(e&&typeof e=="object")}const up=document.createElement("i");function cd(e){const t="&"+e+";";up.innerHTML=t;const n=up.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function cn(e,t,n,r){const i=e.length;let l=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<r.length;)o=r.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function Lt(e,t){return e.length>0?(cn(e,e.length,0,t),e):t}const cp={}.hasOwnProperty;function i_(e){const t={};let n=-1;for(;++n<e.length;)l_(t,e[n]);return t}function l_(e,t){let n;for(n in t){const i=(cp.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){cp.call(i,o)||(i[o]=[]);const a=l[o];o_(i[o],Array.isArray(a)?a:a?[a]:[])}}}function o_(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);cn(e,0,0,r)}function cy(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Qr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const on=Zn(/[A-Za-z]/),kt=Zn(/[\dA-Za-z]/),a_=Zn(/[#-'*+\--9=?A-Z^-~]/);function ju(e){return e!==null&&(e<32||e===127)}const zu=Zn(/\d/),s_=Zn(/[\dA-Fa-f]/),u_=Zn(/[!-/:-@[-`{-~]/);function Y(e){return e!==null&&e<-2}function pt(e){return e!==null&&(e<0||e===32)}function ie(e){return e===-2||e===-1||e===32}const c_=Zn(new RegExp("\\p{P}|\\p{S}","u")),d_=Zn(/\s/);function Zn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function pi(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&kt(e.charCodeAt(n+1))&&kt(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(n+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function fe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return ie(s)?(e.enter(n),a(s)):t(s)}function a(s){return ie(s)&&l++<i?(e.consume(s),a):(e.exit(n),t(s))}}const f_={tokenize:p_};function p_(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),fe(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return Y(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const h_={tokenize:m_},dp={tokenize:g_};function m_(e){const t=this,n=[];let r=0,i,l,o;return a;function a(v){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,s,u)(v)}return u(v)}function s(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&m();const N=t.events.length;let b=N,C;for(;b--;)if(t.events[b][0]==="exit"&&t.events[b][1].type==="chunkFlow"){C=t.events[b][1].end;break}h(r);let E=N;for(;E<t.events.length;)t.events[E][1].end={...C},E++;return cn(t.events,b+1,0,t.events.slice(N)),t.events.length=E,u(v)}return a(v)}function u(v){if(r===n.length){if(!i)return p(v);if(i.currentConstruct&&i.currentConstruct.concrete)return x(v);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(dp,c,d)(v)}function c(v){return i&&m(),h(r),p(v)}function d(v){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,x(v)}function p(v){return t.containerState={},e.attempt(dp,f,x)(v)}function f(v){return r++,n.push([t.currentConstruct,t.containerState]),p(v)}function x(v){if(v===null){i&&m(),h(0),e.consume(v);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),y(v)}function y(v){if(v===null){_(e.exit("chunkFlow"),!0),h(0),e.consume(v);return}return Y(v)?(e.consume(v),_(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(v),y)}function _(v,N){const b=t.sliceStream(v);if(N&&b.push(null),v.previous=l,l&&(l.next=v),l=v,i.defineSkip(v.start),i.write(b),t.parser.lazy[v.start.line]){let C=i.events.length;for(;C--;)if(i.events[C][1].start.offset<o&&(!i.events[C][1].end||i.events[C][1].end.offset>o))return;const E=t.events.length;let T=E,P,D;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(P){D=t.events[T][1].end;break}P=!0}for(h(r),C=E;C<t.events.length;)t.events[C][1].end={...D},C++;cn(t.events,T+1,0,t.events.slice(E)),t.events.length=C}}function h(v){let N=n.length;for(;N-- >v;){const b=n[N];t.containerState=b[1],b[0].exit.call(t,e)}n.length=v}function m(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function g_(e,t,n){return fe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function fp(e){if(e===null||pt(e)||d_(e))return 1;if(c_(e))return 2}function dd(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const Mu={name:"attention",resolveAll:y_,tokenize:v_};function y_(e,t){let n=-1,r,i,l,o,a,s,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};pp(d,-s),pp(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Lt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Lt(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),u=Lt(u,dd(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Lt(u,[["exit",l,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Lt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,cn(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function v_(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=fp(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===l)return e.consume(s),a;const u=e.exit("attentionSequence"),c=fp(s),d=!c||c===2&&i||n.includes(s),p=!i||i===2&&c||n.includes(r);return u._open=!!(l===42?d:d&&(i||!p)),u._close=!!(l===42?p:p&&(c||!d)),t(s)}}function pp(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const x_={name:"autolink",tokenize:w_};function w_(e,t,n){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(f){return on(f)?(e.consume(f),o):f===64?n(f):u(f)}function o(f){return f===43||f===45||f===46||kt(f)?(r=1,a(f)):u(f)}function a(f){return f===58?(e.consume(f),r=0,s):(f===43||f===45||f===46||kt(f))&&r++<32?(e.consume(f),a):(r=0,u(f))}function s(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||ju(f)?n(f):(e.consume(f),s)}function u(f){return f===64?(e.consume(f),c):a_(f)?(e.consume(f),u):n(f)}function c(f){return kt(f)?d(f):n(f)}function d(f){return f===46?(e.consume(f),r=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||kt(f))&&r++<63){const x=f===45?p:d;return e.consume(f),x}return n(f)}}const Oa={partial:!0,tokenize:k_};function k_(e,t,n){return r;function r(l){return ie(l)?fe(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||Y(l)?t(l):n(l)}}const dy={continuation:{tokenize:C_},exit:__,name:"blockQuote",tokenize:S_};function S_(e,t,n){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return ie(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function C_(e,t,n){const r=this;return i;function i(o){return ie(o)?fe(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(dy,t,n)(o)}}function __(e){e.exit("blockQuote")}const fy={name:"characterEscape",tokenize:E_};function E_(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return u_(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const py={name:"characterReference",tokenize:b_};function b_(e,t,n){const r=this;let i=0,l,o;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=kt,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=s_,c):(e.enter("characterReferenceValue"),l=7,o=zu,c(d))}function c(d){if(d===59&&i){const p=e.exit("characterReferenceValue");return o===kt&&!cd(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(d)&&i++<l?(e.consume(d),c):n(d)}}const hp={partial:!0,tokenize:T_},mp={concrete:!0,name:"codeFenced",tokenize:N_};function N_(e,t,n){const r=this,i={partial:!0,tokenize:b};let l=0,o=0,a;return s;function s(C){return u(C)}function u(C){const E=r.events[r.events.length-1];return l=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,a=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(C)}function c(C){return C===a?(o++,e.consume(C),c):o<3?n(C):(e.exit("codeFencedFenceSequence"),ie(C)?fe(e,d,"whitespace")(C):d(C))}function d(C){return C===null||Y(C)?(e.exit("codeFencedFence"),r.interrupt?t(C):e.check(hp,y,N)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(C))}function p(C){return C===null||Y(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(C)):ie(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),fe(e,f,"whitespace")(C)):C===96&&C===a?n(C):(e.consume(C),p)}function f(C){return C===null||Y(C)?d(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(C))}function x(C){return C===null||Y(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(C)):C===96&&C===a?n(C):(e.consume(C),x)}function y(C){return e.attempt(i,N,_)(C)}function _(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),h}function h(C){return l>0&&ie(C)?fe(e,m,"linePrefix",l+1)(C):m(C)}function m(C){return C===null||Y(C)?e.check(hp,y,N)(C):(e.enter("codeFlowValue"),v(C))}function v(C){return C===null||Y(C)?(e.exit("codeFlowValue"),m(C)):(e.consume(C),v)}function N(C){return e.exit("codeFenced"),t(C)}function b(C,E,T){let P=0;return D;function D($){return C.enter("lineEnding"),C.consume($),C.exit("lineEnding"),L}function L($){return C.enter("codeFencedFence"),ie($)?fe(C,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):R($)}function R($){return $===a?(C.enter("codeFencedFenceSequence"),M($)):T($)}function M($){return $===a?(P++,C.consume($),M):P>=o?(C.exit("codeFencedFenceSequence"),ie($)?fe(C,H,"whitespace")($):H($)):T($)}function H($){return $===null||Y($)?(C.exit("codeFencedFence"),E($)):T($)}}}function T_(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const ks={name:"codeIndented",tokenize:I_},R_={partial:!0,tokenize:P_};function I_(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),fe(e,l,"linePrefix",5)(u)}function l(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):Y(u)?e.attempt(R_,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Y(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function P_(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Y(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):fe(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):Y(o)?i(o):n(o)}}const D_={name:"codeText",previous:A_,resolve:L_,tokenize:O_};function L_(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function A_(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function O_(e,t,n){let r=0,i,l;return o;function o(d){return e.enter("codeText"),e.enter("codeTextSequence"),a(d)}function a(d){return d===96?(e.consume(d),r++,a):(e.exit("codeTextSequence"),s(d))}function s(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),s):d===96?(l=e.enter("codeTextSequence"),i=0,c(d)):Y(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||Y(d)?(e.exit("codeTextData"),s(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(l.type="codeTextData",u(d))}}class j_{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,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ri(this.left,r),l.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),Ri(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ri(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 n=this.left.splice(t,Number.POSITIVE_INFINITY);Ri(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ri(this.left,n.reverse())}}}function Ri(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function hy(e){const t={};let n=-1,r,i,l,o,a,s,u;const c=new j_(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,z_(c,n)),n=t[n],u=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(o=c.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return cn(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function z_(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,s=[],u={};let c,d,p=-1,f=n,x=0,y=0;const _=[y];for(;f;){for(;e.get(++i)[1]!==f;);l.push(i),f._tokenizer||(c=r.sliceStream(f),f.next||c.push(null),d&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(y=p+1,_.push(y),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):_.pop(),p=_.length;p--;){const h=a.slice(_[p],_[p+1]),m=l.pop();s.push([m,m+h.length-1]),e.splice(m,2,h)}for(s.reverse(),p=-1;++p<s.length;)u[x+s[p][0]]=x+s[p][1],x+=s[p][1]-s[p][0]-1;return u}const M_={resolve:F_,tokenize:$_},B_={partial:!0,tokenize:U_};function F_(e){return hy(e),e}function $_(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):Y(a)?e.check(B_,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function o(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function U_(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),fe(e,l,"linePrefix")}function l(o){if(o===null||Y(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function my(e,t,n,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(h){return h===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(h),e.exit(l),p):h===null||h===32||h===41||ju(h)?n(h):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),y(h))}function p(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===62?(e.exit("chunkString"),e.exit(a),p(h)):h===null||h===60||Y(h)?n(h):(e.consume(h),h===92?x:f)}function x(h){return h===60||h===62||h===92?(e.consume(h),f):f(h)}function y(h){return!c&&(h===null||h===41||pt(h))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(h)):c<u&&h===40?(e.consume(h),c++,y):h===41?(e.consume(h),c--,y):h===null||h===32||h===40||ju(h)?n(h):(e.consume(h),h===92?_:y)}function _(h){return h===40||h===41||h===92?(e.consume(h),y):y(h)}}function gy(e,t,n,r,i,l){const o=this;let a=0,s;return u;function u(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(l),c}function c(f){return a>999||f===null||f===91||f===93&&!s||f===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(f):f===93?(e.exit(l),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):Y(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||Y(f)||a++>999?(e.exit("chunkString"),c(f)):(e.consume(f),s||(s=!ie(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,d):d(f)}}function yy(e,t,n,r,i,l){let o;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,s):n(p)}function s(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(l),u(p))}function u(p){return p===o?(e.exit(l),s(o)):p===null?n(p):Y(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),fe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===o||p===null||Y(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:c)}function d(p){return p===o||p===92?(e.consume(p),c):c(p)}}function Xi(e,t){let n;return r;function r(i){return Y(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ie(i)?fe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const H_={name:"definition",tokenize:W_},V_={partial:!0,tokenize:q_};function W_(e,t,n){const r=this;let i;return l;function l(f){return e.enter("definition"),o(f)}function o(f){return gy.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=Qr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),s):n(f)}function s(f){return pt(f)?Xi(e,u)(f):u(f)}function u(f){return my(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(V_,d,d)(f)}function d(f){return ie(f)?fe(e,p,"whitespace")(f):p(f)}function p(f){return f===null||Y(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function q_(e,t,n){return r;function r(a){return pt(a)?Xi(e,i)(a):n(a)}function i(a){return yy(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return ie(a)?fe(e,o,"whitespace")(a):o(a)}function o(a){return a===null||Y(a)?t(a):n(a)}}const K_={name:"hardBreakEscape",tokenize:Q_};function Q_(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return Y(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const Y_={name:"headingAtx",resolve:X_,tokenize:G_};function X_(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},cn(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function G_(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),l(c)}function l(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||pt(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||Y(c)?(e.exit("atxHeading"),t(c)):ie(c)?fe(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||pt(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const J_=["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"],gp=["pre","script","style","textarea"],Z_={concrete:!0,name:"htmlFlow",resolveTo:nE,tokenize:rE},eE={partial:!0,tokenize:lE},tE={partial:!0,tokenize:iE};function nE(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 rE(e,t,n){const r=this;let i,l,o,a,s;return u;function u(S){return c(S)}function c(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),d}function d(S){return S===33?(e.consume(S),p):S===47?(e.consume(S),l=!0,y):S===63?(e.consume(S),i=3,r.interrupt?t:k):on(S)?(e.consume(S),o=String.fromCharCode(S),_):n(S)}function p(S){return S===45?(e.consume(S),i=2,f):S===91?(e.consume(S),i=5,a=0,x):on(S)?(e.consume(S),i=4,r.interrupt?t:k):n(S)}function f(S){return S===45?(e.consume(S),r.interrupt?t:k):n(S)}function x(S){const ee="CDATA[";return S===ee.charCodeAt(a++)?(e.consume(S),a===ee.length?r.interrupt?t:R:x):n(S)}function y(S){return on(S)?(e.consume(S),o=String.fromCharCode(S),_):n(S)}function _(S){if(S===null||S===47||S===62||pt(S)){const ee=S===47,se=o.toLowerCase();return!ee&&!l&&gp.includes(se)?(i=1,r.interrupt?t(S):R(S)):J_.includes(o.toLowerCase())?(i=6,ee?(e.consume(S),h):r.interrupt?t(S):R(S)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):l?m(S):v(S))}return S===45||kt(S)?(e.consume(S),o+=String.fromCharCode(S),_):n(S)}function h(S){return S===62?(e.consume(S),r.interrupt?t:R):n(S)}function m(S){return ie(S)?(e.consume(S),m):D(S)}function v(S){return S===47?(e.consume(S),D):S===58||S===95||on(S)?(e.consume(S),N):ie(S)?(e.consume(S),v):D(S)}function N(S){return S===45||S===46||S===58||S===95||kt(S)?(e.consume(S),N):b(S)}function b(S){return S===61?(e.consume(S),C):ie(S)?(e.consume(S),b):v(S)}function C(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),s=S,E):ie(S)?(e.consume(S),C):T(S)}function E(S){return S===s?(e.consume(S),s=null,P):S===null||Y(S)?n(S):(e.consume(S),E)}function T(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||pt(S)?b(S):(e.consume(S),T)}function P(S){return S===47||S===62||ie(S)?v(S):n(S)}function D(S){return S===62?(e.consume(S),L):n(S)}function L(S){return S===null||Y(S)?R(S):ie(S)?(e.consume(S),L):n(S)}function R(S){return S===45&&i===2?(e.consume(S),oe):S===60&&i===1?(e.consume(S),V):S===62&&i===4?(e.consume(S),X):S===63&&i===3?(e.consume(S),k):S===93&&i===5?(e.consume(S),B):Y(S)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(eE,Q,M)(S)):S===null||Y(S)?(e.exit("htmlFlowData"),M(S)):(e.consume(S),R)}function M(S){return e.check(tE,H,Q)(S)}function H(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),$}function $(S){return S===null||Y(S)?M(S):(e.enter("htmlFlowData"),R(S))}function oe(S){return S===45?(e.consume(S),k):R(S)}function V(S){return S===47?(e.consume(S),o="",A):R(S)}function A(S){if(S===62){const ee=o.toLowerCase();return gp.includes(ee)?(e.consume(S),X):R(S)}return on(S)&&o.length<8?(e.consume(S),o+=String.fromCharCode(S),A):R(S)}function B(S){return S===93?(e.consume(S),k):R(S)}function k(S){return S===62?(e.consume(S),X):S===45&&i===2?(e.consume(S),k):R(S)}function X(S){return S===null||Y(S)?(e.exit("htmlFlowData"),Q(S)):(e.consume(S),X)}function Q(S){return e.exit("htmlFlow"),t(S)}}function iE(e,t,n){const r=this;return i;function i(o){return Y(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function lE(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Oa,t,n)}}const oE={name:"htmlText",tokenize:aE};function aE(e,t,n){const r=this;let i,l,o;return a;function a(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),s}function s(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),b):k===63?(e.consume(k),v):on(k)?(e.consume(k),T):n(k)}function u(k){return k===45?(e.consume(k),c):k===91?(e.consume(k),l=0,x):on(k)?(e.consume(k),m):n(k)}function c(k){return k===45?(e.consume(k),f):n(k)}function d(k){return k===null?n(k):k===45?(e.consume(k),p):Y(k)?(o=d,V(k)):(e.consume(k),d)}function p(k){return k===45?(e.consume(k),f):d(k)}function f(k){return k===62?oe(k):k===45?p(k):d(k)}function x(k){const X="CDATA[";return k===X.charCodeAt(l++)?(e.consume(k),l===X.length?y:x):n(k)}function y(k){return k===null?n(k):k===93?(e.consume(k),_):Y(k)?(o=y,V(k)):(e.consume(k),y)}function _(k){return k===93?(e.consume(k),h):y(k)}function h(k){return k===62?oe(k):k===93?(e.consume(k),h):y(k)}function m(k){return k===null||k===62?oe(k):Y(k)?(o=m,V(k)):(e.consume(k),m)}function v(k){return k===null?n(k):k===63?(e.consume(k),N):Y(k)?(o=v,V(k)):(e.consume(k),v)}function N(k){return k===62?oe(k):v(k)}function b(k){return on(k)?(e.consume(k),C):n(k)}function C(k){return k===45||kt(k)?(e.consume(k),C):E(k)}function E(k){return Y(k)?(o=E,V(k)):ie(k)?(e.consume(k),E):oe(k)}function T(k){return k===45||kt(k)?(e.consume(k),T):k===47||k===62||pt(k)?P(k):n(k)}function P(k){return k===47?(e.consume(k),oe):k===58||k===95||on(k)?(e.consume(k),D):Y(k)?(o=P,V(k)):ie(k)?(e.consume(k),P):oe(k)}function D(k){return k===45||k===46||k===58||k===95||kt(k)?(e.consume(k),D):L(k)}function L(k){return k===61?(e.consume(k),R):Y(k)?(o=L,V(k)):ie(k)?(e.consume(k),L):P(k)}function R(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),i=k,M):Y(k)?(o=R,V(k)):ie(k)?(e.consume(k),R):(e.consume(k),H)}function M(k){return k===i?(e.consume(k),i=void 0,$):k===null?n(k):Y(k)?(o=M,V(k)):(e.consume(k),M)}function H(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||pt(k)?P(k):(e.consume(k),H)}function $(k){return k===47||k===62||pt(k)?P(k):n(k)}function oe(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function V(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),A}function A(k){return ie(k)?fe(e,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):B(k)}function B(k){return e.enter("htmlTextData"),o(k)}}const fd={name:"labelEnd",resolveAll:dE,resolveTo:fE,tokenize:pE},sE={tokenize:hE},uE={tokenize:mE},cE={tokenize:gE};function dE(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&cn(e,0,e.length,n),e}function fE(e,t){let n=e.length,r=0,i,l,o,a;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=Lt(a,e.slice(l+1,l+r+3)),a=Lt(a,[["enter",c,t]]),a=Lt(a,dd(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),a=Lt(a,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),a=Lt(a,e.slice(o+1)),a=Lt(a,[["exit",s,t]]),cn(e,l,e.length,a),e}function pE(e,t,n){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(p){return l?l._inactive?d(p):(o=r.parser.defined.includes(Qr(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(sE,c,o?c:d)(p):p===91?e.attempt(uE,c,o?u:d)(p):o?c(p):d(p)}function u(p){return e.attempt(cE,c,d)(p)}function c(p){return t(p)}function d(p){return l._balanced=!0,n(p)}}function hE(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return pt(d)?Xi(e,l)(d):l(d)}function l(d){return d===41?c(d):my(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function o(d){return pt(d)?Xi(e,s)(d):c(d)}function a(d){return n(d)}function s(d){return d===34||d===39||d===40?yy(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return pt(d)?Xi(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function mE(e,t,n){const r=this;return i;function i(a){return gy.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Qr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function gE(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const yE={name:"labelStartImage",resolveAll:fd.resolveAll,tokenize:vE};function vE(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const xE={name:"labelStartLink",resolveAll:fd.resolveAll,tokenize:wE};function wE(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Ss={name:"lineEnding",tokenize:kE};function kE(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),fe(e,t,"linePrefix")}}const Eo={name:"thematicBreak",tokenize:SE};function SE(e,t,n){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||Y(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),ie(u)?fe(e,a,"whitespace")(u):a(u))}}const at={continuation:{tokenize:bE},exit:TE,name:"list",tokenize:EE},CE={partial:!0,tokenize:RE},_E={partial:!0,tokenize:NE};function EE(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(f){const x=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:zu(f)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Eo,n,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(f)}return n(f)}function s(f){return zu(f)&&++o<10?(e.consume(f),s):(!r.interrupt||o<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):n(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Oa,r.interrupt?n:c,e.attempt(CE,p,d))}function c(f){return r.containerState.initialBlankLine=!0,l++,p(f)}function d(f){return ie(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function bE(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Oa,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,fe(e,t,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!ie(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(_E,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,fe(e,e.attempt(at,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function NE(e,t,n){const r=this;return fe(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function TE(e){e.exit(this.containerState.type)}function RE(e,t,n){const r=this;return fe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!ie(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const yp={name:"setextUnderline",resolveTo:IE,tokenize:PE};function IE(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function PE(e,t,n){const r=this;let i;return l;function l(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),ie(u)?fe(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||Y(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const DE={tokenize:LE};function LE(e){const t=this,n=e.attempt(Oa,r,e.attempt(this.parser.constructs.flowInitial,i,fe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(M_,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const AE={resolveAll:xy()},OE=vy("string"),jE=vy("text");function vy(e){return{resolveAll:xy(e==="text"?zE:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,a);return o;function o(c){return u(c)?l(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),l(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p<d.length;){const f=d[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function xy(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function zE(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,o=-1,a=0,s;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)s=!0,a++;else if(u!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const ME={42:at,43:at,45:at,48:at,49:at,50:at,51:at,52:at,53:at,54:at,55:at,56:at,57:at,62:dy},BE={91:H_},FE={[-2]:ks,[-1]:ks,32:ks},$E={35:Y_,42:Eo,45:[yp,Eo],60:Z_,61:yp,95:Eo,96:mp,126:mp},UE={38:py,92:fy},HE={[-5]:Ss,[-4]:Ss,[-3]:Ss,33:yE,38:py,42:Mu,60:[x_,oE],91:xE,92:[K_,fy],93:fd,95:Mu,96:D_},VE={null:[Mu,AE]},WE={null:[42,95]},qE={null:[]},KE=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:WE,contentInitial:BE,disable:qE,document:ME,flow:$E,flowInitial:FE,insideSpan:VE,string:UE,text:HE},Symbol.toStringTag,{value:"Module"}));function QE(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let o=[],a=[];const s={attempt:E(b),check:E(C),consume:m,enter:v,exit:N,interrupt:E(C,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:x,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:d};let c=t.tokenize.call(u,s);return t.resolveAll&&l.push(t),u;function d(L){return o=Lt(o,L),_(),o[o.length-1]!==null?[]:(T(t,0),u.events=dd(l,u.events,u),u.events)}function p(L,R){return XE(f(L),R)}function f(L){return YE(o,L)}function x(){const{_bufferIndex:L,_index:R,line:M,column:H,offset:$}=r;return{_bufferIndex:L,_index:R,line:M,column:H,offset:$}}function y(L){i[L.line]=L.column,D()}function _(){let L;for(;r._index<o.length;){const R=o[r._index];if(typeof R=="string")for(L=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===L&&r._bufferIndex<R.length;)h(R.charCodeAt(r._bufferIndex));else h(R)}}function h(L){c=c(L)}function m(L){Y(L)?(r.line++,r.column=1,r.offset+=L===-3?2:1,D()):L!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=L}function v(L,R){const M=R||{};return M.type=L,M.start=x(),u.events.push(["enter",M,u]),a.push(M),M}function N(L){const R=a.pop();return R.end=x(),u.events.push(["exit",R,u]),R}function b(L,R){T(L,R.from)}function C(L,R){R.restore()}function E(L,R){return M;function M(H,$,oe){let V,A,B,k;return Array.isArray(H)?Q(H):"tokenize"in H?Q([H]):X(H);function X(G){return De;function De(Ce){const Ne=Ce!==null&&G[Ce],q=Ce!==null&&G.null,Te=[...Array.isArray(Ne)?Ne:Ne?[Ne]:[],...Array.isArray(q)?q:q?[q]:[]];return Q(Te)(Ce)}}function Q(G){return V=G,A=0,G.length===0?oe:S(G[A])}function S(G){return De;function De(Ce){return k=P(),B=G,G.partial||(u.currentConstruct=G),G.name&&u.parser.constructs.disable.null.includes(G.name)?se():G.tokenize.call(R?Object.assign(Object.create(u),R):u,s,ee,se)(Ce)}}function ee(G){return L(B,k),$}function se(G){return k.restore(),++A<V.length?S(V[A]):oe}}}function T(L,R){L.resolveAll&&!l.includes(L)&&l.push(L),L.resolve&&cn(u.events,R,u.events.length-R,L.resolve(u.events.slice(R),u)),L.resolveTo&&(u.events=L.resolveTo(u.events,u))}function P(){const L=x(),R=u.previous,M=u.currentConstruct,H=u.events.length,$=Array.from(a);return{from:H,restore:oe};function oe(){r=L,u.previous=R,u.currentConstruct=M,u.events.length=H,a=$,D()}}function D(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function YE(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,l)];else{if(o=e.slice(n,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function XE(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
|
|
162
|
-
`;break}case-3:{o=`\r
|
|
163
|
-
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function GE(e){const r={constructs:i_([KE,...(e||{}).extensions||[]]),content:i(f_),defined:[],document:i(h_),flow:i(DE),lazy:{},string:i(OE),text:i(jE)};return r;function i(l){return o;function o(a){return QE(r,l,a)}}}function JE(e){for(;!hy(e););return e}const vp=/[\0\t\n\r]/g;function ZE(){let e=1,t="",n=!0,r;return i;function i(l,o,a){const s=[];let u,c,d,p,f;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),d=0,t="",n&&(l.charCodeAt(0)===65279&&d++,n=void 0);d<l.length;){if(vp.lastIndex=d,u=vp.exec(l),p=u&&u.index!==void 0?u.index:l.length,f=l.charCodeAt(p),!u){t=l.slice(d);break}if(f===10&&d===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),d<p&&(s.push(l.slice(d,p)),e+=p-d),f){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const e2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t2(e){return e.replace(e2,n2)}function n2(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return cy(n.slice(l?2:1),l?16:10)}return cd(n)||e}const wy={}.hasOwnProperty;function r2(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),i2(n)(JE(GE(n).document().write(ZE()(e,t,!0))))}function i2(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(vr),autolinkProtocol:P,autolinkEmail:P,atxHeading:l(Fe),blockQuote:l(q),characterEscape:P,characterReference:P,codeFenced:l(Te),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Te,o),codeText:l(_e,o),codeTextData:P,data:P,codeFlowValue:P,definition:l(Ee),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(me),hardBreakEscape:l(Mt),hardBreakTrailing:l(Mt),htmlFlow:l(hi,o),htmlFlowData:P,htmlText:l(hi,o),htmlTextData:P,image:l(Ll),label:o,link:l(vr),listItem:l(xr),listItemValue:p,listOrdered:l(Bt,d),listUnordered:l(Bt),paragraph:l(wr),reference:S,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Fe),strong:l(Al),thematicBreak:l(Ma)},exit:{atxHeading:s(),atxHeadingSequence:b,autolink:s(),autolinkEmail:Ne,autolinkProtocol:Ce,blockQuote:s(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:G,characterReference:De,codeFenced:s(_),codeFencedFence:y,codeFencedFenceInfo:f,codeFencedFenceMeta:x,codeFlowValue:D,codeIndented:s(h),codeText:s($),codeTextData:D,data:D,definition:s(),definitionDestinationString:N,definitionLabelString:m,definitionTitleString:v,emphasis:s(),hardBreakEscape:s(R),hardBreakTrailing:s(R),htmlFlow:s(M),htmlFlowData:D,htmlText:s(H),htmlTextData:D,image:s(V),label:B,labelText:A,lineEnding:L,link:s(oe),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ee,resourceDestinationString:k,resourceTitleString:X,resource:Q,setextHeading:s(T),setextHeadingLineSequence:E,setextHeadingText:C,strong:s(),thematicBreak:s()}};ky(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(I){let z={type:"root",children:[]};const K={stack:[z],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:c,data:n},J=[];let le=-1;for(;++le<I.length;)if(I[le][1].type==="listOrdered"||I[le][1].type==="listUnordered")if(I[le][0]==="enter")J.push(le);else{const Re=J.pop();le=i(I,Re,le)}for(le=-1;++le<I.length;){const Re=t[I[le][0]];wy.call(Re,I[le][1].type)&&Re[I[le][1].type].call(Object.assign({sliceSerialize:I[le][2].sliceSerialize},K),I[le][1])}if(K.tokenStack.length>0){const Re=K.tokenStack[K.tokenStack.length-1];(Re[1]||xp).call(K,void 0,Re[0])}for(z.position={start:In(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:In(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},le=-1;++le<t.transforms.length;)z=t.transforms[le](z)||z;return z}function i(I,z,K){let J=z-1,le=-1,Re=!1,Jt,Ft,er,dn;for(;++J<=K;){const qe=I[J];switch(qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{qe[0]==="enter"?le++:le--,dn=void 0;break}case"lineEndingBlank":{qe[0]==="enter"&&(Jt&&!dn&&!le&&!er&&(er=J),dn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:dn=void 0}if(!le&&qe[0]==="enter"&&qe[1].type==="listItemPrefix"||le===-1&&qe[0]==="exit"&&(qe[1].type==="listUnordered"||qe[1].type==="listOrdered")){if(Jt){let En=J;for(Ft=void 0;En--;){const Nt=I[En];if(Nt[1].type==="lineEnding"||Nt[1].type==="lineEndingBlank"){if(Nt[0]==="exit")continue;Ft&&(I[Ft][1].type="lineEndingBlank",Re=!0),Nt[1].type="lineEnding",Ft=En}else if(!(Nt[1].type==="linePrefix"||Nt[1].type==="blockQuotePrefix"||Nt[1].type==="blockQuotePrefixWhitespace"||Nt[1].type==="blockQuoteMarker"||Nt[1].type==="listItemIndent"))break}er&&(!Ft||er<Ft)&&(Jt._spread=!0),Jt.end=Object.assign({},Ft?I[Ft][1].start:qe[1].end),I.splice(Ft||J,0,["exit",Jt,qe[2]]),J++,K++}if(qe[1].type==="listItemPrefix"){const En={type:"listItem",_spread:!1,start:Object.assign({},qe[1].start),end:void 0};Jt=En,I.splice(J,0,["enter",En,qe[2]]),J++,K++,er=void 0,dn=!0}}}return I[z][1]._spread=Re,K}function l(I,z){return K;function K(J){a.call(this,I(J),J),z&&z.call(this,J)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(I,z,K){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([z,K||void 0]),I.position={start:In(z.start),end:void 0}}function s(I){return z;function z(K){I&&I.call(this,K),u.call(this,K)}}function u(I,z){const K=this.stack.pop(),J=this.tokenStack.pop();if(J)J[0].type!==I.type&&(z?z.call(this,I,J[0]):(J[1]||xp).call(this,I,J[0]));else throw new Error("Cannot close `"+I.type+"` ("+Yi({start:I.start,end:I.end})+"): it’s not open");K.position.end=In(I.end)}function c(){return n_(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(I){if(this.data.expectingFirstListItemValue){const z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function f(){const I=this.resume(),z=this.stack[this.stack.length-1];z.lang=I}function x(){const I=this.resume(),z=this.stack[this.stack.length-1];z.meta=I}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const I=this.resume(),z=this.stack[this.stack.length-1];z.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function h(){const I=this.resume(),z=this.stack[this.stack.length-1];z.value=I.replace(/(\r?\n|\r)$/g,"")}function m(I){const z=this.resume(),K=this.stack[this.stack.length-1];K.label=z,K.identifier=Qr(this.sliceSerialize(I)).toLowerCase()}function v(){const I=this.resume(),z=this.stack[this.stack.length-1];z.title=I}function N(){const I=this.resume(),z=this.stack[this.stack.length-1];z.url=I}function b(I){const z=this.stack[this.stack.length-1];if(!z.depth){const K=this.sliceSerialize(I).length;z.depth=K}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function E(I){const z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function P(I){const K=this.stack[this.stack.length-1].children;let J=K[K.length-1];(!J||J.type!=="text")&&(J=Ol(),J.position={start:In(I.start),end:void 0},K.push(J)),this.stack.push(J)}function D(I){const z=this.stack.pop();z.value+=this.sliceSerialize(I),z.position.end=In(I.end)}function L(I){const z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const K=z.children[z.children.length-1];K.position.end=In(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(z.type)&&(P.call(this,I),D.call(this,I))}function R(){this.data.atHardBreak=!0}function M(){const I=this.resume(),z=this.stack[this.stack.length-1];z.value=I}function H(){const I=this.resume(),z=this.stack[this.stack.length-1];z.value=I}function $(){const I=this.resume(),z=this.stack[this.stack.length-1];z.value=I}function oe(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=z,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function V(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=z,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function A(I){const z=this.sliceSerialize(I),K=this.stack[this.stack.length-2];K.label=t2(z),K.identifier=Qr(z).toLowerCase()}function B(){const I=this.stack[this.stack.length-1],z=this.resume(),K=this.stack[this.stack.length-1];if(this.data.inReference=!0,K.type==="link"){const J=I.children;K.children=J}else K.alt=z}function k(){const I=this.resume(),z=this.stack[this.stack.length-1];z.url=I}function X(){const I=this.resume(),z=this.stack[this.stack.length-1];z.title=I}function Q(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function ee(I){const z=this.resume(),K=this.stack[this.stack.length-1];K.label=z,K.identifier=Qr(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function se(I){this.data.characterReferenceType=I.type}function G(I){const z=this.sliceSerialize(I),K=this.data.characterReferenceType;let J;K?(J=cy(z,K==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):J=cd(z);const le=this.stack[this.stack.length-1];le.value+=J}function De(I){const z=this.stack.pop();z.position.end=In(I.end)}function Ce(I){D.call(this,I);const z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(I)}function Ne(I){D.call(this,I);const z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(I)}function q(){return{type:"blockquote",children:[]}}function Te(){return{type:"code",lang:null,meta:null,value:""}}function _e(){return{type:"inlineCode",value:""}}function Ee(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function me(){return{type:"emphasis",children:[]}}function Fe(){return{type:"heading",depth:0,children:[]}}function Mt(){return{type:"break"}}function hi(){return{type:"html",value:""}}function Ll(){return{type:"image",title:null,url:"",alt:null}}function vr(){return{type:"link",title:null,url:"",children:[]}}function Bt(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function xr(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function wr(){return{type:"paragraph",children:[]}}function Al(){return{type:"strong",children:[]}}function Ol(){return{type:"text",value:""}}function Ma(){return{type:"thematicBreak"}}}function In(e){return{line:e.line,column:e.column,offset:e.offset}}function ky(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ky(e,r):l2(e,r)}}function l2(e,t){let n;for(n in t)if(wy.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function xp(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Yi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Yi({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Yi({start:t.start,end:t.end})+") is still open")}function o2(e){const t=this;t.parser=n;function n(r){return r2(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function a2(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function s2(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
164
|
-
`}]}function u2(e,t){const n=t.value?t.value+`
|
|
165
|
-
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function c2(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function d2(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function f2(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=pi(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function p2(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function h2(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Sy(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function m2(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Sy(e,t);const i={src:pi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function g2(e,t){const n={src:pi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function y2(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function v2(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Sy(e,t);const i={href:pi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function x2(e,t){const n={href:pi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function w2(e,t,n){const r=e.all(t),i=n?k2(n):Cy(t),l={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
|
|
166
|
-
`}),c.type==="element"&&c.tagName==="p"&&!i?o.push(...c.children):o.push(c)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
|
|
167
|
-
`});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,u),e.applyData(t,u)}function k2(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Cy(n[r])}return t}function Cy(e){const t=e.spread;return t??e.children.length>1}function S2(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function C2(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _2(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function E2(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function b2(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=od(t.children[1]),s=ry(t.children[t.children.length-1]);a&&s&&(o.position={start:a,end:s}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function N2(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s<a;){const d=t.children[s],p={},f=o?o[s]:void 0;f&&(p.align=f);let x={type:"element",tagName:l,properties:p,children:[]};d&&(x.children=e.all(d),e.patch(d,x),x=e.applyData(d,x)),u.push(x)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function T2(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const wp=9,kp=32;function R2(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(Sp(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(Sp(t.slice(i),i>0,!1)),l.join("")}function Sp(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===wp||l===kp;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===wp||l===kp;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function I2(e,t){const n={type:"text",value:R2(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function P2(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const D2={blockquote:a2,break:s2,code:u2,delete:c2,emphasis:d2,footnoteReference:f2,heading:p2,html:h2,imageReference:m2,image:g2,inlineCode:y2,linkReference:v2,link:x2,listItem:w2,list:S2,paragraph:C2,root:_2,strong:E2,table:b2,tableCell:T2,tableRow:N2,text:I2,thematicBreak:P2,toml:oo,yaml:oo,definition:oo,footnoteDefinition:oo};function oo(){}const _y=-1,ja=0,Gi=1,sa=2,pd=3,hd=4,md=5,gd=6,Ey=7,by=8,Cp=typeof self=="object"?self:globalThis,L2=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case ja:case _y:return n(o,i);case Gi:{const a=n([],i);for(const s of o)a.push(r(s));return a}case sa:{const a=n({},i);for(const[s,u]of o)a[r(s)]=r(u);return a}case pd:return n(new Date(o),i);case hd:{const{source:a,flags:s}=o;return n(new RegExp(a,s),i)}case md:{const a=n(new Map,i);for(const[s,u]of o)a.set(r(s),r(u));return a}case gd:{const a=n(new Set,i);for(const s of o)a.add(r(s));return a}case Ey:{const{name:a,message:s}=o;return n(new Cp[a](s),i)}case by:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return n(new DataView(a),o)}}return n(new Cp[l](o),i)};return r},_p=e=>L2(new Map,e)(0),br="",{toString:A2}={},{keys:O2}=Object,Ii=e=>{const t=typeof e;if(t!=="object"||!e)return[ja,t];const n=A2.call(e).slice(8,-1);switch(n){case"Array":return[Gi,br];case"Object":return[sa,br];case"Date":return[pd,br];case"RegExp":return[hd,br];case"Map":return[md,br];case"Set":return[gd,br];case"DataView":return[Gi,n]}return n.includes("Array")?[Gi,n]:n.includes("Error")?[Ey,n]:[sa,n]},ao=([e,t])=>e===ja&&(t==="function"||t==="symbol"),j2=(e,t,n,r)=>{const i=(o,a)=>{const s=r.push(o)-1;return n.set(a,s),s},l=o=>{if(n.has(o))return n.get(o);let[a,s]=Ii(o);switch(a){case ja:{let c=o;switch(s){case"bigint":a=by,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return i([_y],o)}return i([a,c],o)}case Gi:{if(s){let p=o;return s==="DataView"?p=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(o)),i([s,[...p]],o)}const c=[],d=i([a,c],o);for(const p of o)c.push(l(p));return d}case sa:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const c=[],d=i([a,c],o);for(const p of O2(o))(e||!ao(Ii(o[p])))&&c.push([l(p),l(o[p])]);return d}case pd:return i([a,o.toISOString()],o);case hd:{const{source:c,flags:d}=o;return i([a,{source:c,flags:d}],o)}case md:{const c=[],d=i([a,c],o);for(const[p,f]of o)(e||!(ao(Ii(p))||ao(Ii(f))))&&c.push([l(p),l(f)]);return d}case gd:{const c=[],d=i([a,c],o);for(const p of o)(e||!ao(Ii(p)))&&c.push(l(p));return d}}const{message:u}=o;return i([a,{name:s,message:u}],o)};return l},Ep=(e,{json:t,lossy:n}={})=>{const r=[];return j2(!(t||n),!!t,new Map,r)(e),r},ua=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?_p(Ep(e,t)):structuredClone(e):(e,t)=>_p(Ep(e,t));function z2(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function M2(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function B2(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||z2,r=e.options.footnoteBackLabel||M2,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const c=e.all(u),d=String(u.identifier).toUpperCase(),p=pi(d.toLowerCase());let f=0;const x=[],y=e.footnoteCounts.get(d);for(;y!==void 0&&++f<=y;){x.length>0&&x.push({type:"text",value:" "});let m=typeof n=="string"?n:n(s,f);typeof m=="string"&&(m={type:"text",value:m}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,f),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const _=c[c.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const m=_.children[_.children.length-1];m&&m.type==="text"?m.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...x)}else c.push(...x);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,h),a.push(h)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...ua(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
168
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
169
|
-
`}]}}const Ny=function(e){if(e==null)return H2;if(typeof e=="function")return za(e);if(typeof e=="object")return Array.isArray(e)?F2(e):$2(e);if(typeof e=="string")return U2(e);throw new Error("Expected function, string, or object as test")};function F2(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ny(e[n]);return za(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function $2(e){const t=e;return za(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function U2(e){return za(t);function t(n){return n&&n.type===e}}function za(e){return t;function t(n,r,i){return!!(V2(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function H2(){return!0}function V2(e){return e!==null&&typeof e=="object"&&"type"in e}const Ty=[],W2=!0,bp=!1,q2="skip";function K2(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=Ny(i),o=r?-1:1;a(e,void 0,[])();function a(s,u,c){const d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=Ty,x,y,_;if((!t||l(s,u,c[c.length-1]||void 0))&&(f=Q2(n(s,c)),f[0]===bp))return f;if("children"in s&&s.children){const h=s;if(h.children&&f[0]!==q2)for(y=(r?h.children.length:-1)+o,_=c.concat(h);y>-1&&y<h.children.length;){const m=h.children[y];if(x=a(m,y,_)(),x[0]===bp)return x;y=typeof x[1]=="number"?x[1]:y+o}}return f}}}function Q2(e){return Array.isArray(e)?e:typeof e=="number"?[W2,e]:e==null?Ty:[e]}function Ry(e,t,n,r){let i,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,i=n):(l=t,o=n,i=r),K2(e,l,a,i);function a(s,u){const c=u[u.length-1],d=c?c.children.indexOf(s):void 0;return o(s,d,c)}}const Bu={}.hasOwnProperty,Y2={};function X2(e,t){const n=t||Y2,r=new Map,i=new Map,l=new Map,o={...D2,...n.handlers},a={all:u,applyData:J2,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:s,options:n,patch:G2,wrap:eb};return Ry(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?r:i,p=String(c.identifier).toUpperCase();d.has(p)||d.set(p,c)}}),a;function s(c,d){const p=c.type,f=a.handlers[p];if(Bu.call(a.handlers,p)&&f)return f(a,c,d);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in c){const{children:y,..._}=c,h=ua(_);return h.children=a.all(c),h}return ua(c)}return(a.options.unknownHandler||Z2)(a,c,d)}function u(c){const d=[];if("children"in c){const p=c.children;let f=-1;for(;++f<p.length;){const x=a.one(p[f],c);if(x){if(f&&p[f-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=Np(x.value)),!Array.isArray(x)&&x.type==="element")){const y=x.children[0];y&&y.type==="text"&&(y.value=Np(y.value))}Array.isArray(x)?d.push(...x):d.push(x)}}}return d}}function G2(e,t){e.position&&(t.position=AC(e))}function J2(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&l&&Object.assign(n.properties,ua(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Z2(e,t){const n=t.data||{},r="value"in t&&!(Bu.call(n,"hProperties")||Bu.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function eb(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
170
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
171
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
172
|
-
`}),n}function Np(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Tp(e,t){const n=X2(e,t),r=n.one(e,void 0),i=B2(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
|
|
173
|
-
`},i),l}function tb(e,t){return e&&"run"in e?async function(n,r){const i=Tp(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Tp(n,{file:r,...e||t})}}function Rp(e){if(e)throw e}var bo=Object.prototype.hasOwnProperty,Iy=Object.prototype.toString,Ip=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,Dp=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Iy.call(t)==="[object Array]"},Lp=function(t){if(!t||Iy.call(t)!=="[object Object]")return!1;var n=bo.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&bo.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||bo.call(t,i)},Ap=function(t,n){Ip&&n.name==="__proto__"?Ip(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Op=function(t,n){if(n==="__proto__")if(bo.call(t,n)){if(Pp)return Pp(t,n).value}else return;return t[n]},nb=function e(){var t,n,r,i,l,o,a=arguments[0],s=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)r=Op(a,n),i=Op(t,n),a!==i&&(c&&i&&(Lp(i)||(l=Dp(i)))?(l?(l=!1,o=r&&Dp(r)?r:[]):o=r&&Lp(r)?r:{},Ap(a,{name:n,newValue:e(c,o,i)})):typeof i<"u"&&Ap(a,{name:n,newValue:i}));return a};const Cs=Uu(nb);function Fu(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 rb(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(s,...u){const c=e[++l];let d=-1;if(s){o(s);return}for(;++d<i.length;)(u[d]===null||u[d]===void 0)&&(u[d]=i[d]);i=u,c?ib(c,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function ib(e,t){let n;return r;function r(...o){const a=e.length>o.length;let s;a&&o.push(i);try{s=e.apply(this,o)}catch(u){const c=u;if(a&&n)throw c;return i(c)}a||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...a){n||(n=!0,t(o,...a))}function l(o){i(null,o)}}const rn={basename:lb,dirname:ob,extname:ab,join:sb,sep:"/"};function lb(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Dl(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function ob(e){if(Dl(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function ab(e){Dl(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function sb(...e){let t=-1,n;for(;++t<e.length;)Dl(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":ub(n)}function ub(e){Dl(e);const t=e.codePointAt(0)===47;let n=cb(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function cb(e,t){let n="",r=0,i=-1,l=0,o=-1,a,s;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return n}function Dl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const db={cwd:fb};function fb(){return"/"}function $u(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function pb(e){if(typeof e=="string")e=new URL(e);else if(!$u(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 hb(e)}function hb(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const _s=["history","path","basename","stem","extname","dirname"];class Py{constructor(t){let n;t?$u(t)?n={path:t}:typeof t=="string"||mb(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":db.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<_s.length;){const l=_s[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)_s.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?rn.basename(this.path):void 0}set basename(t){bs(t,"basename"),Es(t,"basename"),this.path=rn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?rn.dirname(this.path):void 0}set dirname(t){jp(this.basename,"dirname"),this.path=rn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?rn.extname(this.path):void 0}set extname(t){if(Es(t,"extname"),jp(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=rn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){$u(t)&&(t=pb(t)),bs(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?rn.basename(this.path,this.extname):void 0}set stem(t){bs(t,"stem"),Es(t,"stem"),this.path=rn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Ze(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Es(e,t){if(e&&e.includes(rn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+rn.sep+"`")}function bs(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function jp(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function mb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const gb=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},yb={}.hasOwnProperty;class yd extends gb{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=rb()}copy(){const t=new yd;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Cs(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Rs("data",this.frozen),this.namespace[t]=n,this):yb.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Rs("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[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=so(t),r=this.parser||this.Parser;return Ns("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ns("process",this.parser||this.Parser),Ts("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const a=so(t),s=r.parse(a);r.run(s,a,function(c,d,p){if(c||!d||!p)return u(c);const f=d,x=r.stringify(f,p);wb(x)?p.value=x:p.result=x,u(c,p)});function u(c,d){c||!d?o(c):l?l(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Ns("processSync",this.parser||this.Parser),Ts("processSync",this.compiler||this.Compiler),this.process(t,i),Mp("processSync","process",n),r;function i(l,o){n=!0,Rp(l),r=o}}run(t,n,r){zp(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const s=so(n);i.run(t,s,u);function u(c,d,p){const f=d||t;c?a(c):o?o(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),Mp("runSync","run",r),i;function l(o,a){Rp(o),i=a,r=!0}}stringify(t,n){this.freeze();const r=so(n),i=this.compiler||this.Compiler;return Ts("stringify",i),zp(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Rs("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;s(c,d)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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");a(u.plugins),u.settings&&(i.settings=Cs(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];l(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,c){let d=-1,p=-1;for(;++d<r.length;)if(r[d][0]===u){p=d;break}if(p===-1)r.push([u,...c]);else if(c.length>0){let[f,...x]=c;const y=r[p][1];Fu(y)&&Fu(f)&&(f=Cs(!0,y,f)),r[p]=[u,f,...x]}}}}const vb=new yd().freeze();function Ns(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ts(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Rs(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 zp(e){if(!Fu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Mp(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function so(e){return xb(e)?e:new Py(e)}function xb(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wb(e){return typeof e=="string"||kb(e)}function kb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Sb="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Bp=[],Fp={allowDangerousHtml:!0},Cb=/^(https?|ircs?|mailto|xmpp)$/i,_b=[{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 Eb(e){const t=bb(e),n=Nb(e);return Tb(t.runSync(t.parse(n),n),e)}function bb(e){const t=e.rehypePlugins||Bp,n=e.remarkPlugins||Bp,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Fp}:Fp;return vb().use(o2).use(n).use(tb,r).use(t)}function Nb(e){const t=e.children||"",n=new Py;return typeof t=="string"&&(n.value=t),n}function Tb(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||Rb;for(const c of _b)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+Sb+c.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Ry(e,u),BC(e,{Fragment:w.Fragment,components:i,ignoreInvalidStyle:!0,jsx:w.jsx,jsxs:w.jsxs,passKeys:!0,passNode:!0});function u(c,d,p){if(c.type==="raw"&&p&&typeof d=="number")return o?p.children.splice(d,1):p.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let f;for(f in ws)if(Object.hasOwn(ws,f)&&Object.hasOwn(c.properties,f)){const x=c.properties[f],y=ws[f];(y===null||y.includes(c.tagName))&&(c.properties[f]=s(String(x||""),f,c))}}if(c.type==="element"){let f=n?!n.includes(c.tagName):l?l.includes(c.tagName):!1;if(!f&&r&&typeof d=="number"&&(f=!r(c,d,p)),f&&p&&typeof d=="number")return a&&c.children?p.children.splice(d,1,...c.children):p.children.splice(d,1),d}}}function Rb(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Cb.test(e.slice(0,t))?e:""}const Ib="_overlay_x7g1n_1",Pb="_fadeIn_x7g1n_1",Db="_modal_x7g1n_47",Lb="_slideIn_x7g1n_1",Ab="_content_x7g1n_75",Ob="_header_x7g1n_109",jb="_meta_x7g1n_127",zb="_statusBadge_x7g1n_151",Mb="_processing_x7g1n_175",Bb="_done_x7g1n_193",Fb="_blocked_x7g1n_211",$b="_needsApproval_x7g1n_229",Ub="_costBadge_x7g1n_247",Hb="_columnTag_x7g1n_267",Vb="_closeBtn_x7g1n_287",Wb="_headerRight_x7g1n_319",qb="_sessionBtn_x7g1n_331",Kb="_body_x7g1n_373",Qb="_titleInput_x7g1n_385",Yb="_descInput_x7g1n_433",Xb="_section_x7g1n_481",Gb="_sectionLabel_x7g1n_491",Jb="_priorities_x7g1n_511",Zb="_priorityBtn_x7g1n_523",eN="_selected_x7g1n_553",tN="_footer_x7g1n_565",nN="_footerActions_x7g1n_583",rN="_deleteBtn_x7g1n_593",iN="_cancelBtn_x7g1n_625",lN="_saveBtn_x7g1n_653",oN="_commentsSection_x7g1n_691",aN="_commentList_x7g1n_707",sN="_comment_x7g1n_691",uN="_commentHeader_x7g1n_739",cN="_commentAuthor_x7g1n_755",dN="_botIcon_x7g1n_771",fN="_commentDate_x7g1n_779",pN="_commentContent_x7g1n_787",hN="_noComments_x7g1n_895",mN="_addComment_x7g1n_911",gN="_commentInput_x7g1n_923",yN="_sendBtn_x7g1n_955",vN="_agentHistoryList_x7g1n_1001",xN="_historyHeader_x7g1n_1015",wN="_historyTotalCost_x7g1n_1037",kN="_historyItem_x7g1n_1057",SN="_historyMain_x7g1n_1077",CN="_historyDetails_x7g1n_1089",_N="_historyStatusAndCost_x7g1n_1101",EN="_historyCol_x7g1n_1115",bN="_historyStatus_x7g1n_1101",NN="_needs_approval_x7g1n_1175",TN="_historyCost_x7g1n_1185",RN="_historyLinks_x7g1n_1199",IN="_historyLink_x7g1n_1199",PN="_historyError_x7g1n_1247",U={overlay:Ib,fadeIn:Pb,modal:Db,slideIn:Lb,content:Ab,header:Ob,meta:jb,statusBadge:zb,processing:Mb,done:Bb,blocked:Fb,needsApproval:$b,costBadge:Ub,columnTag:Hb,closeBtn:Vb,headerRight:Wb,sessionBtn:qb,body:Kb,titleInput:Qb,descInput:Yb,section:Xb,sectionLabel:Gb,priorities:Jb,priorityBtn:Zb,selected:eN,footer:tN,footerActions:nN,deleteBtn:rN,cancelBtn:iN,saveBtn:lN,commentsSection:oN,commentList:aN,comment:sN,commentHeader:uN,commentAuthor:cN,botIcon:dN,commentDate:fN,commentContent:pN,noComments:hN,addComment:mN,commentInput:gN,sendBtn:yN,agentHistoryList:vN,historyHeader:xN,historyTotalCost:wN,historyItem:kN,historyMain:SN,historyDetails:CN,historyStatusAndCost:_N,historyCol:EN,historyStatus:bN,needs_approval:NN,historyCost:TN,historyLinks:RN,historyLink:IN,historyError:PN};function Dy({ticket:e,columnId:t,onClose:n}){const{state:r,updateTicket:i,deleteTicket:l,createTicket:o,retryTicket:a}=hr(),[s,u]=g.useState((e==null?void 0:e.title)??""),[c,d]=g.useState((e==null?void 0:e.description)??""),[p,f]=g.useState((e==null?void 0:e.priority)??"medium"),[x,y]=g.useState(!1),[_,h]=g.useState(!1),[m,v]=g.useState(""),{state:{comments:N},loadComments:b,addComment:C}=hr(),E=e?N[e.id]??[]:[];g.useEffect(()=>{e&&b(e.board_id,e.id)},[e,b]),g.useEffect(()=>{y(s!==((e==null?void 0:e.title)??"")||c!==((e==null?void 0:e.description)??"")||p!==((e==null?void 0:e.priority)??"medium"))},[s,c,p,e]),g.useEffect(()=>{function R(M){M.key==="Escape"&&!_&&n()}return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[n,_]);async function T(){s.trim()&&(e?await i(e.board_id,e.id,{title:s.trim(),description:c,priority:p}):t&&r.activeBoardId&&await o(r.activeBoardId,{columnId:t,title:s.trim(),description:c,priority:p}),n())}async function P(){e&&(await l(e.board_id,e.id),n())}async function D(){!m.trim()||!e||(await C(e.board_id,e.id,m.trim(),"user"),v(""))}const L=r.columns.find(R=>R.id===((e==null?void 0:e.column_id)??t));return w.jsx("div",{className:U.overlay,onClick:n,children:w.jsxs("div",{className:U.modal,onClick:R=>R.stopPropagation(),children:[w.jsxs("div",{className:U.header,children:[w.jsxs("div",{className:U.meta,children:[L&&w.jsx("span",{className:U.columnTag,children:L.name}),w.jsx(Sg,{priority:p,size:"md"}),(()=>{if(!(e!=null&&e.agent_sessions)||e.agent_sessions.length===0)return null;let R=null;for(let H=e.agent_sessions.length-1;H>=0;H--)if(e.agent_sessions[H].column_id===e.column_id){R=e.agent_sessions[H];break}if(!R)return null;const M=R;if(M.status==="processing"){const H=aa(M.agent_type);return w.jsxs("div",{className:`${U.statusBadge} ${U.processing}`,children:[w.jsx("span",{className:U.pulse,children:H.icon}),H.processingText]},M.started_at)}return M.status==="done"?w.jsxs("div",{className:`${U.statusBadge} ${U.done}`,children:[w.jsx(xg,{size:12}),W("agent.status.done"),M.total_cost!==void 0&&M.total_cost>0&&w.jsxs("span",{className:U.costBadge,children:["$",M.total_cost.toFixed(2)]})]},M.started_at):M.status==="blocked"?w.jsxs("div",{className:`${U.statusBadge} ${U.blocked}`,title:"Agent execution failed or blocked",children:[w.jsx("span",{style:{color:"white"},children:"⚠️"}),"Error"]},M.started_at):M.status==="needs_approval"?w.jsxs("div",{className:`${U.statusBadge} ${U.needsApproval}`,title:"Agent requires user permission",children:[w.jsx("span",{style:{color:"#f59e0b"},children:"✋"}),"Needs Approval"]},M.started_at):null})()]}),w.jsxs("div",{className:U.headerRight,children:[(()=>{if(!(e!=null&&e.agent_sessions)||e.agent_sessions.length===0)return null;let R=null;for(let $=e.agent_sessions.length-1;$>=0;$--)if(e.agent_sessions[$].column_id===e.column_id){R=e.agent_sessions[$];break}let M=null;for(let $=e.agent_sessions.length-1;$>=0;$--)if(e.agent_sessions[$].pr_url){M=e.agent_sessions[$];break}if(!R&&!M)return null;const H=R;return w.jsxs(ce.Fragment,{children:[(H==null?void 0:H.status)==="blocked"&&w.jsxs("button",{className:U.sessionBtn,onClick:()=>a(e.board_id,e.id),title:"Retry Agent Execution",children:[w.jsx(d0,{size:14}),w.jsx("span",{children:"Retry Agent"})]}),(H==null?void 0:H.url)&&w.jsxs("a",{href:H.url,target:"_blank",rel:"noopener noreferrer",className:U.sessionBtn,title:"Open Agent Session",children:[w.jsx(ea,{size:14}),w.jsx("span",{children:"Agent session"})]}),(M==null?void 0:M.pr_url)&&w.jsxs("a",{href:M.pr_url,target:"_blank",rel:"noopener noreferrer",className:U.sessionBtn,style:{backgroundColor:"#2da44e",color:"white",borderColor:"#2da44e"},title:"View Code Review",children:[w.jsx(bu,{size:14}),w.jsx("span",{children:"PR"})]})]},(H==null?void 0:H.started_at)||(M==null?void 0:M.started_at))})(),w.jsx("button",{className:U.closeBtn,onClick:n,children:w.jsx(Kc,{size:16})})]})]}),w.jsxs("div",{className:U.content,children:[w.jsxs("div",{className:U.body,children:[w.jsx("textarea",{className:U.titleInput,value:s,onChange:R=>{u(R.target.value)},placeholder:W("ticket.title_placeholder"),rows:1}),w.jsx("textarea",{className:U.descInput,value:c,onChange:R=>d(R.target.value),placeholder:W("ticket.description_placeholder"),rows:6})]}),w.jsxs("div",{className:U.section,children:[w.jsx("span",{className:U.sectionLabel,children:W("ticket.priority")}),w.jsx("div",{className:U.priorities,children:gg.map(R=>w.jsx("button",{className:`${U.priorityBtn} ${p===R.value?U.selected:""}`,style:{"--priority-color":R.colorVar},onClick:()=>f(R.value),children:W(R.labelKey)},R.value))})]}),e&&e.agent_sessions&&e.agent_sessions.length>0&&w.jsxs("div",{className:U.section,children:[w.jsxs("div",{className:U.historyHeader,children:[w.jsx("span",{className:U.sectionLabel,children:"Agent History"}),w.jsxs("span",{className:U.historyTotalCost,children:["Total: $",e.agent_sessions.reduce((R,M)=>R+(M.total_cost||0),0).toFixed(2)]})]}),w.jsx("div",{className:U.agentHistoryList,children:e.agent_sessions.map((R,M)=>{var $;const H=(($=r.columns.find(oe=>oe.id===R.column_id))==null?void 0:$.name)||"Unknown Step";return w.jsxs("div",{className:U.historyItem,children:[w.jsxs("div",{className:U.historyMain,children:[w.jsxs("div",{className:U.historyDetails,children:[w.jsx("span",{className:U.historyCol,children:H}),w.jsxs("div",{className:U.historyLinks,children:[(R.url||R.port)&&w.jsxs("a",{href:R.url||`http://127.0.0.1:${R.port}`,target:"_blank",rel:"noopener noreferrer",className:U.historyLink,children:["Session Link ",w.jsx(ea,{size:12})]}),R.pr_url&&w.jsxs("a",{href:R.pr_url,target:"_blank",rel:"noopener noreferrer",className:U.historyLink,style:{color:"#2da44e"},children:["Code Review ",w.jsx(bu,{size:12})]})]})]}),w.jsxs("div",{className:U.historyStatusAndCost,children:[w.jsxs("span",{className:`${U.historyStatus} ${U[R.status]||""}`,children:[w.jsx("span",{style:{marginRight:"4px",display:"inline-flex",verticalAlign:"middle"},children:aa(R.agent_type).icon}),R.status==="needs_approval"?"Needs Approval":R.status]}),R.total_cost!==void 0&&R.total_cost>0&&w.jsxs("span",{className:U.historyCost,children:["$",R.total_cost.toFixed(2)]})]})]}),R.error_message&&w.jsx("div",{className:U.historyError,children:R.error_message})]},M)})})]}),e&&w.jsxs("div",{className:U.commentsSection,children:[w.jsxs("div",{className:U.sectionLabel,style:{display:"flex",alignItems:"center",gap:"6px"},children:[w.jsx(s0,{size:14}),W("ticket.comments")]}),w.jsxs("div",{className:U.commentList,children:[E.map(R=>w.jsxs("div",{className:U.comment,children:[w.jsxs("div",{className:U.commentHeader,children:[w.jsx("span",{className:U.commentAuthor,children:R.author==="user"?"You":w.jsxs(w.Fragment,{children:[w.jsx("span",{style:{marginRight:"4px",display:"inline-flex",verticalAlign:"middle"},children:US(R.author).icon}),R.author]})}),w.jsx("span",{className:U.commentDate,children:new Date(R.created_at).toLocaleString()})]}),w.jsx("div",{className:U.commentContent,children:w.jsx(Eb,{children:R.content})})]},R.id)),E.length===0&&w.jsx("div",{className:U.noComments,children:W("ticket.no_comments")})]}),w.jsxs("div",{className:U.addComment,children:[w.jsx("input",{type:"text",className:U.commentInput,value:m,onChange:R=>v(R.target.value),onKeyDown:R=>R.key==="Enter"&&D(),placeholder:W("ticket.add_comment_placeholder")}),w.jsx("button",{className:U.sendBtn,onClick:D,disabled:!m.trim(),children:w.jsx(f0,{size:14})})]})]})]}),w.jsxs("div",{className:U.footer,children:[e?w.jsxs("button",{className:U.deleteBtn,onClick:()=>h(!0),children:[w.jsx(qc,{size:14}),W("ticket.delete")]}):w.jsx("div",{}),w.jsxs("div",{className:U.footerActions,children:[w.jsx("button",{className:U.cancelBtn,onClick:n,children:W("action.cancel")}),w.jsx("button",{className:U.saveBtn,onClick:T,disabled:!x||!s.trim(),children:W("action.save")})]})]}),_&&w.jsx(Qc,{message:W("confirm.delete_ticket"),confirmLabel:W("action.confirm_delete"),onConfirm:P,onCancel:()=>h(!1)})]})})}const DN="_overlay_9jvqp_1",LN="_modal_9jvqp_47",AN="_header_9jvqp_91",ON="_closeBtn_9jvqp_111",jN="_body_9jvqp_143",zN="_formGroup_9jvqp_157",MN="_label_9jvqp_169",BN="_select_9jvqp_181",FN="_input_9jvqp_183",$N="_footer_9jvqp_217",UN="_cancelBtn_9jvqp_235",HN="_saveBtn_9jvqp_263",ve={overlay:DN,modal:LN,header:AN,closeBtn:ON,body:jN,formGroup:zN,label:MN,select:BN,input:FN,footer:$N,cancelBtn:UN,saveBtn:HN};function VN({column:e,boardId:t,onClose:n}){const{state:{columnConfigs:r,columns:i},updateColumnConfig:l,deleteColumnConfig:o}=hr(),a=r.find(b=>b.column_id===e.id),[s,u]=g.useState((a==null?void 0:a.agent_type)??"none"),[c,d]=g.useState((a==null?void 0:a.agent_model)??"gpt-4o"),[p,f]=g.useState((a==null?void 0:a.max_agents)??1),[x,y]=g.useState((a==null?void 0:a.on_finish_column_id)??""),[_,h]=g.useState((a==null?void 0:a.on_reject_column_id)??""),[m,v]=g.useState(!1);g.useEffect(()=>{v(s!==((a==null?void 0:a.agent_type)??"none")||c!==((a==null?void 0:a.agent_model)??"gpt-4o")||p!==((a==null?void 0:a.max_agents)??1)||x!==((a==null?void 0:a.on_finish_column_id)??"")||_!==((a==null?void 0:a.on_reject_column_id)??""))},[s,c,p,x,_,a]),g.useEffect(()=>{function b(C){C.key==="Escape"&&n()}return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[n]);async function N(){s==="none"?await o(t,e.id):await l(t,e.id,{agentType:s,agentModel:s==="opencode"?c:null,maxAgents:p,onFinishColumnId:x||null,onRejectColumnId:s==="code_review"&&_||null}),n()}return w.jsx("div",{className:ve.overlay,onClick:n,children:w.jsxs("div",{className:ve.modal,onClick:b=>b.stopPropagation(),children:[w.jsxs("div",{className:ve.header,children:[w.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[w.jsx(Wc,{size:18}),W("column.settings")]}),w.jsx("button",{className:ve.closeBtn,onClick:n,children:w.jsx(Kc,{size:16})})]}),w.jsxs("div",{className:ve.body,children:[w.jsxs("div",{className:ve.formGroup,children:[w.jsx("label",{className:ve.label,children:W("agent.type")}),w.jsxs("select",{className:ve.select,value:s,onChange:b=>u(b.target.value),children:[w.jsx("option",{value:"none",children:W("agent.none")}),w.jsx("option",{value:"dummy",children:W("agent.dummy")}),w.jsx("option",{value:"opencode",children:"OpenCode Agent"}),w.jsx("option",{value:"code_review",children:"Code Review Agent"})]})]}),(s==="opencode"||s==="code_review")&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:ve.formGroup,children:[w.jsx("label",{className:ve.label,children:"OpenCode Model"}),w.jsx("input",{type:"text",className:ve.input,value:c,onChange:b=>d(b.target.value),placeholder:"e.g. gpt-4o, claude-3-haiku"})]}),w.jsxs("div",{className:ve.formGroup,children:[w.jsx("label",{className:ve.label,children:"Max Concurrent Agents"}),w.jsx("input",{type:"number",className:ve.input,value:p,min:1,max:10,onChange:b=>f(parseInt(b.target.value)||1)})]})]}),s!=="none"&&w.jsxs("div",{className:ve.formGroup,children:[w.jsx("label",{className:ve.label,children:"On Finish Move To"}),w.jsxs("select",{className:ve.select,value:x,onChange:b=>y(b.target.value),children:[w.jsx("option",{value:"",children:W("agent.do_nothing")}),i.filter(b=>b.id!==e.id).map(b=>w.jsxs("option",{value:b.id,children:[W("agent.move_to")," ",b.name]},b.id))]})]}),s==="code_review"&&w.jsxs("div",{className:ve.formGroup,children:[w.jsx("label",{className:ve.label,children:"On Reject Move To"}),w.jsxs("select",{className:ve.select,value:_,onChange:b=>h(b.target.value),children:[w.jsx("option",{value:"",children:W("agent.do_nothing")}),i.filter(b=>b.id!==e.id).map(b=>w.jsxs("option",{value:b.id,children:[W("agent.move_to")," ",b.name]},b.id))]})]})]}),w.jsxs("div",{className:ve.footer,children:[w.jsx("button",{className:ve.cancelBtn,onClick:n,children:W("action.cancel")}),w.jsx("button",{className:ve.saveBtn,onClick:N,disabled:!m,children:W("action.save")})]})]})})}function Ly({defaultValue:e,placeholder:t,onSave:n,onCancel:r,autoFocus:i=!0,className:l}){const o=g.useRef(null);g.useEffect(()=>{var s,u;i&&((s=o.current)==null||s.focus()),(u=o.current)==null||u.select()},[i]);function a(s){var u;s.key==="Enter"&&(s.preventDefault(),n(((u=o.current)==null?void 0:u.value)??"")),s.key==="Escape"&&(s.preventDefault(),r())}return w.jsx("input",{ref:o,className:l,defaultValue:e,placeholder:t,onKeyDown:a,onBlur:()=>{var s;return n(((s=o.current)==null?void 0:s.value)??"")}})}const WN="_column_1sqby_1",qN="_header_1sqby_25",KN="_headerRow_1sqby_39",QN="_name_1sqby_51",YN="_count_1sqby_73",XN="_headerActions_1sqby_91",GN="_iconBtn_1sqby_101",JN="_headerInput_1sqby_133",ZN="_menu_1sqby_155",eT="_menuItem_1sqby_207",tT="_danger_1sqby_241",nT="_body_1sqby_251",rT="_empty_1sqby_281",iT="_addBtn_1sqby_323",lT="_botIcon_1sqby_361",Ue={column:WN,header:qN,headerRow:KN,name:QN,count:YN,headerActions:XN,iconBtn:GN,headerInput:JN,menu:ZN,menuItem:eT,danger:tT,body:nT,empty:rT,addBtn:iT,botIcon:lT};function oT({column:e,tickets:t,boardId:n}){const{state:{columnConfigs:r},updateColumn:i,deleteColumn:l}=hr(),[o,a]=g.useState(!1),[s,u]=g.useState(!1),[c,d]=g.useState(!1),[p,f]=g.useState(!1),[x,y]=g.useState(!1),_=r.find(v=>v.column_id===e.id),{setNodeRef:h}=Hg({id:e.id,data:{type:"column",column:e}});async function m(){f(!0)}return w.jsxs("div",{className:Ue.column,children:[w.jsxs("div",{className:Ue.header,children:[o?w.jsx(Ly,{defaultValue:e.name,onSave:async v=>{v.trim()&&await i(n,e.id,v.trim()),a(!1)},onCancel:()=>a(!1),className:Ue.headerInput}):w.jsxs("div",{className:Ue.headerRow,children:[w.jsx("span",{className:Ue.name,children:e.name}),w.jsx("div",{className:Ue.count,children:t.length}),w.jsxs("div",{className:Ue.headerActions,children:[_&&w.jsx("div",{title:`${W("agent.type")}: ${_.agent_type}`,children:w.jsx(vg,{size:14,className:Ue.botIcon})}),w.jsx("button",{className:Ue.iconBtn,onClick:()=>y(v=>!v),children:w.jsx(Wc,{size:14})}),w.jsx("button",{className:Ue.iconBtn,onClick:()=>u(v=>!v),children:w.jsx(c0,{size:14})})]})]}),x&&w.jsx(VN,{column:e,boardId:n,onClose:()=>y(!1)}),s&&!o&&w.jsxs("div",{className:Ue.menu,onMouseLeave:()=>u(!1),children:[w.jsxs("button",{className:Ue.menuItem,onClick:()=>{a(!0),u(!1)},children:[w.jsx(kg,{size:13})," ",W("column.rename")]}),w.jsxs("button",{className:`${Ue.menuItem} ${Ue.danger}`,onClick:()=>{d(!0),u(!1)},children:[w.jsx(qc,{size:13})," ",W("column.delete")]})]})]}),w.jsxs("div",{ref:h,className:Ue.body,children:[w.jsx(LS,{items:t.map(v=>v.id),strategy:PS,children:t.map(v=>w.jsx(Yg,{ticket:v},v.id))}),t.length===0&&w.jsx("div",{className:Ue.empty,children:W("column.empty")})]}),w.jsxs("button",{className:Ue.addBtn,onClick:m,children:[w.jsx(Vc,{size:13}),W("column.add_ticket")]}),p&&w.jsx(Dy,{columnId:e.id,onClose:()=>f(!1)}),c&&w.jsx(Qc,{message:W("confirm.delete_column"),confirmLabel:W("action.confirm_delete"),onConfirm:async()=>{await l(n,e.id),d(!1)},onCancel:()=>d(!1)})]})}const aT="_wrapper_1i3ou_1",sT="_topbar_1i3ou_15",uT="_boardName_1i3ou_35",cT="_spacer_1i3ou_49",dT="_configBtn_1i3ou_57",fT="_columnsArea_1i3ou_91",pT="_addColBtn_1i3ou_111",hT="_newColumn_1i3ou_159",mT="_newColumnInput_1i3ou_171",gT="_emptyView_1i3ou_195",yT="_emptyTitle_1i3ou_215",vT="_emptySubtitle_1i3ou_227",xT="_loadingColumns_1i3ou_245",wT="_skeleton_1i3ou_255",ot={wrapper:aT,topbar:sT,boardName:uT,spacer:cT,configBtn:dT,columnsArea:fT,addColBtn:pT,newColumn:hT,newColumnInput:mT,emptyView:gT,emptyTitle:yT,emptySubtitle:vT,loadingColumns:xT,skeleton:wT};function Is(){const{boardId:e,ticketId:t}=Bc(),n=El(),{state:r,createColumn:i,moveTicket:l,selectBoard:o,loadBoardData:a,updateBoard:s}=hr(),{activeBoardId:u,columns:c,tickets:d,loading:p,boards:f}=r,[x,y]=g.useState(!1),[_,h]=g.useState(!1),[m,v]=g.useState(null),[N,b]=g.useState(null),C=g.useRef(null),E=ck(uk(ed,{activationConstraint:{distance:5}})),T=m??d;if(g.useEffect(()=>{e&&e!==u&&(o(e),a(e))},[e,u,o,a]),!e)return w.jsxs("div",{className:ot.emptyView,children:[w.jsx(wg,{size:40,strokeWidth:1}),w.jsx("h2",{className:ot.emptyTitle,children:W("board.empty_title")}),w.jsx("p",{className:ot.emptySubtitle,children:W("board.empty_subtitle")})]});const P=f.find(V=>V.id===(e||u)),D=[...c].sort((V,A)=>V.position-A.position),L=t?d.find(V=>V.id===t):null;function R(V){return T.filter(A=>A.column_id===V).sort((A,B)=>A.position-B.position)}function M(V){const{active:A}=V,B=A.data.current;(B==null?void 0:B.type)==="ticket"&&b(B.ticket),C.current=null}function H(V){const{active:A,over:B}=V;if(!B)return;const k=A.id,X=B.id,Q=A.data.current;if((Q==null?void 0:Q.type)!=="ticket")return;const S=B.data.current;let ee,se=-1;(S==null?void 0:S.type)==="column"?ee=X:(S==null?void 0:S.type)==="ticket"&&S.ticket?ee=S.ticket.column_id:ee=X;const G=m??d,De=G.find(q=>q.id===k);if(!De)return;const Ce=De.column_id,Ne=G.filter(q=>q.column_id===ee&&q.id!==k).sort((q,Te)=>q.position-Te.position);if((S==null?void 0:S.type)==="ticket"?se=Ne.findIndex(q=>q.id===X):se=Ne.length,se===-1&&(se=Ne.length),Ce!==ee)v(()=>{const q=G.filter(me=>me.id!==k),Te={...De,column_id:ee},_e=q.filter(me=>me.column_id===ee).sort((me,Fe)=>me.position-Fe.position);_e.splice(se,0,Te);const Ee=q.filter(me=>me.column_id!==ee);return _e.forEach((me,Fe)=>{me.position=Fe}),[...Ee,..._e]});else{const q=G.filter(Ee=>Ee.column_id===Ce).sort((Ee,me)=>Ee.position-me.position),Te=q.findIndex(Ee=>Ee.id===k),_e=q.findIndex(Ee=>Ee.id===X);Te!==-1&&_e!==-1&&Te!==_e?(v(()=>{const Ee=nd(q,Te,_e);return Ee.forEach((Fe,Mt)=>{Fe.position=Mt}),[...G.filter(Fe=>Fe.column_id!==Ce),...Ee]}),se=_e):Te!==-1&&(se=Te)}C.current={columnId:ee,index:se}}async function $(V){const{active:A,over:B}=V,k=C.current;if(b(null),C.current=null,!B||!k){v(null);return}const X=A.id;await l(e,X,k.columnId,k.index),setTimeout(()=>v(null),0)}async function oe(V){if(!V.trim()){y(!1);return}await i(e,V.trim()),y(!1)}return w.jsxs("div",{className:ot.wrapper,children:[w.jsxs("div",{className:ot.topbar,children:[w.jsx("h1",{className:ot.boardName,children:(P==null?void 0:P.name)??""}),w.jsx("div",{className:ot.spacer}),w.jsx("button",{className:ot.configBtn,onClick:()=>h(!0),title:W("board.edit"),children:w.jsx(Wc,{size:18})})]}),w.jsxs(cS,{sensors:E,collisionDetection:gk,onDragStart:M,onDragOver:H,onDragEnd:$,children:[w.jsx("div",{className:ot.columnsArea,children:p&&!c.length?w.jsx("div",{className:ot.loadingColumns,children:[1,2,3].map(V=>w.jsx("div",{className:ot.skeleton},V))}):w.jsxs(w.Fragment,{children:[D.map(V=>w.jsx(oT,{column:V,tickets:R(V.id),boardId:e},V.id)),x?w.jsx("div",{className:ot.newColumn,children:w.jsx(Ly,{defaultValue:"",placeholder:W("column.rename_placeholder"),onSave:oe,onCancel:()=>y(!1),className:ot.newColumnInput})}):w.jsxs("button",{className:ot.addColBtn,onClick:()=>y(!0),children:[w.jsx(Vc,{size:15}),W("column.add")]})]})}),w.jsx(NS,{dropAnimation:{sideEffects:Vg({styles:{active:{opacity:"0.4"}}})},children:N?w.jsx("div",{style:{width:"var(--column-width)"},children:w.jsx(Yg,{ticket:N,isOverlay:!0})}):null})]}),L&&w.jsx(Dy,{ticket:L,onClose:()=>n(`/boards/${e}`)}),_&&P&&w.jsx(Nu,{board:P,onSave:async(V,A)=>{await s(P.id,V,A),h(!1)},onCancel:()=>h(!1)})]})}const kT="_switcher_vhltw_1",ST={switcher:kT};function CT(){const[e,t]=g.useState(()=>localStorage.getItem("theme")??"dark");g.useEffect(()=>{document.documentElement.setAttribute("data-theme",e),localStorage.setItem("theme",e)},[e]);function n(){t(r=>r==="dark"?"light":"dark")}return w.jsxs("button",{className:ST.switcher,onClick:n,title:W(e==="dark"?"theme.light":"theme.dark"),children:[e==="dark"?w.jsx(p0,{size:14}):w.jsx(u0,{size:14}),w.jsx("span",{children:W(e==="dark"?"theme.light":"theme.dark")})]})}const _T="_shell_8hnwn_1",ET="_main_8hnwn_15",bT="_topBar_8hnwn_31",NT="_spacer_8hnwn_51",TT="_content_8hnwn_59",Pi={shell:_T,main:ET,topBar:bT,spacer:NT,content:TT};function RT(){const{loadBoards:e}=hr();return g.useEffect(()=>{const t=localStorage.getItem("theme")??"dark";document.documentElement.setAttribute("data-theme",t),e()},[e]),w.jsxs("div",{className:Pi.shell,children:[w.jsx(P0,{}),w.jsxs("main",{className:Pi.main,children:[w.jsxs("header",{className:Pi.topBar,children:[w.jsx("div",{className:Pi.spacer}),w.jsx(CT,{})]}),w.jsx("div",{className:Pi.content,children:w.jsxs(lw,{children:[w.jsx(ji,{path:"/",element:w.jsx(Is,{})}),w.jsx(ji,{path:"/boards/:boardId",element:w.jsx(Is,{})}),w.jsx(ji,{path:"/boards/:boardId/tickets/:ticketId",element:w.jsx(Is,{})}),w.jsx(ji,{path:"*",element:w.jsx(rw,{to:"/",replace:!0})})]})})]})]})}function IT(){return w.jsx(Uw,{children:w.jsx(Rw,{children:w.jsx(RT,{})})})}Ps.createRoot(document.getElementById("root")).render(w.jsx(ce.StrictMode,{children:w.jsx(IT,{})}));
|