code-coordinator 0.5.46__py3-none-any.whl

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 (295) hide show
  1. code_coordinator-0.5.46.dist-info/METADATA +625 -0
  2. code_coordinator-0.5.46.dist-info/RECORD +295 -0
  3. code_coordinator-0.5.46.dist-info/WHEEL +5 -0
  4. code_coordinator-0.5.46.dist-info/entry_points.txt +2 -0
  5. code_coordinator-0.5.46.dist-info/licenses/LICENSE +110 -0
  6. code_coordinator-0.5.46.dist-info/top_level.txt +1 -0
  7. coord/__init__.py +176 -0
  8. coord/_board_mapping.py +229 -0
  9. coord/acceptance.py +468 -0
  10. coord/acceptance_drivers.py +632 -0
  11. coord/agent.py +7517 -0
  12. coord/agent_app.py +1555 -0
  13. coord/agent_update.py +417 -0
  14. coord/agents/opencode/.gitignore +13 -0
  15. coord/agents/opencode/agents/work.md +129 -0
  16. coord/agents/opencode/routing.jsonc +49 -0
  17. coord/audit.py +301 -0
  18. coord/auto_loop.py +1440 -0
  19. coord/board_bool_guard.py +72 -0
  20. coord/board_service.py +141 -0
  21. coord/board_wire.py +309 -0
  22. coord/brain.py +581 -0
  23. coord/branch_model.py +214 -0
  24. coord/cargo_cache.py +258 -0
  25. coord/ci_github.py +386 -0
  26. coord/ci_store.py +560 -0
  27. coord/claim.py +353 -0
  28. coord/cli.py +454 -0
  29. coord/client.py +610 -0
  30. coord/commands/__init__.py +1 -0
  31. coord/commands/_common.py +329 -0
  32. coord/commands/acceptance.py +916 -0
  33. coord/commands/agent_ops.py +1339 -0
  34. coord/commands/audit.py +131 -0
  35. coord/commands/chat.py +320 -0
  36. coord/commands/dispatch.py +1780 -0
  37. coord/commands/dispatch_workers.py +4894 -0
  38. coord/commands/drive.py +616 -0
  39. coord/commands/drive_queue.py +1203 -0
  40. coord/commands/gate_a.py +217 -0
  41. coord/commands/gates.py +89 -0
  42. coord/commands/issues.py +681 -0
  43. coord/commands/lifecycle.py +513 -0
  44. coord/commands/merge.py +1900 -0
  45. coord/commands/milestone.py +2081 -0
  46. coord/commands/plan_followup.py +1243 -0
  47. coord/commands/plans.py +156 -0
  48. coord/commands/release.py +2232 -0
  49. coord/commands/report.py +341 -0
  50. coord/commands/review.py +1523 -0
  51. coord/commands/scorecard.py +252 -0
  52. coord/commands/sessions.py +1930 -0
  53. coord/commands/setup.py +576 -0
  54. coord/commands/status.py +2089 -0
  55. coord/commands/terminal.py +385 -0
  56. coord/commands/test_gate.py +775 -0
  57. coord/commands/tui.py +288 -0
  58. coord/comments.py +718 -0
  59. coord/config.py +3032 -0
  60. coord/conflict_fix.py +633 -0
  61. coord/dao.py +483 -0
  62. coord/dashboard/__init__.py +0 -0
  63. coord/dashboard/fixture.py +376 -0
  64. coord/dashboard/index.html +658 -0
  65. coord/dashboard/server.py +1894 -0
  66. coord/dashboard/terminal.py +382 -0
  67. coord/dashboard/webapp/.gitignore +9 -0
  68. coord/dashboard/webapp/components.json +17 -0
  69. coord/dashboard/webapp/dist/assets/Gallery-da3qNiIw.js +71 -0
  70. coord/dashboard/webapp/dist/assets/Terminal-9CEnUXvW.css +32 -0
  71. coord/dashboard/webapp/dist/assets/Terminal-skVFCxPU.js +63 -0
  72. coord/dashboard/webapp/dist/assets/index-DltfZR5f.js +184 -0
  73. coord/dashboard/webapp/dist/assets/index-Dq4kwTdw.css +1 -0
  74. coord/dashboard/webapp/dist/assets/workbox-window.prod.es5-BqEJf4Xk.js +2 -0
  75. coord/dashboard/webapp/dist/icons/icon-192.png +0 -0
  76. coord/dashboard/webapp/dist/icons/icon-512.png +0 -0
  77. coord/dashboard/webapp/dist/icons/icon.svg +5 -0
  78. coord/dashboard/webapp/dist/index.html +38 -0
  79. coord/dashboard/webapp/dist/manifest.webmanifest +1 -0
  80. coord/dashboard/webapp/dist/sw.js +1 -0
  81. coord/dashboard/webapp/dist/workbox-e4022e15.js +1 -0
  82. coord/dashboard/webapp/e2e/available-gates-terminal.spec.ts +75 -0
  83. coord/dashboard/webapp/e2e/deep-link.spec.ts +172 -0
  84. coord/dashboard/webapp/e2e/fixtureServer.ts +155 -0
  85. coord/dashboard/webapp/e2e/live-update-fixture.spec.ts +113 -0
  86. coord/dashboard/webapp/e2e/realtime.spec.ts +238 -0
  87. coord/dashboard/webapp/e2e/shell.spec.ts +309 -0
  88. coord/dashboard/webapp/e2e/smoke.spec.ts +191 -0
  89. coord/dashboard/webapp/e2e/terminal.spec.ts +420 -0
  90. coord/dashboard/webapp/e2e/theme.spec.ts +138 -0
  91. coord/dashboard/webapp/eslint.config.js +20 -0
  92. coord/dashboard/webapp/index.html +37 -0
  93. coord/dashboard/webapp/node_modules/flatted/python/flatted.py +144 -0
  94. coord/dashboard/webapp/package-lock.json +10584 -0
  95. coord/dashboard/webapp/package.json +63 -0
  96. coord/dashboard/webapp/playwright.acceptance.config.ts +166 -0
  97. coord/dashboard/webapp/playwright.config.ts +93 -0
  98. coord/dashboard/webapp/postcss.config.js +6 -0
  99. coord/dashboard/webapp/public/icons/icon-192.png +0 -0
  100. coord/dashboard/webapp/public/icons/icon-512.png +0 -0
  101. coord/dashboard/webapp/public/icons/icon.svg +5 -0
  102. coord/dashboard/webapp/src/App.tsx +140 -0
  103. coord/dashboard/webapp/src/api/client.ts +199 -0
  104. coord/dashboard/webapp/src/api/generated.ts +176 -0
  105. coord/dashboard/webapp/src/components/ConnectionBadge.tsx +52 -0
  106. coord/dashboard/webapp/src/components/Detail.tsx +800 -0
  107. coord/dashboard/webapp/src/components/Gallery.tsx +341 -0
  108. coord/dashboard/webapp/src/components/Home.tsx +435 -0
  109. coord/dashboard/webapp/src/components/MobileKeyBar.tsx +280 -0
  110. coord/dashboard/webapp/src/components/PanelHeader.tsx +59 -0
  111. coord/dashboard/webapp/src/components/PipelineCard.tsx +168 -0
  112. coord/dashboard/webapp/src/components/SessionCard.tsx +99 -0
  113. coord/dashboard/webapp/src/components/SessionDetail.tsx +140 -0
  114. coord/dashboard/webapp/src/components/SessionsList.tsx +81 -0
  115. coord/dashboard/webapp/src/components/Terminal.tsx +376 -0
  116. coord/dashboard/webapp/src/components/__tests__/ConnectionBadge.test.tsx +81 -0
  117. coord/dashboard/webapp/src/components/__tests__/Detail.test.tsx +680 -0
  118. coord/dashboard/webapp/src/components/__tests__/Gallery.test.tsx +83 -0
  119. coord/dashboard/webapp/src/components/__tests__/Home.test.tsx +271 -0
  120. coord/dashboard/webapp/src/components/__tests__/MobileKeyBar.test.tsx +197 -0
  121. coord/dashboard/webapp/src/components/__tests__/PipelineCard.test.tsx +143 -0
  122. coord/dashboard/webapp/src/components/__tests__/SessionCard.test.tsx +106 -0
  123. coord/dashboard/webapp/src/components/__tests__/Terminal.test.tsx +504 -0
  124. coord/dashboard/webapp/src/components/ui/badge.tsx +41 -0
  125. coord/dashboard/webapp/src/components/ui/button.tsx +54 -0
  126. coord/dashboard/webapp/src/components/ui/card.tsx +55 -0
  127. coord/dashboard/webapp/src/components/ui/dialog.tsx +99 -0
  128. coord/dashboard/webapp/src/components/ui/dropdown-menu.tsx +189 -0
  129. coord/dashboard/webapp/src/components/ui/empty-state.tsx +35 -0
  130. coord/dashboard/webapp/src/components/ui/sheet.tsx +123 -0
  131. coord/dashboard/webapp/src/components/ui/skeleton.tsx +9 -0
  132. coord/dashboard/webapp/src/components/ui/tabs.tsx +55 -0
  133. coord/dashboard/webapp/src/components/ui/theme-provider.tsx +78 -0
  134. coord/dashboard/webapp/src/components/ui/theme-toggle.tsx +20 -0
  135. coord/dashboard/webapp/src/components/ui/toast.tsx +123 -0
  136. coord/dashboard/webapp/src/components/ui/toaster.tsx +30 -0
  137. coord/dashboard/webapp/src/components/ui/tooltip.tsx +26 -0
  138. coord/dashboard/webapp/src/components/ui/use-toast.ts +134 -0
  139. coord/dashboard/webapp/src/index.css +210 -0
  140. coord/dashboard/webapp/src/lib/pipeline.ts +29 -0
  141. coord/dashboard/webapp/src/lib/utils.ts +6 -0
  142. coord/dashboard/webapp/src/main.tsx +46 -0
  143. coord/dashboard/webapp/src/realtime/RealtimeProvider.tsx +112 -0
  144. coord/dashboard/webapp/src/realtime/__tests__/RealtimeProvider.test.tsx +189 -0
  145. coord/dashboard/webapp/src/realtime/__tests__/connection.test.ts +255 -0
  146. coord/dashboard/webapp/src/realtime/connection.ts +227 -0
  147. coord/dashboard/webapp/src/realtime/events.ts +100 -0
  148. coord/dashboard/webapp/src/routes/__tests__/paths.test.ts +92 -0
  149. coord/dashboard/webapp/src/routes/paths.ts +92 -0
  150. coord/dashboard/webapp/src/shell/ActivityRail.tsx +335 -0
  151. coord/dashboard/webapp/src/shell/AppShell.tsx +276 -0
  152. coord/dashboard/webapp/src/shell/ComingSoon.tsx +33 -0
  153. coord/dashboard/webapp/src/shell/EmptyDetail.tsx +26 -0
  154. coord/dashboard/webapp/src/shell/RouteNotFound.tsx +33 -0
  155. coord/dashboard/webapp/src/shell/ShellLayout.tsx +147 -0
  156. coord/dashboard/webapp/src/shell/StatusBar.tsx +46 -0
  157. coord/dashboard/webapp/src/shell/__tests__/ShellLayout.test.tsx +520 -0
  158. coord/dashboard/webapp/src/shell/__tests__/shellState.test.ts +95 -0
  159. coord/dashboard/webapp/src/shell/__tests__/stubViewport.ts +40 -0
  160. coord/dashboard/webapp/src/shell/breakpoints.ts +87 -0
  161. coord/dashboard/webapp/src/shell/railItems.ts +105 -0
  162. coord/dashboard/webapp/src/shell/shellState.ts +174 -0
  163. coord/dashboard/webapp/src/shell/useRegionFocus.ts +95 -0
  164. coord/dashboard/webapp/src/test-setup.ts +41 -0
  165. coord/dashboard/webapp/src/vite-env.d.ts +2 -0
  166. coord/dashboard/webapp/tailwind.config.js +140 -0
  167. coord/dashboard/webapp/tsconfig.json +25 -0
  168. coord/dashboard/webapp/tsconfig.node.json +11 -0
  169. coord/dashboard/webapp/vite.config.ts +71 -0
  170. coord/db.py +1076 -0
  171. coord/dead_end.py +332 -0
  172. coord/deploy/README.md +33 -0
  173. coord/deploy/coord-agent.service +89 -0
  174. coord/deploy/coord-db-backup.service +60 -0
  175. coord/deploy/coord-db-backup.sh +74 -0
  176. coord/deploy/coord-db-backup.timer +18 -0
  177. coord/deploy/coord-drive-queue.service +117 -0
  178. coord/deploy/coord-drive-queue.timer +39 -0
  179. coord/deploy/coord-notify.service +48 -0
  180. coord/deploy/coord-notify.timer +24 -0
  181. coord/deploy/coord-release-propagate.service +83 -0
  182. coord/deploy/coord-release-propagate.timer +38 -0
  183. coord/deploy/coord-release-window.service +119 -0
  184. coord/deploy/coord-release-window.timer +36 -0
  185. coord/deploy/coord-serve.service +82 -0
  186. coord/deploy/coord-web-dist-build.service +43 -0
  187. coord/deploy/coord-web-dist-build.timer +36 -0
  188. coord/deploy/coord-web.service +125 -0
  189. coord/deploy_manifest.py +80 -0
  190. coord/deploy_units.py +384 -0
  191. coord/deps.py +115 -0
  192. coord/diagnose.py +1623 -0
  193. coord/dispatch.py +1009 -0
  194. coord/dist_name.py +123 -0
  195. coord/drive.py +3101 -0
  196. coord/drive_queue.py +2298 -0
  197. coord/drive_state.py +870 -0
  198. coord/events.py +381 -0
  199. coord/failure_class.py +914 -0
  200. coord/filelock.py +168 -0
  201. coord/fleet_config_health.py +300 -0
  202. coord/freshness.py +206 -0
  203. coord/gate_a.py +469 -0
  204. coord/gate_b.py +411 -0
  205. coord/gate_snapshot.py +385 -0
  206. coord/gates.py +582 -0
  207. coord/github_ops.py +1954 -0
  208. coord/goal.py +125 -0
  209. coord/graph_health.py +348 -0
  210. coord/health/__init__.py +69 -0
  211. coord/health/aggregate.py +129 -0
  212. coord/health/checks/__init__.py +13 -0
  213. coord/health/checks/agent_install.py +280 -0
  214. coord/health/checks/cargo_targets.py +171 -0
  215. coord/health/checks/claude_binary.py +65 -0
  216. coord/health/checks/deploy_lane_facts.py +458 -0
  217. coord/health/checks/disk.py +99 -0
  218. coord/health/checks/fleet_board.py +89 -0
  219. coord/health/checks/fleet_deploy_lanes.py +469 -0
  220. coord/health/checks/fleet_phantom.py +69 -0
  221. coord/health/checks/fleet_unit_drift.py +151 -0
  222. coord/health/checks/graph.py +192 -0
  223. coord/health/checks/plan_usage.py +88 -0
  224. coord/health/checks/repo_state.py +161 -0
  225. coord/health/checks/spawned_coord.py +465 -0
  226. coord/health/checks/timer_active.py +254 -0
  227. coord/health/checks/toolchain.py +547 -0
  228. coord/health/checks/unit_drift.py +648 -0
  229. coord/health/checks/unit_enablement.py +171 -0
  230. coord/health/checks/worktrees.py +96 -0
  231. coord/health/cli.py +121 -0
  232. coord/health/context.py +106 -0
  233. coord/health/fleet_snapshot.py +477 -0
  234. coord/health/models.py +250 -0
  235. coord/health/pypi.py +231 -0
  236. coord/health/registry.py +240 -0
  237. coord/health/render.py +82 -0
  238. coord/health/units.py +60 -0
  239. coord/hooks.py +106 -0
  240. coord/housekeeping.py +204 -0
  241. coord/interactive.py +4286 -0
  242. coord/issue_store.py +1496 -0
  243. coord/liveness_auditor.py +293 -0
  244. coord/machine_pause.py +755 -0
  245. coord/merge_queue.py +4681 -0
  246. coord/milestone_chat.py +600 -0
  247. coord/milestone_dispatch.py +943 -0
  248. coord/milestone_gate.py +709 -0
  249. coord/milestone_order.py +840 -0
  250. coord/mock_author.py +334 -0
  251. coord/models.py +891 -0
  252. coord/network.py +269 -0
  253. coord/new_issue_chat.py +229 -0
  254. coord/notify.py +3226 -0
  255. coord/openapi.py +404 -0
  256. coord/overlap_fence.py +133 -0
  257. coord/parentage.py +200 -0
  258. coord/parentage_github.py +58 -0
  259. coord/pipeline.py +481 -0
  260. coord/plan_parser.py +266 -0
  261. coord/plans.py +543 -0
  262. coord/platform_paths.py +43 -0
  263. coord/pr_body_lint.py +67 -0
  264. coord/prereqs.py +533 -0
  265. coord/progress.py +425 -0
  266. coord/providers/__init__.py +683 -0
  267. coord/providers/base.py +218 -0
  268. coord/providers/claude.py +284 -0
  269. coord/providers/claude_pty.py +610 -0
  270. coord/providers/opencode.py +896 -0
  271. coord/reconcile.py +2233 -0
  272. coord/refine_chat.py +485 -0
  273. coord/release_cordon.py +525 -0
  274. coord/release_propagate.py +1176 -0
  275. coord/release_verify.py +777 -0
  276. coord/release_window.py +322 -0
  277. coord/reports.py +1643 -0
  278. coord/revalidate.py +1101 -0
  279. coord/review.py +3317 -0
  280. coord/scorecard.py +484 -0
  281. coord/serve_app.py +7192 -0
  282. coord/skills/update-issue/SKILL.md +93 -0
  283. coord/smoke.py +1030 -0
  284. coord/split_work.py +210 -0
  285. coord/stage_projection.py +650 -0
  286. coord/state.py +5720 -0
  287. coord/test_author.py +1064 -0
  288. coord/test_chat.py +352 -0
  289. coord/test_orchestrator.py +494 -0
  290. coord/test_report.py +178 -0
  291. coord/tui_release.py +271 -0
  292. coord/usage.py +753 -0
  293. coord/usage_limits.py +358 -0
  294. coord/usage_rollup.py +709 -0
  295. coord/worker_events.py +954 -0
@@ -0,0 +1,184 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Terminal-skVFCxPU.js","assets/Terminal-9CEnUXvW.css"])))=>i.map(i=>d[i]);
2
+ var hc=e=>{throw TypeError(e)};var Gi=(e,t,n)=>t.has(e)||hc("Cannot "+n);var w=(e,t,n)=>(Gi(e,t,"read from private field"),n?n.call(e):t.get(e)),z=(e,t,n)=>t.has(e)?hc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),L=(e,t,n,r)=>(Gi(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),H=(e,t,n)=>(Gi(e,t,"access private method"),n);var mo=(e,t,n,r)=>({set _(s){L(e,t,s,n)},get _(){return w(e,t,r)}});function Rg(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(r,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function jg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yf={exports:{}},bi={},xf={exports:{}},V={};/**
3
+ * @license React
4
+ * react.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var oo=Symbol.for("react.element"),Ig=Symbol.for("react.portal"),Og=Symbol.for("react.fragment"),Lg=Symbol.for("react.strict_mode"),Mg=Symbol.for("react.profiler"),Dg=Symbol.for("react.provider"),Ag=Symbol.for("react.context"),Fg=Symbol.for("react.forward_ref"),zg=Symbol.for("react.suspense"),Ug=Symbol.for("react.memo"),$g=Symbol.for("react.lazy"),mc=Symbol.iterator;function Bg(e){return e===null||typeof e!="object"?null:(e=mc&&e[mc]||e["@@iterator"],typeof e=="function"?e:null)}var wf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sf=Object.assign,Ef={};function Jr(e,t,n){this.props=e,this.context=t,this.refs=Ef,this.updater=n||wf}Jr.prototype.isReactComponent={};Jr.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")};Jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cf(){}Cf.prototype=Jr.prototype;function Ya(e,t,n){this.props=e,this.context=t,this.refs=Ef,this.updater=n||wf}var Xa=Ya.prototype=new Cf;Xa.constructor=Ya;Sf(Xa,Jr.prototype);Xa.isPureReactComponent=!0;var gc=Array.isArray,kf=Object.prototype.hasOwnProperty,Ja={current:null},bf={key:!0,ref:!0,__self:!0,__source:!0};function Pf(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)kf.call(t,r)&&!bf.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];s.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:oo,type:e,key:o,ref:i,props:s,_owner:Ja.current}}function Wg(e,t){return{$$typeof:oo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Za(e){return typeof e=="object"&&e!==null&&e.$$typeof===oo}function Vg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var vc=/\/+/g;function qi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Vg(""+e.key):t.toString(36)}function Ao(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case oo:case Ig:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+qi(i,0):r,gc(s)?(n="",e!=null&&(n=e.replace(vc,"$&/")+"/"),Ao(s,t,n,"",function(u){return u})):s!=null&&(Za(s)&&(s=Wg(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(vc,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",gc(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+qi(o,l);i+=Ao(o,t,n,a,s)}else if(a=Bg(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+qi(o,l++),i+=Ao(o,t,n,a,s);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 i}function go(e,t,n){if(e==null)return e;var r=[],s=0;return Ao(e,r,"","",function(o){return t.call(n,o,s++)}),r}function Qg(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ae={current:null},Fo={transition:null},Hg={ReactCurrentDispatcher:Ae,ReactCurrentBatchConfig:Fo,ReactCurrentOwner:Ja};function _f(){throw Error("act(...) is not supported in production builds of React.")}V.Children={map:go,forEach:function(e,t,n){go(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return go(e,function(){t++}),t},toArray:function(e){return go(e,function(t){return t})||[]},only:function(e){if(!Za(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};V.Component=Jr;V.Fragment=Og;V.Profiler=Mg;V.PureComponent=Ya;V.StrictMode=Lg;V.Suspense=zg;V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hg;V.act=_f;V.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=Sf({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Ja.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)kf.call(t,a)&&!bf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:oo,type:e.type,key:s,ref:o,props:r,_owner:i}};V.createContext=function(e){return e={$$typeof:Ag,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Dg,_context:e},e.Consumer=e};V.createElement=Pf;V.createFactory=function(e){var t=Pf.bind(null,e);return t.type=e,t};V.createRef=function(){return{current:null}};V.forwardRef=function(e){return{$$typeof:Fg,render:e}};V.isValidElement=Za;V.lazy=function(e){return{$$typeof:$g,_payload:{_status:-1,_result:e},_init:Qg}};V.memo=function(e,t){return{$$typeof:Ug,type:e,compare:t===void 0?null:t}};V.startTransition=function(e){var t=Fo.transition;Fo.transition={};try{e()}finally{Fo.transition=t}};V.unstable_act=_f;V.useCallback=function(e,t){return Ae.current.useCallback(e,t)};V.useContext=function(e){return Ae.current.useContext(e)};V.useDebugValue=function(){};V.useDeferredValue=function(e){return Ae.current.useDeferredValue(e)};V.useEffect=function(e,t){return Ae.current.useEffect(e,t)};V.useId=function(){return Ae.current.useId()};V.useImperativeHandle=function(e,t,n){return Ae.current.useImperativeHandle(e,t,n)};V.useInsertionEffect=function(e,t){return Ae.current.useInsertionEffect(e,t)};V.useLayoutEffect=function(e,t){return Ae.current.useLayoutEffect(e,t)};V.useMemo=function(e,t){return Ae.current.useMemo(e,t)};V.useReducer=function(e,t,n){return Ae.current.useReducer(e,t,n)};V.useRef=function(e){return Ae.current.useRef(e)};V.useState=function(e){return Ae.current.useState(e)};V.useSyncExternalStore=function(e,t,n){return Ae.current.useSyncExternalStore(e,t,n)};V.useTransition=function(){return Ae.current.useTransition()};V.version="18.3.1";xf.exports=V;var v=xf.exports;const Nf=jg(v),io=Rg({__proto__:null,default:Nf},[v]);/**
11
+ * @license React
12
+ * react-jsx-runtime.production.min.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var Kg=v,Gg=Symbol.for("react.element"),qg=Symbol.for("react.fragment"),Yg=Object.prototype.hasOwnProperty,Xg=Kg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Jg={key:!0,ref:!0,__self:!0,__source:!0};function Tf(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Yg.call(t,r)&&!Jg.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Gg,type:e,key:o,ref:i,props:s,_owner:Xg.current}}bi.Fragment=qg;bi.jsx=Tf;bi.jsxs=Tf;yf.exports=bi;var d=yf.exports,_l={},Rf={exports:{}},et={},jf={exports:{}},If={};/**
19
+ * @license React
20
+ * scheduler.production.min.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */(function(e){function t(R,A){var U=R.length;R.push(A);e:for(;0<U;){var Q=U-1>>>1,fe=R[Q];if(0<s(fe,A))R[Q]=A,R[U]=fe,U=Q;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var A=R[0],U=R.pop();if(U!==A){R[0]=U;e:for(var Q=0,fe=R.length,ur=fe>>>1;Q<ur;){var ct=2*(Q+1)-1,Gt=R[ct],St=ct+1,ho=R[St];if(0>s(Gt,U))St<fe&&0>s(ho,Gt)?(R[Q]=ho,R[St]=U,Q=St):(R[Q]=Gt,R[ct]=U,Q=ct);else if(St<fe&&0>s(ho,U))R[Q]=ho,R[St]=U,Q=St;else break e}}return A}function s(R,A){var U=R.sortIndex-A.sortIndex;return U!==0?U:R.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var a=[],u=[],f=1,c=null,g=3,x=!1,S=!1,E=!1,C=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(R){for(var A=n(u);A!==null;){if(A.callback===null)r(u);else if(A.startTime<=R)r(u),A.sortIndex=A.expirationTime,t(a,A);else break;A=n(u)}}function y(R){if(E=!1,m(R),!S)if(n(a)!==null)S=!0,$(b);else{var A=n(u);A!==null&&q(y,A.startTime-R)}}function b(R,A){S=!1,E&&(E=!1,p(P),P=-1),x=!0;var U=g;try{for(m(A),c=n(a);c!==null&&(!(c.expirationTime>A)||R&&!I());){var Q=c.callback;if(typeof Q=="function"){c.callback=null,g=c.priorityLevel;var fe=Q(c.expirationTime<=A);A=e.unstable_now(),typeof fe=="function"?c.callback=fe:c===n(a)&&r(a),m(A)}else r(a);c=n(a)}if(c!==null)var ur=!0;else{var ct=n(u);ct!==null&&q(y,ct.startTime-A),ur=!1}return ur}finally{c=null,g=U,x=!1}}var k=!1,_=null,P=-1,O=5,j=-1;function I(){return!(e.unstable_now()-j<O)}function T(){if(_!==null){var R=e.unstable_now();j=R;var A=!0;try{A=_(!0,R)}finally{A?D():(k=!1,_=null)}}else k=!1}var D;if(typeof h=="function")D=function(){h(T)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,ce=B.port2;B.port1.onmessage=T,D=function(){ce.postMessage(null)}}else D=function(){C(T,0)};function $(R){_=R,k||(k=!0,D())}function q(R,A){P=C(function(){R(e.unstable_now())},A)}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(R){R.callback=null},e.unstable_continueExecution=function(){S||x||(S=!0,$(b))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(R){switch(g){case 1:case 2:case 3:var A=3;break;default:A=g}var U=g;g=A;try{return R()}finally{g=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,A){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var U=g;g=R;try{return A()}finally{g=U}},e.unstable_scheduleCallback=function(R,A,U){var Q=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?Q+U:Q):U=Q,R){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=U+fe,R={id:f++,callback:A,priorityLevel:R,startTime:U,expirationTime:fe,sortIndex:-1},U>Q?(R.sortIndex=U,t(u,R),n(a)===null&&R===n(u)&&(E?(p(P),P=-1):E=!0,q(y,U-Q))):(R.sortIndex=fe,t(a,R),S||x||(S=!0,$(b))),R},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(R){var A=g;return function(){var U=g;g=A;try{return R.apply(this,arguments)}finally{g=U}}}})(If);jf.exports=If;var Zg=jf.exports;/**
27
+ * @license React
28
+ * react-dom.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var ev=v,Ze=Zg;function N(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 Of=new Set,Is={};function sr(e,t){Vr(e,t),Vr(e+"Capture",t)}function Vr(e,t){for(Is[e]=t,e=0;e<t.length;e++)Of.add(t[e])}var Bt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nl=Object.prototype.hasOwnProperty,tv=/^[: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]*$/,yc={},xc={};function nv(e){return Nl.call(xc,e)?!0:Nl.call(yc,e)?!1:tv.test(e)?xc[e]=!0:(yc[e]=!0,!1)}function rv(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 sv(e,t,n,r){if(t===null||typeof t>"u"||rv(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 Fe(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new Fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new Fe(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){Ne[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var eu=/[\-:]([a-z])/g;function tu(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(eu,tu);Ne[t]=new Fe(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(eu,tu);Ne[t]=new Fe(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(eu,tu);Ne[t]=new Fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function nu(e,t,n,r){var s=Ne.hasOwnProperty(t)?Ne[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(sv(t,n,s,r)&&(n=null),r||s===null?nv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Kt=ev.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vo=Symbol.for("react.element"),fr=Symbol.for("react.portal"),pr=Symbol.for("react.fragment"),ru=Symbol.for("react.strict_mode"),Tl=Symbol.for("react.profiler"),Lf=Symbol.for("react.provider"),Mf=Symbol.for("react.context"),su=Symbol.for("react.forward_ref"),Rl=Symbol.for("react.suspense"),jl=Symbol.for("react.suspense_list"),ou=Symbol.for("react.memo"),en=Symbol.for("react.lazy"),Df=Symbol.for("react.offscreen"),wc=Symbol.iterator;function ss(e){return e===null||typeof e!="object"?null:(e=wc&&e[wc]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Object.assign,Yi;function hs(e){if(Yi===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Yi=t&&t[1]||""}return`
35
+ `+Yi+e}var Xi=!1;function Ji(e,t){if(!e||Xi)return"";Xi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
36
+ `),o=r.stack.split(`
37
+ `),i=s.length-1,l=o.length-1;1<=i&&0<=l&&s[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(s[i]!==o[l]){if(i!==1||l!==1)do if(i--,l--,0>l||s[i]!==o[l]){var a=`
38
+ `+s[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{Xi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hs(e):""}function ov(e){switch(e.tag){case 5:return hs(e.type);case 16:return hs("Lazy");case 13:return hs("Suspense");case 19:return hs("SuspenseList");case 0:case 2:case 15:return e=Ji(e.type,!1),e;case 11:return e=Ji(e.type.render,!1),e;case 1:return e=Ji(e.type,!0),e;default:return""}}function Il(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 pr:return"Fragment";case fr:return"Portal";case Tl:return"Profiler";case ru:return"StrictMode";case Rl:return"Suspense";case jl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Mf:return(e.displayName||"Context")+".Consumer";case Lf:return(e._context.displayName||"Context")+".Provider";case su:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ou:return t=e.displayName||null,t!==null?t:Il(e.type)||"Memo";case en:t=e._payload,e=e._init;try{return Il(e(t))}catch{}}return null}function iv(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 Il(t);case 8:return t===ru?"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 _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Af(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lv(e){var t=Af(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 s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yo(e){e._valueTracker||(e._valueTracker=lv(e))}function Ff(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Af(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zo(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 Ol(e,t){var n=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_n(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 zf(e,t){t=t.checked,t!=null&&nu(e,"checked",t,!1)}function Ll(e,t){zf(e,t);var n=_n(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")?Ml(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ml(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ec(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 Ml(e,t,n){(t!=="number"||Zo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ms=Array.isArray;function kr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+_n(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Dl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(ms(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:_n(n)}}function Uf(e,t){var n=_n(t.value),r=_n(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 kc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function $f(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 Al(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?$f(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xo,Bf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(xo=xo||document.createElement("div"),xo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Os(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ss={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},av=["Webkit","ms","Moz","O"];Object.keys(Ss).forEach(function(e){av.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ss[t]=Ss[e]})});function Wf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ss.hasOwnProperty(e)&&Ss[e]?(""+t).trim():t+"px"}function Vf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Wf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var uv=ie({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fl(e,t){if(t){if(uv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function zl(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 Ul=null;function iu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $l=null,br=null,Pr=null;function bc(e){if(e=uo(e)){if(typeof $l!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Ri(t),$l(e.stateNode,e.type,t))}}function Qf(e){br?Pr?Pr.push(e):Pr=[e]:br=e}function Hf(){if(br){var e=br,t=Pr;if(Pr=br=null,bc(e),t)for(e=0;e<t.length;e++)bc(t[e])}}function Kf(e,t){return e(t)}function Gf(){}var Zi=!1;function qf(e,t,n){if(Zi)return e(t,n);Zi=!0;try{return Kf(e,t,n)}finally{Zi=!1,(br!==null||Pr!==null)&&(Gf(),Hf())}}function Ls(e,t){var n=e.stateNode;if(n===null)return null;var r=Ri(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(N(231,t,typeof n));return n}var Bl=!1;if(Bt)try{var os={};Object.defineProperty(os,"passive",{get:function(){Bl=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{Bl=!1}function cv(e,t,n,r,s,o,i,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Es=!1,ei=null,ti=!1,Wl=null,dv={onError:function(e){Es=!0,ei=e}};function fv(e,t,n,r,s,o,i,l,a){Es=!1,ei=null,cv.apply(dv,arguments)}function pv(e,t,n,r,s,o,i,l,a){if(fv.apply(this,arguments),Es){if(Es){var u=ei;Es=!1,ei=null}else throw Error(N(198));ti||(ti=!0,Wl=u)}}function or(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 Yf(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 Pc(e){if(or(e)!==e)throw Error(N(188))}function hv(e){var t=e.alternate;if(!t){if(t=or(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return Pc(s),e;if(o===r)return Pc(s),t;o=o.sibling}throw Error(N(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function Xf(e){return e=hv(e),e!==null?Jf(e):null}function Jf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Jf(e);if(t!==null)return t;e=e.sibling}return null}var Zf=Ze.unstable_scheduleCallback,_c=Ze.unstable_cancelCallback,mv=Ze.unstable_shouldYield,gv=Ze.unstable_requestPaint,de=Ze.unstable_now,vv=Ze.unstable_getCurrentPriorityLevel,lu=Ze.unstable_ImmediatePriority,ep=Ze.unstable_UserBlockingPriority,ni=Ze.unstable_NormalPriority,yv=Ze.unstable_LowPriority,tp=Ze.unstable_IdlePriority,Pi=null,Nt=null;function xv(e){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Pi,e,void 0,(e.current.flags&128)===128)}catch{}}var gt=Math.clz32?Math.clz32:Ev,wv=Math.log,Sv=Math.LN2;function Ev(e){return e>>>=0,e===0?32:31-(wv(e)/Sv|0)|0}var wo=64,So=4194304;function gs(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 ri(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~s;l!==0?r=gs(l):(o&=i,o!==0&&(r=gs(o)))}else i=n&~s,i!==0?r=gs(i):o!==0&&(r=gs(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,o=t&-t,s>=o||s===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-gt(t),s=1<<n,r|=e[n],t&=~s;return r}function Cv(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 kv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-gt(o),l=1<<i,a=s[i];a===-1?(!(l&n)||l&r)&&(s[i]=Cv(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function Vl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function np(){var e=wo;return wo<<=1,!(wo&4194240)&&(wo=64),e}function el(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gt(t),e[t]=n}function bv(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 s=31-gt(n),o=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~o}}function au(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-gt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var X=0;function rp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var sp,uu,op,ip,lp,Ql=!1,Eo=[],vn=null,yn=null,xn=null,Ms=new Map,Ds=new Map,rn=[],Pv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nc(e,t){switch(e){case"focusin":case"focusout":vn=null;break;case"dragenter":case"dragleave":yn=null;break;case"mouseover":case"mouseout":xn=null;break;case"pointerover":case"pointerout":Ms.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ds.delete(t.pointerId)}}function is(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},t!==null&&(t=uo(t),t!==null&&uu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function _v(e,t,n,r,s){switch(t){case"focusin":return vn=is(vn,e,t,n,r,s),!0;case"dragenter":return yn=is(yn,e,t,n,r,s),!0;case"mouseover":return xn=is(xn,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return Ms.set(o,is(Ms.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,Ds.set(o,is(Ds.get(o)||null,e,t,n,r,s)),!0}return!1}function ap(e){var t=An(e.target);if(t!==null){var n=or(t);if(n!==null){if(t=n.tag,t===13){if(t=Yf(n),t!==null){e.blockedOn=t,lp(e.priority,function(){op(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 zo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ul=r,n.target.dispatchEvent(r),Ul=null}else return t=uo(n),t!==null&&uu(t),e.blockedOn=n,!1;t.shift()}return!0}function Tc(e,t,n){zo(e)&&n.delete(t)}function Nv(){Ql=!1,vn!==null&&zo(vn)&&(vn=null),yn!==null&&zo(yn)&&(yn=null),xn!==null&&zo(xn)&&(xn=null),Ms.forEach(Tc),Ds.forEach(Tc)}function ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Ql||(Ql=!0,Ze.unstable_scheduleCallback(Ze.unstable_NormalPriority,Nv)))}function As(e){function t(s){return ls(s,e)}if(0<Eo.length){ls(Eo[0],e);for(var n=1;n<Eo.length;n++){var r=Eo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(vn!==null&&ls(vn,e),yn!==null&&ls(yn,e),xn!==null&&ls(xn,e),Ms.forEach(t),Ds.forEach(t),n=0;n<rn.length;n++)r=rn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<rn.length&&(n=rn[0],n.blockedOn===null);)ap(n),n.blockedOn===null&&rn.shift()}var _r=Kt.ReactCurrentBatchConfig,si=!0;function Tv(e,t,n,r){var s=X,o=_r.transition;_r.transition=null;try{X=1,cu(e,t,n,r)}finally{X=s,_r.transition=o}}function Rv(e,t,n,r){var s=X,o=_r.transition;_r.transition=null;try{X=4,cu(e,t,n,r)}finally{X=s,_r.transition=o}}function cu(e,t,n,r){if(si){var s=Hl(e,t,n,r);if(s===null)cl(e,t,r,oi,n),Nc(e,r);else if(_v(s,e,t,n,r))r.stopPropagation();else if(Nc(e,r),t&4&&-1<Pv.indexOf(e)){for(;s!==null;){var o=uo(s);if(o!==null&&sp(o),o=Hl(e,t,n,r),o===null&&cl(e,t,r,oi,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else cl(e,t,r,null,n)}}var oi=null;function Hl(e,t,n,r){if(oi=null,e=iu(r),e=An(e),e!==null)if(t=or(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Yf(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 oi=e,null}function up(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(vv()){case lu:return 1;case ep:return 4;case ni:case yv:return 16;case tp:return 536870912;default:return 16}default:return 16}}var hn=null,du=null,Uo=null;function cp(){if(Uo)return Uo;var e,t=du,n=t.length,r,s="value"in hn?hn.value:hn.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return Uo=s.slice(e,1<r?1-r:void 0)}function $o(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 Co(){return!0}function Rc(){return!1}function tt(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,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)?Co:Rc,this.isPropagationStopped=Rc,this}return ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Co)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Co)},persist:function(){},isPersistent:Co}),t}var Zr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fu=tt(Zr),ao=ie({},Zr,{view:0,detail:0}),jv=tt(ao),tl,nl,as,_i=ie({},ao,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pu,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!==as&&(as&&e.type==="mousemove"?(tl=e.screenX-as.screenX,nl=e.screenY-as.screenY):nl=tl=0,as=e),tl)},movementY:function(e){return"movementY"in e?e.movementY:nl}}),jc=tt(_i),Iv=ie({},_i,{dataTransfer:0}),Ov=tt(Iv),Lv=ie({},ao,{relatedTarget:0}),rl=tt(Lv),Mv=ie({},Zr,{animationName:0,elapsedTime:0,pseudoElement:0}),Dv=tt(Mv),Av=ie({},Zr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fv=tt(Av),zv=ie({},Zr,{data:0}),Ic=tt(zv),Uv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$v={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"},Bv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Bv[e])?!!t[e]:!1}function pu(){return Wv}var Vv=ie({},ao,{key:function(e){if(e.key){var t=Uv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$o(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$v[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pu,charCode:function(e){return e.type==="keypress"?$o(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$o(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qv=tt(Vv),Hv=ie({},_i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Oc=tt(Hv),Kv=ie({},ao,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pu}),Gv=tt(Kv),qv=ie({},Zr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yv=tt(qv),Xv=ie({},_i,{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}),Jv=tt(Xv),Zv=[9,13,27,32],hu=Bt&&"CompositionEvent"in window,Cs=null;Bt&&"documentMode"in document&&(Cs=document.documentMode);var ey=Bt&&"TextEvent"in window&&!Cs,dp=Bt&&(!hu||Cs&&8<Cs&&11>=Cs),Lc=" ",Mc=!1;function fp(e,t){switch(e){case"keyup":return Zv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hr=!1;function ty(e,t){switch(e){case"compositionend":return pp(t);case"keypress":return t.which!==32?null:(Mc=!0,Lc);case"textInput":return e=t.data,e===Lc&&Mc?null:e;default:return null}}function ny(e,t){if(hr)return e==="compositionend"||!hu&&fp(e,t)?(e=cp(),Uo=du=hn=null,hr=!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 dp&&t.locale!=="ko"?null:t.data;default:return null}}var ry={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 Dc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ry[e.type]:t==="textarea"}function hp(e,t,n,r){Qf(r),t=ii(t,"onChange"),0<t.length&&(n=new fu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ks=null,Fs=null;function sy(e){bp(e,0)}function Ni(e){var t=vr(e);if(Ff(t))return e}function oy(e,t){if(e==="change")return t}var mp=!1;if(Bt){var sl;if(Bt){var ol="oninput"in document;if(!ol){var Ac=document.createElement("div");Ac.setAttribute("oninput","return;"),ol=typeof Ac.oninput=="function"}sl=ol}else sl=!1;mp=sl&&(!document.documentMode||9<document.documentMode)}function Fc(){ks&&(ks.detachEvent("onpropertychange",gp),Fs=ks=null)}function gp(e){if(e.propertyName==="value"&&Ni(Fs)){var t=[];hp(t,Fs,e,iu(e)),qf(sy,t)}}function iy(e,t,n){e==="focusin"?(Fc(),ks=t,Fs=n,ks.attachEvent("onpropertychange",gp)):e==="focusout"&&Fc()}function ly(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ni(Fs)}function ay(e,t){if(e==="click")return Ni(t)}function uy(e,t){if(e==="input"||e==="change")return Ni(t)}function cy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:cy;function zs(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Nl.call(t,s)||!xt(e[s],t[s]))return!1}return!0}function zc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Uc(e,t){var n=zc(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=zc(n)}}function vp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yp(){for(var e=window,t=Zo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zo(e.document)}return t}function mu(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 dy(e){var t=yp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vp(n.ownerDocument.documentElement,n)){if(r!==null&&mu(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 s=n.textContent.length,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!e.extend&&o>r&&(s=r,r=o,o=s),s=Uc(n,o);var i=Uc(n,r);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fy=Bt&&"documentMode"in document&&11>=document.documentMode,mr=null,Kl=null,bs=null,Gl=!1;function $c(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gl||mr==null||mr!==Zo(r)||(r=mr,"selectionStart"in r&&mu(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}),bs&&zs(bs,r)||(bs=r,r=ii(Kl,"onSelect"),0<r.length&&(t=new fu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function ko(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var gr={animationend:ko("Animation","AnimationEnd"),animationiteration:ko("Animation","AnimationIteration"),animationstart:ko("Animation","AnimationStart"),transitionend:ko("Transition","TransitionEnd")},il={},xp={};Bt&&(xp=document.createElement("div").style,"AnimationEvent"in window||(delete gr.animationend.animation,delete gr.animationiteration.animation,delete gr.animationstart.animation),"TransitionEvent"in window||delete gr.transitionend.transition);function Ti(e){if(il[e])return il[e];if(!gr[e])return e;var t=gr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xp)return il[e]=t[n];return e}var wp=Ti("animationend"),Sp=Ti("animationiteration"),Ep=Ti("animationstart"),Cp=Ti("transitionend"),kp=new Map,Bc="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 jn(e,t){kp.set(e,t),sr(t,[e])}for(var ll=0;ll<Bc.length;ll++){var al=Bc[ll],py=al.toLowerCase(),hy=al[0].toUpperCase()+al.slice(1);jn(py,"on"+hy)}jn(wp,"onAnimationEnd");jn(Sp,"onAnimationIteration");jn(Ep,"onAnimationStart");jn("dblclick","onDoubleClick");jn("focusin","onFocus");jn("focusout","onBlur");jn(Cp,"onTransitionEnd");Vr("onMouseEnter",["mouseout","mouseover"]);Vr("onMouseLeave",["mouseout","mouseover"]);Vr("onPointerEnter",["pointerout","pointerover"]);Vr("onPointerLeave",["pointerout","pointerover"]);sr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));sr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));sr("onBeforeInput",["compositionend","keypress","textInput","paste"]);sr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));sr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));sr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vs="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(" "),my=new Set("cancel close invalid load scroll toggle".split(" ").concat(vs));function Wc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,pv(r,t,void 0,e),e.currentTarget=null}function bp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&s.isPropagationStopped())break e;Wc(s,l,u),o=a}else for(i=0;i<r.length;i++){if(l=r[i],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&s.isPropagationStopped())break e;Wc(s,l,u),o=a}}}if(ti)throw e=Wl,ti=!1,Wl=null,e}function te(e,t){var n=t[Zl];n===void 0&&(n=t[Zl]=new Set);var r=e+"__bubble";n.has(r)||(Pp(t,e,2,!1),n.add(r))}function ul(e,t,n){var r=0;t&&(r|=4),Pp(n,e,r,t)}var bo="_reactListening"+Math.random().toString(36).slice(2);function Us(e){if(!e[bo]){e[bo]=!0,Of.forEach(function(n){n!=="selectionchange"&&(my.has(n)||ul(n,!1,e),ul(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bo]||(t[bo]=!0,ul("selectionchange",!1,t))}}function Pp(e,t,n,r){switch(up(t)){case 1:var s=Tv;break;case 4:s=Rv;break;default:s=cu}n=s.bind(null,t,n,e),s=void 0,!Bl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function cl(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===s||a.nodeType===8&&a.parentNode===s))return;i=i.return}for(;l!==null;){if(i=An(l),i===null)return;if(a=i.tag,a===5||a===6){r=o=i;continue e}l=l.parentNode}}r=r.return}qf(function(){var u=o,f=iu(n),c=[];e:{var g=kp.get(e);if(g!==void 0){var x=fu,S=e;switch(e){case"keypress":if($o(n)===0)break e;case"keydown":case"keyup":x=Qv;break;case"focusin":S="focus",x=rl;break;case"focusout":S="blur",x=rl;break;case"beforeblur":case"afterblur":x=rl;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":x=jc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=Ov;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Gv;break;case wp:case Sp:case Ep:x=Dv;break;case Cp:x=Yv;break;case"scroll":x=jv;break;case"wheel":x=Jv;break;case"copy":case"cut":case"paste":x=Fv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Oc}var E=(t&4)!==0,C=!E&&e==="scroll",p=E?g!==null?g+"Capture":null:g;E=[];for(var h=u,m;h!==null;){m=h;var y=m.stateNode;if(m.tag===5&&y!==null&&(m=y,p!==null&&(y=Ls(h,p),y!=null&&E.push($s(h,y,m)))),C)break;h=h.return}0<E.length&&(g=new x(g,S,null,n,f),c.push({event:g,listeners:E}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",g&&n!==Ul&&(S=n.relatedTarget||n.fromElement)&&(An(S)||S[Wt]))break e;if((x||g)&&(g=f.window===f?f:(g=f.ownerDocument)?g.defaultView||g.parentWindow:window,x?(S=n.relatedTarget||n.toElement,x=u,S=S?An(S):null,S!==null&&(C=or(S),S!==C||S.tag!==5&&S.tag!==6)&&(S=null)):(x=null,S=u),x!==S)){if(E=jc,y="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(E=Oc,y="onPointerLeave",p="onPointerEnter",h="pointer"),C=x==null?g:vr(x),m=S==null?g:vr(S),g=new E(y,h+"leave",x,n,f),g.target=C,g.relatedTarget=m,y=null,An(f)===u&&(E=new E(p,h+"enter",S,n,f),E.target=m,E.relatedTarget=C,y=E),C=y,x&&S)t:{for(E=x,p=S,h=0,m=E;m;m=cr(m))h++;for(m=0,y=p;y;y=cr(y))m++;for(;0<h-m;)E=cr(E),h--;for(;0<m-h;)p=cr(p),m--;for(;h--;){if(E===p||p!==null&&E===p.alternate)break t;E=cr(E),p=cr(p)}E=null}else E=null;x!==null&&Vc(c,g,x,E,!1),S!==null&&C!==null&&Vc(c,C,S,E,!0)}}e:{if(g=u?vr(u):window,x=g.nodeName&&g.nodeName.toLowerCase(),x==="select"||x==="input"&&g.type==="file")var b=oy;else if(Dc(g))if(mp)b=uy;else{b=ly;var k=iy}else(x=g.nodeName)&&x.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(b=ay);if(b&&(b=b(e,u))){hp(c,b,n,f);break e}k&&k(e,g,u),e==="focusout"&&(k=g._wrapperState)&&k.controlled&&g.type==="number"&&Ml(g,"number",g.value)}switch(k=u?vr(u):window,e){case"focusin":(Dc(k)||k.contentEditable==="true")&&(mr=k,Kl=u,bs=null);break;case"focusout":bs=Kl=mr=null;break;case"mousedown":Gl=!0;break;case"contextmenu":case"mouseup":case"dragend":Gl=!1,$c(c,n,f);break;case"selectionchange":if(fy)break;case"keydown":case"keyup":$c(c,n,f)}var _;if(hu)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else hr?fp(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(dp&&n.locale!=="ko"&&(hr||P!=="onCompositionStart"?P==="onCompositionEnd"&&hr&&(_=cp()):(hn=f,du="value"in hn?hn.value:hn.textContent,hr=!0)),k=ii(u,P),0<k.length&&(P=new Ic(P,e,null,n,f),c.push({event:P,listeners:k}),_?P.data=_:(_=pp(n),_!==null&&(P.data=_)))),(_=ey?ty(e,n):ny(e,n))&&(u=ii(u,"onBeforeInput"),0<u.length&&(f=new Ic("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=_))}bp(c,t)})}function $s(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ii(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Ls(e,n),o!=null&&r.unshift($s(e,o,s)),o=Ls(e,t),o!=null&&r.push($s(e,o,s))),e=e.return}return r}function cr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Vc(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,s?(a=Ls(n,o),a!=null&&i.unshift($s(n,a,l))):s||(a=Ls(n,o),a!=null&&i.push($s(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var gy=/\r\n?/g,vy=/\u0000|\uFFFD/g;function Qc(e){return(typeof e=="string"?e:""+e).replace(gy,`
39
+ `).replace(vy,"")}function Po(e,t,n){if(t=Qc(t),Qc(e)!==t&&n)throw Error(N(425))}function li(){}var ql=null,Yl=null;function Xl(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 Jl=typeof setTimeout=="function"?setTimeout:void 0,yy=typeof clearTimeout=="function"?clearTimeout:void 0,Hc=typeof Promise=="function"?Promise:void 0,xy=typeof queueMicrotask=="function"?queueMicrotask:typeof Hc<"u"?function(e){return Hc.resolve(null).then(e).catch(wy)}:Jl;function wy(e){setTimeout(function(){throw e})}function dl(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),As(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);As(t)}function wn(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 Kc(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 es=Math.random().toString(36).slice(2),_t="__reactFiber$"+es,Bs="__reactProps$"+es,Wt="__reactContainer$"+es,Zl="__reactEvents$"+es,Sy="__reactListeners$"+es,Ey="__reactHandles$"+es;function An(e){var t=e[_t];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wt]||n[_t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Kc(e);e!==null;){if(n=e[_t])return n;e=Kc(e)}return t}e=n,n=e.parentNode}return null}function uo(e){return e=e[_t]||e[Wt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function vr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function Ri(e){return e[Bs]||null}var ea=[],yr=-1;function In(e){return{current:e}}function ne(e){0>yr||(e.current=ea[yr],ea[yr]=null,yr--)}function Z(e,t){yr++,ea[yr]=e.current,e.current=t}var Nn={},Oe=In(Nn),Ve=In(!1),Jn=Nn;function Qr(e,t){var n=e.type.contextTypes;if(!n)return Nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Qe(e){return e=e.childContextTypes,e!=null}function ai(){ne(Ve),ne(Oe)}function Gc(e,t,n){if(Oe.current!==Nn)throw Error(N(168));Z(Oe,t),Z(Ve,n)}function _p(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(N(108,iv(e)||"Unknown",s));return ie({},n,r)}function ui(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nn,Jn=Oe.current,Z(Oe,e),Z(Ve,Ve.current),!0}function qc(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=_p(e,t,Jn),r.__reactInternalMemoizedMergedChildContext=e,ne(Ve),ne(Oe),Z(Oe,e)):ne(Ve),Z(Ve,n)}var Dt=null,ji=!1,fl=!1;function Np(e){Dt===null?Dt=[e]:Dt.push(e)}function Cy(e){ji=!0,Np(e)}function On(){if(!fl&&Dt!==null){fl=!0;var e=0,t=X;try{var n=Dt;for(X=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Dt=null,ji=!1}catch(s){throw Dt!==null&&(Dt=Dt.slice(e+1)),Zf(lu,On),s}finally{X=t,fl=!1}}return null}var xr=[],wr=0,ci=null,di=0,rt=[],st=0,Zn=null,zt=1,Ut="";function Mn(e,t){xr[wr++]=di,xr[wr++]=ci,ci=e,di=t}function Tp(e,t,n){rt[st++]=zt,rt[st++]=Ut,rt[st++]=Zn,Zn=e;var r=zt;e=Ut;var s=32-gt(r)-1;r&=~(1<<s),n+=1;var o=32-gt(t)+s;if(30<o){var i=s-s%5;o=(r&(1<<i)-1).toString(32),r>>=i,s-=i,zt=1<<32-gt(t)+s|n<<s|r,Ut=o+e}else zt=1<<o|n<<s|r,Ut=e}function gu(e){e.return!==null&&(Mn(e,1),Tp(e,1,0))}function vu(e){for(;e===ci;)ci=xr[--wr],xr[wr]=null,di=xr[--wr],xr[wr]=null;for(;e===Zn;)Zn=rt[--st],rt[st]=null,Ut=rt[--st],rt[st]=null,zt=rt[--st],rt[st]=null}var Je=null,Xe=null,re=!1,mt=null;function Rp(e,t){var n=it(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 Yc(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,Je=e,Xe=wn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Je=e,Xe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Zn!==null?{id:zt,overflow:Ut}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=it(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Je=e,Xe=null,!0):!1;default:return!1}}function ta(e){return(e.mode&1)!==0&&(e.flags&128)===0}function na(e){if(re){var t=Xe;if(t){var n=t;if(!Yc(e,t)){if(ta(e))throw Error(N(418));t=wn(n.nextSibling);var r=Je;t&&Yc(e,t)?Rp(r,n):(e.flags=e.flags&-4097|2,re=!1,Je=e)}}else{if(ta(e))throw Error(N(418));e.flags=e.flags&-4097|2,re=!1,Je=e}}}function Xc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Je=e}function _o(e){if(e!==Je)return!1;if(!re)return Xc(e),re=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Xl(e.type,e.memoizedProps)),t&&(t=Xe)){if(ta(e))throw jp(),Error(N(418));for(;t;)Rp(e,t),t=wn(t.nextSibling)}if(Xc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Xe=wn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Xe=null}}else Xe=Je?wn(e.stateNode.nextSibling):null;return!0}function jp(){for(var e=Xe;e;)e=wn(e.nextSibling)}function Hr(){Xe=Je=null,re=!1}function yu(e){mt===null?mt=[e]:mt.push(e)}var ky=Kt.ReactCurrentBatchConfig;function us(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(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var s=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var l=s.refs;i===null?delete l[o]:l[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function No(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Jc(e){var t=e._init;return t(e._payload)}function Ip(e){function t(p,h){if(e){var m=p.deletions;m===null?(p.deletions=[h],p.flags|=16):m.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function r(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function s(p,h){return p=kn(p,h),p.index=0,p.sibling=null,p}function o(p,h,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<h?(p.flags|=2,h):m):(p.flags|=2,h)):(p.flags|=1048576,h)}function i(p){return e&&p.alternate===null&&(p.flags|=2),p}function l(p,h,m,y){return h===null||h.tag!==6?(h=xl(m,p.mode,y),h.return=p,h):(h=s(h,m),h.return=p,h)}function a(p,h,m,y){var b=m.type;return b===pr?f(p,h,m.props.children,y,m.key):h!==null&&(h.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===en&&Jc(b)===h.type)?(y=s(h,m.props),y.ref=us(p,h,m),y.return=p,y):(y=Go(m.type,m.key,m.props,null,p.mode,y),y.ref=us(p,h,m),y.return=p,y)}function u(p,h,m,y){return h===null||h.tag!==4||h.stateNode.containerInfo!==m.containerInfo||h.stateNode.implementation!==m.implementation?(h=wl(m,p.mode,y),h.return=p,h):(h=s(h,m.children||[]),h.return=p,h)}function f(p,h,m,y,b){return h===null||h.tag!==7?(h=Xn(m,p.mode,y,b),h.return=p,h):(h=s(h,m),h.return=p,h)}function c(p,h,m){if(typeof h=="string"&&h!==""||typeof h=="number")return h=xl(""+h,p.mode,m),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case vo:return m=Go(h.type,h.key,h.props,null,p.mode,m),m.ref=us(p,null,h),m.return=p,m;case fr:return h=wl(h,p.mode,m),h.return=p,h;case en:var y=h._init;return c(p,y(h._payload),m)}if(ms(h)||ss(h))return h=Xn(h,p.mode,m,null),h.return=p,h;No(p,h)}return null}function g(p,h,m,y){var b=h!==null?h.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return b!==null?null:l(p,h,""+m,y);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case vo:return m.key===b?a(p,h,m,y):null;case fr:return m.key===b?u(p,h,m,y):null;case en:return b=m._init,g(p,h,b(m._payload),y)}if(ms(m)||ss(m))return b!==null?null:f(p,h,m,y,null);No(p,m)}return null}function x(p,h,m,y,b){if(typeof y=="string"&&y!==""||typeof y=="number")return p=p.get(m)||null,l(h,p,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case vo:return p=p.get(y.key===null?m:y.key)||null,a(h,p,y,b);case fr:return p=p.get(y.key===null?m:y.key)||null,u(h,p,y,b);case en:var k=y._init;return x(p,h,m,k(y._payload),b)}if(ms(y)||ss(y))return p=p.get(m)||null,f(h,p,y,b,null);No(h,y)}return null}function S(p,h,m,y){for(var b=null,k=null,_=h,P=h=0,O=null;_!==null&&P<m.length;P++){_.index>P?(O=_,_=null):O=_.sibling;var j=g(p,_,m[P],y);if(j===null){_===null&&(_=O);break}e&&_&&j.alternate===null&&t(p,_),h=o(j,h,P),k===null?b=j:k.sibling=j,k=j,_=O}if(P===m.length)return n(p,_),re&&Mn(p,P),b;if(_===null){for(;P<m.length;P++)_=c(p,m[P],y),_!==null&&(h=o(_,h,P),k===null?b=_:k.sibling=_,k=_);return re&&Mn(p,P),b}for(_=r(p,_);P<m.length;P++)O=x(_,p,P,m[P],y),O!==null&&(e&&O.alternate!==null&&_.delete(O.key===null?P:O.key),h=o(O,h,P),k===null?b=O:k.sibling=O,k=O);return e&&_.forEach(function(I){return t(p,I)}),re&&Mn(p,P),b}function E(p,h,m,y){var b=ss(m);if(typeof b!="function")throw Error(N(150));if(m=b.call(m),m==null)throw Error(N(151));for(var k=b=null,_=h,P=h=0,O=null,j=m.next();_!==null&&!j.done;P++,j=m.next()){_.index>P?(O=_,_=null):O=_.sibling;var I=g(p,_,j.value,y);if(I===null){_===null&&(_=O);break}e&&_&&I.alternate===null&&t(p,_),h=o(I,h,P),k===null?b=I:k.sibling=I,k=I,_=O}if(j.done)return n(p,_),re&&Mn(p,P),b;if(_===null){for(;!j.done;P++,j=m.next())j=c(p,j.value,y),j!==null&&(h=o(j,h,P),k===null?b=j:k.sibling=j,k=j);return re&&Mn(p,P),b}for(_=r(p,_);!j.done;P++,j=m.next())j=x(_,p,P,j.value,y),j!==null&&(e&&j.alternate!==null&&_.delete(j.key===null?P:j.key),h=o(j,h,P),k===null?b=j:k.sibling=j,k=j);return e&&_.forEach(function(T){return t(p,T)}),re&&Mn(p,P),b}function C(p,h,m,y){if(typeof m=="object"&&m!==null&&m.type===pr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case vo:e:{for(var b=m.key,k=h;k!==null;){if(k.key===b){if(b=m.type,b===pr){if(k.tag===7){n(p,k.sibling),h=s(k,m.props.children),h.return=p,p=h;break e}}else if(k.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===en&&Jc(b)===k.type){n(p,k.sibling),h=s(k,m.props),h.ref=us(p,k,m),h.return=p,p=h;break e}n(p,k);break}else t(p,k);k=k.sibling}m.type===pr?(h=Xn(m.props.children,p.mode,y,m.key),h.return=p,p=h):(y=Go(m.type,m.key,m.props,null,p.mode,y),y.ref=us(p,h,m),y.return=p,p=y)}return i(p);case fr:e:{for(k=m.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=s(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=wl(m,p.mode,y),h.return=p,p=h}return i(p);case en:return k=m._init,C(p,h,k(m._payload),y)}if(ms(m))return S(p,h,m,y);if(ss(m))return E(p,h,m,y);No(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=s(h,m),h.return=p,p=h):(n(p,h),h=xl(m,p.mode,y),h.return=p,p=h),i(p)):n(p,h)}return C}var Kr=Ip(!0),Op=Ip(!1),fi=In(null),pi=null,Sr=null,xu=null;function wu(){xu=Sr=pi=null}function Su(e){var t=fi.current;ne(fi),e._currentValue=t}function ra(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 Nr(e,t){pi=e,xu=Sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(We=!0),e.firstContext=null)}function at(e){var t=e._currentValue;if(xu!==e)if(e={context:e,memoizedValue:t,next:null},Sr===null){if(pi===null)throw Error(N(308));Sr=e,pi.dependencies={lanes:0,firstContext:e}}else Sr=Sr.next=e;return t}var Fn=null;function Eu(e){Fn===null?Fn=[e]:Fn.push(e)}function Lp(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Eu(t)):(n.next=s.next,s.next=n),t.interleaved=n,Vt(e,r)}function Vt(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 tn=!1;function Cu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mp(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 $t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Sn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Vt(e,n)}return s=r.interleaved,s===null?(t.next=t,Eu(r)):(t.next=s.next,s.next=t),r.interleaved=t,Vt(e,n)}function Bo(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,au(e,n)}}function Zc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,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 hi(e,t,n,r){var s=e.updateQueue;tn=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var a=l,u=a.next;a.next=null,i===null?o=u:i.next=u,i=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=a))}if(o!==null){var c=s.baseState;i=0,f=u=a=null,l=o;do{var g=l.lane,x=l.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:x,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,E=l;switch(g=t,x=n,E.tag){case 1:if(S=E.payload,typeof S=="function"){c=S.call(x,c,g);break e}c=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=E.payload,g=typeof S=="function"?S.call(x,c,g):S,g==null)break e;c=ie({},c,g);break e;case 2:tn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=s.effects,g===null?s.effects=[l]:g.push(l))}else x={eventTime:x,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=x,a=c):f=f.next=x,i|=g;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;g=l,l=g.next,g.next=null,s.lastBaseUpdate=g,s.shared.pending=null}}while(!0);if(f===null&&(a=c),s.baseState=a,s.firstBaseUpdate=u,s.lastBaseUpdate=f,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);tr|=i,e.lanes=i,e.memoizedState=c}}function ed(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(N(191,s));s.call(r)}}}var co={},Tt=In(co),Ws=In(co),Vs=In(co);function zn(e){if(e===co)throw Error(N(174));return e}function ku(e,t){switch(Z(Vs,t),Z(Ws,e),Z(Tt,co),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Al(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Al(t,e)}ne(Tt),Z(Tt,t)}function Gr(){ne(Tt),ne(Ws),ne(Vs)}function Dp(e){zn(Vs.current);var t=zn(Tt.current),n=Al(t,e.type);t!==n&&(Z(Ws,e),Z(Tt,n))}function bu(e){Ws.current===e&&(ne(Tt),ne(Ws))}var se=In(0);function mi(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 pl=[];function Pu(){for(var e=0;e<pl.length;e++)pl[e]._workInProgressVersionPrimary=null;pl.length=0}var Wo=Kt.ReactCurrentDispatcher,hl=Kt.ReactCurrentBatchConfig,er=0,oe=null,me=null,we=null,gi=!1,Ps=!1,Qs=0,by=0;function Te(){throw Error(N(321))}function _u(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xt(e[n],t[n]))return!1;return!0}function Nu(e,t,n,r,s,o){if(er=o,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Wo.current=e===null||e.memoizedState===null?Ty:Ry,e=n(r,s),Ps){o=0;do{if(Ps=!1,Qs=0,25<=o)throw Error(N(301));o+=1,we=me=null,t.updateQueue=null,Wo.current=jy,e=n(r,s)}while(Ps)}if(Wo.current=vi,t=me!==null&&me.next!==null,er=0,we=me=oe=null,gi=!1,t)throw Error(N(300));return e}function Tu(){var e=Qs!==0;return Qs=0,e}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return we===null?oe.memoizedState=we=e:we=we.next=e,we}function ut(){if(me===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=me.next;var t=we===null?oe.memoizedState:we.next;if(t!==null)we=t,me=e;else{if(e===null)throw Error(N(310));me=e,e={memoizedState:me.memoizedState,baseState:me.baseState,baseQueue:me.baseQueue,queue:me.queue,next:null},we===null?oe.memoizedState=we=e:we=we.next=e}return we}function Hs(e,t){return typeof t=="function"?t(e):t}function ml(e){var t=ut(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=me,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){o=s.next,r=r.baseState;var l=i=null,a=null,u=o;do{var f=u.lane;if((er&f)===f)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=c,i=r):a=a.next=c,oe.lanes|=f,tr|=f}u=u.next}while(u!==null&&u!==o);a===null?i=r:a.next=l,xt(r,t.memoizedState)||(We=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do o=s.lane,oe.lanes|=o,tr|=o,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gl(e){var t=ut(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);xt(o,t.memoizedState)||(We=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ap(){}function Fp(e,t){var n=oe,r=ut(),s=t(),o=!xt(r.memoizedState,s);if(o&&(r.memoizedState=s,We=!0),r=r.queue,Ru($p.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||we!==null&&we.memoizedState.tag&1){if(n.flags|=2048,Ks(9,Up.bind(null,n,r,s,t),void 0,null),Ee===null)throw Error(N(349));er&30||zp(n,t,s)}return s}function zp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Up(e,t,n,r){t.value=n,t.getSnapshot=r,Bp(t)&&Wp(e)}function $p(e,t,n){return n(function(){Bp(t)&&Wp(e)})}function Bp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xt(e,n)}catch{return!0}}function Wp(e){var t=Vt(e,1);t!==null&&vt(t,e,1,-1)}function td(e){var t=Ct();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hs,lastRenderedState:e},t.queue=e,e=e.dispatch=Ny.bind(null,oe,e),[t.memoizedState,e]}function Ks(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.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 Vp(){return ut().memoizedState}function Vo(e,t,n,r){var s=Ct();oe.flags|=e,s.memoizedState=Ks(1|t,n,void 0,r===void 0?null:r)}function Ii(e,t,n,r){var s=ut();r=r===void 0?null:r;var o=void 0;if(me!==null){var i=me.memoizedState;if(o=i.destroy,r!==null&&_u(r,i.deps)){s.memoizedState=Ks(t,n,o,r);return}}oe.flags|=e,s.memoizedState=Ks(1|t,n,o,r)}function nd(e,t){return Vo(8390656,8,e,t)}function Ru(e,t){return Ii(2048,8,e,t)}function Qp(e,t){return Ii(4,2,e,t)}function Hp(e,t){return Ii(4,4,e,t)}function Kp(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 Gp(e,t,n){return n=n!=null?n.concat([e]):null,Ii(4,4,Kp.bind(null,t,e),n)}function ju(){}function qp(e,t){var n=ut();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_u(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yp(e,t){var n=ut();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_u(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xp(e,t,n){return er&21?(xt(n,t)||(n=np(),oe.lanes|=n,tr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,We=!0),e.memoizedState=n)}function Py(e,t){var n=X;X=n!==0&&4>n?n:4,e(!0);var r=hl.transition;hl.transition={};try{e(!1),t()}finally{X=n,hl.transition=r}}function Jp(){return ut().memoizedState}function _y(e,t,n){var r=Cn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zp(e))eh(t,n);else if(n=Lp(e,t,n,r),n!==null){var s=De();vt(n,e,r,s),th(n,t,r)}}function Ny(e,t,n){var r=Cn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zp(e))eh(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,l=o(i,n);if(s.hasEagerState=!0,s.eagerState=l,xt(l,i)){var a=t.interleaved;a===null?(s.next=s,Eu(t)):(s.next=a.next,a.next=s),t.interleaved=s;return}}catch{}finally{}n=Lp(e,t,s,r),n!==null&&(s=De(),vt(n,e,r,s),th(n,t,r))}}function Zp(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function eh(e,t){Ps=gi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function th(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,au(e,n)}}var vi={readContext:at,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},Ty={readContext:at,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:nd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vo(4194308,4,Kp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vo(4,2,e,t)},useMemo:function(e,t){var n=Ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ct();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=_y.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:td,useDebugValue:ju,useDeferredValue:function(e){return Ct().memoizedState=e},useTransition:function(){var e=td(!1),t=e[0];return e=Py.bind(null,e[1]),Ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oe,s=Ct();if(re){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Ee===null)throw Error(N(349));er&30||zp(r,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,nd($p.bind(null,r,o,e),[e]),r.flags|=2048,Ks(9,Up.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ct(),t=Ee.identifierPrefix;if(re){var n=Ut,r=zt;n=(r&~(1<<32-gt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=by++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ry={readContext:at,useCallback:qp,useContext:at,useEffect:Ru,useImperativeHandle:Gp,useInsertionEffect:Qp,useLayoutEffect:Hp,useMemo:Yp,useReducer:ml,useRef:Vp,useState:function(){return ml(Hs)},useDebugValue:ju,useDeferredValue:function(e){var t=ut();return Xp(t,me.memoizedState,e)},useTransition:function(){var e=ml(Hs)[0],t=ut().memoizedState;return[e,t]},useMutableSource:Ap,useSyncExternalStore:Fp,useId:Jp,unstable_isNewReconciler:!1},jy={readContext:at,useCallback:qp,useContext:at,useEffect:Ru,useImperativeHandle:Gp,useInsertionEffect:Qp,useLayoutEffect:Hp,useMemo:Yp,useReducer:gl,useRef:Vp,useState:function(){return gl(Hs)},useDebugValue:ju,useDeferredValue:function(e){var t=ut();return me===null?t.memoizedState=e:Xp(t,me.memoizedState,e)},useTransition:function(){var e=gl(Hs)[0],t=ut().memoizedState;return[e,t]},useMutableSource:Ap,useSyncExternalStore:Fp,useId:Jp,unstable_isNewReconciler:!1};function ft(e,t){if(e&&e.defaultProps){t=ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function sa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Oi={isMounted:function(e){return(e=e._reactInternals)?or(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=De(),s=Cn(e),o=$t(r,s);o.payload=t,n!=null&&(o.callback=n),t=Sn(e,o,s),t!==null&&(vt(t,e,s,r),Bo(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=De(),s=Cn(e),o=$t(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Sn(e,o,s),t!==null&&(vt(t,e,s,r),Bo(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=De(),r=Cn(e),s=$t(n,r);s.tag=2,t!=null&&(s.callback=t),t=Sn(e,s,r),t!==null&&(vt(t,e,r,n),Bo(t,e,r))}};function rd(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!zs(n,r)||!zs(s,o):!0}function nh(e,t,n){var r=!1,s=Nn,o=t.contextType;return typeof o=="object"&&o!==null?o=at(o):(s=Qe(t)?Jn:Oe.current,r=t.contextTypes,o=(r=r!=null)?Qr(e,s):Nn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Oi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function sd(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Oi.enqueueReplaceState(t,t.state,null)}function oa(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Cu(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=at(o):(o=Qe(t)?Jn:Oe.current,s.context=Qr(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(sa(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Oi.enqueueReplaceState(s,s.state,null),hi(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function qr(e,t){try{var n="",r=t;do n+=ov(r),r=r.return;while(r);var s=n}catch(o){s=`
40
+ Error generating stack: `+o.message+`
41
+ `+o.stack}return{value:e,source:t,stack:s,digest:null}}function vl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ia(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Iy=typeof WeakMap=="function"?WeakMap:Map;function rh(e,t,n){n=$t(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xi||(xi=!0,ga=r),ia(e,t)},n}function sh(e,t,n){n=$t(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){ia(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ia(e,t),typeof r!="function"&&(En===null?En=new Set([this]):En.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function od(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Iy;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Hy.bind(null,e,t,n),t.then(e,e))}function id(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 ld(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,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=$t(-1,1),t.tag=2,Sn(n,t,1))),n.lanes|=1),e)}var Oy=Kt.ReactCurrentOwner,We=!1;function Me(e,t,n,r){t.child=e===null?Op(t,null,n,r):Kr(t,e.child,n,r)}function ad(e,t,n,r,s){n=n.render;var o=t.ref;return Nr(t,s),r=Nu(e,t,n,r,o,s),n=Tu(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Qt(e,t,s)):(re&&n&&gu(t),t.flags|=1,Me(e,t,r,s),t.child)}function ud(e,t,n,r,s){if(e===null){var o=n.type;return typeof o=="function"&&!zu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,oh(e,t,o,r,s)):(e=Go(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:zs,n(i,r)&&e.ref===t.ref)return Qt(e,t,s)}return t.flags|=1,e=kn(o,r),e.ref=t.ref,e.return=t,t.child=e}function oh(e,t,n,r,s){if(e!==null){var o=e.memoizedProps;if(zs(o,r)&&e.ref===t.ref)if(We=!1,t.pendingProps=r=o,(e.lanes&s)!==0)e.flags&131072&&(We=!0);else return t.lanes=e.lanes,Qt(e,t,s)}return la(e,t,n,r,s)}function ih(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Z(Cr,Ke),Ke|=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,Z(Cr,Ke),Ke|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Z(Cr,Ke),Ke|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Z(Cr,Ke),Ke|=r;return Me(e,t,s,n),t.child}function lh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function la(e,t,n,r,s){var o=Qe(n)?Jn:Oe.current;return o=Qr(t,o),Nr(t,s),n=Nu(e,t,n,r,o,s),r=Tu(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Qt(e,t,s)):(re&&r&&gu(t),t.flags|=1,Me(e,t,n,s),t.child)}function cd(e,t,n,r,s){if(Qe(n)){var o=!0;ui(t)}else o=!1;if(Nr(t,s),t.stateNode===null)Qo(e,t),nh(t,n,r),oa(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=at(u):(u=Qe(n)?Jn:Oe.current,u=Qr(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";c||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||a!==u)&&sd(t,i,r,u),tn=!1;var g=t.memoizedState;i.state=g,hi(t,r,i,s),a=t.memoizedState,l!==r||g!==a||Ve.current||tn?(typeof f=="function"&&(sa(t,n,f,r),a=t.memoizedState),(l=tn||rd(t,n,l,r,g,a,u))?(c||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Mp(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ft(t.type,l),i.props=u,c=t.pendingProps,g=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=at(a):(a=Qe(n)?Jn:Oe.current,a=Qr(t,a));var x=n.getDerivedStateFromProps;(f=typeof x=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==c||g!==a)&&sd(t,i,r,a),tn=!1,g=t.memoizedState,i.state=g,hi(t,r,i,s);var S=t.memoizedState;l!==c||g!==S||Ve.current||tn?(typeof x=="function"&&(sa(t,n,x,r),S=t.memoizedState),(u=tn||rd(t,n,u,r,g,S,a)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,S,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,S,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),i.props=r,i.state=S,i.context=a,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return aa(e,t,n,r,o,s)}function aa(e,t,n,r,s,o){lh(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return s&&qc(t,n,!1),Qt(e,t,o);r=t.stateNode,Oy.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Kr(t,e.child,null,o),t.child=Kr(t,null,l,o)):Me(e,t,l,o),t.memoizedState=r.state,s&&qc(t,n,!0),t.child}function ah(e){var t=e.stateNode;t.pendingContext?Gc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Gc(e,t.context,!1),ku(e,t.containerInfo)}function dd(e,t,n,r,s){return Hr(),yu(s),t.flags|=256,Me(e,t,n,r),t.child}var ua={dehydrated:null,treeContext:null,retryLane:0};function ca(e){return{baseLanes:e,cachePool:null,transitions:null}}function uh(e,t,n){var r=t.pendingProps,s=se.current,o=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Z(se,s&1),e===null)return na(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Di(i,r,0,null),e=Xn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ca(n),t.memoizedState=ua,e):Iu(t,i));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return Ly(e,t,i,r,l,s,n);if(o){o=r.fallback,i=t.mode,s=e.child,l=s.sibling;var a={mode:"hidden",children:r.children};return!(i&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=kn(s,a),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?o=kn(l,o):(o=Xn(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?ca(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=ua,r}return o=e.child,e=o.sibling,r=kn(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 Iu(e,t){return t=Di({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function To(e,t,n,r){return r!==null&&yu(r),Kr(t,e.child,null,n),e=Iu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ly(e,t,n,r,s,o,i){if(n)return t.flags&256?(t.flags&=-257,r=vl(Error(N(422))),To(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,s=t.mode,r=Di({mode:"visible",children:r.children},s,0,null),o=Xn(o,s,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Kr(t,e.child,null,i),t.child.memoizedState=ca(i),t.memoizedState=ua,o);if(!(t.mode&1))return To(e,t,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(N(419)),r=vl(o,r,void 0),To(e,t,i,r)}if(l=(i&e.childLanes)!==0,We||l){if(r=Ee,r!==null){switch(i&-i){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,Vt(e,s),vt(r,e,s,-1))}return Fu(),r=vl(Error(N(421))),To(e,t,i,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Ky.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,Xe=wn(s.nextSibling),Je=t,re=!0,mt=null,e!==null&&(rt[st++]=zt,rt[st++]=Ut,rt[st++]=Zn,zt=e.id,Ut=e.overflow,Zn=t),t=Iu(t,r.children),t.flags|=4096,t)}function fd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ra(e.return,t,n)}function yl(e,t,n,r,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function ch(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(Me(e,t,r.children,n),r=se.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&&fd(e,n,t);else if(e.tag===19)fd(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(Z(se,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&mi(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),yl(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&mi(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}yl(t,!0,n,null,o);break;case"together":yl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),tr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=kn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=kn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function My(e,t,n){switch(t.tag){case 3:ah(t),Hr();break;case 5:Dp(t);break;case 1:Qe(t.type)&&ui(t);break;case 4:ku(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;Z(fi,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Z(se,se.current&1),t.flags|=128,null):n&t.child.childLanes?uh(e,t,n):(Z(se,se.current&1),e=Qt(e,t,n),e!==null?e.sibling:null);Z(se,se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ch(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Z(se,se.current),r)break;return null;case 22:case 23:return t.lanes=0,ih(e,t,n)}return Qt(e,t,n)}var dh,da,fh,ph;dh=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}};da=function(){};fh=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,zn(Tt.current);var o=null;switch(n){case"input":s=Ol(e,s),r=Ol(e,r),o=[];break;case"select":s=ie({},s,{value:void 0}),r=ie({},r,{value:void 0}),o=[];break;case"textarea":s=Dl(e,s),r=Dl(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=li)}Fl(n,r);var i;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Is.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Is.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&te("scroll",e),o||l===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};ph=function(e,t,n,r){n!==r&&(t.flags|=4)};function cs(e,t){if(!re)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 Re(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Dy(e,t,n){var r=t.pendingProps;switch(vu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return Qe(t.type)&&ai(),Re(t),null;case 3:return r=t.stateNode,Gr(),ne(Ve),ne(Oe),Pu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(_o(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mt!==null&&(xa(mt),mt=null))),da(e,t),Re(t),null;case 5:bu(t);var s=zn(Vs.current);if(n=t.type,e!==null&&t.stateNode!=null)fh(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return Re(t),null}if(e=zn(Tt.current),_o(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[_t]=t,r[Bs]=o,e=(t.mode&1)!==0,n){case"dialog":te("cancel",r),te("close",r);break;case"iframe":case"object":case"embed":te("load",r);break;case"video":case"audio":for(s=0;s<vs.length;s++)te(vs[s],r);break;case"source":te("error",r);break;case"img":case"image":case"link":te("error",r),te("load",r);break;case"details":te("toggle",r);break;case"input":Sc(r,o),te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},te("invalid",r);break;case"textarea":Cc(r,o),te("invalid",r)}Fl(n,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var l=o[i];i==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&Po(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Po(r.textContent,l,e),s=["children",""+l]):Is.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&te("scroll",r)}switch(n){case"input":yo(r),Ec(r,o,!0);break;case"textarea":yo(r),kc(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=li)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=$f(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[_t]=t,e[Bs]=r,dh(e,t,!1,!1),t.stateNode=e;e:{switch(i=zl(n,r),n){case"dialog":te("cancel",e),te("close",e),s=r;break;case"iframe":case"object":case"embed":te("load",e),s=r;break;case"video":case"audio":for(s=0;s<vs.length;s++)te(vs[s],e);s=r;break;case"source":te("error",e),s=r;break;case"img":case"image":case"link":te("error",e),te("load",e),s=r;break;case"details":te("toggle",e),s=r;break;case"input":Sc(e,r),s=Ol(e,r),te("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ie({},r,{value:void 0}),te("invalid",e);break;case"textarea":Cc(e,r),s=Dl(e,r),te("invalid",e);break;default:s=r}Fl(n,s),l=s;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?Vf(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Bf(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Os(e,a):typeof a=="number"&&Os(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Is.hasOwnProperty(o)?a!=null&&o==="onScroll"&&te("scroll",e):a!=null&&nu(e,o,a,i))}switch(n){case"input":yo(e),Ec(e,r,!1);break;case"textarea":yo(e),kc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+_n(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?kr(e,!!r.multiple,o,!1):r.defaultValue!=null&&kr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=li)}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 Re(t),null;case 6:if(e&&t.stateNode!=null)ph(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=zn(Vs.current),zn(Tt.current),_o(t)){if(r=t.stateNode,n=t.memoizedProps,r[_t]=t,(o=r.nodeValue!==n)&&(e=Je,e!==null))switch(e.tag){case 3:Po(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Po(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[_t]=t,t.stateNode=r}return Re(t),null;case 13:if(ne(se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(re&&Xe!==null&&t.mode&1&&!(t.flags&128))jp(),Hr(),t.flags|=98560,o=!1;else if(o=_o(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(N(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(N(317));o[_t]=t}else Hr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Re(t),o=!1}else mt!==null&&(xa(mt),mt=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||se.current&1?ve===0&&(ve=3):Fu())),t.updateQueue!==null&&(t.flags|=4),Re(t),null);case 4:return Gr(),da(e,t),e===null&&Us(t.stateNode.containerInfo),Re(t),null;case 10:return Su(t.type._context),Re(t),null;case 17:return Qe(t.type)&&ai(),Re(t),null;case 19:if(ne(se),o=t.memoizedState,o===null)return Re(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)cs(o,!1);else{if(ve!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=mi(e),i!==null){for(t.flags|=128,cs(o,!1),r=i.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,i=o.alternate,i===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=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Z(se,se.current&1|2),t.child}e=e.sibling}o.tail!==null&&de()>Yr&&(t.flags|=128,r=!0,cs(o,!1),t.lanes=4194304)}else{if(!r)if(e=mi(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!re)return Re(t),null}else 2*de()-o.renderingStartTime>Yr&&n!==1073741824&&(t.flags|=128,r=!0,cs(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=de(),t.sibling=null,n=se.current,Z(se,r?n&1|2:n&1),t):(Re(t),null);case 22:case 23:return Au(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ke&1073741824&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function Ay(e,t){switch(vu(t),t.tag){case 1:return Qe(t.type)&&ai(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gr(),ne(Ve),ne(Oe),Pu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bu(t),null;case 13:if(ne(se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Hr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(se),null;case 4:return Gr(),null;case 10:return Su(t.type._context),null;case 22:case 23:return Au(),null;case 24:return null;default:return null}}var Ro=!1,Ie=!1,Fy=typeof WeakSet=="function"?WeakSet:Set,M=null;function Er(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ae(e,t,r)}else n.current=null}function fa(e,t,n){try{n()}catch(r){ae(e,t,r)}}var pd=!1;function zy(e,t){if(ql=si,e=yp(),mu(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 s=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,l=-1,a=-1,u=0,f=0,c=e,g=null;t:for(;;){for(var x;c!==n||s!==0&&c.nodeType!==3||(l=i+s),c!==o||r!==0&&c.nodeType!==3||(a=i+r),c.nodeType===3&&(i+=c.nodeValue.length),(x=c.firstChild)!==null;)g=c,c=x;for(;;){if(c===e)break t;if(g===n&&++u===s&&(l=i),g===o&&++f===r&&(a=i),(x=c.nextSibling)!==null)break;c=g,g=c.parentNode}c=x}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yl={focusedElem:e,selectionRange:n},si=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;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 E=S.memoizedProps,C=S.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?E:ft(t.type,E),C);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(y){ae(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return S=pd,pd=!1,S}function _s(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&fa(t,n,o)}s=s.next}while(s!==r)}}function Li(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 pa(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 hh(e){var t=e.alternate;t!==null&&(e.alternate=null,hh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[Bs],delete t[Zl],delete t[Sy],delete t[Ey])),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 mh(e){return e.tag===5||e.tag===3||e.tag===4}function hd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mh(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 ha(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=li));else if(r!==4&&(e=e.child,e!==null))for(ha(e,t,n),e=e.sibling;e!==null;)ha(e,t,n),e=e.sibling}function ma(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(ma(e,t,n),e=e.sibling;e!==null;)ma(e,t,n),e=e.sibling}var ke=null,ht=!1;function qt(e,t,n){for(n=n.child;n!==null;)gh(e,t,n),n=n.sibling}function gh(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Pi,n)}catch{}switch(n.tag){case 5:Ie||Er(n,t);case 6:var r=ke,s=ht;ke=null,qt(e,t,n),ke=r,ht=s,ke!==null&&(ht?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(ht?(e=ke,n=n.stateNode,e.nodeType===8?dl(e.parentNode,n):e.nodeType===1&&dl(e,n),As(e)):dl(ke,n.stateNode));break;case 4:r=ke,s=ht,ke=n.stateNode.containerInfo,ht=!0,qt(e,t,n),ke=r,ht=s;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&fa(n,t,i),s=s.next}while(s!==r)}qt(e,t,n);break;case 1:if(!Ie&&(Er(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ae(n,t,l)}qt(e,t,n);break;case 21:qt(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,qt(e,t,n),Ie=r):qt(e,t,n);break;default:qt(e,t,n)}}function md(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fy),t.forEach(function(r){var s=Gy.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:ke=l.stateNode,ht=!1;break e;case 3:ke=l.stateNode.containerInfo,ht=!0;break e;case 4:ke=l.stateNode.containerInfo,ht=!0;break e}l=l.return}if(ke===null)throw Error(N(160));gh(o,i,s),ke=null,ht=!1;var a=s.alternate;a!==null&&(a.return=null),s.return=null}catch(u){ae(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vh(t,e),t=t.sibling}function vh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dt(t,e),Et(e),r&4){try{_s(3,e,e.return),Li(3,e)}catch(E){ae(e,e.return,E)}try{_s(5,e,e.return)}catch(E){ae(e,e.return,E)}}break;case 1:dt(t,e),Et(e),r&512&&n!==null&&Er(n,n.return);break;case 5:if(dt(t,e),Et(e),r&512&&n!==null&&Er(n,n.return),e.flags&32){var s=e.stateNode;try{Os(s,"")}catch(E){ae(e,e.return,E)}}if(r&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&zf(s,o),zl(l,i);var u=zl(l,o);for(i=0;i<a.length;i+=2){var f=a[i],c=a[i+1];f==="style"?Vf(s,c):f==="dangerouslySetInnerHTML"?Bf(s,c):f==="children"?Os(s,c):nu(s,f,c,u)}switch(l){case"input":Ll(s,o);break;case"textarea":Uf(s,o);break;case"select":var g=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var x=o.value;x!=null?kr(s,!!o.multiple,x,!1):g!==!!o.multiple&&(o.defaultValue!=null?kr(s,!!o.multiple,o.defaultValue,!0):kr(s,!!o.multiple,o.multiple?[]:"",!1))}s[Bs]=o}catch(E){ae(e,e.return,E)}}break;case 6:if(dt(t,e),Et(e),r&4){if(e.stateNode===null)throw Error(N(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(E){ae(e,e.return,E)}}break;case 3:if(dt(t,e),Et(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{As(t.containerInfo)}catch(E){ae(e,e.return,E)}break;case 4:dt(t,e),Et(e);break;case 13:dt(t,e),Et(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(Mu=de())),r&4&&md(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Ie=(u=Ie)||f,dt(t,e),Ie=u):dt(t,e),Et(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(M=e,f=e.child;f!==null;){for(c=M=f;M!==null;){switch(g=M,x=g.child,g.tag){case 0:case 11:case 14:case 15:_s(4,g,g.return);break;case 1:Er(g,g.return);var S=g.stateNode;if(typeof S.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(E){ae(r,n,E)}}break;case 5:Er(g,g.return);break;case 22:if(g.memoizedState!==null){vd(c);continue}}x!==null?(x.return=g,M=x):vd(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{s=c.stateNode,u?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=c.stateNode,a=c.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Wf("display",i))}catch(E){ae(e,e.return,E)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(E){ae(e,e.return,E)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:dt(t,e),Et(e),r&4&&md(e);break;case 21:break;default:dt(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(mh(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Os(s,""),r.flags&=-33);var o=hd(e);ma(e,o,s);break;case 3:case 4:var i=r.stateNode.containerInfo,l=hd(e);ha(e,l,i);break;default:throw Error(N(161))}}catch(a){ae(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Uy(e,t,n){M=e,yh(e)}function yh(e,t,n){for(var r=(e.mode&1)!==0;M!==null;){var s=M,o=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||Ro;if(!i){var l=s.alternate,a=l!==null&&l.memoizedState!==null||Ie;l=Ro;var u=Ie;if(Ro=i,(Ie=a)&&!u)for(M=s;M!==null;)i=M,a=i.child,i.tag===22&&i.memoizedState!==null?yd(s):a!==null?(a.return=i,M=a):yd(s);for(;o!==null;)M=o,yh(o),o=o.sibling;M=s,Ro=l,Ie=u}gd(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,M=o):gd(e)}}function gd(e){for(;M!==null;){var t=M;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ie||Li(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ie)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:ft(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&ed(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ed(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&As(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}Ie||t.flags&512&&pa(t)}catch(g){ae(t,t.return,g)}}if(t===e){M=null;break}if(n=t.sibling,n!==null){n.return=t.return,M=n;break}M=t.return}}function vd(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var n=t.sibling;if(n!==null){n.return=t.return,M=n;break}M=t.return}}function yd(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Li(4,t)}catch(a){ae(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(a){ae(t,s,a)}}var o=t.return;try{pa(t)}catch(a){ae(t,o,a)}break;case 5:var i=t.return;try{pa(t)}catch(a){ae(t,i,a)}}}catch(a){ae(t,t.return,a)}if(t===e){M=null;break}var l=t.sibling;if(l!==null){l.return=t.return,M=l;break}M=t.return}}var $y=Math.ceil,yi=Kt.ReactCurrentDispatcher,Ou=Kt.ReactCurrentOwner,lt=Kt.ReactCurrentBatchConfig,G=0,Ee=null,he=null,_e=0,Ke=0,Cr=In(0),ve=0,Gs=null,tr=0,Mi=0,Lu=0,Ns=null,$e=null,Mu=0,Yr=1/0,Mt=null,xi=!1,ga=null,En=null,jo=!1,mn=null,wi=0,Ts=0,va=null,Ho=-1,Ko=0;function De(){return G&6?de():Ho!==-1?Ho:Ho=de()}function Cn(e){return e.mode&1?G&2&&_e!==0?_e&-_e:ky.transition!==null?(Ko===0&&(Ko=np()),Ko):(e=X,e!==0||(e=window.event,e=e===void 0?16:up(e.type)),e):1}function vt(e,t,n,r){if(50<Ts)throw Ts=0,va=null,Error(N(185));lo(e,n,r),(!(G&2)||e!==Ee)&&(e===Ee&&(!(G&2)&&(Mi|=n),ve===4&&sn(e,_e)),He(e,r),n===1&&G===0&&!(t.mode&1)&&(Yr=de()+500,ji&&On()))}function He(e,t){var n=e.callbackNode;kv(e,t);var r=ri(e,e===Ee?_e:0);if(r===0)n!==null&&_c(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&_c(n),t===1)e.tag===0?Cy(xd.bind(null,e)):Np(xd.bind(null,e)),xy(function(){!(G&6)&&On()}),n=null;else{switch(rp(r)){case 1:n=lu;break;case 4:n=ep;break;case 16:n=ni;break;case 536870912:n=tp;break;default:n=ni}n=Ph(n,xh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function xh(e,t){if(Ho=-1,Ko=0,G&6)throw Error(N(327));var n=e.callbackNode;if(Tr()&&e.callbackNode!==n)return null;var r=ri(e,e===Ee?_e:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Si(e,r);else{t=r;var s=G;G|=2;var o=Sh();(Ee!==e||_e!==t)&&(Mt=null,Yr=de()+500,Yn(e,t));do try{Vy();break}catch(l){wh(e,l)}while(!0);wu(),yi.current=o,G=s,he!==null?t=0:(Ee=null,_e=0,t=ve)}if(t!==0){if(t===2&&(s=Vl(e),s!==0&&(r=s,t=ya(e,s))),t===1)throw n=Gs,Yn(e,0),sn(e,r),He(e,de()),n;if(t===6)sn(e,r);else{if(s=e.current.alternate,!(r&30)&&!By(s)&&(t=Si(e,r),t===2&&(o=Vl(e),o!==0&&(r=o,t=ya(e,o))),t===1))throw n=Gs,Yn(e,0),sn(e,r),He(e,de()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:Dn(e,$e,Mt);break;case 3:if(sn(e,r),(r&130023424)===r&&(t=Mu+500-de(),10<t)){if(ri(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){De(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Jl(Dn.bind(null,e,$e,Mt),t);break}Dn(e,$e,Mt);break;case 4:if(sn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var i=31-gt(r);o=1<<i,i=t[i],i>s&&(s=i),r&=~o}if(r=s,r=de()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$y(r/1960))-r,10<r){e.timeoutHandle=Jl(Dn.bind(null,e,$e,Mt),r);break}Dn(e,$e,Mt);break;case 5:Dn(e,$e,Mt);break;default:throw Error(N(329))}}}return He(e,de()),e.callbackNode===n?xh.bind(null,e):null}function ya(e,t){var n=Ns;return e.current.memoizedState.isDehydrated&&(Yn(e,t).flags|=256),e=Si(e,t),e!==2&&(t=$e,$e=n,t!==null&&xa(t)),e}function xa(e){$e===null?$e=e:$e.push.apply($e,e)}function By(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 s=n[r],o=s.getSnapshot;s=s.value;try{if(!xt(o(),s))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 sn(e,t){for(t&=~Lu,t&=~Mi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-gt(t),r=1<<n;e[n]=-1,t&=~r}}function xd(e){if(G&6)throw Error(N(327));Tr();var t=ri(e,0);if(!(t&1))return He(e,de()),null;var n=Si(e,t);if(e.tag!==0&&n===2){var r=Vl(e);r!==0&&(t=r,n=ya(e,r))}if(n===1)throw n=Gs,Yn(e,0),sn(e,t),He(e,de()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dn(e,$e,Mt),He(e,de()),null}function Du(e,t){var n=G;G|=1;try{return e(t)}finally{G=n,G===0&&(Yr=de()+500,ji&&On())}}function nr(e){mn!==null&&mn.tag===0&&!(G&6)&&Tr();var t=G;G|=1;var n=lt.transition,r=X;try{if(lt.transition=null,X=1,e)return e()}finally{X=r,lt.transition=n,G=t,!(G&6)&&On()}}function Au(){Ke=Cr.current,ne(Cr)}function Yn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,yy(n)),he!==null)for(n=he.return;n!==null;){var r=n;switch(vu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ai();break;case 3:Gr(),ne(Ve),ne(Oe),Pu();break;case 5:bu(r);break;case 4:Gr();break;case 13:ne(se);break;case 19:ne(se);break;case 10:Su(r.type._context);break;case 22:case 23:Au()}n=n.return}if(Ee=e,he=e=kn(e.current,null),_e=Ke=t,ve=0,Gs=null,Lu=Mi=tr=0,$e=Ns=null,Fn!==null){for(t=0;t<Fn.length;t++)if(n=Fn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=s,r.next=i}n.pending=r}Fn=null}return e}function wh(e,t){do{var n=he;try{if(wu(),Wo.current=vi,gi){for(var r=oe.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}gi=!1}if(er=0,we=me=oe=null,Ps=!1,Qs=0,Ou.current=null,n===null||n.return===null){ve=1,Gs=t,he=null;break}e:{var o=e,i=n.return,l=n,a=t;if(t=_e,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,f=l,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var g=f.alternate;g?(f.updateQueue=g.updateQueue,f.memoizedState=g.memoizedState,f.lanes=g.lanes):(f.updateQueue=null,f.memoizedState=null)}var x=id(i);if(x!==null){x.flags&=-257,ld(x,i,l,o,t),x.mode&1&&od(o,u,t),t=x,a=u;var S=t.updateQueue;if(S===null){var E=new Set;E.add(a),t.updateQueue=E}else S.add(a);break e}else{if(!(t&1)){od(o,u,t),Fu();break e}a=Error(N(426))}}else if(re&&l.mode&1){var C=id(i);if(C!==null){!(C.flags&65536)&&(C.flags|=256),ld(C,i,l,o,t),yu(qr(a,l));break e}}o=a=qr(a,l),ve!==4&&(ve=2),Ns===null?Ns=[o]:Ns.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=rh(o,a,t);Zc(o,p);break e;case 1:l=a;var h=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof h.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(En===null||!En.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var y=sh(o,l,t);Zc(o,y);break e}}o=o.return}while(o!==null)}Ch(n)}catch(b){t=b,he===n&&n!==null&&(he=n=n.return);continue}break}while(!0)}function Sh(){var e=yi.current;return yi.current=vi,e===null?vi:e}function Fu(){(ve===0||ve===3||ve===2)&&(ve=4),Ee===null||!(tr&268435455)&&!(Mi&268435455)||sn(Ee,_e)}function Si(e,t){var n=G;G|=2;var r=Sh();(Ee!==e||_e!==t)&&(Mt=null,Yn(e,t));do try{Wy();break}catch(s){wh(e,s)}while(!0);if(wu(),G=n,yi.current=r,he!==null)throw Error(N(261));return Ee=null,_e=0,ve}function Wy(){for(;he!==null;)Eh(he)}function Vy(){for(;he!==null&&!mv();)Eh(he)}function Eh(e){var t=bh(e.alternate,e,Ke);e.memoizedProps=e.pendingProps,t===null?Ch(e):he=t,Ou.current=null}function Ch(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ay(n,t),n!==null){n.flags&=32767,he=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ve=6,he=null;return}}else if(n=Dy(n,t,Ke),n!==null){he=n;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);ve===0&&(ve=5)}function Dn(e,t,n){var r=X,s=lt.transition;try{lt.transition=null,X=1,Qy(e,t,n,r)}finally{lt.transition=s,X=r}return null}function Qy(e,t,n,r){do Tr();while(mn!==null);if(G&6)throw Error(N(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(bv(e,o),e===Ee&&(he=Ee=null,_e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||jo||(jo=!0,Ph(ni,function(){return Tr(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=lt.transition,lt.transition=null;var i=X;X=1;var l=G;G|=4,Ou.current=null,zy(e,n),vh(n,e),dy(Yl),si=!!ql,Yl=ql=null,e.current=n,Uy(n),gv(),G=l,X=i,lt.transition=o}else e.current=n;if(jo&&(jo=!1,mn=e,wi=s),o=e.pendingLanes,o===0&&(En=null),xv(n.stateNode),He(e,de()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(xi)throw xi=!1,e=ga,ga=null,e;return wi&1&&e.tag!==0&&Tr(),o=e.pendingLanes,o&1?e===va?Ts++:(Ts=0,va=e):Ts=0,On(),null}function Tr(){if(mn!==null){var e=rp(wi),t=lt.transition,n=X;try{if(lt.transition=null,X=16>e?16:e,mn===null)var r=!1;else{if(e=mn,mn=null,wi=0,G&6)throw Error(N(331));var s=G;for(G|=4,M=e.current;M!==null;){var o=M,i=o.child;if(M.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(M=u;M!==null;){var f=M;switch(f.tag){case 0:case 11:case 15:_s(8,f,o)}var c=f.child;if(c!==null)c.return=f,M=c;else for(;M!==null;){f=M;var g=f.sibling,x=f.return;if(hh(f),f===u){M=null;break}if(g!==null){g.return=x,M=g;break}M=x}}}var S=o.alternate;if(S!==null){var E=S.child;if(E!==null){S.child=null;do{var C=E.sibling;E.sibling=null,E=C}while(E!==null)}}M=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,M=i;else e:for(;M!==null;){if(o=M,o.flags&2048)switch(o.tag){case 0:case 11:case 15:_s(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,M=p;break e}M=o.return}}var h=e.current;for(M=h;M!==null;){i=M;var m=i.child;if(i.subtreeFlags&2064&&m!==null)m.return=i,M=m;else e:for(i=h;M!==null;){if(l=M,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Li(9,l)}}catch(b){ae(l,l.return,b)}if(l===i){M=null;break e}var y=l.sibling;if(y!==null){y.return=l.return,M=y;break e}M=l.return}}if(G=s,On(),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Pi,e)}catch{}r=!0}return r}finally{X=n,lt.transition=t}}return!1}function wd(e,t,n){t=qr(n,t),t=rh(e,t,1),e=Sn(e,t,1),t=De(),e!==null&&(lo(e,1,t),He(e,t))}function ae(e,t,n){if(e.tag===3)wd(e,e,n);else for(;t!==null;){if(t.tag===3){wd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(En===null||!En.has(r))){e=qr(n,e),e=sh(t,e,1),t=Sn(t,e,1),e=De(),t!==null&&(lo(t,1,e),He(t,e));break}}t=t.return}}function Hy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=De(),e.pingedLanes|=e.suspendedLanes&n,Ee===e&&(_e&n)===n&&(ve===4||ve===3&&(_e&130023424)===_e&&500>de()-Mu?Yn(e,0):Lu|=n),He(e,t)}function kh(e,t){t===0&&(e.mode&1?(t=So,So<<=1,!(So&130023424)&&(So=4194304)):t=1);var n=De();e=Vt(e,t),e!==null&&(lo(e,t,n),He(e,n))}function Ky(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kh(e,n)}function Gy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),kh(e,n)}var bh;bh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)We=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return We=!1,My(e,t,n);We=!!(e.flags&131072)}else We=!1,re&&t.flags&1048576&&Tp(t,di,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qo(e,t),e=t.pendingProps;var s=Qr(t,Oe.current);Nr(t,n),s=Nu(null,t,r,e,s,n);var o=Tu();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(r)?(o=!0,ui(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Cu(t),s.updater=Oi,t.stateNode=s,s._reactInternals=t,oa(t,r,e,n),t=aa(null,t,r,!0,o,n)):(t.tag=0,re&&o&&gu(t),Me(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qo(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=Yy(r),e=ft(r,e),s){case 0:t=la(null,t,r,e,n);break e;case 1:t=cd(null,t,r,e,n);break e;case 11:t=ad(null,t,r,e,n);break e;case 14:t=ud(null,t,r,ft(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:ft(r,s),la(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:ft(r,s),cd(e,t,r,s,n);case 3:e:{if(ah(t),e===null)throw Error(N(387));r=t.pendingProps,o=t.memoizedState,s=o.element,Mp(e,t),hi(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=qr(Error(N(423)),t),t=dd(e,t,r,n,s);break e}else if(r!==s){s=qr(Error(N(424)),t),t=dd(e,t,r,n,s);break e}else for(Xe=wn(t.stateNode.containerInfo.firstChild),Je=t,re=!0,mt=null,n=Op(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Hr(),r===s){t=Qt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Dp(t),e===null&&na(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,Xl(r,s)?i=null:o!==null&&Xl(r,o)&&(t.flags|=32),lh(e,t),Me(e,t,i,n),t.child;case 6:return e===null&&na(t),null;case 13:return uh(e,t,n);case 4:return ku(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Kr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:ft(r,s),ad(e,t,r,s,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,Z(fi,r._currentValue),r._currentValue=i,o!==null)if(xt(o.value,i)){if(o.children===s.children&&!Ve.current){t=Qt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){i=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=$t(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ra(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(N(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),ra(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Me(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Nr(t,n),s=at(s),r=r(s),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,s=ft(r,t.pendingProps),s=ft(r.type,s),ud(e,t,r,s,n);case 15:return oh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:ft(r,s),Qo(e,t),t.tag=1,Qe(r)?(e=!0,ui(t)):e=!1,Nr(t,n),nh(t,r,s),oa(t,r,s,n),aa(null,t,r,!0,e,n);case 19:return ch(e,t,n);case 22:return ih(e,t,n)}throw Error(N(156,t.tag))};function Ph(e,t){return Zf(e,t)}function qy(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 it(e,t,n,r){return new qy(e,t,n,r)}function zu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yy(e){if(typeof e=="function")return zu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===su)return 11;if(e===ou)return 14}return 2}function kn(e,t){var n=e.alternate;return n===null?(n=it(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 Go(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")zu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case pr:return Xn(n.children,s,o,t);case ru:i=8,s|=8;break;case Tl:return e=it(12,n,t,s|2),e.elementType=Tl,e.lanes=o,e;case Rl:return e=it(13,n,t,s),e.elementType=Rl,e.lanes=o,e;case jl:return e=it(19,n,t,s),e.elementType=jl,e.lanes=o,e;case Df:return Di(n,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lf:i=10;break e;case Mf:i=9;break e;case su:i=11;break e;case ou:i=14;break e;case en:i=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=it(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function Xn(e,t,n,r){return e=it(7,e,r,t),e.lanes=n,e}function Di(e,t,n,r){return e=it(22,e,r,t),e.elementType=Df,e.lanes=n,e.stateNode={isHidden:!1},e}function xl(e,t,n){return e=it(6,e,null,t),e.lanes=n,e}function wl(e,t,n){return t=it(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xy(e,t,n,r,s){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=el(0),this.expirationTimes=el(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=el(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Uu(e,t,n,r,s,o,i,l,a){return e=new Xy(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=it(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cu(o),e}function Jy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:fr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _h(e){if(!e)return Nn;e=e._reactInternals;e:{if(or(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Qe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(Qe(n))return _p(e,n,t)}return t}function Nh(e,t,n,r,s,o,i,l,a){return e=Uu(n,r,!0,e,s,o,i,l,a),e.context=_h(null),n=e.current,r=De(),s=Cn(n),o=$t(r,s),o.callback=t??null,Sn(n,o,s),e.current.lanes=s,lo(e,s,r),He(e,r),e}function Ai(e,t,n,r){var s=t.current,o=De(),i=Cn(s);return n=_h(n),t.context===null?t.context=n:t.pendingContext=n,t=$t(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Sn(s,t,i),e!==null&&(vt(e,s,i,o),Bo(e,s,i)),i}function Ei(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 Sd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $u(e,t){Sd(e,t),(e=e.alternate)&&Sd(e,t)}function Zy(){return null}var Th=typeof reportError=="function"?reportError:function(e){console.error(e)};function Bu(e){this._internalRoot=e}Fi.prototype.render=Bu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Ai(e,t,null,null)};Fi.prototype.unmount=Bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nr(function(){Ai(null,e,null,null)}),t[Wt]=null}};function Fi(e){this._internalRoot=e}Fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=ip();e={blockedOn:null,target:e,priority:t};for(var n=0;n<rn.length&&t!==0&&t<rn[n].priority;n++);rn.splice(n,0,e),n===0&&ap(e)}};function Wu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function zi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ed(){}function ex(e,t,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var u=Ei(i);o.call(u)}}var i=Nh(t,r,e,0,null,!1,!1,"",Ed);return e._reactRootContainer=i,e[Wt]=i.current,Us(e.nodeType===8?e.parentNode:e),nr(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var u=Ei(a);l.call(u)}}var a=Uu(e,0,!1,null,null,!1,!1,"",Ed);return e._reactRootContainer=a,e[Wt]=a.current,Us(e.nodeType===8?e.parentNode:e),nr(function(){Ai(t,a,n,r)}),a}function Ui(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var l=s;s=function(){var a=Ei(i);l.call(a)}}Ai(t,i,e,s)}else i=ex(n,t,e,s,r);return Ei(i)}sp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=gs(t.pendingLanes);n!==0&&(au(t,n|1),He(t,de()),!(G&6)&&(Yr=de()+500,On()))}break;case 13:nr(function(){var r=Vt(e,1);if(r!==null){var s=De();vt(r,e,1,s)}}),$u(e,1)}};uu=function(e){if(e.tag===13){var t=Vt(e,134217728);if(t!==null){var n=De();vt(t,e,134217728,n)}$u(e,134217728)}};op=function(e){if(e.tag===13){var t=Cn(e),n=Vt(e,t);if(n!==null){var r=De();vt(n,e,t,r)}$u(e,t)}};ip=function(){return X};lp=function(e,t){var n=X;try{return X=e,t()}finally{X=n}};$l=function(e,t,n){switch(t){case"input":if(Ll(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 s=Ri(r);if(!s)throw Error(N(90));Ff(r),Ll(r,s)}}}break;case"textarea":Uf(e,n);break;case"select":t=n.value,t!=null&&kr(e,!!n.multiple,t,!1)}};Kf=Du;Gf=nr;var tx={usingClientEntryPoint:!1,Events:[uo,vr,Ri,Qf,Hf,Du]},ds={findFiberByHostInstance:An,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nx={bundleType:ds.bundleType,version:ds.version,rendererPackageName:ds.rendererPackageName,rendererConfig:ds.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Kt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Xf(e),e===null?null:e.stateNode},findFiberByHostInstance:ds.findFiberByHostInstance||Zy,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 Io=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Io.isDisabled&&Io.supportsFiber)try{Pi=Io.inject(nx),Nt=Io}catch{}}et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tx;et.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wu(t))throw Error(N(200));return Jy(e,t,null,n)};et.createRoot=function(e,t){if(!Wu(e))throw Error(N(299));var n=!1,r="",s=Th;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Uu(e,1,!1,null,null,n,!1,r,s),e[Wt]=t.current,Us(e.nodeType===8?e.parentNode:e),new Bu(t)};et.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(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=Xf(t),e=e===null?null:e.stateNode,e};et.flushSync=function(e){return nr(e)};et.hydrate=function(e,t,n){if(!zi(t))throw Error(N(200));return Ui(null,e,t,!0,n)};et.hydrateRoot=function(e,t,n){if(!Wu(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",i=Th;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Nh(t,null,e,1,n??null,s,!1,o,i),e[Wt]=t.current,Us(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Fi(t)};et.render=function(e,t,n){if(!zi(t))throw Error(N(200));return Ui(null,e,t,!1,n)};et.unmountComponentAtNode=function(e){if(!zi(e))throw Error(N(40));return e._reactRootContainer?(nr(function(){Ui(null,null,e,!1,function(){e._reactRootContainer=null,e[Wt]=null})}),!0):!1};et.unstable_batchedUpdates=Du;et.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!zi(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return Ui(e,t,n,!1,r)};et.version="18.3.1-next-f1338f8080-20240426";function Rh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rh)}catch(e){console.error(e)}}Rh(),Rf.exports=et;var $i=Rf.exports,Cd=$i;_l.createRoot=Cd.createRoot,_l.hydrateRoot=Cd.hydrateRoot;var fo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},$n,on,jr,af,rx=(af=class extends fo{constructor(){super();z(this,$n);z(this,on);z(this,jr);L(this,jr,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){w(this,on)||this.setEventListener(w(this,jr))}onUnsubscribe(){var t;this.hasListeners()||((t=w(this,on))==null||t.call(this),L(this,on,void 0))}setEventListener(t){var n;L(this,jr,t),(n=w(this,on))==null||n.call(this),L(this,on,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){w(this,$n)!==t&&(L(this,$n,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof w(this,$n)=="boolean"?w(this,$n):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$n=new WeakMap,on=new WeakMap,jr=new WeakMap,af),Vu=new rx,sx={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ln,qa,uf,ox=(uf=class{constructor(){z(this,ln,sx);z(this,qa,!1)}setTimeoutProvider(e){L(this,ln,e)}setTimeout(e,t){return w(this,ln).setTimeout(e,t)}clearTimeout(e){w(this,ln).clearTimeout(e)}setInterval(e,t){return w(this,ln).setInterval(e,t)}clearInterval(e){w(this,ln).clearInterval(e)}},ln=new WeakMap,qa=new WeakMap,uf),Un=new ox;function ix(e){setTimeout(e,0)}var lx=typeof window>"u"||"Deno"in globalThis;function Ue(){}function ax(e,t){return typeof e=="function"?e(t):e}function wa(e){return typeof e=="number"&&e>=0&&e!==1/0}function jh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bn(e,t){return typeof e=="function"?e(t):e}function Ye(e,t){return typeof e=="function"?e(t):e}function kd(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==Qu(i,t.options))return!1}else if(!Ys(t.queryKey,i))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||o&&!o(t))}function bd(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(qs(t.options.mutationKey)!==qs(o))return!1}else if(!Ys(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Qu(e,t){return((t==null?void 0:t.queryKeyHashFn)||qs)(e)}function qs(e){return JSON.stringify(e,(t,n)=>Ea(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Ys(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ys(e[n],t[n])):!1}var ux=Object.prototype.hasOwnProperty;function Ih(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Pd(e)&&Pd(t);if(!r&&!(Ea(e)&&Ea(t)))return t;const o=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),l=i.length,a=r?new Array(l):{};let u=0;for(let f=0;f<l;f++){const c=r?f:i[f],g=e[c],x=t[c];if(g===x){a[c]=g,(r?f<o:ux.call(e,c))&&u++;continue}if(g===null||x===null||typeof g!="object"||typeof x!="object"){a[c]=x;continue}const S=Ih(g,x,n+1);a[c]=S,S===g&&u++}return o===l&&u===o?e:a}function Sa(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Pd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ea(e){if(!_d(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!_d(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function _d(e){return Object.prototype.toString.call(e)==="[object Object]"}function cx(e){return new Promise(t=>{Un.setTimeout(t,e)})}function Ca(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ih(e,t):t}function dx(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function fx(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Hu=Symbol();function Oh(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Hu?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Lh(e,t){return typeof e=="function"?e(...t):!!e}function px(e,t,n){let r=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var Xs=(()=>{let e=()=>lx;return{isServer(){return e()},setIsServer(t){e=t}}})();function ka(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var hx=ix;function mx(){let e=[],t=0,n=l=>{l()},r=l=>{l()},s=hx;const o=l=>{t?e.push(l):s(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&s(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||i()}return a},batchCalls:l=>(...a)=>{o(()=>{l(...a)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{s=l}}}var Pe=mx(),Ir,an,Or,cf,gx=(cf=class extends fo{constructor(){super();z(this,Ir,!0);z(this,an);z(this,Or);L(this,Or,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){w(this,an)||this.setEventListener(w(this,Or))}onUnsubscribe(){var t;this.hasListeners()||((t=w(this,an))==null||t.call(this),L(this,an,void 0))}setEventListener(t){var n;L(this,Or,t),(n=w(this,an))==null||n.call(this),L(this,an,t(this.setOnline.bind(this)))}setOnline(t){w(this,Ir)!==t&&(L(this,Ir,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return w(this,Ir)}},Ir=new WeakMap,an=new WeakMap,Or=new WeakMap,cf),Ci=new gx;function vx(e){return Math.min(1e3*2**e,3e4)}function Mh(e){return(e??"online")==="online"?Ci.isOnline():!0}var ba=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Dh(e){let t=!1,n=0,r;const s=ka(),o=()=>s.status!=="pending",i=E=>{var C;if(!o()){const p=new ba(E);g(p),(C=e.onCancel)==null||C.call(e,p)}},l=()=>{t=!0},a=()=>{t=!1},u=()=>Vu.isFocused()&&(e.networkMode==="always"||Ci.isOnline())&&e.canRun(),f=()=>Mh(e.networkMode)&&e.canRun(),c=E=>{o()||(r==null||r(),s.resolve(E))},g=E=>{o()||(r==null||r(),s.reject(E))},x=()=>new Promise(E=>{var C;r=p=>{(o()||u())&&E(p)},(C=e.onPause)==null||C.call(e)}).then(()=>{var E;r=void 0,o()||(E=e.onContinue)==null||E.call(e)}),S=()=>{if(o())return;let E;const C=n===0?e.initialPromise:void 0;try{E=C??e.fn()}catch(p){E=Promise.reject(p)}Promise.resolve(E).then(c).catch(p=>{var k;if(o())return;const h=e.retry??(Xs.isServer()?0:3),m=e.retryDelay??vx,y=typeof m=="function"?m(n,p):m,b=h===!0||typeof h=="number"&&n<h||typeof h=="function"&&h(n,p);if(t||!b){g(p);return}n++,(k=e.onFail)==null||k.call(e,n,p),cx(y).then(()=>u()?void 0:x()).then(()=>{t?g(p):S()})})};return{promise:s,status:()=>s.status,cancel:i,continue:()=>(r==null||r(),s),cancelRetry:l,continueRetry:a,canStart:f,start:()=>(f()?S():x().then(S),s)}}var Bn,df,Ah=(df=class{constructor(){z(this,Bn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wa(this.gcTime)&&L(this,Bn,Un.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xs.isServer()?1/0:5*60*1e3))}clearGcTimeout(){w(this,Bn)!==void 0&&(Un.clearTimeout(w(this,Bn)),L(this,Bn,void 0))}},Bn=new WeakMap,df);function yx(e){return{onFetch:(t,n)=>{var f,c,g,x,S;const r=t.options,s=(g=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:g.direction,o=((x=t.state.data)==null?void 0:x.pages)||[],i=((S=t.state.data)==null?void 0:S.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let E=!1;const C=m=>{px(m,()=>t.signal,()=>E=!0)},p=Oh(t.options,t.fetchOptions),h=async(m,y,b)=>{if(E)return Promise.reject(t.signal.reason);if(y==null&&m.pages.length)return Promise.resolve(m);const _=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:y,direction:b?"backward":"forward",meta:t.options.meta};return C(I),I})(),P=await p(_),{maxPages:O}=t.options,j=b?fx:dx;return{pages:j(m.pages,P,O),pageParams:j(m.pageParams,y,O)}};if(s&&o.length){const m=s==="backward",y=m?xx:Nd,b={pages:o,pageParams:i},k=y(r,b);l=await h(b,k,m)}else{const m=e??o.length;do{const y=a===0?i[0]??r.initialPageParam:Nd(r,l);if(a>0&&y==null)break;l=await h(l,y),a++}while(a<m)}return l};t.options.persister?t.fetchFn=()=>{var E,C;return(C=(E=t.options).persister)==null?void 0:C.call(E,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Nd(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function xx(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Lr,Wn,Mr,nt,Vn,xe,eo,Qn,Ge,Fh,Ot,ff,wx=(ff=class extends Ah{constructor(t){super();z(this,Ge);z(this,Lr);z(this,Wn);z(this,Mr);z(this,nt);z(this,Vn);z(this,xe);z(this,eo);z(this,Qn);L(this,Qn,!1),L(this,eo,t.defaultOptions),this.setOptions(t.options),this.observers=[],L(this,Vn,t.client),L(this,nt,w(this,Vn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,L(this,Wn,Rd(this.options)),this.state=t.state??w(this,Wn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return w(this,Lr)}get promise(){var t;return(t=w(this,xe))==null?void 0:t.promise}setOptions(t){if(this.options={...w(this,eo),...t},t!=null&&t._type&&L(this,Lr,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Rd(this.options);n.data!==void 0&&(this.setState(Td(n.data,n.dataUpdatedAt)),L(this,Wn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&w(this,nt).remove(this)}setData(t,n){const r=Ca(this.state.data,t,this.options);return H(this,Ge,Ot).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){H(this,Ge,Ot).call(this,{type:"setState",state:t})}cancel(t){var r,s;const n=(r=w(this,xe))==null?void 0:r.promise;return(s=w(this,xe))==null||s.cancel(t),n?n.then(Ue).catch(Ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return w(this,Wn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Ye(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hu||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>bn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!jh(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=w(this,xe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=w(this,xe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),w(this,nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(w(this,xe)&&(w(this,Qn)||H(this,Ge,Fh).call(this)?w(this,xe).cancel({revert:!0}):w(this,xe).cancelRetry()),this.scheduleGc()),w(this,nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||H(this,Ge,Ot).call(this,{type:"invalidate"})}async fetch(t,n){var u,f,c,g,x,S,E,C,p,h,m;if(this.state.fetchStatus!=="idle"&&((u=w(this,xe))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(w(this,xe))return w(this,xe).continueRetry(),w(this,xe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const y=this.observers.find(b=>b.options.queryFn);y&&this.setOptions(y.options)}const r=new AbortController,s=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(L(this,Qn,!0),r.signal)})},o=()=>{const y=Oh(this.options,n),k=(()=>{const _={client:w(this,Vn),queryKey:this.queryKey,meta:this.meta};return s(_),_})();return L(this,Qn,!1),this.options.persister?this.options.persister(y,k,this):y(k)},l=(()=>{const y={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:w(this,Vn),state:this.state,fetchFn:o};return s(y),y})(),a=w(this,Lr)==="infinite"?yx(this.options.pages):this.options.behavior;a==null||a.onFetch(l,this),L(this,Mr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=l.fetchOptions)==null?void 0:f.meta))&&H(this,Ge,Ot).call(this,{type:"fetch",meta:(c=l.fetchOptions)==null?void 0:c.meta}),L(this,xe,Dh({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:y=>{y instanceof ba&&y.revert&&this.setState({...w(this,Mr),fetchStatus:"idle"}),r.abort()},onFail:(y,b)=>{H(this,Ge,Ot).call(this,{type:"failed",failureCount:y,error:b})},onPause:()=>{H(this,Ge,Ot).call(this,{type:"pause"})},onContinue:()=>{H(this,Ge,Ot).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const y=await w(this,xe).start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),(x=(g=w(this,nt).config).onSuccess)==null||x.call(g,y,this),(E=(S=w(this,nt).config).onSettled)==null||E.call(S,y,this.state.error,this),y}catch(y){if(y instanceof ba){if(y.silent)return w(this,xe).promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw H(this,Ge,Ot).call(this,{type:"error",error:y}),(p=(C=w(this,nt).config).onError)==null||p.call(C,y,this),(m=(h=w(this,nt).config).onSettled)==null||m.call(h,this.state.data,y,this),y}finally{this.scheduleGc()}}},Lr=new WeakMap,Wn=new WeakMap,Mr=new WeakMap,nt=new WeakMap,Vn=new WeakMap,xe=new WeakMap,eo=new WeakMap,Qn=new WeakMap,Ge=new WeakSet,Fh=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ot=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...zh(r.data,this.options),fetchMeta:t.meta??null};case"success":const s={...r,...Td(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return L(this,Mr,t.manual?s:void 0),s;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Pe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),w(this,nt).notify({query:this,type:"updated",action:t})})},ff);function zh(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Mh(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Td(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Rd(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ze,K,to,Le,Hn,Dr,At,un,no,Ar,Fr,Kn,Gn,cn,zr,Y,ys,Pa,_a,Na,Ta,Ra,ja,Ia,Uh,pf,Sx=(pf=class extends fo{constructor(t,n){super();z(this,Y);z(this,ze);z(this,K);z(this,to);z(this,Le);z(this,Hn);z(this,Dr);z(this,At);z(this,un);z(this,no);z(this,Ar);z(this,Fr);z(this,Kn);z(this,Gn);z(this,cn);z(this,zr,new Set);this.options=n,L(this,ze,t),L(this,un,null),L(this,At,ka()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(w(this,K).addObserver(this),jd(w(this,K),this.options)?H(this,Y,ys).call(this):this.updateResult(),H(this,Y,Ta).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Oa(w(this,K),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Oa(w(this,K),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,H(this,Y,Ra).call(this),H(this,Y,ja).call(this),w(this,K).removeObserver(this)}setOptions(t){const n=this.options,r=w(this,K);if(this.options=w(this,ze).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ye(this.options.enabled,w(this,K))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");H(this,Y,Ia).call(this),w(this,K).setOptions(this.options),n._defaulted&&!Sa(this.options,n)&&w(this,ze).getQueryCache().notify({type:"observerOptionsUpdated",query:w(this,K),observer:this});const s=this.hasListeners();s&&Id(w(this,K),r,this.options,n)&&H(this,Y,ys).call(this),this.updateResult(),s&&(w(this,K)!==r||Ye(this.options.enabled,w(this,K))!==Ye(n.enabled,w(this,K))||bn(this.options.staleTime,w(this,K))!==bn(n.staleTime,w(this,K)))&&H(this,Y,Pa).call(this);const o=H(this,Y,_a).call(this);s&&(w(this,K)!==r||Ye(this.options.enabled,w(this,K))!==Ye(n.enabled,w(this,K))||o!==w(this,cn))&&H(this,Y,Na).call(this,o)}getOptimisticResult(t){const n=w(this,ze).getQueryCache().build(w(this,ze),t),r=this.createResult(n,t);return Cx(this,r)&&(L(this,Le,r),L(this,Dr,this.options),L(this,Hn,w(this,K).state)),r}getCurrentResult(){return w(this,Le)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&w(this,At).status==="pending"&&w(this,At).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,s))})}trackProp(t){w(this,zr).add(t)}getCurrentQuery(){return w(this,K)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=w(this,ze).defaultQueryOptions(t),r=w(this,ze).getQueryCache().build(w(this,ze),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return H(this,Y,ys).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),w(this,Le)))}createResult(t,n){var O;const r=w(this,K),s=this.options,o=w(this,Le),i=w(this,Hn),l=w(this,Dr),u=t!==r?t.state:w(this,to),{state:f}=t;let c={...f},g=!1,x;if(n._optimisticResults){const j=this.hasListeners(),I=!j&&jd(t,n),T=j&&Id(t,r,n,s);(I||T)&&(c={...c,...zh(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:S,errorUpdatedAt:E,status:C}=c;x=c.data;let p=!1;if(n.placeholderData!==void 0&&x===void 0&&C==="pending"){let j;o!=null&&o.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(j=o.data,p=!0):j=typeof n.placeholderData=="function"?n.placeholderData((O=w(this,Fr))==null?void 0:O.state.data,w(this,Fr)):n.placeholderData,j!==void 0&&(C="success",x=Ca(o==null?void 0:o.data,j,n),g=!0)}if(n.select&&x!==void 0&&!p)if(o&&x===(i==null?void 0:i.data)&&n.select===w(this,no))x=w(this,Ar);else try{L(this,no,n.select),x=n.select(x),x=Ca(o==null?void 0:o.data,x,n),L(this,Ar,x),L(this,un,null)}catch(j){L(this,un,j)}w(this,un)&&(S=w(this,un),x=w(this,Ar),E=Date.now(),C="error");const h=c.fetchStatus==="fetching",m=C==="pending",y=C==="error",b=m&&h,k=x!==void 0,P={status:C,fetchStatus:c.fetchStatus,isPending:m,isSuccess:C==="success",isError:y,isInitialLoading:b,isLoading:b,data:x,dataUpdatedAt:c.dataUpdatedAt,error:S,errorUpdatedAt:E,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:h,isRefetching:h&&!m,isLoadingError:y&&!k,isPaused:c.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:y&&k,isStale:Ku(t,n),refetch:this.refetch,promise:w(this,At),isEnabled:Ye(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const j=P.data!==void 0,I=P.status==="error"&&!j,T=ce=>{I?ce.reject(P.error):j&&ce.resolve(P.data)},D=()=>{const ce=L(this,At,P.promise=ka());T(ce)},B=w(this,At);switch(B.status){case"pending":t.queryHash===r.queryHash&&T(B);break;case"fulfilled":(I||P.data!==B.value)&&D();break;case"rejected":(!I||P.error!==B.reason)&&D();break}}return P}updateResult(){const t=w(this,Le),n=this.createResult(w(this,K),this.options);if(L(this,Hn,w(this,K).state),L(this,Dr,this.options),w(this,Hn).data!==void 0&&L(this,Fr,w(this,K)),Sa(n,t))return;L(this,Le,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!w(this,zr).size)return!0;const i=new Set(o??w(this,zr));return this.options.throwOnError&&i.add("error"),Object.keys(w(this,Le)).some(l=>{const a=l;return w(this,Le)[a]!==t[a]&&i.has(a)})};H(this,Y,Uh).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&H(this,Y,Ta).call(this)}},ze=new WeakMap,K=new WeakMap,to=new WeakMap,Le=new WeakMap,Hn=new WeakMap,Dr=new WeakMap,At=new WeakMap,un=new WeakMap,no=new WeakMap,Ar=new WeakMap,Fr=new WeakMap,Kn=new WeakMap,Gn=new WeakMap,cn=new WeakMap,zr=new WeakMap,Y=new WeakSet,ys=function(t){H(this,Y,Ia).call(this);let n=w(this,K).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ue)),n},Pa=function(){H(this,Y,Ra).call(this);const t=bn(this.options.staleTime,w(this,K));if(Xs.isServer()||w(this,Le).isStale||!wa(t))return;const r=jh(w(this,Le).dataUpdatedAt,t)+1;L(this,Kn,Un.setTimeout(()=>{w(this,Le).isStale||this.updateResult()},r))},_a=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(w(this,K)):this.options.refetchInterval)??!1},Na=function(t){H(this,Y,ja).call(this),L(this,cn,t),!(Xs.isServer()||Ye(this.options.enabled,w(this,K))===!1||!wa(w(this,cn))||w(this,cn)===0)&&L(this,Gn,Un.setInterval(()=>{(this.options.refetchIntervalInBackground||Vu.isFocused())&&H(this,Y,ys).call(this)},w(this,cn)))},Ta=function(){H(this,Y,Pa).call(this),H(this,Y,Na).call(this,H(this,Y,_a).call(this))},Ra=function(){w(this,Kn)!==void 0&&(Un.clearTimeout(w(this,Kn)),L(this,Kn,void 0))},ja=function(){w(this,Gn)!==void 0&&(Un.clearInterval(w(this,Gn)),L(this,Gn,void 0))},Ia=function(){const t=w(this,ze).getQueryCache().build(w(this,ze),this.options);if(t===w(this,K))return;const n=w(this,K);L(this,K,t),L(this,to,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Uh=function(t){Pe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(w(this,Le))}),w(this,ze).getQueryCache().notify({query:w(this,K),type:"observerResultsUpdated"})})},pf);function Ex(e,t){return Ye(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Ye(t.retryOnMount,e)===!1)}function jd(e,t){return Ex(e,t)||e.state.data!==void 0&&Oa(e,t,t.refetchOnMount)}function Oa(e,t,n){if(Ye(t.enabled,e)!==!1&&bn(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ku(e,t)}return!1}function Id(e,t,n,r){return(e!==t||Ye(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ku(e,n)}function Ku(e,t){return Ye(t.enabled,e)!==!1&&e.isStaleByTime(bn(t.staleTime,e))}function Cx(e,t){return!Sa(e.getCurrentResult(),t)}var ro,kt,je,qn,bt,Jt,hf,kx=(hf=class extends Ah{constructor(t){super();z(this,bt);z(this,ro);z(this,kt);z(this,je);z(this,qn);L(this,ro,t.client),this.mutationId=t.mutationId,L(this,je,t.mutationCache),L(this,kt,[]),this.state=t.state||bx(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){w(this,kt).includes(t)||(w(this,kt).push(t),this.clearGcTimeout(),w(this,je).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){L(this,kt,w(this,kt).filter(n=>n!==t)),this.scheduleGc(),w(this,je).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){w(this,kt).length||(this.state.status==="pending"?this.scheduleGc():w(this,je).remove(this))}continue(){var t;return((t=w(this,qn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,l,a,u,f,c,g,x,S,E,C,p,h,m,y,b,k,_;const n=()=>{H(this,bt,Jt).call(this,{type:"continue"})},r={client:w(this,ro),meta:this.options.meta,mutationKey:this.options.mutationKey};L(this,qn,Dh({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,O)=>{H(this,bt,Jt).call(this,{type:"failed",failureCount:P,error:O})},onPause:()=>{H(this,bt,Jt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>w(this,je).canRun(this)}));const s=this.state.status==="pending",o=!w(this,qn).canStart();try{if(s)n();else{H(this,bt,Jt).call(this,{type:"pending",variables:t,isPaused:o}),w(this,je).config.onMutate&&await w(this,je).config.onMutate(t,this,r);const O=await((l=(i=this.options).onMutate)==null?void 0:l.call(i,t,r));O!==this.state.context&&H(this,bt,Jt).call(this,{type:"pending",context:O,variables:t,isPaused:o})}const P=await w(this,qn).start();return await((u=(a=w(this,je).config).onSuccess)==null?void 0:u.call(a,P,t,this.state.context,this,r)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,P,t,this.state.context,r)),await((x=(g=w(this,je).config).onSettled)==null?void 0:x.call(g,P,null,this.state.variables,this.state.context,this,r)),await((E=(S=this.options).onSettled)==null?void 0:E.call(S,P,null,t,this.state.context,r)),H(this,bt,Jt).call(this,{type:"success",data:P}),P}catch(P){try{await((p=(C=w(this,je).config).onError)==null?void 0:p.call(C,P,t,this.state.context,this,r))}catch(O){Promise.reject(O)}try{await((m=(h=this.options).onError)==null?void 0:m.call(h,P,t,this.state.context,r))}catch(O){Promise.reject(O)}try{await((b=(y=w(this,je).config).onSettled)==null?void 0:b.call(y,void 0,P,this.state.variables,this.state.context,this,r))}catch(O){Promise.reject(O)}try{await((_=(k=this.options).onSettled)==null?void 0:_.call(k,void 0,P,t,this.state.context,r))}catch(O){Promise.reject(O)}throw H(this,bt,Jt).call(this,{type:"error",error:P}),P}finally{w(this,je).runNext(this)}}},ro=new WeakMap,kt=new WeakMap,je=new WeakMap,qn=new WeakMap,bt=new WeakSet,Jt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Pe.batch(()=>{w(this,kt).forEach(r=>{r.onMutationUpdate(t)}),w(this,je).notify({mutation:this,type:"updated",action:t})})},hf);function bx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ft,pt,so,mf,Px=(mf=class extends fo{constructor(t={}){super();z(this,Ft);z(this,pt);z(this,so);this.config=t,L(this,Ft,new Set),L(this,pt,new Map),L(this,so,0)}build(t,n,r){const s=new kx({client:t,mutationCache:this,mutationId:++mo(this,so)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){w(this,Ft).add(t);const n=Oo(t);if(typeof n=="string"){const r=w(this,pt).get(n);r?r.push(t):w(this,pt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(w(this,Ft).delete(t)){const n=Oo(t);if(typeof n=="string"){const r=w(this,pt).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&w(this,pt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Oo(t);if(typeof n=="string"){const r=w(this,pt).get(n),s=r==null?void 0:r.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Oo(t);if(typeof n=="string"){const s=(r=w(this,pt).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Pe.batch(()=>{w(this,Ft).forEach(t=>{this.notify({type:"removed",mutation:t})}),w(this,Ft).clear(),w(this,pt).clear()})}getAll(){return Array.from(w(this,Ft))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>bd(n,r))}findAll(t={}){return this.getAll().filter(n=>bd(t,n))}notify(t){Pe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Pe.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ue))))}},Ft=new WeakMap,pt=new WeakMap,so=new WeakMap,mf);function Oo(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Pt,gf,_x=(gf=class extends fo{constructor(t={}){super();z(this,Pt);this.config=t,L(this,Pt,new Map)}build(t,n,r){const s=n.queryKey,o=n.queryHash??Qu(s,n);let i=this.get(o);return i||(i=new wx({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){w(this,Pt).has(t.queryHash)||(w(this,Pt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=w(this,Pt).get(t.queryHash);n&&(t.destroy(),n===t&&w(this,Pt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Pe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return w(this,Pt).get(t)}getAll(){return[...w(this,Pt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>kd(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>kd(t,r)):n}notify(t){Pe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Pe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Pe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Pt=new WeakMap,gf),le,dn,fn,Ur,$r,pn,Br,Wr,vf,Nx=(vf=class{constructor(e={}){z(this,le);z(this,dn);z(this,fn);z(this,Ur);z(this,$r);z(this,pn);z(this,Br);z(this,Wr);L(this,le,e.queryCache||new _x),L(this,dn,e.mutationCache||new Px),L(this,fn,e.defaultOptions||{}),L(this,Ur,new Map),L(this,$r,new Map),L(this,pn,0)}mount(){mo(this,pn)._++,w(this,pn)===1&&(L(this,Br,Vu.subscribe(async e=>{e&&(await this.resumePausedMutations(),w(this,le).onFocus())})),L(this,Wr,Ci.subscribe(async e=>{e&&(await this.resumePausedMutations(),w(this,le).onOnline())})))}unmount(){var e,t;mo(this,pn)._--,w(this,pn)===0&&((e=w(this,Br))==null||e.call(this),L(this,Br,void 0),(t=w(this,Wr))==null||t.call(this),L(this,Wr,void 0))}isFetching(e){return w(this,le).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return w(this,dn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=w(this,le).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=w(this,le).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(bn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return w(this,le).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=w(this,le).get(r.queryHash),o=s==null?void 0:s.state.data,i=ax(t,o);if(i!==void 0)return w(this,le).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Pe.batch(()=>w(this,le).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=w(this,le).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=w(this,le);Pe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=w(this,le);return Pe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Pe.batch(()=>w(this,le).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Ue).catch(Ue)}invalidateQueries(e,t={}){return Pe.batch(()=>(w(this,le).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Pe.batch(()=>w(this,le).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ue)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ue)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=w(this,le).build(this,t);return n.isStaleByTime(bn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ue).catch(Ue)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ue).catch(Ue)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Ci.isOnline()?w(this,dn).resumePausedMutations():Promise.resolve()}getQueryCache(){return w(this,le)}getMutationCache(){return w(this,dn)}getDefaultOptions(){return w(this,fn)}setDefaultOptions(e){L(this,fn,e)}setQueryDefaults(e,t){w(this,Ur).set(qs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...w(this,Ur).values()],n={};return t.forEach(r=>{Ys(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){w(this,$r).set(qs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...w(this,$r).values()],n={};return t.forEach(r=>{Ys(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...w(this,fn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Qu(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Hu&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...w(this,fn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){w(this,le).clear(),w(this,dn).clear()}},le=new WeakMap,dn=new WeakMap,fn=new WeakMap,Ur=new WeakMap,$r=new WeakMap,pn=new WeakMap,Br=new WeakMap,Wr=new WeakMap,vf),$h=v.createContext(void 0),Gu=e=>{const t=v.useContext($h);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Tx=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx($h.Provider,{value:e,children:t})),Bh=v.createContext(!1),Rx=()=>v.useContext(Bh);Bh.Provider;function jx(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ix=v.createContext(jx()),Ox=()=>v.useContext(Ix),Lx=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Lh(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Mx=e=>{v.useEffect(()=>{e.clearReset()},[e])},Dx=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||Lh(n,[e.error,r])),Ax=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Fx=(e,t)=>e.isLoading&&e.isFetching&&!t,zx=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Od=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ux(e,t,n){var x,S,E,C;const r=Rx(),s=Ox(),o=Gu(),i=o.defaultQueryOptions(e);(S=(x=o.getDefaultOptions().queries)==null?void 0:x._experimental_beforeQuery)==null||S.call(x,i);const l=o.getQueryCache().get(i.queryHash),a=e.subscribed!==!1;i._optimisticResults=r?"isRestoring":a?"optimistic":void 0,Ax(i),Lx(i,s,l),Mx(s);const u=!o.getQueryCache().get(i.queryHash),[f]=v.useState(()=>new t(o,i)),c=f.getOptimisticResult(i),g=!r&&a;if(v.useSyncExternalStore(v.useCallback(p=>{const h=g?f.subscribe(Pe.batchCalls(p)):Ue;return f.updateResult(),h},[f,g]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),v.useEffect(()=>{f.setOptions(i)},[i,f]),zx(i,c))throw Od(i,f,s);if(Dx({result:c,errorResetBoundary:s,throwOnError:i.throwOnError,query:l,suspense:i.suspense}))throw c.error;if((C=(E=o.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||C.call(E,i,c),i.experimental_prefetchInRender&&!Xs.isServer()&&Fx(c,r)){const p=u?Od(i,f,s):l==null?void 0:l.promise;p==null||p.catch(Ue).finally(()=>{f.updateResult()})}return i.notifyOnChangeProps?c:f.trackResult(c)}function Tn(e,t){return Ux(e,Sx)}const $x="modulepreload",Bx=function(e){return"/"+e},Ld={},qu=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=Promise.allSettled(n.map(a=>{if(a=Bx(a),a in Ld)return;Ld[a]=!0;const u=a.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${f}`))return;const c=document.createElement("link");if(c.rel=u?"stylesheet":$x,u||(c.as="script"),c.crossOrigin="",c.href=a,l&&c.setAttribute("nonce",l),document.head.appendChild(c),u)return new Promise((g,x)=>{c.addEventListener("load",g),c.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return s.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};/**
42
+ * @remix-run/router v1.23.3
43
+ *
44
+ * Copyright (c) Remix Software Inc.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE.md file in the root directory of this source tree.
48
+ *
49
+ * @license MIT
50
+ */function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Js.apply(null,arguments)}var gn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(gn||(gn={}));const Md="popstate";function Wx(e){e===void 0&&(e={});function t(r,s){let{pathname:o,search:i,hash:l}=r.location;return La("",{pathname:o,search:i,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:ki(s)}return Qx(t,n,null,e)}function ue(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Yu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Vx(){return Math.random().toString(36).substr(2,8)}function Dd(e,t){return{usr:e.state,key:e.key,idx:t}}function La(e,t,n,r){return n===void 0&&(n=null),Js({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ts(t):t,{state:n,key:t&&t.key||r||Vx()})}function ki(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ts(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Qx(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,l=gn.Pop,a=null,u=f();u==null&&(u=0,i.replaceState(Js({},i.state,{idx:u}),""));function f(){return(i.state||{idx:null}).idx}function c(){l=gn.Pop;let C=f(),p=C==null?null:C-u;u=C,a&&a({action:l,location:E.location,delta:p})}function g(C,p){l=gn.Push;let h=La(E.location,C,p);u=f()+1;let m=Dd(h,u),y=E.createHref(h);try{i.pushState(m,"",y)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;s.location.assign(y)}o&&a&&a({action:l,location:E.location,delta:1})}function x(C,p){l=gn.Replace;let h=La(E.location,C,p);u=f();let m=Dd(h,u),y=E.createHref(h);i.replaceState(m,"",y),o&&a&&a({action:l,location:E.location,delta:0})}function S(C){let p=s.location.origin!=="null"?s.location.origin:s.location.href,h=typeof C=="string"?C:ki(C);return h=h.replace(/ $/,"%20"),ue(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let E={get action(){return l},get location(){return e(s,i)},listen(C){if(a)throw new Error("A history only accepts one active listener");return s.addEventListener(Md,c),a=C,()=>{s.removeEventListener(Md,c),a=null}},createHref(C){return t(s,C)},createURL:S,encodeLocation(C){let p=S(C);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:g,replace:x,go(C){return i.go(C)}};return E}var Ad;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ad||(Ad={}));function Hx(e,t,n){return n===void 0&&(n="/"),Kx(e,t,n)}function Kx(e,t,n,r){let s=typeof t=="string"?ts(t):t,o=Xu(s.pathname||"/",n);if(o==null)return null;let i=Wh(e);Gx(i);let l=null,a=Hh(o);for(let u=0;l==null&&u<i.length;++u)l=r0(i[u],a);return l}function Wh(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,i,l)=>{let a={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};a.relativePath.startsWith("/")&&(ue(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Pn([r,a.relativePath]),f=n.concat(a);o.children&&o.children.length>0&&(ue(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Wh(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:t0(u,o.index),routesMeta:f})};return e.forEach((o,i)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))s(o,i);else for(let a of Vh(o.path))s(o,i,a)}),t}function Vh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let i=Vh(r.join("/")),l=[];return l.push(...i.map(a=>a===""?o:[o,a].join("/"))),s&&l.push(...i),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function Gx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:n0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const qx=/^:[\w-]+$/,Yx=3,Xx=2,Jx=1,Zx=10,e0=-2,Fd=e=>e==="*";function t0(e,t){let n=e.split("/"),r=n.length;return n.some(Fd)&&(r+=e0),t&&(r+=Xx),n.filter(s=>!Fd(s)).reduce((s,o)=>s+(qx.test(o)?Yx:o===""?Jx:Zx),r)}function n0(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function r0(e,t,n){let{routesMeta:r}=e,s={},o="/",i=[];for(let l=0;l<r.length;++l){let a=r[l],u=l===r.length-1,f=o==="/"?t:t.slice(o.length)||"/",c=Qh({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},f),g=a.route;if(!c)return null;Object.assign(s,c.params),i.push({params:s,pathname:Pn([o,c.pathname]),pathnameBase:u0(Pn([o,c.pathnameBase])),route:g}),c.pathnameBase!=="/"&&(o=Pn([o,c.pathnameBase]))}return i}function Qh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=s0(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:r.reduce((u,f,c)=>{let{paramName:g,isOptional:x}=f;if(g==="*"){let E=l[c]||"";i=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const S=l[c];return x&&!S?u[g]=void 0:u[g]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function s0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Yu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function Hh(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Yu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Xu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const o0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,i0=e=>o0.test(e);function l0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?ts(e):e,o;if(n)if(i0(n))o=n;else{if(n.includes("//")){let i=n;n=Kh(n),Yu(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?o=zd(n.substring(1),"/"):o=zd(n,t)}else o=t;return{pathname:o,search:c0(r),hash:d0(s)}}function zd(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Sl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function a0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ju(e,t){let n=a0(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Zu(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=ts(e):(s=Js({},e),ue(!s.pathname||!s.pathname.includes("?"),Sl("?","pathname","search",s)),ue(!s.pathname||!s.pathname.includes("#"),Sl("#","pathname","hash",s)),ue(!s.search||!s.search.includes("#"),Sl("#","search","hash",s)));let o=e===""||s.pathname==="",i=o?"/":s.pathname,l;if(i==null)l=n;else{let c=t.length-1;if(!r&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),c-=1;s.pathname=g.join("/")}l=c>=0?t[c]:"/"}let a=l0(s,l),u=i&&i!=="/"&&i.endsWith("/"),f=(o||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||f)&&(a.pathname+="/"),a}const Kh=e=>e.replace(/\/\/+/g,"/"),Pn=e=>Kh(e.join("/")),u0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),c0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,d0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function f0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Gh=["post","put","patch","delete"];new Set(Gh);const p0=["get",...Gh];new Set(p0);/**
51
+ * React Router v6.30.4
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */function Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zs.apply(null,arguments)}const ec=v.createContext(null),h0=v.createContext(null),Ln=v.createContext(null),Bi=v.createContext(null),Rt=v.createContext({outlet:null,matches:[],isDataRoute:!1}),qh=v.createContext(null);function m0(e,t){let{relative:n}=t===void 0?{}:t;ir()||ue(!1);let{basename:r,navigator:s}=v.useContext(Ln),{hash:o,pathname:i,search:l}=Jh(e,{relative:n}),a=i;return r!=="/"&&(a=i==="/"?r:Pn([r,i])),s.createHref({pathname:a,search:l,hash:o})}function ir(){return v.useContext(Bi)!=null}function lr(){return ir()||ue(!1),v.useContext(Bi).location}function Rs(e){ir()||ue(!1);let{pathname:t}=lr();return v.useMemo(()=>Qh(e,Hh(t)),[t,e])}function Yh(e){v.useContext(Ln).static||v.useLayoutEffect(e)}function ar(){let{isDataRoute:e}=v.useContext(Rt);return e?R0():g0()}function g0(){ir()||ue(!1);let e=v.useContext(ec),{basename:t,future:n,navigator:r}=v.useContext(Ln),{matches:s}=v.useContext(Rt),{pathname:o}=lr(),i=JSON.stringify(Ju(s,n.v7_relativeSplatPath)),l=v.useRef(!1);return Yh(()=>{l.current=!0}),v.useCallback(function(u,f){if(f===void 0&&(f={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let c=Zu(u,JSON.parse(i),o,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Pn([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,i,o,e])}const v0=v.createContext(null);function y0(e){let t=v.useContext(Rt).outlet;return t&&v.createElement(v0.Provider,{value:e},t)}function Xh(){let{matches:e}=v.useContext(Rt),t=e[e.length-1];return t?t.params:{}}function Jh(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(Ln),{matches:s}=v.useContext(Rt),{pathname:o}=lr(),i=JSON.stringify(Ju(s,r.v7_relativeSplatPath));return v.useMemo(()=>Zu(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function x0(e,t){return w0(e,t)}function w0(e,t,n,r){ir()||ue(!1);let{navigator:s}=v.useContext(Ln),{matches:o}=v.useContext(Rt),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let u=lr(),f;if(t){var c;let C=typeof t=="string"?ts(t):t;a==="/"||(c=C.pathname)!=null&&c.startsWith(a)||ue(!1),f=C}else f=u;let g=f.pathname||"/",x=g;if(a!=="/"){let C=a.replace(/^\//,"").split("/");x="/"+g.replace(/^\//,"").split("/").slice(C.length).join("/")}let S=Hx(e,{pathname:x}),E=b0(S&&S.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:Pn([a,s.encodeLocation?s.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?a:Pn([a,s.encodeLocation?s.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&E?v.createElement(Bi.Provider,{value:{location:Zs({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:gn.Pop}},E):E}function S0(){let e=T0(),t=f0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:s},n):null,null)}const E0=v.createElement(S0,null);class C0 extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(Rt.Provider,{value:this.props.routeContext},v.createElement(qh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function k0(e){let{routeContext:t,match:n,children:r}=e,s=v.useContext(ec);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Rt.Provider,{value:t},r)}function b0(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let f=i.findIndex(c=>c.route.id&&(l==null?void 0:l[c.route.id])!==void 0);f>=0||ue(!1),i=i.slice(0,Math.min(i.length,f+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<i.length;f++){let c=i[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=f),c.route.id){let{loaderData:g,errors:x}=n,S=c.route.loader&&g[c.route.id]===void 0&&(!x||x[c.route.id]===void 0);if(c.route.lazy||S){a=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((f,c,g)=>{let x,S=!1,E=null,C=null;n&&(x=l&&c.route.id?l[c.route.id]:void 0,E=c.route.errorElement||E0,a&&(u<0&&g===0?(j0("route-fallback"),S=!0,C=null):u===g&&(S=!0,C=c.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,g+1)),h=()=>{let m;return x?m=E:S?m=C:c.route.Component?m=v.createElement(c.route.Component,null):c.route.element?m=c.route.element:m=f,v.createElement(k0,{match:c,routeContext:{outlet:f,matches:p,isDataRoute:n!=null},children:m})};return n&&(c.route.ErrorBoundary||c.route.errorElement||g===0)?v.createElement(C0,{location:n.location,revalidation:n.revalidation,component:E,error:x,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var Zh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Zh||{}),em=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(em||{});function P0(e){let t=v.useContext(ec);return t||ue(!1),t}function _0(e){let t=v.useContext(h0);return t||ue(!1),t}function N0(e){let t=v.useContext(Rt);return t||ue(!1),t}function tm(e){let t=N0(),n=t.matches[t.matches.length-1];return n.route.id||ue(!1),n.route.id}function T0(){var e;let t=v.useContext(qh),n=_0(),r=tm();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function R0(){let{router:e}=P0(Zh.UseNavigateStable),t=tm(em.UseNavigateStable),n=v.useRef(!1);return Yh(()=>{n.current=!0}),v.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Zs({fromRouteId:t},o)))},[e,t])}const Ud={};function j0(e,t,n){Ud[e]||(Ud[e]=!0)}function I0(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function O0(e){let{to:t,replace:n,state:r,relative:s}=e;ir()||ue(!1);let{future:o,static:i}=v.useContext(Ln),{matches:l}=v.useContext(Rt),{pathname:a}=lr(),u=ar(),f=Zu(t,Ju(l,o.v7_relativeSplatPath),a,s==="path"),c=JSON.stringify(f);return v.useEffect(()=>u(JSON.parse(c),{replace:n,state:r,relative:s}),[u,c,s,n,r]),null}function L0(e){return y0(e.context)}function Ce(e){ue(!1)}function M0(e){let{basename:t="/",children:n=null,location:r,navigationType:s=gn.Pop,navigator:o,static:i=!1,future:l}=e;ir()&&ue(!1);let a=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:a,navigator:o,static:i,future:Zs({v7_relativeSplatPath:!1},l)}),[a,l,o,i]);typeof r=="string"&&(r=ts(r));let{pathname:f="/",search:c="",hash:g="",state:x=null,key:S="default"}=r,E=v.useMemo(()=>{let C=Xu(f,a);return C==null?null:{location:{pathname:C,search:c,hash:g,state:x,key:S},navigationType:s}},[a,f,c,g,x,S,s]);return E==null?null:v.createElement(Ln.Provider,{value:u},v.createElement(Bi.Provider,{children:n,value:E}))}function D0(e){let{children:t,location:n}=e;return x0(Ma(t),n)}new Promise(()=>{});function Ma(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,s)=>{if(!v.isValidElement(r))return;let o=[...t,s];if(r.type===v.Fragment){n.push.apply(n,Ma(r.props.children,o));return}r.type!==Ce&&ue(!1),!r.props.index||!r.props.children||ue(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Ma(r.props.children,o)),n.push(i)}),n}/**
60
+ * React Router DOM v6.30.4
61
+ *
62
+ * Copyright (c) Remix Software Inc.
63
+ *
64
+ * This source code is licensed under the MIT license found in the
65
+ * LICENSE.md file in the root directory of this source tree.
66
+ *
67
+ * @license MIT
68
+ */function Da(){return Da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Da.apply(null,arguments)}function A0(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function F0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function z0(e,t){return e.button===0&&(!t||t==="_self")&&!F0(e)}const U0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],$0="6";try{window.__reactRouterVersion=$0}catch{}const B0="startTransition",$d=io[B0];function W0(e){let{basename:t,children:n,future:r,window:s}=e,o=v.useRef();o.current==null&&(o.current=Wx({window:s,v5Compat:!0}));let i=o.current,[l,a]=v.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},f=v.useCallback(c=>{u&&$d?$d(()=>a(c)):a(c)},[a,u]);return v.useLayoutEffect(()=>i.listen(f),[i,f]),v.useEffect(()=>I0(r),[r]),v.createElement(M0,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}const V0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Q0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,H0=v.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:l,target:a,to:u,preventScrollReset:f,viewTransition:c}=t,g=A0(t,U0),{basename:x}=v.useContext(Ln),S,E=!1;if(typeof u=="string"&&Q0.test(u)&&(S=u,V0))try{let m=new URL(window.location.href),y=u.startsWith("//")?new URL(m.protocol+u):new URL(u),b=Xu(y.pathname,x);y.origin===m.origin&&b!=null?u=b+y.search+y.hash:E=!0}catch{}let C=m0(u,{relative:s}),p=K0(u,{replace:i,state:l,target:a,preventScrollReset:f,relative:s,viewTransition:c});function h(m){r&&r(m),m.defaultPrevented||p(m)}return v.createElement("a",Da({},g,{href:S||C,onClick:E||o?r:h,ref:n,target:a}))});var Bd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Bd||(Bd={}));var Wd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Wd||(Wd={}));function K0(e,t){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,viewTransition:l}=t===void 0?{}:t,a=ar(),u=lr(),f=Jh(e,{relative:i});return v.useCallback(c=>{if(z0(c,n)){c.preventDefault();let g=r!==void 0?r:ki(u)===ki(f);a(e,{replace:g,state:s,preventScrollReset:o,relative:i,viewTransition:l})}},[u,a,f,r,s,n,e,o,i,l])}const nm="";async function tc(e,t){const n=await fetch(`${nm}${e}`,t);if(!n.ok){const r=await n.text().catch(()=>"");throw new Error(`GET ${e} → HTTP ${n.status}: ${r}`)}return n.json()}async function nc(){return tc("/api/pipeline")}async function Wi(){return tc("/api/sessions")}async function G0(e){return tc(`/api/diff/${encodeURIComponent(e)}`)}async function q0(e){const t=await fetch(`${nm}/api/pipeline/action`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),n=await t.json();return t.ok?n:{ok:!1,error:n.error??`HTTP ${t.status}`}}const Y0="coord_web_token";function X0(){try{return window.localStorage.getItem(Y0)}catch{return null}}function FE(e){const t=window.location.protocol==="https:"?"wss:":"ws:",n=X0(),r=n?`?token=${encodeURIComponent(n)}`:"";return`${t}//${window.location.host}/ws/terminal/${encodeURIComponent(e)}${r}`}function rm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=rm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function sm(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=rm(e))&&(r&&(r+=" "),r+=t);return r}const rc="-",J0=e=>{const t=ew(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const l=i.split(rc);return l[0]===""&&l.length!==1&&l.shift(),om(l,t)||Z0(i)},getConflictingClassGroupIds:(i,l)=>{const a=n[i]||[];return l&&r[i]?[...a,...r[i]]:a}}},om=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?om(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(rc);return(i=t.validators.find(({validator:l})=>l(o)))==null?void 0:i.classGroupId},Vd=/^\[(.+)\]$/,Z0=e=>{if(Vd.test(e)){const t=Vd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ew=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return nw(Object.entries(e.classGroups),n).forEach(([o,i])=>{Aa(i,r,o,t)}),r},Aa=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:Qd(t,s);o.classGroupId=n;return}if(typeof s=="function"){if(tw(s)){Aa(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{Aa(i,Qd(t,o),n,r)})})},Qd=(e,t)=>{let n=e;return t.split(rc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},tw=e=>e.isThemeGetter,nw=(e,t)=>t?e.map(([n,r])=>{const s=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[n,s]}):e,rw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return s(o,i),i},set(o,i){n.has(o)?n.set(o,i):s(o,i)}}},im="!",sw=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],o=t.length,i=l=>{const a=[];let u=0,f=0,c;for(let C=0;C<l.length;C++){let p=l[C];if(u===0){if(p===s&&(r||l.slice(C,C+o)===t)){a.push(l.slice(f,C)),f=C+o;continue}if(p==="/"){c=C;continue}}p==="["?u++:p==="]"&&u--}const g=a.length===0?l:l.substring(f),x=g.startsWith(im),S=x?g.substring(1):g,E=c&&c>f?c-f:void 0;return{modifiers:a,hasImportantModifier:x,baseClassName:S,maybePostfixModifierPosition:E}};return n?l=>n({className:l,parseClassName:i}):i},ow=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},iw=e=>({cache:rw(e.cacheSize),parseClassName:sw(e),...J0(e)}),lw=/\s+/,aw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(lw);let l="";for(let a=i.length-1;a>=0;a-=1){const u=i[a],{modifiers:f,hasImportantModifier:c,baseClassName:g,maybePostfixModifierPosition:x}=n(u);let S=!!x,E=r(S?g.substring(0,x):g);if(!E){if(!S){l=u+(l.length>0?" "+l:l);continue}if(E=r(g),!E){l=u+(l.length>0?" "+l:l);continue}S=!1}const C=ow(f).join(":"),p=c?C+im:C,h=p+E;if(o.includes(h))continue;o.push(h);const m=s(E,S);for(let y=0;y<m.length;++y){const b=m[y];o.push(p+b)}l=u+(l.length>0?" "+l:l)}return l};function uw(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=lm(t))&&(r&&(r+=" "),r+=n);return r}const lm=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=lm(e[r]))&&(n&&(n+=" "),n+=t);return n};function cw(e,...t){let n,r,s,o=i;function i(a){const u=t.reduce((f,c)=>c(f),e());return n=iw(u),r=n.cache.get,s=n.cache.set,o=l,l(a)}function l(a){const u=r(a);if(u)return u;const f=aw(a,n);return s(a,f),f}return function(){return o(uw.apply(null,arguments))}}const ee=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},am=/^\[(?:([a-z-]+):)?(.+)\]$/i,dw=/^\d+\/\d+$/,fw=new Set(["px","full","screen"]),pw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,It=e=>Rr(e)||fw.has(e)||dw.test(e),Yt=e=>ns(e,"length",bw),Rr=e=>!!e&&!Number.isNaN(Number(e)),El=e=>ns(e,"number",Rr),fs=e=>!!e&&Number.isInteger(Number(e)),yw=e=>e.endsWith("%")&&Rr(e.slice(0,-1)),W=e=>am.test(e),Xt=e=>pw.test(e),xw=new Set(["length","size","percentage"]),ww=e=>ns(e,xw,um),Sw=e=>ns(e,"position",um),Ew=new Set(["image","url"]),Cw=e=>ns(e,Ew,_w),kw=e=>ns(e,"",Pw),ps=()=>!0,ns=(e,t,n)=>{const r=am.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},bw=e=>hw.test(e)&&!mw.test(e),um=()=>!1,Pw=e=>gw.test(e),_w=e=>vw.test(e),Nw=()=>{const e=ee("colors"),t=ee("spacing"),n=ee("blur"),r=ee("brightness"),s=ee("borderColor"),o=ee("borderRadius"),i=ee("borderSpacing"),l=ee("borderWidth"),a=ee("contrast"),u=ee("grayscale"),f=ee("hueRotate"),c=ee("invert"),g=ee("gap"),x=ee("gradientColorStops"),S=ee("gradientColorStopPositions"),E=ee("inset"),C=ee("margin"),p=ee("opacity"),h=ee("padding"),m=ee("saturate"),y=ee("scale"),b=ee("sepia"),k=ee("skew"),_=ee("space"),P=ee("translate"),O=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",W,t],T=()=>[W,t],D=()=>["",It,Yt],B=()=>["auto",Rr,W],ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",W],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[Rr,W];return{cacheSize:500,separator:":",theme:{colors:[ps],spacing:[It,Yt],blur:["none","",Xt,W],brightness:Q(),borderColor:[e],borderRadius:["none","","full",Xt,W],borderSpacing:T(),borderWidth:D(),contrast:Q(),grayscale:A(),hueRotate:Q(),invert:A(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[yw,Yt],inset:I(),margin:I(),opacity:Q(),padding:T(),saturate:Q(),scale:Q(),sepia:A(),skew:Q(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[Xt]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ce(),W]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",fs,W]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",fs,W]}],"grid-cols":[{"grid-cols":[ps]}],"col-start-end":[{col:["auto",{span:["full",fs,W]},W]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[ps]}],"row-start-end":[{row:["auto",{span:[fs,W]},W]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[Xt]},Xt]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Xt,Yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",El]}],"font-family":[{font:[ps]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",Rr,El]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",It,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",It,Yt]}],"underline-offset":[{"underline-offset":["auto",It,W]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ce(),Sw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ww]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Cw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[p]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[p]}],"divide-style":[{divide:$()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[It,W]}],"outline-w":[{outline:[It,Yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[It,Yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xt,kw]}],"shadow-color":[{shadow:[ps]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Xt,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[c]}],saturate:[{saturate:[m]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[fs,W]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[It,Yt,El]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Tw=cw(Nw);function F(...e){return Tw(sm(e))}const be={pipeline:()=>"/pipeline",pipelineItem:(e,t,n)=>{const r=`/pipeline/${encodeURIComponent(e)}/${encodeURIComponent(String(t))}`;return n&&n!=="overview"?`${r}/${n}`:r},sessions:()=>"/sessions",session:e=>`/sessions/${encodeURIComponent(e)}`,terminal:e=>`/terminal/${encodeURIComponent(e)}`,board:()=>"/board",machines:()=>"/machines",mergeQueue:()=>"/merge-queue",milestones:()=>"/milestones",audit:()=>"/audit",spend:()=>"/spend",settings:()=>"/settings"},cm={pipeline:be.pipeline(),board:be.board(),sessions:be.sessions(),machines:be.machines(),"merge-queue":be.mergeQueue(),milestones:be.milestones(),audit:be.audit(),spend:be.spend(),settings:be.settings()};function Rw(e){const n=Object.entries(cm).sort((r,s)=>s[1].length-r[1].length);for(const[r,s]of n)if(e===s||e.startsWith(`${s}/`))return r;return null}function jw({toasts:e}){return e.length===0?null:d.jsx("div",{role:"status","aria-live":"polite","aria-label":"Notifications",className:"fixed bottom-6 left-0 right-0 z-50 flex flex-col items-center gap-2 px-4 pointer-events-none",children:e.map(t=>d.jsx("div",{className:F("w-full max-w-sm rounded-lg px-4 py-3 text-sm font-medium shadow-lg",t.type==="success"?"bg-green-700 text-white":"bg-destructive text-destructive-foreground"),children:t.message},t.id))})}function Iw({reason:e,onReasonChange:t,onConfirm:n,onCancel:r,disabled:s}){return d.jsx("div",{role:"dialog","aria-modal":"true","aria-label":"Record test failure",className:"fixed inset-0 z-40 flex items-end justify-center bg-black/60 px-4 pb-8",children:d.jsxs("div",{className:"w-full max-w-sm rounded-xl border border-border bg-card p-4 shadow-xl",children:[d.jsx("h2",{className:"mb-3 text-sm font-semibold text-card-foreground",children:"Record test failure"}),d.jsx("label",{className:"mb-1 block text-xs text-muted-foreground",htmlFor:"fail-reason",children:"Reason (optional)"}),d.jsx("textarea",{id:"fail-reason",value:e,onChange:o=>t(o.target.value),rows:3,placeholder:"What failed?",className:"mb-3 w-full resize-none rounded border border-border bg-background px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{type:"button",onClick:r,disabled:s,className:"flex-1 rounded-lg border border-border py-2 text-sm text-muted-foreground disabled:opacity-50",children:"Cancel"}),d.jsx("button",{type:"button",onClick:n,disabled:s,className:"flex-1 rounded-lg bg-destructive py-2 text-sm font-medium text-destructive-foreground disabled:opacity-50",children:s?"Recording…":"Confirm Fail"})]})]})})}function Ow({assignmentId:e,expanded:t,onToggle:n}){const{data:r,isLoading:s,isError:o}=Tn({queryKey:["diff",e],queryFn:()=>G0(e),enabled:t,staleTime:6e4});return d.jsxs("section",{className:"mt-4","aria-label":"Diff viewer",children:[d.jsxs("button",{type:"button",onClick:n,"aria-expanded":t,className:"flex w-full items-center justify-between rounded-lg border border-border bg-card px-4 py-3 text-sm font-medium text-card-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[d.jsx("span",{children:"Diff"}),d.jsx("span",{className:"text-muted-foreground","aria-hidden":"true",children:t?"▲":"▼"})]}),t&&d.jsxs("div",{className:"mt-1 rounded-lg border border-border bg-black/30 p-3",children:[s&&d.jsx("p",{className:"text-xs text-muted-foreground",children:"Loading diff…"}),o&&d.jsx("p",{className:"text-xs text-destructive",children:"Failed to load diff"}),r&&d.jsxs(d.Fragment,{children:[d.jsx("pre",{className:"overflow-x-auto text-xs leading-5","aria-label":"Code diff",children:r.diff.split(`
69
+ `).map((i,l)=>d.jsx("span",{className:F("block",i.startsWith("+++")||i.startsWith("---")?"text-muted-foreground":i.startsWith("+")?"text-green-400":i.startsWith("-")?"text-red-400":i.startsWith("@@")?"text-blue-400":"text-foreground"),children:i||" "},l))}),d.jsxs("p",{className:"mt-2 text-right text-xs text-muted-foreground",children:["source: ",r.source]})]})]})]})}const Hd={coding:"work",smoke:"test",review:"review",merge:"merge"},dm=new Set(["failed","review_failed","smoke_failed"]),Lo="mx-auto w-full max-w-3xl px-4 py-5 md:px-6";function Lw(e){if(new Set(["coding","review_running","smoke_running","merging"]).has(e))return{label:"running",className:"bg-primary text-primary-foreground"};if(dm.has(e))return{label:"failed",className:"bg-destructive text-destructive-foreground"};switch(e){case"merged":return{label:"merged",className:"bg-green-700 text-white"};case"merge_ready":return{label:"mergeable",className:"bg-yellow-600 text-black"};case"review_done":return{label:"review ✓",className:"bg-yellow-600 text-black"};case"smoke_passed":return{label:"test ✓",className:"bg-yellow-600 text-black"};case"done":return{label:"work done",className:"bg-yellow-600 text-black"};default:return{label:e.replace(/_/g," "),className:"bg-secondary text-secondary-foreground"}}}function Kd(){const{repo:e,issue:t}=Xh(),n=ar(),r=Gu(),{data:s,isLoading:o,isError:i}=Tn({queryKey:["pipeline"],queryFn:nc}),l=(s==null?void 0:s.find(I=>I.repo_name===e&&String(I.issue_number)===t))??null,a=v.useCallback(()=>{var T;const I=(T=window.history.state)==null?void 0:T.idx;typeof I=="number"&&I>0?n(-1):n(be.pipeline())},[n]),[u,f]=v.useState(!1),[c,g]=v.useState(null),[x,S]=v.useState([]),[E,C]=v.useState(!1),[p,h]=v.useState(""),[m,y]=v.useState(!1),b=v.useCallback((I,T)=>{const D=String(Date.now());S(B=>[...B,{id:D,message:I,type:T}]),setTimeout(()=>{S(B=>B.filter(ce=>ce.id!==D))},4e3)},[]),k=v.useCallback(async(I,T,D)=>{if(!c){g(T);try{const B=await q0(I);B.ok?(b(D??"Done","success"),r.invalidateQueries({queryKey:["pipeline"]})):b(B.error??"Action failed","error")}catch(B){b(B instanceof Error?B.message:"Action failed","error")}finally{g(null)}}},[c,b,r]),_=I=>(l==null?void 0:l.available_gates.some(T=>T.action===I))??!1,P="rounded-lg px-4 py-2.5 text-sm font-medium disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";if(o)return d.jsx("div",{className:Lo,children:d.jsx("p",{className:"py-12 text-center text-sm text-muted-foreground",children:"Loading…"})});if(i)return d.jsx("div",{className:Lo,children:d.jsx("p",{className:"py-12 text-center text-sm text-destructive",children:"Failed to load pipeline"})});if(!l)return d.jsxs("div",{className:Lo,children:[d.jsxs("header",{className:"mb-6 flex items-center gap-3",children:[d.jsx("button",{type:"button",onClick:a,className:"rounded p-1 text-muted-foreground hover:text-foreground","aria-label":"Back",children:"←"}),d.jsx("h1",{className:"text-step-1 font-semibold text-foreground",children:"Not found"})]}),d.jsxs("p",{className:"text-sm text-muted-foreground",children:["Issue"," ",d.jsxs("span",{className:"font-mono",children:[e,"#",t]})," ","not found in the pipeline."]})]});const{label:O,className:j}=Lw(l.current_stage);return d.jsxs("div",{className:F(Lo,"pb-24"),children:[d.jsx(jw,{toasts:x}),E&&d.jsx(Iw,{reason:p,onReasonChange:h,onConfirm:()=>{const I={assignment_id:l.assignment_id,action:"test-verdict",verdict:"failed",...p.trim()?{reason:p.trim()}:{}};k(I,"test-fail","Test marked failed").then(()=>{C(!1),h("")})},onCancel:()=>{C(!1),h("")},disabled:c==="test-fail"}),d.jsxs("header",{className:"mb-5",children:[d.jsxs("div",{className:"flex items-start gap-2",children:[d.jsx("button",{type:"button",onClick:a,"aria-label":"Back",className:"-ml-1 shrink-0 rounded p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:"←"}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsxs("p",{className:"text-xs text-muted-foreground",children:[d.jsx("span",{className:"font-mono",children:l.repo_name})," ",d.jsxs("span",{className:"font-mono",children:["#",l.issue_number]})," · ",d.jsx("span",{className:"font-mono",children:l.machine_name})]}),d.jsx("h2",{className:"mt-0.5 text-base font-semibold text-foreground",children:l.issue_title})]}),d.jsx("span",{className:F("shrink-0 rounded-full px-2.5 py-0.5 text-xs font-semibold",j),children:O})]}),d.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5",children:l.stages.map(I=>{const T="rounded px-1.5 py-0.5 text-xs font-medium";let D;return I.is_current?D=dm.has(l.current_stage)?F(T,"bg-destructive text-destructive-foreground"):F(T,"bg-primary text-primary-foreground"):I.status==="completed"?D=F(T,"bg-green-700 text-white"):I.status==="skipped"?D=F(T,"border border-border text-muted-foreground opacity-40"):D=F(T,"border border-border text-muted-foreground"),d.jsx("span",{className:D,children:Hd[I.name]??I.name},I.name)})})]}),(_("test-verdict")||l.test_verdict!=null)&&d.jsxs("section",{className:"mb-4 rounded-lg border border-border bg-card p-4","aria-label":"Test gate",children:[d.jsx("h3",{className:"mb-3 text-sm font-semibold text-card-foreground",children:"Test"}),l.test_verdict&&d.jsxs("p",{className:F("mb-3 text-sm font-medium",l.test_verdict==="passed"?"text-green-400":"text-destructive"),children:["Verdict: ",l.test_verdict]}),_("test-verdict")&&d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{type:"button",onClick:()=>k({assignment_id:l.assignment_id,action:"test-verdict",verdict:"passed"},"test-pass","Test marked passed"),disabled:!!c,className:F(P,"flex-1 bg-green-700 text-white"),children:c==="test-pass"?"Recording…":"Pass"}),d.jsx("button",{type:"button",onClick:()=>C(!0),disabled:!!c,className:F(P,"flex-1 bg-destructive text-destructive-foreground"),children:"Fail"})]}),_("dispatch_fix")&&l.test_verdict==="failed"&&d.jsx("button",{type:"button",onClick:()=>k({assignment_id:l.assignment_id,action:"dispatch_fix"},"dispatch-fix","Fix dispatched"),disabled:!!c,className:F(P,"mt-3 w-full border border-border text-foreground"),children:c==="dispatch-fix"?"Dispatching…":"Dispatch Fix"})]}),_("dispatch_review")&&d.jsxs("section",{className:"mb-4 rounded-lg border border-border bg-card p-4","aria-label":"Review",children:[d.jsx("h3",{className:"mb-3 text-sm font-semibold text-card-foreground",children:"Review"}),d.jsx("button",{type:"button",onClick:()=>k({assignment_id:l.assignment_id,action:"dispatch_review"},"dispatch-review","Review dispatched"),disabled:!!c,className:F(P,"w-full bg-primary text-primary-foreground"),children:c==="dispatch-review"?"Dispatching…":"Start Review"})]}),!_("dispatch_review")&&(l.review_findings_body!==null||l.review_verdict!==null||_("record-review-verdict")||_("post_findings"))&&d.jsxs("section",{className:"mb-4 rounded-lg border border-border bg-card p-4","aria-label":"Review",children:[d.jsx("h3",{className:"mb-3 text-sm font-semibold text-card-foreground",children:"Review"}),l.review_verdict&&d.jsxs("p",{className:F("mb-3 text-sm font-medium",l.review_verdict==="approve"?"text-green-400":"text-yellow-500"),children:["Verdict:"," ",l.review_verdict==="approve"?"Approved":"Changes requested"]}),l.review_findings_body&&d.jsxs("div",{className:"mb-3",children:[d.jsx("p",{className:"mb-1 text-xs text-muted-foreground",children:"Findings"}),d.jsx("pre",{className:"max-h-64 overflow-y-auto rounded border border-border bg-black/30 px-3 py-2 text-xs leading-5 text-foreground whitespace-pre-wrap break-words",children:l.review_findings_body})]}),l.review_findings_pending&&d.jsxs("div",{className:"mb-3 flex items-center justify-between gap-2",children:[d.jsx("p",{className:"text-xs text-yellow-500",children:"⚠ Findings not yet posted to GitHub"}),_("post_findings")&&d.jsx("button",{type:"button",onClick:()=>k({assignment_id:l.assignment_id,action:"post_findings"},"post-findings","Findings posted"),disabled:!!c,className:"rounded border border-yellow-600 px-2 py-1 text-xs text-yellow-500 disabled:opacity-50",children:c==="post-findings"?"Posting…":"Post"})]}),_("record-review-verdict")&&d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{type:"button",onClick:()=>k({assignment_id:l.assignment_id,action:"record-review-verdict",verdict:"approve"},"approve","Review approved"),disabled:!!c,className:F(P,"flex-1 bg-green-700 text-white"),children:c==="approve"?"Approving…":"Approve"}),d.jsx("button",{type:"button",onClick:()=>k({assignment_id:l.assignment_id,action:"dispatch_fix"},"request-changes","Fix dispatched"),disabled:!!c,className:F(P,"flex-1 bg-destructive text-destructive-foreground"),children:c==="request-changes"?"Dispatching…":"Request Changes"})]})]}),(_("merge")||_("enqueue")||["merge_ready","merging","merged"].includes(l.current_stage))&&d.jsxs("section",{className:"mb-4 rounded-lg border border-border bg-card p-4","aria-label":"Merge",children:[d.jsx("h3",{className:"mb-3 text-sm font-semibold text-card-foreground",children:"Merge"}),d.jsx("div",{className:"mb-3 space-y-1.5",children:l.stages.map(I=>d.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[d.jsx("span",{className:F("h-1.5 w-1.5 shrink-0 rounded-full",I.status==="completed"||I.status==="skipped"?"bg-green-500":I.is_current?"bg-primary":"bg-border")}),d.jsx("span",{className:"text-muted-foreground",children:Hd[I.name]??I.name}),d.jsx("span",{className:F(I.status==="completed"||I.status==="skipped"?"text-green-400":I.is_current?"text-primary":"text-muted-foreground"),children:I.status})]},I.name))}),l.current_stage==="merged"?d.jsx("p",{className:"text-sm font-medium text-green-400",children:"✓ Merged"}):d.jsxs(d.Fragment,{children:[_("merge")&&d.jsxs("label",{className:"mb-3 flex cursor-pointer items-center gap-2 text-xs text-muted-foreground",children:[d.jsx("input",{type:"checkbox",checked:m,onChange:I=>y(I.target.checked),className:"h-3.5 w-3.5"}),"Force (skip CI / review checks)"]}),d.jsxs("div",{className:"flex gap-2",children:[_("enqueue")&&d.jsx("button",{type:"button",onClick:()=>k({assignment_id:l.assignment_id,action:"enqueue"},"enqueue","Added to merge queue"),disabled:!!c,className:F(P,"flex-1 border border-border text-foreground"),children:c==="enqueue"?"Queuing…":"Enqueue"}),_("merge")&&d.jsx("button",{type:"button",onClick:()=>k({assignment_id:l.assignment_id,action:"merge",...m?{force:!0}:{}},"merge","Merged successfully"),disabled:!!c,className:F(P,"flex-1",m?"bg-yellow-600 text-black":"bg-primary text-primary-foreground"),children:c==="merge"?"Merging…":m?"Force Merge":"Merge"})]})]})]}),_("dispatch_smoke")&&d.jsxs("section",{className:"mb-4 rounded-lg border border-border bg-card p-4","aria-label":"Smoke test",children:[d.jsx("h3",{className:"mb-3 text-sm font-semibold text-card-foreground",children:"Smoke Test"}),d.jsx("button",{type:"button",onClick:()=>k({assignment_id:l.assignment_id,action:"dispatch_smoke"},"dispatch-smoke","Smoke test dispatched"),disabled:!!c,className:F(P,"w-full bg-primary text-primary-foreground"),children:c==="dispatch-smoke"?"Dispatching…":"Start Smoke Test"})]}),_("unstick")&&d.jsxs("section",{className:"mb-4 rounded-lg border border-border bg-card p-4","aria-label":"Stuck assignment",children:[d.jsx("h3",{className:"mb-3 text-sm font-semibold text-card-foreground",children:"Stuck"}),d.jsx("button",{type:"button",onClick:()=>k({assignment_id:l.assignment_id,action:"unstick"},"unstick","Assignment cancelled"),disabled:!!c,className:F(P,"w-full border border-destructive text-destructive"),children:c==="unstick"?"Cancelling…":"Cancel (unstick)"})]}),d.jsx(Ow,{assignmentId:l.assignment_id,expanded:u,onToggle:()=>f(I=>!I)})]})}const Mo="mx-auto w-full max-w-3xl px-4 py-5 md:px-6",Mw={smoke:"test",review:"review","conflict-fix":"merge"};function Dw(e){return Mw[e]??e}function Aw(e){return e.pane_dead?{label:"ended",className:"bg-secondary text-secondary-foreground"}:e.attached?{label:"attached",className:"bg-yellow-600 text-black"}:{label:"live",className:"bg-primary text-primary-foreground"}}function Fw(){const{id:e}=Xh(),t=ar(),{data:n,isLoading:r,isError:s}=Tn({queryKey:["sessions"],queryFn:Wi}),o=(n==null?void 0:n.find(u=>u.session_id===e))??null;if(r)return d.jsx("div",{className:Mo,children:d.jsx("p",{className:"py-12 text-center text-sm text-muted-foreground",children:"Loading…"})});if(s)return d.jsx("div",{className:Mo,children:d.jsx("p",{className:"py-12 text-center text-sm text-destructive",children:"Failed to load sessions"})});if(!o)return d.jsxs("div",{className:Mo,children:[d.jsxs("header",{className:"mb-6 flex items-center gap-3",children:[d.jsx("button",{type:"button",onClick:()=>t(-1),className:"rounded p-1 text-muted-foreground hover:text-foreground","aria-label":"Back",children:"←"}),d.jsx("h1",{className:"text-step-1 font-semibold text-foreground",children:"Not found"})]}),d.jsxs("p",{className:"text-sm text-muted-foreground",children:["Session ",d.jsx("span",{className:"font-mono",children:e})," is no longer live."]})]});const{label:i,className:l}=Aw(o),a=o.issue_title??o.session_name;return d.jsxs("div",{className:Mo,children:[d.jsxs("header",{className:"mb-5",children:[d.jsxs("div",{className:"flex items-start gap-2",children:[d.jsx("button",{type:"button",onClick:()=>t(-1),"aria-label":"Back",className:"-ml-1 shrink-0 rounded p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:"←"}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsxs("p",{className:"text-xs text-muted-foreground",children:[o.repo&&d.jsx("span",{className:"font-mono",children:o.repo}),o.issue!==null&&d.jsxs("span",{className:"font-mono",children:[" #",o.issue]}),(o.repo||o.issue!==null)&&o.machine&&" · ",o.machine&&d.jsx("span",{className:"font-mono",children:o.machine})]}),d.jsx("h2",{className:"mt-0.5 text-base font-semibold text-foreground",children:a})]}),d.jsx("span",{className:F("shrink-0 rounded-full px-2.5 py-0.5 text-xs font-semibold",l),children:i})]}),o.stage&&d.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5",children:d.jsx("span",{className:"rounded border border-border px-1.5 py-0.5 text-xs font-medium text-muted-foreground",children:Dw(o.stage)})})]}),!o.pane_dead&&d.jsx("button",{type:"button",onClick:()=>t(be.terminal(o.session_id)),className:"w-full rounded-lg bg-primary px-4 py-2.5 text-sm font-medium text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:"Take over"})]})}const zw={coding:"work",smoke:"test",review:"review",merge:"merge"},Uw=new Set(["coding","review_running","smoke_running","merging"]),fm=new Set(["failed","review_failed","smoke_failed"]);function $w(e,t){const n="rounded px-1.5 py-0.5 text-xs font-medium";if(e.is_current)return fm.has(t)?F(n,"bg-destructive text-destructive-foreground"):F(n,"bg-primary text-primary-foreground");switch(e.status){case"completed":return F(n,"bg-green-700 text-white");case"skipped":return F(n,"border border-border text-muted-foreground opacity-40");default:return F(n,"border border-border text-muted-foreground")}}function Bw(e){if(Uw.has(e))return{label:"running",className:"bg-primary text-primary-foreground"};if(fm.has(e))return{label:"failed",className:"bg-destructive text-destructive-foreground"};switch(e){case"merged":return{label:"merged",className:"bg-green-700 text-white"};case"merge_ready":return{label:"mergeable",className:"bg-yellow-600 text-black"};case"review_done":return{label:"review ✓",className:"bg-yellow-600 text-black"};case"smoke_passed":return{label:"test ✓",className:"bg-yellow-600 text-black"};case"done":return{label:"work done",className:"bg-yellow-600 text-black"};default:return{label:e.replace(/_/g," "),className:"bg-secondary text-secondary-foreground"}}}function pm({view:e,onClick:t,selected:n}){const{label:r,className:s}=Bw(e.current_stage);return d.jsxs("button",{type:"button",onClick:t,"aria-current":n?"true":void 0,className:F("relative w-full overflow-hidden rounded-lg border border-border bg-card p-4 text-left shadow-sm transition-colors active:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",n&&"border-line-strong before:absolute before:inset-y-2 before:left-0 before:w-[2px] before:rounded-r-sm before:bg-brand before:content-['']"),children:[d.jsxs("div",{className:"flex items-start justify-between gap-3",children:[d.jsx("p",{className:"flex-1 truncate text-sm font-medium text-card-foreground",children:e.issue_title}),d.jsx("span",{className:F("shrink-0 rounded-full px-2 py-0.5 text-xs font-semibold",s),children:r})]}),d.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:[e.repo_name," ",d.jsxs("span",{className:"font-mono",children:["#",e.issue_number]})," · ",e.machine_name]}),d.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5",children:e.stages.map(o=>d.jsx("span",{className:$w(o,e.current_stage),children:zw[o.name]??o.name},o.name))}),e.review_findings_pending&&d.jsx("p",{className:"mt-2 text-xs text-yellow-500",children:"⚠ Review findings not yet posted"})]})}const Ww={smoke:"test",review:"review","conflict-fix":"merge"};function Vw(e){return Ww[e]??e}function Qw(e){return e.pane_dead?{label:"ended",className:"bg-secondary text-secondary-foreground"}:e.attached?{label:"attached",className:"bg-yellow-600 text-black"}:{label:"live",className:"bg-primary text-primary-foreground"}}function hm({session:e,onClick:t}){const{label:n,className:r}=Qw(e),s=e.issue_title??e.session_name;return d.jsxs("button",{type:"button",onClick:t,className:"w-full rounded-lg border border-border bg-card p-4 text-left shadow-sm transition-colors active:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[d.jsxs("div",{className:"flex items-start justify-between gap-3",children:[d.jsx("p",{className:"flex-1 truncate text-sm font-medium text-card-foreground",children:s}),d.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[e.stage&&d.jsx("span",{className:"rounded border border-border px-1.5 py-0.5 text-xs font-medium text-muted-foreground",children:Vw(e.stage)}),d.jsx("span",{className:F("rounded-full px-2 py-0.5 text-xs font-semibold",r),children:n})]})]}),(e.repo||e.machine)&&d.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:[e.repo,e.issue!==null&&d.jsxs("span",{className:"font-mono",children:[" #",e.issue]}),e.repo&&e.machine&&" · ",e.machine]})]})}/**
70
+ * @license lucide-react v0.462.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 Hw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
75
+ * @license lucide-react v0.462.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
+ */var Kw={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"};/**
80
+ * @license lucide-react v0.462.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 Gw=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:i,...l},a)=>v.createElement("svg",{ref:a,...Kw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:mm("lucide",s),...l},[...i.map(([u,f])=>v.createElement(u,f)),...Array.isArray(o)?o:[o]]));/**
85
+ * @license lucide-react v0.462.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 ye=(e,t)=>{const n=v.forwardRef(({className:r,...s},o)=>v.createElement(Gw,{ref:o,iconNode:t,className:mm(`lucide-${Hw(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
90
+ * @license lucide-react v0.462.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 qw=ye("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
95
+ * @license lucide-react v0.462.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 Yw=ye("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
100
+ * @license lucide-react v0.462.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 Xw=ye("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
105
+ * @license lucide-react v0.462.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 Jw=ye("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
110
+ * @license lucide-react v0.462.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 Zw=ye("GitMerge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]);/**
115
+ * @license lucide-react v0.462.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 e1=ye("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
120
+ * @license lucide-react v0.462.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 t1=ye("Milestone",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M12 3v3",key:"1n5kay"}],["path",{d:"M4 6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h13a2 2 0 0 0 1.152-.365l3.424-2.317a1 1 0 0 0 0-1.635l-3.424-2.318A2 2 0 0 0 17 6z",key:"1btarq"}]]);/**
125
+ * @license lucide-react v0.462.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 gm=ye("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
130
+ * @license lucide-react v0.462.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 n1=ye("MousePointerClick",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]]);/**
135
+ * @license lucide-react v0.462.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const r1=ye("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
140
+ * @license lucide-react v0.462.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const s1=ye("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/**
145
+ * @license lucide-react v0.462.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const o1=ye("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
150
+ * @license lucide-react v0.462.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const i1=ye("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
155
+ * @license lucide-react v0.462.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const l1=ye("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
160
+ * @license lucide-react v0.462.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const a1=ye("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);/**
165
+ * @license lucide-react v0.462.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const vm=ye("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
170
+ * @license lucide-react v0.462.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const u1=ye("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
175
+ * @license lucide-react v0.462.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const c1=ye("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/**
180
+ * @license lucide-react v0.462.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const d1=ye("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var f1=Object.defineProperty,sc=(e,t)=>f1(e,"name",{value:t,configurable:!0});function Fa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}sc(Fa,"setRef");function ym(...e){return t=>{let n=!1;const r=e.map(s=>{const o=Fa(s,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<r.length;s++){const o=r[s];typeof o=="function"?o():Fa(e[s],null)}}}}sc(ym,"composeRefs");function yt(...e){return v.useCallback(ym(...e),e)}sc(yt,"useComposedRefs");var p1=Object.defineProperty,wt=(e,t)=>p1(e,"name",{value:t,configurable:!0});function rr(e){const t=v.forwardRef((n,r)=>{let{children:s,...o}=n,i=null,l=!1;const a=[];za(s)&&typeof Do=="function"&&(s=Do(s._payload)),v.Children.forEach(s,g=>{var x;if(Em(g)){l=!0;const S=g;let E="child"in S.props?S.props.child:S.props.children;za(E)&&typeof Do=="function"&&(E=Do(E._payload)),i=g1(S,E),a.push((x=i==null?void 0:i.props)==null?void 0:x.children)}else a.push(g)}),i?i=v.cloneElement(i,void 0,a):!l&&v.Children.count(s)===1&&v.isValidElement(s)&&(i=s);const u=i?Sm(i):void 0,f=yt(r,u);if(!i){if(s||s===0)throw new Error(l?x1(e):y1(e));return s}const c=wm(o,i.props??{});return i.type!==v.Fragment&&(c.ref=r?f:u),v.cloneElement(i,c)});return t.displayName=`${e}.Slot`,t}wt(rr,"createSlot");var h1=rr("Slot"),xm=Symbol.for("radix.slottable");function m1(e){const t=wt(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=xm,t}wt(m1,"createSlottable");var g1=wt((e,t)=>{if("child"in e.props){const n=e.props.child;return v.isValidElement(n)?v.cloneElement(n,void 0,e.props.children(n.props.children)):null}return v.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function wm(e,t){const n={...t};for(const r in t){const s=e[r],o=t[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...l)=>{const a=o(...l);return s(...l),a}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}wt(wm,"mergeProps");function Sm(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}wt(Sm,"getElementRef");function Em(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xm}wt(Em,"isSlottable");var v1=Symbol.for("react.lazy");function za(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===v1&&"_payload"in e&&Cm(e._payload)}wt(za,"isLazyComponent");function Cm(e){return typeof e=="object"&&e!==null&&"then"in e}wt(Cm,"isPromiseLike");var y1=wt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),x1=wt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Do=io[" use ".trim().toString()];const Gd=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,qd=sm,km=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return qd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(u=>{const f=n==null?void 0:n[u],c=o==null?void 0:o[u];if(f===null)return null;const g=Gd(f)||Gd(c);return s[u][g]}),l=n&&Object.entries(n).reduce((u,f)=>{let[c,g]=f;return g===void 0||(u[c]=g),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:g,...x}=f;return Object.entries(x).every(S=>{let[E,C]=S;return Array.isArray(C)?C.includes({...o,...l}[E]):{...o,...l}[E]===C})?[...u,c,g]:u},[]);return qd(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)},w1=km("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:opacity-90",outline:"border border-line-strong text-foreground hover:bg-secondary",secondary:"bg-secondary text-secondary-foreground hover:bg-surface-3",ghost:"text-foreground hover:bg-secondary",destructive:"bg-destructive text-destructive-foreground hover:opacity-90",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-sm px-3 text-xs",lg:"h-10 rounded-md px-6",icon:"h-9 w-9 shrink-0 p-0"}},defaultVariants:{variant:"default",size:"default"}}),bm=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},o)=>{const i=r?h1:"button";return d.jsx(i,{className:F(w1({variant:t,size:n,className:e})),ref:o,...s})});bm.displayName="Button";const Pm="coord-web-theme";function S1(){return typeof window>"u"||!window.matchMedia?"dark":window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}function E1(){if(typeof window>"u")return null;try{const e=window.localStorage.getItem(Pm);return e==="light"||e==="dark"?e:null}catch{return null}}function C1(){return E1()??S1()}const _m=v.createContext(void 0);function k1({children:e}){const[t,n]=v.useState(C1);v.useEffect(()=>{document.documentElement.setAttribute("data-theme",t)},[t]);const r=o=>{n(o);try{window.localStorage.setItem(Pm,o)}catch{}},s=()=>r(t==="dark"?"light":"dark");return d.jsx(_m.Provider,{value:{theme:t,setTheme:r,toggleTheme:s},children:e})}function Nm(){const e=v.useContext(_m);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e}function b1(){const{theme:e,toggleTheme:t}=Nm();return d.jsx(bm,{variant:"ghost",size:"icon",onClick:t,"aria-label":e==="dark"?"Switch to light theme":"Switch to dark theme",title:"Theme",children:e==="dark"?d.jsx(vm,{}):d.jsx(gm,{})})}function Tm({title:e,count:t,countLabel:n="tracked",children:r}){return d.jsxs("header",{className:"mb-4 flex items-center gap-2.5",children:[d.jsx("span",{"aria-hidden":"true",className:"grid h-[22px] w-[22px] flex-none place-items-center rounded-md bg-gradient-to-br from-brand to-brand-dim font-mono text-[.62rem] font-bold tracking-[-.02em] text-[#0b1013] md:hidden",children:"co"}),d.jsx("h1",{className:"text-step-1 font-semibold tracking-[-.01em] text-foreground",children:e}),t!=null&&d.jsxs("span",{className:"font-mono text-[.75rem] text-faint",children:[t," ",n]}),d.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[r,d.jsx("div",{className:"md:hidden",children:d.jsx(b1,{})})]})]})}function oc(e){return e.current_stage!=="merged"}function Vi(e){return e.available_gates.length>0}const P1={active:oc,"needs-me":Vi},_1=new Set(["done","review_done","smoke_passed","merge_ready"]);function N1(e){return _1.has(e.current_stage)}const T1=new Set(["coding","review_running","smoke_running","merging"]);function R1(e){const t=[],n=[];for(const s of e)N1(s)?n.push(s):t.push(s);const r=s=>Vi(s)?0:T1.has(s.current_stage)?1:2;return t.sort((s,o)=>r(s)-r(o)),n.sort((s,o)=>(o.finished_at??-1/0)-(s.finished_at??-1/0)),{inProgress:t,done:n}}const j1=80;function I1(e){let t=e instanceof HTMLElement?e:null;for(;t&&t!==document.body;){if(t.scrollTop>0)return!1;t=t.parentElement}return(window.scrollY||document.documentElement.scrollTop||0)===0}function O1({onRefresh:e}){const t=v.useRef(0),n=v.useRef(!1),r=v.useCallback(o=>{t.current=o.touches[0].clientY,n.current=I1(o.target)},[]),s=v.useCallback(o=>{o.changedTouches[0].clientY-t.current>j1&&n.current&&e()},[e]);return{onTouchStart:r,onTouchEnd:s}}function L1({active:e,counts:t,onChange:n}){const r=[{id:"active",label:"Active"},{id:"needs-me",label:"Needs me"}];return d.jsx("div",{className:"flex gap-2",role:"tablist","aria-label":"Pipeline filters",children:r.map(({id:s,label:o})=>{const i=s===e,l=t[s];return d.jsxs("button",{type:"button",role:"tab","aria-selected":i,onClick:()=>n(s),className:i?"flex items-center gap-1.5 rounded-full bg-primary px-3 py-1 text-xs font-semibold text-primary-foreground":"flex items-center gap-1.5 rounded-full border border-border px-3 py-1 text-xs font-medium text-muted-foreground",children:[o,l>0&&d.jsx("span",{className:i?"rounded-full bg-primary-foreground/20 px-1.5 text-xs font-mono":"rounded-full bg-secondary px-1.5 text-xs font-mono",children:l})]},s)})})}function M1({sessions:e,onSelect:t}){return e.length===0?null:d.jsxs("section",{"aria-label":"Live sessions",className:"mb-5 space-y-3",children:[d.jsx("h2",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:"Live sessions"}),e.map(n=>d.jsx(hm,{session:n,onClick:()=>t(n.session_id)},n.session_id))]})}function D1({items:e,onSelect:t,isSelected:n}){const[r,s]=v.useState(!1);return e.length===0?null:d.jsxs("section",{"aria-label":"Work done",className:"mt-3",children:[d.jsxs("button",{type:"button",onClick:()=>s(o=>!o),"aria-expanded":r,className:"flex w-full items-center justify-between rounded-lg border border-border bg-card px-4 py-2 text-left text-xs font-medium text-muted-foreground",children:[d.jsxs("span",{children:["Work done (",e.length,")"]}),d.jsx("span",{"aria-hidden":"true",children:r?"▾":"▸"})]}),r&&d.jsx("div",{className:"mt-3 space-y-3",children:e.map(o=>d.jsx(pm,{view:o,selected:n(o),onClick:()=>t(o)},o.assignment_id))})]})}function A1(){const e=ar(),[t,n]=v.useState("active"),r=Rs("/pipeline/:repo/:issue"),s=Rs("/pipeline/:repo/:issue/:tab"),o=r??s,i=o==null?void 0:o.params.repo,l=o==null?void 0:o.params.issue,a=P=>i===P.repo_name&&l===String(P.issue_number),{data:u,isLoading:f,isError:c,isFetching:g,dataUpdatedAt:x,refetch:S}=Tn({queryKey:["pipeline"],queryFn:nc}),{data:E}=Tn({queryKey:["sessions"],queryFn:Wi}),C=v.useCallback(()=>{S()},[S]),{onTouchStart:p,onTouchEnd:h}=O1({onRefresh:C}),m=u?u.filter(P1[t]):[],{inProgress:y,done:b}=t==="active"?R1(m):{inProgress:m,done:[]},k={active:u?u.filter(oc).length:0,"needs-me":u?u.filter(Vi).length:0},_=x?new Date(x).toLocaleTimeString():null;return d.jsxs("div",{className:"mx-auto w-full max-w-lg px-4 py-4",onTouchStart:p,onTouchEnd:h,children:[d.jsxs(Tm,{title:"Pipeline",count:u?k.active:void 0,children:[g&&!f&&d.jsx("span",{className:"h-2 w-2 animate-pulse rounded-full bg-primary","aria-label":"Refreshing"}),_&&d.jsx("span",{className:"font-mono text-[.7rem] text-faint",children:_})]}),d.jsx(M1,{sessions:E??[],onSelect:P=>e(be.terminal(P))}),u&&d.jsx("div",{className:"mb-4",children:d.jsx(L1,{active:t,counts:k,onChange:n})}),f&&d.jsx("p",{className:"py-12 text-center text-sm text-muted-foreground",children:"Loading pipeline…"}),c&&d.jsxs("div",{className:"rounded-lg border border-destructive/40 bg-destructive/10 px-4 py-6 text-center",children:[d.jsx("p",{className:"text-sm text-destructive",children:"Failed to load pipeline"}),d.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Is the dashboard server running?"}),d.jsx("button",{type:"button",onClick:C,className:"mt-3 rounded-full border border-border px-3 py-1 text-xs text-muted-foreground",children:"Retry"})]}),u&&m.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("section",{className:"space-y-3","aria-label":t==="active"?"Active items":"Items needing attention",children:y.map(P=>d.jsx(pm,{view:P,selected:a(P),onClick:()=>e(be.pipelineItem(P.repo_name,P.issue_number))},P.assignment_id))}),d.jsx(D1,{items:b,isSelected:a,onSelect:P=>e(be.pipelineItem(P.repo_name,P.issue_number))})]}),u&&m.length===0&&d.jsx("div",{className:"py-12 text-center",children:t==="needs-me"?d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"text-sm font-medium text-foreground",children:"All clear"}),d.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"No items are waiting for your input right now."})]}):d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"text-sm font-medium text-foreground",children:"No active pipeline items"}),d.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Dispatch a worker to get started."})]})})]})}function F1(){const e=ar(),{data:t,isLoading:n,isError:r,refetch:s}=Tn({queryKey:["sessions"],queryFn:Wi}),o=t??[];return d.jsxs("div",{className:"mx-auto w-full max-w-lg px-4 py-4",children:[d.jsx(Tm,{title:"Sessions",count:o.length,countLabel:"live"}),n&&d.jsx("p",{className:"py-12 text-center text-sm text-muted-foreground",children:"Loading sessions…"}),r&&d.jsxs("div",{className:"rounded-lg border border-destructive/40 bg-destructive/10 px-4 py-6 text-center",children:[d.jsx("p",{className:"text-sm text-destructive",children:"Failed to load sessions"}),d.jsx("button",{type:"button",onClick:()=>void s(),className:"mt-3 rounded-full border border-border px-3 py-1 text-xs text-muted-foreground",children:"Retry"})]}),t&&o.length>0&&d.jsx("section",{className:"space-y-3","aria-label":"Live sessions",children:o.map(i=>d.jsx(hm,{session:i,onClick:()=>e(be.session(i.session_id))},i.session_id))}),t&&o.length===0&&d.jsxs("div",{className:"py-12 text-center",children:[d.jsx("p",{className:"text-sm font-medium text-foreground",children:"No live sessions"}),d.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Interactive coord sessions show up here while they're running."})]})]})}const Rm="coord-web-shell",Ua=260,$a=640,jm=360,z1=216,U1=60,nn={railCollapsed:!1,listCollapsed:!1,listWidthPx:jm};function ic(e){return Number.isFinite(e)?Math.min($a,Math.max(Ua,Math.round(e))):jm}function $1(e){if(!e)return nn;let t;try{t=JSON.parse(e)}catch{return nn}if(typeof t!="object"||t===null)return nn;const n=t;return{railCollapsed:typeof n.railCollapsed=="boolean"?n.railCollapsed:nn.railCollapsed,listCollapsed:typeof n.listCollapsed=="boolean"?n.listCollapsed:nn.listCollapsed,listWidthPx:typeof n.listWidthPx=="number"?ic(n.listWidthPx):nn.listWidthPx}}function B1(){if(typeof window>"u")return nn;try{return $1(window.localStorage.getItem(Rm))}catch{return nn}}function Cl(e){if(!(typeof window>"u"))try{window.localStorage.setItem(Rm,JSON.stringify(e))}catch{}}function W1(){const[e,t]=v.useState(B1),n=v.useCallback(r=>{t(s=>{const o={...s,...r};return o.railCollapsed===s.railCollapsed&&o.listCollapsed===s.listCollapsed&&o.listWidthPx===s.listWidthPx?s:(Cl(o),o)})},[]);return{...e,setRailCollapsed:v.useCallback(r=>n({railCollapsed:r}),[n]),toggleRail:v.useCallback(()=>t(r=>{const s={...r,railCollapsed:!r.railCollapsed};return Cl(s),s}),[]),setListCollapsed:v.useCallback(r=>n({listCollapsed:r}),[n]),toggleList:v.useCallback(()=>t(r=>{const s={...r,listCollapsed:!r.listCollapsed};return Cl(s),s}),[]),setListWidthPx:v.useCallback(r=>n({listWidthPx:ic(r)}),[n])}}const V1=16,Q1=64,H1={inert:""};function K1({mode:e,railCollapsed:t,listCollapsed:n,listWidthPx:r,onListWidthChange:s,detailActive:o,rail:i,list:l,detail:a,status:u,registerRegion:f,focusedRegion:c}){const g=e==="narrow",x=e==="wide",S=x&&!t?z1:U1,E=x&&n,C=g?!o:!E,p=x||o,h=e==="medium"&&o,m=g?{gridTemplateColumns:"minmax(0,1fr)",gridTemplateRows:"minmax(0,1fr) auto auto"}:{gridTemplateColumns:x?`${S}px ${E?0:r}px minmax(0,1fr)`:`${S}px minmax(0,1fr)`,gridTemplateRows:"minmax(0,1fr) auto"},y=g?{gridColumn:1,gridRow:3}:{gridColumn:1,gridRow:1},b=g?{gridColumn:1,gridRow:1}:{gridColumn:2,gridRow:1},k=g?{gridColumn:1,gridRow:1}:{gridColumn:x?3:2,gridRow:1},_=g?{gridColumn:1,gridRow:2}:{gridColumn:"1 / -1",gridRow:2},P=v.useRef(null),O=v.useCallback(D=>{D.button===0&&(D.preventDefault(),D.currentTarget.setPointerCapture(D.pointerId),P.current={startX:D.clientX,startWidth:r},document.body.style.setProperty("user-select","none"),document.body.style.setProperty("cursor","col-resize"))},[r]),j=v.useCallback(D=>{const B=P.current;B&&s(ic(B.startWidth+(D.clientX-B.startX)))},[s]),I=v.useCallback(D=>{P.current&&(P.current=null,document.body.style.removeProperty("user-select"),document.body.style.removeProperty("cursor"),D.currentTarget.hasPointerCapture(D.pointerId)&&D.currentTarget.releasePointerCapture(D.pointerId))},[]),T=v.useCallback(D=>{const B=D.shiftKey?Q1:V1;switch(D.key){case"ArrowLeft":D.preventDefault(),s(r-B);break;case"ArrowRight":D.preventDefault(),s(r+B);break;case"Home":D.preventDefault(),s(Ua);break;case"End":D.preventDefault(),s($a);break}},[r,s]);return v.useEffect(()=>()=>{document.body.style.removeProperty("user-select"),document.body.style.removeProperty("cursor")},[]),d.jsxs("div",{className:"grid h-screen w-full overflow-hidden bg-background text-foreground [height:100dvh]",style:m,"data-shell-mode":e,"data-rail":g?"bottom":!x||t?"collapsed":"expanded","data-panel":E?"collapsed":"expanded","data-detail":o?"active":"empty",children:[d.jsx("div",{style:y,className:"min-w-0 overflow-hidden",children:i}),C&&d.jsxs("section",{ref:f("list"),tabIndex:-1,"data-region":"list","aria-label":"List","aria-hidden":h||void 0,...h?H1:{},style:b,className:F("relative flex min-w-0 flex-col overflow-hidden bg-background outline-none",!g&&"border-r border-border",c==="list"&&"ring-1 ring-inset ring-ring"),children:[d.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:l}),x&&d.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize list panel","aria-valuenow":r,"aria-valuemin":Ua,"aria-valuemax":$a,tabIndex:0,onPointerDown:O,onPointerMove:j,onPointerUp:I,onPointerCancel:I,onKeyDown:T,className:"absolute -right-[3px] bottom-0 top-0 z-20 w-[7px] cursor-col-resize touch-none bg-transparent transition-colors hover:bg-brand/40 focus-visible:bg-brand/60 focus-visible:outline-none"})]}),p&&d.jsx("main",{ref:f("detail"),tabIndex:-1,"data-region":"detail","aria-label":"Detail",style:k,className:F("flex min-w-0 flex-col overflow-hidden bg-background outline-none",h&&"z-10 border-l border-border shadow-elevation",c==="detail"&&"ring-1 ring-inset ring-ring"),children:d.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:a})}),d.jsx("div",{style:_,className:"min-w-0",children:u})]})}const Im=[{id:"pipeline",label:"Pipeline",icon:c1,status:"ready"},{id:"board",label:"Board",icon:e1,status:"soon",hint:"Board panel — M-W2"},{id:"sessions",label:"Sessions",icon:a1,status:"ready"},{id:"terminal",label:"Terminal",icon:u1,status:"soon",hint:"Standalone terminal panel — open one from Sessions for now"},{id:"machines",label:"Machines",icon:i1,status:"soon",hint:"Machines panel — M-W2"},{id:"merge-queue",label:"Merge queue",icon:Zw,status:"soon",group:"Flow",hint:"Merge queue panel — M-W2"},{id:"milestones",label:"Milestones",icon:t1,status:"soon",group:"Flow",hint:"Milestone DAG — M-W3"},{id:"audit",label:"Audit",icon:o1,status:"soon",group:"Insight",hint:"Audit trail — milestone #33"},{id:"spend",label:"Spend",icon:qw,status:"soon",group:"Insight",hint:"Spend & time observability — milestone #37"}],Yd=Im.reduce((e,t)=>{const n=e[e.length-1];return n&&n.heading===t.group?n.items.push(t):e.push({heading:t.group,items:[t]}),e},[]),xs="relative flex w-full items-center rounded-sm text-left text-step-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0";function G1({item:e,mode:t,collapsed:n,selected:r,count:s,attention:o,onSelect:i}){const l=e.status==="soon",a=e.icon,u=t==="narrow";return d.jsxs("button",{type:"button","aria-disabled":l||void 0,"aria-current":r?"page":void 0,title:e.hint??e.label,onClick:l?void 0:()=>i(e.id),className:F(xs,u?"min-w-[60px] flex-1 flex-col justify-center gap-0.5 px-1 py-1.5":"gap-2.5 px-2 py-1.5",n&&!u&&"justify-center px-0 py-2",l?"cursor-default text-muted-foreground opacity-40 hover:opacity-70":"text-muted-foreground hover:bg-surface-2 hover:text-foreground",r&&!u&&"bg-brand-wash text-brand hover:bg-brand-wash hover:text-brand",r&&u&&"text-brand"),children:[r&&!u&&d.jsx("span",{"aria-hidden":"true",className:"absolute -left-2 top-1/2 h-[17px] w-[3px] -translate-y-1/2 rounded-r-[3px] bg-brand"}),d.jsx(a,{className:F("shrink-0",u?"h-[19px] w-[19px]":"h-[17px] w-[17px]"),"aria-hidden":"true"}),(!n||u)&&d.jsx("span",{className:F("overflow-hidden text-ellipsis whitespace-nowrap",u?"text-[.6rem] leading-tight":"min-w-0 flex-1"),children:e.label}),!n&&!u&&l&&d.jsx("span",{className:"shrink-0 rounded-full border border-line-strong px-1 text-[.58rem] uppercase tracking-[.06em] text-faint",children:"soon"}),!n&&!u&&!l&&s!=null&&s>0&&d.jsx("span",{className:F("rounded-full px-1.5 font-mono text-[.7rem]",o?"bg-attn-wash text-attn":"bg-surface-2 text-faint"),children:s})]})}function q1({mode:e,collapsed:t,view:n,onSelect:r,onToggleCollapsed:s,listCollapsed:o,onToggleList:i,counts:l,attentionViews:a,regionRef:u,regionFocused:f}){const{theme:c,toggleTheme:g}=Nm(),x=e==="narrow",S=e==="medium"||e==="wide"&&t,E=x?[{heading:void 0,items:Yd.flatMap(C=>C.items).filter(C=>C.status==="ready")}]:Yd;return d.jsxs("nav",{ref:u,tabIndex:-1,"data-region":"rail","aria-label":"Views",className:F("flex h-full w-full min-w-0 overflow-hidden bg-surface outline-none",x?"flex-row border-t border-border pb-[env(safe-area-inset-bottom,0px)]":"flex-col border-r border-border",f&&"ring-1 ring-inset ring-ring"),children:[!x&&d.jsxs("div",{className:F("flex items-center gap-[9px] border-b border-border",S?"justify-center px-0 py-3":"px-3.5 pb-3 pt-3.5"),children:[d.jsx("span",{"aria-hidden":"true",className:"grid h-[26px] w-[26px] flex-none place-items-center rounded-[7px] bg-gradient-to-br from-brand to-brand-dim font-mono text-[.72rem] font-bold tracking-[-.02em] text-[#0b1013]",children:"co"}),!S&&d.jsxs("span",{className:"whitespace-nowrap font-semibold tracking-[-.01em]",children:["coord ",d.jsx("span",{className:"font-normal text-muted-foreground",children:"web"})]})]}),d.jsx("div",{className:F("flex",x?"w-full flex-row justify-around gap-0 overflow-x-auto px-0 py-1":"flex-1 flex-col gap-px overflow-y-auto px-2 py-2.5"),children:E.map((C,p)=>d.jsxs("div",{className:F("flex",x?"w-full flex-row justify-around":"flex-col gap-px"),children:[C.heading&&!S&&!x&&d.jsx("div",{className:"whitespace-nowrap px-2.5 pb-[5px] pt-3.5 text-[.66rem] font-semibold uppercase tracking-[.09em] text-faint",children:C.heading}),C.items.map(h=>d.jsx(G1,{item:h,mode:e,collapsed:S,selected:h.id===n,count:l==null?void 0:l[h.id],attention:a==null?void 0:a.has(h.id),onSelect:r},h.id))]},C.heading??`group-${p}`))}),!x&&d.jsxs("div",{className:"flex flex-col gap-px border-t border-border px-2 py-2.5",children:[d.jsxs("button",{type:"button",onClick:g,title:c==="dark"?"Switch to light theme":"Switch to dark theme","aria-label":c==="dark"?"Switch to light theme":"Switch to dark theme",className:F(xs,"gap-[11px] px-2.5 py-1.5 text-muted-foreground hover:bg-surface-2 hover:text-foreground",S&&"justify-center px-0 py-2"),children:[c==="dark"?d.jsx(vm,{className:"h-[17px] w-[17px] shrink-0","aria-hidden":"true"}):d.jsx(gm,{className:"h-[17px] w-[17px] shrink-0","aria-hidden":"true"}),!S&&d.jsx("span",{className:"flex-1 text-left",children:"Theme"})]}),d.jsxs("button",{type:"button","aria-disabled":"true",title:"Settings panel — M-W3",className:F(xs,"cursor-default gap-[11px] px-2.5 py-1.5 text-muted-foreground opacity-40 hover:opacity-70",S&&"justify-center px-0 py-2"),children:[d.jsx(l1,{className:"h-[17px] w-[17px] shrink-0","aria-hidden":"true"}),!S&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"flex-1 text-left",children:"Settings"}),d.jsx("span",{className:"rounded-full border border-line-strong px-[5px] text-[.6rem] uppercase tracking-[.06em] text-faint",children:"soon"})]})]}),e==="wide"&&i&&d.jsxs("button",{type:"button",onClick:i,"aria-label":o?"Show list panel":"Minimize list panel","aria-pressed":!!o,title:o?"Show list panel":"Minimize list panel",className:F(xs,"gap-[11px] px-2.5 py-1.5 text-muted-foreground hover:bg-surface-2 hover:text-foreground",t&&"justify-center px-0 py-2"),children:[o?d.jsx(s1,{className:"h-[17px] w-[17px] shrink-0","aria-hidden":"true"}):d.jsx(r1,{className:"h-[17px] w-[17px] shrink-0","aria-hidden":"true"}),!t&&d.jsx("span",{className:"flex-1 text-left",children:o?"Show list":"Hide list"})]}),e==="wide"&&d.jsxs("button",{type:"button",onClick:s,"aria-label":t?"Expand rail":"Collapse rail","aria-expanded":!t,title:t?"Expand rail":"Collapse rail",className:F(xs,"gap-[11px] px-2.5 py-1.5 text-muted-foreground hover:bg-surface-2 hover:text-foreground",t&&"justify-center px-0 py-2"),children:[t?d.jsx(Xw,{className:"h-[17px] w-[17px] shrink-0","aria-hidden":"true"}):d.jsx(Yw,{className:"h-[17px] w-[17px] shrink-0","aria-hidden":"true"}),!t&&d.jsx("span",{className:"flex-1 text-left",children:"Collapse"})]})]})]})}function Y1({view:e}){const t=Im.find(r=>r.id===e),n=t==null?void 0:t.icon;return d.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-3 px-6 py-12 text-center",children:[n&&d.jsx(n,{className:"h-7 w-7 text-faint","aria-hidden":"true"}),d.jsx("p",{className:"text-sm font-medium text-foreground",children:(t==null?void 0:t.label)??"Coming soon"}),d.jsx("p",{className:"max-w-xs text-xs text-muted-foreground",children:(t==null?void 0:t.hint)??"This panel is not built yet."})]})}function X1(){return d.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-3 px-6 py-12 text-center",children:[d.jsx(Jw,{className:"h-7 w-7 text-faint","aria-hidden":"true"}),d.jsx("p",{className:"text-sm font-medium text-foreground",children:"Page not found"}),d.jsx("p",{className:"max-w-xs text-xs text-muted-foreground",children:"There's nothing at this address."}),d.jsx(H0,{to:be.pipeline(),className:"mt-1 rounded-full border border-border px-3 py-1 text-xs text-muted-foreground hover:text-foreground",children:"Go to Pipeline"})]})}const J1=[1e3,2e3,4e3,8e3,15e3,3e4],Z1=.2;function eS(e,t){const n=e*t*(Math.random()*2-1);return Math.max(0,Math.round(e+n))}function tS(e){return new EventSource(e)}function nS(e){const{url:t,eventTypes:n,onEvent:r,onStatusChange:s,createEventSource:o=tS,backoffScheduleMs:i=J1,jitterFraction:l=Z1,now:a=()=>Date.now(),setTimeoutFn:u=setTimeout,clearTimeoutFn:f=clearTimeout}=e;let c=0,g=null,x=null,S=0,E=null;function C(k){s({state:k,lastLiveAt:E,attempt:S})}function p(){x!==null&&(f(x),x=null)}function h(){g!==null&&(g.close(),g=null)}function m(k){const _=Math.min(S-1,i.length-1),P=eS(i[_],l);x=u(()=>{x=null,k===c&&b(k)},P)}function y(k){k===c&&(h(),S+=1,C("disconnected"),m(k))}function b(k){if(k!==c)return;C(S>0?"reconnecting":"connecting");let _;try{_=o(t)}catch{y(k);return}g=_,_.onopen=()=>{k===c&&(S=0,E=a(),C("live"))},_.onerror=()=>{y(k)};for(const P of n)_.addEventListener(P,O=>{k===c&&r(P,rS(O.data))})}return{start(){c+=1;const k=c;S=0,p(),h(),b(k)},stop(){c+=1,p(),h()}}}function rS(e){if(!e)return null;try{return JSON.parse(e)}catch{return e}}const Om="assignment_started",Lm="assignment_completed",Mm="assignment_failed",Dm="assignment_cancelled",Am="assignment_advisory",Fm="assignment_needs_attention",zm="machine_connected",Um="machine_disconnected",$m="board_updated",sS=[Om,Lm,Mm,Dm,Am,Fm,zm,Um,$m],Zt=["pipeline"],Lt=["sessions"],oS={[Om]:[Zt,Lt],[Lm]:[Zt,Lt],[Mm]:[Zt,Lt],[Dm]:[Zt,Lt],[Am]:[Zt,Lt],[Fm]:[Zt],[zm]:[Lt],[Um]:[Lt],[$m]:[Zt,Lt]},iS=[Zt,Lt],lS="/events",Bm={state:"connecting",lastLiveAt:null,attempt:0},Wm=v.createContext(Bm);function aS(){return v.useContext(Wm)}function uS(e,t){for(const n of oS[t]??[])e.invalidateQueries({queryKey:n})}function cS(e){for(const t of iS)e.invalidateQueries({queryKey:t})}function dS({children:e,createEventSource:t,url:n,backoffScheduleMs:r}){const s=Gu(),[o,i]=v.useState(Bm),l=v.useRef(s);l.current=s;const a=v.useRef(null),u=v.useRef("connecting");return a.current===null&&(a.current=nS({url:n??lS,eventTypes:sS,createEventSource:t,backoffScheduleMs:r,onEvent:(f,c)=>{uS(l.current,f)},onStatusChange:f=>{f.state==="live"&&u.current==="reconnecting"&&cS(l.current),u.current=f.state,i(f)}})),v.useEffect(()=>{const f=a.current;if(f)return f.start(),()=>f.stop()},[]),d.jsx(Wm.Provider,{value:o,children:e})}function fS(e){return new Date(e).toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"})}function pS(){const{state:e,lastLiveAt:t}=aS();let n,r;switch(e){case"live":n="Live",r="bg-green-500";break;case"reconnecting":n="Reconnecting…",r="bg-yellow-500 animate-pulse";break;case"disconnected":n=t?`Stale since ${fS(t)}`:"Disconnected",r="bg-destructive";break;case"connecting":default:n="Connecting…",r="bg-muted-foreground animate-pulse";break}return d.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",role:"status","aria-label":`Connection: ${n}`,children:[d.jsx("span",{className:F("h-2 w-2 shrink-0 rounded-full",r),"aria-hidden":"true"}),n]})}function hS({inFlight:e,sessions:t,machines:n}){return d.jsxs("footer",{"aria-label":"Status",className:"flex items-center gap-4 overflow-x-auto whitespace-nowrap border-t border-border bg-surface px-3 py-1.5 font-mono text-[.69rem] text-faint md:px-5",children:[d.jsx(pS,{}),e!=null&&d.jsxs("span",{children:[e," in flight"]}),t!=null&&d.jsxs("span",{children:[t," ",t===1?"session":"sessions"]}),n&&n.length>0&&d.jsx("span",{className:"hidden md:inline",children:n.join(" · ")})]})}const mS=768,gS=1024,Vm=`(min-width: ${gS}px)`,Qm=`(min-width: ${mS}px)`;function Xd(){return typeof window>"u"||typeof window.matchMedia!="function"?"narrow":window.matchMedia(Vm).matches?"wide":window.matchMedia(Qm).matches?"medium":"narrow"}function vS(){const[e,t]=v.useState(Xd);return v.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const n=window.matchMedia(Vm),r=window.matchMedia(Qm),s=()=>t(Xd());s();const o=l=>typeof l.addEventListener=="function"?(l.addEventListener("change",s),()=>l.removeEventListener("change",s)):typeof l.addListener=="function"?(l.addListener(s),()=>l.removeListener(s)):()=>{},i=[o(n),o(r)];return()=>i.forEach(l=>l())},[]),e}function yS(e){const t=v.useRef({}),[n,r]=v.useState(null),s=v.useRef(e);s.current=e;const o=v.useCallback(l=>a=>{t.current[l]=a},[]),i=v.useCallback(l=>{const a=t.current[l];a&&(a.focus(),r(l))},[]);return v.useEffect(()=>{const l=a=>{if(a.key!=="F6")return;const u=s.current;if(u.length===0)return;const f=document.activeElement;let c=u.findIndex(C=>{const p=t.current[C];return!!p&&!!f&&p.contains(f)});c===-1&&(c=u.indexOf(n));const g=a.shiftKey?-1:1,x=(c+g+u.length)%u.length,S=u[x],E=t.current[S];E&&(a.preventDefault(),E.focus(),r(S))};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[n]),{focusedRegion:n,registerRegion:o,focusRegion:i}}const xS=new Set(["pipeline"]);function wS(){const e=vS(),t=W1(),n=ar(),r=lr(),s=Rw(r.pathname),o=Rs("/pipeline/:repo/:issue"),i=Rs("/pipeline/:repo/:issue/:tab"),l=Rs("/sessions/:id"),a=!!(o||i||l),{data:u}=Tn({queryKey:["pipeline"],queryFn:nc}),{data:f}=Tn({queryKey:["sessions"],queryFn:Wi}),c=u==null?void 0:u.filter(oc).length,g=(u==null?void 0:u.some(Vi))??!1,x=f?Array.from(new Set(f.map(b=>b.machine).filter(b=>!!b))).sort():[],S=e==="narrow"?!a:!(e==="wide"&&t.listCollapsed),E=e==="wide"||a,C=["rail",...S?["list"]:[],...E?["detail"]:[]],{focusedRegion:p,registerRegion:h}=yS(C),m=v.useCallback(b=>{const k=cm[b];k&&n(k)},[n]);let y;return s==="pipeline"?y=d.jsx(A1,{}):s==="sessions"?y=d.jsx(F1,{}):s===null?y=d.jsx(X1,{}):y=d.jsx(Y1,{view:s}),d.jsx(K1,{mode:e,railCollapsed:t.railCollapsed,listCollapsed:t.listCollapsed,listWidthPx:t.listWidthPx,onListWidthChange:t.setListWidthPx,detailActive:a,registerRegion:h,focusedRegion:p,rail:d.jsx(q1,{mode:e,collapsed:t.railCollapsed,view:s,onSelect:m,onToggleCollapsed:t.toggleRail,listCollapsed:t.listCollapsed,onToggleList:t.toggleList,counts:{pipeline:c,sessions:f==null?void 0:f.length},attentionViews:g?xS:void 0,regionRef:h("rail"),regionFocused:p==="rail"}),list:y,detail:d.jsx(L0,{}),status:d.jsx(hS,{inFlight:c,sessions:f==null?void 0:f.length,machines:x})})}function Jd(){return d.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-3 px-6 py-12 text-center",children:[d.jsx(n1,{className:"h-7 w-7 text-faint","aria-hidden":"true"}),d.jsx("p",{className:"text-sm font-medium text-foreground",children:"Nothing selected"}),d.jsx("p",{className:"max-w-xs text-xs text-muted-foreground",children:"Pick an item from the list to see its stages, worker and actions here."}),d.jsxs("p",{className:"text-xs text-faint",children:[d.jsx("kbd",{className:"rounded border border-line-strong px-1 font-mono text-[.7rem]",children:"F6"})," ","cycles rail → list → detail"]})]})}const SS=3,ES=4e3;let kl=0;function CS(){return kl=(kl+1)%Number.MAX_SAFE_INTEGER,kl.toString()}const bl=new Map;function Zd(e){if(bl.has(e))return;const t=setTimeout(()=>{bl.delete(e),js({type:"REMOVE_TOAST",toastId:e})},ES);bl.set(e,t)}function kS(e,t){switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,SS)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Zd(n):e.toasts.forEach(r=>Zd(r.id)),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)};default:return e}}const qo=[];let Yo={toasts:[]};function js(e){Yo=kS(Yo,e),qo.forEach(t=>t(Yo))}function bS({...e}){const t=CS(),n=s=>js({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>js({type:"DISMISS_TOAST",toastId:t});return js({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function PS(){const[e,t]=v.useState(Yo);return v.useEffect(()=>(qo.push(t),()=>{const n=qo.indexOf(t);n>-1&&qo.splice(n,1)}),[]),{...e,toast:bS,dismiss:n=>js({type:"DISMISS_TOAST",toastId:n})}}var _S=Object.defineProperty,rs=(e,t)=>_S(e,"name",{value:t,configurable:!0}),Hm=!!(typeof window<"u"&&window.document&&window.document.createElement);function Be(e,t,{checkForDefaultPrevented:n=!0}={}){return rs(function(s){if(e==null||e(s),n===!1||!s||!s.defaultPrevented)return t==null?void 0:t(s)},"handleEvent")}rs(Be,"composeEventHandlers");function NS(e){var t;if(!Hm)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}rs(NS,"getOwnerWindow");function Ba(e){if(!Hm)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}rs(Ba,"getOwnerDocument");function Km(e,t=!1){const{activeElement:n}=Ba(e);if(!(n!=null&&n.nodeName))return null;if(Gm(n)&&n.contentDocument)return Km(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const s=Ba(n).getElementById(r);if(s)return s}}return n}rs(Km,"getActiveElement");function Gm(e){return e.tagName==="IFRAME"}rs(Gm,"isFrame");var TS=Object.defineProperty,ot=(e,t)=>TS(e,"name",{value:t,configurable:!0});function RS(e,t){const n=v.createContext(t);n.displayName=e+"Context";const r=ot(o=>{const{children:i,...l}=o,a=v.useMemo(()=>l,Object.values(l));return d.jsx(n.Provider,{value:a,children:i})},"Provider");r.displayName=e+"Provider";function s(o,i={}){const{optional:l=!1}=i,a=v.useContext(n);if(a)return a;if(t!==void 0)return t;if(!l)throw new Error(`\`${o}\` must be used within \`${e}\``)}return ot(s,"useContext"),[r,s]}ot(RS,"createContext");function Qi(e,t=[]){let n=[];function r(o,i){const l=v.createContext(i);l.displayName=o+"Context";const a=n.length;n=[...n,i];const u=ot(c=>{var p;const{scope:g,children:x,...S}=c,E=((p=g==null?void 0:g[e])==null?void 0:p[a])||l,C=v.useMemo(()=>S,Object.values(S));return d.jsx(E.Provider,{value:C,children:x})},"Provider");u.displayName=o+"Provider";function f(c,g,x={}){var p;const{optional:S=!1}=x,E=((p=g==null?void 0:g[e])==null?void 0:p[a])||l,C=v.useContext(E);if(C)return C;if(i!==void 0)return i;if(!S)throw new Error(`\`${c}\` must be used within \`${o}\``)}return ot(f,"useContext"),[u,f]}ot(r,"createContext");const s=ot(()=>{const o=n.map(i=>v.createContext(i));return ot(function(l){const a=(l==null?void 0:l[e])||o;return v.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])},"useScope")},"createScope");return s.scopeName=e,[r,qm(s,...t)]}ot(Qi,"createContextScope");function qm(...e){const t=e[0];if(e.length===1)return t;const n=ot(()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return ot(function(o){const i=r.reduce((l,{useScope:a,scopeName:u})=>{const c=a(o)[`__scope${u}`];return{...l,...c}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}ot(qm,"composeContextScopes");var jS=Object.defineProperty,Se=(e,t)=>jS(e,"name",{value:t,configurable:!0});function Ym(e){const t=e+"CollectionProvider",[n,r]=Qi(t),[s,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=Se(E=>{const{scope:C,children:p}=E,h=v.useRef(null),m=v.useRef(new Map).current;return d.jsx(s,{scope:C,itemMap:m,collectionRef:h,children:p})},"CollectionProvider");i.displayName=t;const l=e+"CollectionSlot",a=rr(l),u=v.forwardRef((E,C)=>{const{scope:p,children:h}=E,m=o(l,p),y=yt(C,m.collectionRef);return d.jsx(a,{ref:y,children:h})});u.displayName=l;const f=e+"CollectionItemSlot",c="data-radix-collection-item",g=rr(f),x=v.forwardRef((E,C)=>{const{scope:p,children:h,...m}=E,y=v.useRef(null),b=yt(C,y),k=o(f,p);return v.useEffect(()=>(k.itemMap.set(y,{ref:y,...m}),()=>void k.itemMap.delete(y))),d.jsx(g,{[c]:"",ref:b,children:h})});x.displayName=f;function S(E){const C=o(e+"CollectionConsumer",E);return v.useCallback(()=>{const h=C.collectionRef.current;if(!h)return[];const m=Array.from(h.querySelectorAll(`[${c}]`));return Array.from(C.itemMap.values()).sort((k,_)=>m.indexOf(k.ref.current)-m.indexOf(_.ref.current))},[C.collectionRef,C.itemMap])}return Se(S,"useCollection"),[{Provider:i,Slot:u,ItemSlot:x},S,r]}Se(Ym,"createCollection");var ef=new WeakMap,pe,qe,Pl=(qe=class extends Map{constructor(n){super(n);z(this,pe);L(this,pe,[...super.keys()]),ef.set(this,!0)}set(n,r){return ef.get(this)&&(this.has(n)?w(this,pe)[w(this,pe).indexOf(n)]=n:w(this,pe).push(n)),super.set(n,r),this}insert(n,r,s){const o=this.has(r),i=w(this,pe).length,l=lc(n);let a=l>=0?l:i+l;const u=a<0||a>=i?-1:a;if(u===this.size||o&&u===this.size-1||u===-1)return this.set(r,s),this;const f=this.size+(o?0:1);l<0&&a++;const c=[...w(this,pe)];let g,x=!1;for(let S=a;S<f;S++)if(a===S){let E=c[S];c[S]===r&&(E=c[S+1]),o&&this.delete(r),g=this.get(E),this.set(r,s)}else{!x&&c[S-1]===r&&(x=!0);const E=c[x?S:S-1],C=g;g=this.get(E),this.delete(E),this.set(E,C)}return this}with(n,r,s){const o=new qe(this);return o.insert(n,r,s),o}before(n){const r=w(this,pe).indexOf(n)-1;if(!(r<0))return this.entryAt(r)}setBefore(n,r,s){const o=w(this,pe).indexOf(n);return o===-1?this:this.insert(o,r,s)}after(n){let r=w(this,pe).indexOf(n);if(r=r===-1||r===this.size-1?-1:r+1,r!==-1)return this.entryAt(r)}setAfter(n,r,s){const o=w(this,pe).indexOf(n);return o===-1?this:this.insert(o+1,r,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return L(this,pe,[]),super.clear()}delete(n){const r=super.delete(n);return r&&w(this,pe).splice(w(this,pe).indexOf(n),1),r}deleteAt(n){const r=this.keyAt(n);return r!==void 0?this.delete(r):!1}at(n){const r=Xo(w(this,pe),n);if(r!==void 0)return this.get(r)}entryAt(n){const r=Xo(w(this,pe),n);if(r!==void 0)return[r,this.get(r)]}indexOf(n){return w(this,pe).indexOf(n)}keyAt(n){return Xo(w(this,pe),n)}from(n,r){const s=this.indexOf(n);if(s===-1)return;let o=s+r;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.at(o)}keyFrom(n,r){const s=this.indexOf(n);if(s===-1)return;let o=s+r;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.keyAt(o)}find(n,r){let s=0;for(const o of this){if(Reflect.apply(n,r,[o,s,this]))return o;s++}}findIndex(n,r){let s=0;for(const o of this){if(Reflect.apply(n,r,[o,s,this]))return s;s++}return-1}filter(n,r){const s=[];let o=0;for(const i of this)Reflect.apply(n,r,[i,o,this])&&s.push(i),o++;return new qe(s)}map(n,r){const s=[];let o=0;for(const i of this)s.push([i[0],Reflect.apply(n,r,[i,o,this])]),o++;return new qe(s)}reduce(...n){const[r,s]=n;let o=0,i=s??this.at(0);for(const l of this)o===0&&n.length===1?i=l:i=Reflect.apply(r,this,[i,l,o,this]),o++;return i}reduceRight(...n){const[r,s]=n;let o=s??this.at(-1);for(let i=this.size-1;i>=0;i--){const l=this.at(i);i===this.size-1&&n.length===1?o=l:o=Reflect.apply(r,this,[o,l,i,this])}return o}toSorted(n){const r=[...this.entries()].sort(n);return new qe(r)}toReversed(){const n=new qe;for(let r=this.size-1;r>=0;r--){const s=this.keyAt(r),o=this.get(s);n.set(s,o)}return n}toSpliced(...n){const r=[...this.entries()];return r.splice(...n),new qe(r)}slice(n,r){const s=new qe;let o=this.size-1;if(n===void 0)return s;n<0&&(n=n+this.size),r!==void 0&&r>0&&(o=r-1);for(let i=n;i<=o;i++){const l=this.keyAt(i),a=this.get(l);s.set(l,a)}return s}every(n,r){let s=0;for(const o of this){if(!Reflect.apply(n,r,[o,s,this]))return!1;s++}return!0}some(n,r){let s=0;for(const o of this){if(Reflect.apply(n,r,[o,s,this]))return!0;s++}return!1}},pe=new WeakMap,Se(qe,"OrderedDict"),qe);function Xo(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=Xm(e,t);return n===-1?void 0:e[n]}Se(Xo,"at");function Xm(e,t){const n=e.length,r=lc(t),s=r>=0?r:n+r;return s<0||s>=n?-1:s}Se(Xm,"toSafeIndex");function lc(e){return e!==e||e===0?0:Math.trunc(e)}Se(lc,"toSafeInteger");function IS(e){const t=e+"CollectionProvider",[n,r]=Qi(t),[s,o]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Pl,setItemMap:Se(()=>{},"setItemMap")}),i=Se(({state:m,...y})=>m?d.jsx(a,{...y,state:m}):d.jsx(l,{...y}),"CollectionProvider");i.displayName=t;const l=Se(m=>{const y=C();return d.jsx(a,{...m,state:y})},"CollectionInit");l.displayName=t+"Init";const a=Se(m=>{const{scope:y,children:b,state:k}=m,_=v.useRef(null),[P,O]=v.useState(null),j=yt(_,O),[I,T]=k;return v.useEffect(()=>{if(!P)return;const D=eg(()=>{});return D.observe(P,{childList:!0,subtree:!0}),()=>{D.disconnect()}},[P]),d.jsx(s,{scope:y,itemMap:I,setItemMap:T,collectionRef:j,collectionRefObject:_,collectionElement:P,children:b})},"CollectionProviderImpl");a.displayName=t+"Impl";const u=e+"CollectionSlot",f=rr(u),c=v.forwardRef((m,y)=>{const{scope:b,children:k}=m,_=o(u,b),P=yt(y,_.collectionRef);return d.jsx(f,{ref:P,children:k})});c.displayName=u;const g=e+"CollectionItemSlot",x="data-radix-collection-item",S=rr(g),E=v.forwardRef((m,y)=>{const{scope:b,children:k,..._}=m,P=v.useRef(null),[O,j]=v.useState(null),I=yt(y,P,j),T=o(g,b),{setItemMap:D}=T,B=v.useRef(_);Jm(B.current,_)||(B.current=_);const ce=B.current;return v.useEffect(()=>{const $=ce;return D(q=>O?q.has(O)?q.set(O,{...$,element:O}).toSorted(Wa):(q.set(O,{...$,element:O}),q.toSorted(Wa)):q),()=>{D(q=>!O||!q.has(O)?q:(q.delete(O),new Pl(q)))}},[O,ce,D]),d.jsx(S,{[x]:"",ref:I,children:k})});E.displayName=g;function C(){return v.useState(new Pl)}Se(C,"useInitCollection");function p(m){const{itemMap:y}=o(e+"CollectionConsumer",m);return y}return Se(p,"useCollection"),[{Provider:i,Slot:c,ItemSlot:E},{createCollectionScope:r,useCollection:p,useInitCollection:C}]}Se(IS,"createCollection");function Jm(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n)if(!Object.prototype.hasOwnProperty.call(t,s)||e[s]!==t[s])return!1;return!0}Se(Jm,"shallowEqual");function Zm(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Se(Zm,"isElementPreceding");function Wa(e,t){return!e[1].element||!t[1].element?0:Zm(e[1].element,t[1].element)?-1:1}Se(Wa,"sortByDocumentPosition");function eg(e){return new MutationObserver(n=>{for(const r of n)if(r.type==="childList"){e();return}})}Se(eg,"getChildListObserver");var OS=Object.defineProperty,LS=(e,t)=>OS(e,"name",{value:t,configurable:!0}),MS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jt=MS.reduce((e,t)=>{const n=rr(`Primitive.${t}`),r=v.forwardRef((s,o)=>{const{asChild:i,...l}=s,a=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(a,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ac(e,t){e&&$i.flushSync(()=>e.dispatchEvent(t))}LS(ac,"dispatchDiscreteCustomEvent");var DS=Object.defineProperty,AS=(e,t)=>DS(e,"name",{value:t,configurable:!0});function Rn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}AS(Rn,"useCallbackRef");var FS=Object.defineProperty,ge=(e,t)=>FS(e,"name",{value:t,configurable:!0}),Va="dismissableLayer.update",zS="dismissableLayer.pointerDownOutside",US="dismissableLayer.focusOutside",tf,uc=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),$S=v.forwardRef(ge(function(t,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:a,onDismiss:u,...f}=t,c=v.useContext(uc),[g,x]=v.useState(null),S=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=v.useState({}),C=yt(n,x),p=Array.from(c.layers),[h]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=h?p.indexOf(h):-1,y=g?p.indexOf(g):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,k=y>=m,_=v.useRef(!1),P=tg(T=>{i==null||i(T),a==null||a(T),T.defaultPrevented||u==null||u()},{ownerDocument:S,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:_,dismissableSurfaces:c.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(T=>{if(!(T instanceof Node))return!1;const D=[...c.branches].some(B=>B.contains(T));return k&&!D},[c.branches,k])}),O=ng(T=>{if(s&&_.current)return;const D=T.target;[...c.branches].some(ce=>ce.contains(D))||(l==null||l(T),a==null||a(T),T.defaultPrevented||u==null||u())},S),j=g?y===p.length-1:!1,I=Rn(T=>{T.key==="Escape"&&(o==null||o(T),!T.defaultPrevented&&u&&(T.preventDefault(),u()))});return v.useEffect(()=>{if(j)return S.addEventListener("keydown",I,{capture:!0}),()=>S.removeEventListener("keydown",I,{capture:!0})},[S,j,I]),v.useEffect(()=>{if(g)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(tf=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(g)),c.layers.add(g),Qa(),()=>{r&&(c.layersWithOutsidePointerEventsDisabled.delete(g),c.layersWithOutsidePointerEventsDisabled.size===0&&(S.body.style.pointerEvents=tf))}},[g,S,r,c]),v.useEffect(()=>()=>{g&&(c.layers.delete(g),c.layersWithOutsidePointerEventsDisabled.delete(g),Qa())},[g,c]),v.useEffect(()=>{const T=ge(()=>E({}),"handleUpdate");return document.addEventListener(Va,T),()=>document.removeEventListener(Va,T)},[]),d.jsx(jt.div,{...f,ref:C,style:{pointerEvents:b?k?"auto":"none":void 0,...t.style},onFocusCapture:Be(t.onFocusCapture,O.onFocusCapture),onBlurCapture:Be(t.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Be(t.onPointerDownCapture,P.onPointerDownCapture)})},"DismissableLayer")),BS=v.forwardRef(ge(function(t,n){const r=v.useContext(uc),s=v.useRef(null),o=yt(n,s);return v.useEffect(()=>{const i=s.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),d.jsx(jt.div,{...t,ref:o})},"DismissableLayerBranch"));function WS(){const e=v.useContext(uc),[t,n]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}ge(WS,"useDismissableLayerSurface");var VS=ge(()=>!0,"IS_TRUE");function tg(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:o,shouldHandlePointerDownOutside:i=VS}=t,l=Rn(e),a=v.useRef(!1),u=v.useRef(!1),f=v.useRef(new Map),c=v.useRef(()=>{});return v.useEffect(()=>{function g(){u.current=!1,s.current=!1,f.current.clear()}ge(g,"resetOutsideInteraction");function x(){return Array.from(f.current.values()).some(Boolean)}ge(x,"isOutsideInteractionIntercepted");function S(m){if(!u.current)return;const y=m.target;y instanceof Node&&[...o].some(k=>k.contains(y))||f.current.set(m.type,!0),m.type==="click"&&window.setTimeout(()=>{u.current&&c.current()},0)}ge(S,"handleInteractionCapture");function E(m){u.current&&f.current.set(m.type,!1)}ge(E,"handleInteractionBubble");const C=ge(m=>{if(m.target&&!a.current){let y=function(){n.removeEventListener("click",c.current);const k=x();g(),k||cc(zS,l,b,{discrete:!0})};if(ge(y,"handleAndDispatchPointerDownOutsideEvent"),!i(m.target)){n.removeEventListener("click",c.current),g(),a.current=!1;return}const b={originalEvent:m};u.current=!0,s.current=r&&m.button===0,f.current.clear(),!r||m.button!==0?y():(n.removeEventListener("click",c.current),c.current=y,n.addEventListener("click",c.current,{once:!0}))}else n.removeEventListener("click",c.current),g();a.current=!1},"handlePointerDown"),p=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const m of p)n.addEventListener(m,S,!0),n.addEventListener(m,E);const h=window.setTimeout(()=>{n.addEventListener("pointerdown",C)},0);return()=>{window.clearTimeout(h),n.removeEventListener("pointerdown",C),n.removeEventListener("click",c.current);for(const m of p)n.removeEventListener(m,S,!0),n.removeEventListener(m,E)}},[n,l,r,s,o,i]),{onPointerDownCapture:ge(()=>a.current=!0,"onPointerDownCapture")}}ge(tg,"usePointerDownOutside");function ng(e,t=globalThis==null?void 0:globalThis.document){const n=Rn(e),r=v.useRef(!1);return v.useEffect(()=>{const s=ge(o=>{o.target&&!r.current&&cc(US,n,{originalEvent:o},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:ge(()=>r.current=!0,"onFocusCapture"),onBlurCapture:ge(()=>r.current=!1,"onBlurCapture")}}ge(ng,"useFocusOutside");function Qa(){const e=new CustomEvent(Va);document.dispatchEvent(e)}ge(Qa,"dispatchUpdate");function cc(e,t,n,{discrete:r}){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?ac(s,o):s.dispatchEvent(o)}ge(cc,"handleAndDispatchCustomEvent");var QS=$S,HS=BS,Xr=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},KS=Object.defineProperty,GS=(e,t)=>KS(e,"name",{value:t,configurable:!0}),qS=v.forwardRef(GS(function(t,n){var a;const{container:r,...s}=t,[o,i]=v.useState(!1);Xr(()=>i(!0),[]);const l=r||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?$i.createPortal(d.jsx(jt.div,{...s,ref:n}),l):null},"Portal")),YS=Object.defineProperty,Ht=(e,t)=>YS(e,"name",{value:t,configurable:!0});function rg(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}Ht(rg,"useStateMachine");var XS=Ht(e=>{const{present:t,children:n}=e,r=sg(t),s=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),o=og(r.ref,ig(s));return typeof n=="function"||r.isPresent?v.cloneElement(s,{ref:o}):null},"Presence");function sg(e){const[t,n]=v.useState(),r=v.useRef(null),s=v.useRef(e),o=v.useRef("none"),i=v.useRef(void 0),l=e?"mounted":"unmounted",[a,u]=rg(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{a==="mounted"?(o.current=i.current??dr(r.current),i.current=void 0):o.current="none"},[a]),Xr(()=>{const f=r.current,c=s.current;if(c!==e){const x=o.current,S=dr(f);e?(i.current=S,u("MOUNT")):S==="none"||(f==null?void 0:f.display)==="none"?u("UNMOUNT"):u(c&&x!==S?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,u]),Xr(()=>{if(t){let f;const c=t.ownerDocument.defaultView??window,g=Ht(S=>{const C=dr(r.current).includes(CSS.escape(S.animationName));if(S.target===t&&C&&(u("ANIMATION_END"),!s.current)){const p=t.style.animationFillMode;t.style.animationFillMode="forwards",f=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},"handleAnimationEnd"),x=Ht(S=>{S.target===t&&(o.current=dr(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{c.clearTimeout(f),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(f=>{if(f){const c=getComputedStyle(f);r.current=c,i.current=dr(c)}else r.current=null;n(f)},[])}}Ht(sg,"usePresence");function Ha(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Ht(Ha,"setRef");function og(...e){const t=v.useRef(e);return t.current=e,v.useCallback(n=>{const r=t.current;let s=!1;const o=r.map(i=>{const l=Ha(i,n);return!s&&typeof l=="function"&&(s=!0),l});if(s)return()=>{for(let i=0;i<o.length;i++){const l=o[i];typeof l=="function"?l():Ha(r[i],null)}}},[])}Ht(og,"useStableComposedRefs");function dr(e){return(e==null?void 0:e.animationName)||"none"}Ht(dr,"getAnimationName");function ig(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Ht(ig,"getElementRef");var JS=Object.defineProperty,ZS=(e,t)=>JS(e,"name",{value:t,configurable:!0}),nf=io[" useEffectEvent ".trim().toString()],rf=io[" useInsertionEffect ".trim().toString()];function lg(e){if(typeof nf=="function")return nf(e);const t=v.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof rf=="function"?rf(()=>{t.current=e}):Xr(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}ZS(lg,"useEffectEvent");var eE=Object.defineProperty,po=(e,t)=>eE(e,"name",{value:t,configurable:!0}),tE=io[" useInsertionEffect ".trim().toString()]||Xr;function ag({prop:e,defaultProp:t,onChange:n=po(()=>{},"onChange"),caller:r}){const[s,o,i]=ug({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:s,u=v.useCallback(f=>{var c;if(l){const g=cg(f)?f(e):f;g!==e&&((c=i.current)==null||c.call(i,g))}else o(f)},[l,e,o,i]);return[a,u]}po(ag,"useControllableState");function ug({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),s=v.useRef(n),o=v.useRef(t);return tE(()=>{o.current=t},[t]),v.useEffect(()=>{var i;s.current!==n&&((i=o.current)==null||i.call(o,n),s.current=n)},[n,s]),[n,r,o]}po(ug,"useUncontrolledState");function cg(e){return typeof e=="function"}po(cg,"isFunction");var sf=Symbol("RADIX:SYNC_STATE");function nE(e,t,n,r){const{prop:s,defaultProp:o,onChange:i,caller:l}=t,a=s!==void 0,u=lg(i),f=[{...n,state:o}];r&&f.push(r);const[c,g]=v.useReducer((C,p)=>{if(p.type===sf)return{...C,state:p.state};const h=e(C,p);return a&&!Object.is(h.state,C.state)&&u(h.state),h},...f),x=c.state,S=v.useRef(x);v.useEffect(()=>{S.current!==x&&(S.current=x,a||u(x))},[x,S,a]);const E=v.useMemo(()=>s!==void 0?{...c,state:s}:c,[c,s]);return v.useEffect(()=>{a&&!Object.is(s,c.state)&&g({type:sf,state:s})},[s,c.state,a]),[E,g]}po(nE,"useControllableStateReducer");var rE=Object.defineProperty,sE=(e,t)=>rE(e,"name",{value:t,configurable:!0}),oE=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),dc=v.forwardRef(sE(function(t,n){return d.jsx(jt.span,{...t,ref:n,style:{...oE,...t.style}})},"VisuallyHidden")),zE=dc,iE=Object.defineProperty,J=(e,t)=>iE(e,"name",{value:t,configurable:!0}),dg="ToastProvider",[fc,fg,lE]=Ym("Toast"),[pg,UE]=Qi("Toast",[lE]),[aE,Hi]=pg(dg),uE=J(e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:o=50,announcerContainer:i,children:l}=e,[a,u]=v.useState(null),[f,c]=v.useState(0),g=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${dg}\`. Expected non-empty \`string\`.`),d.jsx(fc.Provider,{scope:t,children:d.jsx(aE,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:o,toastCount:f,viewport:a,onViewportChange:u,onToastAdd:v.useCallback(()=>c(x=>x+1),[]),onToastRemove:v.useCallback(()=>c(x=>x-1),[]),isClosePausedRef:g,announcerContainer:i,children:l})})},"ToastProvider"),cE="ToastViewport",dE=["F8"],Ka="toast.viewportPause",Ga="toast.viewportResume",fE=v.forwardRef(J(function(t,n){const{__scopeToast:r,hotkey:s=dE,label:o="Notifications ({hotkey})",...i}=t,l=Hi(cE,r),a=fg(r),u=v.useRef(null),f=v.useRef(null),c=v.useRef(null),g=v.useRef(null),x=yt(n,g,l.onViewportChange),S=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=l.toastCount>0;v.useEffect(()=>{const p=J(h=>{var y;s.length!==0&&s.every(b=>h[b]||h.code===b)&&((y=g.current)==null||y.focus())},"handleKeyDown");return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[s]),v.useEffect(()=>{const p=u.current,h=g.current;if(E&&p&&h){const m=J(()=>{if(!l.isClosePausedRef.current){const _=new CustomEvent(Ka);h.dispatchEvent(_),l.isClosePausedRef.current=!0}},"handlePause"),y=J(()=>{if(l.isClosePausedRef.current){const _=new CustomEvent(Ga);h.dispatchEvent(_),l.isClosePausedRef.current=!1}},"handleResume"),b=J(_=>{!p.contains(_.relatedTarget)&&y()},"handleFocusOutResume"),k=J(()=>{p.contains(document.activeElement)||y()},"handlePointerLeaveResume");return p.addEventListener("focusin",m),p.addEventListener("focusout",b),p.addEventListener("pointermove",m),p.addEventListener("pointerleave",k),window.addEventListener("blur",m),window.addEventListener("focus",y),()=>{p.removeEventListener("focusin",m),p.removeEventListener("focusout",b),p.removeEventListener("pointermove",m),p.removeEventListener("pointerleave",k),window.removeEventListener("blur",m),window.removeEventListener("focus",y)}}},[E,l.isClosePausedRef]);const C=v.useCallback(({tabbingDirection:p})=>{const m=a().map(y=>{const b=y.ref.current,k=[b,...yg(b)];return p==="forwards"?k:k.reverse()});return(p==="forwards"?m.reverse():m).flat()},[a]);return v.useEffect(()=>{const p=g.current;if(p){const h=J(m=>{var k,_,P;const y=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!y){const O=document.activeElement,j=m.shiftKey;if(m.target===p&&j){(k=f.current)==null||k.focus();return}const D=C({tabbingDirection:j?"backwards":"forwards"}),B=D.findIndex(ce=>ce===O);Jo(D.slice(B+1))?m.preventDefault():j?(_=f.current)==null||_.focus():(P=c.current)==null||P.focus()}},"handleKeyDown");return p.addEventListener("keydown",h),()=>p.removeEventListener("keydown",h)}},[a,C]),d.jsxs(HS,{ref:u,role:"region","aria-label":o.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&d.jsx(of,{ref:f,onFocusFromOutsideViewport:()=>{const p=C({tabbingDirection:"forwards"});Jo(p)}}),d.jsx(fc.Slot,{scope:r,children:d.jsx(jt.ol,{tabIndex:-1,...i,ref:x})}),E&&d.jsx(of,{ref:c,onFocusFromOutsideViewport:()=>{const p=C({tabbingDirection:"backwards"});Jo(p)}})]})},"ToastViewport")),pE="ToastFocusProxy",of=v.forwardRef(J(function(t,n){const{__scopeToast:r,onFocusFromOutsideViewport:s,...o}=t,i=Hi(pE,r);return d.jsx(dc,{tabIndex:0,...o,ref:n,style:{position:"fixed"},onFocus:l=>{var f;const a=l.relatedTarget;!((f=i.viewport)!=null&&f.contains(a))&&s()}})},"ToastFocusProxy")),Ki="Toast",hE="toast.swipeStart",mE="toast.swipeMove",gE="toast.swipeCancel",vE="toast.swipeEnd",yE=v.forwardRef(J(function(t,n){const{forceMount:r,open:s,defaultOpen:o,onOpenChange:i,...l}=t,[a,u]=ag({prop:s,defaultProp:o??!0,onChange:i,caller:Ki});return d.jsx(XS,{present:r||a,children:d.jsx(SE,{open:a,...l,ref:n,onClose:()=>u(!1),onPause:Rn(t.onPause),onResume:Rn(t.onResume),onSwipeStart:Be(t.onSwipeStart,f=>{f.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Be(t.onSwipeMove,f=>{const{x:c,y:g}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","move"),f.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:Be(t.onSwipeCancel,f=>{f.currentTarget.setAttribute("data-swipe","cancel"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Be(t.onSwipeEnd,f=>{const{x:c,y:g}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","end"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),u(!1)})})})},"Toast")),[xE,wE]=pg(Ki,{onClose(){}}),SE=v.forwardRef(J(function(t,n){const{__scopeToast:r,type:s="foreground",duration:o,open:i,onClose:l,onEscapeKeyDown:a,onPause:u,onResume:f,onSwipeStart:c,onSwipeMove:g,onSwipeCancel:x,onSwipeEnd:S,...E}=t,C=Hi(Ki,r),p=fg(r),[h,m]=v.useState(null),y=yt(n,m),b=v.useRef(null),k=v.useRef(null),_=o||C.duration,P=v.useRef(0),O=v.useRef(_),j=v.useRef(0),{onToastAdd:I,onToastRemove:T}=C,D=Rn(()=>{var q;(h==null?void 0:h.contains(document.activeElement))&&((q=C.viewport)==null||q.focus()),l()}),B=v.useCallback($=>{!$||$===1/0||(window.clearTimeout(j.current),P.current=new Date().getTime(),j.current=window.setTimeout(D,$))},[D]);v.useEffect(()=>{const $=C.viewport;if($){const q=J(()=>{B(O.current),f==null||f()},"handleResume"),R=J(()=>{const A=new Date().getTime()-P.current;O.current=O.current-A,window.clearTimeout(j.current),u==null||u()},"handlePause");return $.addEventListener(Ka,R),$.addEventListener(Ga,q),()=>{$.removeEventListener(Ka,R),$.removeEventListener(Ga,q)}}},[C.viewport,_,u,f,B]),v.useEffect(()=>{i&&!C.isClosePausedRef.current&&B(_)},[i,_,C.isClosePausedRef,B]),v.useEffect(()=>()=>{window.clearTimeout(j.current)},[]),v.useEffect(()=>(I(),()=>T()),[I,T]);const ce=v.useMemo(()=>h?pc(h):null,[h]);return C.viewport?d.jsxs(d.Fragment,{children:[ce&&d.jsx(EE,{__scopeToast:r,role:"status","aria-live":s==="foreground"?"assertive":"polite",children:ce}),d.jsx(xE,{scope:r,onClose:D,children:$i.createPortal(d.jsx(fc.ItemSlot,{scope:r,children:d.jsx(QS,{asChild:!0,onEscapeKeyDown:Be(a,$=>{p().some(R=>{var A;return(A=R.ref.current)==null?void 0:A.contains($.target)})||D()}),children:d.jsx(jt.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":C.swipeDirection,...E,ref:y,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Be(t.onKeyDown,$=>{$.key==="Escape"&&(a==null||a($.nativeEvent),$.nativeEvent.defaultPrevented||D())}),onPointerDown:Be(t.onPointerDown,$=>{$.button===0&&(b.current={x:$.clientX,y:$.clientY})}),onPointerMove:Be(t.onPointerMove,$=>{if(!b.current)return;const q=$.clientX-b.current.x,R=$.clientY-b.current.y,A=!!k.current,U=["left","right"].includes(C.swipeDirection),Q=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,fe=U?Q(0,q):0,ur=U?0:Q(0,R),ct=$.pointerType==="touch"?10:2,Gt={x:fe,y:ur},St={originalEvent:$,delta:Gt};A?(k.current=Gt,ws(mE,g,St,{discrete:!1})):lf(Gt,C.swipeDirection,ct)?(k.current=Gt,ws(hE,c,St,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(q)>ct||Math.abs(R)>ct)&&(b.current=null)}),onPointerUp:Be(t.onPointerUp,$=>{const q=k.current,R=$.target;if(R.hasPointerCapture($.pointerId)&&R.releasePointerCapture($.pointerId),k.current=null,b.current=null,q){const A=$.currentTarget,U={originalEvent:$,delta:q};lf(q,C.swipeDirection,C.swipeThreshold)?ws(vE,S,U,{discrete:!0}):ws(gE,x,U,{discrete:!0}),A.addEventListener("click",Q=>Q.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null},"ToastImpl")),EE=J(e=>{const{__scopeToast:t,children:n,...r}=e,s=Hi(Ki,t),[o,i]=v.useState(!1),[l,a]=v.useState(!1);return gg(()=>i(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:d.jsx(qS,{asChild:!0,container:s.announcerContainer||void 0,children:d.jsx(dc,{...r,children:o&&d.jsxs(d.Fragment,{children:[s.label," ",n]})})})},"ToastAnnounce"),CE=v.forwardRef(J(function(t,n){const{__scopeToast:r,...s}=t;return d.jsx(jt.div,{...s,ref:n})},"ToastTitle")),kE=v.forwardRef(J(function(t,n){const{__scopeToast:r,...s}=t;return d.jsx(jt.div,{...s,ref:n})},"ToastDescription")),bE="ToastAction",PE=v.forwardRef(J(function(t,n){const{altText:r,...s}=t;return r.trim()?d.jsx(mg,{altText:r,asChild:!0,children:d.jsx(hg,{...s,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${bE}\`. Expected non-empty \`string\`.`),null)},"ToastAction")),_E="ToastClose",hg=v.forwardRef(J(function(t,n){const{__scopeToast:r,...s}=t,o=wE(_E,r);return d.jsx(mg,{asChild:!0,children:d.jsx(jt.button,{type:"button",...s,ref:n,onClick:Be(t.onClick,o.onClose)})})},"ToastClose")),mg=v.forwardRef(J(function(t,n){const{__scopeToast:r,altText:s,...o}=t;return d.jsx(jt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":s||void 0,...o,ref:n})},"ToastAnnounceExclude"));function pc(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),vg(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...pc(r))}}),t}J(pc,"getAnnounceTextContent");function ws(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?ac(s,o):s.dispatchEvent(o)}J(ws,"handleAndDispatchCustomEvent");var lf=J((e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),o=r>s;return t==="left"||t==="right"?o&&r>n:!o&&s>n},"isDeltaInDirection");function gg(e=()=>{}){const t=Rn(e);Xr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}J(gg,"useNextFrame");function vg(e){return e.nodeType===e.ELEMENT_NODE}J(vg,"isHTMLElement");function yg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:J(r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}J(yg,"getTabbableCandidates");function Jo(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}J(Jo,"focusFirst");var NE=uE,xg=fE,wg=yE,Sg=CE,Eg=kE,Cg=PE,kg=hg;const TE=NE,bg=v.forwardRef(({className:e,...t},n)=>d.jsx(xg,{ref:n,className:F("fixed bottom-0 right-0 z-[100] flex max-h-screen w-full flex-col-reverse gap-2 p-4 sm:bottom-4 sm:right-4 sm:top-auto sm:max-w-[380px]",e),...t}));bg.displayName=xg.displayName;const RE=km("group pointer-events-auto relative flex w-full items-start justify-between gap-3 overflow-hidden rounded-md border p-4 shadow-elevation transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border-line-strong bg-popover text-popover-foreground",success:"border-pass bg-pass-wash text-pass",warning:"border-attn bg-attn-wash text-attn",destructive:"border-fail bg-fail-wash text-fail"}},defaultVariants:{variant:"default"}}),Pg=v.forwardRef(({className:e,variant:t,...n},r)=>d.jsx(wg,{ref:r,className:F(RE({variant:t}),e),...n}));Pg.displayName=wg.displayName;const jE=v.forwardRef(({className:e,...t},n)=>d.jsx(Cg,{ref:n,className:F("inline-flex h-8 shrink-0 items-center justify-center rounded-sm border border-line-strong bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",e),...t}));jE.displayName=Cg.displayName;const _g=v.forwardRef(({className:e,...t},n)=>d.jsx(kg,{ref:n,className:F("absolute right-2 top-2 rounded-sm p-1 text-current opacity-0 transition-opacity hover:opacity-100 focus:opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring group-hover:opacity-70",e),"toast-close":"",...t,children:d.jsx(d1,{className:"h-4 w-4"})}));_g.displayName=kg.displayName;const Ng=v.forwardRef(({className:e,...t},n)=>d.jsx(Sg,{ref:n,className:F("text-sm font-semibold",e),...t}));Ng.displayName=Sg.displayName;const Tg=v.forwardRef(({className:e,...t},n)=>d.jsx(Eg,{ref:n,className:F("text-sm opacity-90",e),...t}));Tg.displayName=Eg.displayName;function IE(){const{toasts:e}=PS();return d.jsxs(TE,{children:[e.map(({id:t,title:n,description:r,action:s,...o})=>d.jsxs(Pg,{...o,children:[d.jsxs("div",{className:"grid gap-1",children:[n&&d.jsx(Ng,{children:n}),r&&d.jsx(Tg,{children:r})]}),s,d.jsx(_g,{})]},t)),d.jsx(bg,{})]})}const OE=v.lazy(()=>qu(()=>import("./Terminal-skVFCxPU.js"),__vite__mapDeps([0,1])));v.lazy(()=>qu(()=>import("./Gallery-da3qNiIw.js"),[]));function LE(){return d.jsxs(k1,{children:[d.jsx(W0,{children:d.jsxs(D0,{children:[d.jsx(Ce,{path:"/",element:d.jsx(O0,{to:be.pipeline(),replace:!0})}),d.jsxs(Ce,{element:d.jsx(wS,{}),children:[d.jsx(Ce,{path:"/pipeline",element:d.jsx(Jd,{})}),d.jsx(Ce,{path:"/pipeline/:repo/:issue",element:d.jsx(Kd,{})}),d.jsx(Ce,{path:"/pipeline/:repo/:issue/:tab",element:d.jsx(Kd,{})}),d.jsx(Ce,{path:"/sessions",element:d.jsx(Jd,{})}),d.jsx(Ce,{path:"/sessions/:id",element:d.jsx(Fw,{})}),d.jsx(Ce,{path:"/board",element:null}),d.jsx(Ce,{path:"/machines",element:null}),d.jsx(Ce,{path:"/merge-queue",element:null}),d.jsx(Ce,{path:"/milestones",element:null}),d.jsx(Ce,{path:"/audit",element:null}),d.jsx(Ce,{path:"/spend",element:null}),d.jsx(Ce,{path:"/settings",element:null}),d.jsx(Ce,{path:"*",element:null})]}),d.jsx(Ce,{path:"/terminal/:sessionId",element:d.jsx("div",{className:"min-h-screen bg-background text-foreground",children:d.jsx(v.Suspense,{fallback:null,children:d.jsx(OE,{})})})}),!1]})}),d.jsx(IE,{})]})}function ME(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:s,onRegisteredSW:o,onRegisterError:i}=e;let l,a;const u=async(c=!0)=>{await a};async function f(){if("serviceWorker"in navigator){if(l=await qu(async()=>{const{Workbox:c}=await import("./workbox-window.prod.es5-BqEJf4Xk.js");return{Workbox:c}},[]).then(({Workbox:c})=>new c("/sw.js",{scope:"/",type:"classic"})).catch(c=>{i==null||i(c)}),!l)return;l.addEventListener("activated",c=>{(c.isUpdate||c.isExternal)&&window.location.reload()}),l.addEventListener("installed",c=>{c.isUpdate||r==null||r()}),l.register({immediate:t}).then(c=>{o?o("/sw.js",c):s==null||s(c)}).catch(c=>{i==null||i(c)})}}return a=f(),u}const DE=new Nx({defaultOptions:{queries:{staleTime:1/0,retry:1}}});ME({immediate:!0});_l.createRoot(document.getElementById("root")).render(d.jsx(Nf.StrictMode,{children:d.jsx(Tx,{client:DE,children:d.jsx(dS,{children:d.jsx(LE,{})})})}));export{bS as A,bm as B,Xw as C,$S as D,IE as E,jt as P,io as R,k1 as T,d1 as X,F as a,ar as b,ye as c,km as d,Xr as e,Qi as f,yt as g,ag as h,Rn as i,d as j,Be as k,Ym as l,XS as m,qS as n,WS as o,rr as p,$i as q,v as r,ac as s,FE as t,Xh as u,zE as v,m1 as w,Nm as x,b1 as y,u1 as z};