@m0xoo/openboard 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -0
- package/bin/openboard.js +93 -0
- package/package.json +33 -0
- package/packages/client/dist/assets/index-CAahrBYB.css +1 -0
- package/packages/client/dist/assets/index-CvvU24UX.js +145 -0
- package/packages/client/dist/index.html +15 -0
- package/packages/server/dist/agents/agent-queue.js +175 -0
- package/packages/server/dist/agents/agent-runner.js +18 -0
- package/packages/server/dist/agents/agent.interface.js +1 -0
- package/packages/server/dist/agents/codereview.agent.js +132 -0
- package/packages/server/dist/agents/dummy.agent.js +49 -0
- package/packages/server/dist/agents/opencode.agent.js +214 -0
- package/packages/server/dist/agents/opencode.events.js +398 -0
- package/packages/server/dist/db/database.js +159 -0
- package/packages/server/dist/index.js +66 -0
- package/packages/server/dist/repositories/board.repository.js +56 -0
- package/packages/server/dist/repositories/column-config.repository.js +30 -0
- package/packages/server/dist/repositories/column.repository.js +36 -0
- package/packages/server/dist/repositories/comment.repository.js +35 -0
- package/packages/server/dist/repositories/ticket.repository.js +158 -0
- package/packages/server/dist/routes/boards.router.js +33 -0
- package/packages/server/dist/routes/column-config.router.js +42 -0
- package/packages/server/dist/routes/columns.router.js +45 -0
- package/packages/server/dist/routes/tickets.router.js +88 -0
- package/packages/server/dist/sse.js +43 -0
- package/packages/server/dist/types.js +2 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Ih(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pd={exports:{}},si={},hd={exports:{}},U={};/**
|
|
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 Do=Symbol.for("react.element"),Oh=Symbol.for("react.portal"),Mh=Symbol.for("react.fragment"),Ah=Symbol.for("react.strict_mode"),zh=Symbol.for("react.profiler"),Bh=Symbol.for("react.provider"),$h=Symbol.for("react.context"),bh=Symbol.for("react.forward_ref"),Fh=Symbol.for("react.suspense"),Uh=Symbol.for("react.memo"),Hh=Symbol.for("react.lazy"),Mu=Symbol.iterator;function Vh(e){return e===null||typeof e!="object"?null:(e=Mu&&e[Mu]||e["@@iterator"],typeof e=="function"?e:null)}var md={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vd=Object.assign,yd={};function gr(e,t,n){this.props=e,this.context=t,this.refs=yd,this.updater=n||md}gr.prototype.isReactComponent={};gr.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")};gr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gd(){}gd.prototype=gr.prototype;function pa(e,t,n){this.props=e,this.context=t,this.refs=yd,this.updater=n||md}var ha=pa.prototype=new gd;ha.constructor=pa;vd(ha,gr.prototype);ha.isPureReactComponent=!0;var Au=Array.isArray,wd=Object.prototype.hasOwnProperty,ma={current:null},_d={key:!0,ref:!0,__self:!0,__source:!0};function xd(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)wd.call(t,r)&&!_d.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:Do,type:e,key:l,ref:i,props:o,_owner:ma.current}}function Wh(e,t){return{$$typeof:Do,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function va(e){return typeof e=="object"&&e!==null&&e.$$typeof===Do}function Kh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var zu=/\/+/g;function Oi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Kh(""+e.key):t.toString(36)}function pl(e,t,n,r,o){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Do:case Oh:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Oi(i,0):r,Au(o)?(n="",e!=null&&(n=e.replace(zu,"$&/")+"/"),pl(o,t,n,"",function(u){return u})):o!=null&&(va(o)&&(o=Wh(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(zu,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Au(e))for(var s=0;s<e.length;s++){l=e[s];var a=r+Oi(l,s);i+=pl(l,t,n,a,o)}else if(a=Vh(e),typeof a=="function")for(e=a.call(e),s=0;!(l=e.next()).done;)l=l.value,a=r+Oi(l,s++),i+=pl(l,t,n,a,o);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 i}function Ho(e,t,n){if(e==null)return e;var r=[],o=0;return pl(e,r,"","",function(l){return t.call(n,l,o++)}),r}function Qh(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 Ae={current:null},hl={transition:null},Yh={ReactCurrentDispatcher:Ae,ReactCurrentBatchConfig:hl,ReactCurrentOwner:ma};function Sd(){throw Error("act(...) is not supported in production builds of React.")}U.Children={map:Ho,forEach:function(e,t,n){Ho(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ho(e,function(){t++}),t},toArray:function(e){return Ho(e,function(t){return t})||[]},only:function(e){if(!va(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=gr;U.Fragment=Mh;U.Profiler=zh;U.PureComponent=pa;U.StrictMode=Ah;U.Suspense=Fh;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yh;U.act=Sd;U.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=vd({},e.props),o=e.key,l=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,i=ma.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)wd.call(t,a)&&!_d.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Do,type:e.type,key:o,ref:l,props:r,_owner:i}};U.createContext=function(e){return e={$$typeof:$h,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Bh,_context:e},e.Consumer=e};U.createElement=xd;U.createFactory=function(e){var t=xd.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:bh,render:e}};U.isValidElement=va;U.lazy=function(e){return{$$typeof:Hh,_payload:{_status:-1,_result:e},_init:Qh}};U.memo=function(e,t){return{$$typeof:Uh,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=hl.transition;hl.transition={};try{e()}finally{hl.transition=t}};U.unstable_act=Sd;U.useCallback=function(e,t){return Ae.current.useCallback(e,t)};U.useContext=function(e){return Ae.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return Ae.current.useDeferredValue(e)};U.useEffect=function(e,t){return Ae.current.useEffect(e,t)};U.useId=function(){return Ae.current.useId()};U.useImperativeHandle=function(e,t,n){return Ae.current.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return Ae.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return Ae.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return Ae.current.useMemo(e,t)};U.useReducer=function(e,t,n){return Ae.current.useReducer(e,t,n)};U.useRef=function(e){return Ae.current.useRef(e)};U.useState=function(e){return Ae.current.useState(e)};U.useSyncExternalStore=function(e,t,n){return Ae.current.useSyncExternalStore(e,t,n)};U.useTransition=function(){return Ae.current.useTransition()};U.version="18.3.1";hd.exports=U;var c=hd.exports;const G=Ih(c);/**
|
|
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 Xh=c,Gh=Symbol.for("react.element"),qh=Symbol.for("react.fragment"),Jh=Object.prototype.hasOwnProperty,Zh=Xh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,em={key:!0,ref:!0,__self:!0,__source:!0};function Cd(e,t,n){var r,o={},l=null,i=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Jh.call(t,r)&&!em.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Gh,type:e,key:l,ref:i,props:o,_owner:Zh.current}}si.Fragment=qh;si.jsx=Cd;si.jsxs=Cd;pd.exports=si;var y=pd.exports,hs={},Ed={exports:{}},nt={},kd={exports:{}},Nd={};/**
|
|
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(D,I){var A=D.length;D.push(I);e:for(;0<A;){var H=A-1>>>1,F=D[H];if(0<o(F,I))D[H]=I,D[A]=F,A=H;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var I=D[0],A=D.pop();if(A!==I){D[0]=A;e:for(var H=0,F=D.length,Y=F>>>1;H<Y;){var J=2*(H+1)-1,ye=D[J],X=J+1,Qe=D[X];if(0>o(ye,A))X<F&&0>o(Qe,ye)?(D[H]=Qe,D[X]=A,H=X):(D[H]=ye,D[J]=A,H=J);else if(X<F&&0>o(Qe,A))D[H]=Qe,D[X]=A,H=X;else break e}}return I}function o(D,I){var A=D.sortIndex-I.sortIndex;return A!==0?A:D.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var a=[],u=[],f=1,d=null,v=3,w=!1,_=!1,g=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(D){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=D)r(u),I.sortIndex=I.expirationTime,t(a,I);else break;I=n(u)}}function S(D){if(g=!1,m(D),!_)if(n(a)!==null)_=!0,lt(x);else{var I=n(u);I!==null&&$(S,I.startTime-D)}}function x(D,I){_=!1,g&&(g=!1,h(k),k=-1),w=!0;var A=v;try{for(m(I),d=n(a);d!==null&&(!(d.expirationTime>I)||D&&!z());){var H=d.callback;if(typeof H=="function"){d.callback=null,v=d.priorityLevel;var F=H(d.expirationTime<=I);I=e.unstable_now(),typeof F=="function"?d.callback=F:d===n(a)&&r(a),m(I)}else r(a);d=n(a)}if(d!==null)var Y=!0;else{var J=n(u);J!==null&&$(S,J.startTime-I),Y=!1}return Y}finally{d=null,v=A,w=!1}}var N=!1,C=null,k=-1,T=5,L=-1;function z(){return!(e.unstable_now()-L<T)}function j(){if(C!==null){var D=e.unstable_now();L=D;var I=!0;try{I=C(!0,D)}finally{I?b():(N=!1,C=null)}}else N=!1}var b;if(typeof p=="function")b=function(){p(j)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,ue=K.port2;K.port1.onmessage=j,b=function(){ue.postMessage(null)}}else b=function(){E(j,0)};function lt(D){C=D,N||(N=!0,b())}function $(D,I){k=E(function(){D(e.unstable_now())},I)}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(D){D.callback=null},e.unstable_continueExecution=function(){_||w||(_=!0,lt(x))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(D){switch(v){case 1:case 2:case 3:var I=3;break;default:I=v}var A=v;v=I;try{return D()}finally{v=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,I){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var A=v;v=D;try{return I()}finally{v=A}},e.unstable_scheduleCallback=function(D,I,A){var H=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?H+A:H):A=H,D){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=A+F,D={id:f++,callback:I,priorityLevel:D,startTime:A,expirationTime:F,sortIndex:-1},A>H?(D.sortIndex=A,t(u,D),n(a)===null&&D===n(u)&&(g?(h(k),k=-1):g=!0,$(S,A-H))):(D.sortIndex=F,t(a,D),_||w||(_=!0,lt(x))),D},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(D){var I=v;return function(){var A=v;v=I;try{return D.apply(this,arguments)}finally{v=A}}}})(Nd);kd.exports=Nd;var tm=kd.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 nm=c,tt=tm;function R(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 Rd=new Set,ao={};function An(e,t){dr(e,t),dr(e+"Capture",t)}function dr(e,t){for(ao[e]=t,e=0;e<t.length;e++)Rd.add(t[e])}var Ft=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ms=Object.prototype.hasOwnProperty,rm=/^[: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]*$/,Bu={},$u={};function om(e){return ms.call($u,e)?!0:ms.call(Bu,e)?!1:rm.test(e)?$u[e]=!0:(Bu[e]=!0,!1)}function lm(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 im(e,t,n,r){if(t===null||typeof t>"u"||lm(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 ze(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new ze(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){ke[e]=new ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var ya=/[\-:]([a-z])/g;function ga(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(ya,ga);ke[t]=new ze(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(ya,ga);ke[t]=new ze(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(ya,ga);ke[t]=new ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new ze(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function wa(e,t,n,r){var o=ke.hasOwnProperty(t)?ke[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(im(t,n,o,r)&&(n=null),r||o===null?om(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Kt=nm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vo=Symbol.for("react.element"),Wn=Symbol.for("react.portal"),Kn=Symbol.for("react.fragment"),_a=Symbol.for("react.strict_mode"),vs=Symbol.for("react.profiler"),Td=Symbol.for("react.provider"),Dd=Symbol.for("react.context"),xa=Symbol.for("react.forward_ref"),ys=Symbol.for("react.suspense"),gs=Symbol.for("react.suspense_list"),Sa=Symbol.for("react.memo"),tn=Symbol.for("react.lazy"),Ld=Symbol.for("react.offscreen"),bu=Symbol.iterator;function Pr(e){return e===null||typeof e!="object"?null:(e=bu&&e[bu]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Object.assign,Mi;function Vr(e){if(Mi===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Mi=t&&t[1]||""}return`
|
|
34
|
+
`+Mi+e}var Ai=!1;function zi(e,t){if(!e||Ai)return"";Ai=!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 o=u.stack.split(`
|
|
35
|
+
`),l=r.stack.split(`
|
|
36
|
+
`),i=o.length-1,s=l.length-1;1<=i&&0<=s&&o[i]!==l[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==l[s]){if(i!==1||s!==1)do if(i--,s--,0>s||o[i]!==l[s]){var a=`
|
|
37
|
+
`+o[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=s);break}}}finally{Ai=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vr(e):""}function sm(e){switch(e.tag){case 5:return Vr(e.type);case 16:return Vr("Lazy");case 13:return Vr("Suspense");case 19:return Vr("SuspenseList");case 0:case 2:case 15:return e=zi(e.type,!1),e;case 11:return e=zi(e.type.render,!1),e;case 1:return e=zi(e.type,!0),e;default:return""}}function ws(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 Kn:return"Fragment";case Wn:return"Portal";case vs:return"Profiler";case _a:return"StrictMode";case ys:return"Suspense";case gs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dd:return(e.displayName||"Context")+".Consumer";case Td:return(e._context.displayName||"Context")+".Provider";case xa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Sa:return t=e.displayName||null,t!==null?t:ws(e.type)||"Memo";case tn:t=e._payload,e=e._init;try{return ws(e(t))}catch{}}return null}function am(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 ws(t);case 8:return t===_a?"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 yn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function um(e){var t=jd(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 o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wo(e){e._valueTracker||(e._valueTracker=um(e))}function Pd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=jd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Tl(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 _s(e,t){var n=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=yn(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 Id(e,t){t=t.checked,t!=null&&wa(e,"checked",t,!1)}function xs(e,t){Id(e,t);var n=yn(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")?Ss(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ss(e,t.type,yn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Uu(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 Ss(e,t,n){(t!=="number"||Tl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wr=Array.isArray;function or(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+yn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Cs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Hu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Wr(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:yn(n)}}function Od(e,t){var n=yn(t.value),r=yn(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 Vu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Md(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 Es(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Md(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ko,Ad=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ko=Ko||document.createElement("div"),Ko.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ko.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function uo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xr={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},cm=["Webkit","ms","Moz","O"];Object.keys(Xr).forEach(function(e){cm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xr[t]=Xr[e]})});function zd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xr.hasOwnProperty(e)&&Xr[e]?(""+t).trim():t+"px"}function Bd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=zd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var dm=ie({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 ks(e,t){if(t){if(dm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Ns(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 Rs=null;function Ca(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ts=null,lr=null,ir=null;function Wu(e){if(e=Po(e)){if(typeof Ts!="function")throw Error(R(280));var t=e.stateNode;t&&(t=fi(t),Ts(e.stateNode,e.type,t))}}function $d(e){lr?ir?ir.push(e):ir=[e]:lr=e}function bd(){if(lr){var e=lr,t=ir;if(ir=lr=null,Wu(e),t)for(e=0;e<t.length;e++)Wu(t[e])}}function Fd(e,t){return e(t)}function Ud(){}var Bi=!1;function Hd(e,t,n){if(Bi)return e(t,n);Bi=!0;try{return Fd(e,t,n)}finally{Bi=!1,(lr!==null||ir!==null)&&(Ud(),bd())}}function co(e,t){var n=e.stateNode;if(n===null)return null;var r=fi(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(R(231,t,typeof n));return n}var Ds=!1;if(Ft)try{var Ir={};Object.defineProperty(Ir,"passive",{get:function(){Ds=!0}}),window.addEventListener("test",Ir,Ir),window.removeEventListener("test",Ir,Ir)}catch{Ds=!1}function fm(e,t,n,r,o,l,i,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Gr=!1,Dl=null,Ll=!1,Ls=null,pm={onError:function(e){Gr=!0,Dl=e}};function hm(e,t,n,r,o,l,i,s,a){Gr=!1,Dl=null,fm.apply(pm,arguments)}function mm(e,t,n,r,o,l,i,s,a){if(hm.apply(this,arguments),Gr){if(Gr){var u=Dl;Gr=!1,Dl=null}else throw Error(R(198));Ll||(Ll=!0,Ls=u)}}function zn(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 Vd(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 Ku(e){if(zn(e)!==e)throw Error(R(188))}function vm(e){var t=e.alternate;if(!t){if(t=zn(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var l=o.alternate;if(l===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===n)return Ku(o),e;if(l===r)return Ku(o),t;l=l.sibling}throw Error(R(188))}if(n.return!==r.return)n=o,r=l;else{for(var i=!1,s=o.child;s;){if(s===n){i=!0,n=o,r=l;break}if(s===r){i=!0,r=o,n=l;break}s=s.sibling}if(!i){for(s=l.child;s;){if(s===n){i=!0,n=l,r=o;break}if(s===r){i=!0,r=l,n=o;break}s=s.sibling}if(!i)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function Wd(e){return e=vm(e),e!==null?Kd(e):null}function Kd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Kd(e);if(t!==null)return t;e=e.sibling}return null}var Qd=tt.unstable_scheduleCallback,Qu=tt.unstable_cancelCallback,ym=tt.unstable_shouldYield,gm=tt.unstable_requestPaint,ce=tt.unstable_now,wm=tt.unstable_getCurrentPriorityLevel,Ea=tt.unstable_ImmediatePriority,Yd=tt.unstable_UserBlockingPriority,jl=tt.unstable_NormalPriority,_m=tt.unstable_LowPriority,Xd=tt.unstable_IdlePriority,ai=null,Pt=null;function xm(e){if(Pt&&typeof Pt.onCommitFiberRoot=="function")try{Pt.onCommitFiberRoot(ai,e,void 0,(e.current.flags&128)===128)}catch{}}var wt=Math.clz32?Math.clz32:Em,Sm=Math.log,Cm=Math.LN2;function Em(e){return e>>>=0,e===0?32:31-(Sm(e)/Cm|0)|0}var Qo=64,Yo=4194304;function Kr(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 Pl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Kr(s):(l&=i,l!==0&&(r=Kr(l)))}else i=n&~o,i!==0?r=Kr(i):l!==0&&(r=Kr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===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),o=1<<n,r|=e[n],t&=~o;return r}function km(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 Nm(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var i=31-wt(l),s=1<<i,a=o[i];a===-1?(!(s&n)||s&r)&&(o[i]=km(s,t)):a<=t&&(e.expiredLanes|=s),l&=~s}}function js(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Gd(){var e=Qo;return Qo<<=1,!(Qo&4194240)&&(Qo=64),e}function $i(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Lo(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 Rm(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 o=31-wt(n),l=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~l}}function ka(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Q=0;function qd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Jd,Na,Zd,ef,tf,Ps=!1,Xo=[],un=null,cn=null,dn=null,fo=new Map,po=new Map,on=[],Tm="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 Yu(e,t){switch(e){case"focusin":case"focusout":un=null;break;case"dragenter":case"dragleave":cn=null;break;case"mouseover":case"mouseout":dn=null;break;case"pointerover":case"pointerout":fo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":po.delete(t.pointerId)}}function Or(e,t,n,r,o,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[o]},t!==null&&(t=Po(t),t!==null&&Na(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Dm(e,t,n,r,o){switch(t){case"focusin":return un=Or(un,e,t,n,r,o),!0;case"dragenter":return cn=Or(cn,e,t,n,r,o),!0;case"mouseover":return dn=Or(dn,e,t,n,r,o),!0;case"pointerover":var l=o.pointerId;return fo.set(l,Or(fo.get(l)||null,e,t,n,r,o)),!0;case"gotpointercapture":return l=o.pointerId,po.set(l,Or(po.get(l)||null,e,t,n,r,o)),!0}return!1}function nf(e){var t=kn(e.target);if(t!==null){var n=zn(t);if(n!==null){if(t=n.tag,t===13){if(t=Vd(n),t!==null){e.blockedOn=t,tf(e.priority,function(){Zd(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 ml(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Is(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Rs=r,n.target.dispatchEvent(r),Rs=null}else return t=Po(n),t!==null&&Na(t),e.blockedOn=n,!1;t.shift()}return!0}function Xu(e,t,n){ml(e)&&n.delete(t)}function Lm(){Ps=!1,un!==null&&ml(un)&&(un=null),cn!==null&&ml(cn)&&(cn=null),dn!==null&&ml(dn)&&(dn=null),fo.forEach(Xu),po.forEach(Xu)}function Mr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ps||(Ps=!0,tt.unstable_scheduleCallback(tt.unstable_NormalPriority,Lm)))}function ho(e){function t(o){return Mr(o,e)}if(0<Xo.length){Mr(Xo[0],e);for(var n=1;n<Xo.length;n++){var r=Xo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(un!==null&&Mr(un,e),cn!==null&&Mr(cn,e),dn!==null&&Mr(dn,e),fo.forEach(t),po.forEach(t),n=0;n<on.length;n++)r=on[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<on.length&&(n=on[0],n.blockedOn===null);)nf(n),n.blockedOn===null&&on.shift()}var sr=Kt.ReactCurrentBatchConfig,Il=!0;function jm(e,t,n,r){var o=Q,l=sr.transition;sr.transition=null;try{Q=1,Ra(e,t,n,r)}finally{Q=o,sr.transition=l}}function Pm(e,t,n,r){var o=Q,l=sr.transition;sr.transition=null;try{Q=4,Ra(e,t,n,r)}finally{Q=o,sr.transition=l}}function Ra(e,t,n,r){if(Il){var o=Is(e,t,n,r);if(o===null)Xi(e,t,r,Ol,n),Yu(e,r);else if(Dm(o,e,t,n,r))r.stopPropagation();else if(Yu(e,r),t&4&&-1<Tm.indexOf(e)){for(;o!==null;){var l=Po(o);if(l!==null&&Jd(l),l=Is(e,t,n,r),l===null&&Xi(e,t,r,Ol,n),l===o)break;o=l}o!==null&&r.stopPropagation()}else Xi(e,t,r,null,n)}}var Ol=null;function Is(e,t,n,r){if(Ol=null,e=Ca(r),e=kn(e),e!==null)if(t=zn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Vd(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 Ol=e,null}function rf(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(wm()){case Ea:return 1;case Yd:return 4;case jl:case _m:return 16;case Xd:return 536870912;default:return 16}default:return 16}}var sn=null,Ta=null,vl=null;function of(){if(vl)return vl;var e,t=Ta,n=t.length,r,o="value"in sn?sn.value:sn.textContent,l=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[l-r];r++);return vl=o.slice(e,1<r?1-r:void 0)}function yl(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 Go(){return!0}function Gu(){return!1}function rt(e){function t(n,r,o,l,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Go:Gu,this.isPropagationStopped=Gu,this}return ie(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=Go)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Go)},persist:function(){},isPersistent:Go}),t}var wr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Da=rt(wr),jo=ie({},wr,{view:0,detail:0}),Im=rt(jo),bi,Fi,Ar,ui=ie({},jo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:La,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!==Ar&&(Ar&&e.type==="mousemove"?(bi=e.screenX-Ar.screenX,Fi=e.screenY-Ar.screenY):Fi=bi=0,Ar=e),bi)},movementY:function(e){return"movementY"in e?e.movementY:Fi}}),qu=rt(ui),Om=ie({},ui,{dataTransfer:0}),Mm=rt(Om),Am=ie({},jo,{relatedTarget:0}),Ui=rt(Am),zm=ie({},wr,{animationName:0,elapsedTime:0,pseudoElement:0}),Bm=rt(zm),$m=ie({},wr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bm=rt($m),Fm=ie({},wr,{data:0}),Ju=rt(Fm),Um={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hm={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"},Vm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vm[e])?!!t[e]:!1}function La(){return Wm}var Km=ie({},jo,{key:function(e){if(e.key){var t=Um[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:La,charCode:function(e){return e.type==="keypress"?yl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qm=rt(Km),Ym=ie({},ui,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zu=rt(Ym),Xm=ie({},jo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:La}),Gm=rt(Xm),qm=ie({},wr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jm=rt(qm),Zm=ie({},ui,{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}),ev=rt(Zm),tv=[9,13,27,32],ja=Ft&&"CompositionEvent"in window,qr=null;Ft&&"documentMode"in document&&(qr=document.documentMode);var nv=Ft&&"TextEvent"in window&&!qr,lf=Ft&&(!ja||qr&&8<qr&&11>=qr),ec=" ",tc=!1;function sf(e,t){switch(e){case"keyup":return tv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function af(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qn=!1;function rv(e,t){switch(e){case"compositionend":return af(t);case"keypress":return t.which!==32?null:(tc=!0,ec);case"textInput":return e=t.data,e===ec&&tc?null:e;default:return null}}function ov(e,t){if(Qn)return e==="compositionend"||!ja&&sf(e,t)?(e=of(),vl=Ta=sn=null,Qn=!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 lf&&t.locale!=="ko"?null:t.data;default:return null}}var lv={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 nc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!lv[e.type]:t==="textarea"}function uf(e,t,n,r){$d(r),t=Ml(t,"onChange"),0<t.length&&(n=new Da("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Jr=null,mo=null;function iv(e){_f(e,0)}function ci(e){var t=Gn(e);if(Pd(t))return e}function sv(e,t){if(e==="change")return t}var cf=!1;if(Ft){var Hi;if(Ft){var Vi="oninput"in document;if(!Vi){var rc=document.createElement("div");rc.setAttribute("oninput","return;"),Vi=typeof rc.oninput=="function"}Hi=Vi}else Hi=!1;cf=Hi&&(!document.documentMode||9<document.documentMode)}function oc(){Jr&&(Jr.detachEvent("onpropertychange",df),mo=Jr=null)}function df(e){if(e.propertyName==="value"&&ci(mo)){var t=[];uf(t,mo,e,Ca(e)),Hd(iv,t)}}function av(e,t,n){e==="focusin"?(oc(),Jr=t,mo=n,Jr.attachEvent("onpropertychange",df)):e==="focusout"&&oc()}function uv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ci(mo)}function cv(e,t){if(e==="click")return ci(t)}function dv(e,t){if(e==="input"||e==="change")return ci(t)}function fv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:fv;function vo(e,t){if(xt(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 o=n[r];if(!ms.call(t,o)||!xt(e[o],t[o]))return!1}return!0}function lc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ic(e,t){var n=lc(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=lc(n)}}function ff(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ff(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pf(){for(var e=window,t=Tl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Tl(e.document)}return t}function Pa(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 pv(e){var t=pf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ff(n.ownerDocument.documentElement,n)){if(r!==null&&Pa(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 o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=ic(n,l);var i=ic(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 hv=Ft&&"documentMode"in document&&11>=document.documentMode,Yn=null,Os=null,Zr=null,Ms=!1;function sc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ms||Yn==null||Yn!==Tl(r)||(r=Yn,"selectionStart"in r&&Pa(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}),Zr&&vo(Zr,r)||(Zr=r,r=Ml(Os,"onSelect"),0<r.length&&(t=new Da("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Yn)))}function qo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xn={animationend:qo("Animation","AnimationEnd"),animationiteration:qo("Animation","AnimationIteration"),animationstart:qo("Animation","AnimationStart"),transitionend:qo("Transition","TransitionEnd")},Wi={},hf={};Ft&&(hf=document.createElement("div").style,"AnimationEvent"in window||(delete Xn.animationend.animation,delete Xn.animationiteration.animation,delete Xn.animationstart.animation),"TransitionEvent"in window||delete Xn.transitionend.transition);function di(e){if(Wi[e])return Wi[e];if(!Xn[e])return e;var t=Xn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in hf)return Wi[e]=t[n];return e}var mf=di("animationend"),vf=di("animationiteration"),yf=di("animationstart"),gf=di("transitionend"),wf=new Map,ac="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 _n(e,t){wf.set(e,t),An(t,[e])}for(var Ki=0;Ki<ac.length;Ki++){var Qi=ac[Ki],mv=Qi.toLowerCase(),vv=Qi[0].toUpperCase()+Qi.slice(1);_n(mv,"on"+vv)}_n(mf,"onAnimationEnd");_n(vf,"onAnimationIteration");_n(yf,"onAnimationStart");_n("dblclick","onDoubleClick");_n("focusin","onFocus");_n("focusout","onBlur");_n(gf,"onTransitionEnd");dr("onMouseEnter",["mouseout","mouseover"]);dr("onMouseLeave",["mouseout","mouseover"]);dr("onPointerEnter",["pointerout","pointerover"]);dr("onPointerLeave",["pointerout","pointerover"]);An("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));An("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));An("onBeforeInput",["compositionend","keypress","textInput","paste"]);An("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));An("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));An("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qr="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(" "),yv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qr));function uc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,mm(r,t,void 0,e),e.currentTarget=null}function _f(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==l&&o.isPropagationStopped())break e;uc(o,s,u),l=a}else for(i=0;i<r.length;i++){if(s=r[i],a=s.instance,u=s.currentTarget,s=s.listener,a!==l&&o.isPropagationStopped())break e;uc(o,s,u),l=a}}}if(Ll)throw e=Ls,Ll=!1,Ls=null,e}function Z(e,t){var n=t[bs];n===void 0&&(n=t[bs]=new Set);var r=e+"__bubble";n.has(r)||(xf(t,e,2,!1),n.add(r))}function Yi(e,t,n){var r=0;t&&(r|=4),xf(n,e,r,t)}var Jo="_reactListening"+Math.random().toString(36).slice(2);function yo(e){if(!e[Jo]){e[Jo]=!0,Rd.forEach(function(n){n!=="selectionchange"&&(yv.has(n)||Yi(n,!1,e),Yi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jo]||(t[Jo]=!0,Yi("selectionchange",!1,t))}}function xf(e,t,n,r){switch(rf(t)){case 1:var o=jm;break;case 4:o=Pm;break;default:o=Ra}n=o.bind(null,t,n,e),o=void 0,!Ds||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Xi(e,t,n,r,o){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;i=i.return}for(;s!==null;){if(i=kn(s),i===null)return;if(a=i.tag,a===5||a===6){r=l=i;continue e}s=s.parentNode}}r=r.return}Hd(function(){var u=l,f=Ca(n),d=[];e:{var v=wf.get(e);if(v!==void 0){var w=Da,_=e;switch(e){case"keypress":if(yl(n)===0)break e;case"keydown":case"keyup":w=Qm;break;case"focusin":_="focus",w=Ui;break;case"focusout":_="blur",w=Ui;break;case"beforeblur":case"afterblur":w=Ui;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":w=qu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=Mm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Gm;break;case mf:case vf:case yf:w=Bm;break;case gf:w=Jm;break;case"scroll":w=Im;break;case"wheel":w=ev;break;case"copy":case"cut":case"paste":w=bm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Zu}var g=(t&4)!==0,E=!g&&e==="scroll",h=g?v!==null?v+"Capture":null:v;g=[];for(var p=u,m;p!==null;){m=p;var S=m.stateNode;if(m.tag===5&&S!==null&&(m=S,h!==null&&(S=co(p,h),S!=null&&g.push(go(p,S,m)))),E)break;p=p.return}0<g.length&&(v=new w(v,_,null,n,f),d.push({event:v,listeners:g}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",v&&n!==Rs&&(_=n.relatedTarget||n.fromElement)&&(kn(_)||_[Ut]))break e;if((w||v)&&(v=f.window===f?f:(v=f.ownerDocument)?v.defaultView||v.parentWindow:window,w?(_=n.relatedTarget||n.toElement,w=u,_=_?kn(_):null,_!==null&&(E=zn(_),_!==E||_.tag!==5&&_.tag!==6)&&(_=null)):(w=null,_=u),w!==_)){if(g=qu,S="onMouseLeave",h="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(g=Zu,S="onPointerLeave",h="onPointerEnter",p="pointer"),E=w==null?v:Gn(w),m=_==null?v:Gn(_),v=new g(S,p+"leave",w,n,f),v.target=E,v.relatedTarget=m,S=null,kn(f)===u&&(g=new g(h,p+"enter",_,n,f),g.target=m,g.relatedTarget=E,S=g),E=S,w&&_)t:{for(g=w,h=_,p=0,m=g;m;m=Fn(m))p++;for(m=0,S=h;S;S=Fn(S))m++;for(;0<p-m;)g=Fn(g),p--;for(;0<m-p;)h=Fn(h),m--;for(;p--;){if(g===h||h!==null&&g===h.alternate)break t;g=Fn(g),h=Fn(h)}g=null}else g=null;w!==null&&cc(d,v,w,g,!1),_!==null&&E!==null&&cc(d,E,_,g,!0)}}e:{if(v=u?Gn(u):window,w=v.nodeName&&v.nodeName.toLowerCase(),w==="select"||w==="input"&&v.type==="file")var x=sv;else if(nc(v))if(cf)x=dv;else{x=uv;var N=av}else(w=v.nodeName)&&w.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(x=cv);if(x&&(x=x(e,u))){uf(d,x,n,f);break e}N&&N(e,v,u),e==="focusout"&&(N=v._wrapperState)&&N.controlled&&v.type==="number"&&Ss(v,"number",v.value)}switch(N=u?Gn(u):window,e){case"focusin":(nc(N)||N.contentEditable==="true")&&(Yn=N,Os=u,Zr=null);break;case"focusout":Zr=Os=Yn=null;break;case"mousedown":Ms=!0;break;case"contextmenu":case"mouseup":case"dragend":Ms=!1,sc(d,n,f);break;case"selectionchange":if(hv)break;case"keydown":case"keyup":sc(d,n,f)}var C;if(ja)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Qn?sf(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(lf&&n.locale!=="ko"&&(Qn||k!=="onCompositionStart"?k==="onCompositionEnd"&&Qn&&(C=of()):(sn=f,Ta="value"in sn?sn.value:sn.textContent,Qn=!0)),N=Ml(u,k),0<N.length&&(k=new Ju(k,e,null,n,f),d.push({event:k,listeners:N}),C?k.data=C:(C=af(n),C!==null&&(k.data=C)))),(C=nv?rv(e,n):ov(e,n))&&(u=Ml(u,"onBeforeInput"),0<u.length&&(f=new Ju("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=C))}_f(d,t)})}function go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ml(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,l=o.stateNode;o.tag===5&&l!==null&&(o=l,l=co(e,n),l!=null&&r.unshift(go(e,l,o)),l=co(e,t),l!=null&&r.push(go(e,l,o))),e=e.return}return r}function Fn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function cc(e,t,n,r,o){for(var l=t._reactName,i=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,o?(a=co(n,l),a!=null&&i.unshift(go(n,a,s))):o||(a=co(n,l),a!=null&&i.push(go(n,a,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var gv=/\r\n?/g,wv=/\u0000|\uFFFD/g;function dc(e){return(typeof e=="string"?e:""+e).replace(gv,`
|
|
38
|
+
`).replace(wv,"")}function Zo(e,t,n){if(t=dc(t),dc(e)!==t&&n)throw Error(R(425))}function Al(){}var As=null,zs=null;function Bs(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 $s=typeof setTimeout=="function"?setTimeout:void 0,_v=typeof clearTimeout=="function"?clearTimeout:void 0,fc=typeof Promise=="function"?Promise:void 0,xv=typeof queueMicrotask=="function"?queueMicrotask:typeof fc<"u"?function(e){return fc.resolve(null).then(e).catch(Sv)}:$s;function Sv(e){setTimeout(function(){throw e})}function Gi(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ho(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ho(t)}function fn(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 pc(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 _r=Math.random().toString(36).slice(2),jt="__reactFiber$"+_r,wo="__reactProps$"+_r,Ut="__reactContainer$"+_r,bs="__reactEvents$"+_r,Cv="__reactListeners$"+_r,Ev="__reactHandles$"+_r;function kn(e){var t=e[jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ut]||n[jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pc(e);e!==null;){if(n=e[jt])return n;e=pc(e)}return t}e=n,n=e.parentNode}return null}function Po(e){return e=e[jt]||e[Ut],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function fi(e){return e[wo]||null}var Fs=[],qn=-1;function xn(e){return{current:e}}function ee(e){0>qn||(e.current=Fs[qn],Fs[qn]=null,qn--)}function q(e,t){qn++,Fs[qn]=e.current,e.current=t}var gn={},Le=xn(gn),Ve=xn(!1),Ln=gn;function fr(e,t){var n=e.type.contextTypes;if(!n)return gn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function We(e){return e=e.childContextTypes,e!=null}function zl(){ee(Ve),ee(Le)}function hc(e,t,n){if(Le.current!==gn)throw Error(R(168));q(Le,t),q(Ve,n)}function Sf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,am(e)||"Unknown",o));return ie({},n,r)}function Bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gn,Ln=Le.current,q(Le,e),q(Ve,Ve.current),!0}function mc(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Sf(e,t,Ln),r.__reactInternalMemoizedMergedChildContext=e,ee(Ve),ee(Le),q(Le,e)):ee(Ve),q(Ve,n)}var zt=null,pi=!1,qi=!1;function Cf(e){zt===null?zt=[e]:zt.push(e)}function kv(e){pi=!0,Cf(e)}function Sn(){if(!qi&&zt!==null){qi=!0;var e=0,t=Q;try{var n=zt;for(Q=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}zt=null,pi=!1}catch(o){throw zt!==null&&(zt=zt.slice(e+1)),Qd(Ea,Sn),o}finally{Q=t,qi=!1}}return null}var Jn=[],Zn=0,$l=null,bl=0,ut=[],ct=0,jn=null,Bt=1,$t="";function Cn(e,t){Jn[Zn++]=bl,Jn[Zn++]=$l,$l=e,bl=t}function Ef(e,t,n){ut[ct++]=Bt,ut[ct++]=$t,ut[ct++]=jn,jn=e;var r=Bt;e=$t;var o=32-wt(r)-1;r&=~(1<<o),n+=1;var l=32-wt(t)+o;if(30<l){var i=o-o%5;l=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Bt=1<<32-wt(t)+o|n<<o|r,$t=l+e}else Bt=1<<l|n<<o|r,$t=e}function Ia(e){e.return!==null&&(Cn(e,1),Ef(e,1,0))}function Oa(e){for(;e===$l;)$l=Jn[--Zn],Jn[Zn]=null,bl=Jn[--Zn],Jn[Zn]=null;for(;e===jn;)jn=ut[--ct],ut[ct]=null,$t=ut[--ct],ut[ct]=null,Bt=ut[--ct],ut[ct]=null}var et=null,Ze=null,te=!1,gt=null;function kf(e,t){var n=dt(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 vc(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,et=e,Ze=fn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,et=e,Ze=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=jn!==null?{id:Bt,overflow:$t}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=dt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,et=e,Ze=null,!0):!1;default:return!1}}function Us(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Hs(e){if(te){var t=Ze;if(t){var n=t;if(!vc(e,t)){if(Us(e))throw Error(R(418));t=fn(n.nextSibling);var r=et;t&&vc(e,t)?kf(r,n):(e.flags=e.flags&-4097|2,te=!1,et=e)}}else{if(Us(e))throw Error(R(418));e.flags=e.flags&-4097|2,te=!1,et=e}}}function yc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;et=e}function el(e){if(e!==et)return!1;if(!te)return yc(e),te=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Bs(e.type,e.memoizedProps)),t&&(t=Ze)){if(Us(e))throw Nf(),Error(R(418));for(;t;)kf(e,t),t=fn(t.nextSibling)}if(yc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ze=fn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ze=null}}else Ze=et?fn(e.stateNode.nextSibling):null;return!0}function Nf(){for(var e=Ze;e;)e=fn(e.nextSibling)}function pr(){Ze=et=null,te=!1}function Ma(e){gt===null?gt=[e]:gt.push(e)}var Nv=Kt.ReactCurrentBatchConfig;function zr(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(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var o=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(i){var s=o.refs;i===null?delete s[l]:s[l]=i},t._stringRef=l,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function tl(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function gc(e){var t=e._init;return t(e._payload)}function Rf(e){function t(h,p){if(e){var m=h.deletions;m===null?(h.deletions=[p],h.flags|=16):m.push(p)}}function n(h,p){if(!e)return null;for(;p!==null;)t(h,p),p=p.sibling;return null}function r(h,p){for(h=new Map;p!==null;)p.key!==null?h.set(p.key,p):h.set(p.index,p),p=p.sibling;return h}function o(h,p){return h=vn(h,p),h.index=0,h.sibling=null,h}function l(h,p,m){return h.index=m,e?(m=h.alternate,m!==null?(m=m.index,m<p?(h.flags|=2,p):m):(h.flags|=2,p)):(h.flags|=1048576,p)}function i(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,p,m,S){return p===null||p.tag!==6?(p=os(m,h.mode,S),p.return=h,p):(p=o(p,m),p.return=h,p)}function a(h,p,m,S){var x=m.type;return x===Kn?f(h,p,m.props.children,S,m.key):p!==null&&(p.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===tn&&gc(x)===p.type)?(S=o(p,m.props),S.ref=zr(h,p,m),S.return=h,S):(S=El(m.type,m.key,m.props,null,h.mode,S),S.ref=zr(h,p,m),S.return=h,S)}function u(h,p,m,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==m.containerInfo||p.stateNode.implementation!==m.implementation?(p=ls(m,h.mode,S),p.return=h,p):(p=o(p,m.children||[]),p.return=h,p)}function f(h,p,m,S,x){return p===null||p.tag!==7?(p=Dn(m,h.mode,S,x),p.return=h,p):(p=o(p,m),p.return=h,p)}function d(h,p,m){if(typeof p=="string"&&p!==""||typeof p=="number")return p=os(""+p,h.mode,m),p.return=h,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Vo:return m=El(p.type,p.key,p.props,null,h.mode,m),m.ref=zr(h,null,p),m.return=h,m;case Wn:return p=ls(p,h.mode,m),p.return=h,p;case tn:var S=p._init;return d(h,S(p._payload),m)}if(Wr(p)||Pr(p))return p=Dn(p,h.mode,m,null),p.return=h,p;tl(h,p)}return null}function v(h,p,m,S){var x=p!==null?p.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return x!==null?null:s(h,p,""+m,S);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Vo:return m.key===x?a(h,p,m,S):null;case Wn:return m.key===x?u(h,p,m,S):null;case tn:return x=m._init,v(h,p,x(m._payload),S)}if(Wr(m)||Pr(m))return x!==null?null:f(h,p,m,S,null);tl(h,m)}return null}function w(h,p,m,S,x){if(typeof S=="string"&&S!==""||typeof S=="number")return h=h.get(m)||null,s(p,h,""+S,x);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Vo:return h=h.get(S.key===null?m:S.key)||null,a(p,h,S,x);case Wn:return h=h.get(S.key===null?m:S.key)||null,u(p,h,S,x);case tn:var N=S._init;return w(h,p,m,N(S._payload),x)}if(Wr(S)||Pr(S))return h=h.get(m)||null,f(p,h,S,x,null);tl(p,S)}return null}function _(h,p,m,S){for(var x=null,N=null,C=p,k=p=0,T=null;C!==null&&k<m.length;k++){C.index>k?(T=C,C=null):T=C.sibling;var L=v(h,C,m[k],S);if(L===null){C===null&&(C=T);break}e&&C&&L.alternate===null&&t(h,C),p=l(L,p,k),N===null?x=L:N.sibling=L,N=L,C=T}if(k===m.length)return n(h,C),te&&Cn(h,k),x;if(C===null){for(;k<m.length;k++)C=d(h,m[k],S),C!==null&&(p=l(C,p,k),N===null?x=C:N.sibling=C,N=C);return te&&Cn(h,k),x}for(C=r(h,C);k<m.length;k++)T=w(C,h,k,m[k],S),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?k:T.key),p=l(T,p,k),N===null?x=T:N.sibling=T,N=T);return e&&C.forEach(function(z){return t(h,z)}),te&&Cn(h,k),x}function g(h,p,m,S){var x=Pr(m);if(typeof x!="function")throw Error(R(150));if(m=x.call(m),m==null)throw Error(R(151));for(var N=x=null,C=p,k=p=0,T=null,L=m.next();C!==null&&!L.done;k++,L=m.next()){C.index>k?(T=C,C=null):T=C.sibling;var z=v(h,C,L.value,S);if(z===null){C===null&&(C=T);break}e&&C&&z.alternate===null&&t(h,C),p=l(z,p,k),N===null?x=z:N.sibling=z,N=z,C=T}if(L.done)return n(h,C),te&&Cn(h,k),x;if(C===null){for(;!L.done;k++,L=m.next())L=d(h,L.value,S),L!==null&&(p=l(L,p,k),N===null?x=L:N.sibling=L,N=L);return te&&Cn(h,k),x}for(C=r(h,C);!L.done;k++,L=m.next())L=w(C,h,k,L.value,S),L!==null&&(e&&L.alternate!==null&&C.delete(L.key===null?k:L.key),p=l(L,p,k),N===null?x=L:N.sibling=L,N=L);return e&&C.forEach(function(j){return t(h,j)}),te&&Cn(h,k),x}function E(h,p,m,S){if(typeof m=="object"&&m!==null&&m.type===Kn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Vo:e:{for(var x=m.key,N=p;N!==null;){if(N.key===x){if(x=m.type,x===Kn){if(N.tag===7){n(h,N.sibling),p=o(N,m.props.children),p.return=h,h=p;break e}}else if(N.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===tn&&gc(x)===N.type){n(h,N.sibling),p=o(N,m.props),p.ref=zr(h,N,m),p.return=h,h=p;break e}n(h,N);break}else t(h,N);N=N.sibling}m.type===Kn?(p=Dn(m.props.children,h.mode,S,m.key),p.return=h,h=p):(S=El(m.type,m.key,m.props,null,h.mode,S),S.ref=zr(h,p,m),S.return=h,h=S)}return i(h);case Wn:e:{for(N=m.key;p!==null;){if(p.key===N)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(h,p.sibling),p=o(p,m.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=ls(m,h.mode,S),p.return=h,h=p}return i(h);case tn:return N=m._init,E(h,p,N(m._payload),S)}if(Wr(m))return _(h,p,m,S);if(Pr(m))return g(h,p,m,S);tl(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,m),p.return=h,h=p):(n(h,p),p=os(m,h.mode,S),p.return=h,h=p),i(h)):n(h,p)}return E}var hr=Rf(!0),Tf=Rf(!1),Fl=xn(null),Ul=null,er=null,Aa=null;function za(){Aa=er=Ul=null}function Ba(e){var t=Fl.current;ee(Fl),e._currentValue=t}function Vs(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 ar(e,t){Ul=e,Aa=er=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(He=!0),e.firstContext=null)}function pt(e){var t=e._currentValue;if(Aa!==e)if(e={context:e,memoizedValue:t,next:null},er===null){if(Ul===null)throw Error(R(308));er=e,Ul.dependencies={lanes:0,firstContext:e}}else er=er.next=e;return t}var Nn=null;function $a(e){Nn===null?Nn=[e]:Nn.push(e)}function Df(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,$a(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ht(e,r)}function Ht(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 nn=!1;function ba(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lf(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 bt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,V&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ht(e,n)}return o=r.interleaved,o===null?(t.next=t,$a(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ht(e,n)}function gl(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,ka(e,n)}}function wc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?o=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,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 Hl(e,t,n,r){var o=e.updateQueue;nn=!1;var l=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,i===null?l=u:i.next=u,i=a;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==i&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=a))}if(l!==null){var d=o.baseState;i=0,f=u=a=null,s=l;do{var v=s.lane,w=s.eventTime;if((r&v)===v){f!==null&&(f=f.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var _=e,g=s;switch(v=t,w=n,g.tag){case 1:if(_=g.payload,typeof _=="function"){d=_.call(w,d,v);break e}d=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=g.payload,v=typeof _=="function"?_.call(w,d,v):_,v==null)break e;d=ie({},d,v);break e;case 2:nn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,v=o.effects,v===null?o.effects=[s]:v.push(s))}else w={eventTime:w,lane:v,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=w,a=d):f=f.next=w,i|=v;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;v=s,s=v.next,v.next=null,o.lastBaseUpdate=v,o.shared.pending=null}}while(!0);if(f===null&&(a=d),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);In|=i,e.lanes=i,e.memoizedState=d}}function _c(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(R(191,o));o.call(r)}}}var Io={},It=xn(Io),_o=xn(Io),xo=xn(Io);function Rn(e){if(e===Io)throw Error(R(174));return e}function Fa(e,t){switch(q(xo,t),q(_o,e),q(It,Io),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Es(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Es(t,e)}ee(It),q(It,t)}function mr(){ee(It),ee(_o),ee(xo)}function jf(e){Rn(xo.current);var t=Rn(It.current),n=Es(t,e.type);t!==n&&(q(_o,e),q(It,n))}function Ua(e){_o.current===e&&(ee(It),ee(_o))}var oe=xn(0);function Vl(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 Ji=[];function Ha(){for(var e=0;e<Ji.length;e++)Ji[e]._workInProgressVersionPrimary=null;Ji.length=0}var wl=Kt.ReactCurrentDispatcher,Zi=Kt.ReactCurrentBatchConfig,Pn=0,le=null,he=null,ge=null,Wl=!1,eo=!1,So=0,Rv=0;function Re(){throw Error(R(321))}function Va(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xt(e[n],t[n]))return!1;return!0}function Wa(e,t,n,r,o,l){if(Pn=l,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wl.current=e===null||e.memoizedState===null?jv:Pv,e=n(r,o),eo){l=0;do{if(eo=!1,So=0,25<=l)throw Error(R(301));l+=1,ge=he=null,t.updateQueue=null,wl.current=Iv,e=n(r,o)}while(eo)}if(wl.current=Kl,t=he!==null&&he.next!==null,Pn=0,ge=he=le=null,Wl=!1,t)throw Error(R(300));return e}function Ka(){var e=So!==0;return So=0,e}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ge===null?le.memoizedState=ge=e:ge=ge.next=e,ge}function ht(){if(he===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=he.next;var t=ge===null?le.memoizedState:ge.next;if(t!==null)ge=t,he=e;else{if(e===null)throw Error(R(310));he=e,e={memoizedState:he.memoizedState,baseState:he.baseState,baseQueue:he.baseQueue,queue:he.queue,next:null},ge===null?le.memoizedState=ge=e:ge=ge.next=e}return ge}function Co(e,t){return typeof t=="function"?t(e):t}function es(e){var t=ht(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=he,o=r.baseQueue,l=n.pending;if(l!==null){if(o!==null){var i=o.next;o.next=l.next,l.next=i}r.baseQueue=o=l,n.pending=null}if(o!==null){l=o.next,r=r.baseState;var s=i=null,a=null,u=l;do{var f=u.lane;if((Pn&f)===f)a!==null&&(a=a.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:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=d,i=r):a=a.next=d,le.lanes|=f,In|=f}u=u.next}while(u!==null&&u!==l);a===null?i=r:a.next=s,xt(r,t.memoizedState)||(He=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do l=o.lane,le.lanes|=l,In|=l,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ts(e){var t=ht(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do l=e(l,i.action),i=i.next;while(i!==o);xt(l,t.memoizedState)||(He=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Pf(){}function If(e,t){var n=le,r=ht(),o=t(),l=!xt(r.memoizedState,o);if(l&&(r.memoizedState=o,He=!0),r=r.queue,Qa(Af.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ge!==null&&ge.memoizedState.tag&1){if(n.flags|=2048,Eo(9,Mf.bind(null,n,r,o,t),void 0,null),_e===null)throw Error(R(349));Pn&30||Of(n,t,o)}return o}function Of(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=le.updateQueue,t===null?(t={lastEffect:null,stores:null},le.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Mf(e,t,n,r){t.value=n,t.getSnapshot=r,zf(t)&&Bf(e)}function Af(e,t,n){return n(function(){zf(t)&&Bf(e)})}function zf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xt(e,n)}catch{return!0}}function Bf(e){var t=Ht(e,1);t!==null&&_t(t,e,1,-1)}function xc(e){var t=Lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Co,lastRenderedState:e},t.queue=e,e=e.dispatch=Lv.bind(null,le,e),[t.memoizedState,e]}function Eo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=le.updateQueue,t===null?(t={lastEffect:null,stores:null},le.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 $f(){return ht().memoizedState}function _l(e,t,n,r){var o=Lt();le.flags|=e,o.memoizedState=Eo(1|t,n,void 0,r===void 0?null:r)}function hi(e,t,n,r){var o=ht();r=r===void 0?null:r;var l=void 0;if(he!==null){var i=he.memoizedState;if(l=i.destroy,r!==null&&Va(r,i.deps)){o.memoizedState=Eo(t,n,l,r);return}}le.flags|=e,o.memoizedState=Eo(1|t,n,l,r)}function Sc(e,t){return _l(8390656,8,e,t)}function Qa(e,t){return hi(2048,8,e,t)}function bf(e,t){return hi(4,2,e,t)}function Ff(e,t){return hi(4,4,e,t)}function Uf(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 Hf(e,t,n){return n=n!=null?n.concat([e]):null,hi(4,4,Uf.bind(null,t,e),n)}function Ya(){}function Vf(e,t){var n=ht();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Va(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wf(e,t){var n=ht();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Va(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Kf(e,t,n){return Pn&21?(xt(n,t)||(n=Gd(),le.lanes|=n,In|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,He=!0),e.memoizedState=n)}function Tv(e,t){var n=Q;Q=n!==0&&4>n?n:4,e(!0);var r=Zi.transition;Zi.transition={};try{e(!1),t()}finally{Q=n,Zi.transition=r}}function Qf(){return ht().memoizedState}function Dv(e,t,n){var r=mn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Yf(e))Xf(t,n);else if(n=Df(e,t,n,r),n!==null){var o=Me();_t(n,e,r,o),Gf(n,t,r)}}function Lv(e,t,n){var r=mn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yf(e))Xf(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,s=l(i,n);if(o.hasEagerState=!0,o.eagerState=s,xt(s,i)){var a=t.interleaved;a===null?(o.next=o,$a(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Df(e,t,o,r),n!==null&&(o=Me(),_t(n,e,r,o),Gf(n,t,r))}}function Yf(e){var t=e.alternate;return e===le||t!==null&&t===le}function Xf(e,t){eo=Wl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ka(e,n)}}var Kl={readContext:pt,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},jv={readContext:pt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Sc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_l(4194308,4,Uf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _l(4194308,4,e,t)},useInsertionEffect:function(e,t){return _l(4,2,e,t)},useMemo:function(e,t){var n=Lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lt();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=Dv.bind(null,le,e),[r.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:xc,useDebugValue:Ya,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=xc(!1),t=e[0];return e=Tv.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=le,o=Lt();if(te){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),_e===null)throw Error(R(349));Pn&30||Of(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,Sc(Af.bind(null,r,l,e),[e]),r.flags|=2048,Eo(9,Mf.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Lt(),t=_e.identifierPrefix;if(te){var n=$t,r=Bt;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=So++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Rv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Pv={readContext:pt,useCallback:Vf,useContext:pt,useEffect:Qa,useImperativeHandle:Hf,useInsertionEffect:bf,useLayoutEffect:Ff,useMemo:Wf,useReducer:es,useRef:$f,useState:function(){return es(Co)},useDebugValue:Ya,useDeferredValue:function(e){var t=ht();return Kf(t,he.memoizedState,e)},useTransition:function(){var e=es(Co)[0],t=ht().memoizedState;return[e,t]},useMutableSource:Pf,useSyncExternalStore:If,useId:Qf,unstable_isNewReconciler:!1},Iv={readContext:pt,useCallback:Vf,useContext:pt,useEffect:Qa,useImperativeHandle:Hf,useInsertionEffect:bf,useLayoutEffect:Ff,useMemo:Wf,useReducer:ts,useRef:$f,useState:function(){return ts(Co)},useDebugValue:Ya,useDeferredValue:function(e){var t=ht();return he===null?t.memoizedState=e:Kf(t,he.memoizedState,e)},useTransition:function(){var e=ts(Co)[0],t=ht().memoizedState;return[e,t]},useMutableSource:Pf,useSyncExternalStore:If,useId:Qf,unstable_isNewReconciler:!1};function vt(e,t){if(e&&e.defaultProps){t=ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var mi={isMounted:function(e){return(e=e._reactInternals)?zn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Me(),o=mn(e),l=bt(r,o);l.payload=t,n!=null&&(l.callback=n),t=pn(e,l,o),t!==null&&(_t(t,e,o,r),gl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Me(),o=mn(e),l=bt(r,o);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=pn(e,l,o),t!==null&&(_t(t,e,o,r),gl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Me(),r=mn(e),o=bt(n,r);o.tag=2,t!=null&&(o.callback=t),t=pn(e,o,r),t!==null&&(_t(t,e,r,n),gl(t,e,r))}};function Cc(e,t,n,r,o,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,i):t.prototype&&t.prototype.isPureReactComponent?!vo(n,r)||!vo(o,l):!0}function qf(e,t,n){var r=!1,o=gn,l=t.contextType;return typeof l=="object"&&l!==null?l=pt(l):(o=We(t)?Ln:Le.current,r=t.contextTypes,l=(r=r!=null)?fr(e,o):gn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=mi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=l),t}function Ec(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&&mi.enqueueReplaceState(t,t.state,null)}function Ks(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ba(e);var l=t.contextType;typeof l=="object"&&l!==null?o.context=pt(l):(l=We(t)?Ln:Le.current,o.context=fr(e,l)),o.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Ws(e,t,l,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&mi.enqueueReplaceState(o,o.state,null),Hl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function vr(e,t){try{var n="",r=t;do n+=sm(r),r=r.return;while(r);var o=n}catch(l){o=`
|
|
39
|
+
Error generating stack: `+l.message+`
|
|
40
|
+
`+l.stack}return{value:e,source:t,stack:o,digest:null}}function ns(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Qs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ov=typeof WeakMap=="function"?WeakMap:Map;function Jf(e,t,n){n=bt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Yl||(Yl=!0,ra=r),Qs(e,t)},n}function Zf(e,t,n){n=bt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Qs(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Qs(e,t),typeof r!="function"&&(hn===null?hn=new Set([this]):hn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function kc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ov;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Yv.bind(null,e,t,n),t.then(e,e))}function Nc(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 Rc(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=bt(-1,1),t.tag=2,pn(n,t,1))),n.lanes|=1),e)}var Mv=Kt.ReactCurrentOwner,He=!1;function Oe(e,t,n,r){t.child=e===null?Tf(t,null,n,r):hr(t,e.child,n,r)}function Tc(e,t,n,r,o){n=n.render;var l=t.ref;return ar(t,o),r=Wa(e,t,n,r,l,o),n=Ka(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vt(e,t,o)):(te&&n&&Ia(t),t.flags|=1,Oe(e,t,r,o),t.child)}function Dc(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!nu(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,ep(e,t,l,r,o)):(e=El(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&o)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:vo,n(i,r)&&e.ref===t.ref)return Vt(e,t,o)}return t.flags|=1,e=vn(l,r),e.ref=t.ref,e.return=t,t.child=e}function ep(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(vo(l,r)&&e.ref===t.ref)if(He=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(He=!0);else return t.lanes=e.lanes,Vt(e,t,o)}return Ys(e,t,n,r,o)}function tp(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},q(nr,Je),Je|=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,q(nr,Je),Je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,q(nr,Je),Je|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,q(nr,Je),Je|=r;return Oe(e,t,o,n),t.child}function np(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ys(e,t,n,r,o){var l=We(n)?Ln:Le.current;return l=fr(t,l),ar(t,o),n=Wa(e,t,n,r,l,o),r=Ka(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vt(e,t,o)):(te&&r&&Ia(t),t.flags|=1,Oe(e,t,n,o),t.child)}function Lc(e,t,n,r,o){if(We(n)){var l=!0;Bl(t)}else l=!1;if(ar(t,o),t.stateNode===null)xl(e,t),qf(t,n,r),Ks(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var a=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=pt(u):(u=We(n)?Ln:Le.current,u=fr(t,u));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||a!==u)&&Ec(t,i,r,u),nn=!1;var v=t.memoizedState;i.state=v,Hl(t,r,i,o),a=t.memoizedState,s!==r||v!==a||Ve.current||nn?(typeof f=="function"&&(Ws(t,n,f,r),a=t.memoizedState),(s=nn||Cc(t,n,s,r,v,a,u))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=u,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Lf(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:vt(t.type,s),i.props=u,d=t.pendingProps,v=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=pt(a):(a=We(n)?Ln:Le.current,a=fr(t,a));var w=n.getDerivedStateFromProps;(f=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==d||v!==a)&&Ec(t,i,r,a),nn=!1,v=t.memoizedState,i.state=v,Hl(t,r,i,o);var _=t.memoizedState;s!==d||v!==_||Ve.current||nn?(typeof w=="function"&&(Ws(t,n,w,r),_=t.memoizedState),(u=nn||Cc(t,n,u,r,v,_,a)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,_,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,_,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=_),i.props=r,i.state=_,i.context=a,r=u):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return Xs(e,t,n,r,l,o)}function Xs(e,t,n,r,o,l){np(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&mc(t,n,!1),Vt(e,t,l);r=t.stateNode,Mv.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=hr(t,e.child,null,l),t.child=hr(t,null,s,l)):Oe(e,t,s,l),t.memoizedState=r.state,o&&mc(t,n,!0),t.child}function rp(e){var t=e.stateNode;t.pendingContext?hc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&hc(e,t.context,!1),Fa(e,t.containerInfo)}function jc(e,t,n,r,o){return pr(),Ma(o),t.flags|=256,Oe(e,t,n,r),t.child}var Gs={dehydrated:null,treeContext:null,retryLane:0};function qs(e){return{baseLanes:e,cachePool:null,transitions:null}}function op(e,t,n){var r=t.pendingProps,o=oe.current,l=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),q(oe,o&1),e===null)return Hs(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):(i=r.children,e=r.fallback,l?(r=t.mode,l=t.child,i={mode:"hidden",children:i},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=i):l=gi(i,r,0,null),e=Dn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=qs(n),t.memoizedState=Gs,e):Xa(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return Av(e,t,i,r,s,o,n);if(l){l=r.fallback,i=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=vn(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?l=vn(s,l):(l=Dn(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,i=e.child.memoizedState,i=i===null?qs(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},l.memoizedState=i,l.childLanes=e.childLanes&~n,t.memoizedState=Gs,r}return l=e.child,e=l.sibling,r=vn(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 Xa(e,t){return t=gi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function nl(e,t,n,r){return r!==null&&Ma(r),hr(t,e.child,null,n),e=Xa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Av(e,t,n,r,o,l,i){if(n)return t.flags&256?(t.flags&=-257,r=ns(Error(R(422))),nl(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=gi({mode:"visible",children:r.children},o,0,null),l=Dn(l,o,i,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&hr(t,e.child,null,i),t.child.memoizedState=qs(i),t.memoizedState=Gs,l);if(!(t.mode&1))return nl(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(R(419)),r=ns(l,r,void 0),nl(e,t,i,r)}if(s=(i&e.childLanes)!==0,He||s){if(r=_e,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==l.retryLane&&(l.retryLane=o,Ht(e,o),_t(r,e,o,-1))}return tu(),r=ns(Error(R(421))),nl(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Xv.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,Ze=fn(o.nextSibling),et=t,te=!0,gt=null,e!==null&&(ut[ct++]=Bt,ut[ct++]=$t,ut[ct++]=jn,Bt=e.id,$t=e.overflow,jn=t),t=Xa(t,r.children),t.flags|=4096,t)}function Pc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Vs(e.return,t,n)}function rs(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function lp(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(Oe(e,t,r.children,n),r=oe.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&&Pc(e,n,t);else if(e.tag===19)Pc(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(q(oe,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Vl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rs(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Vl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rs(t,!0,n,null,l);break;case"together":rs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),In|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=vn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zv(e,t,n){switch(t.tag){case 3:rp(t),pr();break;case 5:jf(t);break;case 1:We(t.type)&&Bl(t);break;case 4:Fa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;q(Fl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(q(oe,oe.current&1),t.flags|=128,null):n&t.child.childLanes?op(e,t,n):(q(oe,oe.current&1),e=Vt(e,t,n),e!==null?e.sibling:null);q(oe,oe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return lp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),q(oe,oe.current),r)break;return null;case 22:case 23:return t.lanes=0,tp(e,t,n)}return Vt(e,t,n)}var ip,Js,sp,ap;ip=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}};Js=function(){};sp=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Rn(It.current);var l=null;switch(n){case"input":o=_s(e,o),r=_s(e,r),l=[];break;case"select":o=ie({},o,{value:void 0}),r=ie({},r,{value:void 0}),l=[];break;case"textarea":o=Cs(e,o),r=Cs(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Al)}ks(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ao.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(i in s)!s.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&s[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(l||(l=[]),l.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(l=l||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ao.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Z("scroll",e),l||s===a||(l=[])):(l=l||[]).push(u,a))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};ap=function(e,t,n,r){n!==r&&(t.flags|=4)};function Br(e,t){if(!te)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 Te(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bv(e,t,n){var r=t.pendingProps;switch(Oa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Te(t),null;case 1:return We(t.type)&&zl(),Te(t),null;case 3:return r=t.stateNode,mr(),ee(Ve),ee(Le),Ha(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(el(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,gt!==null&&(ia(gt),gt=null))),Js(e,t),Te(t),null;case 5:Ua(t);var o=Rn(xo.current);if(n=t.type,e!==null&&t.stateNode!=null)sp(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return Te(t),null}if(e=Rn(It.current),el(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[jt]=t,r[wo]=l,e=(t.mode&1)!==0,n){case"dialog":Z("cancel",r),Z("close",r);break;case"iframe":case"object":case"embed":Z("load",r);break;case"video":case"audio":for(o=0;o<Qr.length;o++)Z(Qr[o],r);break;case"source":Z("error",r);break;case"img":case"image":case"link":Z("error",r),Z("load",r);break;case"details":Z("toggle",r);break;case"input":Fu(r,l),Z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Z("invalid",r);break;case"textarea":Hu(r,l),Z("invalid",r)}ks(n,l),o=null;for(var i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="children"?typeof s=="string"?r.textContent!==s&&(l.suppressHydrationWarning!==!0&&Zo(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&Zo(r.textContent,s,e),o=["children",""+s]):ao.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&Z("scroll",r)}switch(n){case"input":Wo(r),Uu(r,l,!0);break;case"textarea":Wo(r),Vu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Al)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Md(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[jt]=t,e[wo]=r,ip(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ns(n,r),n){case"dialog":Z("cancel",e),Z("close",e),o=r;break;case"iframe":case"object":case"embed":Z("load",e),o=r;break;case"video":case"audio":for(o=0;o<Qr.length;o++)Z(Qr[o],e);o=r;break;case"source":Z("error",e),o=r;break;case"img":case"image":case"link":Z("error",e),Z("load",e),o=r;break;case"details":Z("toggle",e),o=r;break;case"input":Fu(e,r),o=_s(e,r),Z("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ie({},r,{value:void 0}),Z("invalid",e);break;case"textarea":Hu(e,r),o=Cs(e,r),Z("invalid",e);break;default:o=r}ks(n,o),s=o;for(l in s)if(s.hasOwnProperty(l)){var a=s[l];l==="style"?Bd(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Ad(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&uo(e,a):typeof a=="number"&&uo(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ao.hasOwnProperty(l)?a!=null&&l==="onScroll"&&Z("scroll",e):a!=null&&wa(e,l,a,i))}switch(n){case"input":Wo(e),Uu(e,r,!1);break;case"textarea":Wo(e),Vu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+yn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?or(e,!!r.multiple,l,!1):r.defaultValue!=null&&or(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Al)}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 Te(t),null;case 6:if(e&&t.stateNode!=null)ap(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=Rn(xo.current),Rn(It.current),el(t)){if(r=t.stateNode,n=t.memoizedProps,r[jt]=t,(l=r.nodeValue!==n)&&(e=et,e!==null))switch(e.tag){case 3:Zo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zo(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[jt]=t,t.stateNode=r}return Te(t),null;case 13:if(ee(oe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(te&&Ze!==null&&t.mode&1&&!(t.flags&128))Nf(),pr(),t.flags|=98560,l=!1;else if(l=el(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(R(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(R(317));l[jt]=t}else pr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Te(t),l=!1}else gt!==null&&(ia(gt),gt=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||oe.current&1?ve===0&&(ve=3):tu())),t.updateQueue!==null&&(t.flags|=4),Te(t),null);case 4:return mr(),Js(e,t),e===null&&yo(t.stateNode.containerInfo),Te(t),null;case 10:return Ba(t.type._context),Te(t),null;case 17:return We(t.type)&&zl(),Te(t),null;case 19:if(ee(oe),l=t.memoizedState,l===null)return Te(t),null;if(r=(t.flags&128)!==0,i=l.rendering,i===null)if(r)Br(l,!1);else{if(ve!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Vl(e),i!==null){for(t.flags|=128,Br(l,!1),r=i.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,i=l.alternate,i===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=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,l.type=i.type,e=i.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return q(oe,oe.current&1|2),t.child}e=e.sibling}l.tail!==null&&ce()>yr&&(t.flags|=128,r=!0,Br(l,!1),t.lanes=4194304)}else{if(!r)if(e=Vl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Br(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!te)return Te(t),null}else 2*ce()-l.renderingStartTime>yr&&n!==1073741824&&(t.flags|=128,r=!0,Br(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ce(),t.sibling=null,n=oe.current,q(oe,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return eu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function $v(e,t){switch(Oa(t),t.tag){case 1:return We(t.type)&&zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mr(),ee(Ve),ee(Le),Ha(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ua(t),null;case 13:if(ee(oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ee(oe),null;case 4:return mr(),null;case 10:return Ba(t.type._context),null;case 22:case 23:return eu(),null;case 24:return null;default:return null}}var rl=!1,De=!1,bv=typeof WeakSet=="function"?WeakSet:Set,P=null;function tr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ae(e,t,r)}else n.current=null}function Zs(e,t,n){try{n()}catch(r){ae(e,t,r)}}var Ic=!1;function Fv(e,t){if(As=Il,e=pf(),Pa(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 o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,s=-1,a=-1,u=0,f=0,d=e,v=null;t:for(;;){for(var w;d!==n||o!==0&&d.nodeType!==3||(s=i+o),d!==l||r!==0&&d.nodeType!==3||(a=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(w=d.firstChild)!==null;)v=d,d=w;for(;;){if(d===e)break t;if(v===n&&++u===o&&(s=i),v===l&&++f===r&&(a=i),(w=d.nextSibling)!==null)break;d=v,v=d.parentNode}d=w}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(zs={focusedElem:e,selectionRange:n},Il=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var g=_.memoizedProps,E=_.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:vt(t.type,g),E);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(S){ae(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return _=Ic,Ic=!1,_}function to(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&Zs(t,n,l)}o=o.next}while(o!==r)}}function vi(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 ea(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 up(e){var t=e.alternate;t!==null&&(e.alternate=null,up(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jt],delete t[wo],delete t[bs],delete t[Cv],delete t[Ev])),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 cp(e){return e.tag===5||e.tag===3||e.tag===4}function Oc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cp(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 ta(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=Al));else if(r!==4&&(e=e.child,e!==null))for(ta(e,t,n),e=e.sibling;e!==null;)ta(e,t,n),e=e.sibling}function na(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(na(e,t,n),e=e.sibling;e!==null;)na(e,t,n),e=e.sibling}var Ce=null,yt=!1;function en(e,t,n){for(n=n.child;n!==null;)dp(e,t,n),n=n.sibling}function dp(e,t,n){if(Pt&&typeof Pt.onCommitFiberUnmount=="function")try{Pt.onCommitFiberUnmount(ai,n)}catch{}switch(n.tag){case 5:De||tr(n,t);case 6:var r=Ce,o=yt;Ce=null,en(e,t,n),Ce=r,yt=o,Ce!==null&&(yt?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(yt?(e=Ce,n=n.stateNode,e.nodeType===8?Gi(e.parentNode,n):e.nodeType===1&&Gi(e,n),ho(e)):Gi(Ce,n.stateNode));break;case 4:r=Ce,o=yt,Ce=n.stateNode.containerInfo,yt=!0,en(e,t,n),Ce=r,yt=o;break;case 0:case 11:case 14:case 15:if(!De&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&Zs(n,t,i),o=o.next}while(o!==r)}en(e,t,n);break;case 1:if(!De&&(tr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ae(n,t,s)}en(e,t,n);break;case 21:en(e,t,n);break;case 22:n.mode&1?(De=(r=De)||n.memoizedState!==null,en(e,t,n),De=r):en(e,t,n);break;default:en(e,t,n)}}function Mc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bv),t.forEach(function(r){var o=Gv.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var l=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:Ce=s.stateNode,yt=!1;break e;case 3:Ce=s.stateNode.containerInfo,yt=!0;break e;case 4:Ce=s.stateNode.containerInfo,yt=!0;break e}s=s.return}if(Ce===null)throw Error(R(160));dp(l,i,o),Ce=null,yt=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){ae(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)fp(t,e),t=t.sibling}function fp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mt(t,e),Tt(e),r&4){try{to(3,e,e.return),vi(3,e)}catch(g){ae(e,e.return,g)}try{to(5,e,e.return)}catch(g){ae(e,e.return,g)}}break;case 1:mt(t,e),Tt(e),r&512&&n!==null&&tr(n,n.return);break;case 5:if(mt(t,e),Tt(e),r&512&&n!==null&&tr(n,n.return),e.flags&32){var o=e.stateNode;try{uo(o,"")}catch(g){ae(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,i=n!==null?n.memoizedProps:l,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&l.type==="radio"&&l.name!=null&&Id(o,l),Ns(s,i);var u=Ns(s,l);for(i=0;i<a.length;i+=2){var f=a[i],d=a[i+1];f==="style"?Bd(o,d):f==="dangerouslySetInnerHTML"?Ad(o,d):f==="children"?uo(o,d):wa(o,f,d,u)}switch(s){case"input":xs(o,l);break;case"textarea":Od(o,l);break;case"select":var v=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var w=l.value;w!=null?or(o,!!l.multiple,w,!1):v!==!!l.multiple&&(l.defaultValue!=null?or(o,!!l.multiple,l.defaultValue,!0):or(o,!!l.multiple,l.multiple?[]:"",!1))}o[wo]=l}catch(g){ae(e,e.return,g)}}break;case 6:if(mt(t,e),Tt(e),r&4){if(e.stateNode===null)throw Error(R(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(g){ae(e,e.return,g)}}break;case 3:if(mt(t,e),Tt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ho(t.containerInfo)}catch(g){ae(e,e.return,g)}break;case 4:mt(t,e),Tt(e);break;case 13:mt(t,e),Tt(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(Ja=ce())),r&4&&Mc(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(De=(u=De)||f,mt(t,e),De=u):mt(t,e),Tt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(P=e,f=e.child;f!==null;){for(d=P=f;P!==null;){switch(v=P,w=v.child,v.tag){case 0:case 11:case 14:case 15:to(4,v,v.return);break;case 1:tr(v,v.return);var _=v.stateNode;if(typeof _.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,_.props=t.memoizedProps,_.state=t.memoizedState,_.componentWillUnmount()}catch(g){ae(r,n,g)}}break;case 5:tr(v,v.return);break;case 22:if(v.memoizedState!==null){zc(d);continue}}w!==null?(w.return=v,P=w):zc(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{o=d.stateNode,u?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(s=d.stateNode,a=d.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=zd("display",i))}catch(g){ae(e,e.return,g)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){ae(e,e.return,g)}}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;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:mt(t,e),Tt(e),r&4&&Mc(e);break;case 21:break;default:mt(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(cp(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(uo(o,""),r.flags&=-33);var l=Oc(e);na(e,l,o);break;case 3:case 4:var i=r.stateNode.containerInfo,s=Oc(e);ta(e,s,i);break;default:throw Error(R(161))}}catch(a){ae(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Uv(e,t,n){P=e,pp(e)}function pp(e,t,n){for(var r=(e.mode&1)!==0;P!==null;){var o=P,l=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||rl;if(!i){var s=o.alternate,a=s!==null&&s.memoizedState!==null||De;s=rl;var u=De;if(rl=i,(De=a)&&!u)for(P=o;P!==null;)i=P,a=i.child,i.tag===22&&i.memoizedState!==null?Bc(o):a!==null?(a.return=i,P=a):Bc(o);for(;l!==null;)P=l,pp(l),l=l.sibling;P=o,rl=s,De=u}Ac(e)}else o.subtreeFlags&8772&&l!==null?(l.return=o,P=l):Ac(e)}}function Ac(e){for(;P!==null;){var t=P;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:De||vi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!De)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:vt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&_c(t,l,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}_c(t,i,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.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 f=u.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&ho(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}De||t.flags&512&&ea(t)}catch(v){ae(t,t.return,v)}}if(t===e){P=null;break}if(n=t.sibling,n!==null){n.return=t.return,P=n;break}P=t.return}}function zc(e){for(;P!==null;){var t=P;if(t===e){P=null;break}var n=t.sibling;if(n!==null){n.return=t.return,P=n;break}P=t.return}}function Bc(e){for(;P!==null;){var t=P;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vi(4,t)}catch(a){ae(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){ae(t,o,a)}}var l=t.return;try{ea(t)}catch(a){ae(t,l,a)}break;case 5:var i=t.return;try{ea(t)}catch(a){ae(t,i,a)}}}catch(a){ae(t,t.return,a)}if(t===e){P=null;break}var s=t.sibling;if(s!==null){s.return=t.return,P=s;break}P=t.return}}var Hv=Math.ceil,Ql=Kt.ReactCurrentDispatcher,Ga=Kt.ReactCurrentOwner,ft=Kt.ReactCurrentBatchConfig,V=0,_e=null,de=null,Ee=0,Je=0,nr=xn(0),ve=0,ko=null,In=0,yi=0,qa=0,no=null,Ue=null,Ja=0,yr=1/0,At=null,Yl=!1,ra=null,hn=null,ol=!1,an=null,Xl=0,ro=0,oa=null,Sl=-1,Cl=0;function Me(){return V&6?ce():Sl!==-1?Sl:Sl=ce()}function mn(e){return e.mode&1?V&2&&Ee!==0?Ee&-Ee:Nv.transition!==null?(Cl===0&&(Cl=Gd()),Cl):(e=Q,e!==0||(e=window.event,e=e===void 0?16:rf(e.type)),e):1}function _t(e,t,n,r){if(50<ro)throw ro=0,oa=null,Error(R(185));Lo(e,n,r),(!(V&2)||e!==_e)&&(e===_e&&(!(V&2)&&(yi|=n),ve===4&&ln(e,Ee)),Ke(e,r),n===1&&V===0&&!(t.mode&1)&&(yr=ce()+500,pi&&Sn()))}function Ke(e,t){var n=e.callbackNode;Nm(e,t);var r=Pl(e,e===_e?Ee:0);if(r===0)n!==null&&Qu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Qu(n),t===1)e.tag===0?kv($c.bind(null,e)):Cf($c.bind(null,e)),xv(function(){!(V&6)&&Sn()}),n=null;else{switch(qd(r)){case 1:n=Ea;break;case 4:n=Yd;break;case 16:n=jl;break;case 536870912:n=Xd;break;default:n=jl}n=xp(n,hp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function hp(e,t){if(Sl=-1,Cl=0,V&6)throw Error(R(327));var n=e.callbackNode;if(ur()&&e.callbackNode!==n)return null;var r=Pl(e,e===_e?Ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Gl(e,r);else{t=r;var o=V;V|=2;var l=vp();(_e!==e||Ee!==t)&&(At=null,yr=ce()+500,Tn(e,t));do try{Kv();break}catch(s){mp(e,s)}while(!0);za(),Ql.current=l,V=o,de!==null?t=0:(_e=null,Ee=0,t=ve)}if(t!==0){if(t===2&&(o=js(e),o!==0&&(r=o,t=la(e,o))),t===1)throw n=ko,Tn(e,0),ln(e,r),Ke(e,ce()),n;if(t===6)ln(e,r);else{if(o=e.current.alternate,!(r&30)&&!Vv(o)&&(t=Gl(e,r),t===2&&(l=js(e),l!==0&&(r=l,t=la(e,l))),t===1))throw n=ko,Tn(e,0),ln(e,r),Ke(e,ce()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:En(e,Ue,At);break;case 3:if(ln(e,r),(r&130023424)===r&&(t=Ja+500-ce(),10<t)){if(Pl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Me(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=$s(En.bind(null,e,Ue,At),t);break}En(e,Ue,At);break;case 4:if(ln(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-wt(r);l=1<<i,i=t[i],i>o&&(o=i),r&=~l}if(r=o,r=ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Hv(r/1960))-r,10<r){e.timeoutHandle=$s(En.bind(null,e,Ue,At),r);break}En(e,Ue,At);break;case 5:En(e,Ue,At);break;default:throw Error(R(329))}}}return Ke(e,ce()),e.callbackNode===n?hp.bind(null,e):null}function la(e,t){var n=no;return e.current.memoizedState.isDehydrated&&(Tn(e,t).flags|=256),e=Gl(e,t),e!==2&&(t=Ue,Ue=n,t!==null&&ia(t)),e}function ia(e){Ue===null?Ue=e:Ue.push.apply(Ue,e)}function Vv(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 o=n[r],l=o.getSnapshot;o=o.value;try{if(!xt(l(),o))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 ln(e,t){for(t&=~qa,t&=~yi,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 $c(e){if(V&6)throw Error(R(327));ur();var t=Pl(e,0);if(!(t&1))return Ke(e,ce()),null;var n=Gl(e,t);if(e.tag!==0&&n===2){var r=js(e);r!==0&&(t=r,n=la(e,r))}if(n===1)throw n=ko,Tn(e,0),ln(e,t),Ke(e,ce()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,En(e,Ue,At),Ke(e,ce()),null}function Za(e,t){var n=V;V|=1;try{return e(t)}finally{V=n,V===0&&(yr=ce()+500,pi&&Sn())}}function On(e){an!==null&&an.tag===0&&!(V&6)&&ur();var t=V;V|=1;var n=ft.transition,r=Q;try{if(ft.transition=null,Q=1,e)return e()}finally{Q=r,ft.transition=n,V=t,!(V&6)&&Sn()}}function eu(){Je=nr.current,ee(nr)}function Tn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,_v(n)),de!==null)for(n=de.return;n!==null;){var r=n;switch(Oa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&zl();break;case 3:mr(),ee(Ve),ee(Le),Ha();break;case 5:Ua(r);break;case 4:mr();break;case 13:ee(oe);break;case 19:ee(oe);break;case 10:Ba(r.type._context);break;case 22:case 23:eu()}n=n.return}if(_e=e,de=e=vn(e.current,null),Ee=Je=t,ve=0,ko=null,qa=yi=In=0,Ue=no=null,Nn!==null){for(t=0;t<Nn.length;t++)if(n=Nn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var i=l.next;l.next=o,r.next=i}n.pending=r}Nn=null}return e}function mp(e,t){do{var n=de;try{if(za(),wl.current=Kl,Wl){for(var r=le.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Wl=!1}if(Pn=0,ge=he=le=null,eo=!1,So=0,Ga.current=null,n===null||n.return===null){ve=1,ko=t,de=null;break}e:{var l=e,i=n.return,s=n,a=t;if(t=Ee,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,f=s,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var v=f.alternate;v?(f.updateQueue=v.updateQueue,f.memoizedState=v.memoizedState,f.lanes=v.lanes):(f.updateQueue=null,f.memoizedState=null)}var w=Nc(i);if(w!==null){w.flags&=-257,Rc(w,i,s,l,t),w.mode&1&&kc(l,u,t),t=w,a=u;var _=t.updateQueue;if(_===null){var g=new Set;g.add(a),t.updateQueue=g}else _.add(a);break e}else{if(!(t&1)){kc(l,u,t),tu();break e}a=Error(R(426))}}else if(te&&s.mode&1){var E=Nc(i);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Rc(E,i,s,l,t),Ma(vr(a,s));break e}}l=a=vr(a,s),ve!==4&&(ve=2),no===null?no=[l]:no.push(l),l=i;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var h=Jf(l,a,t);wc(l,h);break e;case 1:s=a;var p=l.type,m=l.stateNode;if(!(l.flags&128)&&(typeof p.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(hn===null||!hn.has(m)))){l.flags|=65536,t&=-t,l.lanes|=t;var S=Zf(l,s,t);wc(l,S);break e}}l=l.return}while(l!==null)}gp(n)}catch(x){t=x,de===n&&n!==null&&(de=n=n.return);continue}break}while(!0)}function vp(){var e=Ql.current;return Ql.current=Kl,e===null?Kl:e}function tu(){(ve===0||ve===3||ve===2)&&(ve=4),_e===null||!(In&268435455)&&!(yi&268435455)||ln(_e,Ee)}function Gl(e,t){var n=V;V|=2;var r=vp();(_e!==e||Ee!==t)&&(At=null,Tn(e,t));do try{Wv();break}catch(o){mp(e,o)}while(!0);if(za(),V=n,Ql.current=r,de!==null)throw Error(R(261));return _e=null,Ee=0,ve}function Wv(){for(;de!==null;)yp(de)}function Kv(){for(;de!==null&&!ym();)yp(de)}function yp(e){var t=_p(e.alternate,e,Je);e.memoizedProps=e.pendingProps,t===null?gp(e):de=t,Ga.current=null}function gp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=$v(n,t),n!==null){n.flags&=32767,de=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ve=6,de=null;return}}else if(n=Bv(n,t,Je),n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);ve===0&&(ve=5)}function En(e,t,n){var r=Q,o=ft.transition;try{ft.transition=null,Q=1,Qv(e,t,n,r)}finally{ft.transition=o,Q=r}return null}function Qv(e,t,n,r){do ur();while(an!==null);if(V&6)throw Error(R(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Rm(e,l),e===_e&&(de=_e=null,Ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ol||(ol=!0,xp(jl,function(){return ur(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=ft.transition,ft.transition=null;var i=Q;Q=1;var s=V;V|=4,Ga.current=null,Fv(e,n),fp(n,e),pv(zs),Il=!!As,zs=As=null,e.current=n,Uv(n),gm(),V=s,Q=i,ft.transition=l}else e.current=n;if(ol&&(ol=!1,an=e,Xl=o),l=e.pendingLanes,l===0&&(hn=null),xm(n.stateNode),Ke(e,ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Yl)throw Yl=!1,e=ra,ra=null,e;return Xl&1&&e.tag!==0&&ur(),l=e.pendingLanes,l&1?e===oa?ro++:(ro=0,oa=e):ro=0,Sn(),null}function ur(){if(an!==null){var e=qd(Xl),t=ft.transition,n=Q;try{if(ft.transition=null,Q=16>e?16:e,an===null)var r=!1;else{if(e=an,an=null,Xl=0,V&6)throw Error(R(331));var o=V;for(V|=4,P=e.current;P!==null;){var l=P,i=l.child;if(P.flags&16){var s=l.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(P=u;P!==null;){var f=P;switch(f.tag){case 0:case 11:case 15:to(8,f,l)}var d=f.child;if(d!==null)d.return=f,P=d;else for(;P!==null;){f=P;var v=f.sibling,w=f.return;if(up(f),f===u){P=null;break}if(v!==null){v.return=w,P=v;break}P=w}}}var _=l.alternate;if(_!==null){var g=_.child;if(g!==null){_.child=null;do{var E=g.sibling;g.sibling=null,g=E}while(g!==null)}}P=l}}if(l.subtreeFlags&2064&&i!==null)i.return=l,P=i;else e:for(;P!==null;){if(l=P,l.flags&2048)switch(l.tag){case 0:case 11:case 15:to(9,l,l.return)}var h=l.sibling;if(h!==null){h.return=l.return,P=h;break e}P=l.return}}var p=e.current;for(P=p;P!==null;){i=P;var m=i.child;if(i.subtreeFlags&2064&&m!==null)m.return=i,P=m;else e:for(i=p;P!==null;){if(s=P,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:vi(9,s)}}catch(x){ae(s,s.return,x)}if(s===i){P=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,P=S;break e}P=s.return}}if(V=o,Sn(),Pt&&typeof Pt.onPostCommitFiberRoot=="function")try{Pt.onPostCommitFiberRoot(ai,e)}catch{}r=!0}return r}finally{Q=n,ft.transition=t}}return!1}function bc(e,t,n){t=vr(n,t),t=Jf(e,t,1),e=pn(e,t,1),t=Me(),e!==null&&(Lo(e,1,t),Ke(e,t))}function ae(e,t,n){if(e.tag===3)bc(e,e,n);else for(;t!==null;){if(t.tag===3){bc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(hn===null||!hn.has(r))){e=vr(n,e),e=Zf(t,e,1),t=pn(t,e,1),e=Me(),t!==null&&(Lo(t,1,e),Ke(t,e));break}}t=t.return}}function Yv(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Me(),e.pingedLanes|=e.suspendedLanes&n,_e===e&&(Ee&n)===n&&(ve===4||ve===3&&(Ee&130023424)===Ee&&500>ce()-Ja?Tn(e,0):qa|=n),Ke(e,t)}function wp(e,t){t===0&&(e.mode&1?(t=Yo,Yo<<=1,!(Yo&130023424)&&(Yo=4194304)):t=1);var n=Me();e=Ht(e,t),e!==null&&(Lo(e,t,n),Ke(e,n))}function Xv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wp(e,n)}function Gv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),wp(e,n)}var _p;_p=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,zv(e,t,n);He=!!(e.flags&131072)}else He=!1,te&&t.flags&1048576&&Ef(t,bl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xl(e,t),e=t.pendingProps;var o=fr(t,Le.current);ar(t,n),o=Wa(null,t,r,e,o,n);var l=Ka();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(l=!0,Bl(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ba(t),o.updater=mi,t.stateNode=o,o._reactInternals=t,Ks(t,r,e,n),t=Xs(null,t,r,!0,l,n)):(t.tag=0,te&&l&&Ia(t),Oe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Jv(r),e=vt(r,e),o){case 0:t=Ys(null,t,r,e,n);break e;case 1:t=Lc(null,t,r,e,n);break e;case 11:t=Tc(null,t,r,e,n);break e;case 14:t=Dc(null,t,r,vt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),Ys(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),Lc(e,t,r,o,n);case 3:e:{if(rp(t),e===null)throw Error(R(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Lf(e,t),Hl(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=vr(Error(R(423)),t),t=jc(e,t,r,n,o);break e}else if(r!==o){o=vr(Error(R(424)),t),t=jc(e,t,r,n,o);break e}else for(Ze=fn(t.stateNode.containerInfo.firstChild),et=t,te=!0,gt=null,n=Tf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pr(),r===o){t=Vt(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return jf(t),e===null&&Hs(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Bs(r,o)?i=null:l!==null&&Bs(r,l)&&(t.flags|=32),np(e,t),Oe(e,t,i,n),t.child;case 6:return e===null&&Hs(t),null;case 13:return op(e,t,n);case 4:return Fa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hr(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),Tc(e,t,r,o,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,q(Fl,r._currentValue),r._currentValue=i,l!==null)if(xt(l.value,i)){if(l.children===o.children&&!Ve.current){t=Vt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){i=l.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=bt(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Vs(l.return,n,t),s.lanes|=n;break}a=a.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(R(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Vs(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Oe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ar(t,n),o=pt(o),r=r(o),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,o=vt(r,t.pendingProps),o=vt(r.type,o),Dc(e,t,r,o,n);case 15:return ep(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),xl(e,t),t.tag=1,We(r)?(e=!0,Bl(t)):e=!1,ar(t,n),qf(t,r,o),Ks(t,r,o,n),Xs(null,t,r,!0,e,n);case 19:return lp(e,t,n);case 22:return tp(e,t,n)}throw Error(R(156,t.tag))};function xp(e,t){return Qd(e,t)}function qv(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 dt(e,t,n,r){return new qv(e,t,n,r)}function nu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jv(e){if(typeof e=="function")return nu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xa)return 11;if(e===Sa)return 14}return 2}function vn(e,t){var n=e.alternate;return n===null?(n=dt(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 El(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")nu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Kn:return Dn(n.children,o,l,t);case _a:i=8,o|=8;break;case vs:return e=dt(12,n,t,o|2),e.elementType=vs,e.lanes=l,e;case ys:return e=dt(13,n,t,o),e.elementType=ys,e.lanes=l,e;case gs:return e=dt(19,n,t,o),e.elementType=gs,e.lanes=l,e;case Ld:return gi(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Td:i=10;break e;case Dd:i=9;break e;case xa:i=11;break e;case Sa:i=14;break e;case tn:i=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=dt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function Dn(e,t,n,r){return e=dt(7,e,r,t),e.lanes=n,e}function gi(e,t,n,r){return e=dt(22,e,r,t),e.elementType=Ld,e.lanes=n,e.stateNode={isHidden:!1},e}function os(e,t,n){return e=dt(6,e,null,t),e.lanes=n,e}function ls(e,t,n){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zv(e,t,n,r,o){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=$i(0),this.expirationTimes=$i(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$i(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ru(e,t,n,r,o,l,i,s,a){return e=new Zv(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=dt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ba(l),e}function ey(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Wn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Sp(e){if(!e)return gn;e=e._reactInternals;e:{if(zn(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(We(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(We(n))return Sf(e,n,t)}return t}function Cp(e,t,n,r,o,l,i,s,a){return e=ru(n,r,!0,e,o,l,i,s,a),e.context=Sp(null),n=e.current,r=Me(),o=mn(n),l=bt(r,o),l.callback=t??null,pn(n,l,o),e.current.lanes=o,Lo(e,o,r),Ke(e,r),e}function wi(e,t,n,r){var o=t.current,l=Me(),i=mn(o);return n=Sp(n),t.context===null?t.context=n:t.pendingContext=n,t=bt(l,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=pn(o,t,i),e!==null&&(_t(e,o,i,l),gl(e,o,i)),i}function ql(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 Fc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ou(e,t){Fc(e,t),(e=e.alternate)&&Fc(e,t)}function ty(){return null}var Ep=typeof reportError=="function"?reportError:function(e){console.error(e)};function lu(e){this._internalRoot=e}_i.prototype.render=lu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));wi(e,t,null,null)};_i.prototype.unmount=lu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;On(function(){wi(null,e,null,null)}),t[Ut]=null}};function _i(e){this._internalRoot=e}_i.prototype.unstable_scheduleHydration=function(e){if(e){var t=ef();e={blockedOn:null,target:e,priority:t};for(var n=0;n<on.length&&t!==0&&t<on[n].priority;n++);on.splice(n,0,e),n===0&&nf(e)}};function iu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Uc(){}function ny(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var u=ql(i);l.call(u)}}var i=Cp(t,r,e,0,null,!1,!1,"",Uc);return e._reactRootContainer=i,e[Ut]=i.current,yo(e.nodeType===8?e.parentNode:e),On(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=ql(a);s.call(u)}}var a=ru(e,0,!1,null,null,!1,!1,"",Uc);return e._reactRootContainer=a,e[Ut]=a.current,yo(e.nodeType===8?e.parentNode:e),On(function(){wi(t,a,n,r)}),a}function Si(e,t,n,r,o){var l=n._reactRootContainer;if(l){var i=l;if(typeof o=="function"){var s=o;o=function(){var a=ql(i);s.call(a)}}wi(t,i,e,o)}else i=ny(n,t,e,o,r);return ql(i)}Jd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Kr(t.pendingLanes);n!==0&&(ka(t,n|1),Ke(t,ce()),!(V&6)&&(yr=ce()+500,Sn()))}break;case 13:On(function(){var r=Ht(e,1);if(r!==null){var o=Me();_t(r,e,1,o)}}),ou(e,1)}};Na=function(e){if(e.tag===13){var t=Ht(e,134217728);if(t!==null){var n=Me();_t(t,e,134217728,n)}ou(e,134217728)}};Zd=function(e){if(e.tag===13){var t=mn(e),n=Ht(e,t);if(n!==null){var r=Me();_t(n,e,t,r)}ou(e,t)}};ef=function(){return Q};tf=function(e,t){var n=Q;try{return Q=e,t()}finally{Q=n}};Ts=function(e,t,n){switch(t){case"input":if(xs(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 o=fi(r);if(!o)throw Error(R(90));Pd(r),xs(r,o)}}}break;case"textarea":Od(e,n);break;case"select":t=n.value,t!=null&&or(e,!!n.multiple,t,!1)}};Fd=Za;Ud=On;var ry={usingClientEntryPoint:!1,Events:[Po,Gn,fi,$d,bd,Za]},$r={findFiberByHostInstance:kn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},oy={bundleType:$r.bundleType,version:$r.version,rendererPackageName:$r.rendererPackageName,rendererConfig:$r.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Kt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Wd(e),e===null?null:e.stateNode},findFiberByHostInstance:$r.findFiberByHostInstance||ty,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 ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ll.isDisabled&&ll.supportsFiber)try{ai=ll.inject(oy),Pt=ll}catch{}}nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ry;nt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!iu(t))throw Error(R(200));return ey(e,t,null,n)};nt.createRoot=function(e,t){if(!iu(e))throw Error(R(299));var n=!1,r="",o=Ep;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=ru(e,1,!1,null,null,n,!1,r,o),e[Ut]=t.current,yo(e.nodeType===8?e.parentNode:e),new lu(t)};nt.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(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Wd(t),e=e===null?null:e.stateNode,e};nt.flushSync=function(e){return On(e)};nt.hydrate=function(e,t,n){if(!xi(t))throw Error(R(200));return Si(null,e,t,!0,n)};nt.hydrateRoot=function(e,t,n){if(!iu(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",i=Ep;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Cp(t,null,e,1,n??null,o,!1,l,i),e[Ut]=t.current,yo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new _i(t)};nt.render=function(e,t,n){if(!xi(t))throw Error(R(200));return Si(null,e,t,!1,n)};nt.unmountComponentAtNode=function(e){if(!xi(e))throw Error(R(40));return e._reactRootContainer?(On(function(){Si(null,null,e,!1,function(){e._reactRootContainer=null,e[Ut]=null})}),!0):!1};nt.unstable_batchedUpdates=Za;nt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!xi(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return Si(e,t,n,!1,r)};nt.version="18.3.1-next-f1338f8080-20240426";function kp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kp)}catch(e){console.error(e)}}kp(),Ed.exports=nt;var rr=Ed.exports,Hc=rr;hs.createRoot=Hc.createRoot,hs.hydrateRoot=Hc.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 Vc="popstate";function Wc(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function ly(e={}){function t(r,o){var u;let l=(u=o.state)==null?void 0:u.masked,{pathname:i,search:s,hash:a}=l||r.location;return sa("",{pathname:i,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default",l?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,o){return typeof o=="string"?o:No(o)}return sy(t,n,null,e)}function ne(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function St(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iy(){return Math.random().toString(36).substring(2,10)}function Kc(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 sa(e,t,n=null,r,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?xr(t):t,state:n,key:t&&t.key||r||iy(),unstable_mask:o}}function No({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 xr(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 sy(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:l=!1}=r,i=o.history,s="POP",a=null,u=f();u==null&&(u=0,i.replaceState({...i.state,idx:u},""));function f(){return(i.state||{idx:null}).idx}function d(){s="POP";let E=f(),h=E==null?null:E-u;u=E,a&&a({action:s,location:g.location,delta:h})}function v(E,h){s="PUSH";let p=Wc(E)?E:sa(g.location,E,h);u=f()+1;let m=Kc(p,u),S=g.createHref(p.unstable_mask||p);try{i.pushState(m,"",S)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;o.location.assign(S)}l&&a&&a({action:s,location:g.location,delta:1})}function w(E,h){s="REPLACE";let p=Wc(E)?E:sa(g.location,E,h);u=f();let m=Kc(p,u),S=g.createHref(p.unstable_mask||p);i.replaceState(m,"",S),l&&a&&a({action:s,location:g.location,delta:0})}function _(E){return ay(E)}let g={get action(){return s},get location(){return e(o,i)},listen(E){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(Vc,d),a=E,()=>{o.removeEventListener(Vc,d),a=null}},createHref(E){return t(o,E)},createURL:_,encodeLocation(E){let h=_(E);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:v,replace:w,go(E){return i.go(E)}};return g}function ay(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ne(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:No(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Np(e,t,n="/"){return uy(e,t,n,!1)}function uy(e,t,n,r){let o=typeof t=="string"?xr(t):t,l=Wt(o.pathname||"/",n);if(l==null)return null;let i=Rp(e);cy(i);let s=null;for(let a=0;s==null&&a<i.length;++a){let u=xy(l);s=wy(i[a],u,r)}return s}function Rp(e,t=[],n=[],r="",o=!1){let l=(i,s,a=o,u)=>{let f={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&a)return;ne(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let d=Ot([r,f.relativePath]),v=n.concat(f);i.children&&i.children.length>0&&(ne(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Rp(i.children,t,v,d,a)),!(i.path==null&&!i.index)&&t.push({path:d,score:yy(d,i.index),routesMeta:v})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))l(i,s);else for(let u of Tp(i.path))l(i,s,!0,u)}),t}function Tp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return o?[l,""]:[l];let i=Tp(r.join("/")),s=[];return s.push(...i.map(a=>a===""?l:[l,a].join("/"))),o&&s.push(...i),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function cy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gy(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var dy=/^:[\w-]+$/,fy=3,py=2,hy=1,my=10,vy=-2,Qc=e=>e==="*";function yy(e,t){let n=e.split("/"),r=n.length;return n.some(Qc)&&(r+=vy),t&&(r+=py),n.filter(o=>!Qc(o)).reduce((o,l)=>o+(dy.test(l)?fy:l===""?hy:my),r)}function gy(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function wy(e,t,n=!1){let{routesMeta:r}=e,o={},l="/",i=[];for(let s=0;s<r.length;++s){let a=r[s],u=s===r.length-1,f=l==="/"?t:t.slice(l.length)||"/",d=Jl({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},f),v=a.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=Jl({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},f)),!d)return null;Object.assign(o,d.params),i.push({params:o,pathname:Ot([l,d.pathname]),pathnameBase:ky(Ot([l,d.pathnameBase])),route:v}),d.pathnameBase!=="/"&&(l=Ot([l,d.pathnameBase]))}return i}function Jl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=_y(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let l=o[0],i=l.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:d},v)=>{if(f==="*"){let _=s[v]||"";i=l.slice(0,l.length-_.length).replace(/(.)\/+$/,"$1")}const w=s[v];return d&&!w?u[f]=void 0:u[f]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:i,pattern:e}}function _y(e,t=!1,n=!0){St(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,a,u,f)=>{if(r.push({paramName:s,isOptional:a!=null}),a){let d=f.charAt(u+i.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function xy(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return St(!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 Wt(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 Sy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Cy(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?xr(e):e,l;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?l=Yc(n.substring(1),"/"):l=Yc(n,t)):l=t,{pathname:l,search:Ny(r),hash:Ry(o)}}function Yc(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function is(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 Ey(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function su(e){let t=Ey(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Ci(e,t,n,r=!1){let o;typeof e=="string"?o=xr(e):(o={...e},ne(!o.pathname||!o.pathname.includes("?"),is("?","pathname","search",o)),ne(!o.pathname||!o.pathname.includes("#"),is("#","pathname","hash",o)),ne(!o.search||!o.search.includes("#"),is("#","search","hash",o)));let l=e===""||o.pathname==="",i=l?"/":o.pathname,s;if(i==null)s=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),d-=1;o.pathname=v.join("/")}s=d>=0?t[d]:"/"}let a=Cy(o,s),u=i&&i!=="/"&&i.endsWith("/"),f=(l||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||f)&&(a.pathname+="/"),a}var Ot=e=>e.join("/").replace(/\/\/+/g,"/"),ky=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ny=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ry=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Ty=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 Dy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Ly(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Dp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Lp(e,t){let n=e;if(typeof n!="string"||!Sy.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(Dp)try{let l=new URL(window.location.href),i=n.startsWith("//")?new URL(l.protocol+n):new URL(n),s=Wt(i.pathname,t);i.origin===l.origin&&s!=null?n=s+i.search+i.hash:o=!0}catch{St(!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:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var jp=["POST","PUT","PATCH","DELETE"];new Set(jp);var jy=["GET",...jp];new Set(jy);var Sr=c.createContext(null);Sr.displayName="DataRouter";var Ei=c.createContext(null);Ei.displayName="DataRouterState";var Py=c.createContext(!1),Pp=c.createContext({isTransitioning:!1});Pp.displayName="ViewTransition";var Iy=c.createContext(new Map);Iy.displayName="Fetchers";var Oy=c.createContext(null);Oy.displayName="Await";var ot=c.createContext(null);ot.displayName="Navigation";var Oo=c.createContext(null);Oo.displayName="Location";var kt=c.createContext({outlet:null,matches:[],isDataRoute:!1});kt.displayName="Route";var au=c.createContext(null);au.displayName="RouteError";var Ip="REACT_ROUTER_ERROR",My="REDIRECT",Ay="ROUTE_ERROR_RESPONSE";function zy(e){if(e.startsWith(`${Ip}:${My}:{`))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 By(e){if(e.startsWith(`${Ip}:${Ay}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Ty(t.status,t.statusText,t.data)}catch{}}function $y(e,{relative:t}={}){ne(Cr(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=c.useContext(ot),{hash:o,pathname:l,search:i}=Ao(e,{relative:t}),s=l;return n!=="/"&&(s=l==="/"?n:Ot([n,l])),r.createHref({pathname:s,search:i,hash:o})}function Cr(){return c.useContext(Oo)!=null}function Qt(){return ne(Cr(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(Oo).location}var Op="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Mp(e){c.useContext(ot).static||c.useLayoutEffect(e)}function Mo(){let{isDataRoute:e}=c.useContext(kt);return e?Jy():by()}function by(){ne(Cr(),"useNavigate() may be used only in the context of a <Router> component.");let e=c.useContext(Sr),{basename:t,navigator:n}=c.useContext(ot),{matches:r}=c.useContext(kt),{pathname:o}=Qt(),l=JSON.stringify(su(r)),i=c.useRef(!1);return Mp(()=>{i.current=!0}),c.useCallback((a,u={})=>{if(St(i.current,Op),!i.current)return;if(typeof a=="number"){n.go(a);return}let f=Ci(a,JSON.parse(l),o,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Ot([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,l,o,e])}c.createContext(null);function uu(){let{matches:e}=c.useContext(kt),t=e[e.length-1];return t?t.params:{}}function Ao(e,{relative:t}={}){let{matches:n}=c.useContext(kt),{pathname:r}=Qt(),o=JSON.stringify(su(n));return c.useMemo(()=>Ci(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function Fy(e,t){return Ap(e,t)}function Ap(e,t,n){var E;ne(Cr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=c.useContext(ot),{matches:o}=c.useContext(kt),l=o[o.length-1],i=l?l.params:{},s=l?l.pathname:"/",a=l?l.pathnameBase:"/",u=l&&l.route;{let h=u&&u.path||"";Bp(s,!u||h.endsWith("*")||h.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (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 f=Qt(),d;if(t){let h=typeof t=="string"?xr(t):t;ne(a==="/"||((E=h.pathname)==null?void 0:E.startsWith(a)),`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 "${a}" but pathname "${h.pathname}" was given in the \`location\` prop.`),d=h}else d=f;let v=d.pathname||"/",w=v;if(a!=="/"){let h=a.replace(/^\//,"").split("/");w="/"+v.replace(/^\//,"").split("/").slice(h.length).join("/")}let _=Np(e,{pathname:w});St(u||_!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),St(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.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 g=Ky(_&&_.map(h=>Object.assign({},h,{params:Object.assign({},i,h.params),pathname:Ot([a,r.encodeLocation?r.encodeLocation(h.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?a:Ot([a,r.encodeLocation?r.encodeLocation(h.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:h.pathnameBase])})),o,n);return t&&g?c.createElement(Oo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...d},navigationType:"POP"}},g):g}function Uy(){let e=qy(),t=Dy(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)",o={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=c.createElement(c.Fragment,null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:l},"ErrorBoundary")," or"," ",c.createElement("code",{style:l},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:o},n):null,i)}var Hy=c.createElement(Uy,null),zp=class extends c.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=By(e.digest);n&&(e=n)}let t=e!==void 0?c.createElement(kt.Provider,{value:this.props.routeContext},c.createElement(au.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?c.createElement(Vy,{error:e},t):t}};zp.contextType=Py;var ss=new WeakMap;function Vy({children:e,error:t}){let{basename:n}=c.useContext(ot);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=zy(t.digest);if(r){let o=ss.get(t);if(o)throw o;let l=Lp(r.location,n);if(Dp&&!ss.get(t))if(l.isExternal||r.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:r.replace}));throw ss.set(t,i),i}return c.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function Wy({routeContext:e,match:t,children:n}){let r=c.useContext(Sr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),c.createElement(kt.Provider,{value:e},n)}function Ky(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 o=e,l=r==null?void 0:r.errors;if(l!=null){let f=o.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);ne(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,f+1))}let i=!1,s=-1;if(n&&r){i=r.renderFallback;for(let f=0;f<o.length;f++){let d=o[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(s=f),d.route.id){let{loaderData:v,errors:w}=r,_=d.route.loader&&!v.hasOwnProperty(d.route.id)&&(!w||w[d.route.id]===void 0);if(d.route.lazy||_){n.isStatic&&(i=!0),s>=0?o=o.slice(0,s+1):o=[o[0]];break}}}}let a=n==null?void 0:n.onError,u=r&&a?(f,d)=>{var v,w;a(f,{location:r.location,params:((w=(v=r.matches)==null?void 0:v[0])==null?void 0:w.params)??{},unstable_pattern:Ly(r.matches),errorInfo:d})}:void 0;return o.reduceRight((f,d,v)=>{let w,_=!1,g=null,E=null;r&&(w=l&&d.route.id?l[d.route.id]:void 0,g=d.route.errorElement||Hy,i&&(s<0&&v===0?(Bp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,E=null):s===v&&(_=!0,E=d.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,v+1)),p=()=>{let m;return w?m=g:_?m=E:d.route.Component?m=c.createElement(d.route.Component,null):d.route.element?m=d.route.element:m=f,c.createElement(Wy,{match:d,routeContext:{outlet:f,matches:h,isDataRoute:r!=null},children:m})};return r&&(d.route.ErrorBoundary||d.route.errorElement||v===0)?c.createElement(zp,{location:r.location,revalidation:r.revalidation,component:g,error:w,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):p()},null)}function cu(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qy(e){let t=c.useContext(Sr);return ne(t,cu(e)),t}function Yy(e){let t=c.useContext(Ei);return ne(t,cu(e)),t}function Xy(e){let t=c.useContext(kt);return ne(t,cu(e)),t}function du(e){let t=Xy(e),n=t.matches[t.matches.length-1];return ne(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Gy(){return du("useRouteId")}function qy(){var r;let e=c.useContext(au),t=Yy("useRouteError"),n=du("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Jy(){let{router:e}=Qy("useNavigate"),t=du("useNavigate"),n=c.useRef(!1);return Mp(()=>{n.current=!0}),c.useCallback(async(o,l={})=>{St(n.current,Op),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...l}))},[e,t])}var Xc={};function Bp(e,t,n){!t&&!Xc[e]&&(Xc[e]=!0,St(!1,n))}c.memo(Zy);function Zy({routes:e,future:t,state:n,isStatic:r,onError:o}){return Ap(e,void 0,{state:n,isStatic:r,onError:o})}function eg({to:e,replace:t,state:n,relative:r}){ne(Cr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=c.useContext(ot);St(!o,"<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}=c.useContext(kt),{pathname:i}=Qt(),s=Mo(),a=Ci(e,su(l),i,r==="path"),u=JSON.stringify(a);return c.useEffect(()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})},[s,u,r,t,n]),null}function Yr(e){ne(!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 tg({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:l=!1,unstable_useTransitions:i}){ne(!Cr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),a=c.useMemo(()=>({basename:s,navigator:o,static:l,unstable_useTransitions:i,future:{}}),[s,o,l,i]);typeof n=="string"&&(n=xr(n));let{pathname:u="/",search:f="",hash:d="",state:v=null,key:w="default",unstable_mask:_}=n,g=c.useMemo(()=>{let E=Wt(u,s);return E==null?null:{location:{pathname:E,search:f,hash:d,state:v,key:w,unstable_mask:_},navigationType:r}},[s,u,f,d,v,w,r,_]);return St(g!=null,`<Router basename="${s}"> is not able to match the URL "${u}${f}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:c.createElement(ot.Provider,{value:a},c.createElement(Oo.Provider,{children:t,value:g}))}function ng({children:e,location:t}){return Fy(aa(e),t)}function aa(e,t=[]){let n=[];return c.Children.forEach(e,(r,o)=>{if(!c.isValidElement(r))return;let l=[...t,o];if(r.type===c.Fragment){n.push.apply(n,aa(r.props.children,l));return}ne(r.type===Yr,`[${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>`),ne(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={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&&(i.children=aa(r.props.children,l)),n.push(i)}),n}var kl="get",Nl="application/x-www-form-urlencoded";function ki(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function rg(e){return ki(e)&&e.tagName.toLowerCase()==="button"}function og(e){return ki(e)&&e.tagName.toLowerCase()==="form"}function lg(e){return ki(e)&&e.tagName.toLowerCase()==="input"}function ig(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sg(e,t){return e.button===0&&(!t||t==="_self")&&!ig(e)}var il=null;function ag(){if(il===null)try{new FormData(document.createElement("form"),0),il=!1}catch{il=!0}return il}var ug=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function as(e){return e!=null&&!ug.has(e)?(St(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Nl}"`),null):e}function cg(e,t){let n,r,o,l,i;if(og(e)){let s=e.getAttribute("action");r=s?Wt(s,t):null,n=e.getAttribute("method")||kl,o=as(e.getAttribute("enctype"))||Nl,l=new FormData(e)}else if(rg(e)||lg(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||s.getAttribute("action");if(r=a?Wt(a,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||kl,o=as(e.getAttribute("formenctype"))||as(s.getAttribute("enctype"))||Nl,l=new FormData(s,e),!ag()){let{name:u,type:f,value:d}=e;if(f==="image"){let v=u?`${u}.`:"";l.append(`${v}x`,"0"),l.append(`${v}y`,"0")}else u&&l.append(u,d)}}else{if(ki(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=kl,r=null,o=Nl,i=e}return l&&o==="text/plain"&&(i=l,l=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:l,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function fu(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dg(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&Wt(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function fg(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 pg(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 hg(e,t,n){let r=await Promise.all(e.map(async o=>{let l=t.routes[o.route.id];if(l){let i=await fg(l,n);return i.links?i.links():[]}return[]}));return gg(r.flat(1).filter(pg).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Gc(e,t,n,r,o,l){let i=(a,u)=>n[u]?a.route.id!==n[u].route.id:!0,s=(a,u)=>{var f;return n[u].pathname!==a.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==a.params["*"]};return l==="assets"?t.filter((a,u)=>i(a,u)||s(a,u)):l==="data"?t.filter((a,u)=>{var d;let f=r.routes[a.route.id];if(!f||!f.hasLoader)return!1;if(i(a,u)||s(a,u))return!0;if(a.route.shouldRevalidate){let v=a.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:a.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function mg(e,t,{includeHydrateFallback:n}={}){return vg(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let l=[o.module];return o.clientActionModule&&(l=l.concat(o.clientActionModule)),o.clientLoaderModule&&(l=l.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(l=l.concat(o.hydrateFallbackModule)),o.imports&&(l=l.concat(o.imports)),l}).flat(1))}function vg(e){return[...new Set(e)]}function yg(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function gg(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let l=JSON.stringify(yg(o));return n.has(l)||(n.add(l),r.push({key:l,link:o})),r},[])}function $p(){let e=c.useContext(Sr);return fu(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function wg(){let e=c.useContext(Ei);return fu(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var pu=c.createContext(void 0);pu.displayName="FrameworkContext";function bp(){let e=c.useContext(pu);return fu(e,"You must render this element inside a <HydratedRouter> element"),e}function _g(e,t){let n=c.useContext(pu),[r,o]=c.useState(!1),[l,i]=c.useState(!1),{onFocus:s,onBlur:a,onMouseEnter:u,onMouseLeave:f,onTouchStart:d}=t,v=c.useRef(null);c.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let g=h=>{h.forEach(p=>{i(p.isIntersecting)})},E=new IntersectionObserver(g,{threshold:.5});return v.current&&E.observe(v.current),()=>{E.disconnect()}}},[e]),c.useEffect(()=>{if(r){let g=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(g)}}},[r]);let w=()=>{o(!0)},_=()=>{o(!1),i(!1)};return n?e!=="intent"?[l,v,{}]:[l,v,{onFocus:br(s,w),onBlur:br(a,_),onMouseEnter:br(u,w),onMouseLeave:br(f,_),onTouchStart:br(d,w)}]:[!1,v,{}]}function br(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function xg({page:e,...t}){let{router:n}=$p(),r=c.useMemo(()=>Np(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?c.createElement(Cg,{page:e,matches:r,...t}):null}function Sg(e){let{manifest:t,routeModules:n}=bp(),[r,o]=c.useState([]);return c.useEffect(()=>{let l=!1;return hg(e,t,n).then(i=>{l||o(i)}),()=>{l=!0}},[e,t,n]),r}function Cg({page:e,matches:t,...n}){let r=Qt(),{future:o,manifest:l,routeModules:i}=bp(),{basename:s}=$p(),{loaderData:a,matches:u}=wg(),f=c.useMemo(()=>Gc(e,t,u,l,r,"data"),[e,t,u,l,r]),d=c.useMemo(()=>Gc(e,t,u,l,r,"assets"),[e,t,u,l,r]),v=c.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,E=!1;if(t.forEach(p=>{var S;let m=l.routes[p.route.id];!m||!m.hasLoader||(!f.some(x=>x.route.id===p.route.id)&&p.route.id in a&&((S=i[p.route.id])!=null&&S.shouldRevalidate)||m.hasClientLoader?E=!0:g.add(p.route.id))}),g.size===0)return[];let h=dg(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return E&&g.size>0&&h.searchParams.set("_routes",t.filter(p=>g.has(p.route.id)).map(p=>p.route.id).join(",")),[h.pathname+h.search]},[s,o.unstable_trailingSlashAwareDataRequests,a,r,l,f,t,e,i]),w=c.useMemo(()=>mg(d,l),[d,l]),_=Sg(d);return c.createElement(c.Fragment,null,v.map(g=>c.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),w.map(g=>c.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),_.map(({key:g,link:E})=>c.createElement("link",{key:g,nonce:n.nonce,...E,crossOrigin:E.crossOrigin??n.crossOrigin})))}function Eg(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var kg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{kg&&(window.__reactRouterVersion="7.13.1")}catch{}function Ng({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=c.useRef();o.current==null&&(o.current=ly({window:r,v5Compat:!0}));let l=o.current,[i,s]=c.useState({action:l.action,location:l.location}),a=c.useCallback(u=>{n===!1?s(u):c.startTransition(()=>s(u))},[n]);return c.useLayoutEffect(()=>l.listen(a),[l,a]),c.createElement(tg,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:l,unstable_useTransitions:n})}var Fp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zl=c.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:l,replace:i,unstable_mask:s,state:a,target:u,to:f,preventScrollReset:d,viewTransition:v,unstable_defaultShouldRevalidate:w,..._},g){let{basename:E,navigator:h,unstable_useTransitions:p}=c.useContext(ot),m=typeof f=="string"&&Fp.test(f),S=Lp(f,E);f=S.to;let x=$y(f,{relative:o}),N=Qt(),C=null;if(s){let ue=Ci(s,[],N.unstable_mask?N.unstable_mask.pathname:"/",!0);E!=="/"&&(ue.pathname=ue.pathname==="/"?E:Ot([E,ue.pathname])),C=h.createHref(ue)}let[k,T,L]=_g(r,_),z=Lg(f,{replace:i,unstable_mask:s,state:a,target:u,preventScrollReset:d,relative:o,viewTransition:v,unstable_defaultShouldRevalidate:w,unstable_useTransitions:p});function j(ue){t&&t(ue),ue.defaultPrevented||z(ue)}let b=!(S.isExternal||l),K=c.createElement("a",{..._,...L,href:(b?C:void 0)||S.absoluteURL||x,onClick:b?j:t,ref:Eg(g,T),target:u,"data-discover":!m&&n==="render"?"true":void 0});return k&&!m?c.createElement(c.Fragment,null,K,c.createElement(xg,{page:x})):K});Zl.displayName="Link";var Rg=c.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:l,to:i,viewTransition:s,children:a,...u},f){let d=Ao(i,{relative:u.relative}),v=Qt(),w=c.useContext(Ei),{navigator:_,basename:g}=c.useContext(ot),E=w!=null&&Mg(d)&&s===!0,h=_.encodeLocation?_.encodeLocation(d).pathname:d.pathname,p=v.pathname,m=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(p=p.toLowerCase(),m=m?m.toLowerCase():null,h=h.toLowerCase()),m&&g&&(m=Wt(m,g)||m);const S=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let x=p===h||!o&&p.startsWith(h)&&p.charAt(S)==="/",N=m!=null&&(m===h||!o&&m.startsWith(h)&&m.charAt(h.length)==="/"),C={isActive:x,isPending:N,isTransitioning:E},k=x?t:void 0,T;typeof r=="function"?T=r(C):T=[r,x?"active":null,N?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let L=typeof l=="function"?l(C):l;return c.createElement(Zl,{...u,"aria-current":k,className:T,ref:f,style:L,to:i,viewTransition:s},typeof a=="function"?a(C):a)});Rg.displayName="NavLink";var Tg=c.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:l,method:i=kl,action:s,onSubmit:a,relative:u,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:v,...w},_)=>{let{unstable_useTransitions:g}=c.useContext(ot),E=Ig(),h=Og(s,{relative:u}),p=i.toLowerCase()==="get"?"get":"post",m=typeof s=="string"&&Fp.test(s),S=x=>{if(a&&a(x),x.defaultPrevented)return;x.preventDefault();let N=x.nativeEvent.submitter,C=(N==null?void 0:N.getAttribute("formmethod"))||i,k=()=>E(N||x.currentTarget,{fetcherKey:t,method:C,navigate:n,replace:o,state:l,relative:u,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:v});g&&n!==!1?c.startTransition(()=>k()):k()};return c.createElement("form",{ref:_,method:p,action:h,onSubmit:r?a:S,...w,"data-discover":!m&&e==="render"?"true":void 0})});Tg.displayName="Form";function Dg(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Up(e){let t=c.useContext(Sr);return ne(t,Dg(e)),t}function Lg(e,{target:t,replace:n,unstable_mask:r,state:o,preventScrollReset:l,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:a,unstable_useTransitions:u}={}){let f=Mo(),d=Qt(),v=Ao(e,{relative:i});return c.useCallback(w=>{if(sg(w,t)){w.preventDefault();let _=n!==void 0?n:No(d)===No(v),g=()=>f(e,{replace:_,unstable_mask:r,state:o,preventScrollReset:l,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:a});u?c.startTransition(()=>g()):g()}},[d,f,v,n,r,o,t,e,l,i,s,a,u])}var jg=0,Pg=()=>`__${String(++jg)}__`;function Ig(){let{router:e}=Up("useSubmit"),{basename:t}=c.useContext(ot),n=Gy(),r=e.fetch,o=e.navigate;return c.useCallback(async(l,i={})=>{let{action:s,method:a,encType:u,formData:f,body:d}=cg(l,t);if(i.navigate===!1){let v=i.fetcherKey||Pg();await r(v,n,i.action||s,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:f,body:d,formMethod:i.method||a,formEncType:i.encType||u,flushSync:i.flushSync})}else await o(i.action||s,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:f,body:d,formMethod:i.method||a,formEncType:i.encType||u,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,o,t,n])}function Og(e,{relative:t}={}){let{basename:n}=c.useContext(ot),r=c.useContext(kt);ne(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),l={...Ao(e||".",{relative:t})},i=Qt();if(e==null){l.search=i.search;let s=new URLSearchParams(l.search),a=s.getAll("index");if(a.some(f=>f==="")){s.delete("index"),a.filter(d=>d).forEach(d=>s.append("index",d));let f=s.toString();l.search=f?`?${f}`:""}}return(!e||e===".")&&o.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Ot([n,l.pathname])),No(l)}function Mg(e,{relative:t}={}){let n=c.useContext(Pp);ne(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Up("useViewTransitionState"),o=Ao(e,{relative:t});if(!n.isTransitioning)return!1;let l=Wt(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Wt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Jl(o.pathname,i)!=null||Jl(o.pathname,l)!=null}const Hp=[{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)"}],Er="http://localhost:3001/api";async function sl(e,t){const n=await fetch(`${Er}${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 al={getAll:()=>sl("/boards"),create:(e,t=[])=>sl("/boards",{method:"POST",body:JSON.stringify({name:e,workspaces:t})}),update:(e,t,n)=>sl(`/boards/${e}`,{method:"PATCH",body:JSON.stringify({name:t,workspaces:n})}),delete:e=>sl(`/boards/${e}`,{method:"DELETE"})};async function Fr(e,t){const n=await fetch(`${Er}${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 Ur={getByBoard:e=>Fr(`/boards/${e}/columns`),create:(e,t)=>Fr(`/boards/${e}/columns`,{method:"POST",body:JSON.stringify({name:t})}),update:(e,t,n)=>Fr(`/boards/${e}/columns/${t}`,{method:"PATCH",body:JSON.stringify({name:n})}),reorder:(e,t)=>Fr(`/boards/${e}/columns/reorder`,{method:"PUT",body:JSON.stringify({orderedIds:t})}),delete:(e,t)=>Fr(`/boards/${e}/columns/${t}`,{method:"DELETE"})};async function Un(e,t){const n=await fetch(`${Er}${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 Hn={getByBoard:e=>Un(`/boards/${e}/tickets`),create:(e,t)=>Un(`/boards/${e}/tickets`,{method:"POST",body:JSON.stringify(t)}),update:(e,t,n)=>Un(`/boards/${e}/tickets/${t}`,{method:"PATCH",body:JSON.stringify(n)}),move:(e,t,n,r)=>Un(`/boards/${e}/tickets/${t}/move`,{method:"PUT",body:JSON.stringify({toColumnId:n,position:r})}),delete:(e,t)=>Un(`/boards/${e}/tickets/${t}`,{method:"DELETE"}),retry:(e,t)=>Un(`/boards/${e}/tickets/${t}/retry`,{method:"POST"})};async function qc(e,t){const n=await fetch(`${Er}${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 Jc={getByTicket:(e,t)=>qc(`/boards/${e}/tickets/${t}/comments`),create:(e,t,n)=>qc(`/boards/${e}/tickets/${t}/comments`,{method:"POST",body:JSON.stringify(n)})};async function ul(e,t){const n=await fetch(`${Er}${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 cl={getAllConfigs:e=>ul(`/boards/${e}/columns/configs`),getConfig:(e,t)=>ul(`/boards/${e}/columns/${t}/config`),upsert:(e,t,n)=>ul(`/boards/${e}/columns/${t}/config`,{method:"PUT",body:JSON.stringify(n)}),delete:(e,t)=>ul(`/boards/${e}/columns/${t}/config`,{method:"DELETE"})};function Ag(e,t){const n=c.useRef(t);n.current=t,c.useEffect(()=>{if(!e)return;const o=`${Er.replace(/\/api$/,"")}/api/events?boardId=${encodeURIComponent(e)}`,l=new EventSource(o),i=(s,a)=>{l.addEventListener(s,u=>{try{a(JSON.parse(u.data))}catch{}})};return i("ticket:created",s=>n.current({type:"ADD_TICKET",payload:s})),i("ticket:updated",s=>n.current({type:"UPDATE_TICKET",payload:s})),i("ticket:moved",s=>n.current({type:"UPDATE_TICKET",payload:s})),i("ticket:deleted",s=>n.current({type:"DELETE_TICKET",payload:s.id})),i("column:created",s=>n.current({type:"ADD_COLUMN",payload:s})),i("column:updated",s=>n.current({type:"UPDATE_COLUMN",payload:s})),i("columns:reordered",s=>n.current({type:"SET_COLUMNS",payload:s})),i("column:deleted",s=>n.current({type:"DELETE_COLUMN",payload:s.id})),i("board:created",s=>n.current({type:"ADD_BOARD",payload:s})),i("board:updated",s=>n.current({type:"UPDATE_BOARD",payload:s})),i("board:deleted",s=>n.current({type:"DELETE_BOARD",payload:s.id})),i("comment:added",s=>n.current({type:"ADD_COMMENT",payload:s})),i("comment:updated",s=>n.current({type:"UPDATE_COMMENT",payload:s})),i("column:config:updated",s=>n.current({type:"UPDATE_COLUMN_CONFIG",payload:s})),i("column:config:deleted",s=>n.current({type:"DELETE_COLUMN_CONFIG",payload:s.columnId})),l.onerror=()=>{console.warn("[SSE] Connection error; browser will auto-reconnect.")},()=>{l.close()}},[e])}const zg={boards:[],activeBoardId:null,columns:[],tickets:[],columnConfigs:[],comments:{},loading:!1,error:null};function Bg(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(o=>o.id===t.payload.id);return{...e,boards:r?e.boards.map(o=>o.id===t.payload.id?t.payload:o):[...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),o=e.activeBoardId===t.payload?((n=r[0])==null?void 0:n.id)??null:e.activeBoardId;return{...e,boards:r,activeBoardId:o,columns:o===t.payload?[]:e.columns,tickets:o===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(o=>o.id===t.payload.id);return{...e,columns:r?e.columns.map(o=>o.id===t.payload.id?t.payload:o):[...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(o=>o.id===t.payload.id);return{...e,tickets:r?e.tickets.map(o=>o.id===t.payload.id?t.payload:o):[...e.tickets,t.payload]}}case"UPDATE_TICKET":return e.tickets.some(o=>o.id===t.payload.id)?{...e,tickets:e.tickets.map(o=>o.id===t.payload.id?t.payload:o)}:{...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:o,position:l}=t.payload,i=e.tickets.find(a=>a.id===r);if(!i)return e;const s={...i,column_id:o,position:l};return{...e,tickets:e.tickets.map(a=>a.id===r?s:a)}}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(o=>o.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(o=>o.id===t.payload.comment.id?t.payload.comment:o)}}}case"SET_COLUMN_CONFIGS":return{...e,columnConfigs:t.payload};case"UPDATE_COLUMN_CONFIG":{const r=e.columnConfigs.some(o=>o.column_id===t.payload.column_id);return{...e,columnConfigs:r?e.columnConfigs.map(o=>o.column_id===t.payload.column_id?t.payload:o):[...e.columnConfigs,t.payload]}}case"DELETE_COLUMN_CONFIG":return{...e,columnConfigs:e.columnConfigs.filter(r=>r.column_id!==t.payload)};default:return e}}const Vp=c.createContext(null);function $g({children:e}){const[t,n]=c.useReducer(Bg,zg);Ag(t.activeBoardId,n);const r=c.useCallback(async()=>{n({type:"SET_LOADING",payload:!0});try{const C=await al.getAll();n({type:"SET_BOARDS",payload:C})}catch{n({type:"SET_ERROR",payload:"error.load"})}finally{n({type:"SET_LOADING",payload:!1})}},[]),o=c.useCallback(async C=>{n({type:"SET_LOADING",payload:!0});try{const[k,T,L]=await Promise.all([Ur.getByBoard(C),Hn.getByBoard(C),cl.getAllConfigs(C)]);n({type:"SET_COLUMNS",payload:k}),n({type:"SET_TICKETS",payload:T}),n({type:"SET_COLUMN_CONFIGS",payload:L})}catch{n({type:"SET_ERROR",payload:"error.load"})}finally{n({type:"SET_LOADING",payload:!1})}},[]),l=c.useCallback(C=>{n({type:"SET_ACTIVE_BOARD",payload:C})},[]),i=c.useCallback(async(C,k=[])=>{const T=await al.create(C,k);return n({type:"ADD_BOARD",payload:T}),T},[]),s=c.useCallback(async(C,k,T)=>{const L=await al.update(C,k,T);n({type:"UPDATE_BOARD",payload:L})},[]),a=c.useCallback(async C=>{await al.delete(C),n({type:"DELETE_BOARD",payload:C})},[]),u=c.useCallback(async(C,k)=>{const T=await Ur.create(C,k);n({type:"ADD_COLUMN",payload:T})},[]),f=c.useCallback(async(C,k,T)=>{const L=await Ur.update(C,k,T);n({type:"UPDATE_COLUMN",payload:L})},[]),d=c.useCallback(async(C,k)=>{await Ur.reorder(C,k)},[]),v=c.useCallback(async(C,k)=>{await Ur.delete(C,k),n({type:"DELETE_COLUMN",payload:k})},[]),w=c.useCallback(async(C,k)=>{const T=await Hn.create(C,k);return n({type:"ADD_TICKET",payload:T}),T},[]),_=c.useCallback(async(C,k,T)=>{const L=await Hn.update(C,k,T);n({type:"UPDATE_TICKET",payload:L})},[]),g=c.useCallback(async(C,k,T,L)=>{n({type:"MOVE_TICKET",payload:{ticketId:k,toColumnId:T,position:L}}),await Hn.move(C,k,T,L)},[]),E=c.useCallback(async(C,k)=>{await Hn.delete(C,k),n({type:"DELETE_TICKET",payload:k})},[]),h=c.useCallback(async(C,k)=>{await Hn.retry(C,k)},[]),p=c.useCallback(async C=>{const k=await cl.getAllConfigs(C);n({type:"SET_COLUMN_CONFIGS",payload:k})},[]),m=c.useCallback(async(C,k)=>{const T=await Jc.getByTicket(C,k);n({type:"SET_COMMENTS",payload:{ticketId:k,comments:T}})},[]),S=c.useCallback(async(C,k,T,L)=>{const z=await Jc.create(C,k,{content:T,author:L});n({type:"ADD_COMMENT",payload:{ticketId:k,comment:z}})},[]),x=c.useCallback(async(C,k,T)=>{const L=await cl.upsert(C,k,T);n({type:"UPDATE_COLUMN_CONFIG",payload:L})},[]),N=c.useCallback(async(C,k)=>{await cl.delete(C,k),n({type:"DELETE_COLUMN_CONFIG",payload:k})},[]);return y.jsx(Vp.Provider,{value:{state:t,loadBoards:r,loadBoardData:o,selectBoard:l,createBoard:i,updateBoard:s,deleteBoard:a,createColumn:u,updateColumn:f,reorderColumns:d,deleteColumn:v,createTicket:w,updateTicket:_,moveTicket:g,deleteTicket:E,retryTicket:h,loadColumnConfigs:p,loadComments:m,addComment:S,updateColumnConfig:x,deleteColumnConfig:N},children:e})}function Mn(){const e=c.useContext(Vp);if(!e)throw new Error("useApp must be used inside AppProvider");return e}const bg={"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.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 Fg=bg;function M(e,t){return Fg[e]??e}const Ug="_sidebar_1y03c_1",Hg="_header_1y03c_23",Vg="_logo_1y03c_39",Wg="_section_1y03c_67",Kg="_sectionLabel_1y03c_81",Qg="_newBtn_1y03c_97",Yg="_nav_1y03c_129",Xg="_boardItem_1y03c_141",Gg="_boardBtn_1y03c_153",qg="_active_1y03c_189",Jg="_boardDot_1y03c_199",Zg="_actions_1y03c_225",e0="_action_1y03c_225",be={sidebar:Ug,header:Hg,logo:Vg,section:Wg,sectionLabel:Kg,newBtn:Qg,nav:Yg,boardItem:Xg,boardBtn:Gg,active:qg,boardDot:Jg,actions:Zg,action:e0};/**
|
|
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 t0={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 n0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),je=(e,t)=>{const n=c.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:s="",children:a,...u},f)=>c.createElement("svg",{ref:f,...t0,width:o,height:o,stroke:r,strokeWidth:i?Number(l)*24/Number(o):l,className:["lucide",`lucide-${n0(e)}`,s].join(" "),...u},[...t.map(([d,v])=>c.createElement(d,v)),...Array.isArray(a)?a:[a]]));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 oo=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 Wp=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 ei=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"}]]);/**
|
|
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 Kp=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"}]]);/**
|
|
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 Qp=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"}]]);/**
|
|
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 r0=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"}]]);/**
|
|
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 o0=je("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
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 l0=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"}]]);/**
|
|
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 Yp=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"}]]);/**
|
|
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 hu=je("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
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 i0=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"}]]);/**
|
|
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 s0=je("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
|
|
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 mu=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"}]]);/**
|
|
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 a0=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"}]]);/**
|
|
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 vu=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"}]]);/**
|
|
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 yu=je("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),u0="_overlay_1kuf8_1",c0="_dialog_1kuf8_45",d0="_message_1kuf8_91",f0="_actions_1kuf8_105",p0="_cancel_1kuf8_117",h0="_confirm_1kuf8_149",Vn={overlay:u0,dialog:c0,message:d0,actions:f0,cancel:p0,confirm:h0};function gu({message:e,confirmLabel:t,onConfirm:n,onCancel:r}){return c.useEffect(()=>{function o(l){l.key==="Escape"&&r(),l.key==="Enter"&&n()}return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[n,r]),y.jsx("div",{className:Vn.overlay,onClick:r,children:y.jsxs("div",{className:Vn.dialog,onClick:o=>o.stopPropagation(),children:[y.jsx("p",{className:Vn.message,children:e}),y.jsxs("div",{className:Vn.actions,children:[y.jsx("button",{className:Vn.cancel,onClick:r,children:M("action.cancel")}),y.jsx("button",{className:Vn.confirm,onClick:n,children:t})]})]})})}const m0="_overlay_e33j2_1",v0="_modal_e33j2_47",y0="_header_e33j2_99",g0="_closeBtn_e33j2_129",w0="_content_e33j2_167",_0="_field_e33j2_181",x0="_input_e33j2_209",S0="_footer_e33j2_469",C0="_cancelBtn_e33j2_487",E0="_saveBtn_e33j2_519",Dt={overlay:m0,modal:v0,header:y0,closeBtn:g0,content:w0,field:_0,input:x0,footer:S0,cancelBtn:C0,saveBtn:E0};function ua({board:e,onSave:t,onCancel:n}){const[r,o]=c.useState((e==null?void 0:e.name)??""),l=()=>{r.trim()&&t(r.trim(),[])};return y.jsx("div",{className:Dt.overlay,onClick:n,children:y.jsxs("div",{className:Dt.modal,onClick:i=>i.stopPropagation(),children:[y.jsxs("div",{className:Dt.header,children:[y.jsx("h2",{children:M(e?"board.edit":"nav.new_board")}),y.jsx("button",{className:Dt.closeBtn,onClick:n,children:y.jsx(yu,{size:20})})]}),y.jsx("div",{className:Dt.content,children:y.jsxs("div",{className:Dt.field,children:[y.jsx("label",{children:M("board.name")}),y.jsx("input",{type:"text",value:r,onChange:i=>o(i.target.value),placeholder:M("board.rename_placeholder"),className:Dt.input,autoFocus:!0})]})}),y.jsxs("div",{className:Dt.footer,children:[y.jsx("button",{className:Dt.cancelBtn,onClick:n,children:M("action.cancel")}),y.jsx("button",{className:Dt.saveBtn,onClick:l,disabled:!r.trim(),children:M("action.save")})]})]})})}function k0(){const{boardId:e}=uu(),t=Mo(),{state:n,createBoard:r,updateBoard:o,deleteBoard:l}=Mn(),[i,s]=c.useState(null),[a,u]=c.useState(null),[f,d]=c.useState(null),[v,w]=c.useState(!1);async function _(g,E){const h=await r(g.trim(),E);w(!1),t(`/boards/${h.id}`)}return y.jsxs("aside",{className:be.sidebar,children:[y.jsx("div",{className:be.header,children:y.jsxs(Zl,{to:"/",className:be.logo,children:[y.jsx(Qp,{size:16}),M("app.name")]})}),y.jsxs("div",{className:be.section,children:[y.jsx("span",{className:be.sectionLabel,children:M("nav.boards")}),y.jsx("button",{className:be.newBtn,onClick:()=>w(!0),title:M("nav.new_board"),children:y.jsx(hu,{size:14})})]}),y.jsx("nav",{className:be.nav,children:n.boards.map(g=>y.jsxs("div",{className:`${be.boardItem} ${e===g.id?be.active:""}`,onMouseEnter:()=>s(g.id),onMouseLeave:()=>s(null),children:[y.jsxs(Zl,{to:`/boards/${g.id}`,className:be.boardBtn,children:[y.jsx("span",{className:be.boardDot}),y.jsx("span",{className:"truncate",children:g.name})]}),i===g.id&&y.jsxs("div",{className:be.actions,children:[y.jsx("button",{className:be.action,onClick:()=>u(g),title:M("board.rename"),children:y.jsx(Yp,{size:12})}),y.jsx("button",{className:be.action,onClick:()=>d(g),title:M("board.delete"),children:y.jsx(vu,{size:12})})]})]},g.id))}),v&&y.jsx(ua,{onSave:_,onCancel:()=>w(!1)}),a&&y.jsx(ua,{board:a,onSave:async(g,E)=>{await o(a.id,g,E),u(null)},onCancel:()=>u(null)}),f&&y.jsx(gu,{message:M("confirm.delete_board"),confirmLabel:M("action.confirm_delete"),onConfirm:async()=>{await l(f.id),d(null)},onCancel:()=>d(null)})]})}const N0="_badge_1qhnp_1",R0="_sm_1qhnp_21",T0="_md_1qhnp_31",Zc={badge:N0,sm:R0,md:T0};function Xp({priority:e,size:t="sm"}){const n=Hp.find(r=>r.value===e);return n?y.jsx("span",{className:`${Zc.badge} ${Zc[t]}`,style:{"--priority-color":n.colorVar},children:M(n.labelKey)}):null}const D0="_card_9xxmw_1",L0="_dragging_9xxmw_35",j0="_needsApprovalCard_9xxmw_45",P0="_title_9xxmw_95",I0="_description_9xxmw_111",O0="_footer_9xxmw_135",M0="_left_9xxmw_149",A0="_inspectBtn_9xxmw_161",z0="_processingBtn_9xxmw_185",B0="_doneBtn_9xxmw_203",$0="_blockedBtn_9xxmw_221",b0="_needsApprovalBtn_9xxmw_239",F0="_processingIcon_9xxmw_257",Ie={card:D0,dragging:L0,needsApprovalCard:j0,title:P0,description:I0,footer:O0,left:M0,inspectBtn:A0,processingBtn:z0,doneBtn:B0,blockedBtn:$0,needsApprovalBtn:b0,processingIcon:F0};function U0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.useMemo(()=>r=>{t.forEach(o=>o(r))},t)}const Ni=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function kr(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function wu(e){return"nodeType"in e}function Be(e){var t,n;return e?kr(e)?e:wu(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function _u(e){const{Document:t}=Be(e);return e instanceof t}function zo(e){return kr(e)?!1:e instanceof Be(e).HTMLElement}function Gp(e){return e instanceof Be(e).SVGElement}function Nr(e){return e?kr(e)?e.document:wu(e)?_u(e)?e:zo(e)||Gp(e)?e.ownerDocument:document:document:document}const Ct=Ni?c.useLayoutEffect:c.useEffect;function Ri(e){const t=c.useRef(e);return Ct(()=>{t.current=e}),c.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function H0(){const e=c.useRef(null),t=c.useCallback((r,o)=>{e.current=setInterval(r,o)},[]),n=c.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Ro(e,t){t===void 0&&(t=[e]);const n=c.useRef(e);return Ct(()=>{n.current!==e&&(n.current=e)},t),n}function Bo(e,t){const n=c.useRef();return c.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function ti(e){const t=Ri(e),n=c.useRef(null),r=c.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function ni(e){const t=c.useRef();return c.useEffect(()=>{t.current=e},[e]),t.current}let us={};function $o(e,t){return c.useMemo(()=>{if(t)return t;const n=us[e]==null?0:us[e]+1;return us[e]=n,e+"-"+n},[e,t])}function qp(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((l,i)=>{const s=Object.entries(i);for(const[a,u]of s){const f=l[a];f!=null&&(l[a]=f+e*u)}return l},{...t})}}const cr=qp(1),ri=qp(-1);function V0(e){return"clientX"in e&&"clientY"in e}function Ti(e){if(!e)return!1;const{KeyboardEvent:t}=Be(e.target);return t&&e instanceof t}function W0(e){if(!e)return!1;const{TouchEvent:t}=Be(e.target);return t&&e instanceof t}function oi(e){if(W0(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 V0(e)?{x:e.clientX,y:e.clientY}:null}const wn=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[wn.Translate.toString(e),wn.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),ed="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function K0(e){return e.matches(ed)?e:e.querySelector(ed)}const Q0={display:"none"};function Y0(e){let{id:t,value:n}=e;return G.createElement("div",{id:t,style:Q0},n)}function X0(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return G.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function G0(){const[e,t]=c.useState("");return{announce:c.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Jp=c.createContext(null);function q0(e){const t=c.useContext(Jp);c.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function J0(){const[e]=c.useState(()=>new Set),t=c.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[c.useCallback(r=>{let{type:o,event:l}=r;e.forEach(i=>{var s;return(s=i[o])==null?void 0:s.call(i,l)})},[e]),t]}const Z0={draggable:`
|
|
142
|
+
To pick up a draggable item, press the space bar.
|
|
143
|
+
While dragging, use the arrow keys to move the item.
|
|
144
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
145
|
+
`},e1={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 t1(e){let{announcements:t=e1,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Z0}=e;const{announce:l,announcement:i}=G0(),s=$o("DndLiveRegion"),[a,u]=c.useState(!1);if(c.useEffect(()=>{u(!0)},[]),q0(c.useMemo(()=>({onDragStart(d){let{active:v}=d;l(t.onDragStart({active:v}))},onDragMove(d){let{active:v,over:w}=d;t.onDragMove&&l(t.onDragMove({active:v,over:w}))},onDragOver(d){let{active:v,over:w}=d;l(t.onDragOver({active:v,over:w}))},onDragEnd(d){let{active:v,over:w}=d;l(t.onDragEnd({active:v,over:w}))},onDragCancel(d){let{active:v,over:w}=d;l(t.onDragCancel({active:v,over:w}))}}),[l,t])),!a)return null;const f=G.createElement(G.Fragment,null,G.createElement(Y0,{id:r,value:o.draggable}),G.createElement(X0,{id:s,announcement:i}));return n?rr.createPortal(f,n):f}var me;(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"})(me||(me={}));function li(){}function n1(e,t){return c.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function r1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Et=Object.freeze({x:0,y:0});function o1(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function l1(e,t){const n=oi(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 i1(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function s1(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function a1(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function td(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 u1=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=td(t,t.left,t.top),l=[];for(const i of r){const{id:s}=i,a=n.get(s);if(a){const u=o1(td(a),o);l.push({id:s,data:{droppableContainer:i,value:u}})}}return l.sort(i1)};function c1(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height),i=o-r,s=l-n;if(r<o&&n<l){const a=t.width*t.height,u=e.width*e.height,f=i*s,d=f/(a+u-f);return Number(d.toFixed(4))}return 0}const d1=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const l of r){const{id:i}=l,s=n.get(i);if(s){const a=c1(s,t);a>0&&o.push({id:i,data:{droppableContainer:l,value:a}})}}return o.sort(s1)};function f1(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Zp(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Et}function p1(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;l<r;l++)o[l-1]=arguments[l];return o.reduce((i,s)=>({...i,top:i.top+e*s.y,bottom:i.bottom+e*s.y,left:i.left+e*s.x,right:i.right+e*s.x}),{...n})}}const h1=p1(1);function eh(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 m1(e,t,n){const r=eh(t);if(!r)return e;const{scaleX:o,scaleY:l,x:i,y:s}=r,a=e.left-i-(1-o)*parseFloat(n),u=e.top-s-(1-l)*parseFloat(n.slice(n.indexOf(" ")+1)),f=o?e.width/o:e.width,d=l?e.height/l:e.height;return{width:f,height:d,top:u,right:a+f,bottom:u+d,left:a}}const v1={ignoreTransform:!1};function Rr(e,t){t===void 0&&(t=v1);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:f}=Be(e).getComputedStyle(e);u&&(n=m1(n,u,f))}const{top:r,left:o,width:l,height:i,bottom:s,right:a}=n;return{top:r,left:o,width:l,height:i,bottom:s,right:a}}function nd(e){return Rr(e,{ignoreTransform:!0})}function y1(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function g1(e,t){return t===void 0&&(t=Be(e).getComputedStyle(e)),t.position==="fixed"}function w1(e,t){t===void 0&&(t=Be(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const l=t[o];return typeof l=="string"?n.test(l):!1})}function xu(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(_u(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!zo(o)||Gp(o)||n.includes(o))return n;const l=Be(e).getComputedStyle(o);return o!==e&&w1(o,l)&&n.push(o),g1(o,l)?n:r(o.parentNode)}return e?r(e):n}function th(e){const[t]=xu(e,1);return t??null}function cs(e){return!Ni||!e?null:kr(e)?e:wu(e)?_u(e)||e===Nr(e).scrollingElement?window:zo(e)?e:null:null}function nh(e){return kr(e)?e.scrollX:e.scrollLeft}function rh(e){return kr(e)?e.scrollY:e.scrollTop}function ca(e){return{x:nh(e),y:rh(e)}}var we;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(we||(we={}));function oh(e){return!Ni||!e?!1:e===document.scrollingElement}function lh(e){const t={x:0,y:0},n=oh(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,l=e.scrollLeft<=t.x,i=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:o,isLeft:l,isBottom:i,isRight:s,maxScroll:r,minScroll:t}}const _1={x:.2,y:.2};function x1(e,t,n,r,o){let{top:l,left:i,right:s,bottom:a}=n;r===void 0&&(r=10),o===void 0&&(o=_1);const{isTop:u,isBottom:f,isLeft:d,isRight:v}=lh(e),w={x:0,y:0},_={x:0,y:0},g={height:t.height*o.y,width:t.width*o.x};return!u&&l<=t.top+g.height?(w.y=we.Backward,_.y=r*Math.abs((t.top+g.height-l)/g.height)):!f&&a>=t.bottom-g.height&&(w.y=we.Forward,_.y=r*Math.abs((t.bottom-g.height-a)/g.height)),!v&&s>=t.right-g.width?(w.x=we.Forward,_.x=r*Math.abs((t.right-g.width-s)/g.width)):!d&&i<=t.left+g.width&&(w.x=we.Backward,_.x=r*Math.abs((t.left+g.width-i)/g.width)),{direction:w,speed:_}}function S1(e){if(e===document.scrollingElement){const{innerWidth:l,innerHeight:i}=window;return{top:0,left:0,right:l,bottom:i,width:l,height:i}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function ih(e){return e.reduce((t,n)=>cr(t,ca(n)),Et)}function C1(e){return e.reduce((t,n)=>t+nh(n),0)}function E1(e){return e.reduce((t,n)=>t+rh(n),0)}function sh(e,t){if(t===void 0&&(t=Rr),!e)return;const{top:n,left:r,bottom:o,right:l}=t(e);th(e)&&(o<=0||l<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const k1=[["x",["left","right"],C1],["y",["top","bottom"],E1]];class Su{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=xu(n),o=ih(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,i,s]of k1)for(const a of i)Object.defineProperty(this,a,{get:()=>{const u=s(r),f=o[l]-u;return this.rect[a]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class lo{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 o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function N1(e){const{EventTarget:t}=Be(e);return e instanceof t?e:Nr(e)}function ds(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 at;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(at||(at={}));function rd(e){e.preventDefault()}function R1(e){e.stopPropagation()}var W;(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"})(W||(W={}));const ah={start:[W.Space,W.Enter],cancel:[W.Esc],end:[W.Space,W.Enter,W.Tab]},T1=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case W.Right:return{...n,x:n.x+25};case W.Left:return{...n,x:n.x-25};case W.Down:return{...n,y:n.y+25};case W.Up:return{...n,y:n.y-25}}};class uh{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 lo(Nr(n)),this.windowListeners=new lo(Be(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(at.Resize,this.handleCancel),this.windowListeners.add(at.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(at.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&sh(r),n(Et)}handleKeyDown(t){if(Ti(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:l=ah,coordinateGetter:i=T1,scrollBehavior:s="smooth"}=o,{code:a}=t;if(l.end.includes(a)){this.handleEnd(t);return}if(l.cancel.includes(a)){this.handleCancel(t);return}const{collisionRect:u}=r.current,f=u?{x:u.left,y:u.top}:Et;this.referenceCoordinates||(this.referenceCoordinates=f);const d=i(t,{active:n,context:r.current,currentCoordinates:f});if(d){const v=ri(d,f),w={x:0,y:0},{scrollableAncestors:_}=r.current;for(const g of _){const E=t.code,{isTop:h,isRight:p,isLeft:m,isBottom:S,maxScroll:x,minScroll:N}=lh(g),C=S1(g),k={x:Math.min(E===W.Right?C.right-C.width/2:C.right,Math.max(E===W.Right?C.left:C.left+C.width/2,d.x)),y:Math.min(E===W.Down?C.bottom-C.height/2:C.bottom,Math.max(E===W.Down?C.top:C.top+C.height/2,d.y))},T=E===W.Right&&!p||E===W.Left&&!m,L=E===W.Down&&!S||E===W.Up&&!h;if(T&&k.x!==d.x){const z=g.scrollLeft+v.x,j=E===W.Right&&z<=x.x||E===W.Left&&z>=N.x;if(j&&!v.y){g.scrollTo({left:z,behavior:s});return}j?w.x=g.scrollLeft-z:w.x=E===W.Right?g.scrollLeft-x.x:g.scrollLeft-N.x,w.x&&g.scrollBy({left:-w.x,behavior:s});break}else if(L&&k.y!==d.y){const z=g.scrollTop+v.y,j=E===W.Down&&z<=x.y||E===W.Up&&z>=N.y;if(j&&!v.x){g.scrollTo({top:z,behavior:s});return}j?w.y=g.scrollTop-z:w.y=E===W.Down?g.scrollTop-x.y:g.scrollTop-N.y,w.y&&g.scrollBy({top:-w.y,behavior:s});break}}this.handleMove(t,cr(ri(d,this.referenceCoordinates),w))}}}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()}}uh.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ah,onActivation:o}=t,{active:l}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const s=l.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function od(e){return!!(e&&"distance"in e)}function ld(e){return!!(e&&"delay"in e)}class Cu{constructor(t,n,r){var o;r===void 0&&(r=N1(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:i}=l;this.props=t,this.events=n,this.document=Nr(i),this.documentListeners=new lo(this.document),this.listeners=new lo(r),this.windowListeners=new lo(Be(i)),this.initialCoordinates=(o=oi(l))!=null?o:Et,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(at.Resize,this.handleCancel),this.windowListeners.add(at.DragStart,rd),this.windowListeners.add(at.VisibilityChange,this.handleCancel),this.windowListeners.add(at.ContextMenu,rd),this.documentListeners.add(at.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ld(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(od(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:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(at.Click,R1,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(at.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:l}=this,{onMove:i,options:{activationConstraint:s}}=l;if(!o)return;const a=(n=oi(t))!=null?n:Et,u=ri(o,a);if(!r&&s){if(od(s)){if(s.tolerance!=null&&ds(u,s.tolerance))return this.handleCancel();if(ds(u,s.distance))return this.handleStart()}if(ld(s)&&ds(u,s.tolerance))return this.handleCancel();this.handlePending(s,u);return}t.cancelable&&t.preventDefault(),i(a)}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===W.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const D1={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Eu extends Cu{constructor(t){const{event:n}=t,r=Nr(n.target);super(t,D1,r)}}Eu.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 L1={move:{name:"mousemove"},end:{name:"mouseup"}};var da;(function(e){e[e.RightClick=2]="RightClick"})(da||(da={}));class j1 extends Cu{constructor(t){super(t,L1,Nr(t.event.target))}}j1.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===da.RightClick?!1:(r==null||r({event:n}),!0)}}];const fs={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class P1 extends Cu{constructor(t){super(t,fs)}static setup(){return window.addEventListener(fs.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(fs.move.name,t)};function t(){}}}P1.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var io;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(io||(io={}));var ii;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ii||(ii={}));function I1(e){let{acceleration:t,activator:n=io.Pointer,canScroll:r,draggingRect:o,enabled:l,interval:i=5,order:s=ii.TreeOrder,pointerCoordinates:a,scrollableAncestors:u,scrollableAncestorRects:f,delta:d,threshold:v}=e;const w=M1({delta:d,disabled:!l}),[_,g]=H0(),E=c.useRef({x:0,y:0}),h=c.useRef({x:0,y:0}),p=c.useMemo(()=>{switch(n){case io.Pointer:return a?{top:a.y,bottom:a.y,left:a.x,right:a.x}:null;case io.DraggableRect:return o}},[n,o,a]),m=c.useRef(null),S=c.useCallback(()=>{const N=m.current;if(!N)return;const C=E.current.x*h.current.x,k=E.current.y*h.current.y;N.scrollBy(C,k)},[]),x=c.useMemo(()=>s===ii.TreeOrder?[...u].reverse():u,[s,u]);c.useEffect(()=>{if(!l||!u.length||!p){g();return}for(const N of x){if((r==null?void 0:r(N))===!1)continue;const C=u.indexOf(N),k=f[C];if(!k)continue;const{direction:T,speed:L}=x1(N,k,p,t,v);for(const z of["x","y"])w[z][T[z]]||(L[z]=0,T[z]=0);if(L.x>0||L.y>0){g(),m.current=N,_(S,i),E.current=L,h.current=T;return}}E.current={x:0,y:0},h.current={x:0,y:0},g()},[t,S,r,g,l,i,JSON.stringify(p),JSON.stringify(w),_,u,x,f,JSON.stringify(v)])}const O1={x:{[we.Backward]:!1,[we.Forward]:!1},y:{[we.Backward]:!1,[we.Forward]:!1}};function M1(e){let{delta:t,disabled:n}=e;const r=ni(t);return Bo(o=>{if(n||!r||!o)return O1;const l={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[we.Backward]:o.x[we.Backward]||l.x===-1,[we.Forward]:o.x[we.Forward]||l.x===1},y:{[we.Backward]:o.y[we.Backward]||l.y===-1,[we.Forward]:o.y[we.Forward]||l.y===1}}},[n,t,r])}function A1(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Bo(o=>{var l;return t==null?null:(l=r??o)!=null?l:null},[r,t])}function z1(e,t){return c.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,l=o.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,r)}));return[...n,...l]},[]),[e,t])}var To;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(To||(To={}));var fa;(function(e){e.Optimized="optimized"})(fa||(fa={}));const id=new Map;function B1(e,t){let{dragging:n,dependencies:r,config:o}=t;const[l,i]=c.useState(null),{frequency:s,measure:a,strategy:u}=o,f=c.useRef(e),d=E(),v=Ro(d),w=c.useCallback(function(h){h===void 0&&(h=[]),!v.current&&i(p=>p===null?h:p.concat(h.filter(m=>!p.includes(m))))},[v]),_=c.useRef(null),g=Bo(h=>{if(d&&!n)return id;if(!h||h===id||f.current!==e||l!=null){const p=new Map;for(let m of e){if(!m)continue;if(l&&l.length>0&&!l.includes(m.id)&&m.rect.current){p.set(m.id,m.rect.current);continue}const S=m.node.current,x=S?new Su(a(S),S):null;m.rect.current=x,x&&p.set(m.id,x)}return p}return h},[e,l,n,d,a]);return c.useEffect(()=>{f.current=e},[e]),c.useEffect(()=>{d||w()},[n,d]),c.useEffect(()=>{l&&l.length>0&&i(null)},[JSON.stringify(l)]),c.useEffect(()=>{d||typeof s!="number"||_.current!==null||(_.current=setTimeout(()=>{w(),_.current=null},s))},[s,d,w,...r]),{droppableRects:g,measureDroppableContainers:w,measuringScheduled:l!=null};function E(){switch(u){case To.Always:return!1;case To.BeforeDragging:return n;default:return!n}}}function ku(e,t){return Bo(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function $1(e,t){return ku(e,t)}function b1(e){let{callback:t,disabled:n}=e;const r=Ri(t),o=c.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:l}=window;return new l(r)},[r,n]);return c.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Di(e){let{callback:t,disabled:n}=e;const r=Ri(t),o=c.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:l}=window;return new l(r)},[n]);return c.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function F1(e){return new Su(Rr(e),e)}function sd(e,t,n){t===void 0&&(t=F1);const[r,o]=c.useState(null);function l(){o(a=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=a??n)!=null?u:null}const f=t(e);return JSON.stringify(a)===JSON.stringify(f)?a:f})}const i=b1({callback(a){if(e)for(const u of a){const{type:f,target:d}=u;if(f==="childList"&&d instanceof HTMLElement&&d.contains(e)){l();break}}}}),s=Di({callback:l});return Ct(()=>{l(),e?(s==null||s.observe(e),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),i==null||i.disconnect())},[e]),r}function U1(e){const t=ku(e);return Zp(e,t)}const ad=[];function H1(e){const t=c.useRef(e),n=Bo(r=>e?r&&r!==ad&&e&&t.current&&e.parentNode===t.current.parentNode?r:xu(e):ad,[e]);return c.useEffect(()=>{t.current=e},[e]),n}function V1(e){const[t,n]=c.useState(null),r=c.useRef(e),o=c.useCallback(l=>{const i=cs(l.target);i&&n(s=>s?(s.set(i,ca(i)),new Map(s)):null)},[]);return c.useEffect(()=>{const l=r.current;if(e!==l){i(l);const s=e.map(a=>{const u=cs(a);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,ca(u)]):null}).filter(a=>a!=null);n(s.length?new Map(s):null),r.current=e}return()=>{i(e),i(l)};function i(s){s.forEach(a=>{const u=cs(a);u==null||u.removeEventListener("scroll",o)})}},[o,e]),c.useMemo(()=>e.length?t?Array.from(t.values()).reduce((l,i)=>cr(l,i),Et):ih(e):Et,[e,t])}function ud(e,t){t===void 0&&(t=[]);const n=c.useRef(null);return c.useEffect(()=>{n.current=null},t),c.useEffect(()=>{const r=e!==Et;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?ri(e,n.current):Et}function W1(e){c.useEffect(()=>{if(!Ni)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 K1(e,t){return c.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:l}=r;return n[o]=i=>{l(i,t)},n},{}),[e,t])}function ch(e){return c.useMemo(()=>e?y1(e):null,[e])}const cd=[];function Q1(e,t){t===void 0&&(t=Rr);const[n]=e,r=ch(n?Be(n):null),[o,l]=c.useState(cd);function i(){l(()=>e.length?e.map(a=>oh(a)?r:new Su(t(a),a)):cd)}const s=Di({callback:i});return Ct(()=>{s==null||s.disconnect(),i(),e.forEach(a=>s==null?void 0:s.observe(a))},[e]),o}function dh(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return zo(t)?t:e}function Y1(e){let{measure:t}=e;const[n,r]=c.useState(null),o=c.useCallback(u=>{for(const{target:f}of u)if(zo(f)){r(d=>{const v=t(f);return d?{...d,width:v.width,height:v.height}:v});break}},[t]),l=Di({callback:o}),i=c.useCallback(u=>{const f=dh(u);l==null||l.disconnect(),f&&(l==null||l.observe(f)),r(f?t(f):null)},[t,l]),[s,a]=ti(i);return c.useMemo(()=>({nodeRef:s,rect:n,setRef:a}),[n,s,a])}const X1=[{sensor:Eu,options:{}},{sensor:uh,options:{}}],G1={current:{}},Rl={draggable:{measure:nd},droppable:{measure:nd,strategy:To.WhileDragging,frequency:fa.Optimized},dragOverlay:{measure:Rr}};class so 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 q1={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new so,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:li},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Rl,measureDroppableContainers:li,windowRect:null,measuringScheduled:!1},fh={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:li,draggableNodes:new Map,over:null,measureDroppableContainers:li},bo=c.createContext(fh),ph=c.createContext(q1);function J1(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new so}}}function Z1(e,t){switch(t.type){case me.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case me.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 me.DragEnd:case me.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case me.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new so(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case me.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,l=e.droppable.containers.get(n);if(!l||r!==l.key)return e;const i=new so(e.droppable.containers);return i.set(n,{...l,disabled:o}),{...e,droppable:{...e.droppable,containers:i}}}case me.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const l=new so(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function ew(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=c.useContext(bo),l=ni(r),i=ni(n==null?void 0:n.id);return c.useEffect(()=>{if(!t&&!r&&l&&i!=null){if(!Ti(l)||document.activeElement===l.target)return;const s=o.get(i);if(!s)return;const{activatorNode:a,node:u}=s;if(!a.current&&!u.current)return;requestAnimationFrame(()=>{for(const f of[a.current,u.current]){if(!f)continue;const d=K0(f);if(d){d.focus();break}}})}},[r,t,o,i,l]),null}function hh(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,l)=>l({transform:o,...r}),n):n}function tw(e){return c.useMemo(()=>({draggable:{...Rl.draggable,...e==null?void 0:e.draggable},droppable:{...Rl.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Rl.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 nw(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const l=c.useRef(!1),{x:i,y:s}=typeof o=="boolean"?{x:o,y:o}:o;Ct(()=>{if(!i&&!s||!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 f=n(u),d=Zp(f,r);if(i||(d.x=0),s||(d.y=0),l.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const v=th(u);v&&v.scrollBy({top:d.y,left:d.x})}},[t,i,s,r,n])}const Li=c.createContext({...Et,scaleX:1,scaleY:1});var rn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(rn||(rn={}));const rw=c.memo(function(t){var n,r,o,l;let{id:i,accessibility:s,autoScroll:a=!0,children:u,sensors:f=X1,collisionDetection:d=d1,measuring:v,modifiers:w,..._}=t;const g=c.useReducer(Z1,void 0,J1),[E,h]=g,[p,m]=J0(),[S,x]=c.useState(rn.Uninitialized),N=S===rn.Initialized,{draggable:{active:C,nodes:k,translate:T},droppable:{containers:L}}=E,z=C!=null?k.get(C):null,j=c.useRef({initial:null,translated:null}),b=c.useMemo(()=>{var Ne;return C!=null?{id:C,data:(Ne=z==null?void 0:z.data)!=null?Ne:G1,rect:j}:null},[C,z]),K=c.useRef(null),[ue,lt]=c.useState(null),[$,D]=c.useState(null),I=Ro(_,Object.values(_)),A=$o("DndDescribedBy",i),H=c.useMemo(()=>L.getEnabled(),[L]),F=tw(v),{droppableRects:Y,measureDroppableContainers:J,measuringScheduled:ye}=B1(H,{dragging:N,dependencies:[T.x,T.y],config:F.droppable}),X=A1(k,C),Qe=c.useMemo(()=>$?oi($):null,[$]),it=Ph(),Ye=$1(X,F.draggable.measure);nw({activeNode:C!=null?k.get(C):null,config:it.layoutShiftCompensation,initialRect:Ye,measure:F.draggable.measure});const B=sd(X,F.draggable.measure,Ye),Pe=sd(X?X.parentElement:null),fe=c.useRef({activatorEvent:null,active:null,activeNode:X,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:L,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),pe=L.getNodeFor((n=fe.current.over)==null?void 0:n.id),se=Y1({measure:F.dragOverlay.measure}),$e=(r=se.nodeRef.current)!=null?r:X,Yt=N?(o=se.rect)!=null?o:B:null,Ru=!!(se.nodeRef.current&&se.rect),Tu=U1(Ru?null:B),ji=ch($e?Be($e):null),Xt=H1(N?pe??X:null),Fo=Q1(Xt),Uo=hh(w,{transform:{x:T.x-Tu.x,y:T.y-Tu.y,scaleX:1,scaleY:1},activatorEvent:$,active:b,activeNodeRect:B,containerNodeRect:Pe,draggingNodeRect:Yt,over:fe.current.over,overlayNodeRect:se.rect,scrollableAncestors:Xt,scrollableAncestorRects:Fo,windowRect:ji}),Du=Qe?cr(Qe,T):null,Lu=V1(Xt),kh=ud(Lu),Nh=ud(Lu,[B]),Bn=cr(Uo,kh),$n=Yt?h1(Yt,Uo):null,Tr=b&&$n?d({active:b,collisionRect:$n,droppableRects:Y,droppableContainers:H,pointerCoordinates:Du}):null,ju=a1(Tr,"id"),[Gt,Pu]=c.useState(null),Rh=Ru?Uo:cr(Uo,Nh),Th=f1(Rh,(l=Gt==null?void 0:Gt.rect)!=null?l:null,B),Pi=c.useRef(null),Iu=c.useCallback((Ne,Xe)=>{let{sensor:Ge,options:qt}=Xe;if(K.current==null)return;const st=k.get(K.current);if(!st)return;const qe=Ne.nativeEvent,Nt=new Ge({active:K.current,activeNode:st,event:qe,options:qt,context:fe,onAbort(xe){if(!k.get(xe))return;const{onDragAbort:Rt}=I.current,Mt={id:xe};Rt==null||Rt(Mt),p({type:"onDragAbort",event:Mt})},onPending(xe,Jt,Rt,Mt){if(!k.get(xe))return;const{onDragPending:Lr}=I.current,Zt={id:xe,constraint:Jt,initialCoordinates:Rt,offset:Mt};Lr==null||Lr(Zt),p({type:"onDragPending",event:Zt})},onStart(xe){const Jt=K.current;if(Jt==null)return;const Rt=k.get(Jt);if(!Rt)return;const{onDragStart:Mt}=I.current,Dr={activatorEvent:qe,active:{id:Jt,data:Rt.data,rect:j}};rr.unstable_batchedUpdates(()=>{Mt==null||Mt(Dr),x(rn.Initializing),h({type:me.DragStart,initialCoordinates:xe,active:Jt}),p({type:"onDragStart",event:Dr}),lt(Pi.current),D(qe)})},onMove(xe){h({type:me.DragMove,coordinates:xe})},onEnd:bn(me.DragEnd),onCancel:bn(me.DragCancel)});Pi.current=Nt;function bn(xe){return async function(){const{active:Rt,collisions:Mt,over:Dr,scrollAdjustedTranslate:Lr}=fe.current;let Zt=null;if(Rt&&Lr){const{cancelDrop:jr}=I.current;Zt={activatorEvent:qe,active:Rt,collisions:Mt,delta:Lr,over:Dr},xe===me.DragEnd&&typeof jr=="function"&&await Promise.resolve(jr(Zt))&&(xe=me.DragCancel)}K.current=null,rr.unstable_batchedUpdates(()=>{h({type:xe}),x(rn.Uninitialized),Pu(null),lt(null),D(null),Pi.current=null;const jr=xe===me.DragEnd?"onDragEnd":"onDragCancel";if(Zt){const Ii=I.current[jr];Ii==null||Ii(Zt),p({type:jr,event:Zt})}})}}},[k]),Dh=c.useCallback((Ne,Xe)=>(Ge,qt)=>{const st=Ge.nativeEvent,qe=k.get(qt);if(K.current!==null||!qe||st.dndKit||st.defaultPrevented)return;const Nt={active:qe};Ne(Ge,Xe.options,Nt)===!0&&(st.dndKit={capturedBy:Xe.sensor},K.current=qt,Iu(Ge,Xe))},[k,Iu]),Ou=z1(f,Dh);W1(f),Ct(()=>{B&&S===rn.Initializing&&x(rn.Initialized)},[B,S]),c.useEffect(()=>{const{onDragMove:Ne}=I.current,{active:Xe,activatorEvent:Ge,collisions:qt,over:st}=fe.current;if(!Xe||!Ge)return;const qe={active:Xe,activatorEvent:Ge,collisions:qt,delta:{x:Bn.x,y:Bn.y},over:st};rr.unstable_batchedUpdates(()=>{Ne==null||Ne(qe),p({type:"onDragMove",event:qe})})},[Bn.x,Bn.y]),c.useEffect(()=>{const{active:Ne,activatorEvent:Xe,collisions:Ge,droppableContainers:qt,scrollAdjustedTranslate:st}=fe.current;if(!Ne||K.current==null||!Xe||!st)return;const{onDragOver:qe}=I.current,Nt=qt.get(ju),bn=Nt&&Nt.rect.current?{id:Nt.id,rect:Nt.rect.current,data:Nt.data,disabled:Nt.disabled}:null,xe={active:Ne,activatorEvent:Xe,collisions:Ge,delta:{x:st.x,y:st.y},over:bn};rr.unstable_batchedUpdates(()=>{Pu(bn),qe==null||qe(xe),p({type:"onDragOver",event:xe})})},[ju]),Ct(()=>{fe.current={activatorEvent:$,active:b,activeNode:X,collisionRect:$n,collisions:Tr,droppableRects:Y,draggableNodes:k,draggingNode:$e,draggingNodeRect:Yt,droppableContainers:L,over:Gt,scrollableAncestors:Xt,scrollAdjustedTranslate:Bn},j.current={initial:Yt,translated:$n}},[b,X,Tr,$n,k,$e,Yt,Y,L,Gt,Xt,Bn]),I1({...it,delta:T,draggingRect:$n,pointerCoordinates:Du,scrollableAncestors:Xt,scrollableAncestorRects:Fo});const Lh=c.useMemo(()=>({active:b,activeNode:X,activeNodeRect:B,activatorEvent:$,collisions:Tr,containerNodeRect:Pe,dragOverlay:se,draggableNodes:k,droppableContainers:L,droppableRects:Y,over:Gt,measureDroppableContainers:J,scrollableAncestors:Xt,scrollableAncestorRects:Fo,measuringConfiguration:F,measuringScheduled:ye,windowRect:ji}),[b,X,B,$,Tr,Pe,se,k,L,Y,Gt,J,Xt,Fo,F,ye,ji]),jh=c.useMemo(()=>({activatorEvent:$,activators:Ou,active:b,activeNodeRect:B,ariaDescribedById:{draggable:A},dispatch:h,draggableNodes:k,over:Gt,measureDroppableContainers:J}),[$,Ou,b,B,h,A,k,Gt,J]);return G.createElement(Jp.Provider,{value:m},G.createElement(bo.Provider,{value:jh},G.createElement(ph.Provider,{value:Lh},G.createElement(Li.Provider,{value:Th},u)),G.createElement(ew,{disabled:(s==null?void 0:s.restoreFocus)===!1})),G.createElement(t1,{...s,hiddenTextDescribedById:A}));function Ph(){const Ne=(ue==null?void 0:ue.autoScrollEnabled)===!1,Xe=typeof a=="object"?a.enabled===!1:a===!1,Ge=N&&!Ne&&!Xe;return typeof a=="object"?{...a,enabled:Ge}:{enabled:Ge}}}),ow=c.createContext(null),dd="button",lw="Draggable";function iw(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const l=$o(lw),{activators:i,activatorEvent:s,active:a,activeNodeRect:u,ariaDescribedById:f,draggableNodes:d,over:v}=c.useContext(bo),{role:w=dd,roleDescription:_="draggable",tabIndex:g=0}=o??{},E=(a==null?void 0:a.id)===t,h=c.useContext(E?Li:ow),[p,m]=ti(),[S,x]=ti(),N=K1(i,t),C=Ro(n);Ct(()=>(d.set(t,{id:t,key:l,node:p,activatorNode:S,data:C}),()=>{const T=d.get(t);T&&T.key===l&&d.delete(t)}),[d,t]);const k=c.useMemo(()=>({role:w,tabIndex:g,"aria-disabled":r,"aria-pressed":E&&w===dd?!0:void 0,"aria-roledescription":_,"aria-describedby":f.draggable}),[r,w,g,E,_,f.draggable]);return{active:a,activatorEvent:s,activeNodeRect:u,attributes:k,isDragging:E,listeners:r?void 0:N,node:p,over:v,setNodeRef:m,setActivatorNodeRef:x,transform:h}}function mh(){return c.useContext(ph)}const sw="Droppable",aw={timeout:25};function vh(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const l=$o(sw),{active:i,dispatch:s,over:a,measureDroppableContainers:u}=c.useContext(bo),f=c.useRef({disabled:n}),d=c.useRef(!1),v=c.useRef(null),w=c.useRef(null),{disabled:_,updateMeasurementsFor:g,timeout:E}={...aw,...o},h=Ro(g??r),p=c.useCallback(()=>{if(!d.current){d.current=!0;return}w.current!=null&&clearTimeout(w.current),w.current=setTimeout(()=>{u(Array.isArray(h.current)?h.current:[h.current]),w.current=null},E)},[E]),m=Di({callback:p,disabled:_||!i}),S=c.useCallback((k,T)=>{m&&(T&&(m.unobserve(T),d.current=!1),k&&m.observe(k))},[m]),[x,N]=ti(S),C=Ro(t);return c.useEffect(()=>{!m||!x.current||(m.disconnect(),d.current=!1,m.observe(x.current))},[x,m]),c.useEffect(()=>(s({type:me.RegisterDroppable,element:{id:r,key:l,disabled:n,node:x,rect:v,data:C}}),()=>s({type:me.UnregisterDroppable,key:l,id:r})),[r]),c.useEffect(()=>{n!==f.current.disabled&&(s({type:me.SetDroppableDisabled,id:r,key:l,disabled:n}),f.current.disabled=n)},[r,l,n,s]),{active:i,rect:v,isOver:(a==null?void 0:a.id)===r,node:x,over:a,setNodeRef:N}}function uw(e){let{animation:t,children:n}=e;const[r,o]=c.useState(null),[l,i]=c.useState(null),s=ni(n);return!n&&!r&&s&&o(s),Ct(()=>{if(!l)return;const a=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(a==null||u==null){o(null);return}Promise.resolve(t(u,l)).then(()=>{o(null)})},[t,r,l]),G.createElement(G.Fragment,null,n,r?c.cloneElement(r,{ref:i}):null)}const cw={x:0,y:0,scaleX:1,scaleY:1};function dw(e){let{children:t}=e;return G.createElement(bo.Provider,{value:fh},G.createElement(Li.Provider,{value:cw},t))}const fw={position:"fixed",touchAction:"none"},pw=e=>Ti(e)?"transform 250ms ease":void 0,hw=c.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:o,children:l,className:i,rect:s,style:a,transform:u,transition:f=pw}=e;if(!s)return null;const d=o?u:{...u,scaleX:1,scaleY:1},v={...fw,width:s.width,height:s.height,top:s.top,left:s.left,transform:wn.Transform.toString(d),transformOrigin:o&&r?l1(r,s):void 0,transition:typeof f=="function"?f(r):f,...a};return G.createElement(n,{className:i,style:v,ref:t},l)}),yh=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:l,className:i}=e;if(l!=null&&l.active)for(const[s,a]of Object.entries(l.active))a!==void 0&&(o[s]=n.node.style.getPropertyValue(s),n.node.style.setProperty(s,a));if(l!=null&&l.dragOverlay)for(const[s,a]of Object.entries(l.dragOverlay))a!==void 0&&r.node.style.setProperty(s,a);return i!=null&&i.active&&n.node.classList.add(i.active),i!=null&&i.dragOverlay&&r.node.classList.add(i.dragOverlay),function(){for(const[a,u]of Object.entries(o))n.node.style.setProperty(a,u);i!=null&&i.active&&n.node.classList.remove(i.active)}},mw=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:wn.Transform.toString(t)},{transform:wn.Transform.toString(n)}]},vw={duration:250,easing:"ease",keyframes:mw,sideEffects:yh({styles:{active:{opacity:"0"}}})};function yw(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return Ri((l,i)=>{if(t===null)return;const s=n.get(l);if(!s)return;const a=s.node.current;if(!a)return;const u=dh(i);if(!u)return;const{transform:f}=Be(i).getComputedStyle(i),d=eh(f);if(!d)return;const v=typeof t=="function"?t:gw(t);return sh(a,o.draggable.measure),v({active:{id:l,data:s.data,node:a,rect:o.draggable.measure(a)},draggableNodes:n,dragOverlay:{node:i,rect:o.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:o,transform:d})})}function gw(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...vw,...e};return l=>{let{active:i,dragOverlay:s,transform:a,...u}=l;if(!t)return;const f={x:s.rect.left-i.rect.left,y:s.rect.top-i.rect.top},d={scaleX:a.scaleX!==1?i.rect.width*a.scaleX/s.rect.width:1,scaleY:a.scaleY!==1?i.rect.height*a.scaleY/s.rect.height:1},v={x:a.x-f.x,y:a.y-f.y,...d},w=o({...u,active:i,dragOverlay:s,transform:{initial:a,final:v}}),[_]=w,g=w[w.length-1];if(JSON.stringify(_)===JSON.stringify(g))return;const E=r==null?void 0:r({active:i,dragOverlay:s,...u}),h=s.node.animate(w,{duration:t,easing:n,fill:"forwards"});return new Promise(p=>{h.onfinish=()=>{E==null||E(),p()}})}}let fd=0;function ww(e){return c.useMemo(()=>{if(e!=null)return fd++,fd},[e])}const _w=G.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:o,transition:l,modifiers:i,wrapperElement:s="div",className:a,zIndex:u=999}=e;const{activatorEvent:f,active:d,activeNodeRect:v,containerNodeRect:w,draggableNodes:_,droppableContainers:g,dragOverlay:E,over:h,measuringConfiguration:p,scrollableAncestors:m,scrollableAncestorRects:S,windowRect:x}=mh(),N=c.useContext(Li),C=ww(d==null?void 0:d.id),k=hh(i,{activatorEvent:f,active:d,activeNodeRect:v,containerNodeRect:w,draggingNodeRect:E.rect,over:h,overlayNodeRect:E.rect,scrollableAncestors:m,scrollableAncestorRects:S,transform:N,windowRect:x}),T=ku(v),L=yw({config:r,draggableNodes:_,droppableContainers:g,measuringConfiguration:p}),z=T?E.setRef:void 0;return G.createElement(dw,null,G.createElement(uw,{animation:L},d&&C?G.createElement(hw,{key:C,id:d.id,ref:z,as:s,activatorEvent:f,adjustScale:t,className:a,transition:l,rect:T,style:{zIndex:u,...o},transform:k},n):null))});function Nu(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function xw(e,t){return e.reduce((n,r,o)=>{const l=t.get(r);return l&&(n[o]=l),n},Array(e.length))}function dl(e){return e!==null&&e>=0}function Sw(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 Cw(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const gh=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const l=Nu(t,r,n),i=t[o],s=l[o];return!s||!i?null:{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}},fl={scaleX:1,scaleY:1},Ew=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:l,overIndex:i}=e;const s=(t=l[n])!=null?t:r;if(!s)return null;if(o===n){const u=l[i];return u?{x:0,y:n<i?u.top+u.height-(s.top+s.height):u.top-s.top,...fl}:null}const a=kw(l,o,n);return o>n&&o<=i?{x:0,y:-s.height-a,...fl}:o<n&&o>=i?{x:0,y:s.height+a,...fl}:{x:0,y:0,...fl}};function kw(e,t,n){const r=e[t],o=e[t-1],l=e[t+1];return r?n<t?o?r.top-(o.top+o.height):l?l.top-(r.top+r.height):0:l?l.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const wh="Sortable",_h=G.createContext({activeIndex:-1,containerId:wh,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:gh,disabled:{draggable:!1,droppable:!1}});function Nw(e){let{children:t,id:n,items:r,strategy:o=gh,disabled:l=!1}=e;const{active:i,dragOverlay:s,droppableRects:a,over:u,measureDroppableContainers:f}=mh(),d=$o(wh,n),v=s.rect!==null,w=c.useMemo(()=>r.map(N=>typeof N=="object"&&"id"in N?N.id:N),[r]),_=i!=null,g=i?w.indexOf(i.id):-1,E=u?w.indexOf(u.id):-1,h=c.useRef(w),p=!Sw(w,h.current),m=E!==-1&&g===-1||p,S=Cw(l);Ct(()=>{p&&_&&f(w)},[p,w,_,f]),c.useEffect(()=>{h.current=w},[w]);const x=c.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:m,items:w,overIndex:E,useDragOverlay:v,sortedRects:xw(w,a),strategy:o}),[g,d,S.draggable,S.droppable,m,w,E,a,v,o]);return G.createElement(_h.Provider,{value:x},t)}const Rw=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Nu(n,r,o).indexOf(t)},Tw=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:l,newIndex:i,previousItems:s,previousContainerId:a,transition:u}=e;return!u||!r||s!==l&&o===i?!1:n?!0:i!==o&&t===a},Dw={duration:200,easing:"ease"},xh="transform",Lw=wn.Transition.toString({property:xh,duration:0,easing:"linear"}),jw={roleDescription:"sortable"};function Pw(e){let{disabled:t,index:n,node:r,rect:o}=e;const[l,i]=c.useState(null),s=c.useRef(n);return Ct(()=>{if(!t&&n!==s.current&&r.current){const a=o.current;if(a){const u=Rr(r.current,{ignoreTransform:!0}),f={x:a.left-u.left,y:a.top-u.top,scaleX:a.width/u.width,scaleY:a.height/u.height};(f.x||f.y)&&i(f)}}n!==s.current&&(s.current=n)},[t,n,r,o]),c.useEffect(()=>{l&&i(null)},[l]),l}function Iw(e){let{animateLayoutChanges:t=Tw,attributes:n,disabled:r,data:o,getNewIndex:l=Rw,id:i,strategy:s,resizeObserverConfig:a,transition:u=Dw}=e;const{items:f,containerId:d,activeIndex:v,disabled:w,disableTransforms:_,sortedRects:g,overIndex:E,useDragOverlay:h,strategy:p}=c.useContext(_h),m=Ow(r,w),S=f.indexOf(i),x=c.useMemo(()=>({sortable:{containerId:d,index:S,items:f},...o}),[d,o,S,f]),N=c.useMemo(()=>f.slice(f.indexOf(i)),[f,i]),{rect:C,node:k,isOver:T,setNodeRef:L}=vh({id:i,data:x,disabled:m.droppable,resizeObserverConfig:{updateMeasurementsFor:N,...a}}),{active:z,activatorEvent:j,activeNodeRect:b,attributes:K,setNodeRef:ue,listeners:lt,isDragging:$,over:D,setActivatorNodeRef:I,transform:A}=iw({id:i,data:x,attributes:{...jw,...n},disabled:m.draggable}),H=U0(L,ue),F=!!z,Y=F&&!_&&dl(v)&&dl(E),J=!h&&$,ye=J&&Y?A:null,Qe=Y?ye??(s??p)({rects:g,activeNodeRect:b,activeIndex:v,overIndex:E,index:S}):null,it=dl(v)&&dl(E)?l({id:i,items:f,activeIndex:v,overIndex:E}):S,Ye=z==null?void 0:z.id,B=c.useRef({activeId:Ye,items:f,newIndex:it,containerId:d}),Pe=f!==B.current.items,fe=t({active:z,containerId:d,isDragging:$,isSorting:F,id:i,index:S,items:f,newIndex:B.current.newIndex,previousItems:B.current.items,previousContainerId:B.current.containerId,transition:u,wasDragging:B.current.activeId!=null}),pe=Pw({disabled:!fe,index:S,node:k,rect:C});return c.useEffect(()=>{F&&B.current.newIndex!==it&&(B.current.newIndex=it),d!==B.current.containerId&&(B.current.containerId=d),f!==B.current.items&&(B.current.items=f)},[F,it,d,f]),c.useEffect(()=>{if(Ye===B.current.activeId)return;if(Ye&&!B.current.activeId){B.current.activeId=Ye;return}const $e=setTimeout(()=>{B.current.activeId=Ye},50);return()=>clearTimeout($e)},[Ye]),{active:z,activeIndex:v,attributes:K,data:x,rect:C,index:S,newIndex:it,items:f,isOver:T,isSorting:F,isDragging:$,listeners:lt,node:k,overIndex:E,over:D,setNodeRef:H,setActivatorNodeRef:I,setDroppableNodeRef:L,setDraggableNodeRef:ue,transform:pe??Qe,transition:se()};function se(){if(pe||Pe&&B.current.newIndex===S)return Lw;if(!(J&&!Ti(j)||!u)&&(F||fe))return wn.Transition.toString({...u,property:xh})}}function Ow(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}}W.Down,W.Right,W.Up,W.Left;function Sh({ticket:e,isOverlay:t}){const n=Mo(),{boardId:r}=uu(),{attributes:o,listeners:l,setNodeRef:i,transform:s,transition:a,isDragging:u}=Iw({id:e.id,data:{type:"ticket",ticket:e},disabled:t}),f={transform:wn.Transform.toString(s),transition:a,opacity:u&&!t?.3:1,cursor:"grab"},d=[...e.agent_sessions??[]].reverse().find(w=>w.column_id===e.column_id),v=(d==null?void 0:d.status)==="needs_approval";return y.jsxs("div",{ref:i,style:f,className:`${Ie.card} ${u?Ie.dragging:""} ${v?Ie.needsApprovalCard:""}`,...o,...l,onClick:()=>n(`/boards/${r}/tickets/${e.id}`),children:[y.jsx("p",{className:Ie.title,children:e.title}),e.description&&y.jsx("p",{className:Ie.description,children:e.description}),y.jsx("div",{className:Ie.footer,children:y.jsxs("div",{className:Ie.left,children:[y.jsx(Xp,{priority:e.priority}),(()=>{if(!e.agent_sessions||e.agent_sessions.length===0)return null;let w=null;for(let g=e.agent_sessions.length-1;g>=0;g--)if(e.agent_sessions[g].column_id===e.column_id){w=e.agent_sessions[g];break}if(!w)return null;const _=w;return!_.url&&_.status!=="processing"&&_.status!=="done"&&_.status!=="blocked"&&_.status!=="needs_approval"?null:y.jsxs(G.Fragment,{children:[y.jsxs("a",{href:_.url||`http://127.0.0.1:${_.port||4096}`,target:"_blank",rel:"noopener noreferrer",className:`${Ie.inspectBtn} ${_.status==="processing"?Ie.processingBtn:_.status==="done"?Ie.doneBtn:_.status==="blocked"?Ie.blockedBtn:_.status==="needs_approval"?Ie.needsApprovalBtn:""}`,title:_.url?"Inspect Agent Session":"Open Agent UI",onClick:g=>g.stopPropagation(),children:[_.status==="done"?y.jsx(Wp,{size:14,className:Ie.doneIcon}):_.status==="blocked"?y.jsx("span",{style:{color:"red"},children:"⚠️"}):_.status==="needs_approval"?y.jsx("span",{style:{color:"#f59e0b",fontSize:"14px",lineHeight:1},children:"✋"}):y.jsx(oo,{size:14,className:_.status==="processing"?Ie.processingIcon:""}),y.jsx("span",{children:_.status==="blocked"?"Error":_.status==="done"?"Done":_.status==="needs_approval"?"Needs Approval":_.status==="processing"?M("agent.status.processing")||"Processing":"Agent UI"}),y.jsx(ei,{size:12})]}),_.pr_url&&y.jsxs("a",{href:_.pr_url,target:"_blank",rel:"noopener noreferrer",className:Ie.inspectBtn,style:{backgroundColor:"#2da44e",color:"white",borderColor:"#2da44e"},title:"View Code Review",onClick:g=>g.stopPropagation(),children:[y.jsx(Kp,{size:14}),y.jsx("span",{children:"PR"}),y.jsx(ei,{size:12})]})]},_.column_id+"-"+_.started_at)})()]})})]})}const Mw="_overlay_1ypt0_1",Aw="_fadeIn_1ypt0_1",zw="_modal_1ypt0_47",Bw="_slideIn_1ypt0_1",$w="_content_1ypt0_75",bw="_header_1ypt0_109",Fw="_meta_1ypt0_127",Uw="_statusBadge_1ypt0_151",Hw="_processing_1ypt0_175",Vw="_done_1ypt0_193",Ww="_blocked_1ypt0_211",Kw="_needsApproval_1ypt0_229",Qw="_columnTag_1ypt0_247",Yw="_closeBtn_1ypt0_267",Xw="_headerRight_1ypt0_299",Gw="_sessionBtn_1ypt0_311",qw="_body_1ypt0_353",Jw="_titleInput_1ypt0_365",Zw="_descInput_1ypt0_413",e_="_section_1ypt0_461",t_="_sectionLabel_1ypt0_471",n_="_priorities_1ypt0_491",r_="_priorityBtn_1ypt0_503",o_="_selected_1ypt0_533",l_="_footer_1ypt0_545",i_="_footerActions_1ypt0_563",s_="_deleteBtn_1ypt0_573",a_="_cancelBtn_1ypt0_605",u_="_saveBtn_1ypt0_633",c_="_commentsSection_1ypt0_671",d_="_commentList_1ypt0_687",f_="_comment_1ypt0_671",p_="_commentHeader_1ypt0_719",h_="_commentAuthor_1ypt0_735",m_="_botIcon_1ypt0_751",v_="_commentDate_1ypt0_759",y_="_commentContent_1ypt0_767",g_="_noComments_1ypt0_781",w_="_addComment_1ypt0_797",__="_commentInput_1ypt0_809",x_="_sendBtn_1ypt0_841",S_="_agentHistoryList_1ypt0_887",C_="_historyItem_1ypt0_901",E_="_historyMeta_1ypt0_921",k_="_historyCol_1ypt0_933",N_="_historyStatus_1ypt0_945",R_="_needs_approval_1ypt0_993",T_="_historyLinks_1ypt0_1003",D_="_historyLink_1ypt0_1003",L_="_historyError_1ypt0_1051",O={overlay:Mw,fadeIn:Aw,modal:zw,slideIn:Bw,content:$w,header:bw,meta:Fw,statusBadge:Uw,processing:Hw,done:Vw,blocked:Ww,needsApproval:Kw,columnTag:Qw,closeBtn:Yw,headerRight:Xw,sessionBtn:Gw,body:qw,titleInput:Jw,descInput:Zw,section:e_,sectionLabel:t_,priorities:n_,priorityBtn:r_,selected:o_,footer:l_,footerActions:i_,deleteBtn:s_,cancelBtn:a_,saveBtn:u_,commentsSection:c_,commentList:d_,comment:f_,commentHeader:p_,commentAuthor:h_,botIcon:m_,commentDate:v_,commentContent:y_,noComments:g_,addComment:w_,commentInput:__,sendBtn:x_,agentHistoryList:S_,historyItem:C_,historyMeta:E_,historyCol:k_,historyStatus:N_,needs_approval:R_,historyLinks:T_,historyLink:D_,historyError:L_};function Ch({ticket:e,columnId:t,onClose:n}){const{state:r,updateTicket:o,deleteTicket:l,createTicket:i,retryTicket:s}=Mn(),[a,u]=c.useState((e==null?void 0:e.title)??""),[f,d]=c.useState((e==null?void 0:e.description)??""),[v,w]=c.useState((e==null?void 0:e.priority)??"medium"),[_,g]=c.useState(!1),[E,h]=c.useState(!1),[p,m]=c.useState(""),{state:{comments:S},loadComments:x,addComment:N}=Mn(),C=e?S[e.id]??[]:[];c.useEffect(()=>{e&&x(e.board_id,e.id)},[e,x]),c.useEffect(()=>{g(a!==((e==null?void 0:e.title)??"")||f!==((e==null?void 0:e.description)??"")||v!==((e==null?void 0:e.priority)??"medium"))},[a,f,v,e]),c.useEffect(()=>{function j(b){b.key==="Escape"&&!E&&n()}return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[n,E]);async function k(){a.trim()&&(e?await o(e.board_id,e.id,{title:a.trim(),description:f,priority:v}):t&&r.activeBoardId&&await i(r.activeBoardId,{columnId:t,title:a.trim(),description:f,priority:v}),n())}async function T(){e&&(await l(e.board_id,e.id),n())}async function L(){!p.trim()||!e||(await N(e.board_id,e.id,p.trim(),"user"),m(""))}const z=r.columns.find(j=>j.id===((e==null?void 0:e.column_id)??t));return y.jsx("div",{className:O.overlay,onClick:n,children:y.jsxs("div",{className:O.modal,onClick:j=>j.stopPropagation(),children:[y.jsxs("div",{className:O.header,children:[y.jsxs("div",{className:O.meta,children:[z&&y.jsx("span",{className:O.columnTag,children:z.name}),y.jsx(Xp,{priority:v,size:"md"}),(()=>{if(!(e!=null&&e.agent_sessions)||e.agent_sessions.length===0)return null;let j=null;for(let K=e.agent_sessions.length-1;K>=0;K--)if(e.agent_sessions[K].column_id===e.column_id){j=e.agent_sessions[K];break}if(!j)return null;const b=j;return b.status==="processing"?y.jsxs("div",{className:`${O.statusBadge} ${O.processing}`,children:[y.jsx(oo,{size:12,className:O.pulse}),M("agent.status.processing")]},b.started_at):b.status==="done"?y.jsxs("div",{className:`${O.statusBadge} ${O.done}`,children:[y.jsx(Wp,{size:12}),M("agent.status.done")]},b.started_at):b.status==="blocked"?y.jsxs("div",{className:`${O.statusBadge} ${O.blocked}`,title:"Agent execution failed or blocked",children:[y.jsx("span",{style:{color:"white"},children:"⚠️"}),"Error"]},b.started_at):b.status==="needs_approval"?y.jsxs("div",{className:`${O.statusBadge} ${O.needsApproval}`,title:"Agent requires user permission",children:[y.jsx("span",{style:{color:"#f59e0b"},children:"✋"}),"Needs Approval"]},b.started_at):null})()]}),y.jsxs("div",{className:O.headerRight,children:[(()=>{if(!(e!=null&&e.agent_sessions)||e.agent_sessions.length===0)return null;let j=null;for(let K=e.agent_sessions.length-1;K>=0;K--)if(e.agent_sessions[K].column_id===e.column_id){j=e.agent_sessions[K];break}if(!j)return null;const b=j;return y.jsxs(G.Fragment,{children:[b.status==="blocked"&&y.jsxs("button",{className:O.sessionBtn,onClick:()=>s(e.board_id,e.id),title:"Retry Agent Execution",children:[y.jsx(i0,{size:14}),y.jsx("span",{children:"Retry Agent"})]}),b.url&&y.jsxs("a",{href:b.url,target:"_blank",rel:"noopener noreferrer",className:O.sessionBtn,title:"Open Agent Session",children:[y.jsx(ei,{size:14}),y.jsx("span",{children:"Agent session"})]})]},b.started_at)})(),y.jsx("button",{className:O.closeBtn,onClick:n,children:y.jsx(yu,{size:16})})]})]}),y.jsxs("div",{className:O.content,children:[y.jsxs("div",{className:O.body,children:[y.jsx("textarea",{className:O.titleInput,value:a,onChange:j=>{u(j.target.value)},placeholder:M("ticket.title_placeholder"),rows:1}),y.jsx("textarea",{className:O.descInput,value:f,onChange:j=>d(j.target.value),placeholder:M("ticket.description_placeholder"),rows:6})]}),y.jsxs("div",{className:O.section,children:[y.jsx("span",{className:O.sectionLabel,children:M("ticket.priority")}),y.jsx("div",{className:O.priorities,children:Hp.map(j=>y.jsx("button",{className:`${O.priorityBtn} ${v===j.value?O.selected:""}`,style:{"--priority-color":j.colorVar},onClick:()=>w(j.value),children:M(j.labelKey)},j.value))})]}),e&&e.agent_sessions&&e.agent_sessions.length>0&&y.jsxs("div",{className:O.section,children:[y.jsxs("span",{className:O.sectionLabel,style:{display:"flex",alignItems:"center",gap:"6px"},children:[y.jsx(oo,{size:14}),"Agent History"]}),y.jsx("div",{className:O.agentHistoryList,children:e.agent_sessions.map((j,b)=>{var ue;const K=((ue=r.columns.find(lt=>lt.id===j.column_id))==null?void 0:ue.name)||"Unknown Step";return y.jsxs("div",{className:O.historyItem,children:[y.jsxs("div",{className:O.historyMeta,children:[y.jsx("span",{className:O.historyCol,children:K}),y.jsx("span",{className:`${O.historyStatus} ${O[j.status]||""}`,children:j.status==="needs_approval"?"Needs Approval":j.status})]}),y.jsxs("div",{className:O.historyLinks,children:[(j.url||j.port)&&y.jsxs("a",{href:j.url||`http://127.0.0.1:${j.port}`,target:"_blank",rel:"noopener noreferrer",className:O.historyLink,children:["Session Link ",y.jsx(ei,{size:12})]}),j.pr_url&&y.jsxs("a",{href:j.pr_url,target:"_blank",rel:"noopener noreferrer",className:O.historyLink,style:{color:"#2da44e"},children:["Code Review ",y.jsx(Kp,{size:12})]})]}),j.error_message&&y.jsx("div",{className:O.historyError,children:j.error_message})]},b)})})]}),e&&y.jsxs("div",{className:O.commentsSection,children:[y.jsxs("div",{className:O.sectionLabel,style:{display:"flex",alignItems:"center",gap:"6px"},children:[y.jsx(r0,{size:14}),M("ticket.comments")]}),y.jsxs("div",{className:O.commentList,children:[C.map(j=>y.jsxs("div",{className:O.comment,children:[y.jsxs("div",{className:O.commentHeader,children:[y.jsx("span",{className:O.commentAuthor,children:j.author==="user"?"You":y.jsxs(y.Fragment,{children:[y.jsx(oo,{size:12,className:O.botIcon}),j.author]})}),y.jsx("span",{className:O.commentDate,children:new Date(j.created_at).toLocaleString()})]}),y.jsx("div",{className:O.commentContent,children:j.content})]},j.id)),C.length===0&&y.jsx("div",{className:O.noComments,children:M("ticket.no_comments")})]}),y.jsxs("div",{className:O.addComment,children:[y.jsx("input",{type:"text",className:O.commentInput,value:p,onChange:j=>m(j.target.value),onKeyDown:j=>j.key==="Enter"&&L(),placeholder:M("ticket.add_comment_placeholder")}),y.jsx("button",{className:O.sendBtn,onClick:L,disabled:!p.trim(),children:y.jsx(s0,{size:14})})]})]})]}),y.jsxs("div",{className:O.footer,children:[e?y.jsxs("button",{className:O.deleteBtn,onClick:()=>h(!0),children:[y.jsx(vu,{size:14}),M("ticket.delete")]}):y.jsx("div",{}),y.jsxs("div",{className:O.footerActions,children:[y.jsx("button",{className:O.cancelBtn,onClick:n,children:M("action.cancel")}),y.jsx("button",{className:O.saveBtn,onClick:k,disabled:!_||!a.trim(),children:M("action.save")})]})]}),E&&y.jsx(gu,{message:M("confirm.delete_ticket"),confirmLabel:M("action.confirm_delete"),onConfirm:T,onCancel:()=>h(!1)})]})})}const j_="_overlay_9jvqp_1",P_="_modal_9jvqp_47",I_="_header_9jvqp_91",O_="_closeBtn_9jvqp_111",M_="_body_9jvqp_143",A_="_formGroup_9jvqp_157",z_="_label_9jvqp_169",B_="_select_9jvqp_181",$_="_input_9jvqp_183",b_="_footer_9jvqp_217",F_="_cancelBtn_9jvqp_235",U_="_saveBtn_9jvqp_263",re={overlay:j_,modal:P_,header:I_,closeBtn:O_,body:M_,formGroup:A_,label:z_,select:B_,input:$_,footer:b_,cancelBtn:F_,saveBtn:U_};function H_({column:e,boardId:t,onClose:n}){const{state:{columnConfigs:r,columns:o},updateColumnConfig:l,deleteColumnConfig:i}=Mn(),s=r.find(x=>x.column_id===e.id),[a,u]=c.useState((s==null?void 0:s.agent_type)??"none"),[f,d]=c.useState((s==null?void 0:s.agent_model)??"gpt-4o"),[v,w]=c.useState((s==null?void 0:s.max_agents)??1),[_,g]=c.useState((s==null?void 0:s.on_finish_column_id)??""),[E,h]=c.useState((s==null?void 0:s.on_reject_column_id)??""),[p,m]=c.useState(!1);c.useEffect(()=>{m(a!==((s==null?void 0:s.agent_type)??"none")||f!==((s==null?void 0:s.agent_model)??"gpt-4o")||v!==((s==null?void 0:s.max_agents)??1)||_!==((s==null?void 0:s.on_finish_column_id)??"")||E!==((s==null?void 0:s.on_reject_column_id)??""))},[a,f,v,_,E,s]),c.useEffect(()=>{function x(N){N.key==="Escape"&&n()}return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[n]);async function S(){a==="none"?await i(t,e.id):await l(t,e.id,{agentType:a,agentModel:a==="opencode"?f:null,maxAgents:v,onFinishColumnId:_||null,onRejectColumnId:a==="code_review"&&E||null}),n()}return y.jsx("div",{className:re.overlay,onClick:n,children:y.jsxs("div",{className:re.modal,onClick:x=>x.stopPropagation(),children:[y.jsxs("div",{className:re.header,children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[y.jsx(mu,{size:18}),M("column.settings")]}),y.jsx("button",{className:re.closeBtn,onClick:n,children:y.jsx(yu,{size:16})})]}),y.jsxs("div",{className:re.body,children:[y.jsxs("div",{className:re.formGroup,children:[y.jsx("label",{className:re.label,children:M("agent.type")}),y.jsxs("select",{className:re.select,value:a,onChange:x=>u(x.target.value),children:[y.jsx("option",{value:"none",children:M("agent.none")}),y.jsx("option",{value:"dummy",children:M("agent.dummy")}),y.jsx("option",{value:"opencode",children:"OpenCode Agent"}),y.jsx("option",{value:"code_review",children:"Code Review Agent"})]})]}),(a==="opencode"||a==="code_review")&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:re.formGroup,children:[y.jsx("label",{className:re.label,children:"OpenCode Model"}),y.jsx("input",{type:"text",className:re.input,value:f,onChange:x=>d(x.target.value),placeholder:"e.g. gpt-4o, claude-3-haiku"})]}),y.jsxs("div",{className:re.formGroup,children:[y.jsx("label",{className:re.label,children:"Max Concurrent Agents"}),y.jsx("input",{type:"number",className:re.input,value:v,min:1,max:10,onChange:x=>w(parseInt(x.target.value)||1)})]})]}),a!=="none"&&y.jsxs("div",{className:re.formGroup,children:[y.jsx("label",{className:re.label,children:"On Finish Move To"}),y.jsxs("select",{className:re.select,value:_,onChange:x=>g(x.target.value),children:[y.jsx("option",{value:"",children:M("agent.do_nothing")}),o.filter(x=>x.id!==e.id).map(x=>y.jsxs("option",{value:x.id,children:[M("agent.move_to")," ",x.name]},x.id))]})]}),a==="code_review"&&y.jsxs("div",{className:re.formGroup,children:[y.jsx("label",{className:re.label,children:"On Reject Move To"}),y.jsxs("select",{className:re.select,value:E,onChange:x=>h(x.target.value),children:[y.jsx("option",{value:"",children:M("agent.do_nothing")}),o.filter(x=>x.id!==e.id).map(x=>y.jsxs("option",{value:x.id,children:[M("agent.move_to")," ",x.name]},x.id))]})]})]}),y.jsxs("div",{className:re.footer,children:[y.jsx("button",{className:re.cancelBtn,onClick:n,children:M("action.cancel")}),y.jsx("button",{className:re.saveBtn,onClick:S,disabled:!p,children:M("action.save")})]})]})})}function Eh({defaultValue:e,placeholder:t,onSave:n,onCancel:r,autoFocus:o=!0,className:l}){const i=c.useRef(null);c.useEffect(()=>{var a,u;o&&((a=i.current)==null||a.focus()),(u=i.current)==null||u.select()},[o]);function s(a){var u;a.key==="Enter"&&(a.preventDefault(),n(((u=i.current)==null?void 0:u.value)??"")),a.key==="Escape"&&(a.preventDefault(),r())}return y.jsx("input",{ref:i,className:l,defaultValue:e,placeholder:t,onKeyDown:s,onBlur:()=>{var a;return n(((a=i.current)==null?void 0:a.value)??"")}})}const V_="_column_1sqby_1",W_="_header_1sqby_25",K_="_headerRow_1sqby_39",Q_="_name_1sqby_51",Y_="_count_1sqby_73",X_="_headerActions_1sqby_91",G_="_iconBtn_1sqby_101",q_="_headerInput_1sqby_133",J_="_menu_1sqby_155",Z_="_menuItem_1sqby_207",ex="_danger_1sqby_241",tx="_body_1sqby_251",nx="_empty_1sqby_281",rx="_addBtn_1sqby_323",ox="_botIcon_1sqby_361",Se={column:V_,header:W_,headerRow:K_,name:Q_,count:Y_,headerActions:X_,iconBtn:G_,headerInput:q_,menu:J_,menuItem:Z_,danger:ex,body:tx,empty:nx,addBtn:rx,botIcon:ox};function lx({column:e,tickets:t,boardId:n}){const{state:{columnConfigs:r},updateColumn:o,deleteColumn:l}=Mn(),[i,s]=c.useState(!1),[a,u]=c.useState(!1),[f,d]=c.useState(!1),[v,w]=c.useState(!1),[_,g]=c.useState(!1),E=r.find(m=>m.column_id===e.id),{setNodeRef:h}=vh({id:e.id,data:{type:"column",column:e}});async function p(){w(!0)}return y.jsxs("div",{className:Se.column,children:[y.jsxs("div",{className:Se.header,children:[i?y.jsx(Eh,{defaultValue:e.name,onSave:async m=>{m.trim()&&await o(n,e.id,m.trim()),s(!1)},onCancel:()=>s(!1),className:Se.headerInput}):y.jsxs("div",{className:Se.headerRow,children:[y.jsx("span",{className:Se.name,children:e.name}),y.jsx("div",{className:Se.count,children:t.length}),y.jsxs("div",{className:Se.headerActions,children:[E&&y.jsx("div",{title:`${M("agent.type")}: ${E.agent_type}`,children:y.jsx(oo,{size:14,className:Se.botIcon})}),y.jsx("button",{className:Se.iconBtn,onClick:()=>g(m=>!m),children:y.jsx(mu,{size:14})}),y.jsx("button",{className:Se.iconBtn,onClick:()=>u(m=>!m),children:y.jsx(l0,{size:14})})]})]}),_&&y.jsx(H_,{column:e,boardId:n,onClose:()=>g(!1)}),a&&!i&&y.jsxs("div",{className:Se.menu,onMouseLeave:()=>u(!1),children:[y.jsxs("button",{className:Se.menuItem,onClick:()=>{s(!0),u(!1)},children:[y.jsx(Yp,{size:13})," ",M("column.rename")]}),y.jsxs("button",{className:`${Se.menuItem} ${Se.danger}`,onClick:()=>{d(!0),u(!1)},children:[y.jsx(vu,{size:13})," ",M("column.delete")]})]})]}),y.jsxs("div",{ref:h,className:Se.body,children:[y.jsx(Nw,{items:t.map(m=>m.id),strategy:Ew,children:t.map(m=>y.jsx(Sh,{ticket:m},m.id))}),t.length===0&&y.jsx("div",{className:Se.empty,children:M("column.empty")})]}),y.jsxs("button",{className:Se.addBtn,onClick:p,children:[y.jsx(hu,{size:13}),M("column.add_ticket")]}),v&&y.jsx(Ch,{columnId:e.id,onClose:()=>w(!1)}),f&&y.jsx(gu,{message:M("confirm.delete_column"),confirmLabel:M("action.confirm_delete"),onConfirm:async()=>{await l(n,e.id),d(!1)},onCancel:()=>d(!1)})]})}const ix="_wrapper_1i3ou_1",sx="_topbar_1i3ou_15",ax="_boardName_1i3ou_35",ux="_spacer_1i3ou_49",cx="_configBtn_1i3ou_57",dx="_columnsArea_1i3ou_91",fx="_addColBtn_1i3ou_111",px="_newColumn_1i3ou_159",hx="_newColumnInput_1i3ou_171",mx="_emptyView_1i3ou_195",vx="_emptyTitle_1i3ou_215",yx="_emptySubtitle_1i3ou_227",gx="_loadingColumns_1i3ou_245",wx="_skeleton_1i3ou_255",Fe={wrapper:ix,topbar:sx,boardName:ax,spacer:ux,configBtn:cx,columnsArea:dx,addColBtn:fx,newColumn:px,newColumnInput:hx,emptyView:mx,emptyTitle:vx,emptySubtitle:yx,loadingColumns:gx,skeleton:wx};function ps(){const{boardId:e,ticketId:t}=uu(),n=Mo(),{state:r,createColumn:o,moveTicket:l,selectBoard:i,loadBoardData:s,updateBoard:a}=Mn(),{activeBoardId:u,columns:f,tickets:d,loading:v,boards:w}=r,[_,g]=c.useState(!1),[E,h]=c.useState(!1),[p,m]=c.useState(null),[S,x]=c.useState(null),N=c.useRef(null),C=r1(n1(Eu,{activationConstraint:{distance:5}})),k=p??d;if(c.useEffect(()=>{e&&e!==u&&(i(e),s(e))},[e,u,i,s]),!e)return y.jsxs("div",{className:Fe.emptyView,children:[y.jsx(Qp,{size:40,strokeWidth:1}),y.jsx("h2",{className:Fe.emptyTitle,children:M("board.empty_title")}),y.jsx("p",{className:Fe.emptySubtitle,children:M("board.empty_subtitle")})]});const T=w.find($=>$.id===(e||u)),L=[...f].sort(($,D)=>$.position-D.position),z=t?d.find($=>$.id===t):null;function j($){return k.filter(D=>D.column_id===$).sort((D,I)=>D.position-I.position)}function b($){const{active:D}=$,I=D.data.current;(I==null?void 0:I.type)==="ticket"&&x(I.ticket),N.current=null}function K($){const{active:D,over:I}=$;if(!I)return;const A=D.id,H=I.id,F=D.data.current;if((F==null?void 0:F.type)!=="ticket")return;const Y=I.data.current;let J,ye=-1;(Y==null?void 0:Y.type)==="column"?J=H:(Y==null?void 0:Y.type)==="ticket"&&Y.ticket?J=Y.ticket.column_id:J=H;const X=p??d,Qe=X.find(B=>B.id===A);if(!Qe)return;const it=Qe.column_id,Ye=X.filter(B=>B.column_id===J&&B.id!==A).sort((B,Pe)=>B.position-Pe.position);if((Y==null?void 0:Y.type)==="ticket"?ye=Ye.findIndex(B=>B.id===H):ye=Ye.length,ye===-1&&(ye=Ye.length),it!==J)m(()=>{const B=X.filter(se=>se.id!==A),Pe={...Qe,column_id:J},fe=B.filter(se=>se.column_id===J).sort((se,$e)=>se.position-$e.position);fe.splice(ye,0,Pe);const pe=B.filter(se=>se.column_id!==J);return fe.forEach((se,$e)=>{se.position=$e}),[...pe,...fe]});else{const B=X.filter(pe=>pe.column_id===it).sort((pe,se)=>pe.position-se.position),Pe=B.findIndex(pe=>pe.id===A),fe=B.findIndex(pe=>pe.id===H);Pe!==-1&&fe!==-1&&Pe!==fe?(m(()=>{const pe=Nu(B,Pe,fe);return pe.forEach(($e,Yt)=>{$e.position=Yt}),[...X.filter($e=>$e.column_id!==it),...pe]}),ye=fe):Pe!==-1&&(ye=Pe)}N.current={columnId:J,index:ye}}async function ue($){const{active:D,over:I}=$,A=N.current;if(x(null),N.current=null,!I||!A){m(null);return}const H=D.id;await l(e,H,A.columnId,A.index),setTimeout(()=>m(null),0)}async function lt($){if(!$.trim()){g(!1);return}await o(e,$.trim()),g(!1)}return y.jsxs("div",{className:Fe.wrapper,children:[y.jsxs("div",{className:Fe.topbar,children:[y.jsx("h1",{className:Fe.boardName,children:(T==null?void 0:T.name)??""}),y.jsx("div",{className:Fe.spacer}),y.jsx("button",{className:Fe.configBtn,onClick:()=>h(!0),title:M("board.edit"),children:y.jsx(mu,{size:18})})]}),y.jsxs(rw,{sensors:C,collisionDetection:u1,onDragStart:b,onDragOver:K,onDragEnd:ue,children:[y.jsx("div",{className:Fe.columnsArea,children:v&&!f.length?y.jsx("div",{className:Fe.loadingColumns,children:[1,2,3].map($=>y.jsx("div",{className:Fe.skeleton},$))}):y.jsxs(y.Fragment,{children:[L.map($=>y.jsx(lx,{column:$,tickets:j($.id),boardId:e},$.id)),_?y.jsx("div",{className:Fe.newColumn,children:y.jsx(Eh,{defaultValue:"",placeholder:M("column.rename_placeholder"),onSave:lt,onCancel:()=>g(!1),className:Fe.newColumnInput})}):y.jsxs("button",{className:Fe.addColBtn,onClick:()=>g(!0),children:[y.jsx(hu,{size:15}),M("column.add")]})]})}),y.jsx(_w,{dropAnimation:{sideEffects:yh({styles:{active:{opacity:"0.4"}}})},children:S?y.jsx("div",{style:{width:"var(--column-width)"},children:y.jsx(Sh,{ticket:S,isOverlay:!0})}):null})]}),z&&y.jsx(Ch,{ticket:z,onClose:()=>n(`/boards/${e}`)}),E&&T&&y.jsx(ua,{board:T,onSave:async($,D)=>{await a(T.id,$,D),h(!1)},onCancel:()=>h(!1)})]})}const _x="_switcher_vhltw_1",xx={switcher:_x};function Sx(){const[e,t]=c.useState(()=>localStorage.getItem("theme")??"dark");c.useEffect(()=>{document.documentElement.setAttribute("data-theme",e),localStorage.setItem("theme",e)},[e]);function n(){t(r=>r==="dark"?"light":"dark")}return y.jsxs("button",{className:xx.switcher,onClick:n,title:M(e==="dark"?"theme.light":"theme.dark"),children:[e==="dark"?y.jsx(a0,{size:14}):y.jsx(o0,{size:14}),y.jsx("span",{children:M(e==="dark"?"theme.light":"theme.dark")})]})}const Cx="_shell_8hnwn_1",Ex="_main_8hnwn_15",kx="_topBar_8hnwn_31",Nx="_spacer_8hnwn_51",Rx="_content_8hnwn_59",Hr={shell:Cx,main:Ex,topBar:kx,spacer:Nx,content:Rx};function Tx(){const{loadBoards:e}=Mn();return c.useEffect(()=>{const t=localStorage.getItem("theme")??"dark";document.documentElement.setAttribute("data-theme",t),e()},[e]),y.jsxs("div",{className:Hr.shell,children:[y.jsx(k0,{}),y.jsxs("main",{className:Hr.main,children:[y.jsxs("header",{className:Hr.topBar,children:[y.jsx("div",{className:Hr.spacer}),y.jsx(Sx,{})]}),y.jsx("div",{className:Hr.content,children:y.jsxs(ng,{children:[y.jsx(Yr,{path:"/",element:y.jsx(ps,{})}),y.jsx(Yr,{path:"/boards/:boardId",element:y.jsx(ps,{})}),y.jsx(Yr,{path:"/boards/:boardId/tickets/:ticketId",element:y.jsx(ps,{})}),y.jsx(Yr,{path:"*",element:y.jsx(eg,{to:"/",replace:!0})})]})})]})]})}function Dx(){return y.jsx($g,{children:y.jsx(Ng,{children:y.jsx(Tx,{})})})}hs.createRoot(document.getElementById("root")).render(y.jsx(G.StrictMode,{children:y.jsx(Dx,{})}));
|