ralph-wiggum-ui 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 (79) hide show
  1. package/dist/cli/commands/add.d.ts +10 -0
  2. package/dist/cli/commands/add.d.ts.map +1 -0
  3. package/dist/cli/commands/add.js +87 -0
  4. package/dist/cli/commands/add.js.map +1 -0
  5. package/dist/cli/commands/init.d.ts +5 -0
  6. package/dist/cli/commands/init.d.ts.map +1 -0
  7. package/dist/cli/commands/init.js +91 -0
  8. package/dist/cli/commands/init.js.map +1 -0
  9. package/dist/cli/commands/list.d.ts +9 -0
  10. package/dist/cli/commands/list.d.ts.map +1 -0
  11. package/dist/cli/commands/list.js +90 -0
  12. package/dist/cli/commands/list.js.map +1 -0
  13. package/dist/cli/commands/run.d.ts +10 -0
  14. package/dist/cli/commands/run.d.ts.map +1 -0
  15. package/dist/cli/commands/run.js +200 -0
  16. package/dist/cli/commands/run.js.map +1 -0
  17. package/dist/cli/commands/serve.d.ts +10 -0
  18. package/dist/cli/commands/serve.d.ts.map +1 -0
  19. package/dist/cli/commands/serve.js +57 -0
  20. package/dist/cli/commands/serve.js.map +1 -0
  21. package/dist/cli/commands/status.d.ts +5 -0
  22. package/dist/cli/commands/status.d.ts.map +1 -0
  23. package/dist/cli/commands/status.js +63 -0
  24. package/dist/cli/commands/status.js.map +1 -0
  25. package/dist/cli/index.d.ts +6 -0
  26. package/dist/cli/index.d.ts.map +1 -0
  27. package/dist/cli/index.js +76 -0
  28. package/dist/cli/index.js.map +1 -0
  29. package/dist/lib/config.d.ts +53 -0
  30. package/dist/lib/config.d.ts.map +1 -0
  31. package/dist/lib/config.js +164 -0
  32. package/dist/lib/config.js.map +1 -0
  33. package/dist/lib/index.d.ts +11 -0
  34. package/dist/lib/index.d.ts.map +1 -0
  35. package/dist/lib/index.js +18 -0
  36. package/dist/lib/index.js.map +1 -0
  37. package/dist/lib/logger.d.ts +72 -0
  38. package/dist/lib/logger.d.ts.map +1 -0
  39. package/dist/lib/logger.js +159 -0
  40. package/dist/lib/logger.js.map +1 -0
  41. package/dist/lib/preflight.d.ts +45 -0
  42. package/dist/lib/preflight.d.ts.map +1 -0
  43. package/dist/lib/preflight.js +173 -0
  44. package/dist/lib/preflight.js.map +1 -0
  45. package/dist/lib/progress.d.ts +41 -0
  46. package/dist/lib/progress.d.ts.map +1 -0
  47. package/dist/lib/progress.js +122 -0
  48. package/dist/lib/progress.js.map +1 -0
  49. package/dist/lib/tasks.d.ts +77 -0
  50. package/dist/lib/tasks.d.ts.map +1 -0
  51. package/dist/lib/tasks.js +259 -0
  52. package/dist/lib/tasks.js.map +1 -0
  53. package/dist/lib/templates.d.ts +25 -0
  54. package/dist/lib/templates.d.ts.map +1 -0
  55. package/dist/lib/templates.js +86 -0
  56. package/dist/lib/templates.js.map +1 -0
  57. package/dist/server/api.d.ts +7 -0
  58. package/dist/server/api.d.ts.map +1 -0
  59. package/dist/server/api.js +258 -0
  60. package/dist/server/api.js.map +1 -0
  61. package/dist/server/index.d.ts +15 -0
  62. package/dist/server/index.d.ts.map +1 -0
  63. package/dist/server/index.js +59 -0
  64. package/dist/server/index.js.map +1 -0
  65. package/dist/server/runner.d.ts +15 -0
  66. package/dist/server/runner.d.ts.map +1 -0
  67. package/dist/server/runner.js +265 -0
  68. package/dist/server/runner.js.map +1 -0
  69. package/dist/types/index.d.ts +129 -0
  70. package/dist/types/index.d.ts.map +1 -0
  71. package/dist/types/index.js +37 -0
  72. package/dist/types/index.js.map +1 -0
  73. package/dist/ui/assets/index-DBOjIoHW.js +137 -0
  74. package/dist/ui/assets/index-mu6cQFl4.css +1 -0
  75. package/dist/ui/favicon.svg +3 -0
  76. package/dist/ui/index.html +14 -0
  77. package/package.json +78 -0
  78. package/templates/AGENTS.md +48 -0
  79. package/templates/prompt.md +64 -0
@@ -0,0 +1,137 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Ip(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tc={exports:{}},Mo={},Dc={exports:{}},I={};/**
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 ci=Symbol.for("react.element"),jp=Symbol.for("react.portal"),bp=Symbol.for("react.fragment"),Bp=Symbol.for("react.strict_mode"),Fp=Symbol.for("react.profiler"),Up=Symbol.for("react.provider"),$p=Symbol.for("react.context"),Vp=Symbol.for("react.forward_ref"),Hp=Symbol.for("react.suspense"),Wp=Symbol.for("react.memo"),Qp=Symbol.for("react.lazy"),ta=Symbol.iterator;function Kp(e){return e===null||typeof e!="object"?null:(e=ta&&e[ta]||e["@@iterator"],typeof e=="function"?e:null)}var Oc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lc=Object.assign,Pc={};function sr(e,t,n){this.props=e,this.context=t,this.refs=Pc,this.updater=n||Oc}sr.prototype.isReactComponent={};sr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};sr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ac(){}Ac.prototype=sr.prototype;function Ul(e,t,n){this.props=e,this.context=t,this.refs=Pc,this.updater=n||Oc}var $l=Ul.prototype=new Ac;$l.constructor=Ul;Lc($l,sr.prototype);$l.isPureReactComponent=!0;var na=Array.isArray,Mc=Object.prototype.hasOwnProperty,Vl={current:null},zc={key:!0,ref:!0,__self:!0,__source:!0};function Ic(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Mc.call(t,r)&&!zc.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var u=Array(l),a=0;a<l;a++)u[a]=arguments[a+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:ci,type:e,key:o,ref:s,props:i,_owner:Vl.current}}function Yp(e,t){return{$$typeof:ci,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Hl(e){return typeof e=="object"&&e!==null&&e.$$typeof===ci}function qp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ra=/\/+/g;function is(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qp(""+e.key):t.toString(36)}function Ui(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ci:case jp:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+is(s,0):r,na(i)?(n="",e!=null&&(n=e.replace(ra,"$&/")+"/"),Ui(i,t,n,"",function(a){return a})):i!=null&&(Hl(i)&&(i=Yp(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(ra,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",na(e))for(var l=0;l<e.length;l++){o=e[l];var u=r+is(o,l);s+=Ui(o,t,n,u,i)}else if(u=Kp(e),typeof u=="function")for(e=u.call(e),l=0;!(o=e.next()).done;)o=o.value,u=r+is(o,l++),s+=Ui(o,t,n,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function xi(e,t,n){if(e==null)return e;var r=[],i=0;return Ui(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Xp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ce={current:null},$i={transition:null},Gp={ReactCurrentDispatcher:Ce,ReactCurrentBatchConfig:$i,ReactCurrentOwner:Vl};function jc(){throw Error("act(...) is not supported in production builds of React.")}I.Children={map:xi,forEach:function(e,t,n){xi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return xi(e,function(){t++}),t},toArray:function(e){return xi(e,function(t){return t})||[]},only:function(e){if(!Hl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};I.Component=sr;I.Fragment=bp;I.Profiler=Fp;I.PureComponent=Ul;I.StrictMode=Bp;I.Suspense=Hp;I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gp;I.act=jc;I.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Lc({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Vl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)Mc.call(t,u)&&!zc.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var a=0;a<u;a++)l[a]=arguments[a+2];r.children=l}return{$$typeof:ci,type:e.type,key:i,ref:o,props:r,_owner:s}};I.createContext=function(e){return e={$$typeof:$p,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Up,_context:e},e.Consumer=e};I.createElement=Ic;I.createFactory=function(e){var t=Ic.bind(null,e);return t.type=e,t};I.createRef=function(){return{current:null}};I.forwardRef=function(e){return{$$typeof:Vp,render:e}};I.isValidElement=Hl;I.lazy=function(e){return{$$typeof:Qp,_payload:{_status:-1,_result:e},_init:Xp}};I.memo=function(e,t){return{$$typeof:Wp,type:e,compare:t===void 0?null:t}};I.startTransition=function(e){var t=$i.transition;$i.transition={};try{e()}finally{$i.transition=t}};I.unstable_act=jc;I.useCallback=function(e,t){return Ce.current.useCallback(e,t)};I.useContext=function(e){return Ce.current.useContext(e)};I.useDebugValue=function(){};I.useDeferredValue=function(e){return Ce.current.useDeferredValue(e)};I.useEffect=function(e,t){return Ce.current.useEffect(e,t)};I.useId=function(){return Ce.current.useId()};I.useImperativeHandle=function(e,t,n){return Ce.current.useImperativeHandle(e,t,n)};I.useInsertionEffect=function(e,t){return Ce.current.useInsertionEffect(e,t)};I.useLayoutEffect=function(e,t){return Ce.current.useLayoutEffect(e,t)};I.useMemo=function(e,t){return Ce.current.useMemo(e,t)};I.useReducer=function(e,t,n){return Ce.current.useReducer(e,t,n)};I.useRef=function(e){return Ce.current.useRef(e)};I.useState=function(e){return Ce.current.useState(e)};I.useSyncExternalStore=function(e,t,n){return Ce.current.useSyncExternalStore(e,t,n)};I.useTransition=function(){return Ce.current.useTransition()};I.version="18.3.1";Dc.exports=I;var v=Dc.exports;const ke=Ip(v);/**
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 Jp=v,Zp=Symbol.for("react.element"),eh=Symbol.for("react.fragment"),th=Object.prototype.hasOwnProperty,nh=Jp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rh={key:!0,ref:!0,__self:!0,__source:!0};function bc(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)th.call(t,r)&&!rh.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Zp,type:e,key:o,ref:s,props:i,_owner:nh.current}}Mo.Fragment=eh;Mo.jsx=bc;Mo.jsxs=bc;Tc.exports=Mo;var y=Tc.exports,js={},Bc={exports:{}},Ue={},Fc={exports:{}},Uc={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(O,P){var M=O.length;O.push(P);e:for(;0<M;){var H=M-1>>>1,j=O[H];if(0<i(j,P))O[H]=P,O[M]=j,M=H;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var P=O[0],M=O.pop();if(M!==P){O[0]=M;e:for(var H=0,j=O.length,Ne=j>>>1;H<Ne;){var xe=2*(H+1)-1,xt=O[xe],ee=xe+1,St=O[ee];if(0>i(xt,M))ee<j&&0>i(St,xt)?(O[H]=St,O[ee]=M,H=ee):(O[H]=xt,O[xe]=M,H=xe);else if(ee<j&&0>i(St,M))O[H]=St,O[ee]=M,H=ee;else break e}}return P}function i(O,P){var M=O.sortIndex-P.sortIndex;return M!==0?M:O.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],a=[],d=1,f=null,m=3,g=!1,S=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(O){for(var P=n(a);P!==null;){if(P.callback===null)r(a);else if(P.startTime<=O)r(a),P.sortIndex=P.expirationTime,t(u,P);else break;P=n(a)}}function w(O){if(x=!1,h(O),!S)if(n(u)!==null)S=!0,It(E);else{var P=n(a);P!==null&&ae(w,P.startTime-O)}}function E(O,P){S=!1,x&&(x=!1,p(k),k=-1),g=!0;var M=m;try{for(h(P),f=n(u);f!==null&&(!(f.expirationTime>P)||O&&!A());){var H=f.callback;if(typeof H=="function"){f.callback=null,m=f.priorityLevel;var j=H(f.expirationTime<=P);P=e.unstable_now(),typeof j=="function"?f.callback=j:f===n(u)&&r(u),h(P)}else r(u);f=n(u)}if(f!==null)var Ne=!0;else{var xe=n(a);xe!==null&&ae(w,xe.startTime-P),Ne=!1}return Ne}finally{f=null,m=M,g=!1}}var N=!1,_=null,k=-1,D=5,R=-1;function A(){return!(e.unstable_now()-R<D)}function V(){if(_!==null){var O=e.unstable_now();R=O;var P=!0;try{P=_(!0,O)}finally{P?$():(N=!1,_=null)}}else N=!1}var $;if(typeof c=="function")$=function(){c(V)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,wt=he.port2;he.port1.onmessage=V,$=function(){wt.postMessage(null)}}else $=function(){T(V,0)};function It(O){_=O,N||(N=!0,$())}function ae(O,P){k=T(function(){O(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_continueExecution=function(){S||g||(S=!0,It(E))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(O){switch(m){case 1:case 2:case 3:var P=3;break;default:P=m}var M=m;m=P;try{return O()}finally{m=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,P){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var M=m;m=O;try{return P()}finally{m=M}},e.unstable_scheduleCallback=function(O,P,M){var H=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?H+M:H):M=H,O){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=M+j,O={id:d++,callback:P,priorityLevel:O,startTime:M,expirationTime:j,sortIndex:-1},M>H?(O.sortIndex=M,t(a,O),n(u)===null&&O===n(a)&&(x?(p(k),k=-1):x=!0,ae(w,M-H))):(O.sortIndex=j,t(u,O),S||g||(S=!0,It(E))),O},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(O){var P=m;return function(){var M=m;m=P;try{return O.apply(this,arguments)}finally{m=M}}}})(Uc);Fc.exports=Uc;var ih=Fc.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 oh=v,Fe=ih;function C(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 $c=new Set,Hr={};function Cn(e,t){Zn(e,t),Zn(e+"Capture",t)}function Zn(e,t){for(Hr[e]=t,e=0;e<t.length;e++)$c.add(t[e])}var Lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bs=Object.prototype.hasOwnProperty,sh=/^[: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]*$/,ia={},oa={};function lh(e){return bs.call(oa,e)?!0:bs.call(ia,e)?!1:sh.test(e)?oa[e]=!0:(ia[e]=!0,!1)}function uh(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 ah(e,t,n,r){if(t===null||typeof t>"u"||uh(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 _e(e,t,n,r,i,o,s){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=o,this.removeEmptyString=s}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new _e(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new _e(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new _e(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new _e(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){pe[e]=new _e(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new _e(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new _e(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new _e(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new _e(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wl=/[\-:]([a-z])/g;function Ql(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(Wl,Ql);pe[t]=new _e(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(Wl,Ql);pe[t]=new _e(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(Wl,Ql);pe[t]=new _e(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new _e(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new _e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new _e(e,1,!1,e.toLowerCase(),null,!0,!0)});function Kl(e,t,n,r){var i=pe.hasOwnProperty(t)?pe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ah(t,n,i,r)&&(n=null),r||i===null?lh(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 zt=oh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Si=Symbol.for("react.element"),An=Symbol.for("react.portal"),Mn=Symbol.for("react.fragment"),Yl=Symbol.for("react.strict_mode"),Bs=Symbol.for("react.profiler"),Vc=Symbol.for("react.provider"),Hc=Symbol.for("react.context"),ql=Symbol.for("react.forward_ref"),Fs=Symbol.for("react.suspense"),Us=Symbol.for("react.suspense_list"),Xl=Symbol.for("react.memo"),Ht=Symbol.for("react.lazy"),Wc=Symbol.for("react.offscreen"),sa=Symbol.iterator;function yr(e){return e===null||typeof e!="object"?null:(e=sa&&e[sa]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,os;function Rr(e){if(os===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);os=t&&t[1]||""}return`
34
+ `+os+e}var ss=!1;function ls(e,t){if(!e||ss)return"";ss=!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(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split(`
35
+ `),o=r.stack.split(`
36
+ `),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var u=`
37
+ `+i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{ss=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Rr(e):""}function ch(e){switch(e.tag){case 5:return Rr(e.type);case 16:return Rr("Lazy");case 13:return Rr("Suspense");case 19:return Rr("SuspenseList");case 0:case 2:case 15:return e=ls(e.type,!1),e;case 11:return e=ls(e.type.render,!1),e;case 1:return e=ls(e.type,!0),e;default:return""}}function $s(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 Mn:return"Fragment";case An:return"Portal";case Bs:return"Profiler";case Yl:return"StrictMode";case Fs:return"Suspense";case Us:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hc:return(e.displayName||"Context")+".Consumer";case Vc:return(e._context.displayName||"Context")+".Provider";case ql:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xl:return t=e.displayName||null,t!==null?t:$s(e.type)||"Memo";case Ht:t=e._payload,e=e._init;try{return $s(e(t))}catch{}}return null}function fh(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 $s(t);case 8:return t===Yl?"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 ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dh(e){var t=Qc(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ki(e){e._valueTracker||(e._valueTracker=dh(e))}function Kc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function io(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 Vs(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function la(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ln(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 Yc(e,t){t=t.checked,t!=null&&Kl(e,"checked",t,!1)}function Hs(e,t){Yc(e,t);var n=ln(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")?Ws(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ws(e,t.type,ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ua(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 Ws(e,t,n){(t!=="number"||io(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Tr=Array.isArray;function Qn(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=""+ln(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 Qs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function aa(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(C(92));if(Tr(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ln(n)}}function qc(e,t){var n=ln(t.value),r=ln(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 ca(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xc(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 Ks(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ei,Gc=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(Ei=Ei||document.createElement("div"),Ei.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ei.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pr={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},ph=["Webkit","ms","Moz","O"];Object.keys(Pr).forEach(function(e){ph.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pr[t]=Pr[e]})});function Jc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pr.hasOwnProperty(e)&&Pr[e]?(""+t).trim():t+"px"}function Zc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Jc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var hh=G({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 Ys(e,t){if(t){if(hh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function qs(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 Xs=null;function Gl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gs=null,Kn=null,Yn=null;function fa(e){if(e=pi(e)){if(typeof Gs!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Bo(t),Gs(e.stateNode,e.type,t))}}function ef(e){Kn?Yn?Yn.push(e):Yn=[e]:Kn=e}function tf(){if(Kn){var e=Kn,t=Yn;if(Yn=Kn=null,fa(e),t)for(e=0;e<t.length;e++)fa(t[e])}}function nf(e,t){return e(t)}function rf(){}var us=!1;function of(e,t,n){if(us)return e(t,n);us=!0;try{return nf(e,t,n)}finally{us=!1,(Kn!==null||Yn!==null)&&(rf(),tf())}}function Qr(e,t){var n=e.stateNode;if(n===null)return null;var r=Bo(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(C(231,t,typeof n));return n}var Js=!1;if(Lt)try{var wr={};Object.defineProperty(wr,"passive",{get:function(){Js=!0}}),window.addEventListener("test",wr,wr),window.removeEventListener("test",wr,wr)}catch{Js=!1}function mh(e,t,n,r,i,o,s,l,u){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(d){this.onError(d)}}var Ar=!1,oo=null,so=!1,Zs=null,gh={onError:function(e){Ar=!0,oo=e}};function vh(e,t,n,r,i,o,s,l,u){Ar=!1,oo=null,mh.apply(gh,arguments)}function yh(e,t,n,r,i,o,s,l,u){if(vh.apply(this,arguments),Ar){if(Ar){var a=oo;Ar=!1,oo=null}else throw Error(C(198));so||(so=!0,Zs=a)}}function _n(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function sf(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 da(e){if(_n(e)!==e)throw Error(C(188))}function wh(e){var t=e.alternate;if(!t){if(t=_n(e),t===null)throw Error(C(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return da(i),e;if(o===r)return da(i),t;o=o.sibling}throw Error(C(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(C(189))}}if(n.alternate!==r)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function lf(e){return e=wh(e),e!==null?uf(e):null}function uf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=uf(e);if(t!==null)return t;e=e.sibling}return null}var af=Fe.unstable_scheduleCallback,pa=Fe.unstable_cancelCallback,xh=Fe.unstable_shouldYield,Sh=Fe.unstable_requestPaint,Z=Fe.unstable_now,kh=Fe.unstable_getCurrentPriorityLevel,Jl=Fe.unstable_ImmediatePriority,cf=Fe.unstable_UserBlockingPriority,lo=Fe.unstable_NormalPriority,Eh=Fe.unstable_LowPriority,ff=Fe.unstable_IdlePriority,zo=null,ht=null;function Ch(e){if(ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(zo,e,void 0,(e.current.flags&128)===128)}catch{}}var it=Math.clz32?Math.clz32:Rh,_h=Math.log,Nh=Math.LN2;function Rh(e){return e>>>=0,e===0?32:31-(_h(e)/Nh|0)|0}var Ci=64,_i=4194304;function Dr(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 uo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Dr(l):(o&=s,o!==0&&(r=Dr(o)))}else s=n&~i,s!==0?r=Dr(s):o!==0&&(r=Dr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-it(t),i=1<<n,r|=e[n],t&=~i;return r}function Th(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 Dh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-it(o),l=1<<s,u=i[s];u===-1?(!(l&n)||l&r)&&(i[s]=Th(l,t)):u<=t&&(e.expiredLanes|=l),o&=~l}}function el(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function df(){var e=Ci;return Ci<<=1,!(Ci&4194240)&&(Ci=64),e}function as(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-it(t),e[t]=n}function Oh(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-it(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Zl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var F=0;function pf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var hf,eu,mf,gf,vf,tl=!1,Ni=[],Gt=null,Jt=null,Zt=null,Kr=new Map,Yr=new Map,Kt=[],Lh="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 ha(e,t){switch(e){case"focusin":case"focusout":Gt=null;break;case"dragenter":case"dragleave":Jt=null;break;case"mouseover":case"mouseout":Zt=null;break;case"pointerover":case"pointerout":Kr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yr.delete(t.pointerId)}}function xr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=pi(t),t!==null&&eu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ph(e,t,n,r,i){switch(t){case"focusin":return Gt=xr(Gt,e,t,n,r,i),!0;case"dragenter":return Jt=xr(Jt,e,t,n,r,i),!0;case"mouseover":return Zt=xr(Zt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Kr.set(o,xr(Kr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Yr.set(o,xr(Yr.get(o)||null,e,t,n,r,i)),!0}return!1}function yf(e){var t=hn(e.target);if(t!==null){var n=_n(t);if(n!==null){if(t=n.tag,t===13){if(t=sf(n),t!==null){e.blockedOn=t,vf(e.priority,function(){mf(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 Vi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=nl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xs=r,n.target.dispatchEvent(r),Xs=null}else return t=pi(n),t!==null&&eu(t),e.blockedOn=n,!1;t.shift()}return!0}function ma(e,t,n){Vi(e)&&n.delete(t)}function Ah(){tl=!1,Gt!==null&&Vi(Gt)&&(Gt=null),Jt!==null&&Vi(Jt)&&(Jt=null),Zt!==null&&Vi(Zt)&&(Zt=null),Kr.forEach(ma),Yr.forEach(ma)}function Sr(e,t){e.blockedOn===t&&(e.blockedOn=null,tl||(tl=!0,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,Ah)))}function qr(e){function t(i){return Sr(i,e)}if(0<Ni.length){Sr(Ni[0],e);for(var n=1;n<Ni.length;n++){var r=Ni[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Gt!==null&&Sr(Gt,e),Jt!==null&&Sr(Jt,e),Zt!==null&&Sr(Zt,e),Kr.forEach(t),Yr.forEach(t),n=0;n<Kt.length;n++)r=Kt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Kt.length&&(n=Kt[0],n.blockedOn===null);)yf(n),n.blockedOn===null&&Kt.shift()}var qn=zt.ReactCurrentBatchConfig,ao=!0;function Mh(e,t,n,r){var i=F,o=qn.transition;qn.transition=null;try{F=1,tu(e,t,n,r)}finally{F=i,qn.transition=o}}function zh(e,t,n,r){var i=F,o=qn.transition;qn.transition=null;try{F=4,tu(e,t,n,r)}finally{F=i,qn.transition=o}}function tu(e,t,n,r){if(ao){var i=nl(e,t,n,r);if(i===null)ws(e,t,r,co,n),ha(e,r);else if(Ph(i,e,t,n,r))r.stopPropagation();else if(ha(e,r),t&4&&-1<Lh.indexOf(e)){for(;i!==null;){var o=pi(i);if(o!==null&&hf(o),o=nl(e,t,n,r),o===null&&ws(e,t,r,co,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else ws(e,t,r,null,n)}}var co=null;function nl(e,t,n,r){if(co=null,e=Gl(r),e=hn(e),e!==null)if(t=_n(e),t===null)e=null;else if(n=t.tag,n===13){if(e=sf(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 co=e,null}function wf(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(kh()){case Jl:return 1;case cf:return 4;case lo:case Eh:return 16;case ff:return 536870912;default:return 16}default:return 16}}var qt=null,nu=null,Hi=null;function xf(){if(Hi)return Hi;var e,t=nu,n=t.length,r,i="value"in qt?qt.value:qt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Hi=i.slice(e,1<r?1-r:void 0)}function Wi(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 Ri(){return!0}function ga(){return!1}function $e(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ri:ga,this.isPropagationStopped=ga,this}return G(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=Ri)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ri)},persist:function(){},isPersistent:Ri}),t}var lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ru=$e(lr),di=G({},lr,{view:0,detail:0}),Ih=$e(di),cs,fs,kr,Io=G({},di,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:iu,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!==kr&&(kr&&e.type==="mousemove"?(cs=e.screenX-kr.screenX,fs=e.screenY-kr.screenY):fs=cs=0,kr=e),cs)},movementY:function(e){return"movementY"in e?e.movementY:fs}}),va=$e(Io),jh=G({},Io,{dataTransfer:0}),bh=$e(jh),Bh=G({},di,{relatedTarget:0}),ds=$e(Bh),Fh=G({},lr,{animationName:0,elapsedTime:0,pseudoElement:0}),Uh=$e(Fh),$h=G({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vh=$e($h),Hh=G({},lr,{data:0}),ya=$e(Hh),Wh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qh={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"},Kh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kh[e])?!!t[e]:!1}function iu(){return Yh}var qh=G({},di,{key:function(e){if(e.key){var t=Wh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:iu,charCode:function(e){return e.type==="keypress"?Wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Xh=$e(qh),Gh=G({},Io,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wa=$e(Gh),Jh=G({},di,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:iu}),Zh=$e(Jh),em=G({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0}),tm=$e(em),nm=G({},Io,{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}),rm=$e(nm),im=[9,13,27,32],ou=Lt&&"CompositionEvent"in window,Mr=null;Lt&&"documentMode"in document&&(Mr=document.documentMode);var om=Lt&&"TextEvent"in window&&!Mr,Sf=Lt&&(!ou||Mr&&8<Mr&&11>=Mr),xa=" ",Sa=!1;function kf(e,t){switch(e){case"keyup":return im.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ef(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zn=!1;function sm(e,t){switch(e){case"compositionend":return Ef(t);case"keypress":return t.which!==32?null:(Sa=!0,xa);case"textInput":return e=t.data,e===xa&&Sa?null:e;default:return null}}function lm(e,t){if(zn)return e==="compositionend"||!ou&&kf(e,t)?(e=xf(),Hi=nu=qt=null,zn=!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 Sf&&t.locale!=="ko"?null:t.data;default:return null}}var um={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 ka(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!um[e.type]:t==="textarea"}function Cf(e,t,n,r){ef(r),t=fo(t,"onChange"),0<t.length&&(n=new ru("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var zr=null,Xr=null;function am(e){zf(e,0)}function jo(e){var t=bn(e);if(Kc(t))return e}function cm(e,t){if(e==="change")return t}var _f=!1;if(Lt){var ps;if(Lt){var hs="oninput"in document;if(!hs){var Ea=document.createElement("div");Ea.setAttribute("oninput","return;"),hs=typeof Ea.oninput=="function"}ps=hs}else ps=!1;_f=ps&&(!document.documentMode||9<document.documentMode)}function Ca(){zr&&(zr.detachEvent("onpropertychange",Nf),Xr=zr=null)}function Nf(e){if(e.propertyName==="value"&&jo(Xr)){var t=[];Cf(t,Xr,e,Gl(e)),of(am,t)}}function fm(e,t,n){e==="focusin"?(Ca(),zr=t,Xr=n,zr.attachEvent("onpropertychange",Nf)):e==="focusout"&&Ca()}function dm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return jo(Xr)}function pm(e,t){if(e==="click")return jo(t)}function hm(e,t){if(e==="input"||e==="change")return jo(t)}function mm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var st=typeof Object.is=="function"?Object.is:mm;function Gr(e,t){if(st(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(!bs.call(t,i)||!st(e[i],t[i]))return!1}return!0}function _a(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Na(e,t){var n=_a(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=_a(n)}}function Rf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tf(){for(var e=window,t=io();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=io(e.document)}return t}function su(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 gm(e){var t=Tf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rf(n.ownerDocument.documentElement,n)){if(r!==null&&su(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,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Na(n,o);var s=Na(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 vm=Lt&&"documentMode"in document&&11>=document.documentMode,In=null,rl=null,Ir=null,il=!1;function Ra(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;il||In==null||In!==io(r)||(r=In,"selectionStart"in r&&su(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}),Ir&&Gr(Ir,r)||(Ir=r,r=fo(rl,"onSelect"),0<r.length&&(t=new ru("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=In)))}function Ti(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var jn={animationend:Ti("Animation","AnimationEnd"),animationiteration:Ti("Animation","AnimationIteration"),animationstart:Ti("Animation","AnimationStart"),transitionend:Ti("Transition","TransitionEnd")},ms={},Df={};Lt&&(Df=document.createElement("div").style,"AnimationEvent"in window||(delete jn.animationend.animation,delete jn.animationiteration.animation,delete jn.animationstart.animation),"TransitionEvent"in window||delete jn.transitionend.transition);function bo(e){if(ms[e])return ms[e];if(!jn[e])return e;var t=jn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Df)return ms[e]=t[n];return e}var Of=bo("animationend"),Lf=bo("animationiteration"),Pf=bo("animationstart"),Af=bo("transitionend"),Mf=new Map,Ta="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 an(e,t){Mf.set(e,t),Cn(t,[e])}for(var gs=0;gs<Ta.length;gs++){var vs=Ta[gs],ym=vs.toLowerCase(),wm=vs[0].toUpperCase()+vs.slice(1);an(ym,"on"+wm)}an(Of,"onAnimationEnd");an(Lf,"onAnimationIteration");an(Pf,"onAnimationStart");an("dblclick","onDoubleClick");an("focusin","onFocus");an("focusout","onBlur");an(Af,"onTransitionEnd");Zn("onMouseEnter",["mouseout","mouseover"]);Zn("onMouseLeave",["mouseout","mouseover"]);Zn("onPointerEnter",["pointerout","pointerover"]);Zn("onPointerLeave",["pointerout","pointerover"]);Cn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Cn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Cn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Cn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Cn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Cn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="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(" "),xm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Da(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,yh(r,t,void 0,e),e.currentTarget=null}function zf(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 o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],u=l.instance,a=l.currentTarget;if(l=l.listener,u!==o&&i.isPropagationStopped())break e;Da(i,l,a),o=u}else for(s=0;s<r.length;s++){if(l=r[s],u=l.instance,a=l.currentTarget,l=l.listener,u!==o&&i.isPropagationStopped())break e;Da(i,l,a),o=u}}}if(so)throw e=Zs,so=!1,Zs=null,e}function Q(e,t){var n=t[al];n===void 0&&(n=t[al]=new Set);var r=e+"__bubble";n.has(r)||(If(t,e,2,!1),n.add(r))}function ys(e,t,n){var r=0;t&&(r|=4),If(n,e,r,t)}var Di="_reactListening"+Math.random().toString(36).slice(2);function Jr(e){if(!e[Di]){e[Di]=!0,$c.forEach(function(n){n!=="selectionchange"&&(xm.has(n)||ys(n,!1,e),ys(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Di]||(t[Di]=!0,ys("selectionchange",!1,t))}}function If(e,t,n,r){switch(wf(t)){case 1:var i=Mh;break;case 4:i=zh;break;default:i=tu}n=i.bind(null,t,n,e),i=void 0,!Js||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 ws(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;s=s.return}for(;l!==null;){if(s=hn(l),s===null)return;if(u=s.tag,u===5||u===6){r=o=s;continue e}l=l.parentNode}}r=r.return}of(function(){var a=o,d=Gl(n),f=[];e:{var m=Mf.get(e);if(m!==void 0){var g=ru,S=e;switch(e){case"keypress":if(Wi(n)===0)break e;case"keydown":case"keyup":g=Xh;break;case"focusin":S="focus",g=ds;break;case"focusout":S="blur",g=ds;break;case"beforeblur":case"afterblur":g=ds;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":g=va;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=bh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Zh;break;case Of:case Lf:case Pf:g=Uh;break;case Af:g=tm;break;case"scroll":g=Ih;break;case"wheel":g=rm;break;case"copy":case"cut":case"paste":g=Vh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=wa}var x=(t&4)!==0,T=!x&&e==="scroll",p=x?m!==null?m+"Capture":null:m;x=[];for(var c=a,h;c!==null;){h=c;var w=h.stateNode;if(h.tag===5&&w!==null&&(h=w,p!==null&&(w=Qr(c,p),w!=null&&x.push(Zr(c,w,h)))),T)break;c=c.return}0<x.length&&(m=new g(m,S,null,n,d),f.push({event:m,listeners:x}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",m&&n!==Xs&&(S=n.relatedTarget||n.fromElement)&&(hn(S)||S[Pt]))break e;if((g||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,g?(S=n.relatedTarget||n.toElement,g=a,S=S?hn(S):null,S!==null&&(T=_n(S),S!==T||S.tag!==5&&S.tag!==6)&&(S=null)):(g=null,S=a),g!==S)){if(x=va,w="onMouseLeave",p="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(x=wa,w="onPointerLeave",p="onPointerEnter",c="pointer"),T=g==null?m:bn(g),h=S==null?m:bn(S),m=new x(w,c+"leave",g,n,d),m.target=T,m.relatedTarget=h,w=null,hn(d)===a&&(x=new x(p,c+"enter",S,n,d),x.target=h,x.relatedTarget=T,w=x),T=w,g&&S)t:{for(x=g,p=S,c=0,h=x;h;h=Pn(h))c++;for(h=0,w=p;w;w=Pn(w))h++;for(;0<c-h;)x=Pn(x),c--;for(;0<h-c;)p=Pn(p),h--;for(;c--;){if(x===p||p!==null&&x===p.alternate)break t;x=Pn(x),p=Pn(p)}x=null}else x=null;g!==null&&Oa(f,m,g,x,!1),S!==null&&T!==null&&Oa(f,T,S,x,!0)}}e:{if(m=a?bn(a):window,g=m.nodeName&&m.nodeName.toLowerCase(),g==="select"||g==="input"&&m.type==="file")var E=cm;else if(ka(m))if(_f)E=hm;else{E=dm;var N=fm}else(g=m.nodeName)&&g.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(E=pm);if(E&&(E=E(e,a))){Cf(f,E,n,d);break e}N&&N(e,m,a),e==="focusout"&&(N=m._wrapperState)&&N.controlled&&m.type==="number"&&Ws(m,"number",m.value)}switch(N=a?bn(a):window,e){case"focusin":(ka(N)||N.contentEditable==="true")&&(In=N,rl=a,Ir=null);break;case"focusout":Ir=rl=In=null;break;case"mousedown":il=!0;break;case"contextmenu":case"mouseup":case"dragend":il=!1,Ra(f,n,d);break;case"selectionchange":if(vm)break;case"keydown":case"keyup":Ra(f,n,d)}var _;if(ou)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else zn?kf(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(Sf&&n.locale!=="ko"&&(zn||k!=="onCompositionStart"?k==="onCompositionEnd"&&zn&&(_=xf()):(qt=d,nu="value"in qt?qt.value:qt.textContent,zn=!0)),N=fo(a,k),0<N.length&&(k=new ya(k,e,null,n,d),f.push({event:k,listeners:N}),_?k.data=_:(_=Ef(n),_!==null&&(k.data=_)))),(_=om?sm(e,n):lm(e,n))&&(a=fo(a,"onBeforeInput"),0<a.length&&(d=new ya("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:a}),d.data=_))}zf(f,t)})}function Zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Qr(e,n),o!=null&&r.unshift(Zr(e,o,i)),o=Qr(e,t),o!=null&&r.push(Zr(e,o,i))),e=e.return}return r}function Pn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Oa(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,u=l.alternate,a=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&a!==null&&(l=a,i?(u=Qr(n,o),u!=null&&s.unshift(Zr(n,u,l))):i||(u=Qr(n,o),u!=null&&s.push(Zr(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Sm=/\r\n?/g,km=/\u0000|\uFFFD/g;function La(e){return(typeof e=="string"?e:""+e).replace(Sm,`
38
+ `).replace(km,"")}function Oi(e,t,n){if(t=La(t),La(e)!==t&&n)throw Error(C(425))}function po(){}var ol=null,sl=null;function ll(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 ul=typeof setTimeout=="function"?setTimeout:void 0,Em=typeof clearTimeout=="function"?clearTimeout:void 0,Pa=typeof Promise=="function"?Promise:void 0,Cm=typeof queueMicrotask=="function"?queueMicrotask:typeof Pa<"u"?function(e){return Pa.resolve(null).then(e).catch(_m)}:ul;function _m(e){setTimeout(function(){throw e})}function xs(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),qr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);qr(t)}function en(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 Aa(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 ur=Math.random().toString(36).slice(2),pt="__reactFiber$"+ur,ei="__reactProps$"+ur,Pt="__reactContainer$"+ur,al="__reactEvents$"+ur,Nm="__reactListeners$"+ur,Rm="__reactHandles$"+ur;function hn(e){var t=e[pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pt]||n[pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Aa(e);e!==null;){if(n=e[pt])return n;e=Aa(e)}return t}e=n,n=e.parentNode}return null}function pi(e){return e=e[pt]||e[Pt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Bo(e){return e[ei]||null}var cl=[],Bn=-1;function cn(e){return{current:e}}function K(e){0>Bn||(e.current=cl[Bn],cl[Bn]=null,Bn--)}function W(e,t){Bn++,cl[Bn]=e.current,e.current=t}var un={},we=cn(un),De=cn(!1),wn=un;function er(e,t){var n=e.type.contextTypes;if(!n)return un;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oe(e){return e=e.childContextTypes,e!=null}function ho(){K(De),K(we)}function Ma(e,t,n){if(we.current!==un)throw Error(C(168));W(we,t),W(De,n)}function jf(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(C(108,fh(e)||"Unknown",i));return G({},n,r)}function mo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||un,wn=we.current,W(we,e),W(De,De.current),!0}function za(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=jf(e,t,wn),r.__reactInternalMemoizedMergedChildContext=e,K(De),K(we),W(we,e)):K(De),W(De,n)}var Nt=null,Fo=!1,Ss=!1;function bf(e){Nt===null?Nt=[e]:Nt.push(e)}function Tm(e){Fo=!0,bf(e)}function fn(){if(!Ss&&Nt!==null){Ss=!0;var e=0,t=F;try{var n=Nt;for(F=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Nt=null,Fo=!1}catch(i){throw Nt!==null&&(Nt=Nt.slice(e+1)),af(Jl,fn),i}finally{F=t,Ss=!1}}return null}var Fn=[],Un=0,go=null,vo=0,We=[],Qe=0,xn=null,Tt=1,Dt="";function dn(e,t){Fn[Un++]=vo,Fn[Un++]=go,go=e,vo=t}function Bf(e,t,n){We[Qe++]=Tt,We[Qe++]=Dt,We[Qe++]=xn,xn=e;var r=Tt;e=Dt;var i=32-it(r)-1;r&=~(1<<i),n+=1;var o=32-it(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Tt=1<<32-it(t)+i|n<<i|r,Dt=o+e}else Tt=1<<o|n<<i|r,Dt=e}function lu(e){e.return!==null&&(dn(e,1),Bf(e,1,0))}function uu(e){for(;e===go;)go=Fn[--Un],Fn[Un]=null,vo=Fn[--Un],Fn[Un]=null;for(;e===xn;)xn=We[--Qe],We[Qe]=null,Dt=We[--Qe],We[Qe]=null,Tt=We[--Qe],We[Qe]=null}var Be=null,be=null,Y=!1,rt=null;function Ff(e,t){var n=Ye(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 Ia(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,Be=e,be=en(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Be=e,be=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=xn!==null?{id:Tt,overflow:Dt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ye(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Be=e,be=null,!0):!1;default:return!1}}function fl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function dl(e){if(Y){var t=be;if(t){var n=t;if(!Ia(e,t)){if(fl(e))throw Error(C(418));t=en(n.nextSibling);var r=Be;t&&Ia(e,t)?Ff(r,n):(e.flags=e.flags&-4097|2,Y=!1,Be=e)}}else{if(fl(e))throw Error(C(418));e.flags=e.flags&-4097|2,Y=!1,Be=e}}}function ja(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Be=e}function Li(e){if(e!==Be)return!1;if(!Y)return ja(e),Y=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ll(e.type,e.memoizedProps)),t&&(t=be)){if(fl(e))throw Uf(),Error(C(418));for(;t;)Ff(e,t),t=en(t.nextSibling)}if(ja(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){be=en(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}be=null}}else be=Be?en(e.stateNode.nextSibling):null;return!0}function Uf(){for(var e=be;e;)e=en(e.nextSibling)}function tr(){be=Be=null,Y=!1}function au(e){rt===null?rt=[e]:rt.push(e)}var Dm=zt.ReactCurrentBatchConfig;function Er(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(C(309));var r=n.stateNode}if(!r)throw Error(C(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(C(284));if(!n._owner)throw Error(C(290,e))}return e}function Pi(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ba(e){var t=e._init;return t(e._payload)}function $f(e){function t(p,c){if(e){var h=p.deletions;h===null?(p.deletions=[c],p.flags|=16):h.push(c)}}function n(p,c){if(!e)return null;for(;c!==null;)t(p,c),c=c.sibling;return null}function r(p,c){for(p=new Map;c!==null;)c.key!==null?p.set(c.key,c):p.set(c.index,c),c=c.sibling;return p}function i(p,c){return p=on(p,c),p.index=0,p.sibling=null,p}function o(p,c,h){return p.index=h,e?(h=p.alternate,h!==null?(h=h.index,h<c?(p.flags|=2,c):h):(p.flags|=2,c)):(p.flags|=1048576,c)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function l(p,c,h,w){return c===null||c.tag!==6?(c=Ts(h,p.mode,w),c.return=p,c):(c=i(c,h),c.return=p,c)}function u(p,c,h,w){var E=h.type;return E===Mn?d(p,c,h.props.children,w,h.key):c!==null&&(c.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ht&&ba(E)===c.type)?(w=i(c,h.props),w.ref=Er(p,c,h),w.return=p,w):(w=Ji(h.type,h.key,h.props,null,p.mode,w),w.ref=Er(p,c,h),w.return=p,w)}function a(p,c,h,w){return c===null||c.tag!==4||c.stateNode.containerInfo!==h.containerInfo||c.stateNode.implementation!==h.implementation?(c=Ds(h,p.mode,w),c.return=p,c):(c=i(c,h.children||[]),c.return=p,c)}function d(p,c,h,w,E){return c===null||c.tag!==7?(c=yn(h,p.mode,w,E),c.return=p,c):(c=i(c,h),c.return=p,c)}function f(p,c,h){if(typeof c=="string"&&c!==""||typeof c=="number")return c=Ts(""+c,p.mode,h),c.return=p,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Si:return h=Ji(c.type,c.key,c.props,null,p.mode,h),h.ref=Er(p,null,c),h.return=p,h;case An:return c=Ds(c,p.mode,h),c.return=p,c;case Ht:var w=c._init;return f(p,w(c._payload),h)}if(Tr(c)||yr(c))return c=yn(c,p.mode,h,null),c.return=p,c;Pi(p,c)}return null}function m(p,c,h,w){var E=c!==null?c.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return E!==null?null:l(p,c,""+h,w);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Si:return h.key===E?u(p,c,h,w):null;case An:return h.key===E?a(p,c,h,w):null;case Ht:return E=h._init,m(p,c,E(h._payload),w)}if(Tr(h)||yr(h))return E!==null?null:d(p,c,h,w,null);Pi(p,h)}return null}function g(p,c,h,w,E){if(typeof w=="string"&&w!==""||typeof w=="number")return p=p.get(h)||null,l(c,p,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Si:return p=p.get(w.key===null?h:w.key)||null,u(c,p,w,E);case An:return p=p.get(w.key===null?h:w.key)||null,a(c,p,w,E);case Ht:var N=w._init;return g(p,c,h,N(w._payload),E)}if(Tr(w)||yr(w))return p=p.get(h)||null,d(c,p,w,E,null);Pi(c,w)}return null}function S(p,c,h,w){for(var E=null,N=null,_=c,k=c=0,D=null;_!==null&&k<h.length;k++){_.index>k?(D=_,_=null):D=_.sibling;var R=m(p,_,h[k],w);if(R===null){_===null&&(_=D);break}e&&_&&R.alternate===null&&t(p,_),c=o(R,c,k),N===null?E=R:N.sibling=R,N=R,_=D}if(k===h.length)return n(p,_),Y&&dn(p,k),E;if(_===null){for(;k<h.length;k++)_=f(p,h[k],w),_!==null&&(c=o(_,c,k),N===null?E=_:N.sibling=_,N=_);return Y&&dn(p,k),E}for(_=r(p,_);k<h.length;k++)D=g(_,p,k,h[k],w),D!==null&&(e&&D.alternate!==null&&_.delete(D.key===null?k:D.key),c=o(D,c,k),N===null?E=D:N.sibling=D,N=D);return e&&_.forEach(function(A){return t(p,A)}),Y&&dn(p,k),E}function x(p,c,h,w){var E=yr(h);if(typeof E!="function")throw Error(C(150));if(h=E.call(h),h==null)throw Error(C(151));for(var N=E=null,_=c,k=c=0,D=null,R=h.next();_!==null&&!R.done;k++,R=h.next()){_.index>k?(D=_,_=null):D=_.sibling;var A=m(p,_,R.value,w);if(A===null){_===null&&(_=D);break}e&&_&&A.alternate===null&&t(p,_),c=o(A,c,k),N===null?E=A:N.sibling=A,N=A,_=D}if(R.done)return n(p,_),Y&&dn(p,k),E;if(_===null){for(;!R.done;k++,R=h.next())R=f(p,R.value,w),R!==null&&(c=o(R,c,k),N===null?E=R:N.sibling=R,N=R);return Y&&dn(p,k),E}for(_=r(p,_);!R.done;k++,R=h.next())R=g(_,p,k,R.value,w),R!==null&&(e&&R.alternate!==null&&_.delete(R.key===null?k:R.key),c=o(R,c,k),N===null?E=R:N.sibling=R,N=R);return e&&_.forEach(function(V){return t(p,V)}),Y&&dn(p,k),E}function T(p,c,h,w){if(typeof h=="object"&&h!==null&&h.type===Mn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Si:e:{for(var E=h.key,N=c;N!==null;){if(N.key===E){if(E=h.type,E===Mn){if(N.tag===7){n(p,N.sibling),c=i(N,h.props.children),c.return=p,p=c;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ht&&ba(E)===N.type){n(p,N.sibling),c=i(N,h.props),c.ref=Er(p,N,h),c.return=p,p=c;break e}n(p,N);break}else t(p,N);N=N.sibling}h.type===Mn?(c=yn(h.props.children,p.mode,w,h.key),c.return=p,p=c):(w=Ji(h.type,h.key,h.props,null,p.mode,w),w.ref=Er(p,c,h),w.return=p,p=w)}return s(p);case An:e:{for(N=h.key;c!==null;){if(c.key===N)if(c.tag===4&&c.stateNode.containerInfo===h.containerInfo&&c.stateNode.implementation===h.implementation){n(p,c.sibling),c=i(c,h.children||[]),c.return=p,p=c;break e}else{n(p,c);break}else t(p,c);c=c.sibling}c=Ds(h,p.mode,w),c.return=p,p=c}return s(p);case Ht:return N=h._init,T(p,c,N(h._payload),w)}if(Tr(h))return S(p,c,h,w);if(yr(h))return x(p,c,h,w);Pi(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,c!==null&&c.tag===6?(n(p,c.sibling),c=i(c,h),c.return=p,p=c):(n(p,c),c=Ts(h,p.mode,w),c.return=p,p=c),s(p)):n(p,c)}return T}var nr=$f(!0),Vf=$f(!1),yo=cn(null),wo=null,$n=null,cu=null;function fu(){cu=$n=wo=null}function du(e){var t=yo.current;K(yo),e._currentValue=t}function pl(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 Xn(e,t){wo=e,cu=$n=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Te=!0),e.firstContext=null)}function Xe(e){var t=e._currentValue;if(cu!==e)if(e={context:e,memoizedValue:t,next:null},$n===null){if(wo===null)throw Error(C(308));$n=e,wo.dependencies={lanes:0,firstContext:e}}else $n=$n.next=e;return t}var mn=null;function pu(e){mn===null?mn=[e]:mn.push(e)}function Hf(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,pu(t)):(n.next=i.next,i.next=n),t.interleaved=n,At(e,r)}function At(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 Wt=!1;function hu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wf(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 Ot(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,b&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,At(e,n)}return i=r.interleaved,i===null?(t.next=t,pu(r)):(t.next=i.next,i.next=t),r.interleaved=t,At(e,n)}function Qi(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,Zl(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 xo(e,t,n,r){var i=e.updateQueue;Wt=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,a=u.next;u.next=null,s===null?o=a:s.next=a,s=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=a:l.next=a,d.lastBaseUpdate=u))}if(o!==null){var f=i.baseState;s=0,d=a=u=null,l=o;do{var m=l.lane,g=l.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,x=l;switch(m=t,g=n,x.tag){case 1:if(S=x.payload,typeof S=="function"){f=S.call(g,f,m);break e}f=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=x.payload,m=typeof S=="function"?S.call(g,f,m):S,m==null)break e;f=G({},f,m);break e;case 2:Wt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else g={eventTime:g,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(a=d=g,u=f):d=d.next=g,s|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(d===null&&(u=f),i.baseState=u,i.firstBaseUpdate=a,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);kn|=s,e.lanes=s,e.memoizedState=f}}function Fa(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(C(191,i));i.call(r)}}}var hi={},mt=cn(hi),ti=cn(hi),ni=cn(hi);function gn(e){if(e===hi)throw Error(C(174));return e}function mu(e,t){switch(W(ni,t),W(ti,e),W(mt,hi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ks(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ks(t,e)}K(mt),W(mt,t)}function rr(){K(mt),K(ti),K(ni)}function Qf(e){gn(ni.current);var t=gn(mt.current),n=Ks(t,e.type);t!==n&&(W(ti,e),W(mt,n))}function gu(e){ti.current===e&&(K(mt),K(ti))}var q=cn(0);function So(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ks=[];function vu(){for(var e=0;e<ks.length;e++)ks[e]._workInProgressVersionPrimary=null;ks.length=0}var Ki=zt.ReactCurrentDispatcher,Es=zt.ReactCurrentBatchConfig,Sn=0,X=null,re=null,se=null,ko=!1,jr=!1,ri=0,Om=0;function ge(){throw Error(C(321))}function yu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!st(e[n],t[n]))return!1;return!0}function wu(e,t,n,r,i,o){if(Sn=o,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ki.current=e===null||e.memoizedState===null?Mm:zm,e=n(r,i),jr){o=0;do{if(jr=!1,ri=0,25<=o)throw Error(C(301));o+=1,se=re=null,t.updateQueue=null,Ki.current=Im,e=n(r,i)}while(jr)}if(Ki.current=Eo,t=re!==null&&re.next!==null,Sn=0,se=re=X=null,ko=!1,t)throw Error(C(300));return e}function xu(){var e=ri!==0;return ri=0,e}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return se===null?X.memoizedState=se=e:se=se.next=e,se}function Ge(){if(re===null){var e=X.alternate;e=e!==null?e.memoizedState:null}else e=re.next;var t=se===null?X.memoizedState:se.next;if(t!==null)se=t,re=e;else{if(e===null)throw Error(C(310));re=e,e={memoizedState:re.memoizedState,baseState:re.baseState,baseQueue:re.baseQueue,queue:re.queue,next:null},se===null?X.memoizedState=se=e:se=se.next=e}return se}function ii(e,t){return typeof t=="function"?t(e):t}function Cs(e){var t=Ge(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=re,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,u=null,a=o;do{var d=a.lane;if((Sn&d)===d)u!==null&&(u=u.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var f={lane:d,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};u===null?(l=u=f,s=r):u=u.next=f,X.lanes|=d,kn|=d}a=a.next}while(a!==null&&a!==o);u===null?s=r:u.next=l,st(r,t.memoizedState)||(Te=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,X.lanes|=o,kn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _s(e){var t=Ge(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);st(o,t.memoizedState)||(Te=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Kf(){}function Yf(e,t){var n=X,r=Ge(),i=t(),o=!st(r.memoizedState,i);if(o&&(r.memoizedState=i,Te=!0),r=r.queue,Su(Gf.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||se!==null&&se.memoizedState.tag&1){if(n.flags|=2048,oi(9,Xf.bind(null,n,r,i,t),void 0,null),ue===null)throw Error(C(349));Sn&30||qf(n,t,i)}return i}function qf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Xf(e,t,n,r){t.value=n,t.getSnapshot=r,Jf(t)&&Zf(e)}function Gf(e,t,n){return n(function(){Jf(t)&&Zf(e)})}function Jf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!st(e,n)}catch{return!0}}function Zf(e){var t=At(e,1);t!==null&&ot(t,e,1,-1)}function Ua(e){var t=dt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:e},t.queue=e,e=e.dispatch=Am.bind(null,X,e),[t.memoizedState,e]}function oi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.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 ed(){return Ge().memoizedState}function Yi(e,t,n,r){var i=dt();X.flags|=e,i.memoizedState=oi(1|t,n,void 0,r===void 0?null:r)}function Uo(e,t,n,r){var i=Ge();r=r===void 0?null:r;var o=void 0;if(re!==null){var s=re.memoizedState;if(o=s.destroy,r!==null&&yu(r,s.deps)){i.memoizedState=oi(t,n,o,r);return}}X.flags|=e,i.memoizedState=oi(1|t,n,o,r)}function $a(e,t){return Yi(8390656,8,e,t)}function Su(e,t){return Uo(2048,8,e,t)}function td(e,t){return Uo(4,2,e,t)}function nd(e,t){return Uo(4,4,e,t)}function rd(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 id(e,t,n){return n=n!=null?n.concat([e]):null,Uo(4,4,rd.bind(null,t,e),n)}function ku(){}function od(e,t){var n=Ge();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&yu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function sd(e,t){var n=Ge();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&yu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ld(e,t,n){return Sn&21?(st(n,t)||(n=df(),X.lanes|=n,kn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Te=!0),e.memoizedState=n)}function Lm(e,t){var n=F;F=n!==0&&4>n?n:4,e(!0);var r=Es.transition;Es.transition={};try{e(!1),t()}finally{F=n,Es.transition=r}}function ud(){return Ge().memoizedState}function Pm(e,t,n){var r=rn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ad(e))cd(t,n);else if(n=Hf(e,t,n,r),n!==null){var i=Ee();ot(n,e,r,i),fd(n,t,r)}}function Am(e,t,n){var r=rn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ad(e))cd(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,st(l,s)){var u=t.interleaved;u===null?(i.next=i,pu(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Hf(e,t,i,r),n!==null&&(i=Ee(),ot(n,e,r,i),fd(n,t,r))}}function ad(e){var t=e.alternate;return e===X||t!==null&&t===X}function cd(e,t){jr=ko=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zl(e,n)}}var Eo={readContext:Xe,useCallback:ge,useContext:ge,useEffect:ge,useImperativeHandle:ge,useInsertionEffect:ge,useLayoutEffect:ge,useMemo:ge,useReducer:ge,useRef:ge,useState:ge,useDebugValue:ge,useDeferredValue:ge,useTransition:ge,useMutableSource:ge,useSyncExternalStore:ge,useId:ge,unstable_isNewReconciler:!1},Mm={readContext:Xe,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:Xe,useEffect:$a,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yi(4194308,4,rd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yi(4,2,e,t)},useMemo:function(e,t){var n=dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=dt();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=Pm.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:Ua,useDebugValue:ku,useDeferredValue:function(e){return dt().memoizedState=e},useTransition:function(){var e=Ua(!1),t=e[0];return e=Lm.bind(null,e[1]),dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,i=dt();if(Y){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ue===null)throw Error(C(349));Sn&30||qf(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,$a(Gf.bind(null,r,o,e),[e]),r.flags|=2048,oi(9,Xf.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=dt(),t=ue.identifierPrefix;if(Y){var n=Dt,r=Tt;n=(r&~(1<<32-it(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ri++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Om++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zm={readContext:Xe,useCallback:od,useContext:Xe,useEffect:Su,useImperativeHandle:id,useInsertionEffect:td,useLayoutEffect:nd,useMemo:sd,useReducer:Cs,useRef:ed,useState:function(){return Cs(ii)},useDebugValue:ku,useDeferredValue:function(e){var t=Ge();return ld(t,re.memoizedState,e)},useTransition:function(){var e=Cs(ii)[0],t=Ge().memoizedState;return[e,t]},useMutableSource:Kf,useSyncExternalStore:Yf,useId:ud,unstable_isNewReconciler:!1},Im={readContext:Xe,useCallback:od,useContext:Xe,useEffect:Su,useImperativeHandle:id,useInsertionEffect:td,useLayoutEffect:nd,useMemo:sd,useReducer:_s,useRef:ed,useState:function(){return _s(ii)},useDebugValue:ku,useDeferredValue:function(e){var t=Ge();return re===null?t.memoizedState=e:ld(t,re.memoizedState,e)},useTransition:function(){var e=_s(ii)[0],t=Ge().memoizedState;return[e,t]},useMutableSource:Kf,useSyncExternalStore:Yf,useId:ud,unstable_isNewReconciler:!1};function et(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function hl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:G({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $o={isMounted:function(e){return(e=e._reactInternals)?_n(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ee(),i=rn(e),o=Ot(r,i);o.payload=t,n!=null&&(o.callback=n),t=tn(e,o,i),t!==null&&(ot(t,e,i,r),Qi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ee(),i=rn(e),o=Ot(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=tn(e,o,i),t!==null&&(ot(t,e,i,r),Qi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ee(),r=rn(e),i=Ot(n,r);i.tag=2,t!=null&&(i.callback=t),t=tn(e,i,r),t!==null&&(ot(t,e,r,n),Qi(t,e,r))}};function Va(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Gr(n,r)||!Gr(i,o):!0}function dd(e,t,n){var r=!1,i=un,o=t.contextType;return typeof o=="object"&&o!==null?o=Xe(o):(i=Oe(t)?wn:we.current,r=t.contextTypes,o=(r=r!=null)?er(e,i):un),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=$o,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ha(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&&$o.enqueueReplaceState(t,t.state,null)}function ml(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},hu(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Xe(o):(o=Oe(t)?wn:we.current,i.context=er(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(hl(e,t,o,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&&$o.enqueueReplaceState(i,i.state,null),xo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ir(e,t){try{var n="",r=t;do n+=ch(r),r=r.return;while(r);var i=n}catch(o){i=`
39
+ Error generating stack: `+o.message+`
40
+ `+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ns(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var jm=typeof WeakMap=="function"?WeakMap:Map;function pd(e,t,n){n=Ot(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_o||(_o=!0,Nl=r),gl(e,t)},n}function hd(e,t,n){n=Ot(-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(){gl(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){gl(e,t),typeof r!="function"&&(nn===null?nn=new Set([this]):nn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Wa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jm;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=Gm.bind(null,e,t,n),t.then(e,e))}function Qa(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 Ka(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ot(-1,1),t.tag=2,tn(n,t,1))),n.lanes|=1),e)}var bm=zt.ReactCurrentOwner,Te=!1;function Se(e,t,n,r){t.child=e===null?Vf(t,null,n,r):nr(t,e.child,n,r)}function Ya(e,t,n,r,i){n=n.render;var o=t.ref;return Xn(t,i),r=wu(e,t,n,r,o,i),n=xu(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Mt(e,t,i)):(Y&&n&&lu(t),t.flags|=1,Se(e,t,r,i),t.child)}function qa(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ou(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,md(e,t,o,r,i)):(e=Ji(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Gr,n(s,r)&&e.ref===t.ref)return Mt(e,t,i)}return t.flags|=1,e=on(o,r),e.ref=t.ref,e.return=t,t.child=e}function md(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Gr(o,r)&&e.ref===t.ref)if(Te=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Te=!0);else return t.lanes=e.lanes,Mt(e,t,i)}return vl(e,t,n,r,i)}function gd(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},W(Hn,je),je|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,W(Hn,je),je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,W(Hn,je),je|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,W(Hn,je),je|=r;return Se(e,t,i,n),t.child}function vd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function vl(e,t,n,r,i){var o=Oe(n)?wn:we.current;return o=er(t,o),Xn(t,i),n=wu(e,t,n,r,o,i),r=xu(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Mt(e,t,i)):(Y&&r&&lu(t),t.flags|=1,Se(e,t,n,i),t.child)}function Xa(e,t,n,r,i){if(Oe(n)){var o=!0;mo(t)}else o=!1;if(Xn(t,i),t.stateNode===null)qi(e,t),dd(t,n,r),ml(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,a=n.contextType;typeof a=="object"&&a!==null?a=Xe(a):(a=Oe(n)?wn:we.current,a=er(t,a));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==a)&&Ha(t,s,r,a),Wt=!1;var m=t.memoizedState;s.state=m,xo(t,r,s,i),u=t.memoizedState,l!==r||m!==u||De.current||Wt?(typeof d=="function"&&(hl(t,n,d,r),u=t.memoizedState),(l=Wt||Va(t,n,l,r,m,u,a))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=a,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Wf(e,t),l=t.memoizedProps,a=t.type===t.elementType?l:et(t.type,l),s.props=a,f=t.pendingProps,m=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=Xe(u):(u=Oe(n)?wn:we.current,u=er(t,u));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||m!==u)&&Ha(t,s,r,u),Wt=!1,m=t.memoizedState,s.state=m,xo(t,r,s,i);var S=t.memoizedState;l!==f||m!==S||De.current||Wt?(typeof g=="function"&&(hl(t,n,g,r),S=t.memoizedState),(a=Wt||Va(t,n,a,r,m,S,u)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,S,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,S,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),s.props=r,s.state=S,s.context=u,r=a):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return yl(e,t,n,r,o,i)}function yl(e,t,n,r,i,o){vd(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&za(t,n,!1),Mt(e,t,o);r=t.stateNode,bm.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=nr(t,e.child,null,o),t.child=nr(t,null,l,o)):Se(e,t,l,o),t.memoizedState=r.state,i&&za(t,n,!0),t.child}function yd(e){var t=e.stateNode;t.pendingContext?Ma(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ma(e,t.context,!1),mu(e,t.containerInfo)}function Ga(e,t,n,r,i){return tr(),au(i),t.flags|=256,Se(e,t,n,r),t.child}var wl={dehydrated:null,treeContext:null,retryLane:0};function xl(e){return{baseLanes:e,cachePool:null,transitions:null}}function wd(e,t,n){var r=t.pendingProps,i=q.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),W(q,i&1),e===null)return dl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Wo(s,r,0,null),e=yn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=xl(n),t.memoizedState=wl,e):Eu(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Bm(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=on(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=on(l,o):(o=yn(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?xl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=wl,r}return o=e.child,e=o.sibling,r=on(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Eu(e,t){return t=Wo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ai(e,t,n,r){return r!==null&&au(r),nr(t,e.child,null,n),e=Eu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bm(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Ns(Error(C(422))),Ai(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Wo({mode:"visible",children:r.children},i,0,null),o=yn(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&nr(t,e.child,null,s),t.child.memoizedState=xl(s),t.memoizedState=wl,o);if(!(t.mode&1))return Ai(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(C(419)),r=Ns(o,r,void 0),Ai(e,t,s,r)}if(l=(s&e.childLanes)!==0,Te||l){if(r=ue,r!==null){switch(s&-s){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|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,At(e,i),ot(r,e,i,-1))}return Du(),r=Ns(Error(C(421))),Ai(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Jm.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,be=en(i.nextSibling),Be=t,Y=!0,rt=null,e!==null&&(We[Qe++]=Tt,We[Qe++]=Dt,We[Qe++]=xn,Tt=e.id,Dt=e.overflow,xn=t),t=Eu(t,r.children),t.flags|=4096,t)}function Ja(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),pl(e.return,t,n)}function Rs(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function xd(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Se(e,t,r.children,n),r=q.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ja(e,n,t);else if(e.tag===19)Ja(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(W(q,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&So(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Rs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&So(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Rs(t,!0,n,null,o);break;case"together":Rs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Mt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=on(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=on(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Fm(e,t,n){switch(t.tag){case 3:yd(t),tr();break;case 5:Qf(t);break;case 1:Oe(t.type)&&mo(t);break;case 4:mu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;W(yo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(W(q,q.current&1),t.flags|=128,null):n&t.child.childLanes?wd(e,t,n):(W(q,q.current&1),e=Mt(e,t,n),e!==null?e.sibling:null);W(q,q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),W(q,q.current),r)break;return null;case 22:case 23:return t.lanes=0,gd(e,t,n)}return Mt(e,t,n)}var Sd,Sl,kd,Ed;Sd=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}};Sl=function(){};kd=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,gn(mt.current);var o=null;switch(n){case"input":i=Vs(e,i),r=Vs(e,r),o=[];break;case"select":i=G({},i,{value:void 0}),r=G({},r,{value:void 0}),o=[];break;case"textarea":i=Qs(e,i),r=Qs(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=po)}Ys(n,r);var s;n=null;for(a in i)if(!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&i[a]!=null)if(a==="style"){var l=i[a];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Hr.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var u=r[a];if(l=i!=null?i[a]:void 0,r.hasOwnProperty(a)&&u!==l&&(u!=null||l!=null))if(a==="style")if(l){for(s in l)!l.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&l[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(o||(o=[]),o.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(o=o||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Hr.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&Q("scroll",e),o||l===u||(o=[])):(o=o||[]).push(a,u))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}};Ed=function(e,t,n,r){n!==r&&(t.flags|=4)};function Cr(e,t){if(!Y)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 ve(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 Um(e,t,n){var r=t.pendingProps;switch(uu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ve(t),null;case 1:return Oe(t.type)&&ho(),ve(t),null;case 3:return r=t.stateNode,rr(),K(De),K(we),vu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Li(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,rt!==null&&(Dl(rt),rt=null))),Sl(e,t),ve(t),null;case 5:gu(t);var i=gn(ni.current);if(n=t.type,e!==null&&t.stateNode!=null)kd(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return ve(t),null}if(e=gn(mt.current),Li(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[pt]=t,r[ei]=o,e=(t.mode&1)!==0,n){case"dialog":Q("cancel",r),Q("close",r);break;case"iframe":case"object":case"embed":Q("load",r);break;case"video":case"audio":for(i=0;i<Or.length;i++)Q(Or[i],r);break;case"source":Q("error",r);break;case"img":case"image":case"link":Q("error",r),Q("load",r);break;case"details":Q("toggle",r);break;case"input":la(r,o),Q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Q("invalid",r);break;case"textarea":aa(r,o),Q("invalid",r)}Ys(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&Oi(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Oi(r.textContent,l,e),i=["children",""+l]):Hr.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Q("scroll",r)}switch(n){case"input":ki(r),ua(r,o,!0);break;case"textarea":ki(r),ca(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=po)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[pt]=t,e[ei]=r,Sd(e,t,!1,!1),t.stateNode=e;e:{switch(s=qs(n,r),n){case"dialog":Q("cancel",e),Q("close",e),i=r;break;case"iframe":case"object":case"embed":Q("load",e),i=r;break;case"video":case"audio":for(i=0;i<Or.length;i++)Q(Or[i],e);i=r;break;case"source":Q("error",e),i=r;break;case"img":case"image":case"link":Q("error",e),Q("load",e),i=r;break;case"details":Q("toggle",e),i=r;break;case"input":la(e,r),i=Vs(e,r),Q("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=G({},r,{value:void 0}),Q("invalid",e);break;case"textarea":aa(e,r),i=Qs(e,r),Q("invalid",e);break;default:i=r}Ys(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="style"?Zc(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Gc(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Wr(e,u):typeof u=="number"&&Wr(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Hr.hasOwnProperty(o)?u!=null&&o==="onScroll"&&Q("scroll",e):u!=null&&Kl(e,o,u,s))}switch(n){case"input":ki(e),ua(e,r,!1);break;case"textarea":ki(e),ca(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ln(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Qn(e,!!r.multiple,o,!1):r.defaultValue!=null&&Qn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=po)}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 ve(t),null;case 6:if(e&&t.stateNode!=null)Ed(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=gn(ni.current),gn(mt.current),Li(t)){if(r=t.stateNode,n=t.memoizedProps,r[pt]=t,(o=r.nodeValue!==n)&&(e=Be,e!==null))switch(e.tag){case 3:Oi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Oi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[pt]=t,t.stateNode=r}return ve(t),null;case 13:if(K(q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Y&&be!==null&&t.mode&1&&!(t.flags&128))Uf(),tr(),t.flags|=98560,o=!1;else if(o=Li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(C(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(C(317));o[pt]=t}else tr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ve(t),o=!1}else rt!==null&&(Dl(rt),rt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||q.current&1?oe===0&&(oe=3):Du())),t.updateQueue!==null&&(t.flags|=4),ve(t),null);case 4:return rr(),Sl(e,t),e===null&&Jr(t.stateNode.containerInfo),ve(t),null;case 10:return du(t.type._context),ve(t),null;case 17:return Oe(t.type)&&ho(),ve(t),null;case 19:if(K(q),o=t.memoizedState,o===null)return ve(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Cr(o,!1);else{if(oe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=So(e),s!==null){for(t.flags|=128,Cr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return W(q,q.current&1|2),t.child}e=e.sibling}o.tail!==null&&Z()>or&&(t.flags|=128,r=!0,Cr(o,!1),t.lanes=4194304)}else{if(!r)if(e=So(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Cr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Y)return ve(t),null}else 2*Z()-o.renderingStartTime>or&&n!==1073741824&&(t.flags|=128,r=!0,Cr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Z(),t.sibling=null,n=q.current,W(q,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return Tu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?je&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function $m(e,t){switch(uu(t),t.tag){case 1:return Oe(t.type)&&ho(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rr(),K(De),K(we),vu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gu(t),null;case 13:if(K(q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));tr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(q),null;case 4:return rr(),null;case 10:return du(t.type._context),null;case 22:case 23:return Tu(),null;case 24:return null;default:return null}}var Mi=!1,ye=!1,Vm=typeof WeakSet=="function"?WeakSet:Set,L=null;function Vn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function kl(e,t,n){try{n()}catch(r){J(e,t,r)}}var Za=!1;function Hm(e,t){if(ol=ao,e=Tf(),su(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,a=0,d=0,f=e,m=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(u=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++a===i&&(l=s),m===o&&++d===r&&(u=s),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(sl={focusedElem:e,selectionRange:n},ao=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var x=S.memoizedProps,T=S.memoizedState,p=t.stateNode,c=p.getSnapshotBeforeUpdate(t.elementType===t.type?x:et(t.type,x),T);p.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(w){J(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return S=Za,Za=!1,S}function br(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 o=i.destroy;i.destroy=void 0,o!==void 0&&kl(t,n,o)}i=i.next}while(i!==r)}}function Vo(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 El(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 Cd(e){var t=e.alternate;t!==null&&(e.alternate=null,Cd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pt],delete t[ei],delete t[al],delete t[Nm],delete t[Rm])),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 _d(e){return e.tag===5||e.tag===3||e.tag===4}function ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_d(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 Cl(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=po));else if(r!==4&&(e=e.child,e!==null))for(Cl(e,t,n),e=e.sibling;e!==null;)Cl(e,t,n),e=e.sibling}function _l(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(_l(e,t,n),e=e.sibling;e!==null;)_l(e,t,n),e=e.sibling}var fe=null,tt=!1;function Vt(e,t,n){for(n=n.child;n!==null;)Nd(e,t,n),n=n.sibling}function Nd(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(zo,n)}catch{}switch(n.tag){case 5:ye||Vn(n,t);case 6:var r=fe,i=tt;fe=null,Vt(e,t,n),fe=r,tt=i,fe!==null&&(tt?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(tt?(e=fe,n=n.stateNode,e.nodeType===8?xs(e.parentNode,n):e.nodeType===1&&xs(e,n),qr(e)):xs(fe,n.stateNode));break;case 4:r=fe,i=tt,fe=n.stateNode.containerInfo,tt=!0,Vt(e,t,n),fe=r,tt=i;break;case 0:case 11:case 14:case 15:if(!ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&kl(n,t,s),i=i.next}while(i!==r)}Vt(e,t,n);break;case 1:if(!ye&&(Vn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){J(n,t,l)}Vt(e,t,n);break;case 21:Vt(e,t,n);break;case 22:n.mode&1?(ye=(r=ye)||n.memoizedState!==null,Vt(e,t,n),ye=r):Vt(e,t,n);break;default:Vt(e,t,n)}}function tc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vm),t.forEach(function(r){var i=Zm.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Je(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:fe=l.stateNode,tt=!1;break e;case 3:fe=l.stateNode.containerInfo,tt=!0;break e;case 4:fe=l.stateNode.containerInfo,tt=!0;break e}l=l.return}if(fe===null)throw Error(C(160));Nd(o,s,i),fe=null,tt=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(a){J(i,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Rd(t,e),t=t.sibling}function Rd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Je(t,e),ft(e),r&4){try{br(3,e,e.return),Vo(3,e)}catch(x){J(e,e.return,x)}try{br(5,e,e.return)}catch(x){J(e,e.return,x)}}break;case 1:Je(t,e),ft(e),r&512&&n!==null&&Vn(n,n.return);break;case 5:if(Je(t,e),ft(e),r&512&&n!==null&&Vn(n,n.return),e.flags&32){var i=e.stateNode;try{Wr(i,"")}catch(x){J(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&Yc(i,o),qs(l,s);var a=qs(l,o);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];d==="style"?Zc(i,f):d==="dangerouslySetInnerHTML"?Gc(i,f):d==="children"?Wr(i,f):Kl(i,d,f,a)}switch(l){case"input":Hs(i,o);break;case"textarea":qc(i,o);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?Qn(i,!!o.multiple,g,!1):m!==!!o.multiple&&(o.defaultValue!=null?Qn(i,!!o.multiple,o.defaultValue,!0):Qn(i,!!o.multiple,o.multiple?[]:"",!1))}i[ei]=o}catch(x){J(e,e.return,x)}}break;case 6:if(Je(t,e),ft(e),r&4){if(e.stateNode===null)throw Error(C(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(x){J(e,e.return,x)}}break;case 3:if(Je(t,e),ft(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{qr(t.containerInfo)}catch(x){J(e,e.return,x)}break;case 4:Je(t,e),ft(e);break;case 13:Je(t,e),ft(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Nu=Z())),r&4&&tc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(ye=(a=ye)||d,Je(t,e),ye=a):Je(t,e),ft(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!d&&e.mode&1)for(L=e,d=e.child;d!==null;){for(f=L=d;L!==null;){switch(m=L,g=m.child,m.tag){case 0:case 11:case 14:case 15:br(4,m,m.return);break;case 1:Vn(m,m.return);var S=m.stateNode;if(typeof S.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(x){J(r,n,x)}}break;case 5:Vn(m,m.return);break;case 22:if(m.memoizedState!==null){rc(f);continue}}g!==null?(g.return=m,L=g):rc(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{i=f.stateNode,a?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=f.stateNode,u=f.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=Jc("display",s))}catch(x){J(e,e.return,x)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=a?"":f.memoizedProps}catch(x){J(e,e.return,x)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Je(t,e),ft(e),r&4&&tc(e);break;case 21:break;default:Je(t,e),ft(e)}}function ft(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(_d(n)){var r=n;break e}n=n.return}throw Error(C(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Wr(i,""),r.flags&=-33);var o=ec(e);_l(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=ec(e);Cl(e,l,s);break;default:throw Error(C(161))}}catch(u){J(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wm(e,t,n){L=e,Td(e)}function Td(e,t,n){for(var r=(e.mode&1)!==0;L!==null;){var i=L,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Mi;if(!s){var l=i.alternate,u=l!==null&&l.memoizedState!==null||ye;l=Mi;var a=ye;if(Mi=s,(ye=u)&&!a)for(L=i;L!==null;)s=L,u=s.child,s.tag===22&&s.memoizedState!==null?ic(i):u!==null?(u.return=s,L=u):ic(i);for(;o!==null;)L=o,Td(o),o=o.sibling;L=i,Mi=l,ye=a}nc(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,L=o):nc(e)}}function nc(e){for(;L!==null;){var t=L;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ye||Vo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ye)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:et(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Fa(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Fa(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var d=a.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&qr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}ye||t.flags&512&&El(t)}catch(m){J(t,t.return,m)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function rc(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function ic(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Vo(4,t)}catch(u){J(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){J(t,i,u)}}var o=t.return;try{El(t)}catch(u){J(t,o,u)}break;case 5:var s=t.return;try{El(t)}catch(u){J(t,s,u)}}}catch(u){J(t,t.return,u)}if(t===e){L=null;break}var l=t.sibling;if(l!==null){l.return=t.return,L=l;break}L=t.return}}var Qm=Math.ceil,Co=zt.ReactCurrentDispatcher,Cu=zt.ReactCurrentOwner,qe=zt.ReactCurrentBatchConfig,b=0,ue=null,te=null,de=0,je=0,Hn=cn(0),oe=0,si=null,kn=0,Ho=0,_u=0,Br=null,Re=null,Nu=0,or=1/0,_t=null,_o=!1,Nl=null,nn=null,zi=!1,Xt=null,No=0,Fr=0,Rl=null,Xi=-1,Gi=0;function Ee(){return b&6?Z():Xi!==-1?Xi:Xi=Z()}function rn(e){return e.mode&1?b&2&&de!==0?de&-de:Dm.transition!==null?(Gi===0&&(Gi=df()),Gi):(e=F,e!==0||(e=window.event,e=e===void 0?16:wf(e.type)),e):1}function ot(e,t,n,r){if(50<Fr)throw Fr=0,Rl=null,Error(C(185));fi(e,n,r),(!(b&2)||e!==ue)&&(e===ue&&(!(b&2)&&(Ho|=n),oe===4&&Yt(e,de)),Le(e,r),n===1&&b===0&&!(t.mode&1)&&(or=Z()+500,Fo&&fn()))}function Le(e,t){var n=e.callbackNode;Dh(e,t);var r=uo(e,e===ue?de:0);if(r===0)n!==null&&pa(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&pa(n),t===1)e.tag===0?Tm(oc.bind(null,e)):bf(oc.bind(null,e)),Cm(function(){!(b&6)&&fn()}),n=null;else{switch(pf(r)){case 1:n=Jl;break;case 4:n=cf;break;case 16:n=lo;break;case 536870912:n=ff;break;default:n=lo}n=Id(n,Dd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Dd(e,t){if(Xi=-1,Gi=0,b&6)throw Error(C(327));var n=e.callbackNode;if(Gn()&&e.callbackNode!==n)return null;var r=uo(e,e===ue?de:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ro(e,r);else{t=r;var i=b;b|=2;var o=Ld();(ue!==e||de!==t)&&(_t=null,or=Z()+500,vn(e,t));do try{qm();break}catch(l){Od(e,l)}while(!0);fu(),Co.current=o,b=i,te!==null?t=0:(ue=null,de=0,t=oe)}if(t!==0){if(t===2&&(i=el(e),i!==0&&(r=i,t=Tl(e,i))),t===1)throw n=si,vn(e,0),Yt(e,r),Le(e,Z()),n;if(t===6)Yt(e,r);else{if(i=e.current.alternate,!(r&30)&&!Km(i)&&(t=Ro(e,r),t===2&&(o=el(e),o!==0&&(r=o,t=Tl(e,o))),t===1))throw n=si,vn(e,0),Yt(e,r),Le(e,Z()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(C(345));case 2:pn(e,Re,_t);break;case 3:if(Yt(e,r),(r&130023424)===r&&(t=Nu+500-Z(),10<t)){if(uo(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ee(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ul(pn.bind(null,e,Re,_t),t);break}pn(e,Re,_t);break;case 4:if(Yt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-it(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qm(r/1960))-r,10<r){e.timeoutHandle=ul(pn.bind(null,e,Re,_t),r);break}pn(e,Re,_t);break;case 5:pn(e,Re,_t);break;default:throw Error(C(329))}}}return Le(e,Z()),e.callbackNode===n?Dd.bind(null,e):null}function Tl(e,t){var n=Br;return e.current.memoizedState.isDehydrated&&(vn(e,t).flags|=256),e=Ro(e,t),e!==2&&(t=Re,Re=n,t!==null&&Dl(t)),e}function Dl(e){Re===null?Re=e:Re.push.apply(Re,e)}function Km(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],o=i.getSnapshot;i=i.value;try{if(!st(o(),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 Yt(e,t){for(t&=~_u,t&=~Ho,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function oc(e){if(b&6)throw Error(C(327));Gn();var t=uo(e,0);if(!(t&1))return Le(e,Z()),null;var n=Ro(e,t);if(e.tag!==0&&n===2){var r=el(e);r!==0&&(t=r,n=Tl(e,r))}if(n===1)throw n=si,vn(e,0),Yt(e,t),Le(e,Z()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pn(e,Re,_t),Le(e,Z()),null}function Ru(e,t){var n=b;b|=1;try{return e(t)}finally{b=n,b===0&&(or=Z()+500,Fo&&fn())}}function En(e){Xt!==null&&Xt.tag===0&&!(b&6)&&Gn();var t=b;b|=1;var n=qe.transition,r=F;try{if(qe.transition=null,F=1,e)return e()}finally{F=r,qe.transition=n,b=t,!(b&6)&&fn()}}function Tu(){je=Hn.current,K(Hn)}function vn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Em(n)),te!==null)for(n=te.return;n!==null;){var r=n;switch(uu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ho();break;case 3:rr(),K(De),K(we),vu();break;case 5:gu(r);break;case 4:rr();break;case 13:K(q);break;case 19:K(q);break;case 10:du(r.type._context);break;case 22:case 23:Tu()}n=n.return}if(ue=e,te=e=on(e.current,null),de=je=t,oe=0,si=null,_u=Ho=kn=0,Re=Br=null,mn!==null){for(t=0;t<mn.length;t++)if(n=mn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}mn=null}return e}function Od(e,t){do{var n=te;try{if(fu(),Ki.current=Eo,ko){for(var r=X.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ko=!1}if(Sn=0,se=re=X=null,jr=!1,ri=0,Cu.current=null,n===null||n.return===null){oe=1,si=t,te=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=de,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var a=u,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=Qa(s);if(g!==null){g.flags&=-257,Ka(g,s,l,o,t),g.mode&1&&Wa(o,a,t),t=g,u=a;var S=t.updateQueue;if(S===null){var x=new Set;x.add(u),t.updateQueue=x}else S.add(u);break e}else{if(!(t&1)){Wa(o,a,t),Du();break e}u=Error(C(426))}}else if(Y&&l.mode&1){var T=Qa(s);if(T!==null){!(T.flags&65536)&&(T.flags|=256),Ka(T,s,l,o,t),au(ir(u,l));break e}}o=u=ir(u,l),oe!==4&&(oe=2),Br===null?Br=[o]:Br.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=pd(o,u,t);Ba(o,p);break e;case 1:l=u;var c=o.type,h=o.stateNode;if(!(o.flags&128)&&(typeof c.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(nn===null||!nn.has(h)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=hd(o,l,t);Ba(o,w);break e}}o=o.return}while(o!==null)}Ad(n)}catch(E){t=E,te===n&&n!==null&&(te=n=n.return);continue}break}while(!0)}function Ld(){var e=Co.current;return Co.current=Eo,e===null?Eo:e}function Du(){(oe===0||oe===3||oe===2)&&(oe=4),ue===null||!(kn&268435455)&&!(Ho&268435455)||Yt(ue,de)}function Ro(e,t){var n=b;b|=2;var r=Ld();(ue!==e||de!==t)&&(_t=null,vn(e,t));do try{Ym();break}catch(i){Od(e,i)}while(!0);if(fu(),b=n,Co.current=r,te!==null)throw Error(C(261));return ue=null,de=0,oe}function Ym(){for(;te!==null;)Pd(te)}function qm(){for(;te!==null&&!xh();)Pd(te)}function Pd(e){var t=zd(e.alternate,e,je);e.memoizedProps=e.pendingProps,t===null?Ad(e):te=t,Cu.current=null}function Ad(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=$m(n,t),n!==null){n.flags&=32767,te=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{oe=6,te=null;return}}else if(n=Um(n,t,je),n!==null){te=n;return}if(t=t.sibling,t!==null){te=t;return}te=t=e}while(t!==null);oe===0&&(oe=5)}function pn(e,t,n){var r=F,i=qe.transition;try{qe.transition=null,F=1,Xm(e,t,n,r)}finally{qe.transition=i,F=r}return null}function Xm(e,t,n,r){do Gn();while(Xt!==null);if(b&6)throw Error(C(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(C(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Oh(e,o),e===ue&&(te=ue=null,de=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||zi||(zi=!0,Id(lo,function(){return Gn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=qe.transition,qe.transition=null;var s=F;F=1;var l=b;b|=4,Cu.current=null,Hm(e,n),Rd(n,e),gm(sl),ao=!!ol,sl=ol=null,e.current=n,Wm(n),Sh(),b=l,F=s,qe.transition=o}else e.current=n;if(zi&&(zi=!1,Xt=e,No=i),o=e.pendingLanes,o===0&&(nn=null),Ch(n.stateNode),Le(e,Z()),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(_o)throw _o=!1,e=Nl,Nl=null,e;return No&1&&e.tag!==0&&Gn(),o=e.pendingLanes,o&1?e===Rl?Fr++:(Fr=0,Rl=e):Fr=0,fn(),null}function Gn(){if(Xt!==null){var e=pf(No),t=qe.transition,n=F;try{if(qe.transition=null,F=16>e?16:e,Xt===null)var r=!1;else{if(e=Xt,Xt=null,No=0,b&6)throw Error(C(331));var i=b;for(b|=4,L=e.current;L!==null;){var o=L,s=o.child;if(L.flags&16){var l=o.deletions;if(l!==null){for(var u=0;u<l.length;u++){var a=l[u];for(L=a;L!==null;){var d=L;switch(d.tag){case 0:case 11:case 15:br(8,d,o)}var f=d.child;if(f!==null)f.return=d,L=f;else for(;L!==null;){d=L;var m=d.sibling,g=d.return;if(Cd(d),d===a){L=null;break}if(m!==null){m.return=g,L=m;break}L=g}}}var S=o.alternate;if(S!==null){var x=S.child;if(x!==null){S.child=null;do{var T=x.sibling;x.sibling=null,x=T}while(x!==null)}}L=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,L=s;else e:for(;L!==null;){if(o=L,o.flags&2048)switch(o.tag){case 0:case 11:case 15:br(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,L=p;break e}L=o.return}}var c=e.current;for(L=c;L!==null;){s=L;var h=s.child;if(s.subtreeFlags&2064&&h!==null)h.return=s,L=h;else e:for(s=c;L!==null;){if(l=L,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Vo(9,l)}}catch(E){J(l,l.return,E)}if(l===s){L=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,L=w;break e}L=l.return}}if(b=i,fn(),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(zo,e)}catch{}r=!0}return r}finally{F=n,qe.transition=t}}return!1}function sc(e,t,n){t=ir(n,t),t=pd(e,t,1),e=tn(e,t,1),t=Ee(),e!==null&&(fi(e,1,t),Le(e,t))}function J(e,t,n){if(e.tag===3)sc(e,e,n);else for(;t!==null;){if(t.tag===3){sc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(nn===null||!nn.has(r))){e=ir(n,e),e=hd(t,e,1),t=tn(t,e,1),e=Ee(),t!==null&&(fi(t,1,e),Le(t,e));break}}t=t.return}}function Gm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ee(),e.pingedLanes|=e.suspendedLanes&n,ue===e&&(de&n)===n&&(oe===4||oe===3&&(de&130023424)===de&&500>Z()-Nu?vn(e,0):_u|=n),Le(e,t)}function Md(e,t){t===0&&(e.mode&1?(t=_i,_i<<=1,!(_i&130023424)&&(_i=4194304)):t=1);var n=Ee();e=At(e,t),e!==null&&(fi(e,t,n),Le(e,n))}function Jm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Md(e,n)}function Zm(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(C(314))}r!==null&&r.delete(t),Md(e,n)}var zd;zd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||De.current)Te=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Te=!1,Fm(e,t,n);Te=!!(e.flags&131072)}else Te=!1,Y&&t.flags&1048576&&Bf(t,vo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qi(e,t),e=t.pendingProps;var i=er(t,we.current);Xn(t,n),i=wu(null,t,r,e,i,n);var o=xu();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,Oe(r)?(o=!0,mo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,hu(t),i.updater=$o,t.stateNode=i,i._reactInternals=t,ml(t,r,e,n),t=yl(null,t,r,!0,o,n)):(t.tag=0,Y&&o&&lu(t),Se(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=tg(r),e=et(r,e),i){case 0:t=vl(null,t,r,e,n);break e;case 1:t=Xa(null,t,r,e,n);break e;case 11:t=Ya(null,t,r,e,n);break e;case 14:t=qa(null,t,r,et(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),vl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Xa(e,t,r,i,n);case 3:e:{if(yd(t),e===null)throw Error(C(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Wf(e,t),xo(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ir(Error(C(423)),t),t=Ga(e,t,r,n,i);break e}else if(r!==i){i=ir(Error(C(424)),t),t=Ga(e,t,r,n,i);break e}else for(be=en(t.stateNode.containerInfo.firstChild),Be=t,Y=!0,rt=null,n=Vf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tr(),r===i){t=Mt(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return Qf(t),e===null&&dl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,ll(r,i)?s=null:o!==null&&ll(r,o)&&(t.flags|=32),vd(e,t),Se(e,t,s,n),t.child;case 6:return e===null&&dl(t),null;case 13:return wd(e,t,n);case 4:return mu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=nr(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Ya(e,t,r,i,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,W(yo,r._currentValue),r._currentValue=s,o!==null)if(st(o.value,s)){if(o.children===i.children&&!De.current){t=Mt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Ot(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?u.next=u:(u.next=d.next,d.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),pl(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(C(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),pl(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Se(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Xn(t,n),i=Xe(i),r=r(i),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,i=et(r,t.pendingProps),i=et(r.type,i),qa(e,t,r,i,n);case 15:return md(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),qi(e,t),t.tag=1,Oe(r)?(e=!0,mo(t)):e=!1,Xn(t,n),dd(t,r,i),ml(t,r,i,n),yl(null,t,r,!0,e,n);case 19:return xd(e,t,n);case 22:return gd(e,t,n)}throw Error(C(156,t.tag))};function Id(e,t){return af(e,t)}function eg(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 Ye(e,t,n,r){return new eg(e,t,n,r)}function Ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tg(e){if(typeof e=="function")return Ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ql)return 11;if(e===Xl)return 14}return 2}function on(e,t){var n=e.alternate;return n===null?(n=Ye(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 Ji(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Ou(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Mn:return yn(n.children,i,o,t);case Yl:s=8,i|=8;break;case Bs:return e=Ye(12,n,t,i|2),e.elementType=Bs,e.lanes=o,e;case Fs:return e=Ye(13,n,t,i),e.elementType=Fs,e.lanes=o,e;case Us:return e=Ye(19,n,t,i),e.elementType=Us,e.lanes=o,e;case Wc:return Wo(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vc:s=10;break e;case Hc:s=9;break e;case ql:s=11;break e;case Xl:s=14;break e;case Ht:s=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Ye(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function yn(e,t,n,r){return e=Ye(7,e,r,t),e.lanes=n,e}function Wo(e,t,n,r){return e=Ye(22,e,r,t),e.elementType=Wc,e.lanes=n,e.stateNode={isHidden:!1},e}function Ts(e,t,n){return e=Ye(6,e,null,t),e.lanes=n,e}function Ds(e,t,n){return t=Ye(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ng(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=as(0),this.expirationTimes=as(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=as(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Lu(e,t,n,r,i,o,s,l,u){return e=new ng(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ye(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hu(o),e}function rg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:An,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function jd(e){if(!e)return un;e=e._reactInternals;e:{if(_n(e)!==e||e.tag!==1)throw Error(C(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(C(171))}if(e.tag===1){var n=e.type;if(Oe(n))return jf(e,n,t)}return t}function bd(e,t,n,r,i,o,s,l,u){return e=Lu(n,r,!0,e,i,o,s,l,u),e.context=jd(null),n=e.current,r=Ee(),i=rn(n),o=Ot(r,i),o.callback=t??null,tn(n,o,i),e.current.lanes=i,fi(e,i,r),Le(e,r),e}function Qo(e,t,n,r){var i=t.current,o=Ee(),s=rn(i);return n=jd(n),t.context===null?t.context=n:t.pendingContext=n,t=Ot(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=tn(i,t,s),e!==null&&(ot(e,i,s,o),Qi(e,i,s)),s}function To(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 lc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pu(e,t){lc(e,t),(e=e.alternate)&&lc(e,t)}function ig(){return null}var Bd=typeof reportError=="function"?reportError:function(e){console.error(e)};function Au(e){this._internalRoot=e}Ko.prototype.render=Au.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));Qo(e,t,null,null)};Ko.prototype.unmount=Au.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;En(function(){Qo(null,e,null,null)}),t[Pt]=null}};function Ko(e){this._internalRoot=e}Ko.prototype.unstable_scheduleHydration=function(e){if(e){var t=gf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kt.length&&t!==0&&t<Kt[n].priority;n++);Kt.splice(n,0,e),n===0&&yf(e)}};function Mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Yo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function uc(){}function og(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var a=To(s);o.call(a)}}var s=bd(t,r,e,0,null,!1,!1,"",uc);return e._reactRootContainer=s,e[Pt]=s.current,Jr(e.nodeType===8?e.parentNode:e),En(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var a=To(u);l.call(a)}}var u=Lu(e,0,!1,null,null,!1,!1,"",uc);return e._reactRootContainer=u,e[Pt]=u.current,Jr(e.nodeType===8?e.parentNode:e),En(function(){Qo(t,u,n,r)}),u}function qo(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var u=To(s);l.call(u)}}Qo(t,s,e,i)}else s=og(n,t,e,i,r);return To(s)}hf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Dr(t.pendingLanes);n!==0&&(Zl(t,n|1),Le(t,Z()),!(b&6)&&(or=Z()+500,fn()))}break;case 13:En(function(){var r=At(e,1);if(r!==null){var i=Ee();ot(r,e,1,i)}}),Pu(e,1)}};eu=function(e){if(e.tag===13){var t=At(e,134217728);if(t!==null){var n=Ee();ot(t,e,134217728,n)}Pu(e,134217728)}};mf=function(e){if(e.tag===13){var t=rn(e),n=At(e,t);if(n!==null){var r=Ee();ot(n,e,t,r)}Pu(e,t)}};gf=function(){return F};vf=function(e,t){var n=F;try{return F=e,t()}finally{F=n}};Gs=function(e,t,n){switch(t){case"input":if(Hs(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=Bo(r);if(!i)throw Error(C(90));Kc(r),Hs(r,i)}}}break;case"textarea":qc(e,n);break;case"select":t=n.value,t!=null&&Qn(e,!!n.multiple,t,!1)}};nf=Ru;rf=En;var sg={usingClientEntryPoint:!1,Events:[pi,bn,Bo,ef,tf,Ru]},_r={findFiberByHostInstance:hn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},lg={bundleType:_r.bundleType,version:_r.version,rendererPackageName:_r.rendererPackageName,rendererConfig:_r.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=lf(e),e===null?null:e.stateNode},findFiberByHostInstance:_r.findFiberByHostInstance||ig,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 Ii=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ii.isDisabled&&Ii.supportsFiber)try{zo=Ii.inject(lg),ht=Ii}catch{}}Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sg;Ue.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Mu(t))throw Error(C(200));return rg(e,t,null,n)};Ue.createRoot=function(e,t){if(!Mu(e))throw Error(C(299));var n=!1,r="",i=Bd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Lu(e,1,!1,null,null,n,!1,r,i),e[Pt]=t.current,Jr(e.nodeType===8?e.parentNode:e),new Au(t)};Ue.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(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=lf(t),e=e===null?null:e.stateNode,e};Ue.flushSync=function(e){return En(e)};Ue.hydrate=function(e,t,n){if(!Yo(t))throw Error(C(200));return qo(null,e,t,!0,n)};Ue.hydrateRoot=function(e,t,n){if(!Mu(e))throw Error(C(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=Bd;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=bd(t,null,e,1,n??null,i,!1,o,s),e[Pt]=t.current,Jr(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 Ko(t)};Ue.render=function(e,t,n){if(!Yo(t))throw Error(C(200));return qo(null,e,t,!1,n)};Ue.unmountComponentAtNode=function(e){if(!Yo(e))throw Error(C(40));return e._reactRootContainer?(En(function(){qo(null,null,e,!1,function(){e._reactRootContainer=null,e[Pt]=null})}),!0):!1};Ue.unstable_batchedUpdates=Ru;Ue.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yo(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return qo(e,t,n,!1,r)};Ue.version="18.3.1-next-f1338f8080-20240426";function Fd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fd)}catch(e){console.error(e)}}Fd(),Bc.exports=Ue;var Wn=Bc.exports,ac=Wn;js.createRoot=ac.createRoot,js.hydrateRoot=ac.hydrateRoot;function ug(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const Xo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ar(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function zu(e){return"nodeType"in e}function Pe(e){var t,n;return e?ar(e)?e:zu(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Iu(e){const{Document:t}=Pe(e);return e instanceof t}function mi(e){return ar(e)?!1:e instanceof Pe(e).HTMLElement}function Ud(e){return e instanceof Pe(e).SVGElement}function cr(e){return e?ar(e)?e.document:zu(e)?Iu(e)?e:mi(e)||Ud(e)?e.ownerDocument:document:document:document}const vt=Xo?v.useLayoutEffect:v.useEffect;function ju(e){const t=v.useRef(e);return vt(()=>{t.current=e}),v.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function ag(){const e=v.useRef(null),t=v.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=v.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function li(e,t){t===void 0&&(t=[e]);const n=v.useRef(e);return vt(()=>{n.current!==e&&(n.current=e)},t),n}function gi(e,t){const n=v.useRef();return v.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Do(e){const t=ju(e),n=v.useRef(null),r=v.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function Ol(e){const t=v.useRef();return v.useEffect(()=>{t.current=e},[e]),t.current}let Os={};function vi(e,t){return v.useMemo(()=>{if(t)return t;const n=Os[e]==null?0:Os[e]+1;return Os[e]=n,e+"-"+n},[e,t])}function $d(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,s)=>{const l=Object.entries(s);for(const[u,a]of l){const d=o[u];d!=null&&(o[u]=d+e*a)}return o},{...t})}}const Jn=$d(1),Oo=$d(-1);function cg(e){return"clientX"in e&&"clientY"in e}function bu(e){if(!e)return!1;const{KeyboardEvent:t}=Pe(e.target);return t&&e instanceof t}function fg(e){if(!e)return!1;const{TouchEvent:t}=Pe(e.target);return t&&e instanceof t}function Ll(e){if(fg(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return cg(e)?{x:e.clientX,y:e.clientY}:null}const ui=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[ui.Translate.toString(e),ui.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),cc="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function dg(e){return e.matches(cc)?e:e.querySelector(cc)}const pg={display:"none"};function hg(e){let{id:t,value:n}=e;return ke.createElement("div",{id:t,style:pg},n)}function mg(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ke.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function gg(){const[e,t]=v.useState("");return{announce:v.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Vd=v.createContext(null);function vg(e){const t=v.useContext(Vd);v.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function yg(){const[e]=v.useState(()=>new Set),t=v.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[v.useCallback(r=>{let{type:i,event:o}=r;e.forEach(s=>{var l;return(l=s[i])==null?void 0:l.call(s,o)})},[e]),t]}const wg={draggable:`
41
+ To pick up a draggable item, press the space bar.
42
+ While dragging, use the arrow keys to move the item.
43
+ Press space again to drop the item in its new position, or press escape to cancel.
44
+ `},xg={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Sg(e){let{announcements:t=xg,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=wg}=e;const{announce:o,announcement:s}=gg(),l=vi("DndLiveRegion"),[u,a]=v.useState(!1);if(v.useEffect(()=>{a(!0)},[]),vg(v.useMemo(()=>({onDragStart(f){let{active:m}=f;o(t.onDragStart({active:m}))},onDragMove(f){let{active:m,over:g}=f;t.onDragMove&&o(t.onDragMove({active:m,over:g}))},onDragOver(f){let{active:m,over:g}=f;o(t.onDragOver({active:m,over:g}))},onDragEnd(f){let{active:m,over:g}=f;o(t.onDragEnd({active:m,over:g}))},onDragCancel(f){let{active:m,over:g}=f;o(t.onDragCancel({active:m,over:g}))}}),[o,t])),!u)return null;const d=ke.createElement(ke.Fragment,null,ke.createElement(hg,{id:r,value:i.draggable}),ke.createElement(mg,{id:l,announcement:s}));return n?Wn.createPortal(d,n):d}var ie;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(ie||(ie={}));function Lo(){}const lt=Object.freeze({x:0,y:0});function kg(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Eg(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Cg(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function _g(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function fc(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Ng=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=fc(t,t.left,t.top),o=[];for(const s of r){const{id:l}=s,u=n.get(l);if(u){const a=kg(fc(u),i);o.push({id:l,data:{droppableContainer:s,value:a}})}}return o.sort(Eg)};function Rg(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=i-r,l=o-n;if(r<i&&n<o){const u=t.width*t.height,a=e.width*e.height,d=s*l,f=d/(u+a-d);return Number(f.toFixed(4))}return 0}const Tg=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:s}=o,l=n.get(s);if(l){const u=Rg(l,t);u>0&&i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(Cg)};function Dg(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Hd(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:lt}function Og(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((s,l)=>({...s,top:s.top+e*l.y,bottom:s.bottom+e*l.y,left:s.left+e*l.x,right:s.right+e*l.x}),{...n})}}const Lg=Og(1);function Pg(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Ag(e,t,n){const r=Pg(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:l}=r,u=e.left-s-(1-i)*parseFloat(n),a=e.top-l-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=i?e.width/i:e.width,f=o?e.height/o:e.height;return{width:d,height:f,top:a,right:u+d,bottom:a+f,left:u}}const Mg={ignoreTransform:!1};function fr(e,t){t===void 0&&(t=Mg);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:a,transformOrigin:d}=Pe(e).getComputedStyle(e);a&&(n=Ag(n,a,d))}const{top:r,left:i,width:o,height:s,bottom:l,right:u}=n;return{top:r,left:i,width:o,height:s,bottom:l,right:u}}function dc(e){return fr(e,{ignoreTransform:!0})}function zg(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Ig(e,t){return t===void 0&&(t=Pe(e).getComputedStyle(e)),t.position==="fixed"}function jg(e,t){t===void 0&&(t=Pe(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?n.test(o):!1})}function Bu(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(Iu(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!mi(i)||Ud(i)||n.includes(i))return n;const o=Pe(e).getComputedStyle(i);return i!==e&&jg(i,o)&&n.push(i),Ig(i,o)?n:r(i.parentNode)}return e?r(e):n}function Wd(e){const[t]=Bu(e,1);return t??null}function Ls(e){return!Xo||!e?null:ar(e)?e:zu(e)?Iu(e)||e===cr(e).scrollingElement?window:mi(e)?e:null:null}function Qd(e){return ar(e)?e.scrollX:e.scrollLeft}function Kd(e){return ar(e)?e.scrollY:e.scrollTop}function Pl(e){return{x:Qd(e),y:Kd(e)}}var le;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(le||(le={}));function Yd(e){return!Xo||!e?!1:e===document.scrollingElement}function qd(e){const t={x:0,y:0},n=Yd(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,l=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:s,isRight:l,maxScroll:r,minScroll:t}}const bg={x:.2,y:.2};function Bg(e,t,n,r,i){let{top:o,left:s,right:l,bottom:u}=n;r===void 0&&(r=10),i===void 0&&(i=bg);const{isTop:a,isBottom:d,isLeft:f,isRight:m}=qd(e),g={x:0,y:0},S={x:0,y:0},x={height:t.height*i.y,width:t.width*i.x};return!a&&o<=t.top+x.height?(g.y=le.Backward,S.y=r*Math.abs((t.top+x.height-o)/x.height)):!d&&u>=t.bottom-x.height&&(g.y=le.Forward,S.y=r*Math.abs((t.bottom-x.height-u)/x.height)),!m&&l>=t.right-x.width?(g.x=le.Forward,S.x=r*Math.abs((t.right-x.width-l)/x.width)):!f&&s<=t.left+x.width&&(g.x=le.Backward,S.x=r*Math.abs((t.left+x.width-s)/x.width)),{direction:g,speed:S}}function Fg(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:s}=window;return{top:0,left:0,right:o,bottom:s,width:o,height:s}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Xd(e){return e.reduce((t,n)=>Jn(t,Pl(n)),lt)}function Ug(e){return e.reduce((t,n)=>t+Qd(n),0)}function $g(e){return e.reduce((t,n)=>t+Kd(n),0)}function Vg(e,t){if(t===void 0&&(t=fr),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);Wd(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Hg=[["x",["left","right"],Ug],["y",["top","bottom"],$g]];class Fu{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Bu(n),i=Xd(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,s,l]of Hg)for(const u of s)Object.defineProperty(this,u,{get:()=>{const a=l(r),d=i[o]-a;return this.rect[u]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ur{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Wg(e){const{EventTarget:t}=Pe(e);return e instanceof t?e:cr(e)}function Ps(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var He;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(He||(He={}));function pc(e){e.preventDefault()}function Qg(e){e.stopPropagation()}var B;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(B||(B={}));const Gd={start:[B.Space,B.Enter],cancel:[B.Esc],end:[B.Space,B.Enter,B.Tab]},Kg=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case B.Right:return{...n,x:n.x+25};case B.Left:return{...n,x:n.x-25};case B.Down:return{...n,y:n.y+25};case B.Up:return{...n,y:n.y-25}}};class Jd{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Ur(cr(n)),this.windowListeners=new Ur(Pe(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(He.Resize,this.handleCancel),this.windowListeners.add(He.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(He.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Vg(r),n(lt)}handleKeyDown(t){if(bu(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=Gd,coordinateGetter:s=Kg,scrollBehavior:l="smooth"}=i,{code:u}=t;if(o.end.includes(u)){this.handleEnd(t);return}if(o.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:a}=r.current,d=a?{x:a.left,y:a.top}:lt;this.referenceCoordinates||(this.referenceCoordinates=d);const f=s(t,{active:n,context:r.current,currentCoordinates:d});if(f){const m=Oo(f,d),g={x:0,y:0},{scrollableAncestors:S}=r.current;for(const x of S){const T=t.code,{isTop:p,isRight:c,isLeft:h,isBottom:w,maxScroll:E,minScroll:N}=qd(x),_=Fg(x),k={x:Math.min(T===B.Right?_.right-_.width/2:_.right,Math.max(T===B.Right?_.left:_.left+_.width/2,f.x)),y:Math.min(T===B.Down?_.bottom-_.height/2:_.bottom,Math.max(T===B.Down?_.top:_.top+_.height/2,f.y))},D=T===B.Right&&!c||T===B.Left&&!h,R=T===B.Down&&!w||T===B.Up&&!p;if(D&&k.x!==f.x){const A=x.scrollLeft+m.x,V=T===B.Right&&A<=E.x||T===B.Left&&A>=N.x;if(V&&!m.y){x.scrollTo({left:A,behavior:l});return}V?g.x=x.scrollLeft-A:g.x=T===B.Right?x.scrollLeft-E.x:x.scrollLeft-N.x,g.x&&x.scrollBy({left:-g.x,behavior:l});break}else if(R&&k.y!==f.y){const A=x.scrollTop+m.y,V=T===B.Down&&A<=E.y||T===B.Up&&A>=N.y;if(V&&!m.x){x.scrollTo({top:A,behavior:l});return}V?g.y=x.scrollTop-A:g.y=T===B.Down?x.scrollTop-E.y:x.scrollTop-N.y,g.y&&x.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(t,Jn(Oo(f,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Jd.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Gd,onActivation:i}=t,{active:o}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const l=o.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function hc(e){return!!(e&&"distance"in e)}function mc(e){return!!(e&&"delay"in e)}class Uu{constructor(t,n,r){var i;r===void 0&&(r=Wg(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:s}=o;this.props=t,this.events=n,this.document=cr(s),this.documentListeners=new Ur(this.document),this.listeners=new Ur(r),this.windowListeners=new Ur(Pe(s)),this.initialCoordinates=(i=Ll(o))!=null?i:lt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(He.Resize,this.handleCancel),this.windowListeners.add(He.DragStart,pc),this.windowListeners.add(He.VisibilityChange,this.handleCancel),this.windowListeners.add(He.ContextMenu,pc),this.documentListeners.add(He.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(mc(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(hc(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(He.Click,Qg,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(He.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:s,options:{activationConstraint:l}}=o;if(!i)return;const u=(n=Ll(t))!=null?n:lt,a=Oo(i,u);if(!r&&l){if(hc(l)){if(l.tolerance!=null&&Ps(a,l.tolerance))return this.handleCancel();if(Ps(a,l.distance))return this.handleStart()}if(mc(l)&&Ps(a,l.tolerance))return this.handleCancel();this.handlePending(l,a);return}t.cancelable&&t.preventDefault(),s(u)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===B.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Yg={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Zd extends Uu{constructor(t){const{event:n}=t,r=cr(n.target);super(t,Yg,r)}}Zd.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const qg={move:{name:"mousemove"},end:{name:"mouseup"}};var Al;(function(e){e[e.RightClick=2]="RightClick"})(Al||(Al={}));class Xg extends Uu{constructor(t){super(t,qg,cr(t.event.target))}}Xg.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Al.RightClick?!1:(r==null||r({event:n}),!0)}}];const As={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Gg extends Uu{constructor(t){super(t,As)}static setup(){return window.addEventListener(As.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(As.move.name,t)};function t(){}}}Gg.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var $r;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})($r||($r={}));var Po;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Po||(Po={}));function Jg(e){let{acceleration:t,activator:n=$r.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:s=5,order:l=Po.TreeOrder,pointerCoordinates:u,scrollableAncestors:a,scrollableAncestorRects:d,delta:f,threshold:m}=e;const g=ev({delta:f,disabled:!o}),[S,x]=ag(),T=v.useRef({x:0,y:0}),p=v.useRef({x:0,y:0}),c=v.useMemo(()=>{switch(n){case $r.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case $r.DraggableRect:return i}},[n,i,u]),h=v.useRef(null),w=v.useCallback(()=>{const N=h.current;if(!N)return;const _=T.current.x*p.current.x,k=T.current.y*p.current.y;N.scrollBy(_,k)},[]),E=v.useMemo(()=>l===Po.TreeOrder?[...a].reverse():a,[l,a]);v.useEffect(()=>{if(!o||!a.length||!c){x();return}for(const N of E){if((r==null?void 0:r(N))===!1)continue;const _=a.indexOf(N),k=d[_];if(!k)continue;const{direction:D,speed:R}=Bg(N,k,c,t,m);for(const A of["x","y"])g[A][D[A]]||(R[A]=0,D[A]=0);if(R.x>0||R.y>0){x(),h.current=N,S(w,s),T.current=R,p.current=D;return}}T.current={x:0,y:0},p.current={x:0,y:0},x()},[t,w,r,x,o,s,JSON.stringify(c),JSON.stringify(g),S,a,E,d,JSON.stringify(m)])}const Zg={x:{[le.Backward]:!1,[le.Forward]:!1},y:{[le.Backward]:!1,[le.Forward]:!1}};function ev(e){let{delta:t,disabled:n}=e;const r=Ol(t);return gi(i=>{if(n||!r||!i)return Zg;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[le.Backward]:i.x[le.Backward]||o.x===-1,[le.Forward]:i.x[le.Forward]||o.x===1},y:{[le.Backward]:i.y[le.Backward]||o.y===-1,[le.Forward]:i.y[le.Forward]||o.y===1}}},[n,t,r])}function tv(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return gi(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function nv(e,t){return v.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...o]},[]),[e,t])}var ai;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ai||(ai={}));var Ml;(function(e){e.Optimized="optimized"})(Ml||(Ml={}));const gc=new Map;function rv(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,s]=v.useState(null),{frequency:l,measure:u,strategy:a}=i,d=v.useRef(e),f=T(),m=li(f),g=v.useCallback(function(p){p===void 0&&(p=[]),!m.current&&s(c=>c===null?p:c.concat(p.filter(h=>!c.includes(h))))},[m]),S=v.useRef(null),x=gi(p=>{if(f&&!n)return gc;if(!p||p===gc||d.current!==e||o!=null){const c=new Map;for(let h of e){if(!h)continue;if(o&&o.length>0&&!o.includes(h.id)&&h.rect.current){c.set(h.id,h.rect.current);continue}const w=h.node.current,E=w?new Fu(u(w),w):null;h.rect.current=E,E&&c.set(h.id,E)}return c}return p},[e,o,n,f,u]);return v.useEffect(()=>{d.current=e},[e]),v.useEffect(()=>{f||g()},[n,f]),v.useEffect(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),v.useEffect(()=>{f||typeof l!="number"||S.current!==null||(S.current=setTimeout(()=>{g(),S.current=null},l))},[l,f,g,...r]),{droppableRects:x,measureDroppableContainers:g,measuringScheduled:o!=null};function T(){switch(a){case ai.Always:return!1;case ai.BeforeDragging:return n;default:return!n}}}function ep(e,t){return gi(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function iv(e,t){return ep(e,t)}function ov(e){let{callback:t,disabled:n}=e;const r=ju(t),i=v.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return v.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Go(e){let{callback:t,disabled:n}=e;const r=ju(t),i=v.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return v.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function sv(e){return new Fu(fr(e),e)}function vc(e,t,n){t===void 0&&(t=sv);const[r,i]=v.useState(null);function o(){i(u=>{if(!e)return null;if(e.isConnected===!1){var a;return(a=u??n)!=null?a:null}const d=t(e);return JSON.stringify(u)===JSON.stringify(d)?u:d})}const s=ov({callback(u){if(e)for(const a of u){const{type:d,target:f}=a;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){o();break}}}}),l=Go({callback:o});return vt(()=>{o(),e?(l==null||l.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),s==null||s.disconnect())},[e]),r}function lv(e){const t=ep(e);return Hd(e,t)}const yc=[];function uv(e){const t=v.useRef(e),n=gi(r=>e?r&&r!==yc&&e&&t.current&&e.parentNode===t.current.parentNode?r:Bu(e):yc,[e]);return v.useEffect(()=>{t.current=e},[e]),n}function av(e){const[t,n]=v.useState(null),r=v.useRef(e),i=v.useCallback(o=>{const s=Ls(o.target);s&&n(l=>l?(l.set(s,Pl(s)),new Map(l)):null)},[]);return v.useEffect(()=>{const o=r.current;if(e!==o){s(o);const l=e.map(u=>{const a=Ls(u);return a?(a.addEventListener("scroll",i,{passive:!0}),[a,Pl(a)]):null}).filter(u=>u!=null);n(l.length?new Map(l):null),r.current=e}return()=>{s(e),s(o)};function s(l){l.forEach(u=>{const a=Ls(u);a==null||a.removeEventListener("scroll",i)})}},[i,e]),v.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,s)=>Jn(o,s),lt):Xd(e):lt,[e,t])}function wc(e,t){t===void 0&&(t=[]);const n=v.useRef(null);return v.useEffect(()=>{n.current=null},t),v.useEffect(()=>{const r=e!==lt;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Oo(e,n.current):lt}function cv(e){v.useEffect(()=>{if(!Xo)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function fv(e,t){return v.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=s=>{o(s,t)},n},{}),[e,t])}function tp(e){return v.useMemo(()=>e?zg(e):null,[e])}const xc=[];function dv(e,t){t===void 0&&(t=fr);const[n]=e,r=tp(n?Pe(n):null),[i,o]=v.useState(xc);function s(){o(()=>e.length?e.map(u=>Yd(u)?r:new Fu(t(u),u)):xc)}const l=Go({callback:s});return vt(()=>{l==null||l.disconnect(),s(),e.forEach(u=>l==null?void 0:l.observe(u))},[e]),i}function pv(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return mi(t)?t:e}function hv(e){let{measure:t}=e;const[n,r]=v.useState(null),i=v.useCallback(a=>{for(const{target:d}of a)if(mi(d)){r(f=>{const m=t(d);return f?{...f,width:m.width,height:m.height}:m});break}},[t]),o=Go({callback:i}),s=v.useCallback(a=>{const d=pv(a);o==null||o.disconnect(),d&&(o==null||o.observe(d)),r(d?t(d):null)},[t,o]),[l,u]=Do(s);return v.useMemo(()=>({nodeRef:l,rect:n,setRef:u}),[n,l,u])}const mv=[{sensor:Zd,options:{}},{sensor:Jd,options:{}}],gv={current:{}},Zi={draggable:{measure:dc},droppable:{measure:dc,strategy:ai.WhileDragging,frequency:Ml.Optimized},dragOverlay:{measure:fr}};class Vr extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const vv={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Vr,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Lo},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Zi,measureDroppableContainers:Lo,windowRect:null,measuringScheduled:!1},yv={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Lo,draggableNodes:new Map,over:null,measureDroppableContainers:Lo},Jo=v.createContext(yv),np=v.createContext(vv);function wv(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Vr}}}function xv(e,t){switch(t.type){case ie.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ie.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case ie.DragEnd:case ie.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ie.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Vr(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case ie.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new Vr(e.droppable.containers);return s.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case ie.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Vr(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Sv(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=v.useContext(Jo),o=Ol(r),s=Ol(n==null?void 0:n.id);return v.useEffect(()=>{if(!t&&!r&&o&&s!=null){if(!bu(o)||document.activeElement===o.target)return;const l=i.get(s);if(!l)return;const{activatorNode:u,node:a}=l;if(!u.current&&!a.current)return;requestAnimationFrame(()=>{for(const d of[u.current,a.current]){if(!d)continue;const f=dg(d);if(f){f.focus();break}}})}},[r,t,i,s,o]),null}function kv(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function Ev(e){return v.useMemo(()=>({draggable:{...Zi.draggable,...e==null?void 0:e.draggable},droppable:{...Zi.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Zi.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function Cv(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=v.useRef(!1),{x:s,y:l}=typeof i=="boolean"?{x:i,y:i}:i;vt(()=>{if(!s&&!l||!t){o.current=!1;return}if(o.current||!r)return;const a=t==null?void 0:t.node.current;if(!a||a.isConnected===!1)return;const d=n(a),f=Hd(d,r);if(s||(f.x=0),l||(f.y=0),o.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const m=Wd(a);m&&m.scrollBy({top:f.y,left:f.x})}},[t,s,l,r,n])}const rp=v.createContext({...lt,scaleX:1,scaleY:1});var Qt;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Qt||(Qt={}));const _v=v.memo(function(t){var n,r,i,o;let{id:s,accessibility:l,autoScroll:u=!0,children:a,sensors:d=mv,collisionDetection:f=Tg,measuring:m,modifiers:g,...S}=t;const x=v.useReducer(xv,void 0,wv),[T,p]=x,[c,h]=yg(),[w,E]=v.useState(Qt.Uninitialized),N=w===Qt.Initialized,{draggable:{active:_,nodes:k,translate:D},droppable:{containers:R}}=T,A=_!=null?k.get(_):null,V=v.useRef({initial:null,translated:null}),$=v.useMemo(()=>{var me;return _!=null?{id:_,data:(me=A==null?void 0:A.data)!=null?me:gv,rect:V}:null},[_,A]),he=v.useRef(null),[wt,It]=v.useState(null),[ae,O]=v.useState(null),P=li(S,Object.values(S)),M=vi("DndDescribedBy",s),H=v.useMemo(()=>R.getEnabled(),[R]),j=Ev(m),{droppableRects:Ne,measureDroppableContainers:xe,measuringScheduled:xt}=rv(H,{dragging:N,dependencies:[D.x,D.y],config:j.droppable}),ee=tv(k,_),St=v.useMemo(()=>ae?Ll(ae):null,[ae]),jt=zp(),kt=iv(ee,j.draggable.measure);Cv({activeNode:_!=null?k.get(_):null,config:jt.layoutShiftCompensation,initialRect:kt,measure:j.draggable.measure});const U=vc(ee,j.draggable.measure,kt),pr=vc(ee?ee.parentElement:null),ut=v.useRef({activatorEvent:null,active:null,activeNode:ee,collisionRect:null,collisions:null,droppableRects:Ne,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:R,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Nn=R.getNodeFor((n=ut.current.over)==null?void 0:n.id),Et=hv({measure:j.dragOverlay.measure}),Rn=(r=Et.nodeRef.current)!=null?r:ee,Tn=N?(i=Et.rect)!=null?i:U:null,Ku=!!(Et.nodeRef.current&&Et.rect),Yu=lv(Ku?null:U),ts=tp(Rn?Pe(Rn):null),bt=uv(N?Nn??ee:null),yi=dv(bt),wi=kv(g,{transform:{x:D.x-Yu.x,y:D.y-Yu.y,scaleX:1,scaleY:1},activatorEvent:ae,active:$,activeNodeRect:U,containerNodeRect:pr,draggingNodeRect:Tn,over:ut.current.over,overlayNodeRect:Et.rect,scrollableAncestors:bt,scrollableAncestorRects:yi,windowRect:ts}),qu=St?Jn(St,D):null,Xu=av(bt),Tp=wc(Xu),Dp=wc(Xu,[U]),Dn=Jn(wi,Tp),On=Tn?Lg(Tn,wi):null,hr=$&&On?f({active:$,collisionRect:On,droppableRects:Ne,droppableContainers:H,pointerCoordinates:qu}):null,Gu=_g(hr,"id"),[Bt,Ju]=v.useState(null),Op=Ku?wi:Jn(wi,Dp),Lp=Dg(Op,(o=Bt==null?void 0:Bt.rect)!=null?o:null,U),ns=v.useRef(null),Zu=v.useCallback((me,Me)=>{let{sensor:ze,options:Ft}=Me;if(he.current==null)return;const Ve=k.get(he.current);if(!Ve)return;const Ie=me.nativeEvent,at=new ze({active:he.current,activeNode:Ve,event:Ie,options:Ft,context:ut,onAbort(ce){if(!k.get(ce))return;const{onDragAbort:ct}=P.current,Ct={id:ce};ct==null||ct(Ct),c({type:"onDragAbort",event:Ct})},onPending(ce,Ut,ct,Ct){if(!k.get(ce))return;const{onDragPending:gr}=P.current,$t={id:ce,constraint:Ut,initialCoordinates:ct,offset:Ct};gr==null||gr($t),c({type:"onDragPending",event:$t})},onStart(ce){const Ut=he.current;if(Ut==null)return;const ct=k.get(Ut);if(!ct)return;const{onDragStart:Ct}=P.current,mr={activatorEvent:Ie,active:{id:Ut,data:ct.data,rect:V}};Wn.unstable_batchedUpdates(()=>{Ct==null||Ct(mr),E(Qt.Initializing),p({type:ie.DragStart,initialCoordinates:ce,active:Ut}),c({type:"onDragStart",event:mr}),It(ns.current),O(Ie)})},onMove(ce){p({type:ie.DragMove,coordinates:ce})},onEnd:Ln(ie.DragEnd),onCancel:Ln(ie.DragCancel)});ns.current=at;function Ln(ce){return async function(){const{active:ct,collisions:Ct,over:mr,scrollAdjustedTranslate:gr}=ut.current;let $t=null;if(ct&&gr){const{cancelDrop:vr}=P.current;$t={activatorEvent:Ie,active:ct,collisions:Ct,delta:gr,over:mr},ce===ie.DragEnd&&typeof vr=="function"&&await Promise.resolve(vr($t))&&(ce=ie.DragCancel)}he.current=null,Wn.unstable_batchedUpdates(()=>{p({type:ce}),E(Qt.Uninitialized),Ju(null),It(null),O(null),ns.current=null;const vr=ce===ie.DragEnd?"onDragEnd":"onDragCancel";if($t){const rs=P.current[vr];rs==null||rs($t),c({type:vr,event:$t})}})}}},[k]),Pp=v.useCallback((me,Me)=>(ze,Ft)=>{const Ve=ze.nativeEvent,Ie=k.get(Ft);if(he.current!==null||!Ie||Ve.dndKit||Ve.defaultPrevented)return;const at={active:Ie};me(ze,Me.options,at)===!0&&(Ve.dndKit={capturedBy:Me.sensor},he.current=Ft,Zu(ze,Me))},[k,Zu]),ea=nv(d,Pp);cv(d),vt(()=>{U&&w===Qt.Initializing&&E(Qt.Initialized)},[U,w]),v.useEffect(()=>{const{onDragMove:me}=P.current,{active:Me,activatorEvent:ze,collisions:Ft,over:Ve}=ut.current;if(!Me||!ze)return;const Ie={active:Me,activatorEvent:ze,collisions:Ft,delta:{x:Dn.x,y:Dn.y},over:Ve};Wn.unstable_batchedUpdates(()=>{me==null||me(Ie),c({type:"onDragMove",event:Ie})})},[Dn.x,Dn.y]),v.useEffect(()=>{const{active:me,activatorEvent:Me,collisions:ze,droppableContainers:Ft,scrollAdjustedTranslate:Ve}=ut.current;if(!me||he.current==null||!Me||!Ve)return;const{onDragOver:Ie}=P.current,at=Ft.get(Gu),Ln=at&&at.rect.current?{id:at.id,rect:at.rect.current,data:at.data,disabled:at.disabled}:null,ce={active:me,activatorEvent:Me,collisions:ze,delta:{x:Ve.x,y:Ve.y},over:Ln};Wn.unstable_batchedUpdates(()=>{Ju(Ln),Ie==null||Ie(ce),c({type:"onDragOver",event:ce})})},[Gu]),vt(()=>{ut.current={activatorEvent:ae,active:$,activeNode:ee,collisionRect:On,collisions:hr,droppableRects:Ne,draggableNodes:k,draggingNode:Rn,draggingNodeRect:Tn,droppableContainers:R,over:Bt,scrollableAncestors:bt,scrollAdjustedTranslate:Dn},V.current={initial:Tn,translated:On}},[$,ee,hr,On,k,Rn,Tn,Ne,R,Bt,bt,Dn]),Jg({...jt,delta:D,draggingRect:On,pointerCoordinates:qu,scrollableAncestors:bt,scrollableAncestorRects:yi});const Ap=v.useMemo(()=>({active:$,activeNode:ee,activeNodeRect:U,activatorEvent:ae,collisions:hr,containerNodeRect:pr,dragOverlay:Et,draggableNodes:k,droppableContainers:R,droppableRects:Ne,over:Bt,measureDroppableContainers:xe,scrollableAncestors:bt,scrollableAncestorRects:yi,measuringConfiguration:j,measuringScheduled:xt,windowRect:ts}),[$,ee,U,ae,hr,pr,Et,k,R,Ne,Bt,xe,bt,yi,j,xt,ts]),Mp=v.useMemo(()=>({activatorEvent:ae,activators:ea,active:$,activeNodeRect:U,ariaDescribedById:{draggable:M},dispatch:p,draggableNodes:k,over:Bt,measureDroppableContainers:xe}),[ae,ea,$,U,p,M,k,Bt,xe]);return ke.createElement(Vd.Provider,{value:h},ke.createElement(Jo.Provider,{value:Mp},ke.createElement(np.Provider,{value:Ap},ke.createElement(rp.Provider,{value:Lp},a)),ke.createElement(Sv,{disabled:(l==null?void 0:l.restoreFocus)===!1})),ke.createElement(Sg,{...l,hiddenTextDescribedById:M}));function zp(){const me=(wt==null?void 0:wt.autoScrollEnabled)===!1,Me=typeof u=="object"?u.enabled===!1:u===!1,ze=N&&!me&&!Me;return typeof u=="object"?{...u,enabled:ze}:{enabled:ze}}}),Nv=v.createContext(null),Sc="button",Rv="Draggable";function Tv(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=vi(Rv),{activators:s,activatorEvent:l,active:u,activeNodeRect:a,ariaDescribedById:d,draggableNodes:f,over:m}=v.useContext(Jo),{role:g=Sc,roleDescription:S="draggable",tabIndex:x=0}=i??{},T=(u==null?void 0:u.id)===t,p=v.useContext(T?rp:Nv),[c,h]=Do(),[w,E]=Do(),N=fv(s,t),_=li(n);vt(()=>(f.set(t,{id:t,key:o,node:c,activatorNode:w,data:_}),()=>{const D=f.get(t);D&&D.key===o&&f.delete(t)}),[f,t]);const k=v.useMemo(()=>({role:g,tabIndex:x,"aria-disabled":r,"aria-pressed":T&&g===Sc?!0:void 0,"aria-roledescription":S,"aria-describedby":d.draggable}),[r,g,x,T,S,d.draggable]);return{active:u,activatorEvent:l,activeNodeRect:a,attributes:k,isDragging:T,listeners:r?void 0:N,node:c,over:m,setNodeRef:h,setActivatorNodeRef:E,transform:p}}function Dv(){return v.useContext(np)}const Ov="Droppable",Lv={timeout:25};function ip(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=vi(Ov),{active:s,dispatch:l,over:u,measureDroppableContainers:a}=v.useContext(Jo),d=v.useRef({disabled:n}),f=v.useRef(!1),m=v.useRef(null),g=v.useRef(null),{disabled:S,updateMeasurementsFor:x,timeout:T}={...Lv,...i},p=li(x??r),c=v.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{a(Array.isArray(p.current)?p.current:[p.current]),g.current=null},T)},[T]),h=Go({callback:c,disabled:S||!s}),w=v.useCallback((k,D)=>{h&&(D&&(h.unobserve(D),f.current=!1),k&&h.observe(k))},[h]),[E,N]=Do(w),_=li(t);return v.useEffect(()=>{!h||!E.current||(h.disconnect(),f.current=!1,h.observe(E.current))},[E,h]),v.useEffect(()=>(l({type:ie.RegisterDroppable,element:{id:r,key:o,disabled:n,node:E,rect:m,data:_}}),()=>l({type:ie.UnregisterDroppable,key:o,id:r})),[r]),v.useEffect(()=>{n!==d.current.disabled&&(l({type:ie.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,l]),{active:s,rect:m,isOver:(u==null?void 0:u.id)===r,node:E,over:u,setNodeRef:N}}function op(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Pv(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function ji(e){return e!==null&&e>=0}function Av(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Mv(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const sp=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=op(t,r,n),s=t[i],l=o[i];return!l||!s?null:{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}},bi={scaleX:1,scaleY:1},zv=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:s}=e;const l=(t=o[n])!=null?t:r;if(!l)return null;if(i===n){const a=o[s];return a?{x:0,y:n<s?a.top+a.height-(l.top+l.height):a.top-l.top,...bi}:null}const u=Iv(o,i,n);return i>n&&i<=s?{x:0,y:-l.height-u,...bi}:i<n&&i>=s?{x:0,y:l.height+u,...bi}:{x:0,y:0,...bi}};function Iv(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const lp="Sortable",up=ke.createContext({activeIndex:-1,containerId:lp,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:sp,disabled:{draggable:!1,droppable:!1}});function jv(e){let{children:t,id:n,items:r,strategy:i=sp,disabled:o=!1}=e;const{active:s,dragOverlay:l,droppableRects:u,over:a,measureDroppableContainers:d}=Dv(),f=vi(lp,n),m=l.rect!==null,g=v.useMemo(()=>r.map(N=>typeof N=="object"&&"id"in N?N.id:N),[r]),S=s!=null,x=s?g.indexOf(s.id):-1,T=a?g.indexOf(a.id):-1,p=v.useRef(g),c=!Av(g,p.current),h=T!==-1&&x===-1||c,w=Mv(o);vt(()=>{c&&S&&d(g)},[c,g,S,d]),v.useEffect(()=>{p.current=g},[g]);const E=v.useMemo(()=>({activeIndex:x,containerId:f,disabled:w,disableTransforms:h,items:g,overIndex:T,useDragOverlay:m,sortedRects:Pv(g,u),strategy:i}),[x,f,w.draggable,w.droppable,h,g,T,u,m,i]);return ke.createElement(up.Provider,{value:E},t)}const bv=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return op(n,r,i).indexOf(t)},Bv=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:s,previousItems:l,previousContainerId:u,transition:a}=e;return!a||!r||l!==o&&i===s?!1:n?!0:s!==i&&t===u},Fv={duration:200,easing:"ease"},ap="transform",Uv=ui.Transition.toString({property:ap,duration:0,easing:"linear"}),$v={roleDescription:"sortable"};function Vv(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,s]=v.useState(null),l=v.useRef(n);return vt(()=>{if(!t&&n!==l.current&&r.current){const u=i.current;if(u){const a=fr(r.current,{ignoreTransform:!0}),d={x:u.left-a.left,y:u.top-a.top,scaleX:u.width/a.width,scaleY:u.height/a.height};(d.x||d.y)&&s(d)}}n!==l.current&&(l.current=n)},[t,n,r,i]),v.useEffect(()=>{o&&s(null)},[o]),o}function Hv(e){let{animateLayoutChanges:t=Bv,attributes:n,disabled:r,data:i,getNewIndex:o=bv,id:s,strategy:l,resizeObserverConfig:u,transition:a=Fv}=e;const{items:d,containerId:f,activeIndex:m,disabled:g,disableTransforms:S,sortedRects:x,overIndex:T,useDragOverlay:p,strategy:c}=v.useContext(up),h=Wv(r,g),w=d.indexOf(s),E=v.useMemo(()=>({sortable:{containerId:f,index:w,items:d},...i}),[f,i,w,d]),N=v.useMemo(()=>d.slice(d.indexOf(s)),[d,s]),{rect:_,node:k,isOver:D,setNodeRef:R}=ip({id:s,data:E,disabled:h.droppable,resizeObserverConfig:{updateMeasurementsFor:N,...u}}),{active:A,activatorEvent:V,activeNodeRect:$,attributes:he,setNodeRef:wt,listeners:It,isDragging:ae,over:O,setActivatorNodeRef:P,transform:M}=Tv({id:s,data:E,attributes:{...$v,...n},disabled:h.draggable}),H=ug(R,wt),j=!!A,Ne=j&&!S&&ji(m)&&ji(T),xe=!p&&ae,xt=xe&&Ne?M:null,St=Ne?xt??(l??c)({rects:x,activeNodeRect:$,activeIndex:m,overIndex:T,index:w}):null,jt=ji(m)&&ji(T)?o({id:s,items:d,activeIndex:m,overIndex:T}):w,kt=A==null?void 0:A.id,U=v.useRef({activeId:kt,items:d,newIndex:jt,containerId:f}),pr=d!==U.current.items,ut=t({active:A,containerId:f,isDragging:ae,isSorting:j,id:s,index:w,items:d,newIndex:U.current.newIndex,previousItems:U.current.items,previousContainerId:U.current.containerId,transition:a,wasDragging:U.current.activeId!=null}),Nn=Vv({disabled:!ut,index:w,node:k,rect:_});return v.useEffect(()=>{j&&U.current.newIndex!==jt&&(U.current.newIndex=jt),f!==U.current.containerId&&(U.current.containerId=f),d!==U.current.items&&(U.current.items=d)},[j,jt,f,d]),v.useEffect(()=>{if(kt===U.current.activeId)return;if(kt&&!U.current.activeId){U.current.activeId=kt;return}const Rn=setTimeout(()=>{U.current.activeId=kt},50);return()=>clearTimeout(Rn)},[kt]),{active:A,activeIndex:m,attributes:he,data:E,rect:_,index:w,newIndex:jt,items:d,isOver:D,isSorting:j,isDragging:ae,listeners:It,node:k,overIndex:T,over:O,setNodeRef:H,setActivatorNodeRef:P,setDroppableNodeRef:R,setDraggableNodeRef:wt,transform:Nn??St,transition:Et()};function Et(){if(Nn||pr&&U.current.newIndex===w)return Uv;if(!(xe&&!bu(V)||!a)&&(j||ut))return ui.Transition.toString({...a,property:ap})}}function Wv(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}B.Down,B.Right,B.Up,B.Left;/**
45
+ * @license lucide-react v0.453.0 - ISC
46
+ *
47
+ * This source code is licensed under the ISC license.
48
+ * See the LICENSE file in the root directory of this source tree.
49
+ */const Qv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),cp=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
50
+ * @license lucide-react v0.453.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */var Kv={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"};/**
55
+ * @license lucide-react v0.453.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */const Yv=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...l},u)=>v.createElement("svg",{ref:u,...Kv,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:cp("lucide",i),...l},[...s.map(([a,d])=>v.createElement(a,d)),...Array.isArray(o)?o:[o]]));/**
60
+ * @license lucide-react v0.453.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const Ae=(e,t)=>{const n=v.forwardRef(({className:r,...i},o)=>v.createElement(Yv,{ref:o,iconNode:t,className:cp(`lucide-${Qv(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
65
+ * @license lucide-react v0.453.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const qv=Ae("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"}]]);/**
70
+ * @license lucide-react v0.453.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const Xv=Ae("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
75
+ * @license lucide-react v0.453.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const Gv=Ae("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"}]]);/**
80
+ * @license lucide-react v0.453.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const Jv=Ae("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
85
+ * @license lucide-react v0.453.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const Zv=Ae("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
90
+ * @license lucide-react v0.453.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const fp=Ae("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
95
+ * @license lucide-react v0.453.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const ey=Ae("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
100
+ * @license lucide-react v0.453.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const kc=Ae("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
105
+ * @license lucide-react v0.453.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const ty=Ae("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
110
+ * @license lucide-react v0.453.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const dp=Ae("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"}]]);/**
115
+ * @license lucide-react v0.453.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const ny=Ae("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
120
+ * @license lucide-react v0.453.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const ry=Ae("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
125
+ * @license lucide-react v0.453.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const pp=Ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
130
+ * @license lucide-react v0.453.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const iy=Ae("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),oy="/api";async function Ze(e,t){const r=await(await fetch(`${oy}${e}`,{...t,headers:{"Content-Type":"application/json",...t==null?void 0:t.headers}})).json();if(!r.success)throw new Error(r.error||"Request failed");return r.data}const Rt={getStatus:()=>Ze("/status"),getTasks:()=>Ze("/tasks"),createTask:e=>Ze("/tasks",{method:"POST",body:JSON.stringify(e)}),updateTask:(e,t)=>Ze(`/tasks/${e}`,{method:"PUT",body:JSON.stringify(t)}),deleteTask:e=>Ze(`/tasks/${e}`,{method:"DELETE"}),reorderTasks:e=>Ze("/tasks/reorder",{method:"POST",body:JSON.stringify({taskIds:e})}),startRun:e=>Ze("/run",{method:"POST",body:JSON.stringify(e)}),stopRun:()=>Ze("/run/stop",{method:"POST"}),getRunStatus:()=>Ze("/run/status"),getLogs:()=>Ze("/logs"),getLog:e=>Ze(`/logs/${e}`)};function sy({project:e,branch:t,isConnected:n,onAddTask:r,onToggleLogs:i,isLogsOpen:o,isRunning:s,pendingCount:l}){const[u,a]=v.useState(!1),d=async()=>{a(!0);try{await Rt.startRun({count:1})}catch(m){console.error("Failed to start task:",m)}finally{a(!1)}},f=async()=>{a(!0);try{await Rt.startRun({all:!0})}catch(m){console.error("Failed to start AFK mode:",m)}finally{a(!1)}};return y.jsx("header",{className:"bg-ralph-card border-b border-ralph-border px-4 py-3",children:y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-4",children:[y.jsx("h1",{className:"text-xl font-bold flex items-center gap-2",children:y.jsx("span",{children:"Ralph Wiggum UI"})}),y.jsxs("div",{className:"flex items-center gap-2 text-ralph-muted text-sm",children:[y.jsx("span",{className:"px-2 py-1 bg-ralph-bg rounded",children:e}),y.jsxs("span",{className:"flex items-center gap-1 px-2 py-1 bg-ralph-bg rounded",children:[y.jsx(Gv,{size:14}),t]})]})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("div",{className:`flex items-center gap-1 text-sm ${n?"text-ralph-success":"text-ralph-danger"}`,children:[n?y.jsx(ry,{size:16}):y.jsx(ny,{size:16}),y.jsx("span",{children:n?"Connected":"Disconnected"})]}),y.jsxs("button",{onClick:i,className:`flex items-center gap-2 px-3 py-2 rounded transition-colors ${o?"bg-ralph-accent text-white":"bg-ralph-bg hover:bg-ralph-border"}`,children:[y.jsx(ty,{size:16}),y.jsx("span",{children:"Logs"})]}),y.jsxs("button",{onClick:r,className:"flex items-center gap-2 px-3 py-2 bg-ralph-accent hover:bg-ralph-accent/80 text-white rounded transition-colors",children:[y.jsx(ey,{size:16}),y.jsx("span",{children:"Add Task"})]}),!s&&l>0&&y.jsxs(y.Fragment,{children:[y.jsxs("button",{onClick:d,disabled:u,className:"flex items-center gap-2 px-3 py-2 bg-ralph-success hover:bg-ralph-success/80 text-white rounded transition-colors disabled:opacity-50",children:[y.jsx(fp,{size:16}),y.jsx("span",{children:"Run Next"})]}),l>1&&y.jsxs("button",{onClick:f,disabled:u,className:"flex items-center gap-2 px-3 py-2 bg-ralph-warning hover:bg-ralph-warning/80 text-white rounded transition-colors disabled:opacity-50",title:`Run all ${l} pending tasks`,children:[y.jsx(iy,{size:16}),y.jsxs("span",{children:["AFK Mode (",l,")"]})]})]})]})]})})}function ly({id:e,title:t,count:n,children:r}){const{setNodeRef:i,isOver:o}=ip({id:e}),s=()=>{switch(e){case"pending":return"border-ralph-muted/30";case"in_progress":return"border-ralph-warning/30";case"completed":return"border-ralph-success/30";default:return"border-ralph-border"}},l=()=>{switch(e){case"pending":return"text-ralph-muted";case"in_progress":return"text-ralph-warning";case"completed":return"text-ralph-success";default:return"text-ralph-text"}};return y.jsxs("div",{ref:i,className:`flex-1 min-w-[300px] max-w-[400px] flex flex-col bg-ralph-card rounded-lg border-2 ${s()} ${o?"ring-2 ring-ralph-accent":""}`,children:[y.jsx("div",{className:"px-4 py-3 border-b border-ralph-border",children:y.jsxs("h2",{className:`font-semibold flex items-center gap-2 ${l()}`,children:[y.jsx("span",{children:t}),y.jsx("span",{className:"text-xs bg-ralph-bg px-2 py-0.5 rounded-full",children:n})]})}),y.jsx("div",{className:"flex-1 p-3 overflow-y-auto space-y-3",children:r})]})}function uy({task:e,onDelete:t}){const{attributes:n,listeners:r,setNodeRef:i,transform:o,transition:s,isDragging:l}=Hv({id:e.id}),u={transform:ui.Transform.toString(o),transition:s},a=()=>e.status==="failed"?y.jsxs("span",{className:"flex items-center gap-1 text-xs text-ralph-danger bg-ralph-danger/20 px-2 py-0.5 rounded",children:[y.jsx(qv,{size:12}),"Failed"]}):e.status==="completed"?y.jsxs("span",{className:"flex items-center gap-1 text-xs text-ralph-success bg-ralph-success/20 px-2 py-0.5 rounded",children:[y.jsx(Xv,{size:12}),"Done"]}):null;return y.jsx("div",{ref:i,style:u,className:`bg-ralph-bg border border-ralph-border rounded-lg p-3 group ${l?"opacity-50 ring-2 ring-ralph-accent":""}`,children:y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx("button",{...n,...r,className:"mt-1 text-ralph-muted hover:text-ralph-text cursor-grab",children:y.jsx(Jv,{size:16})}),y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsxs("div",{className:"flex items-start justify-between gap-2",children:[y.jsxs("div",{className:"flex-1",children:[y.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[y.jsx("span",{className:"text-xs text-ralph-muted font-mono",children:e.id}),a()]}),y.jsx("h3",{className:"font-medium text-sm text-ralph-text",children:e.title})]}),y.jsx("button",{onClick:d=>{d.stopPropagation(),t()},className:"opacity-0 group-hover:opacity-100 text-ralph-muted hover:text-ralph-danger transition-opacity",children:y.jsx(dp,{size:14})})]}),e.description&&y.jsx("p",{className:"text-xs text-ralph-muted mt-2 line-clamp-2",children:e.description}),e.acceptanceCriteria.length>0&&y.jsxs("div",{className:"mt-2 text-xs text-ralph-muted",children:[e.acceptanceCriteria.length," criteria"]}),e.notes&&y.jsx("div",{className:"mt-2 text-xs text-ralph-warning bg-ralph-warning/10 px-2 py-1 rounded",children:e.notes})]})]})})}function ay({onAdd:e,onClose:t}){const[n,r]=v.useState(""),[i,o]=v.useState(""),[s,l]=v.useState(""),[u,a]=v.useState(!1),d=async f=>{if(f.preventDefault(),!n.trim())return;a(!0);const m=s.split(`
135
+ `).map(g=>g.trim()).filter(g=>g.length>0);await e({title:n.trim(),description:i.trim()||void 0,acceptanceCriteria:m.length>0?m:void 0}),a(!1)};return y.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:y.jsxs("div",{className:"bg-ralph-card border border-ralph-border rounded-lg w-full max-w-lg mx-4",children:[y.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-ralph-border",children:[y.jsx("h2",{className:"font-semibold",children:"Add New Task"}),y.jsx("button",{onClick:t,className:"text-ralph-muted hover:text-ralph-text",children:y.jsx(pp,{size:20})})]}),y.jsxs("form",{onSubmit:d,className:"p-4 space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium mb-1",children:"Title *"}),y.jsx("input",{type:"text",value:n,onChange:f=>r(f.target.value),placeholder:"What needs to be done?",className:"w-full px-3 py-2 bg-ralph-bg border border-ralph-border rounded focus:outline-none focus:ring-2 focus:ring-ralph-accent",autoFocus:!0})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium mb-1",children:"Description"}),y.jsx("textarea",{value:i,onChange:f=>o(f.target.value),placeholder:"Optional details about the task...",rows:3,className:"w-full px-3 py-2 bg-ralph-bg border border-ralph-border rounded focus:outline-none focus:ring-2 focus:ring-ralph-accent resize-none"})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"block text-sm font-medium mb-1",children:["Acceptance Criteria",y.jsx("span",{className:"text-ralph-muted font-normal ml-1",children:"(one per line)"})]}),y.jsx("textarea",{value:s,onChange:f=>l(f.target.value),placeholder:`Tests pass
136
+ No TypeScript errors
137
+ Documentation updated`,rows:4,className:"w-full px-3 py-2 bg-ralph-bg border border-ralph-border rounded focus:outline-none focus:ring-2 focus:ring-ralph-accent resize-none font-mono text-sm"})]}),y.jsxs("div",{className:"flex justify-end gap-3 pt-2",children:[y.jsx("button",{type:"button",onClick:t,className:"px-4 py-2 text-ralph-muted hover:text-ralph-text transition-colors",children:"Cancel"}),y.jsx("button",{type:"submit",disabled:!n.trim()||u,className:"px-4 py-2 bg-ralph-accent hover:bg-ralph-accent/80 text-white rounded transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:u?"Adding...":"Add Task"})]})]})]})})}function cy({logs:e,onClear:t,onClose:n}){const r=v.useRef(null);v.useEffect(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[e]);const i=o=>new Date(o).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"});return y.jsxs("div",{className:"w-96 border-l border-ralph-border bg-ralph-card flex flex-col",children:[y.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-ralph-border",children:[y.jsx("h3",{className:"font-semibold",children:"Live Logs"}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("button",{onClick:t,className:"text-ralph-muted hover:text-ralph-text",title:"Clear logs",children:y.jsx(dp,{size:16})}),y.jsx("button",{onClick:n,className:"text-ralph-muted hover:text-ralph-text",children:y.jsx(pp,{size:16})})]})]}),y.jsx("div",{ref:r,className:"flex-1 overflow-y-auto p-3 font-mono text-xs",children:e.length===0?y.jsx("div",{className:"text-ralph-muted text-center py-8",children:"No logs yet. Start running a task to see output."}):y.jsx("div",{className:"space-y-1",children:e.map((o,s)=>y.jsxs("div",{className:"flex gap-2",children:[y.jsxs("span",{className:"text-ralph-muted shrink-0",children:["[",i(o.timestamp),"]"]}),y.jsx("span",{className:"text-ralph-text break-all",children:o.message})]},s))})})]})}function fy({progress:e}){const[t,n]=v.useState(!1),r=async()=>{n(!0);try{await Rt.stopRun()}catch(s){console.error("Failed to stop:",s)}finally{n(!1)}},i=()=>{const s=Date.now()-e.startTime,l=Math.floor(s/1e3),u=Math.floor(l/60),a=Math.floor(u/60);return a>0?`${a}h ${u%60}m`:u>0?`${u}m ${l%60}s`:`${l}s`},o=e.totalTasks>0?Math.round(e.completedTasks/e.totalTasks*100):0;return y.jsxs("div",{className:"fixed bottom-4 right-4 bg-ralph-card border border-ralph-border rounded-lg shadow-lg p-4 w-80",children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(Zv,{className:"animate-spin text-ralph-accent",size:18}),y.jsx("span",{className:"font-semibold",children:"AFK Mode Running"})]}),y.jsxs("button",{onClick:r,disabled:t,className:"flex items-center gap-1 px-2 py-1 bg-ralph-danger/20 hover:bg-ralph-danger/30 text-ralph-danger rounded text-sm transition-colors disabled:opacity-50",children:[y.jsx(kc,{size:14}),t?"Stopping...":"Stop"]})]}),e.currentTask&&y.jsxs("div",{className:"mb-3 text-sm",children:[y.jsx("div",{className:"text-ralph-muted mb-1",children:"Current task:"}),y.jsxs("div",{className:"text-ralph-text truncate",children:[y.jsxs("span",{className:"text-ralph-muted font-mono",children:[e.currentTask.id,":"]})," ",e.currentTask.title]})]}),y.jsxs("div",{className:"mb-2",children:[y.jsxs("div",{className:"flex items-center justify-between text-sm mb-1",children:[y.jsxs("span",{className:"text-ralph-muted",children:[e.completedTasks," / ",e.totalTasks," tasks"]}),y.jsx("span",{className:"text-ralph-muted",children:i()})]}),y.jsx("div",{className:"h-2 bg-ralph-bg rounded-full overflow-hidden",children:y.jsx("div",{className:"h-full bg-ralph-accent transition-all duration-300",style:{width:`${o}%`}})})]}),y.jsxs("div",{className:"flex items-center gap-2 text-xs text-ralph-muted",children:[y.jsx(fp,{size:12,className:"text-ralph-success"}),y.jsxs("span",{children:[e.results.filter(s=>s.success).length," passed"]}),e.results.some(s=>!s.success)&&y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-ralph-border",children:"|"}),y.jsx(kc,{size:12,className:"text-ralph-danger"}),y.jsxs("span",{children:[e.results.filter(s=>!s.success).length," failed"]})]})]})]})}const yt=Object.create(null);yt.open="0";yt.close="1";yt.ping="2";yt.pong="3";yt.message="4";yt.upgrade="5";yt.noop="6";const eo=Object.create(null);Object.keys(yt).forEach(e=>{eo[yt[e]]=e});const zl={type:"error",data:"parser error"},hp=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",mp=typeof ArrayBuffer=="function",gp=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,$u=({type:e,data:t},n,r)=>hp&&t instanceof Blob?n?r(t):Ec(t,r):mp&&(t instanceof ArrayBuffer||gp(t))?n?r(t):Ec(new Blob([t]),r):r(yt[e]+(t||"")),Ec=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Cc(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Ms;function dy(e,t){if(hp&&e.data instanceof Blob)return e.data.arrayBuffer().then(Cc).then(t);if(mp&&(e.data instanceof ArrayBuffer||gp(e.data)))return t(Cc(e.data));$u(e,!1,n=>{Ms||(Ms=new TextEncoder),t(Ms.encode(n))})}const _c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lr=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<_c.length;e++)Lr[_c.charCodeAt(e)]=e;const py=e=>{let t=e.length*.75,n=e.length,r,i=0,o,s,l,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const a=new ArrayBuffer(t),d=new Uint8Array(a);for(r=0;r<n;r+=4)o=Lr[e.charCodeAt(r)],s=Lr[e.charCodeAt(r+1)],l=Lr[e.charCodeAt(r+2)],u=Lr[e.charCodeAt(r+3)],d[i++]=o<<2|s>>4,d[i++]=(s&15)<<4|l>>2,d[i++]=(l&3)<<6|u&63;return a},hy=typeof ArrayBuffer=="function",Vu=(e,t)=>{if(typeof e!="string")return{type:"message",data:vp(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:my(e.substring(1),t)}:eo[n]?e.length>1?{type:eo[n],data:e.substring(1)}:{type:eo[n]}:zl},my=(e,t)=>{if(hy){const n=py(e);return vp(n,t)}else return{base64:!0,data:e}},vp=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},yp="",gy=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{$u(o,!1,l=>{r[s]=l,++i===n&&t(r.join(yp))})})},vy=(e,t)=>{const n=e.split(yp),r=[];for(let i=0;i<n.length;i++){const o=Vu(n[i],t);if(r.push(o),o.type==="error")break}return r};function yy(){return new TransformStream({transform(e,t){dy(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let zs;function Bi(e){return e.reduce((t,n)=>t+n.length,0)}function Fi(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function wy(e,t){zs||(zs=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,l){for(n.push(s);;){if(r===0){if(Bi(n)<1)break;const u=Fi(n,1);o=(u[0]&128)===128,i=u[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Bi(n)<2)break;const u=Fi(n,2);i=new DataView(u.buffer,u.byteOffset,u.length).getUint16(0),r=3}else if(r===2){if(Bi(n)<8)break;const u=Fi(n,8),a=new DataView(u.buffer,u.byteOffset,u.length),d=a.getUint32(0);if(d>Math.pow(2,21)-1){l.enqueue(zl);break}i=d*Math.pow(2,32)+a.getUint32(4),r=3}else{if(Bi(n)<i)break;const u=Fi(n,i);l.enqueue(Vu(o?u:zs.decode(u),t)),r=0}if(i===0||i>e){l.enqueue(zl);break}}}})}const wp=4;function ne(e){if(e)return xy(e)}function xy(e){for(var t in ne.prototype)e[t]=ne.prototype[t];return e}ne.prototype.on=ne.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ne.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};ne.prototype.off=ne.prototype.removeListener=ne.prototype.removeAllListeners=ne.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};ne.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};ne.prototype.emitReserved=ne.prototype.emit;ne.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ne.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Zo=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Ke=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Sy="arraybuffer";function xp(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const ky=Ke.setTimeout,Ey=Ke.clearTimeout;function es(e,t){t.useNativeTimers?(e.setTimeoutFn=ky.bind(Ke),e.clearTimeoutFn=Ey.bind(Ke)):(e.setTimeoutFn=Ke.setTimeout.bind(Ke),e.clearTimeoutFn=Ke.clearTimeout.bind(Ke))}const Cy=1.33;function _y(e){return typeof e=="string"?Ny(e):Math.ceil((e.byteLength||e.size)*Cy)}function Ny(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Sp(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Ry(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Ty(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class Dy extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Hu extends ne{constructor(t){super(),this.writable=!1,es(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new Dy(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Vu(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=Ry(t);return n.length?"?"+n:""}}class Oy extends Hu{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};vy(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,gy(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Sp()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let kp=!1;try{kp=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ly=kp;function Py(){}class Ay extends Oy{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class gt extends ne{constructor(t,n,r){super(),this.createRequest=t,es(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=xp(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=gt.requestsCount++,gt.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Py,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete gt.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}gt.requestsCount=0;gt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Nc);else if(typeof addEventListener=="function"){const e="onpagehide"in Ke?"pagehide":"unload";addEventListener(e,Nc,!1)}}function Nc(){for(let e in gt.requests)gt.requests.hasOwnProperty(e)&&gt.requests[e].abort()}const My=function(){const e=Ep({xdomain:!1});return e&&e.responseType!==null}();class zy extends Ay{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=My&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new gt(Ep,this.uri(),t)}}function Ep(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Ly))return new XMLHttpRequest}catch{}if(!t)try{return new Ke[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Cp=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Iy extends Hu{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=Cp?{}:xp(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;$u(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}i&&Zo(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Sp()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Is=Ke.WebSocket||Ke.MozWebSocket;class jy extends Iy{createSocket(t,n,r){return Cp?new Is(t,n,r):n?new Is(t,n):new Is(t)}doWrite(t,n){this.ws.send(n)}}class by extends Hu{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=wy(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=yy();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const o=()=>{r.read().then(({done:l,value:u})=>{l||(this.onPacket(u),o())}).catch(l=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&Zo(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const By={websocket:jy,webtransport:by,polling:zy},Fy=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Uy=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Il(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=Fy.exec(e||""),o={},s=14;for(;s--;)o[Uy[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=$y(o,o.path),o.queryKey=Vy(o,o.query),o}function $y(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Vy(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const jl=typeof addEventListener=="function"&&typeof removeEventListener=="function",to=[];jl&&addEventListener("offline",()=>{to.forEach(e=>e())},!1);class sn extends ne{constructor(t,n){if(super(),this.binaryType=Sy,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Il(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Il(n.host).host);es(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Ty(this.opts.query)),jl&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},to.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=wp,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&sn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",sn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=_y(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Zo(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(sn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),jl&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=to.indexOf(this._offlineEventListener);r!==-1&&to.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}sn.protocol=wp;class Hy extends sn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;sn.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;sn.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function o(){r||(r=!0,d(),n.close(),n=null)}const s=f=>{const m=new Error("probe error: "+f);m.transport=n.name,o(),this.emitReserved("upgradeError",m)};function l(){s("transport closed")}function u(){s("socket closed")}function a(f){n&&f.name!==n.name&&o()}const d=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",l),this.off("close",u),this.off("upgrading",a)};n.once("open",i),n.once("error",s),n.once("close",l),this.once("close",u),this.once("upgrading",a),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let Wy=class extends Hy{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>By[i]).filter(i=>!!i)),super(t,r)}};function Qy(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Il(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const Ky=typeof ArrayBuffer=="function",Yy=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,_p=Object.prototype.toString,qy=typeof Blob=="function"||typeof Blob<"u"&&_p.call(Blob)==="[object BlobConstructor]",Xy=typeof File=="function"||typeof File<"u"&&_p.call(File)==="[object FileConstructor]";function Wu(e){return Ky&&(e instanceof ArrayBuffer||Yy(e))||qy&&e instanceof Blob||Xy&&e instanceof File}function no(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(no(e[n]))return!0;return!1}if(Wu(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return no(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&no(e[n]))return!0;return!1}function Gy(e){const t=[],n=e.data,r=e;return r.data=bl(n,t),r.attachments=t.length,{packet:r,buffers:t}}function bl(e,t){if(!e)return e;if(Wu(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=bl(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=bl(e[r],t));return n}return e}function Jy(e,t){return e.data=Bl(e.data,t),delete e.attachments,e}function Bl(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Bl(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Bl(e[n],t));return e}const Np=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Zy=5;var z;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(z||(z={}));class e0{constructor(t){this.replacer=t}encode(t){return(t.type===z.EVENT||t.type===z.ACK)&&no(t)?this.encodeAsBinary({type:t.type===z.EVENT?z.BINARY_EVENT:z.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===z.BINARY_EVENT||t.type===z.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=Gy(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class Qu extends ne{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===z.BINARY_EVENT;r||n.type===z.BINARY_ACK?(n.type=r?z.EVENT:z.ACK,this.reconstructor=new t0(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Wu(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(z[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===z.BINARY_EVENT||r.type===z.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(o,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(Qu.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case z.CONNECT:return Ao(n);case z.DISCONNECT:return n===void 0;case z.CONNECT_ERROR:return typeof n=="string"||Ao(n);case z.EVENT:case z.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Np.indexOf(n[0])===-1);case z.ACK:case z.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class t0{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=Jy(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function n0(e){return typeof e=="string"}const r0=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function i0(e){return e===void 0||r0(e)}function Ao(e){return Object.prototype.toString.call(e)==="[object Object]"}function o0(e,t){switch(e){case z.CONNECT:return t===void 0||Ao(t);case z.DISCONNECT:return t===void 0;case z.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&Np.indexOf(t[0])===-1);case z.ACK:return Array.isArray(t);case z.CONNECT_ERROR:return typeof t=="string"||Ao(t);default:return!1}}function s0(e){return n0(e.nsp)&&i0(e.id)&&o0(e.type,e.data)}const l0=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Qu,Encoder:e0,get PacketType(){return z},isPacketValid:s0,protocol:Zy},Symbol.toStringTag,{value:"Module"}));function nt(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const u0=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Rp extends ne{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[nt(t,"open",this.onopen.bind(this)),nt(t,"packet",this.onpacket.bind(this)),nt(t,"error",this.onerror.bind(this)),nt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,o;if(u0.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:z.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,f=n.pop();this._registerAckCallback(d,f),s.id=d}const l=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,u=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!l||(u?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);n.call(this,new Error("operation has timed out"))},i),s=(...l)=>{this.io.clearTimeoutFn(o),n.apply(this,l)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,i)=>{const o=(s,l)=>s?i(s):r(l);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:z.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case z.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case z.EVENT:case z.BINARY_EVENT:this.onevent(t);break;case z.ACK:case z.BINARY_ACK:this.onack(t);break;case z.DISCONNECT:this.ondisconnect();break;case z.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:z.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:z.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function dr(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}dr.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};dr.prototype.reset=function(){this.attempts=0};dr.prototype.setMin=function(e){this.ms=e};dr.prototype.setMax=function(e){this.max=e};dr.prototype.setJitter=function(e){this.jitter=e};class Fl extends ne{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,es(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new dr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||l0;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Wy(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=nt(n,"open",function(){r.onopen(),t&&t()}),o=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},s=nt(n,"error",o);if(this._timeout!==!1){const l=this._timeout,u=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},l);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(nt(t,"ping",this.onping.bind(this)),nt(t,"data",this.ondata.bind(this)),nt(t,"error",this.onerror.bind(this)),nt(t,"close",this.onclose.bind(this)),nt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Zo(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Rp(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Nr={};function ro(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Qy(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=Nr[i]&&o in Nr[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let u;return l?u=new Fl(r,t):(Nr[i]||(Nr[i]=new Fl(r,t)),u=Nr[i]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}Object.assign(ro,{Manager:Fl,Socket:Rp,io:ro,connect:ro});function a0(){const[e,t]=v.useState(null),[n,r]=v.useState(!1),[i,o]=v.useState(null),[s,l]=v.useState([]);v.useEffect(()=>{const g=ro({transports:["websocket","polling"]});return g.on("connect",()=>{r(!0)}),g.on("disconnect",()=>{r(!1)}),g.on("connected",S=>{o(S.taskRunner)}),g.on("afk_progress",S=>{o(S)}),g.on("task_log",S=>{l(x=>[...x.slice(-499),S])}),t(g),()=>{g.close()}},[]);const u=v.useCallback(()=>{l([])},[]),a=v.useCallback(g=>(e==null||e.on("task_created",g),()=>{e==null||e.off("task_created",g)}),[e]),d=v.useCallback(g=>(e==null||e.on("task_updated",g),()=>{e==null||e.off("task_updated",g)}),[e]),f=v.useCallback(g=>(e==null||e.on("task_deleted",g),()=>{e==null||e.off("task_deleted",g)}),[e]),m=v.useCallback(g=>(e==null||e.on("tasks_reordered",g),()=>{e==null||e.off("tasks_reordered",g)}),[e]);return{isConnected:n,afkProgress:i,logs:s,clearLogs:u,onTaskCreated:a,onTaskUpdated:d,onTaskDeleted:f,onTasksReordered:m}}const Rc=[{id:"pending",title:"Backlog"},{id:"in_progress",title:"In Progress"},{id:"completed",title:"Completed"}];function c0(){const[e,t]=v.useState([]),[n,r]=v.useState(null),[i,o]=v.useState(!1),[s,l]=v.useState(!1),[u,a]=v.useState(!0),[d,f]=v.useState(null),{isConnected:m,afkProgress:g,logs:S,clearLogs:x,onTaskCreated:T,onTaskUpdated:p,onTaskDeleted:c}=a0();v.useEffect(()=>{(async()=>{try{a(!0);const[D,R]=await Promise.all([Rt.getTasks(),Rt.getStatus()]);t(D),r(R),f(null)}catch(D){f(D instanceof Error?D.message:"Failed to load data")}finally{a(!1)}})()},[]),v.useEffect(()=>{const k=T(A=>{t(V=>[...V,A])}),D=p(A=>{t(V=>V.map($=>$.id===A.id?A:$))}),R=c(({id:A})=>{t(V=>V.filter($=>$.id!==A))});return()=>{k(),D(),R()}},[T,p,c]),v.useEffect(()=>{(async()=>{try{const D=await Rt.getStatus();r(D)}catch{}})()},[e]);const h=v.useCallback(async k=>{try{await Rt.createTask(k),o(!1)}catch(D){f(D instanceof Error?D.message:"Failed to create task")}},[]),w=v.useCallback(async(k,D)=>{try{await Rt.updateTask(k,{status:D})}catch(R){f(R instanceof Error?R.message:"Failed to update task")}},[]),E=v.useCallback(async k=>{try{await Rt.deleteTask(k)}catch(D){f(D instanceof Error?D.message:"Failed to delete task")}},[]),N=v.useCallback(async k=>{const{active:D,over:R}=k;if(!R)return;const A=D.id,V=R.id;if(Rc.some($=>$.id===V)){const $=V,he=e.find(wt=>wt.id===A);he&&he.status!==$&&await w(A,$)}},[e,w]),_=k=>e.filter(D=>D.status===k).sort((D,R)=>D.priority-R.priority);return u?y.jsx("div",{className:"min-h-screen flex items-center justify-center",children:y.jsx("div",{className:"text-ralph-muted",children:"Loading..."})}):y.jsxs("div",{className:"min-h-screen flex flex-col bg-ralph-bg",children:[y.jsx(sy,{project:(n==null?void 0:n.project)||"Unknown Project",branch:(n==null?void 0:n.branch)||"main",isConnected:m,onAddTask:()=>o(!0),onToggleLogs:()=>l(!s),isLogsOpen:s,isRunning:(g==null?void 0:g.status)==="running",pendingCount:(n==null?void 0:n.pendingTasks)||0}),d&&y.jsxs("div",{className:"bg-ralph-danger/20 border border-ralph-danger text-ralph-danger px-4 py-2 mx-4 mt-4 rounded",children:[d,y.jsx("button",{onClick:()=>f(null),className:"ml-4 underline",children:"Dismiss"})]}),y.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[y.jsx("main",{className:"flex-1 p-4 overflow-hidden",children:y.jsx(_v,{collisionDetection:Ng,onDragEnd:N,children:y.jsx("div",{className:"flex gap-4 h-full",children:Rc.map(k=>{const D=_(k.id);return y.jsx(ly,{id:k.id,title:k.title,count:D.length,children:y.jsx(jv,{items:D.map(R=>R.id),strategy:zv,children:D.map(R=>y.jsx(uy,{task:R,onDelete:()=>E(R.id)},R.id))})},k.id)})})})}),s&&y.jsx(cy,{logs:S,onClear:x,onClose:()=>l(!1)})]}),g&&g.status==="running"&&y.jsx(fy,{progress:g}),i&&y.jsx(ay,{onAdd:h,onClose:()=>o(!1)})]})}js.createRoot(document.getElementById("root")).render(y.jsx(ke.StrictMode,{children:y.jsx(c0,{})}));