draken 0.1.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.
Files changed (63) hide show
  1. package/README.md +108 -0
  2. package/dist/auth/middleware.d.ts +23 -0
  3. package/dist/auth/middleware.d.ts.map +1 -0
  4. package/dist/auth/middleware.js +117 -0
  5. package/dist/auth/middleware.js.map +1 -0
  6. package/dist/cli.d.ts +3 -0
  7. package/dist/cli.d.ts.map +1 -0
  8. package/dist/cli.js +70 -0
  9. package/dist/cli.js.map +1 -0
  10. package/dist/db/queries.d.ts +16 -0
  11. package/dist/db/queries.d.ts.map +1 -0
  12. package/dist/db/queries.js +91 -0
  13. package/dist/db/queries.js.map +1 -0
  14. package/dist/db/schema.d.ts +4 -0
  15. package/dist/db/schema.d.ts.map +1 -0
  16. package/dist/db/schema.js +71 -0
  17. package/dist/db/schema.js.map +1 -0
  18. package/dist/docker/dockerfile.d.ts +5 -0
  19. package/dist/docker/dockerfile.d.ts.map +1 -0
  20. package/dist/docker/dockerfile.js +32 -0
  21. package/dist/docker/dockerfile.js.map +1 -0
  22. package/dist/docker/manager.d.ts +42 -0
  23. package/dist/docker/manager.d.ts.map +1 -0
  24. package/dist/docker/manager.js +311 -0
  25. package/dist/docker/manager.js.map +1 -0
  26. package/dist/git/status.d.ts +36 -0
  27. package/dist/git/status.d.ts.map +1 -0
  28. package/dist/git/status.js +213 -0
  29. package/dist/git/status.js.map +1 -0
  30. package/dist/routes/auth.d.ts +3 -0
  31. package/dist/routes/auth.d.ts.map +1 -0
  32. package/dist/routes/auth.js +49 -0
  33. package/dist/routes/auth.js.map +1 -0
  34. package/dist/routes/browse.d.ts +3 -0
  35. package/dist/routes/browse.d.ts.map +1 -0
  36. package/dist/routes/browse.js +49 -0
  37. package/dist/routes/browse.js.map +1 -0
  38. package/dist/routes/git.d.ts +3 -0
  39. package/dist/routes/git.d.ts.map +1 -0
  40. package/dist/routes/git.js +135 -0
  41. package/dist/routes/git.js.map +1 -0
  42. package/dist/routes/projects.d.ts +3 -0
  43. package/dist/routes/projects.d.ts.map +1 -0
  44. package/dist/routes/projects.js +149 -0
  45. package/dist/routes/projects.js.map +1 -0
  46. package/dist/routes/tasks.d.ts +3 -0
  47. package/dist/routes/tasks.d.ts.map +1 -0
  48. package/dist/routes/tasks.js +313 -0
  49. package/dist/routes/tasks.js.map +1 -0
  50. package/dist/server.d.ts +2 -0
  51. package/dist/server.d.ts.map +1 -0
  52. package/dist/server.js +60 -0
  53. package/dist/server.js.map +1 -0
  54. package/dist/types.d.ts +32 -0
  55. package/dist/types.d.ts.map +1 -0
  56. package/dist/types.js +3 -0
  57. package/dist/types.js.map +1 -0
  58. package/draken.dockerfile.template +18 -0
  59. package/package.json +59 -0
  60. package/public/assets/index-B_sRrhlE.css +1 -0
  61. package/public/assets/index-DHRickdD.js +235 -0
  62. package/public/draken.svg +13 -0
  63. package/public/index.html +18 -0
@@ -0,0 +1,235 @@
1
+ (function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const c of f)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function s(f){const c={};return f.integrity&&(c.integrity=f.integrity),f.referrerPolicy&&(c.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?c.credentials="include":f.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(f){if(f.ep)return;f.ep=!0;const c=s(f);fetch(f.href,c)}})();function va(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function kd(l){if(Object.prototype.hasOwnProperty.call(l,"__esModule"))return l;var o=l.default;if(typeof o=="function"){var s=function u(){return this instanceof u?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};s.prototype=o.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(l).forEach(function(u){var f=Object.getOwnPropertyDescriptor(l,u);Object.defineProperty(s,u,f.get?f:{enumerable:!0,get:function(){return l[u]}})}),s}var Gs={exports:{}},nl={},qs={exports:{}},me={};/**
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 Ef;function dm(){if(Ef)return me;Ef=1;var l=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),d=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),w=Symbol.iterator;function E(j){return j===null||typeof j!="object"?null:(j=w&&j[w]||j["@@iterator"],typeof j=="function"?j:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,L={};function O(j,$,fe){this.props=j,this.context=$,this.refs=L,this.updater=fe||S}O.prototype.isReactComponent={},O.prototype.setState=function(j,$){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,$,"setState")},O.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function C(){}C.prototype=O.prototype;function D(j,$,fe){this.props=j,this.context=$,this.refs=L,this.updater=fe||S}var z=D.prototype=new C;z.constructor=D,T(z,O.prototype),z.isPureReactComponent=!0;var Q=Array.isArray,W=Object.prototype.hasOwnProperty,A={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function ee(j,$,fe){var pe,he={},ge=null,Ee=null;if($!=null)for(pe in $.ref!==void 0&&(Ee=$.ref),$.key!==void 0&&(ge=""+$.key),$)W.call($,pe)&&!B.hasOwnProperty(pe)&&(he[pe]=$[pe]);var ke=arguments.length-2;if(ke===1)he.children=fe;else if(1<ke){for(var Le=Array(ke),at=0;at<ke;at++)Le[at]=arguments[at+2];he.children=Le}if(j&&j.defaultProps)for(pe in ke=j.defaultProps,ke)he[pe]===void 0&&(he[pe]=ke[pe]);return{$$typeof:l,type:j,key:ge,ref:Ee,props:he,_owner:A.current}}function se(j,$){return{$$typeof:l,type:j.type,key:$,ref:j.ref,props:j.props,_owner:j._owner}}function ae(j){return typeof j=="object"&&j!==null&&j.$$typeof===l}function _(j){var $={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(fe){return $[fe]})}var I=/\/+/g;function V(j,$){return typeof j=="object"&&j!==null&&j.key!=null?_(""+j.key):$.toString(36)}function U(j,$,fe,pe,he){var ge=typeof j;(ge==="undefined"||ge==="boolean")&&(j=null);var Ee=!1;if(j===null)Ee=!0;else switch(ge){case"string":case"number":Ee=!0;break;case"object":switch(j.$$typeof){case l:case o:Ee=!0}}if(Ee)return Ee=j,he=he(Ee),j=pe===""?"."+V(Ee,0):pe,Q(he)?(fe="",j!=null&&(fe=j.replace(I,"$&/")+"/"),U(he,$,fe,"",function(at){return at})):he!=null&&(ae(he)&&(he=se(he,fe+(!he.key||Ee&&Ee.key===he.key?"":(""+he.key).replace(I,"$&/")+"/")+j)),$.push(he)),1;if(Ee=0,pe=pe===""?".":pe+":",Q(j))for(var ke=0;ke<j.length;ke++){ge=j[ke];var Le=pe+V(ge,ke);Ee+=U(ge,$,fe,Le,he)}else if(Le=E(j),typeof Le=="function")for(j=Le.call(j),ke=0;!(ge=j.next()).done;)ge=ge.value,Le=pe+V(ge,ke++),Ee+=U(ge,$,fe,Le,he);else if(ge==="object")throw $=String(j),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return Ee}function J(j,$,fe){if(j==null)return j;var pe=[],he=0;return U(j,pe,"","",function(ge){return $.call(fe,ge,he++)}),pe}function ne(j){if(j._status===-1){var $=j._result;$=$(),$.then(function(fe){(j._status===0||j._status===-1)&&(j._status=1,j._result=fe)},function(fe){(j._status===0||j._status===-1)&&(j._status=2,j._result=fe)}),j._status===-1&&(j._status=0,j._result=$)}if(j._status===1)return j._result.default;throw j._result}var Z={current:null},H={transition:null},X={ReactCurrentDispatcher:Z,ReactCurrentBatchConfig:H,ReactCurrentOwner:A};function K(){throw Error("act(...) is not supported in production builds of React.")}return me.Children={map:J,forEach:function(j,$,fe){J(j,function(){$.apply(this,arguments)},fe)},count:function(j){var $=0;return J(j,function(){$++}),$},toArray:function(j){return J(j,function($){return $})||[]},only:function(j){if(!ae(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},me.Component=O,me.Fragment=s,me.Profiler=f,me.PureComponent=D,me.StrictMode=u,me.Suspense=h,me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,me.act=K,me.cloneElement=function(j,$,fe){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var pe=T({},j.props),he=j.key,ge=j.ref,Ee=j._owner;if($!=null){if($.ref!==void 0&&(ge=$.ref,Ee=A.current),$.key!==void 0&&(he=""+$.key),j.type&&j.type.defaultProps)var ke=j.type.defaultProps;for(Le in $)W.call($,Le)&&!B.hasOwnProperty(Le)&&(pe[Le]=$[Le]===void 0&&ke!==void 0?ke[Le]:$[Le])}var Le=arguments.length-2;if(Le===1)pe.children=fe;else if(1<Le){ke=Array(Le);for(var at=0;at<Le;at++)ke[at]=arguments[at+2];pe.children=ke}return{$$typeof:l,type:j.type,key:he,ref:ge,props:pe,_owner:Ee}},me.createContext=function(j){return j={$$typeof:d,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:c,_context:j},j.Consumer=j},me.createElement=ee,me.createFactory=function(j){var $=ee.bind(null,j);return $.type=j,$},me.createRef=function(){return{current:null}},me.forwardRef=function(j){return{$$typeof:v,render:j}},me.isValidElement=ae,me.lazy=function(j){return{$$typeof:m,_payload:{_status:-1,_result:j},_init:ne}},me.memo=function(j,$){return{$$typeof:g,type:j,compare:$===void 0?null:$}},me.startTransition=function(j){var $=H.transition;H.transition={};try{j()}finally{H.transition=$}},me.unstable_act=K,me.useCallback=function(j,$){return Z.current.useCallback(j,$)},me.useContext=function(j){return Z.current.useContext(j)},me.useDebugValue=function(){},me.useDeferredValue=function(j){return Z.current.useDeferredValue(j)},me.useEffect=function(j,$){return Z.current.useEffect(j,$)},me.useId=function(){return Z.current.useId()},me.useImperativeHandle=function(j,$,fe){return Z.current.useImperativeHandle(j,$,fe)},me.useInsertionEffect=function(j,$){return Z.current.useInsertionEffect(j,$)},me.useLayoutEffect=function(j,$){return Z.current.useLayoutEffect(j,$)},me.useMemo=function(j,$){return Z.current.useMemo(j,$)},me.useReducer=function(j,$,fe){return Z.current.useReducer(j,$,fe)},me.useRef=function(j){return Z.current.useRef(j)},me.useState=function(j){return Z.current.useState(j)},me.useSyncExternalStore=function(j,$,fe){return Z.current.useSyncExternalStore(j,$,fe)},me.useTransition=function(){return Z.current.useTransition()},me.version="18.3.1",me}var jf;function Gi(){return jf||(jf=1,qs.exports=dm()),qs.exports}/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Nf;function pm(){if(Nf)return nl;Nf=1;var l=Gi(),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,f=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function d(v,h,g){var m,w={},E=null,S=null;g!==void 0&&(E=""+g),h.key!==void 0&&(E=""+h.key),h.ref!==void 0&&(S=h.ref);for(m in h)u.call(h,m)&&!c.hasOwnProperty(m)&&(w[m]=h[m]);if(v&&v.defaultProps)for(m in h=v.defaultProps,h)w[m]===void 0&&(w[m]=h[m]);return{$$typeof:o,type:v,key:E,ref:S,props:w,_owner:f.current}}return nl.Fragment=s,nl.jsx=d,nl.jsxs=d,nl}var _f;function Sd(){return _f||(_f=1,Gs.exports=pm()),Gs.exports}var y=Sd(),P=Gi();const hm=va(P);var _i={},Qs={exports:{}},it={},Ks={exports:{}},Ys={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Lf;function mm(){return Lf||(Lf=1,(function(l){function o(H,X){var K=H.length;H.push(X);e:for(;0<K;){var j=K-1>>>1,$=H[j];if(0<f($,X))H[j]=X,H[K]=$,K=j;else break e}}function s(H){return H.length===0?null:H[0]}function u(H){if(H.length===0)return null;var X=H[0],K=H.pop();if(K!==X){H[0]=K;e:for(var j=0,$=H.length,fe=$>>>1;j<fe;){var pe=2*(j+1)-1,he=H[pe],ge=pe+1,Ee=H[ge];if(0>f(he,K))ge<$&&0>f(Ee,he)?(H[j]=Ee,H[ge]=K,j=ge):(H[j]=he,H[pe]=K,j=pe);else if(ge<$&&0>f(Ee,K))H[j]=Ee,H[ge]=K,j=ge;else break e}}return X}function f(H,X){var K=H.sortIndex-X.sortIndex;return K!==0?K:H.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;l.unstable_now=function(){return c.now()}}else{var d=Date,v=d.now();l.unstable_now=function(){return d.now()-v}}var h=[],g=[],m=1,w=null,E=3,S=!1,T=!1,L=!1,O=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function z(H){for(var X=s(g);X!==null;){if(X.callback===null)u(g);else if(X.startTime<=H)u(g),X.sortIndex=X.expirationTime,o(h,X);else break;X=s(g)}}function Q(H){if(L=!1,z(H),!T)if(s(h)!==null)T=!0,ne(W);else{var X=s(g);X!==null&&Z(Q,X.startTime-H)}}function W(H,X){T=!1,L&&(L=!1,C(ee),ee=-1),S=!0;var K=E;try{for(z(X),w=s(h);w!==null&&(!(w.expirationTime>X)||H&&!_());){var j=w.callback;if(typeof j=="function"){w.callback=null,E=w.priorityLevel;var $=j(w.expirationTime<=X);X=l.unstable_now(),typeof $=="function"?w.callback=$:w===s(h)&&u(h),z(X)}else u(h);w=s(h)}if(w!==null)var fe=!0;else{var pe=s(g);pe!==null&&Z(Q,pe.startTime-X),fe=!1}return fe}finally{w=null,E=K,S=!1}}var A=!1,B=null,ee=-1,se=5,ae=-1;function _(){return!(l.unstable_now()-ae<se)}function I(){if(B!==null){var H=l.unstable_now();ae=H;var X=!0;try{X=B(!0,H)}finally{X?V():(A=!1,B=null)}}else A=!1}var V;if(typeof D=="function")V=function(){D(I)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,J=U.port2;U.port1.onmessage=I,V=function(){J.postMessage(null)}}else V=function(){O(I,0)};function ne(H){B=H,A||(A=!0,V())}function Z(H,X){ee=O(function(){H(l.unstable_now())},X)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(H){H.callback=null},l.unstable_continueExecution=function(){T||S||(T=!0,ne(W))},l.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<H?Math.floor(1e3/H):5},l.unstable_getCurrentPriorityLevel=function(){return E},l.unstable_getFirstCallbackNode=function(){return s(h)},l.unstable_next=function(H){switch(E){case 1:case 2:case 3:var X=3;break;default:X=E}var K=E;E=X;try{return H()}finally{E=K}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function(H,X){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var K=E;E=H;try{return X()}finally{E=K}},l.unstable_scheduleCallback=function(H,X,K){var j=l.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?j+K:j):K=j,H){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=K+$,H={id:m++,callback:X,priorityLevel:H,startTime:K,expirationTime:$,sortIndex:-1},K>j?(H.sortIndex=K,o(g,H),s(h)===null&&H===s(g)&&(L?(C(ee),ee=-1):L=!0,Z(Q,K-j))):(H.sortIndex=$,o(h,H),T||S||(T=!0,ne(W))),H},l.unstable_shouldYield=_,l.unstable_wrapCallback=function(H){var X=E;return function(){var K=E;E=X;try{return H.apply(this,arguments)}finally{E=K}}}})(Ys)),Ys}var Pf;function vm(){return Pf||(Pf=1,Ks.exports=mm()),Ks.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 Rf;function gm(){if(Rf)return it;Rf=1;var l=Gi(),o=vm();function s(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 u=new Set,f={};function c(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(f[e]=t,e=0;e<t.length;e++)u.add(t[e])}var v=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,g=/^[: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]*$/,m={},w={};function E(e){return h.call(w,e)?!0:h.call(m,e)?!1:g.test(e)?w[e]=!0:(m[e]=!0,!1)}function S(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 T(e,t,n,r){if(t===null||typeof t>"u"||S(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 L(e,t,n,r,i,a,p){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=p}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){O[e]=new L(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];O[t]=new L(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){O[e]=new L(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){O[e]=new L(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){O[e]=new L(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){O[e]=new L(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){O[e]=new L(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){O[e]=new L(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){O[e]=new L(e,5,!1,e.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function D(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(C,D);O[t]=new L(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(C,D);O[t]=new L(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(C,D);O[t]=new L(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){O[e]=new L(e,1,!1,e.toLowerCase(),null,!1,!1)}),O.xlinkHref=new L("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){O[e]=new L(e,1,!1,e.toLowerCase(),null,!0,!0)});function z(e,t,n,r){var i=O.hasOwnProperty(t)?O[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(T(t,n,i,r)&&(n=null),r||i===null?E(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Q=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,W=Symbol.for("react.element"),A=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),ae=Symbol.for("react.provider"),_=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),Z=Symbol.for("react.offscreen"),H=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var K=Object.assign,j;function $(e){if(j===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return`
34
+ `+j+e}var fe=!1;function pe(e,t){if(!e||fe)return"";fe=!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(F){var r=F}Reflect.construct(e,[],t)}else{try{t.call()}catch(F){r=F}e.call(t.prototype)}else{try{throw Error()}catch(F){r=F}e()}}catch(F){if(F&&r&&typeof F.stack=="string"){for(var i=F.stack.split(`
35
+ `),a=r.stack.split(`
36
+ `),p=i.length-1,x=a.length-1;1<=p&&0<=x&&i[p]!==a[x];)x--;for(;1<=p&&0<=x;p--,x--)if(i[p]!==a[x]){if(p!==1||x!==1)do if(p--,x--,0>x||i[p]!==a[x]){var k=`
37
+ `+i[p].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=p&&0<=x);break}}}finally{fe=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$(e):""}function he(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return e=pe(e.type,!1),e;case 11:return e=pe(e.type.render,!1),e;case 1:return e=pe(e.type,!0),e;default:return""}}function ge(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 B:return"Fragment";case A:return"Portal";case se:return"Profiler";case ee:return"StrictMode";case V:return"Suspense";case U:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case ae:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:ge(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}function Ee(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 ge(t);case 8:return t===ee?"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 ke(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Le(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function at(e){var t=Le(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(p){r=""+p,a.call(this,p)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(p){r=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gl(e){e._valueTracker||(e._valueTracker=at(e))}function Pa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Le(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yl(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 Ji(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ra(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ke(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 Ta(e,t){t=t.checked,t!=null&&z(e,"checked",t,!1)}function Zi(e,t){Ta(e,t);var n=ke(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")?eo(e,t.type,n):t.hasOwnProperty("defaultValue")&&eo(e,t.type,ke(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Oa(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 eo(e,t,n){(t!=="number"||yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gr=Array.isArray;function An(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ke(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function to(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return K({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Da(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(s(92));if(gr(n)){if(1<n.length)throw Error(s(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ke(n)}}function Ma(e,t){var n=ke(t.value),r=ke(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 Fa(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function za(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 no(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?za(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wl,Aa=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(wl=wl||document.createElement("div"),wl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=wl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function yr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wr={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},vp=["Webkit","ms","Moz","O"];Object.keys(wr).forEach(function(e){vp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});function Ia(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wr.hasOwnProperty(e)&&wr[e]?(""+t).trim():t+"px"}function Ba(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ia(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var gp=K({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 ro(e,t){if(t){if(gp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function lo(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 io=null;function oo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var so=null,In=null,Bn=null;function $a(e){if(e=Hr(e)){if(typeof so!="function")throw Error(s(280));var t=e.stateNode;t&&(t=Vl(t),so(e.stateNode,e.type,t))}}function Ha(e){In?Bn?Bn.push(e):Bn=[e]:In=e}function Va(){if(In){var e=In,t=Bn;if(Bn=In=null,$a(e),t)for(e=0;e<t.length;e++)$a(t[e])}}function Ua(e,t){return e(t)}function Wa(){}var ao=!1;function ba(e,t,n){if(ao)return e(t,n);ao=!0;try{return Ua(e,t,n)}finally{ao=!1,(In!==null||Bn!==null)&&(Wa(),Va())}}function xr(e,t){var n=e.stateNode;if(n===null)return null;var r=Vl(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(s(231,t,typeof n));return n}var uo=!1;if(v)try{var kr={};Object.defineProperty(kr,"passive",{get:function(){uo=!0}}),window.addEventListener("test",kr,kr),window.removeEventListener("test",kr,kr)}catch{uo=!1}function yp(e,t,n,r,i,a,p,x,k){var F=Array.prototype.slice.call(arguments,3);try{t.apply(n,F)}catch(G){this.onError(G)}}var Sr=!1,xl=null,kl=!1,co=null,wp={onError:function(e){Sr=!0,xl=e}};function xp(e,t,n,r,i,a,p,x,k){Sr=!1,xl=null,yp.apply(wp,arguments)}function kp(e,t,n,r,i,a,p,x,k){if(xp.apply(this,arguments),Sr){if(Sr){var F=xl;Sr=!1,xl=null}else throw Error(s(198));kl||(kl=!0,co=F)}}function wn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ga(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 qa(e){if(wn(e)!==e)throw Error(s(188))}function Sp(e){var t=e.alternate;if(!t){if(t=wn(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return qa(i),e;if(a===r)return qa(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var p=!1,x=i.child;x;){if(x===n){p=!0,n=i,r=a;break}if(x===r){p=!0,r=i,n=a;break}x=x.sibling}if(!p){for(x=a.child;x;){if(x===n){p=!0,n=a,r=i;break}if(x===r){p=!0,r=a,n=i;break}x=x.sibling}if(!p)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function Qa(e){return e=Sp(e),e!==null?Ka(e):null}function Ka(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ka(e);if(t!==null)return t;e=e.sibling}return null}var Ya=o.unstable_scheduleCallback,Xa=o.unstable_cancelCallback,Cp=o.unstable_shouldYield,Ep=o.unstable_requestPaint,Me=o.unstable_now,jp=o.unstable_getCurrentPriorityLevel,fo=o.unstable_ImmediatePriority,Ja=o.unstable_UserBlockingPriority,Sl=o.unstable_NormalPriority,Np=o.unstable_LowPriority,Za=o.unstable_IdlePriority,Cl=null,Tt=null;function _p(e){if(Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(Cl,e,void 0,(e.current.flags&128)===128)}catch{}}var St=Math.clz32?Math.clz32:Rp,Lp=Math.log,Pp=Math.LN2;function Rp(e){return e>>>=0,e===0?32:31-(Lp(e)/Pp|0)|0}var El=64,jl=4194304;function Cr(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 Nl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,p=n&268435455;if(p!==0){var x=p&~i;x!==0?r=Cr(x):(a&=p,a!==0&&(r=Cr(a)))}else p=n&~i,p!==0?r=Cr(p):a!==0&&(r=Cr(a));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-St(t),i=1<<n,r|=e[n],t&=~i;return r}function Tp(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 Op(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var p=31-St(a),x=1<<p,k=i[p];k===-1?((x&n)===0||(x&r)!==0)&&(i[p]=Tp(x,t)):k<=t&&(e.expiredLanes|=x),a&=~x}}function po(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function eu(){var e=El;return El<<=1,(El&4194240)===0&&(El=64),e}function ho(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Er(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-St(t),e[t]=n}function Dp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-St(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function mo(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-St(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Se=0;function tu(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var nu,vo,ru,lu,iu,go=!1,_l=[],Yt=null,Xt=null,Jt=null,jr=new Map,Nr=new Map,Zt=[],Mp="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 ou(e,t){switch(e){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Xt=null;break;case"mouseover":case"mouseout":Jt=null;break;case"pointerover":case"pointerout":jr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nr.delete(t.pointerId)}}function _r(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Hr(t),t!==null&&vo(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Fp(e,t,n,r,i){switch(t){case"focusin":return Yt=_r(Yt,e,t,n,r,i),!0;case"dragenter":return Xt=_r(Xt,e,t,n,r,i),!0;case"mouseover":return Jt=_r(Jt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return jr.set(a,_r(jr.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Nr.set(a,_r(Nr.get(a)||null,e,t,n,r,i)),!0}return!1}function su(e){var t=xn(e.target);if(t!==null){var n=wn(t);if(n!==null){if(t=n.tag,t===13){if(t=Ga(n),t!==null){e.blockedOn=t,iu(e.priority,function(){ru(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 Ll(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);io=r,n.target.dispatchEvent(r),io=null}else return t=Hr(n),t!==null&&vo(t),e.blockedOn=n,!1;t.shift()}return!0}function au(e,t,n){Ll(e)&&n.delete(t)}function zp(){go=!1,Yt!==null&&Ll(Yt)&&(Yt=null),Xt!==null&&Ll(Xt)&&(Xt=null),Jt!==null&&Ll(Jt)&&(Jt=null),jr.forEach(au),Nr.forEach(au)}function Lr(e,t){e.blockedOn===t&&(e.blockedOn=null,go||(go=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zp)))}function Pr(e){function t(i){return Lr(i,e)}if(0<_l.length){Lr(_l[0],e);for(var n=1;n<_l.length;n++){var r=_l[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yt!==null&&Lr(Yt,e),Xt!==null&&Lr(Xt,e),Jt!==null&&Lr(Jt,e),jr.forEach(t),Nr.forEach(t),n=0;n<Zt.length;n++)r=Zt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Zt.length&&(n=Zt[0],n.blockedOn===null);)su(n),n.blockedOn===null&&Zt.shift()}var $n=Q.ReactCurrentBatchConfig,Pl=!0;function Ap(e,t,n,r){var i=Se,a=$n.transition;$n.transition=null;try{Se=1,yo(e,t,n,r)}finally{Se=i,$n.transition=a}}function Ip(e,t,n,r){var i=Se,a=$n.transition;$n.transition=null;try{Se=4,yo(e,t,n,r)}finally{Se=i,$n.transition=a}}function yo(e,t,n,r){if(Pl){var i=wo(e,t,n,r);if(i===null)zo(e,t,r,Rl,n),ou(e,r);else if(Fp(i,e,t,n,r))r.stopPropagation();else if(ou(e,r),t&4&&-1<Mp.indexOf(e)){for(;i!==null;){var a=Hr(i);if(a!==null&&nu(a),a=wo(e,t,n,r),a===null&&zo(e,t,r,Rl,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else zo(e,t,r,null,n)}}var Rl=null;function wo(e,t,n,r){if(Rl=null,e=oo(r),e=xn(e),e!==null)if(t=wn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ga(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 Rl=e,null}function uu(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(jp()){case fo:return 1;case Ja:return 4;case Sl:case Np:return 16;case Za:return 536870912;default:return 16}default:return 16}}var en=null,xo=null,Tl=null;function cu(){if(Tl)return Tl;var e,t=xo,n=t.length,r,i="value"in en?en.value:en.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var p=n-e;for(r=1;r<=p&&t[n-r]===i[a-r];r++);return Tl=i.slice(e,1<r?1-r:void 0)}function Ol(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 Dl(){return!0}function fu(){return!1}function ut(e){function t(n,r,i,a,p){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=p,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(a):a[x]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Dl:fu,this.isPropagationStopped=fu,this}return K(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=Dl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Dl)},persist:function(){},isPersistent:Dl}),t}var Hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ko=ut(Hn),Rr=K({},Hn,{view:0,detail:0}),Bp=ut(Rr),So,Co,Tr,Ml=K({},Rr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jo,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!==Tr&&(Tr&&e.type==="mousemove"?(So=e.screenX-Tr.screenX,Co=e.screenY-Tr.screenY):Co=So=0,Tr=e),So)},movementY:function(e){return"movementY"in e?e.movementY:Co}}),du=ut(Ml),$p=K({},Ml,{dataTransfer:0}),Hp=ut($p),Vp=K({},Rr,{relatedTarget:0}),Eo=ut(Vp),Up=K({},Hn,{animationName:0,elapsedTime:0,pseudoElement:0}),Wp=ut(Up),bp=K({},Hn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gp=ut(bp),qp=K({},Hn,{data:0}),pu=ut(qp),Qp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kp={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"},Yp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yp[e])?!!t[e]:!1}function jo(){return Xp}var Jp=K({},Rr,{key:function(e){if(e.key){var t=Qp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ol(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Kp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jo,charCode:function(e){return e.type==="keypress"?Ol(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ol(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Zp=ut(Jp),eh=K({},Ml,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hu=ut(eh),th=K({},Rr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jo}),nh=ut(th),rh=K({},Hn,{propertyName:0,elapsedTime:0,pseudoElement:0}),lh=ut(rh),ih=K({},Ml,{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}),oh=ut(ih),sh=[9,13,27,32],No=v&&"CompositionEvent"in window,Or=null;v&&"documentMode"in document&&(Or=document.documentMode);var ah=v&&"TextEvent"in window&&!Or,mu=v&&(!No||Or&&8<Or&&11>=Or),vu=" ",gu=!1;function yu(e,t){switch(e){case"keyup":return sh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function uh(e,t){switch(e){case"compositionend":return wu(t);case"keypress":return t.which!==32?null:(gu=!0,vu);case"textInput":return e=t.data,e===vu&&gu?null:e;default:return null}}function ch(e,t){if(Vn)return e==="compositionend"||!No&&yu(e,t)?(e=cu(),Tl=xo=en=null,Vn=!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 mu&&t.locale!=="ko"?null:t.data;default:return null}}var fh={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 xu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fh[e.type]:t==="textarea"}function ku(e,t,n,r){Ha(r),t=Bl(t,"onChange"),0<t.length&&(n=new ko("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Dr=null,Mr=null;function dh(e){Bu(e,0)}function Fl(e){var t=qn(e);if(Pa(t))return e}function ph(e,t){if(e==="change")return t}var Su=!1;if(v){var _o;if(v){var Lo="oninput"in document;if(!Lo){var Cu=document.createElement("div");Cu.setAttribute("oninput","return;"),Lo=typeof Cu.oninput=="function"}_o=Lo}else _o=!1;Su=_o&&(!document.documentMode||9<document.documentMode)}function Eu(){Dr&&(Dr.detachEvent("onpropertychange",ju),Mr=Dr=null)}function ju(e){if(e.propertyName==="value"&&Fl(Mr)){var t=[];ku(t,Mr,e,oo(e)),ba(dh,t)}}function hh(e,t,n){e==="focusin"?(Eu(),Dr=t,Mr=n,Dr.attachEvent("onpropertychange",ju)):e==="focusout"&&Eu()}function mh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fl(Mr)}function vh(e,t){if(e==="click")return Fl(t)}function gh(e,t){if(e==="input"||e==="change")return Fl(t)}function yh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:yh;function Fr(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!h.call(t,i)||!Ct(e[i],t[i]))return!1}return!0}function Nu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _u(e,t){var n=Nu(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=Nu(n)}}function Lu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pu(){for(var e=window,t=yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yl(e.document)}return t}function Po(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 wh(e){var t=Pu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lu(n.ownerDocument.documentElement,n)){if(r!==null&&Po(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=_u(n,a);var p=_u(n,r);i&&p&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==p.node||e.focusOffset!==p.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(p.node,p.offset)):(t.setEnd(p.node,p.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 xh=v&&"documentMode"in document&&11>=document.documentMode,Un=null,Ro=null,zr=null,To=!1;function Ru(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;To||Un==null||Un!==yl(r)||(r=Un,"selectionStart"in r&&Po(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&&Fr(zr,r)||(zr=r,r=Bl(Ro,"onSelect"),0<r.length&&(t=new ko("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Un)))}function zl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wn={animationend:zl("Animation","AnimationEnd"),animationiteration:zl("Animation","AnimationIteration"),animationstart:zl("Animation","AnimationStart"),transitionend:zl("Transition","TransitionEnd")},Oo={},Tu={};v&&(Tu=document.createElement("div").style,"AnimationEvent"in window||(delete Wn.animationend.animation,delete Wn.animationiteration.animation,delete Wn.animationstart.animation),"TransitionEvent"in window||delete Wn.transitionend.transition);function Al(e){if(Oo[e])return Oo[e];if(!Wn[e])return e;var t=Wn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Tu)return Oo[e]=t[n];return e}var Ou=Al("animationend"),Du=Al("animationiteration"),Mu=Al("animationstart"),Fu=Al("transitionend"),zu=new Map,Au="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 tn(e,t){zu.set(e,t),c(t,[e])}for(var Do=0;Do<Au.length;Do++){var Mo=Au[Do],kh=Mo.toLowerCase(),Sh=Mo[0].toUpperCase()+Mo.slice(1);tn(kh,"on"+Sh)}tn(Ou,"onAnimationEnd"),tn(Du,"onAnimationIteration"),tn(Mu,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(Fu,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ar="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(" "),Ch=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ar));function Iu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,kp(r,t,void 0,e),e.currentTarget=null}function Bu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var p=r.length-1;0<=p;p--){var x=r[p],k=x.instance,F=x.currentTarget;if(x=x.listener,k!==a&&i.isPropagationStopped())break e;Iu(i,x,F),a=k}else for(p=0;p<r.length;p++){if(x=r[p],k=x.instance,F=x.currentTarget,x=x.listener,k!==a&&i.isPropagationStopped())break e;Iu(i,x,F),a=k}}}if(kl)throw e=co,kl=!1,co=null,e}function Ne(e,t){var n=t[Vo];n===void 0&&(n=t[Vo]=new Set);var r=e+"__bubble";n.has(r)||($u(t,e,2,!1),n.add(r))}function Fo(e,t,n){var r=0;t&&(r|=4),$u(n,e,r,t)}var Il="_reactListening"+Math.random().toString(36).slice(2);function Ir(e){if(!e[Il]){e[Il]=!0,u.forEach(function(n){n!=="selectionchange"&&(Ch.has(n)||Fo(n,!1,e),Fo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Il]||(t[Il]=!0,Fo("selectionchange",!1,t))}}function $u(e,t,n,r){switch(uu(t)){case 1:var i=Ap;break;case 4:i=Ip;break;default:i=yo}n=i.bind(null,t,n,e),i=void 0,!uo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function zo(e,t,n,r,i){var a=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var p=r.tag;if(p===3||p===4){var x=r.stateNode.containerInfo;if(x===i||x.nodeType===8&&x.parentNode===i)break;if(p===4)for(p=r.return;p!==null;){var k=p.tag;if((k===3||k===4)&&(k=p.stateNode.containerInfo,k===i||k.nodeType===8&&k.parentNode===i))return;p=p.return}for(;x!==null;){if(p=xn(x),p===null)return;if(k=p.tag,k===5||k===6){r=a=p;continue e}x=x.parentNode}}r=r.return}ba(function(){var F=a,G=oo(n),q=[];e:{var b=zu.get(e);if(b!==void 0){var te=ko,le=e;switch(e){case"keypress":if(Ol(n)===0)break e;case"keydown":case"keyup":te=Zp;break;case"focusin":le="focus",te=Eo;break;case"focusout":le="blur",te=Eo;break;case"beforeblur":case"afterblur":te=Eo;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":te=du;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":te=Hp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":te=nh;break;case Ou:case Du:case Mu:te=Wp;break;case Fu:te=lh;break;case"scroll":te=Bp;break;case"wheel":te=oh;break;case"copy":case"cut":case"paste":te=Gp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":te=hu}var ie=(t&4)!==0,Fe=!ie&&e==="scroll",R=ie?b!==null?b+"Capture":null:b;ie=[];for(var N=F,M;N!==null;){M=N;var Y=M.stateNode;if(M.tag===5&&Y!==null&&(M=Y,R!==null&&(Y=xr(N,R),Y!=null&&ie.push(Br(N,Y,M)))),Fe)break;N=N.return}0<ie.length&&(b=new te(b,le,null,n,G),q.push({event:b,listeners:ie}))}}if((t&7)===0){e:{if(b=e==="mouseover"||e==="pointerover",te=e==="mouseout"||e==="pointerout",b&&n!==io&&(le=n.relatedTarget||n.fromElement)&&(xn(le)||le[$t]))break e;if((te||b)&&(b=G.window===G?G:(b=G.ownerDocument)?b.defaultView||b.parentWindow:window,te?(le=n.relatedTarget||n.toElement,te=F,le=le?xn(le):null,le!==null&&(Fe=wn(le),le!==Fe||le.tag!==5&&le.tag!==6)&&(le=null)):(te=null,le=F),te!==le)){if(ie=du,Y="onMouseLeave",R="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ie=hu,Y="onPointerLeave",R="onPointerEnter",N="pointer"),Fe=te==null?b:qn(te),M=le==null?b:qn(le),b=new ie(Y,N+"leave",te,n,G),b.target=Fe,b.relatedTarget=M,Y=null,xn(G)===F&&(ie=new ie(R,N+"enter",le,n,G),ie.target=M,ie.relatedTarget=Fe,Y=ie),Fe=Y,te&&le)t:{for(ie=te,R=le,N=0,M=ie;M;M=bn(M))N++;for(M=0,Y=R;Y;Y=bn(Y))M++;for(;0<N-M;)ie=bn(ie),N--;for(;0<M-N;)R=bn(R),M--;for(;N--;){if(ie===R||R!==null&&ie===R.alternate)break t;ie=bn(ie),R=bn(R)}ie=null}else ie=null;te!==null&&Hu(q,b,te,ie,!1),le!==null&&Fe!==null&&Hu(q,Fe,le,ie,!0)}}e:{if(b=F?qn(F):window,te=b.nodeName&&b.nodeName.toLowerCase(),te==="select"||te==="input"&&b.type==="file")var oe=ph;else if(xu(b))if(Su)oe=gh;else{oe=mh;var ue=hh}else(te=b.nodeName)&&te.toLowerCase()==="input"&&(b.type==="checkbox"||b.type==="radio")&&(oe=vh);if(oe&&(oe=oe(e,F))){ku(q,oe,n,G);break e}ue&&ue(e,b,F),e==="focusout"&&(ue=b._wrapperState)&&ue.controlled&&b.type==="number"&&eo(b,"number",b.value)}switch(ue=F?qn(F):window,e){case"focusin":(xu(ue)||ue.contentEditable==="true")&&(Un=ue,Ro=F,zr=null);break;case"focusout":zr=Ro=Un=null;break;case"mousedown":To=!0;break;case"contextmenu":case"mouseup":case"dragend":To=!1,Ru(q,n,G);break;case"selectionchange":if(xh)break;case"keydown":case"keyup":Ru(q,n,G)}var ce;if(No)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Vn?yu(e,n)&&(de="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(de="onCompositionStart");de&&(mu&&n.locale!=="ko"&&(Vn||de!=="onCompositionStart"?de==="onCompositionEnd"&&Vn&&(ce=cu()):(en=G,xo="value"in en?en.value:en.textContent,Vn=!0)),ue=Bl(F,de),0<ue.length&&(de=new pu(de,e,null,n,G),q.push({event:de,listeners:ue}),ce?de.data=ce:(ce=wu(n),ce!==null&&(de.data=ce)))),(ce=ah?uh(e,n):ch(e,n))&&(F=Bl(F,"onBeforeInput"),0<F.length&&(G=new pu("onBeforeInput","beforeinput",null,n,G),q.push({event:G,listeners:F}),G.data=ce))}Bu(q,t)})}function Br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=xr(e,n),a!=null&&r.unshift(Br(e,a,i)),a=xr(e,t),a!=null&&r.push(Br(e,a,i))),e=e.return}return r}function bn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Hu(e,t,n,r,i){for(var a=t._reactName,p=[];n!==null&&n!==r;){var x=n,k=x.alternate,F=x.stateNode;if(k!==null&&k===r)break;x.tag===5&&F!==null&&(x=F,i?(k=xr(n,a),k!=null&&p.unshift(Br(n,k,x))):i||(k=xr(n,a),k!=null&&p.push(Br(n,k,x)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var Eh=/\r\n?/g,jh=/\u0000|\uFFFD/g;function Vu(e){return(typeof e=="string"?e:""+e).replace(Eh,`
38
+ `).replace(jh,"")}function $l(e,t,n){if(t=Vu(t),Vu(e)!==t&&n)throw Error(s(425))}function Hl(){}var Ao=null,Io=null;function Bo(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 $o=typeof setTimeout=="function"?setTimeout:void 0,Nh=typeof clearTimeout=="function"?clearTimeout:void 0,Uu=typeof Promise=="function"?Promise:void 0,_h=typeof queueMicrotask=="function"?queueMicrotask:typeof Uu<"u"?function(e){return Uu.resolve(null).then(e).catch(Lh)}:$o;function Lh(e){setTimeout(function(){throw e})}function Ho(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Pr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Pr(t)}function nn(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 Wu(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 Gn=Math.random().toString(36).slice(2),Ot="__reactFiber$"+Gn,$r="__reactProps$"+Gn,$t="__reactContainer$"+Gn,Vo="__reactEvents$"+Gn,Ph="__reactListeners$"+Gn,Rh="__reactHandles$"+Gn;function xn(e){var t=e[Ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$t]||n[Ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Wu(e);e!==null;){if(n=e[Ot])return n;e=Wu(e)}return t}e=n,n=e.parentNode}return null}function Hr(e){return e=e[Ot]||e[$t],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function qn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function Vl(e){return e[$r]||null}var Uo=[],Qn=-1;function rn(e){return{current:e}}function _e(e){0>Qn||(e.current=Uo[Qn],Uo[Qn]=null,Qn--)}function je(e,t){Qn++,Uo[Qn]=e.current,e.current=t}var ln={},Ge=rn(ln),et=rn(!1),kn=ln;function Kn(e,t){var n=e.type.contextTypes;if(!n)return ln;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function tt(e){return e=e.childContextTypes,e!=null}function Ul(){_e(et),_e(Ge)}function bu(e,t,n){if(Ge.current!==ln)throw Error(s(168));je(Ge,t),je(et,n)}function Gu(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(s(108,Ee(e)||"Unknown",i));return K({},n,r)}function Wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ln,kn=Ge.current,je(Ge,e),je(et,et.current),!0}function qu(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=Gu(e,t,kn),r.__reactInternalMemoizedMergedChildContext=e,_e(et),_e(Ge),je(Ge,e)):_e(et),je(et,n)}var Ht=null,bl=!1,Wo=!1;function Qu(e){Ht===null?Ht=[e]:Ht.push(e)}function Th(e){bl=!0,Qu(e)}function on(){if(!Wo&&Ht!==null){Wo=!0;var e=0,t=Se;try{var n=Ht;for(Se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ht=null,bl=!1}catch(i){throw Ht!==null&&(Ht=Ht.slice(e+1)),Ya(fo,on),i}finally{Se=t,Wo=!1}}return null}var Yn=[],Xn=0,Gl=null,ql=0,mt=[],vt=0,Sn=null,Vt=1,Ut="";function Cn(e,t){Yn[Xn++]=ql,Yn[Xn++]=Gl,Gl=e,ql=t}function Ku(e,t,n){mt[vt++]=Vt,mt[vt++]=Ut,mt[vt++]=Sn,Sn=e;var r=Vt;e=Ut;var i=32-St(r)-1;r&=~(1<<i),n+=1;var a=32-St(t)+i;if(30<a){var p=i-i%5;a=(r&(1<<p)-1).toString(32),r>>=p,i-=p,Vt=1<<32-St(t)+i|n<<i|r,Ut=a+e}else Vt=1<<a|n<<i|r,Ut=e}function bo(e){e.return!==null&&(Cn(e,1),Ku(e,1,0))}function Go(e){for(;e===Gl;)Gl=Yn[--Xn],Yn[Xn]=null,ql=Yn[--Xn],Yn[Xn]=null;for(;e===Sn;)Sn=mt[--vt],mt[vt]=null,Ut=mt[--vt],mt[vt]=null,Vt=mt[--vt],mt[vt]=null}var ct=null,ft=null,Pe=!1,Et=null;function Yu(e,t){var n=xt(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 Xu(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,ct=e,ft=nn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ct=e,ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Sn!==null?{id:Vt,overflow:Ut}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ct=e,ft=null,!0):!1;default:return!1}}function qo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qo(e){if(Pe){var t=ft;if(t){var n=t;if(!Xu(e,t)){if(qo(e))throw Error(s(418));t=nn(n.nextSibling);var r=ct;t&&Xu(e,t)?Yu(r,n):(e.flags=e.flags&-4097|2,Pe=!1,ct=e)}}else{if(qo(e))throw Error(s(418));e.flags=e.flags&-4097|2,Pe=!1,ct=e}}}function Ju(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function Ql(e){if(e!==ct)return!1;if(!Pe)return Ju(e),Pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Bo(e.type,e.memoizedProps)),t&&(t=ft)){if(qo(e))throw Zu(),Error(s(418));for(;t;)Yu(e,t),t=nn(t.nextSibling)}if(Ju(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ft=nn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ft=null}}else ft=ct?nn(e.stateNode.nextSibling):null;return!0}function Zu(){for(var e=ft;e;)e=nn(e.nextSibling)}function Jn(){ft=ct=null,Pe=!1}function Ko(e){Et===null?Et=[e]:Et.push(e)}var Oh=Q.ReactCurrentBatchConfig;function Vr(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(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(p){var x=i.refs;p===null?delete x[a]:x[a]=p},t._stringRef=a,t)}if(typeof e!="string")throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Kl(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ec(e){var t=e._init;return t(e._payload)}function tc(e){function t(R,N){if(e){var M=R.deletions;M===null?(R.deletions=[N],R.flags|=16):M.push(N)}}function n(R,N){if(!e)return null;for(;N!==null;)t(R,N),N=N.sibling;return null}function r(R,N){for(R=new Map;N!==null;)N.key!==null?R.set(N.key,N):R.set(N.index,N),N=N.sibling;return R}function i(R,N){return R=hn(R,N),R.index=0,R.sibling=null,R}function a(R,N,M){return R.index=M,e?(M=R.alternate,M!==null?(M=M.index,M<N?(R.flags|=2,N):M):(R.flags|=2,N)):(R.flags|=1048576,N)}function p(R){return e&&R.alternate===null&&(R.flags|=2),R}function x(R,N,M,Y){return N===null||N.tag!==6?(N=$s(M,R.mode,Y),N.return=R,N):(N=i(N,M),N.return=R,N)}function k(R,N,M,Y){var oe=M.type;return oe===B?G(R,N,M.props.children,Y,M.key):N!==null&&(N.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===ne&&ec(oe)===N.type)?(Y=i(N,M.props),Y.ref=Vr(R,N,M),Y.return=R,Y):(Y=wi(M.type,M.key,M.props,null,R.mode,Y),Y.ref=Vr(R,N,M),Y.return=R,Y)}function F(R,N,M,Y){return N===null||N.tag!==4||N.stateNode.containerInfo!==M.containerInfo||N.stateNode.implementation!==M.implementation?(N=Hs(M,R.mode,Y),N.return=R,N):(N=i(N,M.children||[]),N.return=R,N)}function G(R,N,M,Y,oe){return N===null||N.tag!==7?(N=Tn(M,R.mode,Y,oe),N.return=R,N):(N=i(N,M),N.return=R,N)}function q(R,N,M){if(typeof N=="string"&&N!==""||typeof N=="number")return N=$s(""+N,R.mode,M),N.return=R,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case W:return M=wi(N.type,N.key,N.props,null,R.mode,M),M.ref=Vr(R,null,N),M.return=R,M;case A:return N=Hs(N,R.mode,M),N.return=R,N;case ne:var Y=N._init;return q(R,Y(N._payload),M)}if(gr(N)||X(N))return N=Tn(N,R.mode,M,null),N.return=R,N;Kl(R,N)}return null}function b(R,N,M,Y){var oe=N!==null?N.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return oe!==null?null:x(R,N,""+M,Y);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case W:return M.key===oe?k(R,N,M,Y):null;case A:return M.key===oe?F(R,N,M,Y):null;case ne:return oe=M._init,b(R,N,oe(M._payload),Y)}if(gr(M)||X(M))return oe!==null?null:G(R,N,M,Y,null);Kl(R,M)}return null}function te(R,N,M,Y,oe){if(typeof Y=="string"&&Y!==""||typeof Y=="number")return R=R.get(M)||null,x(N,R,""+Y,oe);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case W:return R=R.get(Y.key===null?M:Y.key)||null,k(N,R,Y,oe);case A:return R=R.get(Y.key===null?M:Y.key)||null,F(N,R,Y,oe);case ne:var ue=Y._init;return te(R,N,M,ue(Y._payload),oe)}if(gr(Y)||X(Y))return R=R.get(M)||null,G(N,R,Y,oe,null);Kl(N,Y)}return null}function le(R,N,M,Y){for(var oe=null,ue=null,ce=N,de=N=0,Ve=null;ce!==null&&de<M.length;de++){ce.index>de?(Ve=ce,ce=null):Ve=ce.sibling;var ye=b(R,ce,M[de],Y);if(ye===null){ce===null&&(ce=Ve);break}e&&ce&&ye.alternate===null&&t(R,ce),N=a(ye,N,de),ue===null?oe=ye:ue.sibling=ye,ue=ye,ce=Ve}if(de===M.length)return n(R,ce),Pe&&Cn(R,de),oe;if(ce===null){for(;de<M.length;de++)ce=q(R,M[de],Y),ce!==null&&(N=a(ce,N,de),ue===null?oe=ce:ue.sibling=ce,ue=ce);return Pe&&Cn(R,de),oe}for(ce=r(R,ce);de<M.length;de++)Ve=te(ce,R,de,M[de],Y),Ve!==null&&(e&&Ve.alternate!==null&&ce.delete(Ve.key===null?de:Ve.key),N=a(Ve,N,de),ue===null?oe=Ve:ue.sibling=Ve,ue=Ve);return e&&ce.forEach(function(mn){return t(R,mn)}),Pe&&Cn(R,de),oe}function ie(R,N,M,Y){var oe=X(M);if(typeof oe!="function")throw Error(s(150));if(M=oe.call(M),M==null)throw Error(s(151));for(var ue=oe=null,ce=N,de=N=0,Ve=null,ye=M.next();ce!==null&&!ye.done;de++,ye=M.next()){ce.index>de?(Ve=ce,ce=null):Ve=ce.sibling;var mn=b(R,ce,ye.value,Y);if(mn===null){ce===null&&(ce=Ve);break}e&&ce&&mn.alternate===null&&t(R,ce),N=a(mn,N,de),ue===null?oe=mn:ue.sibling=mn,ue=mn,ce=Ve}if(ye.done)return n(R,ce),Pe&&Cn(R,de),oe;if(ce===null){for(;!ye.done;de++,ye=M.next())ye=q(R,ye.value,Y),ye!==null&&(N=a(ye,N,de),ue===null?oe=ye:ue.sibling=ye,ue=ye);return Pe&&Cn(R,de),oe}for(ce=r(R,ce);!ye.done;de++,ye=M.next())ye=te(ce,R,de,ye.value,Y),ye!==null&&(e&&ye.alternate!==null&&ce.delete(ye.key===null?de:ye.key),N=a(ye,N,de),ue===null?oe=ye:ue.sibling=ye,ue=ye);return e&&ce.forEach(function(fm){return t(R,fm)}),Pe&&Cn(R,de),oe}function Fe(R,N,M,Y){if(typeof M=="object"&&M!==null&&M.type===B&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case W:e:{for(var oe=M.key,ue=N;ue!==null;){if(ue.key===oe){if(oe=M.type,oe===B){if(ue.tag===7){n(R,ue.sibling),N=i(ue,M.props.children),N.return=R,R=N;break e}}else if(ue.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===ne&&ec(oe)===ue.type){n(R,ue.sibling),N=i(ue,M.props),N.ref=Vr(R,ue,M),N.return=R,R=N;break e}n(R,ue);break}else t(R,ue);ue=ue.sibling}M.type===B?(N=Tn(M.props.children,R.mode,Y,M.key),N.return=R,R=N):(Y=wi(M.type,M.key,M.props,null,R.mode,Y),Y.ref=Vr(R,N,M),Y.return=R,R=Y)}return p(R);case A:e:{for(ue=M.key;N!==null;){if(N.key===ue)if(N.tag===4&&N.stateNode.containerInfo===M.containerInfo&&N.stateNode.implementation===M.implementation){n(R,N.sibling),N=i(N,M.children||[]),N.return=R,R=N;break e}else{n(R,N);break}else t(R,N);N=N.sibling}N=Hs(M,R.mode,Y),N.return=R,R=N}return p(R);case ne:return ue=M._init,Fe(R,N,ue(M._payload),Y)}if(gr(M))return le(R,N,M,Y);if(X(M))return ie(R,N,M,Y);Kl(R,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,N!==null&&N.tag===6?(n(R,N.sibling),N=i(N,M),N.return=R,R=N):(n(R,N),N=$s(M,R.mode,Y),N.return=R,R=N),p(R)):n(R,N)}return Fe}var Zn=tc(!0),nc=tc(!1),Yl=rn(null),Xl=null,er=null,Yo=null;function Xo(){Yo=er=Xl=null}function Jo(e){var t=Yl.current;_e(Yl),e._currentValue=t}function Zo(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 tr(e,t){Xl=e,Yo=er=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(nt=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(Yo!==e)if(e={context:e,memoizedValue:t,next:null},er===null){if(Xl===null)throw Error(s(308));er=e,Xl.dependencies={lanes:0,firstContext:e}}else er=er.next=e;return t}var En=null;function es(e){En===null?En=[e]:En.push(e)}function rc(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,es(t)):(n.next=i.next,i.next=n),t.interleaved=n,Wt(e,r)}function Wt(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 sn=!1;function ts(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lc(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 an(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ve&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Wt(e,n)}return i=r.interleaved,i===null?(t.next=t,es(r)):(t.next=i.next,i.next=t),r.interleaved=t,Wt(e,n)}function Jl(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,mo(e,n)}}function ic(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var p={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=p:a=a.next=p,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,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 Zl(e,t,n,r){var i=e.updateQueue;sn=!1;var a=i.firstBaseUpdate,p=i.lastBaseUpdate,x=i.shared.pending;if(x!==null){i.shared.pending=null;var k=x,F=k.next;k.next=null,p===null?a=F:p.next=F,p=k;var G=e.alternate;G!==null&&(G=G.updateQueue,x=G.lastBaseUpdate,x!==p&&(x===null?G.firstBaseUpdate=F:x.next=F,G.lastBaseUpdate=k))}if(a!==null){var q=i.baseState;p=0,G=F=k=null,x=a;do{var b=x.lane,te=x.eventTime;if((r&b)===b){G!==null&&(G=G.next={eventTime:te,lane:0,tag:x.tag,payload:x.payload,callback:x.callback,next:null});e:{var le=e,ie=x;switch(b=t,te=n,ie.tag){case 1:if(le=ie.payload,typeof le=="function"){q=le.call(te,q,b);break e}q=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=ie.payload,b=typeof le=="function"?le.call(te,q,b):le,b==null)break e;q=K({},q,b);break e;case 2:sn=!0}}x.callback!==null&&x.lane!==0&&(e.flags|=64,b=i.effects,b===null?i.effects=[x]:b.push(x))}else te={eventTime:te,lane:b,tag:x.tag,payload:x.payload,callback:x.callback,next:null},G===null?(F=G=te,k=q):G=G.next=te,p|=b;if(x=x.next,x===null){if(x=i.shared.pending,x===null)break;b=x,x=b.next,b.next=null,i.lastBaseUpdate=b,i.shared.pending=null}}while(!0);if(G===null&&(k=q),i.baseState=k,i.firstBaseUpdate=F,i.lastBaseUpdate=G,t=i.shared.interleaved,t!==null){i=t;do p|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);_n|=p,e.lanes=p,e.memoizedState=q}}function oc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(s(191,i));i.call(r)}}}var Ur={},Dt=rn(Ur),Wr=rn(Ur),br=rn(Ur);function jn(e){if(e===Ur)throw Error(s(174));return e}function ns(e,t){switch(je(br,t),je(Wr,e),je(Dt,Ur),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:no(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=no(t,e)}_e(Dt),je(Dt,t)}function nr(){_e(Dt),_e(Wr),_e(br)}function sc(e){jn(br.current);var t=jn(Dt.current),n=no(t,e.type);t!==n&&(je(Wr,e),je(Dt,n))}function rs(e){Wr.current===e&&(_e(Dt),_e(Wr))}var Re=rn(0);function ei(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)!==0)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 ls=[];function is(){for(var e=0;e<ls.length;e++)ls[e]._workInProgressVersionPrimary=null;ls.length=0}var ti=Q.ReactCurrentDispatcher,os=Q.ReactCurrentBatchConfig,Nn=0,Te=null,Ie=null,$e=null,ni=!1,Gr=!1,qr=0,Dh=0;function qe(){throw Error(s(321))}function ss(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ct(e[n],t[n]))return!1;return!0}function as(e,t,n,r,i,a){if(Nn=a,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ti.current=e===null||e.memoizedState===null?Ah:Ih,e=n(r,i),Gr){a=0;do{if(Gr=!1,qr=0,25<=a)throw Error(s(301));a+=1,$e=Ie=null,t.updateQueue=null,ti.current=Bh,e=n(r,i)}while(Gr)}if(ti.current=ii,t=Ie!==null&&Ie.next!==null,Nn=0,$e=Ie=Te=null,ni=!1,t)throw Error(s(300));return e}function us(){var e=qr!==0;return qr=0,e}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?Te.memoizedState=$e=e:$e=$e.next=e,$e}function yt(){if(Ie===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=$e===null?Te.memoizedState:$e.next;if(t!==null)$e=t,Ie=e;else{if(e===null)throw Error(s(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},$e===null?Te.memoizedState=$e=e:$e=$e.next=e}return $e}function Qr(e,t){return typeof t=="function"?t(e):t}function cs(e){var t=yt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=Ie,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var p=i.next;i.next=a.next,a.next=p}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var x=p=null,k=null,F=a;do{var G=F.lane;if((Nn&G)===G)k!==null&&(k=k.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),r=F.hasEagerState?F.eagerState:e(r,F.action);else{var q={lane:G,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};k===null?(x=k=q,p=r):k=k.next=q,Te.lanes|=G,_n|=G}F=F.next}while(F!==null&&F!==a);k===null?p=r:k.next=x,Ct(r,t.memoizedState)||(nt=!0),t.memoizedState=r,t.baseState=p,t.baseQueue=k,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,Te.lanes|=a,_n|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function fs(e){var t=yt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var p=i=i.next;do a=e(a,p.action),p=p.next;while(p!==i);Ct(a,t.memoizedState)||(nt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ac(){}function uc(e,t){var n=Te,r=yt(),i=t(),a=!Ct(r.memoizedState,i);if(a&&(r.memoizedState=i,nt=!0),r=r.queue,ds(dc.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||$e!==null&&$e.memoizedState.tag&1){if(n.flags|=2048,Kr(9,fc.bind(null,n,r,i,t),void 0,null),He===null)throw Error(s(349));(Nn&30)!==0||cc(n,t,i)}return i}function cc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function fc(e,t,n,r){t.value=n,t.getSnapshot=r,pc(t)&&hc(e)}function dc(e,t,n){return n(function(){pc(t)&&hc(e)})}function pc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ct(e,n)}catch{return!0}}function hc(e){var t=Wt(e,1);t!==null&&Lt(t,e,1,-1)}function mc(e){var t=Mt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qr,lastRenderedState:e},t.queue=e,e=e.dispatch=zh.bind(null,Te,e),[t.memoizedState,e]}function Kr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.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 vc(){return yt().memoizedState}function ri(e,t,n,r){var i=Mt();Te.flags|=e,i.memoizedState=Kr(1|t,n,void 0,r===void 0?null:r)}function li(e,t,n,r){var i=yt();r=r===void 0?null:r;var a=void 0;if(Ie!==null){var p=Ie.memoizedState;if(a=p.destroy,r!==null&&ss(r,p.deps)){i.memoizedState=Kr(t,n,a,r);return}}Te.flags|=e,i.memoizedState=Kr(1|t,n,a,r)}function gc(e,t){return ri(8390656,8,e,t)}function ds(e,t){return li(2048,8,e,t)}function yc(e,t){return li(4,2,e,t)}function wc(e,t){return li(4,4,e,t)}function xc(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 kc(e,t,n){return n=n!=null?n.concat([e]):null,li(4,4,xc.bind(null,t,e),n)}function ps(){}function Sc(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ss(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Cc(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ss(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ec(e,t,n){return(Nn&21)===0?(e.baseState&&(e.baseState=!1,nt=!0),e.memoizedState=n):(Ct(n,t)||(n=eu(),Te.lanes|=n,_n|=n,e.baseState=!0),t)}function Mh(e,t){var n=Se;Se=n!==0&&4>n?n:4,e(!0);var r=os.transition;os.transition={};try{e(!1),t()}finally{Se=n,os.transition=r}}function jc(){return yt().memoizedState}function Fh(e,t,n){var r=dn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Nc(e))_c(t,n);else if(n=rc(e,t,n,r),n!==null){var i=Je();Lt(n,e,r,i),Lc(n,t,r)}}function zh(e,t,n){var r=dn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Nc(e))_c(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var p=t.lastRenderedState,x=a(p,n);if(i.hasEagerState=!0,i.eagerState=x,Ct(x,p)){var k=t.interleaved;k===null?(i.next=i,es(t)):(i.next=k.next,k.next=i),t.interleaved=i;return}}catch{}finally{}n=rc(e,t,i,r),n!==null&&(i=Je(),Lt(n,e,r,i),Lc(n,t,r))}}function Nc(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function _c(e,t){Gr=ni=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lc(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mo(e,n)}}var ii={readContext:gt,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useInsertionEffect:qe,useLayoutEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useMutableSource:qe,useSyncExternalStore:qe,useId:qe,unstable_isNewReconciler:!1},Ah={readContext:gt,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:gc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ri(4194308,4,xc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ri(4194308,4,e,t)},useInsertionEffect:function(e,t){return ri(4,2,e,t)},useMemo:function(e,t){var n=Mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mt();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=Fh.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:mc,useDebugValue:ps,useDeferredValue:function(e){return Mt().memoizedState=e},useTransition:function(){var e=mc(!1),t=e[0];return e=Mh.bind(null,e[1]),Mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,i=Mt();if(Pe){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),He===null)throw Error(s(349));(Nn&30)!==0||cc(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,gc(dc.bind(null,r,a,e),[e]),r.flags|=2048,Kr(9,fc.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Mt(),t=He.identifierPrefix;if(Pe){var n=Ut,r=Vt;n=(r&~(1<<32-St(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Dh++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ih={readContext:gt,useCallback:Sc,useContext:gt,useEffect:ds,useImperativeHandle:kc,useInsertionEffect:yc,useLayoutEffect:wc,useMemo:Cc,useReducer:cs,useRef:vc,useState:function(){return cs(Qr)},useDebugValue:ps,useDeferredValue:function(e){var t=yt();return Ec(t,Ie.memoizedState,e)},useTransition:function(){var e=cs(Qr)[0],t=yt().memoizedState;return[e,t]},useMutableSource:ac,useSyncExternalStore:uc,useId:jc,unstable_isNewReconciler:!1},Bh={readContext:gt,useCallback:Sc,useContext:gt,useEffect:ds,useImperativeHandle:kc,useInsertionEffect:yc,useLayoutEffect:wc,useMemo:Cc,useReducer:fs,useRef:vc,useState:function(){return fs(Qr)},useDebugValue:ps,useDeferredValue:function(e){var t=yt();return Ie===null?t.memoizedState=e:Ec(t,Ie.memoizedState,e)},useTransition:function(){var e=fs(Qr)[0],t=yt().memoizedState;return[e,t]},useMutableSource:ac,useSyncExternalStore:uc,useId:jc,unstable_isNewReconciler:!1};function jt(e,t){if(e&&e.defaultProps){t=K({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function hs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:K({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var oi={isMounted:function(e){return(e=e._reactInternals)?wn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Je(),i=dn(e),a=bt(r,i);a.payload=t,n!=null&&(a.callback=n),t=an(e,a,i),t!==null&&(Lt(t,e,i,r),Jl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Je(),i=dn(e),a=bt(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=an(e,a,i),t!==null&&(Lt(t,e,i,r),Jl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Je(),r=dn(e),i=bt(n,r);i.tag=2,t!=null&&(i.callback=t),t=an(e,i,r),t!==null&&(Lt(t,e,r,n),Jl(t,e,r))}};function Pc(e,t,n,r,i,a,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,p):t.prototype&&t.prototype.isPureReactComponent?!Fr(n,r)||!Fr(i,a):!0}function Rc(e,t,n){var r=!1,i=ln,a=t.contextType;return typeof a=="object"&&a!==null?a=gt(a):(i=tt(t)?kn:Ge.current,r=t.contextTypes,a=(r=r!=null)?Kn(e,i):ln),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=oi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Tc(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&&oi.enqueueReplaceState(t,t.state,null)}function ms(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ts(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=gt(a):(a=tt(t)?kn:Ge.current,i.context=Kn(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(hs(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&oi.enqueueReplaceState(i,i.state,null),Zl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function rr(e,t){try{var n="",r=t;do n+=he(r),r=r.return;while(r);var i=n}catch(a){i=`
39
+ Error generating stack: `+a.message+`
40
+ `+a.stack}return{value:e,source:t,stack:i,digest:null}}function vs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $h=typeof WeakMap=="function"?WeakMap:Map;function Oc(e,t,n){n=bt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pi||(pi=!0,Os=r),gs(e,t)},n}function Dc(e,t,n){n=bt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){gs(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){gs(e,t),typeof r!="function"&&(cn===null?cn=new Set([this]):cn.add(this));var p=t.stack;this.componentDidCatch(t.value,{componentStack:p!==null?p:""})}),n}function Mc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $h;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=em.bind(null,e,t,n),t.then(e,e))}function Fc(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 zc(e,t,n,r,i){return(e.mode&1)===0?(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,an(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var Hh=Q.ReactCurrentOwner,nt=!1;function Xe(e,t,n,r){t.child=e===null?nc(t,null,n,r):Zn(t,e.child,n,r)}function Ac(e,t,n,r,i){n=n.render;var a=t.ref;return tr(t,i),r=as(e,t,n,r,a,i),n=us(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gt(e,t,i)):(Pe&&n&&bo(t),t.flags|=1,Xe(e,t,r,i),t.child)}function Ic(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!Bs(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Bc(e,t,a,r,i)):(e=wi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var p=a.memoizedProps;if(n=n.compare,n=n!==null?n:Fr,n(p,r)&&e.ref===t.ref)return Gt(e,t,i)}return t.flags|=1,e=hn(a,r),e.ref=t.ref,e.return=t,t.child=e}function Bc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Fr(a,r)&&e.ref===t.ref)if(nt=!1,t.pendingProps=r=a,(e.lanes&i)!==0)(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,Gt(e,t,i)}return ys(e,t,n,r,i)}function $c(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},je(ir,dt),dt|=n;else{if((n&1073741824)===0)return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,je(ir,dt),dt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,je(ir,dt),dt|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,je(ir,dt),dt|=r;return Xe(e,t,i,n),t.child}function Hc(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,i){var a=tt(n)?kn:Ge.current;return a=Kn(t,a),tr(t,i),n=as(e,t,n,r,a,i),r=us(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gt(e,t,i)):(Pe&&r&&bo(t),t.flags|=1,Xe(e,t,n,i),t.child)}function Vc(e,t,n,r,i){if(tt(n)){var a=!0;Wl(t)}else a=!1;if(tr(t,i),t.stateNode===null)ai(e,t),Rc(t,n,r),ms(t,n,r,i),r=!0;else if(e===null){var p=t.stateNode,x=t.memoizedProps;p.props=x;var k=p.context,F=n.contextType;typeof F=="object"&&F!==null?F=gt(F):(F=tt(n)?kn:Ge.current,F=Kn(t,F));var G=n.getDerivedStateFromProps,q=typeof G=="function"||typeof p.getSnapshotBeforeUpdate=="function";q||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(x!==r||k!==F)&&Tc(t,p,r,F),sn=!1;var b=t.memoizedState;p.state=b,Zl(t,r,p,i),k=t.memoizedState,x!==r||b!==k||et.current||sn?(typeof G=="function"&&(hs(t,n,G,r),k=t.memoizedState),(x=sn||Pc(t,n,x,r,b,k,F))?(q||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(t.flags|=4194308)):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=k),p.props=r,p.state=k,p.context=F,r=x):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{p=t.stateNode,lc(e,t),x=t.memoizedProps,F=t.type===t.elementType?x:jt(t.type,x),p.props=F,q=t.pendingProps,b=p.context,k=n.contextType,typeof k=="object"&&k!==null?k=gt(k):(k=tt(n)?kn:Ge.current,k=Kn(t,k));var te=n.getDerivedStateFromProps;(G=typeof te=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(x!==q||b!==k)&&Tc(t,p,r,k),sn=!1,b=t.memoizedState,p.state=b,Zl(t,r,p,i);var le=t.memoizedState;x!==q||b!==le||et.current||sn?(typeof te=="function"&&(hs(t,n,te,r),le=t.memoizedState),(F=sn||Pc(t,n,F,r,b,le,k)||!1)?(G||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(r,le,k),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(r,le,k)),typeof p.componentDidUpdate=="function"&&(t.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof p.componentDidUpdate!="function"||x===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&b===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=le),p.props=r,p.state=le,p.context=k,r=F):(typeof p.componentDidUpdate!="function"||x===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&b===e.memoizedState||(t.flags|=1024),r=!1)}return ws(e,t,n,r,a,i)}function ws(e,t,n,r,i,a){Hc(e,t);var p=(t.flags&128)!==0;if(!r&&!p)return i&&qu(t,n,!1),Gt(e,t,a);r=t.stateNode,Hh.current=t;var x=p&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&p?(t.child=Zn(t,e.child,null,a),t.child=Zn(t,null,x,a)):Xe(e,t,x,a),t.memoizedState=r.state,i&&qu(t,n,!0),t.child}function Uc(e){var t=e.stateNode;t.pendingContext?bu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bu(e,t.context,!1),ns(e,t.containerInfo)}function Wc(e,t,n,r,i){return Jn(),Ko(i),t.flags|=256,Xe(e,t,n,r),t.child}var xs={dehydrated:null,treeContext:null,retryLane:0};function ks(e){return{baseLanes:e,cachePool:null,transitions:null}}function bc(e,t,n){var r=t.pendingProps,i=Re.current,a=!1,p=(t.flags&128)!==0,x;if((x=p)||(x=e!==null&&e.memoizedState===null?!1:(i&2)!==0),x?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),je(Re,i&1),e===null)return Qo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(p=r.children,e=r.fallback,a?(r=t.mode,a=t.child,p={mode:"hidden",children:p},(r&1)===0&&a!==null?(a.childLanes=0,a.pendingProps=p):a=xi(p,r,0,null),e=Tn(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ks(n),t.memoizedState=xs,e):Ss(t,p));if(i=e.memoizedState,i!==null&&(x=i.dehydrated,x!==null))return Vh(e,t,p,r,x,i,n);if(a){a=r.fallback,p=t.mode,i=e.child,x=i.sibling;var k={mode:"hidden",children:r.children};return(p&1)===0&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=k,t.deletions=null):(r=hn(i,k),r.subtreeFlags=i.subtreeFlags&14680064),x!==null?a=hn(x,a):(a=Tn(a,p,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,p=e.child.memoizedState,p=p===null?ks(n):{baseLanes:p.baseLanes|n,cachePool:null,transitions:p.transitions},a.memoizedState=p,a.childLanes=e.childLanes&~n,t.memoizedState=xs,r}return a=e.child,e=a.sibling,r=hn(a,{mode:"visible",children:r.children}),(t.mode&1)===0&&(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 Ss(e,t){return t=xi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function si(e,t,n,r){return r!==null&&Ko(r),Zn(t,e.child,null,n),e=Ss(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vh(e,t,n,r,i,a,p){if(n)return t.flags&256?(t.flags&=-257,r=vs(Error(s(422))),si(e,t,p,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=xi({mode:"visible",children:r.children},i,0,null),a=Tn(a,i,p,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,(t.mode&1)!==0&&Zn(t,e.child,null,p),t.child.memoizedState=ks(p),t.memoizedState=xs,a);if((t.mode&1)===0)return si(e,t,p,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var x=r.dgst;return r=x,a=Error(s(419)),r=vs(a,r,void 0),si(e,t,p,r)}if(x=(p&e.childLanes)!==0,nt||x){if(r=He,r!==null){switch(p&-p){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|p))!==0?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Wt(e,i),Lt(r,e,i,-1))}return Is(),r=vs(Error(s(421))),si(e,t,p,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=tm.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ft=nn(i.nextSibling),ct=t,Pe=!0,Et=null,e!==null&&(mt[vt++]=Vt,mt[vt++]=Ut,mt[vt++]=Sn,Vt=e.id,Ut=e.overflow,Sn=t),t=Ss(t,r.children),t.flags|=4096,t)}function Gc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zo(e.return,t,n)}function Cs(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function qc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Xe(e,t,r.children,n),r=Re.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gc(e,n,t);else if(e.tag===19)Gc(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(je(Re,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ei(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Cs(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ei(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Cs(t,!0,n,null,a);break;case"together":Cs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ai(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_n|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=hn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=hn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Uh(e,t,n){switch(t.tag){case 3:Uc(t),Jn();break;case 5:sc(t);break;case 1:tt(t.type)&&Wl(t);break;case 4:ns(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;je(Yl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(je(Re,Re.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?bc(e,t,n):(je(Re,Re.current&1),e=Gt(e,t,n),e!==null?e.sibling:null);je(Re,Re.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return qc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),je(Re,Re.current),r)break;return null;case 22:case 23:return t.lanes=0,$c(e,t,n)}return Gt(e,t,n)}var Qc,Es,Kc,Yc;Qc=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}},Es=function(){},Kc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,jn(Dt.current);var a=null;switch(n){case"input":i=Ji(e,i),r=Ji(e,r),a=[];break;case"select":i=K({},i,{value:void 0}),r=K({},r,{value:void 0}),a=[];break;case"textarea":i=to(e,i),r=to(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Hl)}ro(n,r);var p;n=null;for(F in i)if(!r.hasOwnProperty(F)&&i.hasOwnProperty(F)&&i[F]!=null)if(F==="style"){var x=i[F];for(p in x)x.hasOwnProperty(p)&&(n||(n={}),n[p]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(f.hasOwnProperty(F)?a||(a=[]):(a=a||[]).push(F,null));for(F in r){var k=r[F];if(x=i!=null?i[F]:void 0,r.hasOwnProperty(F)&&k!==x&&(k!=null||x!=null))if(F==="style")if(x){for(p in x)!x.hasOwnProperty(p)||k&&k.hasOwnProperty(p)||(n||(n={}),n[p]="");for(p in k)k.hasOwnProperty(p)&&x[p]!==k[p]&&(n||(n={}),n[p]=k[p])}else n||(a||(a=[]),a.push(F,n)),n=k;else F==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,x=x?x.__html:void 0,k!=null&&x!==k&&(a=a||[]).push(F,k)):F==="children"?typeof k!="string"&&typeof k!="number"||(a=a||[]).push(F,""+k):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(f.hasOwnProperty(F)?(k!=null&&F==="onScroll"&&Ne("scroll",e),a||x===k||(a=[])):(a=a||[]).push(F,k))}n&&(a=a||[]).push("style",n);var F=a;(t.updateQueue=F)&&(t.flags|=4)}},Yc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Yr(e,t){if(!Pe)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 Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wh(e,t,n){var r=t.pendingProps;switch(Go(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return tt(t.type)&&Ul(),Qe(t),null;case 3:return r=t.stateNode,nr(),_e(et),_e(Ge),is(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ql(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Et!==null&&(Fs(Et),Et=null))),Es(e,t),Qe(t),null;case 5:rs(t);var i=jn(br.current);if(n=t.type,e!==null&&t.stateNode!=null)Kc(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Qe(t),null}if(e=jn(Dt.current),Ql(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Ot]=t,r[$r]=a,e=(t.mode&1)!==0,n){case"dialog":Ne("cancel",r),Ne("close",r);break;case"iframe":case"object":case"embed":Ne("load",r);break;case"video":case"audio":for(i=0;i<Ar.length;i++)Ne(Ar[i],r);break;case"source":Ne("error",r);break;case"img":case"image":case"link":Ne("error",r),Ne("load",r);break;case"details":Ne("toggle",r);break;case"input":Ra(r,a),Ne("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ne("invalid",r);break;case"textarea":Da(r,a),Ne("invalid",r)}ro(n,a),i=null;for(var p in a)if(a.hasOwnProperty(p)){var x=a[p];p==="children"?typeof x=="string"?r.textContent!==x&&(a.suppressHydrationWarning!==!0&&$l(r.textContent,x,e),i=["children",x]):typeof x=="number"&&r.textContent!==""+x&&(a.suppressHydrationWarning!==!0&&$l(r.textContent,x,e),i=["children",""+x]):f.hasOwnProperty(p)&&x!=null&&p==="onScroll"&&Ne("scroll",r)}switch(n){case"input":gl(r),Oa(r,a,!0);break;case"textarea":gl(r),Fa(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Hl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{p=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=za(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=p.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=p.createElement(n,{is:r.is}):(e=p.createElement(n),n==="select"&&(p=e,r.multiple?p.multiple=!0:r.size&&(p.size=r.size))):e=p.createElementNS(e,n),e[Ot]=t,e[$r]=r,Qc(e,t,!1,!1),t.stateNode=e;e:{switch(p=lo(n,r),n){case"dialog":Ne("cancel",e),Ne("close",e),i=r;break;case"iframe":case"object":case"embed":Ne("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ar.length;i++)Ne(Ar[i],e);i=r;break;case"source":Ne("error",e),i=r;break;case"img":case"image":case"link":Ne("error",e),Ne("load",e),i=r;break;case"details":Ne("toggle",e),i=r;break;case"input":Ra(e,r),i=Ji(e,r),Ne("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=K({},r,{value:void 0}),Ne("invalid",e);break;case"textarea":Da(e,r),i=to(e,r),Ne("invalid",e);break;default:i=r}ro(n,i),x=i;for(a in x)if(x.hasOwnProperty(a)){var k=x[a];a==="style"?Ba(e,k):a==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&Aa(e,k)):a==="children"?typeof k=="string"?(n!=="textarea"||k!=="")&&yr(e,k):typeof k=="number"&&yr(e,""+k):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(f.hasOwnProperty(a)?k!=null&&a==="onScroll"&&Ne("scroll",e):k!=null&&z(e,a,k,p))}switch(n){case"input":gl(e),Oa(e,r,!1);break;case"textarea":gl(e),Fa(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ke(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?An(e,!!r.multiple,a,!1):r.defaultValue!=null&&An(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Hl)}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 Qe(t),null;case 6:if(e&&t.stateNode!=null)Yc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(n=jn(br.current),jn(Dt.current),Ql(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ot]=t,(a=r.nodeValue!==n)&&(e=ct,e!==null))switch(e.tag){case 3:$l(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$l(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ot]=t,t.stateNode=r}return Qe(t),null;case 13:if(_e(Re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Pe&&ft!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Zu(),Jn(),t.flags|=98560,a=!1;else if(a=Ql(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(s(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));a[Ot]=t}else Jn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),a=!1}else Et!==null&&(Fs(Et),Et=null),a=!0;if(!a)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Re.current&1)!==0?Be===0&&(Be=3):Is())),t.updateQueue!==null&&(t.flags|=4),Qe(t),null);case 4:return nr(),Es(e,t),e===null&&Ir(t.stateNode.containerInfo),Qe(t),null;case 10:return Jo(t.type._context),Qe(t),null;case 17:return tt(t.type)&&Ul(),Qe(t),null;case 19:if(_e(Re),a=t.memoizedState,a===null)return Qe(t),null;if(r=(t.flags&128)!==0,p=a.rendering,p===null)if(r)Yr(a,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(p=ei(e),p!==null){for(t.flags|=128,Yr(a,!1),r=p.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,p=a.alternate,p===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=p.childLanes,a.lanes=p.lanes,a.child=p.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=p.memoizedProps,a.memoizedState=p.memoizedState,a.updateQueue=p.updateQueue,a.type=p.type,e=p.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return je(Re,Re.current&1|2),t.child}e=e.sibling}a.tail!==null&&Me()>or&&(t.flags|=128,r=!0,Yr(a,!1),t.lanes=4194304)}else{if(!r)if(e=ei(p),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Yr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!p.alternate&&!Pe)return Qe(t),null}else 2*Me()-a.renderingStartTime>or&&n!==1073741824&&(t.flags|=128,r=!0,Yr(a,!1),t.lanes=4194304);a.isBackwards?(p.sibling=t.child,t.child=p):(n=a.last,n!==null?n.sibling=p:t.child=p,a.last=p)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Me(),t.sibling=null,n=Re.current,je(Re,r?n&1|2:n&1),t):(Qe(t),null);case 22:case 23:return As(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(dt&1073741824)!==0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function bh(e,t){switch(Go(t),t.tag){case 1:return tt(t.type)&&Ul(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nr(),_e(et),_e(Ge),is(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return rs(t),null;case 13:if(_e(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Re),null;case 4:return nr(),null;case 10:return Jo(t.type._context),null;case 22:case 23:return As(),null;case 24:return null;default:return null}}var ui=!1,Ke=!1,Gh=typeof WeakSet=="function"?WeakSet:Set,re=null;function lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){De(e,t,r)}else n.current=null}function js(e,t,n){try{n()}catch(r){De(e,t,r)}}var Xc=!1;function qh(e,t){if(Ao=Pl,e=Pu(),Po(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var p=0,x=-1,k=-1,F=0,G=0,q=e,b=null;t:for(;;){for(var te;q!==n||i!==0&&q.nodeType!==3||(x=p+i),q!==a||r!==0&&q.nodeType!==3||(k=p+r),q.nodeType===3&&(p+=q.nodeValue.length),(te=q.firstChild)!==null;)b=q,q=te;for(;;){if(q===e)break t;if(b===n&&++F===i&&(x=p),b===a&&++G===r&&(k=p),(te=q.nextSibling)!==null)break;q=b,b=q.parentNode}q=te}n=x===-1||k===-1?null:{start:x,end:k}}else n=null}n=n||{start:0,end:0}}else n=null;for(Io={focusedElem:e,selectionRange:n},Pl=!1,re=t;re!==null;)if(t=re,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,re=e;else for(;re!==null;){t=re;try{var le=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(le!==null){var ie=le.memoizedProps,Fe=le.memoizedState,R=t.stateNode,N=R.getSnapshotBeforeUpdate(t.elementType===t.type?ie:jt(t.type,ie),Fe);R.__reactInternalSnapshotBeforeUpdate=N}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(s(163))}}catch(Y){De(t,t.return,Y)}if(e=t.sibling,e!==null){e.return=t.return,re=e;break}re=t.return}return le=Xc,Xc=!1,le}function Xr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&js(t,n,a)}i=i.next}while(i!==r)}}function ci(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 Ns(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 Jc(e){var t=e.alternate;t!==null&&(e.alternate=null,Jc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ot],delete t[$r],delete t[Vo],delete t[Ph],delete t[Rh])),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 Zc(e){return e.tag===5||e.tag===3||e.tag===4}function ef(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(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 _s(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=Hl));else if(r!==4&&(e=e.child,e!==null))for(_s(e,t,n),e=e.sibling;e!==null;)_s(e,t,n),e=e.sibling}function Ls(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(Ls(e,t,n),e=e.sibling;e!==null;)Ls(e,t,n),e=e.sibling}var Ue=null,Nt=!1;function un(e,t,n){for(n=n.child;n!==null;)tf(e,t,n),n=n.sibling}function tf(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(Cl,n)}catch{}switch(n.tag){case 5:Ke||lr(n,t);case 6:var r=Ue,i=Nt;Ue=null,un(e,t,n),Ue=r,Nt=i,Ue!==null&&(Nt?(e=Ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ue.removeChild(n.stateNode));break;case 18:Ue!==null&&(Nt?(e=Ue,n=n.stateNode,e.nodeType===8?Ho(e.parentNode,n):e.nodeType===1&&Ho(e,n),Pr(e)):Ho(Ue,n.stateNode));break;case 4:r=Ue,i=Nt,Ue=n.stateNode.containerInfo,Nt=!0,un(e,t,n),Ue=r,Nt=i;break;case 0:case 11:case 14:case 15:if(!Ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,p=a.destroy;a=a.tag,p!==void 0&&((a&2)!==0||(a&4)!==0)&&js(n,t,p),i=i.next}while(i!==r)}un(e,t,n);break;case 1:if(!Ke&&(lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(x){De(n,t,x)}un(e,t,n);break;case 21:un(e,t,n);break;case 22:n.mode&1?(Ke=(r=Ke)||n.memoizedState!==null,un(e,t,n),Ke=r):un(e,t,n);break;default:un(e,t,n)}}function nf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Gh),t.forEach(function(r){var i=nm.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,p=t,x=p;e:for(;x!==null;){switch(x.tag){case 5:Ue=x.stateNode,Nt=!1;break e;case 3:Ue=x.stateNode.containerInfo,Nt=!0;break e;case 4:Ue=x.stateNode.containerInfo,Nt=!0;break e}x=x.return}if(Ue===null)throw Error(s(160));tf(a,p,i),Ue=null,Nt=!1;var k=i.alternate;k!==null&&(k.return=null),i.return=null}catch(F){De(i,t,F)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)rf(t,e),t=t.sibling}function rf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_t(t,e),Ft(e),r&4){try{Xr(3,e,e.return),ci(3,e)}catch(ie){De(e,e.return,ie)}try{Xr(5,e,e.return)}catch(ie){De(e,e.return,ie)}}break;case 1:_t(t,e),Ft(e),r&512&&n!==null&&lr(n,n.return);break;case 5:if(_t(t,e),Ft(e),r&512&&n!==null&&lr(n,n.return),e.flags&32){var i=e.stateNode;try{yr(i,"")}catch(ie){De(e,e.return,ie)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,p=n!==null?n.memoizedProps:a,x=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{x==="input"&&a.type==="radio"&&a.name!=null&&Ta(i,a),lo(x,p);var F=lo(x,a);for(p=0;p<k.length;p+=2){var G=k[p],q=k[p+1];G==="style"?Ba(i,q):G==="dangerouslySetInnerHTML"?Aa(i,q):G==="children"?yr(i,q):z(i,G,q,F)}switch(x){case"input":Zi(i,a);break;case"textarea":Ma(i,a);break;case"select":var b=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var te=a.value;te!=null?An(i,!!a.multiple,te,!1):b!==!!a.multiple&&(a.defaultValue!=null?An(i,!!a.multiple,a.defaultValue,!0):An(i,!!a.multiple,a.multiple?[]:"",!1))}i[$r]=a}catch(ie){De(e,e.return,ie)}}break;case 6:if(_t(t,e),Ft(e),r&4){if(e.stateNode===null)throw Error(s(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(ie){De(e,e.return,ie)}}break;case 3:if(_t(t,e),Ft(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pr(t.containerInfo)}catch(ie){De(e,e.return,ie)}break;case 4:_t(t,e),Ft(e);break;case 13:_t(t,e),Ft(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(Ts=Me())),r&4&&nf(e);break;case 22:if(G=n!==null&&n.memoizedState!==null,e.mode&1?(Ke=(F=Ke)||G,_t(t,e),Ke=F):_t(t,e),Ft(e),r&8192){if(F=e.memoizedState!==null,(e.stateNode.isHidden=F)&&!G&&(e.mode&1)!==0)for(re=e,G=e.child;G!==null;){for(q=re=G;re!==null;){switch(b=re,te=b.child,b.tag){case 0:case 11:case 14:case 15:Xr(4,b,b.return);break;case 1:lr(b,b.return);var le=b.stateNode;if(typeof le.componentWillUnmount=="function"){r=b,n=b.return;try{t=r,le.props=t.memoizedProps,le.state=t.memoizedState,le.componentWillUnmount()}catch(ie){De(r,n,ie)}}break;case 5:lr(b,b.return);break;case 22:if(b.memoizedState!==null){sf(q);continue}}te!==null?(te.return=b,re=te):sf(q)}G=G.sibling}e:for(G=null,q=e;;){if(q.tag===5){if(G===null){G=q;try{i=q.stateNode,F?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(x=q.stateNode,k=q.memoizedProps.style,p=k!=null&&k.hasOwnProperty("display")?k.display:null,x.style.display=Ia("display",p))}catch(ie){De(e,e.return,ie)}}}else if(q.tag===6){if(G===null)try{q.stateNode.nodeValue=F?"":q.memoizedProps}catch(ie){De(e,e.return,ie)}}else if((q.tag!==22&&q.tag!==23||q.memoizedState===null||q===e)&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===e)break e;for(;q.sibling===null;){if(q.return===null||q.return===e)break e;G===q&&(G=null),q=q.return}G===q&&(G=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:_t(t,e),Ft(e),r&4&&nf(e);break;case 21:break;default:_t(t,e),Ft(e)}}function Ft(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Zc(n)){var r=n;break e}n=n.return}throw Error(s(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(yr(i,""),r.flags&=-33);var a=ef(e);Ls(e,a,i);break;case 3:case 4:var p=r.stateNode.containerInfo,x=ef(e);_s(e,x,p);break;default:throw Error(s(161))}}catch(k){De(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qh(e,t,n){re=e,lf(e)}function lf(e,t,n){for(var r=(e.mode&1)!==0;re!==null;){var i=re,a=i.child;if(i.tag===22&&r){var p=i.memoizedState!==null||ui;if(!p){var x=i.alternate,k=x!==null&&x.memoizedState!==null||Ke;x=ui;var F=Ke;if(ui=p,(Ke=k)&&!F)for(re=i;re!==null;)p=re,k=p.child,p.tag===22&&p.memoizedState!==null?af(i):k!==null?(k.return=p,re=k):af(i);for(;a!==null;)re=a,lf(a),a=a.sibling;re=i,ui=x,Ke=F}of(e)}else(i.subtreeFlags&8772)!==0&&a!==null?(a.return=i,re=a):of(e)}}function of(e){for(;re!==null;){var t=re;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ke||ci(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ke)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:jt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&oc(t,a,r);break;case 3:var p=t.updateQueue;if(p!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}oc(t,p,n)}break;case 5:var x=t.stateNode;if(n===null&&t.flags&4){n=x;var k=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&n.focus();break;case"img":k.src&&(n.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var F=t.alternate;if(F!==null){var G=F.memoizedState;if(G!==null){var q=G.dehydrated;q!==null&&Pr(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}Ke||t.flags&512&&Ns(t)}catch(b){De(t,t.return,b)}}if(t===e){re=null;break}if(n=t.sibling,n!==null){n.return=t.return,re=n;break}re=t.return}}function sf(e){for(;re!==null;){var t=re;if(t===e){re=null;break}var n=t.sibling;if(n!==null){n.return=t.return,re=n;break}re=t.return}}function af(e){for(;re!==null;){var t=re;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ci(4,t)}catch(k){De(t,n,k)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(k){De(t,i,k)}}var a=t.return;try{Ns(t)}catch(k){De(t,a,k)}break;case 5:var p=t.return;try{Ns(t)}catch(k){De(t,p,k)}}}catch(k){De(t,t.return,k)}if(t===e){re=null;break}var x=t.sibling;if(x!==null){x.return=t.return,re=x;break}re=t.return}}var Kh=Math.ceil,fi=Q.ReactCurrentDispatcher,Ps=Q.ReactCurrentOwner,wt=Q.ReactCurrentBatchConfig,ve=0,He=null,ze=null,We=0,dt=0,ir=rn(0),Be=0,Jr=null,_n=0,di=0,Rs=0,Zr=null,rt=null,Ts=0,or=1/0,qt=null,pi=!1,Os=null,cn=null,hi=!1,fn=null,mi=0,el=0,Ds=null,vi=-1,gi=0;function Je(){return(ve&6)!==0?Me():vi!==-1?vi:vi=Me()}function dn(e){return(e.mode&1)===0?1:(ve&2)!==0&&We!==0?We&-We:Oh.transition!==null?(gi===0&&(gi=eu()),gi):(e=Se,e!==0||(e=window.event,e=e===void 0?16:uu(e.type)),e)}function Lt(e,t,n,r){if(50<el)throw el=0,Ds=null,Error(s(185));Er(e,n,r),((ve&2)===0||e!==He)&&(e===He&&((ve&2)===0&&(di|=n),Be===4&&pn(e,We)),lt(e,r),n===1&&ve===0&&(t.mode&1)===0&&(or=Me()+500,bl&&on()))}function lt(e,t){var n=e.callbackNode;Op(e,t);var r=Nl(e,e===He?We:0);if(r===0)n!==null&&Xa(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Xa(n),t===1)e.tag===0?Th(cf.bind(null,e)):Qu(cf.bind(null,e)),_h(function(){(ve&6)===0&&on()}),n=null;else{switch(tu(r)){case 1:n=fo;break;case 4:n=Ja;break;case 16:n=Sl;break;case 536870912:n=Za;break;default:n=Sl}n=yf(n,uf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function uf(e,t){if(vi=-1,gi=0,(ve&6)!==0)throw Error(s(327));var n=e.callbackNode;if(sr()&&e.callbackNode!==n)return null;var r=Nl(e,e===He?We:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=yi(e,r);else{t=r;var i=ve;ve|=2;var a=df();(He!==e||We!==t)&&(qt=null,or=Me()+500,Pn(e,t));do try{Jh();break}catch(x){ff(e,x)}while(!0);Xo(),fi.current=a,ve=i,ze!==null?t=0:(He=null,We=0,t=Be)}if(t!==0){if(t===2&&(i=po(e),i!==0&&(r=i,t=Ms(e,i))),t===1)throw n=Jr,Pn(e,0),pn(e,r),lt(e,Me()),n;if(t===6)pn(e,r);else{if(i=e.current.alternate,(r&30)===0&&!Yh(i)&&(t=yi(e,r),t===2&&(a=po(e),a!==0&&(r=a,t=Ms(e,a))),t===1))throw n=Jr,Pn(e,0),pn(e,r),lt(e,Me()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(s(345));case 2:Rn(e,rt,qt);break;case 3:if(pn(e,r),(r&130023424)===r&&(t=Ts+500-Me(),10<t)){if(Nl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Je(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=$o(Rn.bind(null,e,rt,qt),t);break}Rn(e,rt,qt);break;case 4:if(pn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var p=31-St(r);a=1<<p,p=t[p],p>i&&(i=p),r&=~a}if(r=i,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kh(r/1960))-r,10<r){e.timeoutHandle=$o(Rn.bind(null,e,rt,qt),r);break}Rn(e,rt,qt);break;case 5:Rn(e,rt,qt);break;default:throw Error(s(329))}}}return lt(e,Me()),e.callbackNode===n?uf.bind(null,e):null}function Ms(e,t){var n=Zr;return e.current.memoizedState.isDehydrated&&(Pn(e,t).flags|=256),e=yi(e,t),e!==2&&(t=rt,rt=n,t!==null&&Fs(t)),e}function Fs(e){rt===null?rt=e:rt.push.apply(rt,e)}function Yh(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ct(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function pn(e,t){for(t&=~Rs,t&=~di,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-St(t),r=1<<n;e[n]=-1,t&=~r}}function cf(e){if((ve&6)!==0)throw Error(s(327));sr();var t=Nl(e,0);if((t&1)===0)return lt(e,Me()),null;var n=yi(e,t);if(e.tag!==0&&n===2){var r=po(e);r!==0&&(t=r,n=Ms(e,r))}if(n===1)throw n=Jr,Pn(e,0),pn(e,t),lt(e,Me()),n;if(n===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Rn(e,rt,qt),lt(e,Me()),null}function zs(e,t){var n=ve;ve|=1;try{return e(t)}finally{ve=n,ve===0&&(or=Me()+500,bl&&on())}}function Ln(e){fn!==null&&fn.tag===0&&(ve&6)===0&&sr();var t=ve;ve|=1;var n=wt.transition,r=Se;try{if(wt.transition=null,Se=1,e)return e()}finally{Se=r,wt.transition=n,ve=t,(ve&6)===0&&on()}}function As(){dt=ir.current,_e(ir)}function Pn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Nh(n)),ze!==null)for(n=ze.return;n!==null;){var r=n;switch(Go(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ul();break;case 3:nr(),_e(et),_e(Ge),is();break;case 5:rs(r);break;case 4:nr();break;case 13:_e(Re);break;case 19:_e(Re);break;case 10:Jo(r.type._context);break;case 22:case 23:As()}n=n.return}if(He=e,ze=e=hn(e.current,null),We=dt=t,Be=0,Jr=null,Rs=di=_n=0,rt=Zr=null,En!==null){for(t=0;t<En.length;t++)if(n=En[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var p=a.next;a.next=i,r.next=p}n.pending=r}En=null}return e}function ff(e,t){do{var n=ze;try{if(Xo(),ti.current=ii,ni){for(var r=Te.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ni=!1}if(Nn=0,$e=Ie=Te=null,Gr=!1,qr=0,Ps.current=null,n===null||n.return===null){Be=1,Jr=t,ze=null;break}e:{var a=e,p=n.return,x=n,k=t;if(t=We,x.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var F=k,G=x,q=G.tag;if((G.mode&1)===0&&(q===0||q===11||q===15)){var b=G.alternate;b?(G.updateQueue=b.updateQueue,G.memoizedState=b.memoizedState,G.lanes=b.lanes):(G.updateQueue=null,G.memoizedState=null)}var te=Fc(p);if(te!==null){te.flags&=-257,zc(te,p,x,a,t),te.mode&1&&Mc(a,F,t),t=te,k=F;var le=t.updateQueue;if(le===null){var ie=new Set;ie.add(k),t.updateQueue=ie}else le.add(k);break e}else{if((t&1)===0){Mc(a,F,t),Is();break e}k=Error(s(426))}}else if(Pe&&x.mode&1){var Fe=Fc(p);if(Fe!==null){(Fe.flags&65536)===0&&(Fe.flags|=256),zc(Fe,p,x,a,t),Ko(rr(k,x));break e}}a=k=rr(k,x),Be!==4&&(Be=2),Zr===null?Zr=[a]:Zr.push(a),a=p;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var R=Oc(a,k,t);ic(a,R);break e;case 1:x=k;var N=a.type,M=a.stateNode;if((a.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(cn===null||!cn.has(M)))){a.flags|=65536,t&=-t,a.lanes|=t;var Y=Dc(a,x,t);ic(a,Y);break e}}a=a.return}while(a!==null)}hf(n)}catch(oe){t=oe,ze===n&&n!==null&&(ze=n=n.return);continue}break}while(!0)}function df(){var e=fi.current;return fi.current=ii,e===null?ii:e}function Is(){(Be===0||Be===3||Be===2)&&(Be=4),He===null||(_n&268435455)===0&&(di&268435455)===0||pn(He,We)}function yi(e,t){var n=ve;ve|=2;var r=df();(He!==e||We!==t)&&(qt=null,Pn(e,t));do try{Xh();break}catch(i){ff(e,i)}while(!0);if(Xo(),ve=n,fi.current=r,ze!==null)throw Error(s(261));return He=null,We=0,Be}function Xh(){for(;ze!==null;)pf(ze)}function Jh(){for(;ze!==null&&!Cp();)pf(ze)}function pf(e){var t=gf(e.alternate,e,dt);e.memoizedProps=e.pendingProps,t===null?hf(e):ze=t,Ps.current=null}function hf(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Wh(n,t,dt),n!==null){ze=n;return}}else{if(n=bh(n,t),n!==null){n.flags&=32767,ze=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Be=6,ze=null;return}}if(t=t.sibling,t!==null){ze=t;return}ze=t=e}while(t!==null);Be===0&&(Be=5)}function Rn(e,t,n){var r=Se,i=wt.transition;try{wt.transition=null,Se=1,Zh(e,t,n,r)}finally{wt.transition=i,Se=r}return null}function Zh(e,t,n,r){do sr();while(fn!==null);if((ve&6)!==0)throw Error(s(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(Dp(e,a),e===He&&(ze=He=null,We=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||hi||(hi=!0,yf(Sl,function(){return sr(),null})),a=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||a){a=wt.transition,wt.transition=null;var p=Se;Se=1;var x=ve;ve|=4,Ps.current=null,qh(e,n),rf(n,e),wh(Io),Pl=!!Ao,Io=Ao=null,e.current=n,Qh(n),Ep(),ve=x,Se=p,wt.transition=a}else e.current=n;if(hi&&(hi=!1,fn=e,mi=i),a=e.pendingLanes,a===0&&(cn=null),_p(n.stateNode),lt(e,Me()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(pi)throw pi=!1,e=Os,Os=null,e;return(mi&1)!==0&&e.tag!==0&&sr(),a=e.pendingLanes,(a&1)!==0?e===Ds?el++:(el=0,Ds=e):el=0,on(),null}function sr(){if(fn!==null){var e=tu(mi),t=wt.transition,n=Se;try{if(wt.transition=null,Se=16>e?16:e,fn===null)var r=!1;else{if(e=fn,fn=null,mi=0,(ve&6)!==0)throw Error(s(331));var i=ve;for(ve|=4,re=e.current;re!==null;){var a=re,p=a.child;if((re.flags&16)!==0){var x=a.deletions;if(x!==null){for(var k=0;k<x.length;k++){var F=x[k];for(re=F;re!==null;){var G=re;switch(G.tag){case 0:case 11:case 15:Xr(8,G,a)}var q=G.child;if(q!==null)q.return=G,re=q;else for(;re!==null;){G=re;var b=G.sibling,te=G.return;if(Jc(G),G===F){re=null;break}if(b!==null){b.return=te,re=b;break}re=te}}}var le=a.alternate;if(le!==null){var ie=le.child;if(ie!==null){le.child=null;do{var Fe=ie.sibling;ie.sibling=null,ie=Fe}while(ie!==null)}}re=a}}if((a.subtreeFlags&2064)!==0&&p!==null)p.return=a,re=p;else e:for(;re!==null;){if(a=re,(a.flags&2048)!==0)switch(a.tag){case 0:case 11:case 15:Xr(9,a,a.return)}var R=a.sibling;if(R!==null){R.return=a.return,re=R;break e}re=a.return}}var N=e.current;for(re=N;re!==null;){p=re;var M=p.child;if((p.subtreeFlags&2064)!==0&&M!==null)M.return=p,re=M;else e:for(p=N;re!==null;){if(x=re,(x.flags&2048)!==0)try{switch(x.tag){case 0:case 11:case 15:ci(9,x)}}catch(oe){De(x,x.return,oe)}if(x===p){re=null;break e}var Y=x.sibling;if(Y!==null){Y.return=x.return,re=Y;break e}re=x.return}}if(ve=i,on(),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(Cl,e)}catch{}r=!0}return r}finally{Se=n,wt.transition=t}}return!1}function mf(e,t,n){t=rr(n,t),t=Oc(e,t,1),e=an(e,t,1),t=Je(),e!==null&&(Er(e,1,t),lt(e,t))}function De(e,t,n){if(e.tag===3)mf(e,e,n);else for(;t!==null;){if(t.tag===3){mf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(cn===null||!cn.has(r))){e=rr(n,e),e=Dc(t,e,1),t=an(t,e,1),e=Je(),t!==null&&(Er(t,1,e),lt(t,e));break}}t=t.return}}function em(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Je(),e.pingedLanes|=e.suspendedLanes&n,He===e&&(We&n)===n&&(Be===4||Be===3&&(We&130023424)===We&&500>Me()-Ts?Pn(e,0):Rs|=n),lt(e,t)}function vf(e,t){t===0&&((e.mode&1)===0?t=1:(t=jl,jl<<=1,(jl&130023424)===0&&(jl=4194304)));var n=Je();e=Wt(e,t),e!==null&&(Er(e,t,n),lt(e,n))}function tm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vf(e,n)}function nm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(s(314))}r!==null&&r.delete(t),vf(e,n)}var gf;gf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||et.current)nt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return nt=!1,Uh(e,t,n);nt=(e.flags&131072)!==0}else nt=!1,Pe&&(t.flags&1048576)!==0&&Ku(t,ql,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ai(e,t),e=t.pendingProps;var i=Kn(t,Ge.current);tr(t,n),i=as(null,t,r,e,i,n);var a=us();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tt(r)?(a=!0,Wl(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ts(t),i.updater=oi,t.stateNode=i,i._reactInternals=t,ms(t,r,e,n),t=ws(null,t,r,!0,a,n)):(t.tag=0,Pe&&a&&bo(t),Xe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ai(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=lm(r),e=jt(r,e),i){case 0:t=ys(null,t,r,e,n);break e;case 1:t=Vc(null,t,r,e,n);break e;case 11:t=Ac(null,t,r,e,n);break e;case 14:t=Ic(null,t,r,jt(r.type,e),n);break e}throw Error(s(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:jt(r,i),ys(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:jt(r,i),Vc(e,t,r,i,n);case 3:e:{if(Uc(t),e===null)throw Error(s(387));r=t.pendingProps,a=t.memoizedState,i=a.element,lc(e,t),Zl(t,r,null,n);var p=t.memoizedState;if(r=p.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:p.cache,pendingSuspenseBoundaries:p.pendingSuspenseBoundaries,transitions:p.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=rr(Error(s(423)),t),t=Wc(e,t,r,n,i);break e}else if(r!==i){i=rr(Error(s(424)),t),t=Wc(e,t,r,n,i);break e}else for(ft=nn(t.stateNode.containerInfo.firstChild),ct=t,Pe=!0,Et=null,n=nc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jn(),r===i){t=Gt(e,t,n);break e}Xe(e,t,r,n)}t=t.child}return t;case 5:return sc(t),e===null&&Qo(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,p=i.children,Bo(r,i)?p=null:a!==null&&Bo(r,a)&&(t.flags|=32),Hc(e,t),Xe(e,t,p,n),t.child;case 6:return e===null&&Qo(t),null;case 13:return bc(e,t,n);case 4:return ns(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zn(t,null,r,n):Xe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:jt(r,i),Ac(e,t,r,i,n);case 7:return Xe(e,t,t.pendingProps,n),t.child;case 8:return Xe(e,t,t.pendingProps.children,n),t.child;case 12:return Xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,p=i.value,je(Yl,r._currentValue),r._currentValue=p,a!==null)if(Ct(a.value,p)){if(a.children===i.children&&!et.current){t=Gt(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var x=a.dependencies;if(x!==null){p=a.child;for(var k=x.firstContext;k!==null;){if(k.context===r){if(a.tag===1){k=bt(-1,n&-n),k.tag=2;var F=a.updateQueue;if(F!==null){F=F.shared;var G=F.pending;G===null?k.next=k:(k.next=G.next,G.next=k),F.pending=k}}a.lanes|=n,k=a.alternate,k!==null&&(k.lanes|=n),Zo(a.return,n,t),x.lanes|=n;break}k=k.next}}else if(a.tag===10)p=a.type===t.type?null:a.child;else if(a.tag===18){if(p=a.return,p===null)throw Error(s(341));p.lanes|=n,x=p.alternate,x!==null&&(x.lanes|=n),Zo(p,n,t),p=a.sibling}else p=a.child;if(p!==null)p.return=a;else for(p=a;p!==null;){if(p===t){p=null;break}if(a=p.sibling,a!==null){a.return=p.return,p=a;break}p=p.return}a=p}Xe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,tr(t,n),i=gt(i),r=r(i),t.flags|=1,Xe(e,t,r,n),t.child;case 14:return r=t.type,i=jt(r,t.pendingProps),i=jt(r.type,i),Ic(e,t,r,i,n);case 15:return Bc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:jt(r,i),ai(e,t),t.tag=1,tt(r)?(e=!0,Wl(t)):e=!1,tr(t,n),Rc(t,r,i),ms(t,r,i,n),ws(null,t,r,!0,e,n);case 19:return qc(e,t,n);case 22:return $c(e,t,n)}throw Error(s(156,t.tag))};function yf(e,t){return Ya(e,t)}function rm(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 xt(e,t,n,r){return new rm(e,t,n,r)}function Bs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lm(e){if(typeof e=="function")return Bs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===I)return 11;if(e===J)return 14}return 2}function hn(e,t){var n=e.alternate;return n===null?(n=xt(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 wi(e,t,n,r,i,a){var p=2;if(r=e,typeof e=="function")Bs(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case B:return Tn(n.children,i,a,t);case ee:p=8,i|=8;break;case se:return e=xt(12,n,t,i|2),e.elementType=se,e.lanes=a,e;case V:return e=xt(13,n,t,i),e.elementType=V,e.lanes=a,e;case U:return e=xt(19,n,t,i),e.elementType=U,e.lanes=a,e;case Z:return xi(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ae:p=10;break e;case _:p=9;break e;case I:p=11;break e;case J:p=14;break e;case ne:p=16,r=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=xt(p,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Tn(e,t,n,r){return e=xt(7,e,r,t),e.lanes=n,e}function xi(e,t,n,r){return e=xt(22,e,r,t),e.elementType=Z,e.lanes=n,e.stateNode={isHidden:!1},e}function $s(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function Hs(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function im(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ho(0),this.expirationTimes=ho(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ho(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Vs(e,t,n,r,i,a,p,x,k){return e=new im(e,t,n,x,k),t===1?(t=1,a===!0&&(t|=8)):t=0,a=xt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ts(a),e}function om(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function wf(e){if(!e)return ln;e=e._reactInternals;e:{if(wn(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var n=e.type;if(tt(n))return Gu(e,n,t)}return t}function xf(e,t,n,r,i,a,p,x,k){return e=Vs(n,r,!0,e,i,a,p,x,k),e.context=wf(null),n=e.current,r=Je(),i=dn(n),a=bt(r,i),a.callback=t??null,an(n,a,i),e.current.lanes=i,Er(e,i,r),lt(e,r),e}function ki(e,t,n,r){var i=t.current,a=Je(),p=dn(i);return n=wf(n),t.context===null?t.context=n:t.pendingContext=n,t=bt(a,p),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=an(i,t,p),e!==null&&(Lt(e,i,p,a),Jl(e,i,p)),p}function Si(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 kf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Us(e,t){kf(e,t),(e=e.alternate)&&kf(e,t)}function sm(){return null}var Sf=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ws(e){this._internalRoot=e}Ci.prototype.render=Ws.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));ki(e,t,null,null)},Ci.prototype.unmount=Ws.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ln(function(){ki(null,e,null,null)}),t[$t]=null}};function Ci(e){this._internalRoot=e}Ci.prototype.unstable_scheduleHydration=function(e){if(e){var t=lu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zt.length&&t!==0&&t<Zt[n].priority;n++);Zt.splice(n,0,e),n===0&&su(e)}};function bs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ei(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Cf(){}function am(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var F=Si(p);a.call(F)}}var p=xf(t,r,e,0,null,!1,!1,"",Cf);return e._reactRootContainer=p,e[$t]=p.current,Ir(e.nodeType===8?e.parentNode:e),Ln(),p}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var x=r;r=function(){var F=Si(k);x.call(F)}}var k=Vs(e,0,!1,null,null,!1,!1,"",Cf);return e._reactRootContainer=k,e[$t]=k.current,Ir(e.nodeType===8?e.parentNode:e),Ln(function(){ki(t,k,n,r)}),k}function ji(e,t,n,r,i){var a=n._reactRootContainer;if(a){var p=a;if(typeof i=="function"){var x=i;i=function(){var k=Si(p);x.call(k)}}ki(t,p,e,i)}else p=am(n,t,e,i,r);return Si(p)}nu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Cr(t.pendingLanes);n!==0&&(mo(t,n|1),lt(t,Me()),(ve&6)===0&&(or=Me()+500,on()))}break;case 13:Ln(function(){var r=Wt(e,1);if(r!==null){var i=Je();Lt(r,e,1,i)}}),Us(e,1)}},vo=function(e){if(e.tag===13){var t=Wt(e,134217728);if(t!==null){var n=Je();Lt(t,e,134217728,n)}Us(e,134217728)}},ru=function(e){if(e.tag===13){var t=dn(e),n=Wt(e,t);if(n!==null){var r=Je();Lt(n,e,t,r)}Us(e,t)}},lu=function(){return Se},iu=function(e,t){var n=Se;try{return Se=e,t()}finally{Se=n}},so=function(e,t,n){switch(t){case"input":if(Zi(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Vl(r);if(!i)throw Error(s(90));Pa(r),Zi(r,i)}}}break;case"textarea":Ma(e,n);break;case"select":t=n.value,t!=null&&An(e,!!n.multiple,t,!1)}},Ua=zs,Wa=Ln;var um={usingClientEntryPoint:!1,Events:[Hr,qn,Vl,Ha,Va,zs]},tl={findFiberByHostInstance:xn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cm={bundleType:tl.bundleType,version:tl.version,rendererPackageName:tl.rendererPackageName,rendererConfig:tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Qa(e),e===null?null:e.stateNode},findFiberByHostInstance:tl.findFiberByHostInstance||sm,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 Ni=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ni.isDisabled&&Ni.supportsFiber)try{Cl=Ni.inject(cm),Tt=Ni}catch{}}return it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=um,it.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bs(t))throw Error(s(200));return om(e,t,null,n)},it.createRoot=function(e,t){if(!bs(e))throw Error(s(299));var n=!1,r="",i=Sf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Vs(e,1,!1,null,null,n,!1,r,i),e[$t]=t.current,Ir(e.nodeType===8?e.parentNode:e),new Ws(t)},it.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(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=Qa(t),e=e===null?null:e.stateNode,e},it.flushSync=function(e){return Ln(e)},it.hydrate=function(e,t,n){if(!Ei(t))throw Error(s(200));return ji(null,e,t,!0,n)},it.hydrateRoot=function(e,t,n){if(!bs(e))throw Error(s(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",p=Sf;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(p=n.onRecoverableError)),t=xf(t,null,e,1,n??null,i,!1,a,p),e[$t]=t.current,Ir(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ci(t)},it.render=function(e,t,n){if(!Ei(t))throw Error(s(200));return ji(null,e,t,!1,n)},it.unmountComponentAtNode=function(e){if(!Ei(e))throw Error(s(40));return e._reactRootContainer?(Ln(function(){ji(null,null,e,!1,function(){e._reactRootContainer=null,e[$t]=null})}),!0):!1},it.unstable_batchedUpdates=zs,it.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ei(n))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return ji(e,t,n,!1,r)},it.version="18.3.1-next-f1338f8080-20240426",it}var Tf;function ym(){if(Tf)return Qs.exports;Tf=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(o){console.error(o)}}return l(),Qs.exports=gm(),Qs.exports}var Of;function wm(){if(Of)return _i;Of=1;var l=ym();return _i.createRoot=l.createRoot,_i.hydrateRoot=l.hydrateRoot,_i}var xm=wm();const km=va(xm);/**
41
+ * react-router v7.13.0
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 Df="popstate";function Sm(l={}){function o(u,f){let{pathname:c,search:d,hash:v}=u.location;return sa("",{pathname:c,search:d,hash:v},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function s(u,f){return typeof f=="string"?f:ul(f)}return Em(o,s,null,l)}function Oe(l,o){if(l===!1||l===null||typeof l>"u")throw new Error(o)}function It(l,o){if(!l){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Cm(){return Math.random().toString(36).substring(2,10)}function Mf(l,o){return{usr:l.state,key:l.key,idx:o}}function sa(l,o,s=null,u){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof o=="string"?hr(o):o,state:s,key:o&&o.key||u||Cm()}}function ul({pathname:l="/",search:o="",hash:s=""}){return o&&o!=="?"&&(l+=o.charAt(0)==="?"?o:"?"+o),s&&s!=="#"&&(l+=s.charAt(0)==="#"?s:"#"+s),l}function hr(l){let o={};if(l){let s=l.indexOf("#");s>=0&&(o.hash=l.substring(s),l=l.substring(0,s));let u=l.indexOf("?");u>=0&&(o.search=l.substring(u),l=l.substring(0,u)),l&&(o.pathname=l)}return o}function Em(l,o,s,u={}){let{window:f=document.defaultView,v5Compat:c=!1}=u,d=f.history,v="POP",h=null,g=m();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));function m(){return(d.state||{idx:null}).idx}function w(){v="POP";let O=m(),C=O==null?null:O-g;g=O,h&&h({action:v,location:L.location,delta:C})}function E(O,C){v="PUSH";let D=sa(L.location,O,C);g=m()+1;let z=Mf(D,g),Q=L.createHref(D);try{d.pushState(z,"",Q)}catch(W){if(W instanceof DOMException&&W.name==="DataCloneError")throw W;f.location.assign(Q)}c&&h&&h({action:v,location:L.location,delta:1})}function S(O,C){v="REPLACE";let D=sa(L.location,O,C);g=m();let z=Mf(D,g),Q=L.createHref(D);d.replaceState(z,"",Q),c&&h&&h({action:v,location:L.location,delta:0})}function T(O){return jm(O)}let L={get action(){return v},get location(){return l(f,d)},listen(O){if(h)throw new Error("A history only accepts one active listener");return f.addEventListener(Df,w),h=O,()=>{f.removeEventListener(Df,w),h=null}},createHref(O){return o(f,O)},createURL:T,encodeLocation(O){let C=T(O);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:E,replace:S,go(O){return d.go(O)}};return L}function jm(l,o=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Oe(s,"No window.location.(origin|href) available to create URL");let u=typeof l=="string"?l:ul(l);return u=u.replace(/ $/,"%20"),!o&&u.startsWith("//")&&(u=s+u),new URL(u,s)}function Cd(l,o,s="/"){return Nm(l,o,s,!1)}function Nm(l,o,s,u){let f=typeof o=="string"?hr(o):o,c=Kt(f.pathname||"/",s);if(c==null)return null;let d=Ed(l);_m(d);let v=null;for(let h=0;v==null&&h<d.length;++h){let g=Im(c);v=zm(d[h],g,u)}return v}function Ed(l,o=[],s=[],u="",f=!1){let c=(d,v,h=f,g)=>{let m={relativePath:g===void 0?d.path||"":g,caseSensitive:d.caseSensitive===!0,childrenIndex:v,route:d};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(u)&&h)return;Oe(m.relativePath.startsWith(u),`Absolute route path "${m.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(u.length)}let w=Qt([u,m.relativePath]),E=s.concat(m);d.children&&d.children.length>0&&(Oe(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${w}".`),Ed(d.children,o,E,w,h)),!(d.path==null&&!d.index)&&o.push({path:w,score:Mm(w,d.index),routesMeta:E})};return l.forEach((d,v)=>{var h;if(d.path===""||!((h=d.path)!=null&&h.includes("?")))c(d,v);else for(let g of jd(d.path))c(d,v,!0,g)}),o}function jd(l){let o=l.split("/");if(o.length===0)return[];let[s,...u]=o,f=s.endsWith("?"),c=s.replace(/\?$/,"");if(u.length===0)return f?[c,""]:[c];let d=jd(u.join("/")),v=[];return v.push(...d.map(h=>h===""?c:[c,h].join("/"))),f&&v.push(...d),v.map(h=>l.startsWith("/")&&h===""?"/":h)}function _m(l){l.sort((o,s)=>o.score!==s.score?s.score-o.score:Fm(o.routesMeta.map(u=>u.childrenIndex),s.routesMeta.map(u=>u.childrenIndex)))}var Lm=/^:[\w-]+$/,Pm=3,Rm=2,Tm=1,Om=10,Dm=-2,Ff=l=>l==="*";function Mm(l,o){let s=l.split("/"),u=s.length;return s.some(Ff)&&(u+=Dm),o&&(u+=Rm),s.filter(f=>!Ff(f)).reduce((f,c)=>f+(Lm.test(c)?Pm:c===""?Tm:Om),u)}function Fm(l,o){return l.length===o.length&&l.slice(0,-1).every((u,f)=>u===o[f])?l[l.length-1]-o[o.length-1]:0}function zm(l,o,s=!1){let{routesMeta:u}=l,f={},c="/",d=[];for(let v=0;v<u.length;++v){let h=u[v],g=v===u.length-1,m=c==="/"?o:o.slice(c.length)||"/",w=Ui({path:h.relativePath,caseSensitive:h.caseSensitive,end:g},m),E=h.route;if(!w&&g&&s&&!u[u.length-1].route.index&&(w=Ui({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},m)),!w)return null;Object.assign(f,w.params),d.push({params:f,pathname:Qt([c,w.pathname]),pathnameBase:Vm(Qt([c,w.pathnameBase])),route:E}),w.pathnameBase!=="/"&&(c=Qt([c,w.pathnameBase]))}return d}function Ui(l,o){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[s,u]=Am(l.path,l.caseSensitive,l.end),f=o.match(s);if(!f)return null;let c=f[0],d=c.replace(/(.)\/+$/,"$1"),v=f.slice(1);return{params:u.reduce((g,{paramName:m,isOptional:w},E)=>{if(m==="*"){let T=v[E]||"";d=c.slice(0,c.length-T.length).replace(/(.)\/+$/,"$1")}const S=v[E];return w&&!S?g[m]=void 0:g[m]=(S||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:d,pattern:l}}function Am(l,o=!1,s=!0){It(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let u=[],f="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,v,h)=>(u.push({paramName:v,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(u.push({paramName:"*"}),f+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?f+="\\/*$":l!==""&&l!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,o?void 0:"i"),u]}function Im(l){try{return l.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return It(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),l}}function Kt(l,o){if(o==="/")return l;if(!l.toLowerCase().startsWith(o.toLowerCase()))return null;let s=o.endsWith("/")?o.length-1:o.length,u=l.charAt(s);return u&&u!=="/"?null:l.slice(s)||"/"}var Bm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function $m(l,o="/"){let{pathname:s,search:u="",hash:f=""}=typeof l=="string"?hr(l):l,c;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?c=zf(s.substring(1),"/"):c=zf(s,o)):c=o,{pathname:c,search:Um(u),hash:Wm(f)}}function zf(l,o){let s=o.replace(/\/+$/,"").split("/");return l.split("/").forEach(f=>{f===".."?s.length>1&&s.pop():f!=="."&&s.push(f)}),s.length>1?s.join("/"):"/"}function Xs(l,o,s,u){return`Cannot include a '${l}' character in a manually specified \`to.${o}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Hm(l){return l.filter((o,s)=>s===0||o.route.path&&o.route.path.length>0)}function Nd(l){let o=Hm(l);return o.map((s,u)=>u===o.length-1?s.pathname:s.pathnameBase)}function _d(l,o,s,u=!1){let f;typeof l=="string"?f=hr(l):(f={...l},Oe(!f.pathname||!f.pathname.includes("?"),Xs("?","pathname","search",f)),Oe(!f.pathname||!f.pathname.includes("#"),Xs("#","pathname","hash",f)),Oe(!f.search||!f.search.includes("#"),Xs("#","search","hash",f)));let c=l===""||f.pathname==="",d=c?"/":f.pathname,v;if(d==null)v=s;else{let w=o.length-1;if(!u&&d.startsWith("..")){let E=d.split("/");for(;E[0]==="..";)E.shift(),w-=1;f.pathname=E.join("/")}v=w>=0?o[w]:"/"}let h=$m(f,v),g=d&&d!=="/"&&d.endsWith("/"),m=(c||d===".")&&s.endsWith("/");return!h.pathname.endsWith("/")&&(g||m)&&(h.pathname+="/"),h}var Qt=l=>l.join("/").replace(/\/\/+/g,"/"),Vm=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),Um=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,Wm=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,bm=class{constructor(l,o,s,u=!1){this.status=l,this.statusText=o||"",this.internal=u,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function Gm(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function qm(l){return l.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Ld=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Pd(l,o){let s=l;if(typeof s!="string"||!Bm.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let u=s,f=!1;if(Ld)try{let c=new URL(window.location.href),d=s.startsWith("//")?new URL(c.protocol+s):new URL(s),v=Kt(d.pathname,o);d.origin===c.origin&&v!=null?s=v+d.search+d.hash:f=!0}catch{It(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:f,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Rd=["POST","PUT","PATCH","DELETE"];new Set(Rd);var Qm=["GET",...Rd];new Set(Qm);var mr=P.createContext(null);mr.displayName="DataRouter";var qi=P.createContext(null);qi.displayName="DataRouterState";var Km=P.createContext(!1),Td=P.createContext({isTransitioning:!1});Td.displayName="ViewTransition";var Ym=P.createContext(new Map);Ym.displayName="Fetchers";var Xm=P.createContext(null);Xm.displayName="Await";var kt=P.createContext(null);kt.displayName="Navigation";var dl=P.createContext(null);dl.displayName="Location";var Bt=P.createContext({outlet:null,matches:[],isDataRoute:!1});Bt.displayName="Route";var ga=P.createContext(null);ga.displayName="RouteError";var Od="REACT_ROUTER_ERROR",Jm="REDIRECT",Zm="ROUTE_ERROR_RESPONSE";function ev(l){if(l.startsWith(`${Od}:${Jm}:{`))try{let o=JSON.parse(l.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function tv(l){if(l.startsWith(`${Od}:${Zm}:{`))try{let o=JSON.parse(l.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new bm(o.status,o.statusText,o.data)}catch{}}function nv(l,{relative:o}={}){Oe(pl(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:u}=P.useContext(kt),{hash:f,pathname:c,search:d}=hl(l,{relative:o}),v=c;return s!=="/"&&(v=c==="/"?s:Qt([s,c])),u.createHref({pathname:v,search:d,hash:f})}function pl(){return P.useContext(dl)!=null}function zn(){return Oe(pl(),"useLocation() may be used only in the context of a <Router> component."),P.useContext(dl).location}var Dd="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Md(l){P.useContext(kt).static||P.useLayoutEffect(l)}function rv(){let{isDataRoute:l}=P.useContext(Bt);return l?gv():lv()}function lv(){Oe(pl(),"useNavigate() may be used only in the context of a <Router> component.");let l=P.useContext(mr),{basename:o,navigator:s}=P.useContext(kt),{matches:u}=P.useContext(Bt),{pathname:f}=zn(),c=JSON.stringify(Nd(u)),d=P.useRef(!1);return Md(()=>{d.current=!0}),P.useCallback((h,g={})=>{if(It(d.current,Dd),!d.current)return;if(typeof h=="number"){s.go(h);return}let m=_d(h,JSON.parse(c),f,g.relative==="path");l==null&&o!=="/"&&(m.pathname=m.pathname==="/"?o:Qt([o,m.pathname])),(g.replace?s.replace:s.push)(m,g.state,g)},[o,s,c,f,l])}P.createContext(null);function iv(){let{matches:l}=P.useContext(Bt),o=l[l.length-1];return o?o.params:{}}function hl(l,{relative:o}={}){let{matches:s}=P.useContext(Bt),{pathname:u}=zn(),f=JSON.stringify(Nd(s));return P.useMemo(()=>_d(l,JSON.parse(f),u,o==="path"),[l,f,u,o])}function ov(l,o){return Fd(l,o)}function Fd(l,o,s,u,f){var D;Oe(pl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=P.useContext(kt),{matches:d}=P.useContext(Bt),v=d[d.length-1],h=v?v.params:{},g=v?v.pathname:"/",m=v?v.pathnameBase:"/",w=v&&v.route;{let z=w&&w.path||"";Ad(g,!w||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${z}">) 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="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let E=zn(),S;if(o){let z=typeof o=="string"?hr(o):o;Oe(m==="/"||((D=z.pathname)==null?void 0:D.startsWith(m)),`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 "${m}" but pathname "${z.pathname}" was given in the \`location\` prop.`),S=z}else S=E;let T=S.pathname||"/",L=T;if(m!=="/"){let z=m.replace(/^\//,"").split("/");L="/"+T.replace(/^\//,"").split("/").slice(z.length).join("/")}let O=Cd(l,{pathname:L});It(w||O!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),It(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.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 C=fv(O&&O.map(z=>Object.assign({},z,{params:Object.assign({},h,z.params),pathname:Qt([m,c.encodeLocation?c.encodeLocation(z.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?m:Qt([m,c.encodeLocation?c.encodeLocation(z.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),d,s,u,f);return o&&C?P.createElement(dl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},C):C}function sv(){let l=vv(),o=Gm(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),s=l instanceof Error?l.stack:null,u="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:u},c={padding:"2px 4px",backgroundColor:u},d=null;return console.error("Error handled by React Router default ErrorBoundary:",l),d=P.createElement(P.Fragment,null,P.createElement("p",null,"💿 Hey developer 👋"),P.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.createElement("code",{style:c},"ErrorBoundary")," or"," ",P.createElement("code",{style:c},"errorElement")," prop on your route.")),P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},o),s?P.createElement("pre",{style:f},s):null,d)}var av=P.createElement(sv,null),zd=class extends P.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,o){return o.location!==l.location||o.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:o.error,location:o.location,revalidation:l.revalidation||o.revalidation}}componentDidCatch(l,o){this.props.onError?this.props.onError(l,o):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const s=tv(l.digest);s&&(l=s)}let o=l!==void 0?P.createElement(Bt.Provider,{value:this.props.routeContext},P.createElement(ga.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?P.createElement(uv,{error:l},o):o}};zd.contextType=Km;var Js=new WeakMap;function uv({children:l,error:o}){let{basename:s}=P.useContext(kt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let u=ev(o.digest);if(u){let f=Js.get(o);if(f)throw f;let c=Pd(u.location,s);if(Ld&&!Js.get(o))if(c.isExternal||u.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:u.replace}));throw Js.set(o,d),d}return P.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return l}function cv({routeContext:l,match:o,children:s}){let u=P.useContext(mr);return u&&u.static&&u.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=o.route.id),P.createElement(Bt.Provider,{value:l},s)}function fv(l,o=[],s=null,u=null,f=null){if(l==null){if(!s)return null;if(s.errors)l=s.matches;else if(o.length===0&&!s.initialized&&s.matches.length>0)l=s.matches;else return null}let c=l,d=s==null?void 0:s.errors;if(d!=null){let m=c.findIndex(w=>w.route.id&&(d==null?void 0:d[w.route.id])!==void 0);Oe(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,m+1))}let v=!1,h=-1;if(s)for(let m=0;m<c.length;m++){let w=c[m];if((w.route.HydrateFallback||w.route.hydrateFallbackElement)&&(h=m),w.route.id){let{loaderData:E,errors:S}=s,T=w.route.loader&&!E.hasOwnProperty(w.route.id)&&(!S||S[w.route.id]===void 0);if(w.route.lazy||T){v=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}let g=s&&u?(m,w)=>{var E,S;u(m,{location:s.location,params:((S=(E=s.matches)==null?void 0:E[0])==null?void 0:S.params)??{},unstable_pattern:qm(s.matches),errorInfo:w})}:void 0;return c.reduceRight((m,w,E)=>{let S,T=!1,L=null,O=null;s&&(S=d&&w.route.id?d[w.route.id]:void 0,L=w.route.errorElement||av,v&&(h<0&&E===0?(Ad("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,O=null):h===E&&(T=!0,O=w.route.hydrateFallbackElement||null)));let C=o.concat(c.slice(0,E+1)),D=()=>{let z;return S?z=L:T?z=O:w.route.Component?z=P.createElement(w.route.Component,null):w.route.element?z=w.route.element:z=m,P.createElement(cv,{match:w,routeContext:{outlet:m,matches:C,isDataRoute:s!=null},children:z})};return s&&(w.route.ErrorBoundary||w.route.errorElement||E===0)?P.createElement(zd,{location:s.location,revalidation:s.revalidation,component:L,error:S,children:D(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:g}):D()},null)}function ya(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dv(l){let o=P.useContext(mr);return Oe(o,ya(l)),o}function pv(l){let o=P.useContext(qi);return Oe(o,ya(l)),o}function hv(l){let o=P.useContext(Bt);return Oe(o,ya(l)),o}function wa(l){let o=hv(l),s=o.matches[o.matches.length-1];return Oe(s.route.id,`${l} can only be used on routes that contain a unique "id"`),s.route.id}function mv(){return wa("useRouteId")}function vv(){var u;let l=P.useContext(ga),o=pv("useRouteError"),s=wa("useRouteError");return l!==void 0?l:(u=o.errors)==null?void 0:u[s]}function gv(){let{router:l}=dv("useNavigate"),o=wa("useNavigate"),s=P.useRef(!1);return Md(()=>{s.current=!0}),P.useCallback(async(f,c={})=>{It(s.current,Dd),s.current&&(typeof f=="number"?await l.navigate(f):await l.navigate(f,{fromRouteId:o,...c}))},[l,o])}var Af={};function Ad(l,o,s){!o&&!Af[l]&&(Af[l]=!0,It(!1,s))}P.memo(yv);function yv({routes:l,future:o,state:s,onError:u}){return Fd(l,void 0,s,u,o)}function aa(l){Oe(!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 wv({basename:l="/",children:o=null,location:s,navigationType:u="POP",navigator:f,static:c=!1,unstable_useTransitions:d}){Oe(!pl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let v=l.replace(/^\/*/,"/"),h=P.useMemo(()=>({basename:v,navigator:f,static:c,unstable_useTransitions:d,future:{}}),[v,f,c,d]);typeof s=="string"&&(s=hr(s));let{pathname:g="/",search:m="",hash:w="",state:E=null,key:S="default"}=s,T=P.useMemo(()=>{let L=Kt(g,v);return L==null?null:{location:{pathname:L,search:m,hash:w,state:E,key:S},navigationType:u}},[v,g,m,w,E,S,u]);return It(T!=null,`<Router basename="${v}"> is not able to match the URL "${g}${m}${w}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:P.createElement(kt.Provider,{value:h},P.createElement(dl.Provider,{children:o,value:T}))}function xv({children:l,location:o}){return ov(ua(l),o)}function ua(l,o=[]){let s=[];return P.Children.forEach(l,(u,f)=>{if(!P.isValidElement(u))return;let c=[...o,f];if(u.type===P.Fragment){s.push.apply(s,ua(u.props.children,c));return}Oe(u.type===aa,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Oe(!u.props.index||!u.props.children,"An index route cannot have child routes.");let d={id:u.props.id||c.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(d.children=ua(u.props.children,c)),s.push(d)}),s}var Ii="get",Bi="application/x-www-form-urlencoded";function Qi(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function kv(l){return Qi(l)&&l.tagName.toLowerCase()==="button"}function Sv(l){return Qi(l)&&l.tagName.toLowerCase()==="form"}function Cv(l){return Qi(l)&&l.tagName.toLowerCase()==="input"}function Ev(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function jv(l,o){return l.button===0&&(!o||o==="_self")&&!Ev(l)}var Li=null;function Nv(){if(Li===null)try{new FormData(document.createElement("form"),0),Li=!1}catch{Li=!0}return Li}var _v=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Zs(l){return l!=null&&!_v.has(l)?(It(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Bi}"`),null):l}function Lv(l,o){let s,u,f,c,d;if(Sv(l)){let v=l.getAttribute("action");u=v?Kt(v,o):null,s=l.getAttribute("method")||Ii,f=Zs(l.getAttribute("enctype"))||Bi,c=new FormData(l)}else if(kv(l)||Cv(l)&&(l.type==="submit"||l.type==="image")){let v=l.form;if(v==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=l.getAttribute("formaction")||v.getAttribute("action");if(u=h?Kt(h,o):null,s=l.getAttribute("formmethod")||v.getAttribute("method")||Ii,f=Zs(l.getAttribute("formenctype"))||Zs(v.getAttribute("enctype"))||Bi,c=new FormData(v,l),!Nv()){let{name:g,type:m,value:w}=l;if(m==="image"){let E=g?`${g}.`:"";c.append(`${E}x`,"0"),c.append(`${E}y`,"0")}else g&&c.append(g,w)}}else{if(Qi(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Ii,u=null,f=Bi,d=l}return c&&f==="text/plain"&&(d=c,c=void 0),{action:u,method:s.toLowerCase(),encType:f,formData:c,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function xa(l,o){if(l===!1||l===null||typeof l>"u")throw new Error(o)}function Pv(l,o,s,u){let f=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return s?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${u}`:f.pathname=`${f.pathname}.${u}`:f.pathname==="/"?f.pathname=`_root.${u}`:o&&Kt(f.pathname,o)==="/"?f.pathname=`${o.replace(/\/$/,"")}/_root.${u}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${u}`,f}async function Rv(l,o){if(l.id in o)return o[l.id];try{let s=await import(l.module);return o[l.id]=s,s}catch(s){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Tv(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function Ov(l,o,s){let u=await Promise.all(l.map(async f=>{let c=o.routes[f.route.id];if(c){let d=await Rv(c,s);return d.links?d.links():[]}return[]}));return zv(u.flat(1).filter(Tv).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function If(l,o,s,u,f,c){let d=(h,g)=>s[g]?h.route.id!==s[g].route.id:!0,v=(h,g)=>{var m;return s[g].pathname!==h.pathname||((m=s[g].route.path)==null?void 0:m.endsWith("*"))&&s[g].params["*"]!==h.params["*"]};return c==="assets"?o.filter((h,g)=>d(h,g)||v(h,g)):c==="data"?o.filter((h,g)=>{var w;let m=u.routes[h.route.id];if(!m||!m.hasLoader)return!1;if(d(h,g)||v(h,g))return!0;if(h.route.shouldRevalidate){let E=h.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((w=s[0])==null?void 0:w.params)||{},nextUrl:new URL(l,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function Dv(l,o,{includeHydrateFallback:s}={}){return Mv(l.map(u=>{let f=o.routes[u.route.id];if(!f)return[];let c=[f.module];return f.clientActionModule&&(c=c.concat(f.clientActionModule)),f.clientLoaderModule&&(c=c.concat(f.clientLoaderModule)),s&&f.hydrateFallbackModule&&(c=c.concat(f.hydrateFallbackModule)),f.imports&&(c=c.concat(f.imports)),c}).flat(1))}function Mv(l){return[...new Set(l)]}function Fv(l){let o={},s=Object.keys(l).sort();for(let u of s)o[u]=l[u];return o}function zv(l,o){let s=new Set;return new Set(o),l.reduce((u,f)=>{let c=JSON.stringify(Fv(f));return s.has(c)||(s.add(c),u.push({key:c,link:f})),u},[])}function Id(){let l=P.useContext(mr);return xa(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Av(){let l=P.useContext(qi);return xa(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var ka=P.createContext(void 0);ka.displayName="FrameworkContext";function Bd(){let l=P.useContext(ka);return xa(l,"You must render this element inside a <HydratedRouter> element"),l}function Iv(l,o){let s=P.useContext(ka),[u,f]=P.useState(!1),[c,d]=P.useState(!1),{onFocus:v,onBlur:h,onMouseEnter:g,onMouseLeave:m,onTouchStart:w}=o,E=P.useRef(null);P.useEffect(()=>{if(l==="render"&&d(!0),l==="viewport"){let L=C=>{C.forEach(D=>{d(D.isIntersecting)})},O=new IntersectionObserver(L,{threshold:.5});return E.current&&O.observe(E.current),()=>{O.disconnect()}}},[l]),P.useEffect(()=>{if(u){let L=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(L)}}},[u]);let S=()=>{f(!0)},T=()=>{f(!1),d(!1)};return s?l!=="intent"?[c,E,{}]:[c,E,{onFocus:rl(v,S),onBlur:rl(h,T),onMouseEnter:rl(g,S),onMouseLeave:rl(m,T),onTouchStart:rl(w,S)}]:[!1,E,{}]}function rl(l,o){return s=>{l&&l(s),s.defaultPrevented||o(s)}}function Bv({page:l,...o}){let{router:s}=Id(),u=P.useMemo(()=>Cd(s.routes,l,s.basename),[s.routes,l,s.basename]);return u?P.createElement(Hv,{page:l,matches:u,...o}):null}function $v(l){let{manifest:o,routeModules:s}=Bd(),[u,f]=P.useState([]);return P.useEffect(()=>{let c=!1;return Ov(l,o,s).then(d=>{c||f(d)}),()=>{c=!0}},[l,o,s]),u}function Hv({page:l,matches:o,...s}){let u=zn(),{future:f,manifest:c,routeModules:d}=Bd(),{basename:v}=Id(),{loaderData:h,matches:g}=Av(),m=P.useMemo(()=>If(l,o,g,c,u,"data"),[l,o,g,c,u]),w=P.useMemo(()=>If(l,o,g,c,u,"assets"),[l,o,g,c,u]),E=P.useMemo(()=>{if(l===u.pathname+u.search+u.hash)return[];let L=new Set,O=!1;if(o.forEach(D=>{var Q;let z=c.routes[D.route.id];!z||!z.hasLoader||(!m.some(W=>W.route.id===D.route.id)&&D.route.id in h&&((Q=d[D.route.id])!=null&&Q.shouldRevalidate)||z.hasClientLoader?O=!0:L.add(D.route.id))}),L.size===0)return[];let C=Pv(l,v,f.unstable_trailingSlashAwareDataRequests,"data");return O&&L.size>0&&C.searchParams.set("_routes",o.filter(D=>L.has(D.route.id)).map(D=>D.route.id).join(",")),[C.pathname+C.search]},[v,f.unstable_trailingSlashAwareDataRequests,h,u,c,m,o,l,d]),S=P.useMemo(()=>Dv(w,c),[w,c]),T=$v(w);return P.createElement(P.Fragment,null,E.map(L=>P.createElement("link",{key:L,rel:"prefetch",as:"fetch",href:L,...s})),S.map(L=>P.createElement("link",{key:L,rel:"modulepreload",href:L,...s})),T.map(({key:L,link:O})=>P.createElement("link",{key:L,nonce:s.nonce,...O,crossOrigin:O.crossOrigin??s.crossOrigin})))}function Vv(...l){return o=>{l.forEach(s=>{typeof s=="function"?s(o):s!=null&&(s.current=o)})}}var Uv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Uv&&(window.__reactRouterVersion="7.13.0")}catch{}function Wv({basename:l,children:o,unstable_useTransitions:s,window:u}){let f=P.useRef();f.current==null&&(f.current=Sm({window:u,v5Compat:!0}));let c=f.current,[d,v]=P.useState({action:c.action,location:c.location}),h=P.useCallback(g=>{s===!1?v(g):P.startTransition(()=>v(g))},[s]);return P.useLayoutEffect(()=>c.listen(h),[c,h]),P.createElement(wv,{basename:l,children:o,location:d.location,navigationType:d.action,navigator:c,unstable_useTransitions:s})}var $d=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ml=P.forwardRef(function({onClick:o,discover:s="render",prefetch:u="none",relative:f,reloadDocument:c,replace:d,state:v,target:h,to:g,preventScrollReset:m,viewTransition:w,unstable_defaultShouldRevalidate:E,...S},T){let{basename:L,unstable_useTransitions:O}=P.useContext(kt),C=typeof g=="string"&&$d.test(g),D=Pd(g,L);g=D.to;let z=nv(g,{relative:f}),[Q,W,A]=Iv(u,S),B=Qv(g,{replace:d,state:v,target:h,preventScrollReset:m,relative:f,viewTransition:w,unstable_defaultShouldRevalidate:E,unstable_useTransitions:O});function ee(ae){o&&o(ae),ae.defaultPrevented||B(ae)}let se=P.createElement("a",{...S,...A,href:D.absoluteURL||z,onClick:D.isExternal||c?o:ee,ref:Vv(T,W),target:h,"data-discover":!C&&s==="render"?"true":void 0});return Q&&!C?P.createElement(P.Fragment,null,se,P.createElement(Bv,{page:z})):se});ml.displayName="Link";var bv=P.forwardRef(function({"aria-current":o="page",caseSensitive:s=!1,className:u="",end:f=!1,style:c,to:d,viewTransition:v,children:h,...g},m){let w=hl(d,{relative:g.relative}),E=zn(),S=P.useContext(qi),{navigator:T,basename:L}=P.useContext(kt),O=S!=null&&Zv(w)&&v===!0,C=T.encodeLocation?T.encodeLocation(w).pathname:w.pathname,D=E.pathname,z=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;s||(D=D.toLowerCase(),z=z?z.toLowerCase():null,C=C.toLowerCase()),z&&L&&(z=Kt(z,L)||z);const Q=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let W=D===C||!f&&D.startsWith(C)&&D.charAt(Q)==="/",A=z!=null&&(z===C||!f&&z.startsWith(C)&&z.charAt(C.length)==="/"),B={isActive:W,isPending:A,isTransitioning:O},ee=W?o:void 0,se;typeof u=="function"?se=u(B):se=[u,W?"active":null,A?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let ae=typeof c=="function"?c(B):c;return P.createElement(ml,{...g,"aria-current":ee,className:se,ref:m,style:ae,to:d,viewTransition:v},typeof h=="function"?h(B):h)});bv.displayName="NavLink";var Gv=P.forwardRef(({discover:l="render",fetcherKey:o,navigate:s,reloadDocument:u,replace:f,state:c,method:d=Ii,action:v,onSubmit:h,relative:g,preventScrollReset:m,viewTransition:w,unstable_defaultShouldRevalidate:E,...S},T)=>{let{unstable_useTransitions:L}=P.useContext(kt),O=Xv(),C=Jv(v,{relative:g}),D=d.toLowerCase()==="get"?"get":"post",z=typeof v=="string"&&$d.test(v),Q=W=>{if(h&&h(W),W.defaultPrevented)return;W.preventDefault();let A=W.nativeEvent.submitter,B=(A==null?void 0:A.getAttribute("formmethod"))||d,ee=()=>O(A||W.currentTarget,{fetcherKey:o,method:B,navigate:s,replace:f,state:c,relative:g,preventScrollReset:m,viewTransition:w,unstable_defaultShouldRevalidate:E});L&&s!==!1?P.startTransition(()=>ee()):ee()};return P.createElement("form",{ref:T,method:D,action:C,onSubmit:u?h:Q,...S,"data-discover":!z&&l==="render"?"true":void 0})});Gv.displayName="Form";function qv(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hd(l){let o=P.useContext(mr);return Oe(o,qv(l)),o}function Qv(l,{target:o,replace:s,state:u,preventScrollReset:f,relative:c,viewTransition:d,unstable_defaultShouldRevalidate:v,unstable_useTransitions:h}={}){let g=rv(),m=zn(),w=hl(l,{relative:c});return P.useCallback(E=>{if(jv(E,o)){E.preventDefault();let S=s!==void 0?s:ul(m)===ul(w),T=()=>g(l,{replace:S,state:u,preventScrollReset:f,relative:c,viewTransition:d,unstable_defaultShouldRevalidate:v});h?P.startTransition(()=>T()):T()}},[m,g,w,s,u,o,l,f,c,d,v,h])}var Kv=0,Yv=()=>`__${String(++Kv)}__`;function Xv(){let{router:l}=Hd("useSubmit"),{basename:o}=P.useContext(kt),s=mv(),u=l.fetch,f=l.navigate;return P.useCallback(async(c,d={})=>{let{action:v,method:h,encType:g,formData:m,body:w}=Lv(c,o);if(d.navigate===!1){let E=d.fetcherKey||Yv();await u(E,s,d.action||v,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:m,body:w,formMethod:d.method||h,formEncType:d.encType||g,flushSync:d.flushSync})}else await f(d.action||v,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:m,body:w,formMethod:d.method||h,formEncType:d.encType||g,replace:d.replace,state:d.state,fromRouteId:s,flushSync:d.flushSync,viewTransition:d.viewTransition})},[u,f,o,s])}function Jv(l,{relative:o}={}){let{basename:s}=P.useContext(kt),u=P.useContext(Bt);Oe(u,"useFormAction must be used inside a RouteContext");let[f]=u.matches.slice(-1),c={...hl(l||".",{relative:o})},d=zn();if(l==null){c.search=d.search;let v=new URLSearchParams(c.search),h=v.getAll("index");if(h.some(m=>m==="")){v.delete("index"),h.filter(w=>w).forEach(w=>v.append("index",w));let m=v.toString();c.search=m?`?${m}`:""}}return(!l||l===".")&&f.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(c.pathname=c.pathname==="/"?s:Qt([s,c.pathname])),ul(c)}function Zv(l,{relative:o}={}){let s=P.useContext(Td);Oe(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=Hd("useViewTransitionState"),f=hl(l,{relative:o});if(!s.isTransitioning)return!1;let c=Kt(s.currentLocation.pathname,u)||s.currentLocation.pathname,d=Kt(s.nextLocation.pathname,u)||s.nextLocation.pathname;return Ui(f.pathname,d)!=null||Ui(f.pathname,c)!=null}/**
52
+ * @license lucide-react v0.468.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
+ */const eg=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vd=(...l)=>l.filter((o,s,u)=>!!o&&o.trim()!==""&&u.indexOf(o)===s).join(" ").trim();/**
57
+ * @license lucide-react v0.468.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
+ */var tg={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"};/**
62
+ * @license lucide-react v0.468.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 ng=P.forwardRef(({color:l="currentColor",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:u,className:f="",children:c,iconNode:d,...v},h)=>P.createElement("svg",{ref:h,...tg,width:o,height:o,stroke:l,strokeWidth:u?Number(s)*24/Number(o):s,className:Vd("lucide",f),...v},[...d.map(([g,m])=>P.createElement(g,m)),...Array.isArray(c)?c:[c]]));/**
67
+ * @license lucide-react v0.468.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 Ce=(l,o)=>{const s=P.forwardRef(({className:u,...f},c)=>P.createElement(ng,{ref:c,iconNode:o,className:Vd(`lucide-${eg(l)}`,u),...f}));return s.displayName=`${l}`,s};/**
72
+ * @license lucide-react v0.468.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 rg=Ce("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
77
+ * @license lucide-react v0.468.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 lg=Ce("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
82
+ * @license lucide-react v0.468.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 Ud=Ce("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
87
+ * @license lucide-react v0.468.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 Bf=Ce("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
92
+ * @license lucide-react v0.468.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 Wd=Ce("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
97
+ * @license lucide-react v0.468.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 bd=Ce("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
102
+ * @license lucide-react v0.468.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 Gd=Ce("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
107
+ * @license lucide-react v0.468.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 ig=Ce("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
112
+ * @license lucide-react v0.468.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 ca=Ce("FilePen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]);/**
117
+ * @license lucide-react v0.468.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 qd=Ce("FilePlus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);/**
122
+ * @license lucide-react v0.468.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 Qd=Ce("FileQuestion",[["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]]);/**
127
+ * @license lucide-react v0.468.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 og=Ce("FileX",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]]);/**
132
+ * @license lucide-react v0.468.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 Kd=Ce("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
137
+ * @license lucide-react v0.468.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 Yd=Ce("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
142
+ * @license lucide-react v0.468.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const Pi=Ce("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
147
+ * @license lucide-react v0.468.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const sg=Ce("GitCommitHorizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/**
152
+ * @license lucide-react v0.468.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const ag=Ce("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
157
+ * @license lucide-react v0.468.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const ug=Ce("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/**
162
+ * @license lucide-react v0.468.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const cg=Ce("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
167
+ * @license lucide-react v0.468.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const fg=Ce("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"}]]);/**
172
+ * @license lucide-react v0.468.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const dg=Ce("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
177
+ * @license lucide-react v0.468.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const $f=Ce("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
182
+ * @license lucide-react v0.468.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const pg=Ce("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
187
+ * @license lucide-react v0.468.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const fa=Ce("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
192
+ * @license lucide-react v0.468.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const hg=Ce("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
197
+ * @license lucide-react v0.468.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const mg=Ce("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
202
+ * @license lucide-react v0.468.0 - ISC
203
+ *
204
+ * This source code is licensed under the ISC license.
205
+ * See the LICENSE file in the root directory of this source tree.
206
+ */const vg=Ce("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"}]]);/**
207
+ * @license lucide-react v0.468.0 - ISC
208
+ *
209
+ * This source code is licensed under the ISC license.
210
+ * See the LICENSE file in the root directory of this source tree.
211
+ */const Xd=Ce("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
212
+ * @license lucide-react v0.468.0 - ISC
213
+ *
214
+ * This source code is licensed under the ISC license.
215
+ * See the LICENSE file in the root directory of this source tree.
216
+ */const gg=Ce("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Jd=P.createContext(null),Ri="draken_token",Ti="draken_username";function yg({children:l}){const[o,s]=P.useState({isAuthenticated:!1,isLoading:!0,authEnabled:!0,username:null,token:null}),u=P.useCallback(async()=>{s(d=>({...d,isLoading:!0}));try{if(!(await(await fetch("/api/auth/status")).json()).enabled){s({isAuthenticated:!0,isLoading:!1,authEnabled:!1,username:null,token:null});return}const h=localStorage.getItem(Ri),g=localStorage.getItem(Ti);if(!h){s({isAuthenticated:!1,isLoading:!1,authEnabled:!0,username:null,token:null});return}(await fetch("/api/auth/verify",{headers:{Authorization:`Bearer ${h}`}})).ok?s({isAuthenticated:!0,isLoading:!1,authEnabled:!0,username:g,token:h}):(localStorage.removeItem(Ri),localStorage.removeItem(Ti),s({isAuthenticated:!1,isLoading:!1,authEnabled:!0,username:null,token:null}))}catch(d){console.error("Auth check failed:",d),s({isAuthenticated:!1,isLoading:!1,authEnabled:!0,username:null,token:null})}},[]),f=async(d,v)=>{const h=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:d,password:v})});if(!h.ok){const m=await h.json();throw new Error(m.error||"Login failed")}const g=await h.json();localStorage.setItem(Ri,g.token),localStorage.setItem(Ti,g.username),s({isAuthenticated:!0,isLoading:!1,authEnabled:!0,username:g.username,token:g.token})},c=()=>{localStorage.removeItem(Ri),localStorage.removeItem(Ti),s({isAuthenticated:!1,isLoading:!1,authEnabled:!0,username:null,token:null})};return P.useEffect(()=>{u()},[u]),y.jsx(Jd.Provider,{value:{...o,login:f,logout:c,checkAuth:u},children:l})}function Zd(){const l=P.useContext(Jd);if(!l)throw new Error("useAuth must be used within an AuthProvider");return l}const ot="/api";function ht(){const l=localStorage.getItem("draken_token"),o={"Content-Type":"application/json"};return l&&(o.Authorization=`Bearer ${l}`),o}async function Rt(l){if(l.status===401)throw localStorage.removeItem("draken_token"),localStorage.removeItem("draken_username"),window.location.reload(),new Error("Authentication required");if(!l.ok){const o=await l.json().catch(()=>({}));throw new Error(o.error||`Request failed: ${l.status}`)}return l.json()}async function ep(l){if(l.status===401)throw localStorage.removeItem("draken_token"),localStorage.removeItem("draken_username"),window.location.reload(),new Error("Authentication required");if(!l.ok){const o=await l.json().catch(()=>({}));throw new Error(o.error||`Request failed: ${l.status}`)}}async function tp(){const l=await fetch(`${ot}/projects`,{headers:ht()});return Rt(l)}async function wg(l){const o=await fetch(`${ot}/projects`,{method:"POST",headers:ht(),body:JSON.stringify({path:l})});return Rt(o)}async function xg(l){const o=await fetch(`${ot}/projects/${l}`,{method:"DELETE",headers:ht()});return ep(o)}async function kg(l){const o=await fetch(`${ot}/projects/${l}/dockerfile`,{headers:ht()});return Rt(o)}async function Sg(l){const o=await fetch(`${ot}/projects/${l}/generate-dockerfile`,{method:"POST",headers:ht()});return Rt(o)}async function Cg(l){const o=await fetch(`${ot}/tasks/project/${l}`,{headers:ht()});return Rt(o)}async function Eg(l,o){const s=await fetch(`${ot}/tasks/project/${l}`,{method:"POST",headers:ht(),body:JSON.stringify({prompt:o})});return Rt(s)}async function jg(l){const o=await fetch(`${ot}/tasks/${l}/stop`,{method:"POST",headers:ht()});return ep(o)}async function Ng(l,o){const s=await fetch(`${ot}/tasks/${l}/followup`,{method:"POST",headers:ht(),body:JSON.stringify({prompt:o})});return Rt(s)}async function _g(l){const o=l?`${ot}/browse?path=${encodeURIComponent(l)}`:`${ot}/browse`,s=await fetch(o,{headers:ht()});return Rt(s)}function Lg(){return localStorage.getItem("draken_token")}async function Pg(l){const o=await fetch(`${ot}/git/${l}/status`,{headers:ht()});return Rt(o)}async function Rg(l,o){const s=`${ot}/git/${l}/file?path=${encodeURIComponent(o)}`,u=await fetch(s,{headers:ht()});return Rt(u)}async function Tg(l,o,s){const u=`${ot}/git/${l}/file-diff?path=${encodeURIComponent(o)}&staged=${s}`,f=await fetch(u,{headers:ht()});return Rt(f)}function Sa({isOpen:l,onClose:o,title:s,children:u,footer:f,large:c}){return P.useEffect(()=>{const d=v=>{v.key==="Escape"&&o()};return l&&(document.addEventListener("keydown",d),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",d),document.body.style.overflow=""}},[l,o]),l?y.jsx("div",{className:"modal-overlay",onClick:o,children:y.jsxs("div",{className:`modal ${c?"modal-large":""}`,onClick:d=>d.stopPropagation(),children:[y.jsxs("div",{className:"modal-header",children:[y.jsx("h3",{children:s}),y.jsx("button",{className:"btn btn-ghost btn-icon",onClick:o,children:y.jsx(gg,{size:20})})]}),y.jsx("div",{className:"modal-body",children:u}),f&&y.jsx("div",{className:"modal-footer",children:f})]})}):null}function Og({isOpen:l,onClose:o,onProjectCreated:s}){const[u,f]=P.useState(null),[c,d]=P.useState(!1),[v,h]=P.useState(!1),[g,m]=P.useState(null);P.useEffect(()=>{l&&w()},[l]);const w=async S=>{d(!0),m(null);try{const T=await _g(S);f(T)}catch{m("Failed to browse directory")}finally{d(!1)}},E=async()=>{if(u!=null&&u.currentPath){h(!0),m(null);try{await wg(u.currentPath),s(),o()}catch{m("Failed to add project")}finally{h(!1)}}};return y.jsxs(Sa,{isOpen:l,onClose:o,title:"Select Project Folder",footer:y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"btn btn-secondary",onClick:o,children:"Cancel"}),y.jsx("button",{className:"btn btn-primary",onClick:E,disabled:!(u!=null&&u.currentPath)||v,children:v?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"spinner spinner-sm"})," Adding..."]}):"Select This Folder"})]}),children:[g&&y.jsx("div",{className:"text-danger",style:{marginBottom:"1rem"},children:g}),y.jsx("div",{className:"current-path",children:(u==null?void 0:u.currentPath)||"Loading..."}),y.jsx("div",{className:"directory-list",children:c?y.jsx("div",{style:{textAlign:"center",padding:"2rem"},children:y.jsx("span",{className:"spinner"})}):y.jsxs(y.Fragment,{children:[(u==null?void 0:u.parentPath)&&y.jsxs("div",{className:"directory-item parent",onClick:()=>w(u.parentPath),children:[y.jsx(Ud,{size:18}),y.jsx("span",{children:".."})]}),u==null?void 0:u.entries.map(S=>y.jsxs("div",{className:"directory-item",onClick:()=>w(S.path),children:[y.jsx(Yd,{size:18}),y.jsx("span",{children:S.name})]},S.path)),(u==null?void 0:u.entries.length)===0&&!u.parentPath&&y.jsx("div",{className:"text-muted",style:{padding:"1rem"},children:"No subdirectories found"})]})})]})}const Dg={pending:{icon:Gd,label:"Pending"},running:{icon:dg,label:"Running"},completed:{icon:Bf,label:"Completed"},failed:{icon:bd,label:"Failed"},ready:{icon:Bf,label:"Ready"}};function da({status:l}){const o=Dg[l],s=o.icon;return y.jsxs("span",{className:`status-badge ${l}`,children:[l==="running"?y.jsx("span",{className:"spinner spinner-sm"}):y.jsx(s,{size:12}),o.label]})}function pa({status:l}){return y.jsx("span",{className:`status-dot ${l}`})}function Mg(){const[l,o]=P.useState([]),[s,u]=P.useState(!0),[f,c]=P.useState(!1),d=async()=>{try{const h=await tp();o(h)}catch(h){console.error("Failed to load projects:",h)}finally{u(!1)}};P.useEffect(()=>{d()},[]);const v=async(h,g)=>{if(h.preventDefault(),h.stopPropagation(),!!confirm("Are you sure you want to delete this project?"))try{await xg(g),d()}catch(m){console.error("Failed to delete project:",m)}};return s?y.jsx("div",{style:{textAlign:"center",padding:"4rem"},children:y.jsx("span",{className:"spinner"})}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"page-header",children:[y.jsx("h2",{children:"Projects"}),y.jsxs("button",{className:"btn btn-primary",onClick:()=>c(!0),children:[y.jsx($f,{size:18}),"Add Project"]})]}),l.length===0?y.jsxs("div",{className:"empty-state",children:[y.jsx(Kd,{size:64,className:"empty-state-icon"}),y.jsx("h3",{children:"No projects yet"}),y.jsx("p",{className:"text-muted",children:"Add a project folder to get started with Claude Code"}),y.jsxs("button",{className:"btn btn-primary btn-lg",onClick:()=>c(!0),style:{marginTop:"1rem"},children:[y.jsx($f,{size:18}),"Add Your First Project"]})]}):y.jsx("div",{className:"projects-grid",children:l.map(h=>y.jsxs(ml,{to:`/project/${h.id}`,className:"card card-interactive project-card",style:{textDecoration:"none",color:"inherit"},children:[y.jsxs("div",{className:"project-card-header",children:[y.jsx("h3",{children:h.name}),y.jsx("button",{className:"btn btn-ghost btn-icon btn-sm",onClick:g=>v(g,h.id),title:"Delete project",children:y.jsx(vg,{size:16})})]}),y.jsx("p",{className:"project-card-path",children:h.path}),y.jsxs("div",{className:"project-card-footer",children:[y.jsxs("div",{className:"project-status",children:[y.jsx(pa,{status:h.dockerfile_exists?"ready":"pending"}),y.jsx("span",{children:h.dockerfile_exists?"Ready":"Dockerfile needed"})]}),y.jsx(Yd,{size:20,className:"text-muted"})]})]},h.id))}),y.jsx(Og,{isOpen:f,onClose:()=>c(!1),onProjectCreated:d})]})}function Hf(l){const o=Lg(),s=`/api/tasks/${l}/logs`;return o?`${s}?token=${encodeURIComponent(o)}`:s}function Fg({task:l,onClose:o,onTaskUpdate:s}){const[u,f]=P.useState(""),[c,d]=P.useState("pending"),[v,h]=P.useState(null),[g,m]=P.useState(""),[w,E]=P.useState(!1),[S,T]=P.useState(!1),L=P.useRef(null),O=P.useRef(null);P.useEffect(()=>{if(!l)return;f(l.logs||""),d(l.status),h(l.session_id),m("");const A=new EventSource(Hf(l.id));return O.current=A,A.onmessage=B=>{const ee=JSON.parse(B.data);ee.type==="log"?f(se=>se+ee.data):ee.type==="session"?h(ee.sessionId):ee.type==="end"?(d(ee.status||"completed"),s(),A.close()):ee.type==="error"&&(f(se=>se+`
217
+ Error: ${ee.message}
218
+ `),d("failed"),s(),A.close())},A.onerror=()=>{A.close()},()=>{A.close()}},[l==null?void 0:l.id]),P.useEffect(()=>{L.current&&(L.current.scrollTop=L.current.scrollHeight)},[u]);const C=async()=>{if(l){T(!0);try{await jg(l.id)}catch(A){console.error("Failed to stop task:",A)}finally{T(!1)}}},D=async()=>{var A;if(!(!l||!g.trim())){E(!0);try{const B=await Ng(l.id,g.trim());m(""),s(),f(""),d("running"),h(B.session_id),(A=O.current)==null||A.close();const ee=new EventSource(Hf(B.id));O.current=ee,ee.onmessage=se=>{const ae=JSON.parse(se.data);ae.type==="log"?f(_=>_+ae.data):ae.type==="session"?h(ae.sessionId):ae.type==="end"?(d(ae.status||"completed"),s(),ee.close()):ae.type==="error"&&(f(_=>_+`
219
+ Error: ${ae.message}
220
+ `),d("failed"),s(),ee.close())},ee.onerror=()=>{ee.close()}}catch(B){console.error("Failed to send followup:",B)}finally{E(!1)}}},z=c==="running",W=c==="completed"&&v;return y.jsxs(Sa,{isOpen:!!l,onClose:o,large:!0,title:y.jsxs(y.Fragment,{children:["Task Logs",y.jsx(da,{status:c})]}),footer:y.jsxs(y.Fragment,{children:[z&&y.jsxs("button",{className:"btn btn-danger",onClick:C,disabled:S,children:[y.jsx(mg,{size:16}),S?"Stopping...":"Stop Task"]}),y.jsx("button",{className:"btn btn-secondary",onClick:o,children:"Close"})]}),children:[y.jsx("pre",{ref:L,className:"logs-content",children:u||"Waiting for output..."}),W&&y.jsxs("div",{className:"followup-container",children:[y.jsx("input",{type:"text",className:"input",placeholder:"Continue the conversation...",value:g,onChange:A=>m(A.target.value),onKeyDown:A=>{A.key==="Enter"&&!A.shiftKey&&(A.preventDefault(),D())},disabled:w}),y.jsxs("button",{className:"btn btn-primary",onClick:D,disabled:!g.trim()||w,children:[w?y.jsx("span",{className:"spinner spinner-sm"}):y.jsx(fa,{size:16}),"Follow Up"]})]})]})}function zg({tasks:l,onTaskClick:o}){const s=d=>new Date(d).toLocaleString(),u=l[0],f=l.slice(1),c=l[l.length-1];return y.jsx("div",{className:"session-thread",children:y.jsxs("div",{className:"session-root card card-interactive",onClick:()=>o(c),children:[y.jsxs("div",{className:"session-header",children:[y.jsx("div",{className:"session-icon",children:y.jsx(fg,{size:18})}),y.jsxs("div",{className:"session-info",children:[y.jsx("p",{className:"session-prompt",children:u.prompt}),y.jsxs("div",{className:"session-meta",children:[y.jsx("span",{children:s(u.created_at)}),f.length>0&&y.jsxs("span",{className:"session-count",children:[f.length," follow-up",f.length>1?"s":""]})]})]}),y.jsx("div",{className:"session-status",children:y.jsx(da,{status:c.status})})]}),f.length>0&&y.jsx("div",{className:"session-followups",children:f.map(d=>y.jsxs("div",{className:"followup-item",onClick:v=>{v.stopPropagation(),o(d)},children:[y.jsx(Wd,{size:14,className:"followup-arrow"}),y.jsx("span",{className:"followup-prompt",children:d.prompt}),y.jsx(da,{status:d.status})]},d.id))})]})})}function Ag(l){const o=new Map;for(const u of l)u.parent_task_id||o.set(u.id,[u]);for(const u of l)if(u.parent_task_id){let f=u.parent_task_id,c=l.find(v=>v.id===f);for(;c&&c.parent_task_id;)f=c.parent_task_id,c=l.find(v=>v.id===f);const d=o.get(f);d?d.push(u):o.set(u.id,[u])}const s=[];for(const[u,f]of o)f.sort((c,d)=>new Date(c.created_at).getTime()-new Date(d.created_at).getTime()),s.push(f);return s.sort((u,f)=>{const c=new Date(u[u.length-1].created_at).getTime();return new Date(f[f.length-1].created_at).getTime()-c}),s}var Pt={},ea={exports:{}};/*!
221
+ Copyright (c) 2018 Jed Watson.
222
+ Licensed under the MIT License (MIT), see
223
+ http://jedwatson.github.io/classnames
224
+ */var Vf;function Ig(){return Vf||(Vf=1,(function(l){(function(){var o={}.hasOwnProperty;function s(){for(var c="",d=0;d<arguments.length;d++){var v=arguments[d];v&&(c=f(c,u(v)))}return c}function u(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return s.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var d="";for(var v in c)o.call(c,v)&&c[v]&&(d=f(d,v));return d}function f(c,d){return d?c?c+" "+d:c+d:c}l.exports?(s.default=s,l.exports=s):window.classNames=s})()})(ea)),ea.exports}var Ze={},ta={},na={},Uf;function yn(){return Uf||(Uf=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=o;function o(){}o.prototype={diff:function(f,c){var d,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=v.callback;typeof v=="function"&&(h=v,v={}),this.options=v;var g=this;function m(B){return h?(setTimeout(function(){h(void 0,B)},0),!0):B}f=this.castInput(f),c=this.castInput(c),f=this.removeEmpty(this.tokenize(f)),c=this.removeEmpty(this.tokenize(c));var w=c.length,E=f.length,S=1,T=w+E;v.maxEditLength&&(T=Math.min(T,v.maxEditLength));var L=(d=v.timeout)!==null&&d!==void 0?d:1/0,O=Date.now()+L,C=[{oldPos:-1,lastComponent:void 0}],D=this.extractCommon(C[0],c,f,0);if(C[0].oldPos+1>=E&&D+1>=w)return m([{value:this.join(c),count:c.length}]);var z=-1/0,Q=1/0;function W(){for(var B=Math.max(z,-S);B<=Math.min(Q,S);B+=2){var ee=void 0,se=C[B-1],ae=C[B+1];se&&(C[B-1]=void 0);var _=!1;if(ae){var I=ae.oldPos-B;_=ae&&0<=I&&I<w}var V=se&&se.oldPos+1<E;if(!_&&!V){C[B]=void 0;continue}if(!V||_&&se.oldPos+1<ae.oldPos?ee=g.addToPath(ae,!0,void 0,0):ee=g.addToPath(se,void 0,!0,1),D=g.extractCommon(ee,c,f,B),ee.oldPos+1>=E&&D+1>=w)return m(s(g,ee.lastComponent,c,f,g.useLongestToken));C[B]=ee,ee.oldPos+1>=E&&(Q=Math.min(Q,B-1)),D+1>=w&&(z=Math.max(z,B+1))}S++}if(h)(function B(){setTimeout(function(){if(S>T||Date.now()>O)return h();W()||B()},0)})();else for(;S<=T&&Date.now()<=O;){var A=W();if(A)return A}},addToPath:function(f,c,d,v){var h=f.lastComponent;return h&&h.added===c&&h.removed===d?{oldPos:f.oldPos+v,lastComponent:{count:h.count+1,added:c,removed:d,previousComponent:h.previousComponent}}:{oldPos:f.oldPos+v,lastComponent:{count:1,added:c,removed:d,previousComponent:h}}},extractCommon:function(f,c,d,v){for(var h=c.length,g=d.length,m=f.oldPos,w=m-v,E=0;w+1<h&&m+1<g&&this.equals(c[w+1],d[m+1]);)w++,m++,E++;return E&&(f.lastComponent={count:E,previousComponent:f.lastComponent}),f.oldPos=m,w},equals:function(f,c){return this.options.comparator?this.options.comparator(f,c):f===c||this.options.ignoreCase&&f.toLowerCase()===c.toLowerCase()},removeEmpty:function(f){for(var c=[],d=0;d<f.length;d++)f[d]&&c.push(f[d]);return c},castInput:function(f){return f},tokenize:function(f){return f.split("")},join:function(f){return f.join("")}};function s(u,f,c,d,v){for(var h=[],g;f;)h.push(f),g=f.previousComponent,delete f.previousComponent,f=g;h.reverse();for(var m=0,w=h.length,E=0,S=0;m<w;m++){var T=h[m];if(T.removed){if(T.value=u.join(d.slice(S,S+T.count)),S+=T.count,m&&h[m-1].added){var O=h[m-1];h[m-1]=h[m],h[m]=O}}else{if(!T.added&&v){var L=c.slice(E,E+T.count);L=L.map(function(D,z){var Q=d[S+z];return Q.length>D.length?Q:D}),T.value=u.join(L)}else T.value=u.join(c.slice(E,E+T.count));E+=T.count,T.added||(S+=T.count)}}var C=h[w-1];return w>1&&typeof C.value=="string"&&(C.added||C.removed)&&u.equals("",C.value)&&(h[w-2].value+=C.value,h.pop()),h}})(na)),na}var ar={},Wf;function Bg(){if(Wf)return ar;Wf=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.diffChars=u,ar.characterDiff=void 0;var l=o(yn());function o(f){return f&&f.__esModule?f:{default:f}}var s=new l.default;ar.characterDiff=s;function u(f,c,d){return s.diff(f,c,d)}return ar}var On={},Oi={},bf;function np(){if(bf)return Oi;bf=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.generateOptions=l;function l(o,s){if(typeof o=="function")s.callback=o;else if(o)for(var u in o)o.hasOwnProperty(u)&&(s[u]=o[u]);return s}return Oi}var Gf;function $g(){if(Gf)return On;Gf=1,Object.defineProperty(On,"__esModule",{value:!0}),On.diffWords=d,On.diffWordsWithSpace=v,On.wordDiff=void 0;var l=s(yn()),o=np();function s(h){return h&&h.__esModule?h:{default:h}}var u=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,f=/\S/,c=new l.default;On.wordDiff=c,c.equals=function(h,g){return this.options.ignoreCase&&(h=h.toLowerCase(),g=g.toLowerCase()),h===g||this.options.ignoreWhitespace&&!f.test(h)&&!f.test(g)},c.tokenize=function(h){for(var g=h.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),m=0;m<g.length-1;m++)!g[m+1]&&g[m+2]&&u.test(g[m])&&u.test(g[m+2])&&(g[m]+=g[m+2],g.splice(m+1,2),m--);return g};function d(h,g,m){return m=(0,o.generateOptions)(m,{ignoreWhitespace:!0}),c.diff(h,g,m)}function v(h,g,m){return c.diff(h,g,m)}return On}var Dn={},qf;function Ca(){if(qf)return Dn;qf=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.diffLines=f,Dn.diffTrimmedLines=c,Dn.lineDiff=void 0;var l=s(yn()),o=np();function s(d){return d&&d.__esModule?d:{default:d}}var u=new l.default;Dn.lineDiff=u,u.tokenize=function(d){this.options.stripTrailingCr&&(d=d.replace(/\r\n/g,`
225
+ `));var v=[],h=d.split(/(\n|\r\n)/);h[h.length-1]||h.pop();for(var g=0;g<h.length;g++){var m=h[g];g%2&&!this.options.newlineIsToken?v[v.length-1]+=m:(this.options.ignoreWhitespace&&(m=m.trim()),v.push(m))}return v};function f(d,v,h){return u.diff(d,v,h)}function c(d,v,h){var g=(0,o.generateOptions)(h,{ignoreWhitespace:!0});return u.diff(d,v,g)}return Dn}var ur={},Qf;function Hg(){if(Qf)return ur;Qf=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.diffSentences=u,ur.sentenceDiff=void 0;var l=o(yn());function o(f){return f&&f.__esModule?f:{default:f}}var s=new l.default;ur.sentenceDiff=s,s.tokenize=function(f){return f.split(/(\S.+?[.!?])(?=\s+|$)/)};function u(f,c,d){return s.diff(f,c,d)}return ur}var cr={},Kf;function Vg(){if(Kf)return cr;Kf=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.diffCss=u,cr.cssDiff=void 0;var l=o(yn());function o(f){return f&&f.__esModule?f:{default:f}}var s=new l.default;cr.cssDiff=s,s.tokenize=function(f){return f.split(/([{}:;,]|\s+)/)};function u(f,c,d){return s.diff(f,c,d)}return cr}var Mn={},Yf;function Ug(){if(Yf)return Mn;Yf=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.diffJson=d,Mn.canonicalize=v,Mn.jsonDiff=void 0;var l=s(yn()),o=Ca();function s(h){return h&&h.__esModule?h:{default:h}}function u(h){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(m){return typeof m}:u=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},u(h)}var f=Object.prototype.toString,c=new l.default;Mn.jsonDiff=c,c.useLongestToken=!0,c.tokenize=o.lineDiff.tokenize,c.castInput=function(h){var g=this.options,m=g.undefinedReplacement,w=g.stringifyReplacer,E=w===void 0?function(S,T){return typeof T>"u"?m:T}:w;return typeof h=="string"?h:JSON.stringify(v(h,null,null,E),E," ")},c.equals=function(h,g){return l.default.prototype.equals.call(c,h.replace(/,([\r\n])/g,"$1"),g.replace(/,([\r\n])/g,"$1"))};function d(h,g,m){return c.diff(h,g,m)}function v(h,g,m,w,E){g=g||[],m=m||[],w&&(h=w(E,h));var S;for(S=0;S<g.length;S+=1)if(g[S]===h)return m[S];var T;if(f.call(h)==="[object Array]"){for(g.push(h),T=new Array(h.length),m.push(T),S=0;S<h.length;S+=1)T[S]=v(h[S],g,m,w,E);return g.pop(),m.pop(),T}if(h&&h.toJSON&&(h=h.toJSON()),u(h)==="object"&&h!==null){g.push(h),T={},m.push(T);var L=[],O;for(O in h)h.hasOwnProperty(O)&&L.push(O);for(L.sort(),S=0;S<L.length;S+=1)O=L[S],T[O]=v(h[O],g,m,w,O);g.pop(),m.pop()}else T=h;return T}return Mn}var fr={},Xf;function Wg(){if(Xf)return fr;Xf=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.diffArrays=u,fr.arrayDiff=void 0;var l=o(yn());function o(f){return f&&f.__esModule?f:{default:f}}var s=new l.default;fr.arrayDiff=s,s.tokenize=function(f){return f.slice()},s.join=s.removeEmpty=function(f){return f};function u(f,c,d){return s.diff(f,c,d)}return fr}var ll={},Di={},Jf;function Ea(){if(Jf)return Di;Jf=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.parsePatch=l;function l(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=o.split(/\r\n|[\n\v\f\r\x85]/),f=o.match(/\r\n|[\n\v\f\r\x85]/g)||[],c=[],d=0;function v(){var m={};for(c.push(m);d<u.length;){var w=u[d];if(/^(\-\-\-|\+\+\+|@@)\s/.test(w))break;var E=/^(?:Index:|diff(?: -r \w+)+)\s+/.exec(w);E&&(m.index=w.substring(E[0].length).trim()),d++}for(h(m),h(m),m.hunks=[];d<u.length;){var S=u[d];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(S))break;if(/^@@/.test(S))m.hunks.push(g());else{if(S&&s.strict)throw new Error("Unknown line "+(d+1)+" "+JSON.stringify(S));d++}}}function h(m){var w=/^(---|\+\+\+)\s+/.exec(u[d]);if(w){var E=w[1]==="---"?"old":"new",S=u[d].substring(3).trim().split(" ",2),T=S[0].replace(/\\\\/g,"\\");T.startsWith('"')&&T.endsWith('"')&&(T=T.substr(1,T.length-2)),m[E+"FileName"]=T,m[E+"Header"]=(S[1]||"").trim(),d++}}function g(){var m=d,w=u[d++],E=w.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),S={oldStart:+E[1],oldLines:typeof E[2]>"u"?1:+E[2],newStart:+E[3],newLines:typeof E[4]>"u"?1:+E[4],lines:[],linedelimiters:[]};S.oldLines===0&&(S.oldStart+=1),S.newLines===0&&(S.newStart+=1);for(var T=0,L=0;d<u.length&&!(u[d].indexOf("--- ")===0&&d+2<u.length&&u[d+1].indexOf("+++ ")===0&&u[d+2].indexOf("@@")===0);d++){var O=u[d].length==0&&d!=u.length-1?" ":u[d][0];if(O==="+"||O==="-"||O===" "||O==="\\")S.lines.push(u[d]),S.linedelimiters.push(f[d]||`
226
+ `),O==="+"?T++:O==="-"?L++:O===" "&&(T++,L++);else break}if(!T&&S.newLines===1&&(S.newLines=0),!L&&S.oldLines===1&&(S.oldLines=0),s.strict){if(T!==S.newLines)throw new Error("Added line count did not match for hunk at line "+(m+1));if(L!==S.oldLines)throw new Error("Removed line count did not match for hunk at line "+(m+1))}return S}for(;d<u.length;)v();return c}return Di}var ra={},Zf;function bg(){return Zf||(Zf=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=o;function o(s,u,f){var c=!0,d=!1,v=!1,h=1;return function g(){if(c&&!v){if(d?h++:c=!1,s+h<=f)return h;v=!0}if(!d)return v||(c=!0),u<=s-h?-h++:(d=!0,g())}}})(ra)),ra}var ed;function Gg(){if(ed)return ll;ed=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.applyPatch=u,ll.applyPatches=f;var l=Ea(),o=s(bg());function s(c){return c&&c.__esModule?c:{default:c}}function u(c,d){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof d=="string"&&(d=(0,l.parsePatch)(d)),Array.isArray(d)){if(d.length>1)throw new Error("applyPatch only works with a single input.");d=d[0]}var h=c.split(/\r\n|[\n\v\f\r\x85]/),g=c.match(/\r\n|[\n\v\f\r\x85]/g)||[],m=d.hunks,w=v.compareLine||function(K,j,$,fe){return j===fe},E=0,S=v.fuzzFactor||0,T=0,L=0,O,C;function D(K,j){for(var $=0;$<K.lines.length;$++){var fe=K.lines[$],pe=fe.length>0?fe[0]:" ",he=fe.length>0?fe.substr(1):fe;if(pe===" "||pe==="-"){if(!w(j+1,h[j],pe,he)&&(E++,E>S))return!1;j++}}return!0}for(var z=0;z<m.length;z++){for(var Q=m[z],W=h.length-Q.oldLines,A=0,B=L+Q.oldStart-1,ee=(0,o.default)(B,T,W);A!==void 0;A=ee())if(D(Q,B+A)){Q.offset=L+=A;break}if(A===void 0)return!1;T=Q.offset+Q.oldStart+Q.oldLines}for(var se=0,ae=0;ae<m.length;ae++){var _=m[ae],I=_.oldStart+_.offset+se-1;se+=_.newLines-_.oldLines;for(var V=0;V<_.lines.length;V++){var U=_.lines[V],J=U.length>0?U[0]:" ",ne=U.length>0?U.substr(1):U,Z=_.linedelimiters&&_.linedelimiters[V]||`
227
+ `;if(J===" ")I++;else if(J==="-")h.splice(I,1),g.splice(I,1);else if(J==="+")h.splice(I,0,ne),g.splice(I,0,Z),I++;else if(J==="\\"){var H=_.lines[V-1]?_.lines[V-1][0]:null;H==="+"?O=!0:H==="-"&&(C=!0)}}}if(O)for(;!h[h.length-1];)h.pop(),g.pop();else C&&(h.push(""),g.push(`
228
+ `));for(var X=0;X<h.length-1;X++)h[X]=h[X]+g[X];return h.join("")}function f(c,d){typeof c=="string"&&(c=(0,l.parsePatch)(c));var v=0;function h(){var g=c[v++];if(!g)return d.complete();d.loadFile(g,function(m,w){if(m)return d.complete(m);var E=u(w,g,d);d.patched(g,E,function(S){if(S)return d.complete(S);h()})})}h()}return ll}var il={},Fn={},td;function rp(){if(td)return Fn;td=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.structuredPatch=v,Fn.formatPatch=h,Fn.createTwoFilesPatch=g,Fn.createPatch=m;var l=Ca();function o(w){return c(w)||f(w)||u(w)||s()}function s(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
229
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(w,E){if(w){if(typeof w=="string")return d(w,E);var S=Object.prototype.toString.call(w).slice(8,-1);if(S==="Object"&&w.constructor&&(S=w.constructor.name),S==="Map"||S==="Set")return Array.from(w);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return d(w,E)}}function f(w){if(typeof Symbol<"u"&&Symbol.iterator in Object(w))return Array.from(w)}function c(w){if(Array.isArray(w))return d(w)}function d(w,E){(E==null||E>w.length)&&(E=w.length);for(var S=0,T=new Array(E);S<E;S++)T[S]=w[S];return T}function v(w,E,S,T,L,O,C){C||(C={}),typeof C.context>"u"&&(C.context=4);var D=(0,l.diffLines)(S,T,C);if(!D)return;D.push({value:"",lines:[]});function z(I){return I.map(function(V){return" "+V})}for(var Q=[],W=0,A=0,B=[],ee=1,se=1,ae=function(V){var U=D[V],J=U.lines||U.value.replace(/\n$/,"").split(`
230
+ `);if(U.lines=J,U.added||U.removed){var ne;if(!W){var Z=D[V-1];W=ee,A=se,Z&&(B=C.context>0?z(Z.lines.slice(-C.context)):[],W-=B.length,A-=B.length)}(ne=B).push.apply(ne,o(J.map(function(he){return(U.added?"+":"-")+he}))),U.added?se+=J.length:ee+=J.length}else{if(W)if(J.length<=C.context*2&&V<D.length-2){var H;(H=B).push.apply(H,o(z(J)))}else{var X,K=Math.min(J.length,C.context);(X=B).push.apply(X,o(z(J.slice(0,K))));var j={oldStart:W,oldLines:ee-W+K,newStart:A,newLines:se-A+K,lines:B};if(V>=D.length-2&&J.length<=C.context){var $=/\n$/.test(S),fe=/\n$/.test(T),pe=J.length==0&&B.length>j.oldLines;!$&&pe&&S.length>0&&B.splice(j.oldLines,0,"\"),(!$&&!pe||!fe)&&B.push("\")}Q.push(j),W=0,A=0,B=[]}ee+=J.length,se+=J.length}},_=0;_<D.length;_++)ae(_);return{oldFileName:w,newFileName:E,oldHeader:L,newHeader:O,hunks:Q}}function h(w){if(Array.isArray(w))return w.map(h).join(`
231
+ `);var E=[];w.oldFileName==w.newFileName&&E.push("Index: "+w.oldFileName),E.push("==================================================================="),E.push("--- "+w.oldFileName+(typeof w.oldHeader>"u"?"":" "+w.oldHeader)),E.push("+++ "+w.newFileName+(typeof w.newHeader>"u"?"":" "+w.newHeader));for(var S=0;S<w.hunks.length;S++){var T=w.hunks[S];T.oldLines===0&&(T.oldStart-=1),T.newLines===0&&(T.newStart-=1),E.push("@@ -"+T.oldStart+","+T.oldLines+" +"+T.newStart+","+T.newLines+" @@"),E.push.apply(E,T.lines)}return E.join(`
232
+ `)+`
233
+ `}function g(w,E,S,T,L,O,C){return h(v(w,E,S,T,L,O,C))}function m(w,E,S,T,L,O){return g(w,w,E,S,T,L,O)}return Fn}var ol={},nd;function qg(){if(nd)return ol;nd=1,Object.defineProperty(ol,"__esModule",{value:!0}),ol.arrayEqual=l,ol.arrayStartsWith=o;function l(s,u){return s.length!==u.length?!1:o(s,u)}function o(s,u){if(u.length>s.length)return!1;for(var f=0;f<u.length;f++)if(u[f]!==s[f])return!1;return!0}return ol}var rd;function Qg(){if(rd)return il;rd=1,Object.defineProperty(il,"__esModule",{value:!0}),il.calcLineCount=g,il.merge=m;var l=rp(),o=Ea(),s=qg();function u(_){return v(_)||d(_)||c(_)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
234
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(_,I){if(_){if(typeof _=="string")return h(_,I);var V=Object.prototype.toString.call(_).slice(8,-1);if(V==="Object"&&_.constructor&&(V=_.constructor.name),V==="Map"||V==="Set")return Array.from(_);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return h(_,I)}}function d(_){if(typeof Symbol<"u"&&Symbol.iterator in Object(_))return Array.from(_)}function v(_){if(Array.isArray(_))return h(_)}function h(_,I){(I==null||I>_.length)&&(I=_.length);for(var V=0,U=new Array(I);V<I;V++)U[V]=_[V];return U}function g(_){var I=ae(_.lines),V=I.oldLines,U=I.newLines;V!==void 0?_.oldLines=V:delete _.oldLines,U!==void 0?_.newLines=U:delete _.newLines}function m(_,I,V){_=w(_,V),I=w(I,V);var U={};(_.index||I.index)&&(U.index=_.index||I.index),(_.newFileName||I.newFileName)&&(E(_)?E(I)?(U.oldFileName=S(U,_.oldFileName,I.oldFileName),U.newFileName=S(U,_.newFileName,I.newFileName),U.oldHeader=S(U,_.oldHeader,I.oldHeader),U.newHeader=S(U,_.newHeader,I.newHeader)):(U.oldFileName=_.oldFileName,U.newFileName=_.newFileName,U.oldHeader=_.oldHeader,U.newHeader=_.newHeader):(U.oldFileName=I.oldFileName||_.oldFileName,U.newFileName=I.newFileName||_.newFileName,U.oldHeader=I.oldHeader||_.oldHeader,U.newHeader=I.newHeader||_.newHeader)),U.hunks=[];for(var J=0,ne=0,Z=0,H=0;J<_.hunks.length||ne<I.hunks.length;){var X=_.hunks[J]||{oldStart:1/0},K=I.hunks[ne]||{oldStart:1/0};if(T(X,K))U.hunks.push(L(X,Z)),J++,H+=X.newLines-X.oldLines;else if(T(K,X))U.hunks.push(L(K,H)),ne++,Z+=K.newLines-K.oldLines;else{var j={oldStart:Math.min(X.oldStart,K.oldStart),oldLines:0,newStart:Math.min(X.newStart+Z,K.oldStart+H),newLines:0,lines:[]};O(j,X.oldStart,X.lines,K.oldStart,K.lines),ne++,J++,U.hunks.push(j)}}return U}function w(_,I){if(typeof _=="string"){if(/^@@/m.test(_)||/^Index:/m.test(_))return(0,o.parsePatch)(_)[0];if(!I)throw new Error("Must provide a base reference or pass in a patch");return(0,l.structuredPatch)(void 0,void 0,I,_)}return _}function E(_){return _.newFileName&&_.newFileName!==_.oldFileName}function S(_,I,V){return I===V?I:(_.conflict=!0,{mine:I,theirs:V})}function T(_,I){return _.oldStart<I.oldStart&&_.oldStart+_.oldLines<I.oldStart}function L(_,I){return{oldStart:_.oldStart,oldLines:_.oldLines,newStart:_.newStart+I,newLines:_.newLines,lines:_.lines}}function O(_,I,V,U,J){var ne={offset:I,lines:V,index:0},Z={offset:U,lines:J,index:0};for(Q(_,ne,Z),Q(_,Z,ne);ne.index<ne.lines.length&&Z.index<Z.lines.length;){var H=ne.lines[ne.index],X=Z.lines[Z.index];if((H[0]==="-"||H[0]==="+")&&(X[0]==="-"||X[0]==="+"))C(_,ne,Z);else if(H[0]==="+"&&X[0]===" "){var K;(K=_.lines).push.apply(K,u(A(ne)))}else if(X[0]==="+"&&H[0]===" "){var j;(j=_.lines).push.apply(j,u(A(Z)))}else H[0]==="-"&&X[0]===" "?D(_,ne,Z):X[0]==="-"&&H[0]===" "?D(_,Z,ne,!0):H===X?(_.lines.push(H),ne.index++,Z.index++):z(_,A(ne),A(Z))}W(_,ne),W(_,Z),g(_)}function C(_,I,V){var U=A(I),J=A(V);if(ee(U)&&ee(J)){if((0,s.arrayStartsWith)(U,J)&&se(V,U,U.length-J.length)){var ne;(ne=_.lines).push.apply(ne,u(U));return}else if((0,s.arrayStartsWith)(J,U)&&se(I,J,J.length-U.length)){var Z;(Z=_.lines).push.apply(Z,u(J));return}}else if((0,s.arrayEqual)(U,J)){var H;(H=_.lines).push.apply(H,u(U));return}z(_,U,J)}function D(_,I,V,U){var J=A(I),ne=B(V,J);if(ne.merged){var Z;(Z=_.lines).push.apply(Z,u(ne.merged))}else z(_,U?ne:J,U?J:ne)}function z(_,I,V){_.conflict=!0,_.lines.push({conflict:!0,mine:I,theirs:V})}function Q(_,I,V){for(;I.offset<V.offset&&I.index<I.lines.length;){var U=I.lines[I.index++];_.lines.push(U),I.offset++}}function W(_,I){for(;I.index<I.lines.length;){var V=I.lines[I.index++];_.lines.push(V)}}function A(_){for(var I=[],V=_.lines[_.index][0];_.index<_.lines.length;){var U=_.lines[_.index];if(V==="-"&&U[0]==="+"&&(V="+"),V===U[0])I.push(U),_.index++;else break}return I}function B(_,I){for(var V=[],U=[],J=0,ne=!1,Z=!1;J<I.length&&_.index<_.lines.length;){var H=_.lines[_.index],X=I[J];if(X[0]==="+")break;if(ne=ne||H[0]!==" ",U.push(X),J++,H[0]==="+")for(Z=!0;H[0]==="+";)V.push(H),H=_.lines[++_.index];X.substr(1)===H.substr(1)?(V.push(H),_.index++):Z=!0}if((I[J]||"")[0]==="+"&&ne&&(Z=!0),Z)return V;for(;J<I.length;)U.push(I[J++]);return{merged:U,changes:V}}function ee(_){return _.reduce(function(I,V){return I&&V[0]==="-"},!0)}function se(_,I,V){for(var U=0;U<V;U++){var J=I[I.length-V+U].substr(1);if(_.lines[_.index+U]!==" "+J)return!1}return _.index+=V,!0}function ae(_){var I=0,V=0;return _.forEach(function(U){if(typeof U!="string"){var J=ae(U.mine),ne=ae(U.theirs);I!==void 0&&(J.oldLines===ne.oldLines?I+=J.oldLines:I=void 0),V!==void 0&&(J.newLines===ne.newLines?V+=J.newLines:V=void 0)}else V!==void 0&&(U[0]==="+"||U[0]===" ")&&V++,I!==void 0&&(U[0]==="-"||U[0]===" ")&&I++}),{oldLines:I,newLines:V}}return il}var Mi={},ld;function Kg(){if(ld)return Mi;ld=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.reversePatch=u;function l(f,c){var d=Object.keys(f);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(f);c&&(v=v.filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable})),d.push.apply(d,v)}return d}function o(f){for(var c=1;c<arguments.length;c++){var d=arguments[c]!=null?arguments[c]:{};c%2?l(Object(d),!0).forEach(function(v){s(f,v,d[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(d)):l(Object(d)).forEach(function(v){Object.defineProperty(f,v,Object.getOwnPropertyDescriptor(d,v))})}return f}function s(f,c,d){return c in f?Object.defineProperty(f,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[c]=d,f}function u(f){return Array.isArray(f)?f.map(u).reverse():o(o({},f),{},{oldFileName:f.newFileName,oldHeader:f.newHeader,newFileName:f.oldFileName,newHeader:f.oldHeader,hunks:f.hunks.map(function(c){return{oldLines:c.newLines,oldStart:c.newStart,newLines:c.oldLines,newStart:c.oldStart,linedelimiters:c.linedelimiters,lines:c.lines.map(function(d){return d.startsWith("-")?"+".concat(d.slice(1)):d.startsWith("+")?"-".concat(d.slice(1)):d})}})})}return Mi}var Fi={},id;function Yg(){if(id)return Fi;id=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.convertChangesToDMP=l;function l(o){for(var s=[],u,f,c=0;c<o.length;c++)u=o[c],u.added?f=1:u.removed?f=-1:f=0,s.push([f,u.value]);return s}return Fi}var zi={},od;function Xg(){if(od)return zi;od=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.convertChangesToXML=l;function l(s){for(var u=[],f=0;f<s.length;f++){var c=s[f];c.added?u.push("<ins>"):c.removed&&u.push("<del>"),u.push(o(c.value)),c.added?u.push("</ins>"):c.removed&&u.push("</del>")}return u.join("")}function o(s){var u=s;return u=u.replace(/&/g,"&amp;"),u=u.replace(/</g,"&lt;"),u=u.replace(/>/g,"&gt;"),u=u.replace(/"/g,"&quot;"),u}return zi}var sd;function Jg(){return sd||(sd=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"Diff",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(l,"diffChars",{enumerable:!0,get:function(){return s.diffChars}}),Object.defineProperty(l,"diffWords",{enumerable:!0,get:function(){return u.diffWords}}),Object.defineProperty(l,"diffWordsWithSpace",{enumerable:!0,get:function(){return u.diffWordsWithSpace}}),Object.defineProperty(l,"diffLines",{enumerable:!0,get:function(){return f.diffLines}}),Object.defineProperty(l,"diffTrimmedLines",{enumerable:!0,get:function(){return f.diffTrimmedLines}}),Object.defineProperty(l,"diffSentences",{enumerable:!0,get:function(){return c.diffSentences}}),Object.defineProperty(l,"diffCss",{enumerable:!0,get:function(){return d.diffCss}}),Object.defineProperty(l,"diffJson",{enumerable:!0,get:function(){return v.diffJson}}),Object.defineProperty(l,"canonicalize",{enumerable:!0,get:function(){return v.canonicalize}}),Object.defineProperty(l,"diffArrays",{enumerable:!0,get:function(){return h.diffArrays}}),Object.defineProperty(l,"applyPatch",{enumerable:!0,get:function(){return g.applyPatch}}),Object.defineProperty(l,"applyPatches",{enumerable:!0,get:function(){return g.applyPatches}}),Object.defineProperty(l,"parsePatch",{enumerable:!0,get:function(){return m.parsePatch}}),Object.defineProperty(l,"merge",{enumerable:!0,get:function(){return w.merge}}),Object.defineProperty(l,"reversePatch",{enumerable:!0,get:function(){return E.reversePatch}}),Object.defineProperty(l,"structuredPatch",{enumerable:!0,get:function(){return S.structuredPatch}}),Object.defineProperty(l,"createTwoFilesPatch",{enumerable:!0,get:function(){return S.createTwoFilesPatch}}),Object.defineProperty(l,"createPatch",{enumerable:!0,get:function(){return S.createPatch}}),Object.defineProperty(l,"formatPatch",{enumerable:!0,get:function(){return S.formatPatch}}),Object.defineProperty(l,"convertChangesToDMP",{enumerable:!0,get:function(){return T.convertChangesToDMP}}),Object.defineProperty(l,"convertChangesToXML",{enumerable:!0,get:function(){return L.convertChangesToXML}});var o=O(yn()),s=Bg(),u=$g(),f=Ca(),c=Hg(),d=Vg(),v=Ug(),h=Wg(),g=Gg(),m=Ea(),w=Qg(),E=Kg(),S=rp(),T=Yg(),L=Xg();function O(C){return C&&C.__esModule?C:{default:C}}})(ta)),ta}var ad;function Zg(){if(ad)return Ze;ad=1;var l=Ze&&Ze.__createBinding||(Object.create?(function(m,w,E,S){S===void 0&&(S=E);var T=Object.getOwnPropertyDescriptor(w,E);(!T||("get"in T?!w.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return w[E]}}),Object.defineProperty(m,S,T)}):(function(m,w,E,S){S===void 0&&(S=E),m[S]=w[E]})),o=Ze&&Ze.__setModuleDefault||(Object.create?(function(m,w){Object.defineProperty(m,"default",{enumerable:!0,value:w})}):function(m,w){m.default=w}),s=Ze&&Ze.__importStar||function(m){if(m&&m.__esModule)return m;var w={};if(m!=null)for(var E in m)E!=="default"&&Object.prototype.hasOwnProperty.call(m,E)&&l(w,m,E);return o(w,m),w};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.computeLineInformation=Ze.DiffMethod=Ze.DiffType=void 0;const u=s(Jg()),f=u;var c;(function(m){m[m.DEFAULT=0]="DEFAULT",m[m.ADDED=1]="ADDED",m[m.REMOVED=2]="REMOVED",m[m.CHANGED=3]="CHANGED"})(c||(Ze.DiffType=c={}));var d;(function(m){m.CHARS="diffChars",m.WORDS="diffWords",m.WORDS_WITH_SPACE="diffWordsWithSpace",m.LINES="diffLines",m.TRIMMED_LINES="diffTrimmedLines",m.SENTENCES="diffSentences",m.CSS="diffCss",m.JSON="diffJson"})(d||(Ze.DiffMethod=d={}));const v=m=>m===""?[]:m.replace(/\n$/,"").split(`
235
+ `),h=(m,w,E=d.CHARS)=>{const S=f[E](m,w),T={left:[],right:[]};return S.forEach(({added:L,removed:O,value:C})=>{const D={};return L&&(D.type=c.ADDED,D.value=C,T.right.push(D)),O&&(D.type=c.REMOVED,D.value=C,T.left.push(D)),!O&&!L&&(D.type=c.DEFAULT,D.value=C,T.right.push(D),T.left.push(D)),D}),T},g=(m,w,E=!1,S=d.CHARS,T=0,L=[])=>{let O=[];typeof m=="string"&&typeof w=="string"?O=u.diffLines(m.trimRight(),w.trimRight(),{newlineIsToken:!1,ignoreWhitespace:!1,ignoreCase:!1}):O=u.diffJson(m,w);let C=T,D=T,z=[],Q=0;const W=[],A=[],B=(ee,se,ae,_,I)=>v(ee).map((U,J)=>{const ne={},Z={};if(!(A.includes(`${se}-${J}`)||I&&J!==0)){if(ae||_){let H=!0;if(_){D+=1,ne.lineNumber=D,ne.type=c.REMOVED,ne.value=U||" ";const X=O[se+1];if(X&&X.added){const K=v(X.value)[J];if(K){const j=B(K,se,!0,!1,!0),{value:$,lineNumber:fe,type:pe}=j[0].right;if(A.push(`${se+1}-${J}`),Z.lineNumber=fe,ne.value===$)H=!1,Z.type=0,ne.type=0,Z.value=$;else if(Z.type=pe,E)Z.value=$;else{const he=h(U,$,S);Z.value=he.right,ne.value=he.left}}}}else C+=1,Z.lineNumber=C,Z.type=c.ADDED,Z.value=U;H&&!I&&(W.includes(Q)||W.push(Q))}else D+=1,C+=1,ne.lineNumber=D,ne.type=c.DEFAULT,ne.value=U,Z.lineNumber=C,Z.type=c.DEFAULT,Z.value=U;return(L!=null&&L.includes(`L-${ne.lineNumber}`)||L!=null&&L.includes(`R-${Z.lineNumber}`)&&!W.includes(Q))&&W.push(Q),I||(Q+=1),{right:Z,left:ne}}}).filter(Boolean);return O.forEach(({added:ee,removed:se,value:ae},_)=>{z=[...z,...B(ae,_,ee,se)]}),{lineInformation:z,diffLines:W}};return Ze.computeLineInformation=g,Ze}var vn={};function ey(l){if(l.sheet)return l.sheet;for(var o=0;o<document.styleSheets.length;o++)if(document.styleSheets[o].ownerNode===l)return document.styleSheets[o]}function ty(l){var o=document.createElement("style");return o.setAttribute("data-emotion",l.key),l.nonce!==void 0&&o.setAttribute("nonce",l.nonce),o.appendChild(document.createTextNode("")),o.setAttribute("data-s",""),o}var ny=(function(){function l(s){var u=this;this._insertTag=function(f){var c;u.tags.length===0?u.insertionPoint?c=u.insertionPoint.nextSibling:u.prepend?c=u.container.firstChild:c=u.before:c=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(f,c),u.tags.push(f)},this.isSpeedy=s.speedy===void 0?!0:s.speedy,this.tags=[],this.ctr=0,this.nonce=s.nonce,this.key=s.key,this.container=s.container,this.prepend=s.prepend,this.insertionPoint=s.insertionPoint,this.before=null}var o=l.prototype;return o.hydrate=function(u){u.forEach(this._insertTag)},o.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ty(this));var f=this.tags[this.tags.length-1];if(this.isSpeedy){var c=ey(f);try{c.insertRule(u,c.cssRules.length)}catch{}}else f.appendChild(document.createTextNode(u));this.ctr++},o.flush=function(){this.tags.forEach(function(u){var f;return(f=u.parentNode)==null?void 0:f.removeChild(u)}),this.tags=[],this.ctr=0},l})(),Ye="-ms-",Wi="-moz-",we="-webkit-",lp="comm",ja="rule",Na="decl",ry="@import",ip="@keyframes",ly="@layer",iy=Math.abs,Ki=String.fromCharCode,oy=Object.assign;function sy(l,o){return be(l,0)^45?(((o<<2^be(l,0))<<2^be(l,1))<<2^be(l,2))<<2^be(l,3):0}function op(l){return l.trim()}function ay(l,o){return(l=o.exec(l))?l[0]:l}function xe(l,o,s){return l.replace(o,s)}function ha(l,o){return l.indexOf(o)}function be(l,o){return l.charCodeAt(o)|0}function cl(l,o,s){return l.slice(o,s)}function zt(l){return l.length}function _a(l){return l.length}function Ai(l,o){return o.push(l),l}function uy(l,o){return l.map(o).join("")}var Yi=1,pr=1,sp=0,st=0,Ae=0,vr="";function Xi(l,o,s,u,f,c,d){return{value:l,root:o,parent:s,type:u,props:f,children:c,line:Yi,column:pr,length:d,return:""}}function sl(l,o){return oy(Xi("",null,null,"",null,null,0),l,{length:-l.length},o)}function cy(){return Ae}function fy(){return Ae=st>0?be(vr,--st):0,pr--,Ae===10&&(pr=1,Yi--),Ae}function pt(){return Ae=st<sp?be(vr,st++):0,pr++,Ae===10&&(pr=1,Yi++),Ae}function At(){return be(vr,st)}function $i(){return st}function vl(l,o){return cl(vr,l,o)}function fl(l){switch(l){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ap(l){return Yi=pr=1,sp=zt(vr=l),st=0,[]}function up(l){return vr="",l}function Hi(l){return op(vl(st-1,ma(l===91?l+2:l===40?l+1:l)))}function dy(l){for(;(Ae=At())&&Ae<33;)pt();return fl(l)>2||fl(Ae)>3?"":" "}function py(l,o){for(;--o&&pt()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return vl(l,$i()+(o<6&&At()==32&&pt()==32))}function ma(l){for(;pt();)switch(Ae){case l:return st;case 34:case 39:l!==34&&l!==39&&ma(Ae);break;case 40:l===41&&ma(l);break;case 92:pt();break}return st}function hy(l,o){for(;pt()&&l+Ae!==57;)if(l+Ae===84&&At()===47)break;return"/*"+vl(o,st-1)+"*"+Ki(l===47?l:pt())}function my(l){for(;!fl(At());)pt();return vl(l,st)}function vy(l){return up(Vi("",null,null,null,[""],l=ap(l),0,[0],l))}function Vi(l,o,s,u,f,c,d,v,h){for(var g=0,m=0,w=d,E=0,S=0,T=0,L=1,O=1,C=1,D=0,z="",Q=f,W=c,A=u,B=z;O;)switch(T=D,D=pt()){case 40:if(T!=108&&be(B,w-1)==58){ha(B+=xe(Hi(D),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:B+=Hi(D);break;case 9:case 10:case 13:case 32:B+=dy(T);break;case 92:B+=py($i()-1,7);continue;case 47:switch(At()){case 42:case 47:Ai(gy(hy(pt(),$i()),o,s),h);break;default:B+="/"}break;case 123*L:v[g++]=zt(B)*C;case 125*L:case 59:case 0:switch(D){case 0:case 125:O=0;case 59+m:C==-1&&(B=xe(B,/\f/g,"")),S>0&&zt(B)-w&&Ai(S>32?cd(B+";",u,s,w-1):cd(xe(B," ","")+";",u,s,w-2),h);break;case 59:B+=";";default:if(Ai(A=ud(B,o,s,g,m,f,v,z,Q=[],W=[],w),c),D===123)if(m===0)Vi(B,o,A,A,Q,c,w,v,W);else switch(E===99&&be(B,3)===110?100:E){case 100:case 108:case 109:case 115:Vi(l,A,A,u&&Ai(ud(l,A,A,0,0,f,v,z,f,Q=[],w),W),f,W,w,v,u?Q:W);break;default:Vi(B,A,A,A,[""],W,0,v,W)}}g=m=S=0,L=C=1,z=B="",w=d;break;case 58:w=1+zt(B),S=T;default:if(L<1){if(D==123)--L;else if(D==125&&L++==0&&fy()==125)continue}switch(B+=Ki(D),D*L){case 38:C=m>0?1:(B+="\f",-1);break;case 44:v[g++]=(zt(B)-1)*C,C=1;break;case 64:At()===45&&(B+=Hi(pt())),E=At(),m=w=zt(z=B+=my($i())),D++;break;case 45:T===45&&zt(B)==2&&(L=0)}}return c}function ud(l,o,s,u,f,c,d,v,h,g,m){for(var w=f-1,E=f===0?c:[""],S=_a(E),T=0,L=0,O=0;T<u;++T)for(var C=0,D=cl(l,w+1,w=iy(L=d[T])),z=l;C<S;++C)(z=op(L>0?E[C]+" "+D:xe(D,/&\f/g,E[C])))&&(h[O++]=z);return Xi(l,o,s,f===0?ja:v,h,g,m)}function gy(l,o,s){return Xi(l,o,s,lp,Ki(cy()),cl(l,2,-2),0)}function cd(l,o,s,u){return Xi(l,o,s,Na,cl(l,0,u),cl(l,u+1,-1),u)}function dr(l,o){for(var s="",u=_a(l),f=0;f<u;f++)s+=o(l[f],f,l,o)||"";return s}function yy(l,o,s,u){switch(l.type){case ly:if(l.children.length)break;case ry:case Na:return l.return=l.return||l.value;case lp:return"";case ip:return l.return=l.value+"{"+dr(l.children,u)+"}";case ja:l.value=l.props.join(",")}return zt(s=dr(l.children,u))?l.return=l.value+"{"+s+"}":""}function wy(l){var o=_a(l);return function(s,u,f,c){for(var d="",v=0;v<o;v++)d+=l[v](s,u,f,c)||"";return d}}function xy(l){return function(o){o.root||(o=o.return)&&l(o)}}function ky(l){var o=Object.create(null);return function(s){return o[s]===void 0&&(o[s]=l(s)),o[s]}}var Sy=function(o,s,u){for(var f=0,c=0;f=c,c=At(),f===38&&c===12&&(s[u]=1),!fl(c);)pt();return vl(o,st)},Cy=function(o,s){var u=-1,f=44;do switch(fl(f)){case 0:f===38&&At()===12&&(s[u]=1),o[u]+=Sy(st-1,s,u);break;case 2:o[u]+=Hi(f);break;case 4:if(f===44){o[++u]=At()===58?"&\f":"",s[u]=o[u].length;break}default:o[u]+=Ki(f)}while(f=pt());return o},Ey=function(o,s){return up(Cy(ap(o),s))},fd=new WeakMap,jy=function(o){if(!(o.type!=="rule"||!o.parent||o.length<1)){for(var s=o.value,u=o.parent,f=o.column===u.column&&o.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(o.props.length===1&&s.charCodeAt(0)!==58&&!fd.get(u))&&!f){fd.set(o,!0);for(var c=[],d=Ey(s,c),v=u.props,h=0,g=0;h<d.length;h++)for(var m=0;m<v.length;m++,g++)o.props[g]=c[h]?d[h].replace(/&\f/g,v[m]):v[m]+" "+d[h]}}},Ny=function(o){if(o.type==="decl"){var s=o.value;s.charCodeAt(0)===108&&s.charCodeAt(2)===98&&(o.return="",o.value="")}};function cp(l,o){switch(sy(l,o)){case 5103:return we+"print-"+l+l;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return we+l+l;case 5349:case 4246:case 4810:case 6968:case 2756:return we+l+Wi+l+Ye+l+l;case 6828:case 4268:return we+l+Ye+l+l;case 6165:return we+l+Ye+"flex-"+l+l;case 5187:return we+l+xe(l,/(\w+).+(:[^]+)/,we+"box-$1$2"+Ye+"flex-$1$2")+l;case 5443:return we+l+Ye+"flex-item-"+xe(l,/flex-|-self/,"")+l;case 4675:return we+l+Ye+"flex-line-pack"+xe(l,/align-content|flex-|-self/,"")+l;case 5548:return we+l+Ye+xe(l,"shrink","negative")+l;case 5292:return we+l+Ye+xe(l,"basis","preferred-size")+l;case 6060:return we+"box-"+xe(l,"-grow","")+we+l+Ye+xe(l,"grow","positive")+l;case 4554:return we+xe(l,/([^-])(transform)/g,"$1"+we+"$2")+l;case 6187:return xe(xe(xe(l,/(zoom-|grab)/,we+"$1"),/(image-set)/,we+"$1"),l,"")+l;case 5495:case 3959:return xe(l,/(image-set\([^]*)/,we+"$1$`$1");case 4968:return xe(xe(l,/(.+:)(flex-)?(.*)/,we+"box-pack:$3"+Ye+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+we+l+l;case 4095:case 3583:case 4068:case 2532:return xe(l,/(.+)-inline(.+)/,we+"$1$2")+l;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zt(l)-1-o>6)switch(be(l,o+1)){case 109:if(be(l,o+4)!==45)break;case 102:return xe(l,/(.+:)(.+)-([^]+)/,"$1"+we+"$2-$3$1"+Wi+(be(l,o+3)==108?"$3":"$2-$3"))+l;case 115:return~ha(l,"stretch")?cp(xe(l,"stretch","fill-available"),o)+l:l}break;case 4949:if(be(l,o+1)!==115)break;case 6444:switch(be(l,zt(l)-3-(~ha(l,"!important")&&10))){case 107:return xe(l,":",":"+we)+l;case 101:return xe(l,/(.+:)([^;!]+)(;|!.+)?/,"$1"+we+(be(l,14)===45?"inline-":"")+"box$3$1"+we+"$2$3$1"+Ye+"$2box$3")+l}break;case 5936:switch(be(l,o+11)){case 114:return we+l+Ye+xe(l,/[svh]\w+-[tblr]{2}/,"tb")+l;case 108:return we+l+Ye+xe(l,/[svh]\w+-[tblr]{2}/,"tb-rl")+l;case 45:return we+l+Ye+xe(l,/[svh]\w+-[tblr]{2}/,"lr")+l}return we+l+Ye+l+l}return l}var _y=function(o,s,u,f){if(o.length>-1&&!o.return)switch(o.type){case Na:o.return=cp(o.value,o.length);break;case ip:return dr([sl(o,{value:xe(o.value,"@","@"+we)})],f);case ja:if(o.length)return uy(o.props,function(c){switch(ay(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return dr([sl(o,{props:[xe(c,/:(read-\w+)/,":"+Wi+"$1")]})],f);case"::placeholder":return dr([sl(o,{props:[xe(c,/:(plac\w+)/,":"+we+"input-$1")]}),sl(o,{props:[xe(c,/:(plac\w+)/,":"+Wi+"$1")]}),sl(o,{props:[xe(c,/:(plac\w+)/,Ye+"input-$1")]})],f)}return""})}},Ly=[_y],Py=function(o){var s=o.key;if(s==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(L){var O=L.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(L),L.setAttribute("data-s",""))})}var f=o.stylisPlugins||Ly,c={},d,v=[];d=o.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+s+' "]'),function(L){for(var O=L.getAttribute("data-emotion").split(" "),C=1;C<O.length;C++)c[O[C]]=!0;v.push(L)});var h,g=[jy,Ny];{var m,w=[yy,xy(function(L){m.insert(L)})],E=wy(g.concat(f,w)),S=function(O){return dr(vy(O),E)};h=function(O,C,D,z){m=D,S(O?O+"{"+C.styles+"}":C.styles),z&&(T.inserted[C.name]=!0)}}var T={key:s,sheet:new ny({key:s,container:d,nonce:o.nonce,speedy:o.speedy,prepend:o.prepend,insertionPoint:o.insertionPoint}),nonce:o.nonce,inserted:c,registered:{},insert:h};return T.sheet.hydrate(v),T};function Ry(l){for(var o=0,s,u=0,f=l.length;f>=4;++u,f-=4)s=l.charCodeAt(u)&255|(l.charCodeAt(++u)&255)<<8|(l.charCodeAt(++u)&255)<<16|(l.charCodeAt(++u)&255)<<24,s=(s&65535)*1540483477+((s>>>16)*59797<<16),s^=s>>>24,o=(s&65535)*1540483477+((s>>>16)*59797<<16)^(o&65535)*1540483477+((o>>>16)*59797<<16);switch(f){case 3:o^=(l.charCodeAt(u+2)&255)<<16;case 2:o^=(l.charCodeAt(u+1)&255)<<8;case 1:o^=l.charCodeAt(u)&255,o=(o&65535)*1540483477+((o>>>16)*59797<<16)}return o^=o>>>13,o=(o&65535)*1540483477+((o>>>16)*59797<<16),((o^o>>>15)>>>0).toString(36)}var Ty={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Oy=/[A-Z]|^ms/g,Dy=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fp=function(o){return o.charCodeAt(1)===45},dd=function(o){return o!=null&&typeof o!="boolean"},la=ky(function(l){return fp(l)?l:l.replace(Oy,"-$&").toLowerCase()}),pd=function(o,s){switch(o){case"animation":case"animationName":if(typeof s=="string")return s.replace(Dy,function(u,f,c){return gn={name:f,styles:c,next:gn},f})}return Ty[o]!==1&&!fp(o)&&typeof s=="number"&&s!==0?s+"px":s};function bi(l,o,s){if(s==null)return"";var u=s;if(u.__emotion_styles!==void 0)return u;switch(typeof s){case"boolean":return"";case"object":{var f=s;if(f.anim===1)return gn={name:f.name,styles:f.styles,next:gn},f.name;var c=s;if(c.styles!==void 0){var d=c.next;if(d!==void 0)for(;d!==void 0;)gn={name:d.name,styles:d.styles,next:gn},d=d.next;var v=c.styles+";";return v}return My(l,o,s)}}var h=s;if(o==null)return h;var g=o[h];return g!==void 0?g:h}function My(l,o,s){var u="";if(Array.isArray(s))for(var f=0;f<s.length;f++)u+=bi(l,o,s[f])+";";else for(var c in s){var d=s[c];if(typeof d!="object"){var v=d;o!=null&&o[v]!==void 0?u+=c+"{"+o[v]+"}":dd(v)&&(u+=la(c)+":"+pd(c,v)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&(o==null||o[d[0]]===void 0))for(var h=0;h<d.length;h++)dd(d[h])&&(u+=la(c)+":"+pd(c,d[h])+";");else{var g=bi(l,o,d);switch(c){case"animation":case"animationName":{u+=la(c)+":"+g+";";break}default:u+=c+"{"+g+"}"}}}return u}var hd=/label:\s*([^\s;{]+)\s*(;|$)/g,gn;function ia(l,o,s){if(l.length===1&&typeof l[0]=="object"&&l[0]!==null&&l[0].styles!==void 0)return l[0];var u=!0,f="";gn=void 0;var c=l[0];if(c==null||c.raw===void 0)u=!1,f+=bi(s,o,c);else{var d=c;f+=d[0]}for(var v=1;v<l.length;v++)if(f+=bi(s,o,l[v]),u){var h=c;f+=h[v]}hd.lastIndex=0;for(var g="",m;(m=hd.exec(f))!==null;)g+="-"+m[1];var w=Ry(f)+g;return{name:w,styles:f,next:gn}}function dp(l,o,s){var u="";return s.split(" ").forEach(function(f){l[f]!==void 0?o.push(l[f]+";"):f&&(u+=f+" ")}),u}var Fy=function(o,s,u){var f=o.key+"-"+s.name;o.registered[f]===void 0&&(o.registered[f]=s.styles)},zy=function(o,s,u){Fy(o,s);var f=o.key+"-"+s.name;if(o.inserted[s.name]===void 0){var c=s;do o.insert(s===c?"."+f:"",c,o.sheet,!0),c=c.next;while(c!==void 0)}};function md(l,o){if(l.inserted[o.name]===void 0)return l.insert("",o,l.sheet,!0)}function vd(l,o,s){var u=[],f=dp(l,u,s);return u.length<2?s:f+o(u)}var Ay=function(o){var s=Py(o);s.sheet.speedy=function(v){this.isSpeedy=v},s.compat=!0;var u=function(){for(var h=arguments.length,g=new Array(h),m=0;m<h;m++)g[m]=arguments[m];var w=ia(g,s.registered,void 0);return zy(s,w),s.key+"-"+w.name},f=function(){for(var h=arguments.length,g=new Array(h),m=0;m<h;m++)g[m]=arguments[m];var w=ia(g,s.registered),E="animation-"+w.name;return md(s,{name:w.name,styles:"@keyframes "+E+"{"+w.styles+"}"}),E},c=function(){for(var h=arguments.length,g=new Array(h),m=0;m<h;m++)g[m]=arguments[m];var w=ia(g,s.registered);md(s,w)},d=function(){for(var h=arguments.length,g=new Array(h),m=0;m<h;m++)g[m]=arguments[m];return vd(s.registered,u,Iy(g))};return{css:u,cx:d,injectGlobal:c,keyframes:f,hydrate:function(h){h.forEach(function(g){s.inserted[g]=!0})},flush:function(){s.registered={},s.inserted={},s.sheet.flush()},sheet:s.sheet,cache:s,getRegisteredStyles:dp.bind(null,s.registered),merge:vd.bind(null,s.registered,u)}},Iy=function l(o){for(var s="",u=0;u<o.length;u++){var f=o[u];if(f!=null){var c=void 0;switch(typeof f){case"boolean":break;case"object":{if(Array.isArray(f))c=l(f);else{c="";for(var d in f)f[d]&&d&&(c&&(c+=" "),c+=d)}break}default:c=f}c&&(s&&(s+=" "),s+=c)}}return s};const By=Object.freeze(Object.defineProperty({__proto__:null,default:Ay},Symbol.toStringTag,{value:"Module"})),$y=kd(By);var gd;function Hy(){if(gd)return vn;gd=1;var l=vn&&vn.__rest||function(u,f){var c={};for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&f.indexOf(d)<0&&(c[d]=u[d]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,d=Object.getOwnPropertySymbols(u);v<d.length;v++)f.indexOf(d[v])<0&&Object.prototype.propertyIsEnumerable.call(u,d[v])&&(c[d[v]]=u[d[v]]);return c},o=vn&&vn.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(vn,"__esModule",{value:!0});const s=o($y);return vn.default=(u,f=!1,c="")=>{const{variables:d={}}=u,v=l(u,["variables"]),h={light:Object.assign({diffViewerBackground:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",changedBackground:"#fffbdd",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee"},d.light||{}),dark:Object.assign({diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#044B53",addedColor:"white",removedBackground:"#632F34",removedColor:"white",changedBackground:"#3e302c",wordAddedBackground:"#055d67",wordRemovedBackground:"#7d383f",addedGutterBackground:"#034148",removedGutterBackground:"#632b30",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#21232b",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#666c87",addedGutterColor:"#8c8c8c",removedGutterColor:"#8c8c8c",codeFoldContentColor:"#656a8b",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#555a7b",diffViewerTitleBorderColor:"#353846"},d.dark||{})},g=f?h.dark:h.light,{css:m,cx:w}=(0,s.default)({key:"react-diff",nonce:c}),E=m({width:"100%",label:"content"}),S=m({[`.${E}`]:{width:"50%"},label:"split-view"}),T=m({width:"100%",background:g.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"25px"},label:"diff-container",borderCollapse:"collapse"}),L=m({color:g.codeFoldContentColor,label:"code-fold-content"}),O=m({color:g.diffViewerColor,label:"content-text"}),C=m({background:g.diffViewerTitleBackground,padding:10,borderBottom:`1px solid ${g.diffViewerTitleBorderColor}`,label:"title-block",":last-child":{borderLeft:`1px solid ${g.diffViewerTitleBorderColor}`},[`.${O}`]:{color:g.diffViewerTitleColor}}),D=m({color:g.gutterColor,label:"line-number"}),z=m({background:g.removedBackground,color:g.removedColor,pre:{color:g.removedColor},[`.${D}`]:{color:g.removedGutterColor},label:"diff-removed"}),Q=m({background:g.addedBackground,color:g.addedColor,pre:{color:g.addedColor},[`.${D}`]:{color:g.addedGutterColor},label:"diff-added"}),W=m({background:g.changedBackground,[`.${D}`]:{color:g.gutterColor},label:"diff-changed"}),A=m({padding:2,display:"inline-flex",borderRadius:4,wordBreak:"break-all",label:"word-diff"}),B=m({background:g.wordAddedBackground,label:"word-added"}),ee=m({background:g.wordRemovedBackground,label:"word-removed"}),se=m({backgroundColor:g.codeFoldGutterBackground,label:"code-fold-gutter"}),ae=m({backgroundColor:g.codeFoldBackground,height:40,fontSize:14,fontWeight:700,label:"code-fold",a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),_=m({backgroundColor:g.emptyLineBackground,label:"empty-line"}),I=m({width:25,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker",[`&.${Q}`]:{pre:{color:g.addedColor}},[`&.${z}`]:{pre:{color:g.removedColor}}}),V=m({background:g.highlightBackground,label:"highlighted-line",[`.${B}, .${ee}`]:{backgroundColor:"initial"}}),U=m({label:"highlighted-gutter"}),J=m({userSelect:"none",minWidth:50,padding:"0 10px",whiteSpace:"nowrap",label:"gutter",textAlign:"right",background:g.gutterBackground,"&:hover":{cursor:"pointer",background:g.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5},[`&.${Q}`]:{background:g.addedGutterBackground},[`&.${z}`]:{background:g.removedGutterBackground},[`&.${U}`]:{background:g.highlightGutterBackground,"&:hover":{background:g.highlightGutterBackground}}}),ne=m({"&:hover":{background:g.gutterBackground,cursor:"initial"},label:"empty-gutter"}),Z=m({verticalAlign:"baseline",label:"line"}),H={diffContainer:T,diffRemoved:z,diffAdded:Q,diffChanged:W,splitView:S,marker:I,highlightedGutter:U,highlightedLine:V,gutter:J,line:Z,wordDiff:A,wordAdded:B,wordRemoved:ee,codeFoldGutter:se,codeFold:ae,emptyGutter:ne,emptyLine:_,lineNumber:D,contentText:O,content:E,codeFoldContent:L,titleBlock:C},X=Object.keys(v).reduce((K,j)=>Object.assign(Object.assign({},K),{[j]:m(v[j])}),{});return Object.keys(H).reduce((K,j)=>Object.assign(Object.assign({},K),{[j]:X[j]?w(H[j],X[j]):H[j]}),{})},vn}var al={},yd;function Vy(){if(yd)return al;yd=1,Object.defineProperty(al,"__esModule",{value:!0}),al.computeHiddenBlocks=void 0;function l(o,s,u){let f=0,c,d={},v=[];return o.forEach((h,g)=>{const m=s.some(w=>w>=g-u&&w<=g+u);!m&&c==null?(c={index:f,startLine:g,endLine:g,lines:1},v.push(c),d[g]=c.index,f++):m?c=void 0:(c.endLine=g,c.lines++,d[g]=c.index)}),{lineBlocks:d,blocks:v}}return al.computeHiddenBlocks=l,al}var wd=Number.isNaN||function(o){return typeof o=="number"&&o!==o};function Uy(l,o){return!!(l===o||wd(l)&&wd(o))}function Wy(l,o){if(l.length!==o.length)return!1;for(var s=0;s<l.length;s++)if(!Uy(l[s],o[s]))return!1;return!0}function by(l,o){o===void 0&&(o=Wy);var s=null;function u(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];if(s&&s.lastThis===this&&o(f,s.lastArgs))return s.lastResult;var d=l.apply(this,f);return s={lastResult:d,lastArgs:f,lastThis:this},d}return u.clear=function(){s=null},u}const Gy=Object.freeze(Object.defineProperty({__proto__:null,default:by},Symbol.toStringTag,{value:"Module"})),qy=kd(Gy);var xd;function Qy(){return xd||(xd=1,(function(l){var o=Pt&&Pt.__createBinding||(Object.create?(function(L,O,C,D){D===void 0&&(D=C);var z=Object.getOwnPropertyDescriptor(O,C);(!z||("get"in z?!O.__esModule:z.writable||z.configurable))&&(z={enumerable:!0,get:function(){return O[C]}}),Object.defineProperty(L,D,z)}):(function(L,O,C,D){D===void 0&&(D=C),L[D]=O[C]})),s=Pt&&Pt.__setModuleDefault||(Object.create?(function(L,O){Object.defineProperty(L,"default",{enumerable:!0,value:O})}):function(L,O){L.default=O}),u=Pt&&Pt.__importStar||function(L){if(L&&L.__esModule)return L;var O={};if(L!=null)for(var C in L)C!=="default"&&Object.prototype.hasOwnProperty.call(L,C)&&o(O,L,C);return s(O,L),O},f=Pt&&Pt.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(l,"__esModule",{value:!0}),l.DiffMethod=l.LineNumberPrefix=void 0;const c=Sd(),d=u(Gi()),v=f(Ig()),h=Zg();Object.defineProperty(l,"DiffMethod",{enumerable:!0,get:function(){return h.DiffMethod}});const g=f(Hy()),m=Vy(),w=qy,E=w.default||w;var S;(function(L){L.LEFT="L",L.RIGHT="R"})(S||(l.LineNumberPrefix=S={}));class T extends d.Component{constructor(O){super(O),this.resetCodeBlocks=()=>this.state.expandedBlocks.length>0?(this.setState({expandedBlocks:[]}),!0):!1,this.onBlockExpand=C=>{const D=this.state.expandedBlocks.slice();D.push(C),this.setState({expandedBlocks:D})},this.computeStyles=E(g.default),this.onLineNumberClickProxy=C=>this.props.onLineNumberClick?D=>this.props.onLineNumberClick(C,D):()=>{},this.renderWordDiff=(C,D)=>C.map((z,Q)=>(0,c.jsx)("span",{className:(0,v.default)(this.styles.wordDiff,{[this.styles.wordAdded]:z.type===h.DiffType.ADDED,[this.styles.wordRemoved]:z.type===h.DiffType.REMOVED}),children:D?D(z.value):z.value},Q)),this.renderLine=(C,D,z,Q,W,A)=>{const B=`${z}-${C}`,ee=`${A}-${W}`,se=this.props.highlightLines.includes(B)||this.props.highlightLines.includes(ee),ae=D===h.DiffType.ADDED,_=D===h.DiffType.REMOVED,I=D===h.DiffType.CHANGED;let V;return Array.isArray(Q)?V=this.renderWordDiff(Q,this.props.renderContent):this.props.renderContent?V=this.props.renderContent(Q):V=Q,(0,c.jsxs)(d.Fragment,{children:[!this.props.hideLineNumbers&&(0,c.jsx)("td",{onClick:C&&this.onLineNumberClickProxy(B),className:(0,v.default)(this.styles.gutter,{[this.styles.emptyGutter]:!C,[this.styles.diffAdded]:ae,[this.styles.diffRemoved]:_,[this.styles.diffChanged]:I,[this.styles.highlightedGutter]:se}),children:(0,c.jsx)("pre",{className:this.styles.lineNumber,children:C})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,c.jsx)("td",{onClick:W&&this.onLineNumberClickProxy(ee),className:(0,v.default)(this.styles.gutter,{[this.styles.emptyGutter]:!W,[this.styles.diffAdded]:ae,[this.styles.diffRemoved]:_,[this.styles.diffChanged]:I,[this.styles.highlightedGutter]:se}),children:(0,c.jsx)("pre",{className:this.styles.lineNumber,children:W})}),this.props.renderGutter?this.props.renderGutter({lineNumber:C,type:D,prefix:z,value:Q,additionalLineNumber:W,additionalPrefix:A,styles:this.styles}):null,!this.props.hideMarkers&&(0,c.jsx)("td",{className:(0,v.default)(this.styles.marker,{[this.styles.emptyLine]:!V,[this.styles.diffAdded]:ae,[this.styles.diffRemoved]:_,[this.styles.diffChanged]:I,[this.styles.highlightedLine]:se}),children:(0,c.jsxs)("pre",{children:[ae&&"+",_&&"-"]})}),(0,c.jsx)("td",{className:(0,v.default)(this.styles.content,{[this.styles.emptyLine]:!V,[this.styles.diffAdded]:ae,[this.styles.diffRemoved]:_,[this.styles.diffChanged]:I,[this.styles.highlightedLine]:se}),children:(0,c.jsx)("pre",{className:this.styles.contentText,children:V})})]})},this.renderSplitView=({left:C,right:D},z)=>(0,c.jsxs)("tr",{className:this.styles.line,children:[this.renderLine(C.lineNumber,C.type,S.LEFT,C.value),this.renderLine(D.lineNumber,D.type,S.RIGHT,D.value)]},z),this.renderInlineView=({left:C,right:D},z)=>{let Q;return C.type===h.DiffType.REMOVED&&D.type===h.DiffType.ADDED?(0,c.jsxs)(d.Fragment,{children:[(0,c.jsx)("tr",{className:this.styles.line,children:this.renderLine(C.lineNumber,C.type,S.LEFT,C.value,null)}),(0,c.jsx)("tr",{className:this.styles.line,children:this.renderLine(null,D.type,S.RIGHT,D.value,D.lineNumber)})]},z):(C.type===h.DiffType.REMOVED&&(Q=this.renderLine(C.lineNumber,C.type,S.LEFT,C.value,null)),C.type===h.DiffType.DEFAULT&&(Q=this.renderLine(C.lineNumber,C.type,S.LEFT,C.value,D.lineNumber,S.RIGHT)),D.type===h.DiffType.ADDED&&(Q=this.renderLine(null,D.type,S.RIGHT,D.value,D.lineNumber)),(0,c.jsx)("tr",{className:this.styles.line,children:Q},z))},this.onBlockClickProxy=C=>()=>this.onBlockExpand(C),this.renderSkippedLineIndicator=(C,D,z,Q)=>{const{hideLineNumbers:W,splitView:A}=this.props,B=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(C,z,Q):(0,c.jsxs)("pre",{className:this.styles.codeFoldContent,children:["Expand ",C," lines ..."]}),ee=(0,c.jsx)("td",{children:(0,c.jsx)("a",{onClick:this.onBlockClickProxy(D),tabIndex:0,children:B})}),se=!A&&!W;return(0,c.jsxs)("tr",{className:this.styles.codeFold,children:[!W&&(0,c.jsx)("td",{className:this.styles.codeFoldGutter}),this.props.renderGutter?(0,c.jsx)("td",{className:this.styles.codeFoldGutter}):null,(0,c.jsx)("td",{className:(0,v.default)({[this.styles.codeFoldGutter]:se})}),se?(0,c.jsxs)(d.Fragment,{children:[(0,c.jsx)("td",{}),ee]}):(0,c.jsxs)(d.Fragment,{children:[ee,this.props.renderGutter?(0,c.jsx)("td",{}):null,(0,c.jsx)("td",{})]}),(0,c.jsx)("td",{}),(0,c.jsx)("td",{})]},`${z}-${Q}`)},this.renderDiff=()=>{const{oldValue:C,newValue:D,splitView:z,disableWordDiff:Q,compareMethod:W,linesOffset:A}=this.props,{lineInformation:B,diffLines:ee}=(0,h.computeLineInformation)(C,D,Q,W,A,this.props.alwaysShowLines),se=this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff),{lineBlocks:ae,blocks:_}=(0,m.computeHiddenBlocks)(B,ee,se);return B.map((I,V)=>{if(this.props.showDiffOnly){const J=ae[V];if(J!==void 0){const ne=_[J].endLine===V;if(!this.state.expandedBlocks.includes(J)&&ne)return(0,c.jsx)(d.Fragment,{children:this.renderSkippedLineIndicator(_[J].lines,J,I.left.lineNumber,I.right.lineNumber)},V);if(!this.state.expandedBlocks.includes(J))return null}}return z?this.renderSplitView(I,V):this.renderInlineView(I,V)})},this.render=()=>{const{oldValue:C,newValue:D,useDarkTheme:z,leftTitle:Q,rightTitle:W,splitView:A,hideLineNumbers:B,hideMarkers:ee,nonce:se}=this.props;if(this.props.compareMethod!==h.DiffMethod.JSON&&(typeof C!="string"||typeof D!="string"))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles,z,se);const ae=this.renderDiff();let _=B?2:3,I=B?2:4;ee&&(_-=1,I-=1);const V=this.props.renderGutter?1:0,U=(Q||W)&&(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{colSpan:(A?_:I)+V,className:this.styles.titleBlock,children:(0,c.jsx)("pre",{className:this.styles.contentText,children:Q})}),A&&(0,c.jsx)("td",{colSpan:_+V,className:this.styles.titleBlock,children:(0,c.jsx)("pre",{className:this.styles.contentText,children:W})})]});return(0,c.jsx)("table",{className:(0,v.default)(this.styles.diffContainer,{[this.styles.splitView]:A}),children:(0,c.jsxs)("tbody",{children:[U,ae]})})},this.state={expandedBlocks:[]}}}T.defaultProps={oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:h.DiffMethod.CHARS,styles:{},hideLineNumbers:!1,hideMarkers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:""},l.default=T})(Pt)),Pt}var La=Qy();const pp=va(La),hp={variables:{dark:{diffViewerBackground:"#0d1117",diffViewerColor:"#c9d1d9",addedBackground:"rgba(46, 160, 67, 0.15)",addedColor:"#3fb950",removedBackground:"rgba(248, 81, 73, 0.15)",removedColor:"#f85149",wordAddedBackground:"rgba(46, 160, 67, 0.4)",wordRemovedBackground:"rgba(248, 81, 73, 0.4)",addedGutterBackground:"rgba(46, 160, 67, 0.2)",removedGutterBackground:"rgba(248, 81, 73, 0.2)",gutterBackground:"#161b22",gutterBackgroundDark:"#0d1117",highlightBackground:"rgba(56, 139, 253, 0.15)",highlightGutterBackground:"rgba(56, 139, 253, 0.2)",codeFoldGutterBackground:"#161b22",codeFoldBackground:"#161b22",emptyLineBackground:"#0d1117",gutterColor:"#8b949e",addedGutterColor:"#3fb950",removedGutterColor:"#f85149",codeFoldContentColor:"#8b949e",diffViewerTitleBackground:"#161b22",diffViewerTitleColor:"#8b949e",diffViewerTitleBorderColor:"#30363d"}},line:{padding:"2px 10px"},contentText:{fontFamily:"'SF Mono', Monaco, Consolas, 'Liberation Mono', monospace",fontSize:"13px"},gutter:{minWidth:"40px",padding:"0 10px"}};function Ky({oldValue:l,newValue:o,splitView:s=!1,showDiffOnly:u=!0}){return!l&&!o?y.jsx("div",{className:"diff-viewer-empty",children:"No changes to display"}):y.jsx("div",{className:"diff-viewer-container",children:y.jsx(pp,{oldValue:l,newValue:o,splitView:s,useDarkTheme:!0,styles:hp,showDiffOnly:u,extraLinesSurroundingDiff:3,compareMethod:La.DiffMethod.LINES,hideLineNumbers:!1})})}function Yy({content:l}){return l?y.jsx("div",{className:"diff-viewer-container new-file",children:y.jsx(pp,{oldValue:"",newValue:l,splitView:!1,useDarkTheme:!0,styles:hp,showDiffOnly:!1,compareMethod:La.DiffMethod.LINES,hideLineNumbers:!1})}):y.jsx("div",{className:"diff-viewer-empty",children:"Cannot display file"})}function Xy({projectId:l}){const[o,s]=P.useState(null),[u,f]=P.useState(!0),[c,d]=P.useState(!1),[v,h]=P.useState(null),[g,m]=P.useState(null),[w,E]=P.useState(null),[S,T]=P.useState(!1),L=async()=>{try{const A=await Pg(l);s(A)}catch(A){console.error("Failed to load git info:",A)}finally{f(!1),d(!1)}};P.useEffect(()=>{L()},[l]);const O=()=>{d(!0),L()},C=async A=>{h(A),m(null),E(null),T(!0);try{if(A.status==="untracked"){const B=await Rg(l,A.path);B.content?E(B.content):B.isDirectory?E("(Directory)"):B.isBinary?E("(Binary file)"):B.tooLarge&&E(`(File too large: ${Math.round(B.size/1024)}KB)`)}else{const B=await Tg(l,A.path,A.staged);m({oldContent:B.oldContent,newContent:B.newContent})}}catch(B){console.error("Failed to load file diff:",B),E("(Failed to load file)")}finally{T(!1)}},D=()=>{h(null),m(null),E(null)};if(u)return y.jsxs("div",{className:"card git-panel",children:[y.jsx("div",{className:"git-panel-header",children:y.jsxs("h3",{children:[y.jsx(Pi,{size:18})," Git Status"]})}),y.jsx("div",{className:"git-loading",children:y.jsx("span",{className:"spinner"})})]});if(!(o!=null&&o.isRepo))return y.jsxs("div",{className:"card git-panel",children:[y.jsx("div",{className:"git-panel-header",children:y.jsxs("h3",{children:[y.jsx(Pi,{size:18})," Git Status"]})}),y.jsx("p",{className:"text-muted",children:"Not a git repository"})]});const z=o.changes.filter(A=>A.staged),Q=o.changes.filter(A=>!A.staged&&A.status!=="untracked"),W=o.changes.filter(A=>A.status==="untracked");return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"card git-panel",children:[y.jsxs("div",{className:"git-panel-header",children:[y.jsxs("h3",{children:[y.jsx(Pi,{size:18})," Git Status"]}),y.jsx("button",{className:"btn btn-ghost btn-icon btn-sm",onClick:O,disabled:c,title:"Refresh",children:y.jsx(pg,{size:16,className:c?"spinning":""})})]}),y.jsxs("div",{className:"git-branch-info",children:[y.jsxs("span",{className:"branch-name",children:[y.jsx(Pi,{size:14}),o.branch]}),(o.ahead>0||o.behind>0)&&y.jsxs("span",{className:"branch-sync",children:[o.ahead>0&&y.jsxs("span",{className:"ahead",title:`${o.ahead} commit(s) ahead`,children:[y.jsx(Ud,{size:12})," ",o.ahead]}),o.behind>0&&y.jsxs("span",{className:"behind",title:`${o.behind} commit(s) behind`,children:[y.jsx(rg,{size:12})," ",o.behind]})]})]}),o.changes.length===0?y.jsxs("p",{className:"git-clean",children:[y.jsx(sg,{size:14})," Working tree clean"]}):y.jsxs("div",{className:"git-changes-container",children:[z.length>0&&y.jsxs("div",{className:"git-change-group",children:[y.jsxs("div",{className:"git-change-group-header staged",children:[y.jsx(qd,{size:14}),"Staged Changes (",z.length,")"]}),z.map(A=>y.jsx(oa,{change:A,onClick:()=>C(A)},`staged-${A.path}`))]}),Q.length>0&&y.jsxs("div",{className:"git-change-group",children:[y.jsxs("div",{className:"git-change-group-header unstaged",children:[y.jsx(ca,{size:14}),"Modified (",Q.length,")"]}),Q.map(A=>y.jsx(oa,{change:A,onClick:()=>C(A)},`unstaged-${A.path}`))]}),W.length>0&&y.jsxs("div",{className:"git-change-group",children:[y.jsxs("div",{className:"git-change-group-header untracked",children:[y.jsx(Qd,{size:14}),"Untracked (",W.length,")"]}),W.map(A=>y.jsx(oa,{change:A,onClick:()=>C(A)},`untracked-${A.path}`))]})]})]}),y.jsx(Sa,{isOpen:!!v,onClose:D,large:!0,title:y.jsxs("span",{className:"diff-modal-title",children:[y.jsx(mp,{status:(v==null?void 0:v.status)||"modified"}),v==null?void 0:v.path,(v==null?void 0:v.staged)&&y.jsx("span",{className:"diff-staged-badge",children:"Staged"}),(v==null?void 0:v.status)==="untracked"&&y.jsx("span",{className:"diff-new-badge",children:"New file"})]}),footer:y.jsx("button",{className:"btn btn-secondary",onClick:D,children:"Close"}),children:S?y.jsx("div",{className:"diff-loading",children:y.jsx("span",{className:"spinner"})}):(v==null?void 0:v.status)==="untracked"?w?y.jsx(Yy,{content:w}):y.jsx("div",{className:"diff-viewer-empty",children:"Cannot display file"}):g?y.jsx(Ky,{oldValue:g.oldContent,newValue:g.newContent}):y.jsx("div",{className:"diff-viewer-empty",children:"No changes to display"})})]})}function mp({status:l}){switch(l){case"modified":return y.jsx(ca,{size:16,className:"status-modified"});case"added":return y.jsx(qd,{size:16,className:"status-added"});case"deleted":return y.jsx(og,{size:16,className:"status-deleted"});case"untracked":return y.jsx(Qd,{size:16,className:"status-untracked"});default:return y.jsx(ca,{size:16})}}function oa({change:l,onClick:o}){return y.jsxs("button",{className:`git-file-item ${l.status}`,onClick:o,children:[y.jsx(mp,{status:l.status}),y.jsx("span",{className:"file-path",children:l.path}),y.jsx(Wd,{size:14,className:"file-arrow"})]})}function Jy(){const{id:l}=iv(),o=parseInt(l,10),[s,u]=P.useState(null),[f,c]=P.useState(null),[d,v]=P.useState([]),[h,g]=P.useState(""),[m,w]=P.useState(!1),[E,S]=P.useState(!1),[T,L]=P.useState(null),O=async()=>{try{const A=(await tp()).find(B=>B.id===o);u(A||null)}catch(W){console.error("Failed to load project:",W)}},C=async()=>{try{const W=await kg(o);c(W)}catch(W){console.error("Failed to load dockerfile status:",W)}},D=async()=>{try{const W=await Cg(o);v(W)}catch(W){console.error("Failed to load tasks:",W)}};P.useEffect(()=>{O(),C(),D()},[o]);const z=async()=>{S(!0);try{const W=await Sg(o);c(W)}catch(W){console.error("Failed to generate dockerfile:",W)}finally{S(!1)}},Q=async W=>{if(W.preventDefault(),!!h.trim()){w(!0);try{const A=await Eg(o,h.trim());g(""),D(),L(A)}catch(A){console.error("Failed to create task:",A)}finally{w(!1)}}};return s?y.jsxs(y.Fragment,{children:[y.jsxs(ml,{to:"/",className:"btn btn-secondary back-button",children:[y.jsx(lg,{size:18}),"Back to Projects"]}),y.jsx("div",{className:"page-header",children:y.jsx("h2",{children:s.name})}),y.jsxs("div",{className:"card project-info-card",children:[y.jsxs("div",{className:"project-path-display",children:[y.jsx(Kd,{size:18}),y.jsx("span",{children:s.path})]}),y.jsxs("div",{className:"dockerfile-status",children:[y.jsxs("div",{className:"dockerfile-status-text",children:[y.jsx(ig,{size:18}),f!=null&&f.exists?y.jsxs(y.Fragment,{children:[y.jsx(pa,{status:"ready"}),y.jsx("span",{className:"text-success",children:"Dockerfile ready"})]}):y.jsxs(y.Fragment,{children:[y.jsx(pa,{status:"pending"}),y.jsx("span",{className:"text-warning",children:"Dockerfile not found"})]})]}),!(f!=null&&f.exists)&&y.jsx("button",{className:"btn btn-primary btn-sm",onClick:z,disabled:E,children:E?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"spinner spinner-sm"})," Generating..."]}):y.jsxs(y.Fragment,{children:[y.jsx(hg,{size:14})," Generate Dockerfile"]})})]})]}),y.jsx(Xy,{projectId:o}),y.jsxs("div",{className:"card task-form-card",children:[y.jsxs("h3",{children:[y.jsx(fa,{size:18,style:{marginRight:"0.5rem"}}),"Submit Task"]}),y.jsxs("form",{onSubmit:Q,children:[y.jsx("textarea",{className:"textarea",placeholder:"Enter your prompt for Claude Code...",value:h,onChange:W=>g(W.target.value),rows:4}),y.jsx("div",{className:"task-form-actions",children:y.jsx("button",{type:"submit",className:"btn btn-primary",disabled:!h.trim()||m,children:m?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"spinner spinner-sm"})," Submitting..."]}):y.jsxs(y.Fragment,{children:[y.jsx(fa,{size:16})," Submit Task"]})})})]})]}),y.jsxs("div",{className:"tasks-section",children:[y.jsxs("h3",{children:[y.jsx(Gd,{size:18,style:{marginRight:"0.5rem"}}),"Sessions"]}),d.length===0?y.jsx("p",{className:"text-muted",children:"No sessions yet. Submit a prompt above to get started."}):y.jsx("div",{className:"sessions-list",children:Ag(d).map(W=>y.jsx(zg,{tasks:W,onTaskClick:L},W[0].id))})]}),y.jsx(Fg,{task:T,onClose:()=>L(null),onTaskUpdate:D})]}):y.jsx("div",{style:{textAlign:"center",padding:"4rem"},children:y.jsx("span",{className:"spinner"})})}function Zy(){const{login:l}=Zd(),[o,s]=P.useState(""),[u,f]=P.useState(""),[c,d]=P.useState(null),[v,h]=P.useState(!1),g=async m=>{m.preventDefault(),d(null),h(!0);try{await l(o,u)}catch(w){d(w instanceof Error?w.message:"Login failed")}finally{h(!1)}};return y.jsx("div",{className:"login-page",children:y.jsxs("div",{className:"login-card",children:[y.jsxs("div",{className:"login-header",children:[y.jsxs("svg",{className:"login-logo",viewBox:"0 0 100 100",children:[y.jsx("defs",{children:y.jsxs("linearGradient",{id:"loginGrad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[y.jsx("stop",{offset:"0%",style:{stopColor:"#6366f1",stopOpacity:1}}),y.jsx("stop",{offset:"100%",style:{stopColor:"#8b5cf6",stopOpacity:1}})]})}),y.jsx("circle",{cx:"50",cy:"50",r:"45",fill:"url(#loginGrad)"}),y.jsx("path",{d:"M30 35 L50 25 L70 35 L70 65 L50 75 L30 65 Z",fill:"none",stroke:"white",strokeWidth:"3"}),y.jsx("path",{d:"M50 25 L50 75",stroke:"white",strokeWidth:"2"}),y.jsx("path",{d:"M30 50 L70 50",stroke:"white",strokeWidth:"2"}),y.jsx("circle",{cx:"50",cy:"50",r:"8",fill:"white"})]}),y.jsx("h1",{children:"Draken"}),y.jsx("p",{className:"login-subtitle",children:"Claude Code Dashboard"})]}),y.jsxs("form",{onSubmit:g,className:"login-form",children:[c&&y.jsxs("div",{className:"login-error",children:[y.jsx(bd,{size:16}),c]}),y.jsxs("div",{className:"form-group",children:[y.jsx("label",{htmlFor:"username",children:"Username"}),y.jsxs("div",{className:"input-with-icon",children:[y.jsx(Xd,{size:18,className:"input-icon"}),y.jsx("input",{id:"username",type:"text",className:"input",placeholder:"Enter username",value:o,onChange:m=>s(m.target.value),autoComplete:"username",autoFocus:!0})]})]}),y.jsxs("div",{className:"form-group",children:[y.jsx("label",{htmlFor:"password",children:"Password"}),y.jsxs("div",{className:"input-with-icon",children:[y.jsx(ag,{size:18,className:"input-icon"}),y.jsx("input",{id:"password",type:"password",className:"input",placeholder:"Enter password",value:u,onChange:m=>f(m.target.value),autoComplete:"current-password"})]})]}),y.jsx("button",{type:"submit",className:"btn btn-primary btn-lg login-btn",disabled:v||!o||!u,children:v?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"spinner spinner-sm"})," Signing in..."]}):y.jsxs(y.Fragment,{children:[y.jsx(ug,{size:18})," Sign In"]})})]})]})})}function e0(){const{isAuthenticated:l,isLoading:o,authEnabled:s,username:u,logout:f}=Zd();return o?y.jsxs("div",{className:"app-loading",children:[y.jsx("span",{className:"spinner"}),y.jsx("p",{children:"Loading..."})]}):l?y.jsxs("div",{className:"app-container",children:[y.jsx("header",{className:"header",children:y.jsxs("div",{className:"header-content",children:[y.jsxs(ml,{to:"/",className:"logo",children:[y.jsxs("svg",{className:"logo-icon",viewBox:"0 0 100 100",children:[y.jsx("defs",{children:y.jsxs("linearGradient",{id:"grad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[y.jsx("stop",{offset:"0%",style:{stopColor:"#6366f1",stopOpacity:1}}),y.jsx("stop",{offset:"100%",style:{stopColor:"#8b5cf6",stopOpacity:1}})]})}),y.jsx("circle",{cx:"50",cy:"50",r:"45",fill:"url(#grad)"}),y.jsx("path",{d:"M30 35 L50 25 L70 35 L70 65 L50 75 L30 65 Z",fill:"none",stroke:"white",strokeWidth:"3"}),y.jsx("path",{d:"M50 25 L50 75",stroke:"white",strokeWidth:"2"}),y.jsx("path",{d:"M30 50 L70 50",stroke:"white",strokeWidth:"2"}),y.jsx("circle",{cx:"50",cy:"50",r:"8",fill:"white"})]}),y.jsxs("div",{children:[y.jsx("div",{className:"logo-text",children:"Draken"}),y.jsx("div",{className:"logo-subtitle",children:"Claude Code Dashboard"})]})]}),s&&y.jsxs("div",{className:"header-user",children:[y.jsxs("span",{className:"user-info",children:[y.jsx(Xd,{size:16}),u]}),y.jsxs("button",{className:"btn btn-ghost btn-sm",onClick:f,children:[y.jsx(cg,{size:16}),"Sign Out"]})]})]})}),y.jsx("main",{className:"main-content",children:y.jsxs(xv,{children:[y.jsx(aa,{path:"/",element:y.jsx(Mg,{})}),y.jsx(aa,{path:"/project/:id",element:y.jsx(Jy,{})})]})})]}):y.jsx(Zy,{})}function t0(){return y.jsx(yg,{children:y.jsx(e0,{})})}km.createRoot(document.getElementById("root")).render(y.jsx(hm.StrictMode,{children:y.jsx(Wv,{children:y.jsx(t0,{})})}));