@lovelybunch/api 1.0.72 → 1.0.73

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 (82) hide show
  1. package/package.json +4 -4
  2. package/static/assets/{ActivityPage-qJKqmwv7.js → ActivityPage-C_HqpJt2.js} +1 -1
  3. package/static/assets/{AgentDetailPage-Dww8h17d.js → AgentDetailPage-WLAnnZep.js} +1 -1
  4. package/static/assets/{AgentEditPage-K6I9kvCf.js → AgentEditPage-DOemUkvg.js} +1 -1
  5. package/static/assets/{AgentsPage-nnMzCmw9.js → AgentsPage-Bage8eYW.js} +1 -1
  6. package/static/assets/{AgentsSettingsPage-Dnkw87_8.js → AgentsSettingsPage-Cw2MTnHU.js} +1 -1
  7. package/static/assets/{ApiKeysSettingsPage-DY0vNNSR.js → ApiKeysSettingsPage-DCKd4LXE.js} +1 -1
  8. package/static/assets/{ArchitectureEditPage-wx1LBCGC.js → ArchitectureEditPage-WY9k_1tR.js} +1 -1
  9. package/static/assets/{ArchitecturePage-C4bkskmN.js → ArchitecturePage-Cj4dVDWO.js} +1 -1
  10. package/static/assets/{AuthSettingsPage-AXU_vx8p.js → AuthSettingsPage-Bs5wL5Yj.js} +1 -1
  11. package/static/assets/{CallbackPage-B6CJkdJu.js → CallbackPage-CtydJ4j3.js} +1 -1
  12. package/static/assets/{CodePage-DGxzOKzh.js → CodePage-BiRf5q_q.js} +1 -1
  13. package/static/assets/{CollapsibleSection-DgGytfeZ.js → CollapsibleSection-5qSoX47l.js} +1 -1
  14. package/static/assets/{DashboardPage-3PlgC6UV.js → DashboardPage-e9hNRsi2.js} +1 -1
  15. package/static/assets/{GitPage-vBLrGiwG.js → GitPage-BG-ZSGfu.js} +1 -1
  16. package/static/assets/{GitSettingsPage-D22W0fXd.js → GitSettingsPage-Cn-MciXq.js} +1 -1
  17. package/static/assets/{IdentityPage-B8xDJx3W.js → IdentityPage-DCpoDF2j.js} +1 -1
  18. package/static/assets/{ImplementationStepsEditor-BY7wwwdO.js → ImplementationStepsEditor-PM47REBn.js} +1 -1
  19. package/static/assets/{IntegrationsSettingsPage-CSr-dlmL.js → IntegrationsSettingsPage-DJpf2gZn.js} +1 -1
  20. package/static/assets/{JobDetailPage-BUHRLYvQ.js → JobDetailPage-9shaUPlO.js} +1 -1
  21. package/static/assets/{KnowledgeDetailPage-8q-MYEOA.js → KnowledgeDetailPage-CLizVIxC.js} +1 -1
  22. package/static/assets/{KnowledgeEditPage-Di63BhFz.js → KnowledgeEditPage-B-sdY_DS.js} +1 -1
  23. package/static/assets/{KnowledgePage-BuEcOdou.js → KnowledgePage-DIlUufGq.js} +1 -1
  24. package/static/assets/{LoginPage-CBRJBmlC.js → LoginPage-DcTU__Dc.js} +1 -1
  25. package/static/assets/{McpSettingsPage-gariusH3.js → McpSettingsPage-BPDLne4q.js} +1 -1
  26. package/static/assets/{NewAgentPage-DDkFaqIq.js → NewAgentPage-8-abvhkI.js} +1 -1
  27. package/static/assets/{NewKnowledgePage-BqMSsS53.js → NewKnowledgePage-Rvj741x1.js} +1 -1
  28. package/static/assets/{NewProposalPage-C77pO28o.js → NewProposalPage-BLIqmuks.js} +1 -1
  29. package/static/assets/{ProjectEditPage-Dp5M7aXW.js → ProjectEditPage-DC5-v_2a.js} +1 -1
  30. package/static/assets/{ProjectPage-BBL0XITa.js → ProjectPage-_L4wqwrB.js} +1 -1
  31. package/static/assets/{PromptsSettingsPage-DOcni_gq.js → PromptsSettingsPage-K-qqpF2S.js} +1 -1
  32. package/static/assets/{ProposalDetailPage-5b6lLZRq.js → ProposalDetailPage-BVXTjXw2.js} +1 -1
  33. package/static/assets/{ProposalEditPage-lm9wiiHa.js → ProposalEditPage-Bs3ak0PG.js} +1 -1
  34. package/static/assets/{ProposalsPage-Dcms-16A.js → ProposalsPage-BvKlKvuo.js} +1 -1
  35. package/static/assets/{ResourcesPage-BGugJIYF.js → ResourcesPage-BSyX_kHV.js} +1 -1
  36. package/static/assets/{RoleEditPage-DI1lGRK2.js → RoleEditPage-CnWierul.js} +1 -1
  37. package/static/assets/{RolePage-B1kmmDDF.js → RolePage-D8xB0I-F.js} +1 -1
  38. package/static/assets/{RulesSettingsPage-Br_c4fhl.js → RulesSettingsPage-CZBQ0u-x.js} +1 -1
  39. package/static/assets/{SchedulePage-DMBddFXL.js → SchedulePage-HBFJT_19.js} +1 -1
  40. package/static/assets/{SourceInput-BuPLoJuZ.js → SourceInput-BoRGYtye.js} +1 -1
  41. package/static/assets/{TagInput-CkZQYmnO.js → TagInput-CdXzv6hj.js} +1 -1
  42. package/static/assets/{TerminalPage-CYqTT1pK.js → TerminalPage-CqPXFOIN.js} +1 -1
  43. package/static/assets/{TerminalSessionPage-a9QWo08R.js → TerminalSessionPage-DR2cApWv.js} +1 -1
  44. package/static/assets/{UserPreferencesPage-IVxOVtNk.js → UserPreferencesPage-CPkulDiM.js} +1 -1
  45. package/static/assets/{UserSettingsPage-Dsop4_yN.js → UserSettingsPage-BuMnU394.js} +1 -1
  46. package/static/assets/{UtilitiesPage-CZCmnyTp.js → UtilitiesPage-BGiBB5PT.js} +1 -1
  47. package/static/assets/{alert-nipAjehb.js → alert-CHpdnk6F.js} +1 -1
  48. package/static/assets/{arrow-down-DQTEjf4E.js → arrow-down-BjGtxyJ7.js} +1 -1
  49. package/static/assets/{arrow-left-BgRi6mQL.js → arrow-left-DR0foZvi.js} +1 -1
  50. package/static/assets/{arrow-up-jLj_KhSo.js → arrow-up-DCGMV1HG.js} +1 -1
  51. package/static/assets/{badge-CqnJU-OF.js → badge-Cds9UgAB.js} +1 -1
  52. package/static/assets/{browser-modal-DBBFKngy.js → browser-modal-Ck4-s_jh.js} +1 -1
  53. package/static/assets/{calendar-CA_W4UKa.js → calendar-CWhxfYG2.js} +1 -1
  54. package/static/assets/{card-DdTVdbjN.js → card-BdOrf6VU.js} +1 -1
  55. package/static/assets/{chevron-left-CM04t09S.js → chevron-left-Wnwkk8g7.js} +1 -1
  56. package/static/assets/{chevrons-up-DgSgy4LT.js → chevrons-up-DbnuGl5g.js} +1 -1
  57. package/static/assets/{circle-alert-UErAnUQ-.js → circle-alert-BPvQggmh.js} +1 -1
  58. package/static/assets/{circle-check-2oo3aeGx.js → circle-check-CTlDV9K4.js} +1 -1
  59. package/static/assets/{circle-check-big-CQsXU9Fx.js → circle-check-big-KMhw8TDM.js} +1 -1
  60. package/static/assets/{circle-play-BHGmBl9H.js → circle-play-tZLgOcAc.js} +1 -1
  61. package/static/assets/{circle-x-DoAXluPx.js → circle-x-D3tazxxl.js} +1 -1
  62. package/static/assets/{clipboard-NaRSfq4S.js → clipboard-C86rsVqL.js} +1 -1
  63. package/static/assets/{clock-C1lOY_Qr.js → clock-Qm5u6CAm.js} +1 -1
  64. package/static/assets/{download-Co1Xt7Td.js → download-Bo3vdlNo.js} +1 -1
  65. package/static/assets/{eye-54QpT_B-.js → eye-Cr9Hfzxo.js} +1 -1
  66. package/static/assets/{folder-git-2-x65JY04J.js → folder-git-2-Em4ZglGs.js} +1 -1
  67. package/static/assets/{index-VBSAUXJg.js → index-CQpPrvm_.js} +3 -3
  68. package/static/assets/{label-C6P6J-NS.js → label-nG86oxuW.js} +1 -1
  69. package/static/assets/{markdown-editor-CgzPMMiE.js → markdown-editor-CEQMlLWe.js} +1 -1
  70. package/static/assets/{pause-CU8WFOyJ.js → pause-DuR7ql7H.js} +1 -1
  71. package/static/assets/{play-nlXIUG-M.js → play-p4m8WHP3.js} +1 -1
  72. package/static/assets/{plus-nBUooJPr.js → plus-CD075YlZ.js} +1 -1
  73. package/static/assets/{radio-group-CQVEYWSk.js → radio-group-DCKkxIgI.js} +1 -1
  74. package/static/assets/{refresh-cw-ChsHXM-C.js → refresh-cw-D-IgYQ7y.js} +1 -1
  75. package/static/assets/{search-ygMlQfjH.js → search-W3H-E0eW.js} +1 -1
  76. package/static/assets/{switch-BcjQDy93.js → switch-E0GrYmgh.js} +1 -1
  77. package/static/assets/{tabs-B2pmN66L.js → tabs-DjZiD9WD.js} +1 -1
  78. package/static/assets/{tag-BEI3zSmE.js → tag-D0iVh1-U.js} +1 -1
  79. package/static/assets/{terminal-preview-_bKoIC7R.js → terminal-preview-BQBOEop2.js} +1 -1
  80. package/static/assets/{use-terminal-DKszJuOd.js → use-terminal-0TezQnxO.js} +1 -1
  81. package/static/assets/{zap-w4hozPoR.js → zap-C_5I7lLi.js} +1 -1
  82. package/static/index.html +1 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-3PlgC6UV.js","assets/card-DdTVdbjN.js","assets/badge-CqnJU-OF.js","assets/label-C6P6J-NS.js","assets/use-terminal-DKszJuOd.js","assets/terminal-preview-_bKoIC7R.js","assets/xterm-DTxiCjtJ.js","assets/xterm-qxJ8_QYu.css","assets/circle-check-2oo3aeGx.js","assets/chevron-left-CM04t09S.js","assets/search-ygMlQfjH.js","assets/zap-w4hozPoR.js","assets/calendar-CA_W4UKa.js","assets/folder-git-2-x65JY04J.js","assets/play-nlXIUG-M.js","assets/clock-C1lOY_Qr.js","assets/circle-check-big-CQsXU9Fx.js","assets/plus-nBUooJPr.js","assets/LoginPage-CBRJBmlC.js","assets/tabs-B2pmN66L.js","assets/CallbackPage-B6CJkdJu.js","assets/circle-x-DoAXluPx.js","assets/ProposalsPage-Dcms-16A.js","assets/ProposalDetailPage-5b6lLZRq.js","assets/clipboard-B9ndUJKl.js","assets/arrow-left-BgRi6mQL.js","assets/clipboard-NaRSfq4S.js","assets/download-Co1Xt7Td.js","assets/ProposalEditPage-lm9wiiHa.js","assets/markdown-editor-CgzPMMiE.js","assets/markdown-editor-DUEthZ0y.css","assets/CollapsibleSection-DgGytfeZ.js","assets/ImplementationStepsEditor-BY7wwwdO.js","assets/TagInput-CkZQYmnO.js","assets/NewProposalPage-C77pO28o.js","assets/TerminalPage-CYqTT1pK.js","assets/refresh-cw-ChsHXM-C.js","assets/chevrons-up-DgSgy4LT.js","assets/circle-play-BHGmBl9H.js","assets/terminal-xj47PT8r.css","assets/TerminalSessionPage-a9QWo08R.js","assets/radio-group-CQVEYWSk.js","assets/arrow-down-DQTEjf4E.js","assets/droid-Caom7ttu.js","assets/UtilitiesPage-CZCmnyTp.js","assets/CodePage-DGxzOKzh.js","assets/AgentsPage-nnMzCmw9.js","assets/browser-modal-DBBFKngy.js","assets/registry-ANRa5WBi.js","assets/tag-BEI3zSmE.js","assets/AgentDetailPage-Dww8h17d.js","assets/NewAgentPage-DDkFaqIq.js","assets/AgentEditPage-K6I9kvCf.js","assets/ResourcesPage-BGugJIYF.js","assets/KnowledgePage-BuEcOdou.js","assets/arrow-up-jLj_KhSo.js","assets/KnowledgeDetailPage-8q-MYEOA.js","assets/KnowledgeEditPage-Di63BhFz.js","assets/SourceInput-BuPLoJuZ.js","assets/NewKnowledgePage-BqMSsS53.js","assets/ProjectPage-BBL0XITa.js","assets/ProjectEditPage-Dp5M7aXW.js","assets/ArchitecturePage-C4bkskmN.js","assets/ArchitectureEditPage-wx1LBCGC.js","assets/RolePage-B1kmmDDF.js","assets/RoleEditPage-DI1lGRK2.js","assets/IdentityPage-B8xDJx3W.js","assets/alert-nipAjehb.js","assets/eye-54QpT_B-.js","assets/UserSettingsPage-Dsop4_yN.js","assets/AuthSettingsPage-AXU_vx8p.js","assets/switch-BcjQDy93.js","assets/circle-alert-UErAnUQ-.js","assets/ApiKeysSettingsPage-DY0vNNSR.js","assets/AgentsSettingsPage-Dnkw87_8.js","assets/pause-CU8WFOyJ.js","assets/IntegrationsSettingsPage-CSr-dlmL.js","assets/GitSettingsPage-D22W0fXd.js","assets/McpSettingsPage-gariusH3.js","assets/PromptsSettingsPage-DOcni_gq.js","assets/RulesSettingsPage-Br_c4fhl.js","assets/GitPage-vBLrGiwG.js","assets/SchedulePage-DMBddFXL.js","assets/JobDetailPage-BUHRLYvQ.js","assets/UserPreferencesPage-IVxOVtNk.js","assets/ActivityPage-qJKqmwv7.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-e9hNRsi2.js","assets/card-BdOrf6VU.js","assets/badge-Cds9UgAB.js","assets/label-nG86oxuW.js","assets/use-terminal-0TezQnxO.js","assets/terminal-preview-BQBOEop2.js","assets/xterm-DTxiCjtJ.js","assets/xterm-qxJ8_QYu.css","assets/circle-check-CTlDV9K4.js","assets/chevron-left-Wnwkk8g7.js","assets/search-W3H-E0eW.js","assets/zap-C_5I7lLi.js","assets/calendar-CWhxfYG2.js","assets/folder-git-2-Em4ZglGs.js","assets/play-p4m8WHP3.js","assets/clock-Qm5u6CAm.js","assets/circle-check-big-KMhw8TDM.js","assets/plus-CD075YlZ.js","assets/LoginPage-DcTU__Dc.js","assets/tabs-DjZiD9WD.js","assets/CallbackPage-CtydJ4j3.js","assets/circle-x-D3tazxxl.js","assets/ProposalsPage-BvKlKvuo.js","assets/ProposalDetailPage-BVXTjXw2.js","assets/clipboard-B9ndUJKl.js","assets/arrow-left-DR0foZvi.js","assets/clipboard-C86rsVqL.js","assets/download-Bo3vdlNo.js","assets/ProposalEditPage-Bs3ak0PG.js","assets/markdown-editor-CEQMlLWe.js","assets/markdown-editor-DUEthZ0y.css","assets/CollapsibleSection-5qSoX47l.js","assets/ImplementationStepsEditor-PM47REBn.js","assets/TagInput-CdXzv6hj.js","assets/NewProposalPage-BLIqmuks.js","assets/TerminalPage-CqPXFOIN.js","assets/refresh-cw-D-IgYQ7y.js","assets/chevrons-up-DbnuGl5g.js","assets/circle-play-tZLgOcAc.js","assets/terminal-xj47PT8r.css","assets/TerminalSessionPage-DR2cApWv.js","assets/radio-group-DCKkxIgI.js","assets/arrow-down-BjGtxyJ7.js","assets/droid-Caom7ttu.js","assets/UtilitiesPage-BGiBB5PT.js","assets/CodePage-BiRf5q_q.js","assets/AgentsPage-Bage8eYW.js","assets/browser-modal-Ck4-s_jh.js","assets/registry-ANRa5WBi.js","assets/tag-D0iVh1-U.js","assets/AgentDetailPage-WLAnnZep.js","assets/NewAgentPage-8-abvhkI.js","assets/AgentEditPage-DOemUkvg.js","assets/ResourcesPage-BSyX_kHV.js","assets/KnowledgePage-DIlUufGq.js","assets/arrow-up-DCGMV1HG.js","assets/KnowledgeDetailPage-CLizVIxC.js","assets/KnowledgeEditPage-B-sdY_DS.js","assets/SourceInput-BoRGYtye.js","assets/NewKnowledgePage-Rvj741x1.js","assets/ProjectPage-_L4wqwrB.js","assets/ProjectEditPage-DC5-v_2a.js","assets/ArchitecturePage-Cj4dVDWO.js","assets/ArchitectureEditPage-WY9k_1tR.js","assets/RolePage-D8xB0I-F.js","assets/RoleEditPage-CnWierul.js","assets/IdentityPage-DCpoDF2j.js","assets/alert-CHpdnk6F.js","assets/eye-Cr9Hfzxo.js","assets/UserSettingsPage-BuMnU394.js","assets/AuthSettingsPage-Bs5wL5Yj.js","assets/switch-E0GrYmgh.js","assets/circle-alert-BPvQggmh.js","assets/ApiKeysSettingsPage-DCKd4LXE.js","assets/AgentsSettingsPage-Cw2MTnHU.js","assets/pause-DuR7ql7H.js","assets/IntegrationsSettingsPage-DJpf2gZn.js","assets/GitSettingsPage-Cn-MciXq.js","assets/McpSettingsPage-BPDLne4q.js","assets/PromptsSettingsPage-K-qqpF2S.js","assets/RulesSettingsPage-CZBQ0u-x.js","assets/GitPage-BG-ZSGfu.js","assets/SchedulePage-HBFJT_19.js","assets/JobDetailPage-9shaUPlO.js","assets/UserPreferencesPage-CPkulDiM.js","assets/ActivityPage-C_HqpJt2.js"])))=>i.map(i=>d[i]);
2
2
  function MT(e,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in e)){const s=Object.getOwnPropertyDescriptor(i,l);s&&Object.defineProperty(e,l,s.get?s:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function r(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(l){if(l.ep)return;l.ep=!0;const s=r(l);fetch(l.href,s)}})();function Cc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ph={exports:{}},Al={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -362,7 +362,7 @@ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}
362
362
 
363
363
  If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
364
364
 
365
- For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},pO="DialogDescriptionWarning",mO=({contentRef:e,descriptionId:n})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${H1(pO).contentName}}.`;return v.useEffect(()=>{const l=e.current?.getAttribute("aria-describedby");n&&l&&(document.getElementById(n)||console.warn(i))},[i,e,n]),null},pm=T1,F1=N1,mm=M1,ss=j1,us=D1,cs=P1,fs=z1,Bc=B1;const V1=pm,gO=mm,q1=v.forwardRef(({className:e,...n},r)=>g.jsx(ss,{className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n,ref:r}));q1.displayName=ss.displayName;const yO=Dc("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),gm=v.forwardRef(({side:e="right",className:n,children:r,...i},l)=>g.jsxs(gO,{children:[g.jsx(q1,{}),g.jsxs(us,{ref:l,className:ue(yO({side:e}),n),...i,children:[r,g.jsxs(Bc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[g.jsx(so,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));gm.displayName=us.displayName;const ym=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col space-y-2 text-center sm:text-left",e),...n});ym.displayName="SheetHeader";const vm=v.forwardRef(({className:e,...n},r)=>g.jsx(cs,{ref:r,className:ue("text-lg font-semibold text-foreground",e),...n}));vm.displayName=cs.displayName;const $1=v.forwardRef(({className:e,...n},r)=>g.jsx(fs,{ref:r,className:ue("text-sm text-muted-foreground",e),...n}));$1.displayName=fs.displayName;function Pb({className:e,...n}){return g.jsx("div",{className:ue("animate-pulse rounded-md bg-muted",e),...n})}const vO=["top","right","bottom","left"],Ma=Math.min,On=Math.max,dc=Math.round,Gu=Math.floor,Ar=e=>({x:e,y:e}),xO={left:"right",right:"left",bottom:"top",top:"bottom"},bO={start:"end",end:"start"};function yp(e,n,r){return On(e,Ma(n,r))}function Qr(e,n){return typeof e=="function"?e(n):e}function Zr(e){return e.split("-")[0]}function Ao(e){return e.split("-")[1]}function xm(e){return e==="x"?"y":"x"}function bm(e){return e==="y"?"height":"width"}const wO=new Set(["top","bottom"]);function Cr(e){return wO.has(Zr(e))?"y":"x"}function wm(e){return xm(Cr(e))}function SO(e,n,r){r===void 0&&(r=!1);const i=Ao(e),l=wm(e),s=bm(l);let c=l==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=hc(c)),[c,hc(c)]}function EO(e){const n=hc(e);return[vp(e),n,vp(n)]}function vp(e){return e.replace(/start|end/g,n=>bO[n])}const Lb=["left","right"],zb=["right","left"],CO=["top","bottom"],kO=["bottom","top"];function AO(e,n,r){switch(e){case"top":case"bottom":return r?n?zb:Lb:n?Lb:zb;case"left":case"right":return n?CO:kO;default:return[]}}function TO(e,n,r,i){const l=Ao(e);let s=AO(Zr(e),r==="start",i);return l&&(s=s.map(c=>c+"-"+l),n&&(s=s.concat(s.map(vp)))),s}function hc(e){return e.replace(/left|right|bottom|top/g,n=>xO[n])}function RO(e){return{top:0,right:0,bottom:0,left:0,...e}}function G1(e){return typeof e!="number"?RO(e):{top:e,right:e,bottom:e,left:e}}function pc(e){const{x:n,y:r,width:i,height:l}=e;return{width:i,height:l,top:r,left:n,right:n+i,bottom:r+l,x:n,y:r}}function Ib(e,n,r){let{reference:i,floating:l}=e;const s=Cr(n),c=wm(n),f=bm(c),d=Zr(n),h=s==="y",m=i.x+i.width/2-l.width/2,y=i.y+i.height/2-l.height/2,w=i[f]/2-l[f]/2;let b;switch(d){case"top":b={x:m,y:i.y-l.height};break;case"bottom":b={x:m,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y};break;case"left":b={x:i.x-l.width,y};break;default:b={x:i.x,y:i.y}}switch(Ao(n)){case"start":b[c]-=w*(r&&h?-1:1);break;case"end":b[c]+=w*(r&&h?-1:1);break}return b}const NO=async(e,n,r)=>{const{placement:i="bottom",strategy:l="absolute",middleware:s=[],platform:c}=r,f=s.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(n));let h=await c.getElementRects({reference:e,floating:n,strategy:l}),{x:m,y}=Ib(h,i,d),w=i,b={},S=0;for(let E=0;E<f.length;E++){const{name:T,fn:A}=f[E],{x:R,y:N,data:O,reset:L}=await A({x:m,y,initialPlacement:i,placement:w,strategy:l,middlewareData:b,rects:h,platform:c,elements:{reference:e,floating:n}});m=R??m,y=N??y,b={...b,[T]:{...b[T],...O}},L&&S<=50&&(S++,typeof L=="object"&&(L.placement&&(w=L.placement),L.rects&&(h=L.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:l}):L.rects),{x:m,y}=Ib(h,w,d)),E=-1)}return{x:m,y,placement:w,strategy:l,middlewareData:b}};async function Kl(e,n){var r;n===void 0&&(n={});const{x:i,y:l,platform:s,rects:c,elements:f,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:w=!1,padding:b=0}=Qr(n,e),S=G1(b),T=f[w?y==="floating"?"reference":"floating":y],A=pc(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(T)))==null||r?T:T.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:h,rootBoundary:m,strategy:d})),R=y==="floating"?{x:i,y:l,width:c.floating.width,height:c.floating.height}:c.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),O=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},L=pc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:R,offsetParent:N,strategy:d}):R);return{top:(A.top-L.top+S.top)/O.y,bottom:(L.bottom-A.bottom+S.bottom)/O.y,left:(A.left-L.left+S.left)/O.x,right:(L.right-A.right+S.right)/O.x}}const _O=e=>({name:"arrow",options:e,async fn(n){const{x:r,y:i,placement:l,rects:s,platform:c,elements:f,middlewareData:d}=n,{element:h,padding:m=0}=Qr(e,n)||{};if(h==null)return{};const y=G1(m),w={x:r,y:i},b=wm(l),S=bm(b),E=await c.getDimensions(h),T=b==="y",A=T?"top":"left",R=T?"bottom":"right",N=T?"clientHeight":"clientWidth",O=s.reference[S]+s.reference[b]-w[b]-s.floating[S],L=w[b]-s.reference[b],j=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let H=j?j[N]:0;(!H||!await(c.isElement==null?void 0:c.isElement(j)))&&(H=f.floating[N]||s.floating[S]);const $=O/2-L/2,Y=H/2-E[S]/2-1,D=Ma(y[A],Y),Z=Ma(y[R],Y),J=D,ne=H-E[S]-Z,G=H/2-E[S]/2+$,ae=yp(J,G,ne),z=!d.arrow&&Ao(l)!=null&&G!==ae&&s.reference[S]/2-(G<J?D:Z)-E[S]/2<0,Q=z?G<J?G-J:G-ne:0;return{[b]:w[b]+Q,data:{[b]:ae,centerOffset:G-ae-Q,...z&&{alignmentOffset:Q}},reset:z}}}),MO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,i;const{placement:l,middlewareData:s,rects:c,initialPlacement:f,platform:d,elements:h}=n,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:E=!0,...T}=Qr(e,n);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const A=Zr(l),R=Cr(f),N=Zr(f)===f,O=await(d.isRTL==null?void 0:d.isRTL(h.floating)),L=w||(N||!E?[hc(f)]:EO(f)),j=S!=="none";!w&&j&&L.push(...TO(f,E,S,O));const H=[f,...L],$=await Kl(n,T),Y=[];let D=((i=s.flip)==null?void 0:i.overflows)||[];if(m&&Y.push($[A]),y){const G=SO(l,c,O);Y.push($[G[0]],$[G[1]])}if(D=[...D,{placement:l,overflows:Y}],!Y.every(G=>G<=0)){var Z,J;const G=(((Z=s.flip)==null?void 0:Z.index)||0)+1,ae=H[G];if(ae&&(!(y==="alignment"?R!==Cr(ae):!1)||D.every(B=>Cr(B.placement)===R?B.overflows[0]>0:!0)))return{data:{index:G,overflows:D},reset:{placement:ae}};let z=(J=D.filter(Q=>Q.overflows[0]<=0).sort((Q,B)=>Q.overflows[1]-B.overflows[1])[0])==null?void 0:J.placement;if(!z)switch(b){case"bestFit":{var ne;const Q=(ne=D.filter(B=>{if(j){const ie=Cr(B.placement);return ie===R||ie==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(ie=>ie>0).reduce((ie,k)=>ie+k,0)]).sort((B,ie)=>B[1]-ie[1])[0])==null?void 0:ne[0];Q&&(z=Q);break}case"initialPlacement":z=f;break}if(l!==z)return{reset:{placement:z}}}return{}}}};function Bb(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function Ub(e){return vO.some(n=>e[n]>=0)}const jO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...l}=Qr(e,n);switch(i){case"referenceHidden":{const s=await Kl(n,{...l,elementContext:"reference"}),c=Bb(s,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Ub(c)}}}case"escaped":{const s=await Kl(n,{...l,altBoundary:!0}),c=Bb(s,r.floating);return{data:{escapedOffsets:c,escaped:Ub(c)}}}default:return{}}}}},Y1=new Set(["left","top"]);async function DO(e,n){const{placement:r,platform:i,elements:l}=e,s=await(i.isRTL==null?void 0:i.isRTL(l.floating)),c=Zr(r),f=Ao(r),d=Cr(r)==="y",h=Y1.has(c)?-1:1,m=s&&d?-1:1,y=Qr(n,e);let{mainAxis:w,crossAxis:b,alignmentAxis:S}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof S=="number"&&(b=f==="end"?S*-1:S),d?{x:b*m,y:w*h}:{x:w*h,y:b*m}}const OO=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var r,i;const{x:l,y:s,placement:c,middlewareData:f}=n,d=await DO(n,e);return c===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:l+d.x,y:s+d.y,data:{...d,placement:c}}}}},PO=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:i,placement:l}=n,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:T=>{let{x:A,y:R}=T;return{x:A,y:R}}},...d}=Qr(e,n),h={x:r,y:i},m=await Kl(n,d),y=Cr(Zr(l)),w=xm(y);let b=h[w],S=h[y];if(s){const T=w==="y"?"top":"left",A=w==="y"?"bottom":"right",R=b+m[T],N=b-m[A];b=yp(R,b,N)}if(c){const T=y==="y"?"top":"left",A=y==="y"?"bottom":"right",R=S+m[T],N=S-m[A];S=yp(R,S,N)}const E=f.fn({...n,[w]:b,[y]:S});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[w]:s,[y]:c}}}}}},LO=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:i,placement:l,rects:s,middlewareData:c}=n,{offset:f=0,mainAxis:d=!0,crossAxis:h=!0}=Qr(e,n),m={x:r,y:i},y=Cr(l),w=xm(y);let b=m[w],S=m[y];const E=Qr(f,n),T=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(d){const N=w==="y"?"height":"width",O=s.reference[w]-s.floating[N]+T.mainAxis,L=s.reference[w]+s.reference[N]-T.mainAxis;b<O?b=O:b>L&&(b=L)}if(h){var A,R;const N=w==="y"?"width":"height",O=Y1.has(Zr(l)),L=s.reference[y]-s.floating[N]+(O&&((A=c.offset)==null?void 0:A[y])||0)+(O?0:T.crossAxis),j=s.reference[y]+s.reference[N]+(O?0:((R=c.offset)==null?void 0:R[y])||0)-(O?T.crossAxis:0);S<L?S=L:S>j&&(S=j)}return{[w]:b,[y]:S}}}},zO=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var r,i;const{placement:l,rects:s,platform:c,elements:f}=n,{apply:d=()=>{},...h}=Qr(e,n),m=await Kl(n,h),y=Zr(l),w=Ao(l),b=Cr(l)==="y",{width:S,height:E}=s.floating;let T,A;y==="top"||y==="bottom"?(T=y,A=w===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(A=y,T=w==="end"?"top":"bottom");const R=E-m.top-m.bottom,N=S-m.left-m.right,O=Ma(E-m[T],R),L=Ma(S-m[A],N),j=!n.middlewareData.shift;let H=O,$=L;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&($=N),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(H=R),j&&!w){const D=On(m.left,0),Z=On(m.right,0),J=On(m.top,0),ne=On(m.bottom,0);b?$=S-2*(D!==0||Z!==0?D+Z:On(m.left,m.right)):H=E-2*(J!==0||ne!==0?J+ne:On(m.top,m.bottom))}await d({...n,availableWidth:$,availableHeight:H});const Y=await c.getDimensions(f.floating);return S!==Y.width||E!==Y.height?{reset:{rects:!0}}:{}}}};function Uc(){return typeof window<"u"}function To(e){return K1(e)?(e.nodeName||"").toLowerCase():"#document"}function Pn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Rr(e){var n;return(n=(K1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function K1(e){return Uc()?e instanceof Node||e instanceof Pn(e).Node:!1}function ur(e){return Uc()?e instanceof Element||e instanceof Pn(e).Element:!1}function Tr(e){return Uc()?e instanceof HTMLElement||e instanceof Pn(e).HTMLElement:!1}function Hb(e){return!Uc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pn(e).ShadowRoot}const IO=new Set(["inline","contents"]);function ds(e){const{overflow:n,overflowX:r,overflowY:i,display:l}=cr(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!IO.has(l)}const BO=new Set(["table","td","th"]);function UO(e){return BO.has(To(e))}const HO=[":popover-open",":modal"];function Hc(e){return HO.some(n=>{try{return e.matches(n)}catch{return!1}})}const FO=["transform","translate","scale","rotate","perspective"],VO=["transform","translate","scale","rotate","perspective","filter"],qO=["paint","layout","strict","content"];function Sm(e){const n=Em(),r=ur(e)?cr(e):e;return FO.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||VO.some(i=>(r.willChange||"").includes(i))||qO.some(i=>(r.contain||"").includes(i))}function $O(e){let n=ja(e);for(;Tr(n)&&!po(n);){if(Sm(n))return n;if(Hc(n))return null;n=ja(n)}return null}function Em(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const GO=new Set(["html","body","#document"]);function po(e){return GO.has(To(e))}function cr(e){return Pn(e).getComputedStyle(e)}function Fc(e){return ur(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ja(e){if(To(e)==="html")return e;const n=e.assignedSlot||e.parentNode||Hb(e)&&e.host||Rr(e);return Hb(n)?n.host:n}function X1(e){const n=ja(e);return po(n)?e.ownerDocument?e.ownerDocument.body:e.body:Tr(n)&&ds(n)?n:X1(n)}function Xl(e,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const l=X1(e),s=l===((i=e.ownerDocument)==null?void 0:i.body),c=Pn(l);if(s){const f=xp(c);return n.concat(c,c.visualViewport||[],ds(l)?l:[],f&&r?Xl(f):[])}return n.concat(l,Xl(l,[],r))}function xp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Q1(e){const n=cr(e);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const l=Tr(e),s=l?e.offsetWidth:r,c=l?e.offsetHeight:i,f=dc(r)!==s||dc(i)!==c;return f&&(r=s,i=c),{width:r,height:i,$:f}}function Cm(e){return ur(e)?e:e.contextElement}function co(e){const n=Cm(e);if(!Tr(n))return Ar(1);const r=n.getBoundingClientRect(),{width:i,height:l,$:s}=Q1(n);let c=(s?dc(r.width):r.width)/i,f=(s?dc(r.height):r.height)/l;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const YO=Ar(0);function Z1(e){const n=Pn(e);return!Em()||!n.visualViewport?YO:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function KO(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==Pn(e)?!1:n}function ci(e,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),s=Cm(e);let c=Ar(1);n&&(i?ur(i)&&(c=co(i)):c=co(e));const f=KO(s,r,i)?Z1(s):Ar(0);let d=(l.left+f.x)/c.x,h=(l.top+f.y)/c.y,m=l.width/c.x,y=l.height/c.y;if(s){const w=Pn(s),b=i&&ur(i)?Pn(i):i;let S=w,E=xp(S);for(;E&&i&&b!==S;){const T=co(E),A=E.getBoundingClientRect(),R=cr(E),N=A.left+(E.clientLeft+parseFloat(R.paddingLeft))*T.x,O=A.top+(E.clientTop+parseFloat(R.paddingTop))*T.y;d*=T.x,h*=T.y,m*=T.x,y*=T.y,d+=N,h+=O,S=Pn(E),E=xp(S)}}return pc({width:m,height:y,x:d,y:h})}function km(e,n){const r=Fc(e).scrollLeft;return n?n.left+r:ci(Rr(e)).left+r}function W1(e,n,r){r===void 0&&(r=!1);const i=e.getBoundingClientRect(),l=i.left+n.scrollLeft-(r?0:km(e,i)),s=i.top+n.scrollTop;return{x:l,y:s}}function XO(e){let{elements:n,rect:r,offsetParent:i,strategy:l}=e;const s=l==="fixed",c=Rr(i),f=n?Hc(n.floating):!1;if(i===c||f&&s)return r;let d={scrollLeft:0,scrollTop:0},h=Ar(1);const m=Ar(0),y=Tr(i);if((y||!y&&!s)&&((To(i)!=="body"||ds(c))&&(d=Fc(i)),Tr(i))){const b=ci(i);h=co(i),m.x=b.x+i.clientLeft,m.y=b.y+i.clientTop}const w=c&&!y&&!s?W1(c,d,!0):Ar(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+m.x+w.x,y:r.y*h.y-d.scrollTop*h.y+m.y+w.y}}function QO(e){return Array.from(e.getClientRects())}function ZO(e){const n=Rr(e),r=Fc(e),i=e.ownerDocument.body,l=On(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),s=On(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let c=-r.scrollLeft+km(e);const f=-r.scrollTop;return cr(i).direction==="rtl"&&(c+=On(n.clientWidth,i.clientWidth)-l),{width:l,height:s,x:c,y:f}}function WO(e,n){const r=Pn(e),i=Rr(e),l=r.visualViewport;let s=i.clientWidth,c=i.clientHeight,f=0,d=0;if(l){s=l.width,c=l.height;const h=Em();(!h||h&&n==="fixed")&&(f=l.offsetLeft,d=l.offsetTop)}return{width:s,height:c,x:f,y:d}}const JO=new Set(["absolute","fixed"]);function e4(e,n){const r=ci(e,!0,n==="fixed"),i=r.top+e.clientTop,l=r.left+e.clientLeft,s=Tr(e)?co(e):Ar(1),c=e.clientWidth*s.x,f=e.clientHeight*s.y,d=l*s.x,h=i*s.y;return{width:c,height:f,x:d,y:h}}function Fb(e,n,r){let i;if(n==="viewport")i=WO(e,r);else if(n==="document")i=ZO(Rr(e));else if(ur(n))i=e4(n,r);else{const l=Z1(e);i={x:n.x-l.x,y:n.y-l.y,width:n.width,height:n.height}}return pc(i)}function J1(e,n){const r=ja(e);return r===n||!ur(r)||po(r)?!1:cr(r).position==="fixed"||J1(r,n)}function t4(e,n){const r=n.get(e);if(r)return r;let i=Xl(e,[],!1).filter(f=>ur(f)&&To(f)!=="body"),l=null;const s=cr(e).position==="fixed";let c=s?ja(e):e;for(;ur(c)&&!po(c);){const f=cr(c),d=Sm(c);!d&&f.position==="fixed"&&(l=null),(s?!d&&!l:!d&&f.position==="static"&&!!l&&JO.has(l.position)||ds(c)&&!d&&J1(e,c))?i=i.filter(m=>m!==c):l=f,c=ja(c)}return n.set(e,i),i}function n4(e){let{element:n,boundary:r,rootBoundary:i,strategy:l}=e;const c=[...r==="clippingAncestors"?Hc(n)?[]:t4(n,this._c):[].concat(r),i],f=c[0],d=c.reduce((h,m)=>{const y=Fb(n,m,l);return h.top=On(y.top,h.top),h.right=Ma(y.right,h.right),h.bottom=Ma(y.bottom,h.bottom),h.left=On(y.left,h.left),h},Fb(n,f,l));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function r4(e){const{width:n,height:r}=Q1(e);return{width:n,height:r}}function a4(e,n,r){const i=Tr(n),l=Rr(n),s=r==="fixed",c=ci(e,!0,s,n);let f={scrollLeft:0,scrollTop:0};const d=Ar(0);function h(){d.x=km(l)}if(i||!i&&!s)if((To(n)!=="body"||ds(l))&&(f=Fc(n)),i){const b=ci(n,!0,s,n);d.x=b.x+n.clientLeft,d.y=b.y+n.clientTop}else l&&h();s&&!i&&l&&h();const m=l&&!i&&!s?W1(l,f):Ar(0),y=c.left+f.scrollLeft-d.x-m.x,w=c.top+f.scrollTop-d.y-m.y;return{x:y,y:w,width:c.width,height:c.height}}function Ph(e){return cr(e).position==="static"}function Vb(e,n){if(!Tr(e)||cr(e).position==="fixed")return null;if(n)return n(e);let r=e.offsetParent;return Rr(e)===r&&(r=r.ownerDocument.body),r}function eS(e,n){const r=Pn(e);if(Hc(e))return r;if(!Tr(e)){let l=ja(e);for(;l&&!po(l);){if(ur(l)&&!Ph(l))return l;l=ja(l)}return r}let i=Vb(e,n);for(;i&&UO(i)&&Ph(i);)i=Vb(i,n);return i&&po(i)&&Ph(i)&&!Sm(i)?r:i||$O(e)||r}const i4=async function(e){const n=this.getOffsetParent||eS,r=this.getDimensions,i=await r(e.floating);return{reference:a4(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function o4(e){return cr(e).direction==="rtl"}const l4={convertOffsetParentRelativeRectToViewportRelativeRect:XO,getDocumentElement:Rr,getClippingRect:n4,getOffsetParent:eS,getElementRects:i4,getClientRects:QO,getDimensions:r4,getScale:co,isElement:ur,isRTL:o4};function tS(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function s4(e,n){let r=null,i;const l=Rr(e);function s(){var f;clearTimeout(i),(f=r)==null||f.disconnect(),r=null}function c(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),s();const h=e.getBoundingClientRect(),{left:m,top:y,width:w,height:b}=h;if(f||n(),!w||!b)return;const S=Gu(y),E=Gu(l.clientWidth-(m+w)),T=Gu(l.clientHeight-(y+b)),A=Gu(m),N={rootMargin:-S+"px "+-E+"px "+-T+"px "+-A+"px",threshold:On(0,Ma(1,d))||1};let O=!0;function L(j){const H=j[0].intersectionRatio;if(H!==d){if(!O)return c();H?c(!1,H):i=setTimeout(()=>{c(!1,1e-7)},1e3)}H===1&&!tS(h,e.getBoundingClientRect())&&c(),O=!1}try{r=new IntersectionObserver(L,{...N,root:l.ownerDocument})}catch{r=new IntersectionObserver(L,N)}r.observe(e)}return c(!0),s}function u4(e,n,r,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,h=Cm(e),m=l||s?[...h?Xl(h):[],...Xl(n)]:[];m.forEach(A=>{l&&A.addEventListener("scroll",r,{passive:!0}),s&&A.addEventListener("resize",r)});const y=h&&f?s4(h,r):null;let w=-1,b=null;c&&(b=new ResizeObserver(A=>{let[R]=A;R&&R.target===h&&b&&(b.unobserve(n),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var N;(N=b)==null||N.observe(n)})),r()}),h&&!d&&b.observe(h),b.observe(n));let S,E=d?ci(e):null;d&&T();function T(){const A=ci(e);E&&!tS(E,A)&&r(),E=A,S=requestAnimationFrame(T)}return r(),()=>{var A;m.forEach(R=>{l&&R.removeEventListener("scroll",r),s&&R.removeEventListener("resize",r)}),y?.(),(A=b)==null||A.disconnect(),b=null,d&&cancelAnimationFrame(S)}}const c4=OO,f4=PO,d4=MO,h4=zO,p4=jO,qb=_O,m4=LO,g4=(e,n,r)=>{const i=new Map,l={platform:l4,...r},s={...l.platform,_c:i};return NO(e,n,{...l,platform:s})};var y4=typeof document<"u",v4=function(){},ac=y4?v.useLayoutEffect:v4;function mc(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,i,l;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==n.length)return!1;for(i=r;i--!==0;)if(!mc(e[i],n[i]))return!1;return!0}if(l=Object.keys(e),r=l.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(n,l[i]))return!1;for(i=r;i--!==0;){const s=l[i];if(!(s==="_owner"&&e.$$typeof)&&!mc(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}function nS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $b(e,n){const r=nS(e);return Math.round(n*r)/r}function Lh(e){const n=v.useRef(e);return ac(()=>{n.current=e}),n}function x4(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:l,elements:{reference:s,floating:c}={},transform:f=!0,whileElementsMounted:d,open:h}=e,[m,y]=v.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[w,b]=v.useState(i);mc(w,i)||b(i);const[S,E]=v.useState(null),[T,A]=v.useState(null),R=v.useCallback(B=>{B!==j.current&&(j.current=B,E(B))},[]),N=v.useCallback(B=>{B!==H.current&&(H.current=B,A(B))},[]),O=s||S,L=c||T,j=v.useRef(null),H=v.useRef(null),$=v.useRef(m),Y=d!=null,D=Lh(d),Z=Lh(l),J=Lh(h),ne=v.useCallback(()=>{if(!j.current||!H.current)return;const B={placement:n,strategy:r,middleware:w};Z.current&&(B.platform=Z.current),g4(j.current,H.current,B).then(ie=>{const k={...ie,isPositioned:J.current!==!1};G.current&&!mc($.current,k)&&($.current=k,wo.flushSync(()=>{y(k)}))})},[w,n,r,Z,J]);ac(()=>{h===!1&&$.current.isPositioned&&($.current.isPositioned=!1,y(B=>({...B,isPositioned:!1})))},[h]);const G=v.useRef(!1);ac(()=>(G.current=!0,()=>{G.current=!1}),[]),ac(()=>{if(O&&(j.current=O),L&&(H.current=L),O&&L){if(D.current)return D.current(O,L,ne);ne()}},[O,L,ne,D,Y]);const ae=v.useMemo(()=>({reference:j,floating:H,setReference:R,setFloating:N}),[R,N]),z=v.useMemo(()=>({reference:O,floating:L}),[O,L]),Q=v.useMemo(()=>{const B={position:r,left:0,top:0};if(!z.floating)return B;const ie=$b(z.floating,m.x),k=$b(z.floating,m.y);return f?{...B,transform:"translate("+ie+"px, "+k+"px)",...nS(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ie,top:k}},[r,f,z.floating,m.x,m.y]);return v.useMemo(()=>({...m,update:ne,refs:ae,elements:z,floatingStyles:Q}),[m,ne,ae,z,Q])}const b4=e=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:l}=typeof e=="function"?e(r):e;return i&&n(i)?i.current!=null?qb({element:i.current,padding:l}).fn(r):{}:i?qb({element:i,padding:l}).fn(r):{}}}},w4=(e,n)=>({...c4(e),options:[e,n]}),S4=(e,n)=>({...f4(e),options:[e,n]}),E4=(e,n)=>({...m4(e),options:[e,n]}),C4=(e,n)=>({...d4(e),options:[e,n]}),k4=(e,n)=>({...h4(e),options:[e,n]}),A4=(e,n)=>({...p4(e),options:[e,n]}),T4=(e,n)=>({...b4(e),options:[e,n]});var R4="Arrow",rS=v.forwardRef((e,n)=>{const{children:r,width:i=10,height:l=5,...s}=e;return g.jsx(_e.svg,{...s,ref:n,width:i,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});rS.displayName=R4;var N4=rS;function aS(e){const[n,r]=v.useState(void 0);return $t(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const s=l[0];let c,f;if("borderBoxSize"in s){const d=s.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,f=h.blockSize}else c=e.offsetWidth,f=e.offsetHeight;r({width:c,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),n}var Am="Popper",[iS,Ro]=Jn(Am),[_4,oS]=iS(Am),lS=e=>{const{__scopePopper:n,children:r}=e,[i,l]=v.useState(null);return g.jsx(_4,{scope:n,anchor:i,onAnchorChange:l,children:r})};lS.displayName=Am;var sS="PopperAnchor",uS=v.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:i,...l}=e,s=oS(sS,r),c=v.useRef(null),f=ze(n,c),d=v.useRef(null);return v.useEffect(()=>{const h=d.current;d.current=i?.current||c.current,h!==d.current&&s.onAnchorChange(d.current)}),i?null:g.jsx(_e.div,{...l,ref:f})});uS.displayName=sS;var Tm="PopperContent",[M4,j4]=iS(Tm),cS=v.forwardRef((e,n)=>{const{__scopePopper:r,side:i="bottom",sideOffset:l=0,align:s="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:y="partial",hideWhenDetached:w=!1,updatePositionStrategy:b="optimized",onPlaced:S,...E}=e,T=oS(Tm,r),[A,R]=v.useState(null),N=ze(n,le=>R(le)),[O,L]=v.useState(null),j=aS(O),H=j?.width??0,$=j?.height??0,Y=i+(s!=="center"?"-"+s:""),D=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},Z=Array.isArray(h)?h:[h],J=Z.length>0,ne={padding:D,boundary:Z.filter(O4),altBoundary:J},{refs:G,floatingStyles:ae,placement:z,isPositioned:Q,middlewareData:B}=x4({strategy:"fixed",placement:Y,whileElementsMounted:(...le)=>u4(...le,{animationFrame:b==="always"}),elements:{reference:T.anchor},middleware:[w4({mainAxis:l+$,alignmentAxis:c}),d&&S4({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?E4():void 0,...ne}),d&&C4({...ne}),k4({...ne,apply:({elements:le,rects:ve,availableWidth:Ve,availableHeight:De})=>{const{width:Be,height:We}=ve.reference,Ke=le.floating.style;Ke.setProperty("--radix-popper-available-width",`${Ve}px`),Ke.setProperty("--radix-popper-available-height",`${De}px`),Ke.setProperty("--radix-popper-anchor-width",`${Be}px`),Ke.setProperty("--radix-popper-anchor-height",`${We}px`)}}),O&&T4({element:O,padding:f}),P4({arrowWidth:H,arrowHeight:$}),w&&A4({strategy:"referenceHidden",...ne})]}),[ie,k]=hS(z),W=Tt(S);$t(()=>{Q&&W?.()},[Q,W]);const se=B.arrow?.x,M=B.arrow?.y,ce=B.arrow?.centerOffset!==0,[Ee,pe]=v.useState();return $t(()=>{A&&pe(window.getComputedStyle(A).zIndex)},[A]),g.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:Q?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ee,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(M4,{scope:r,placedSide:ie,onArrowChange:L,arrowX:se,arrowY:M,shouldHideArrow:ce,children:g.jsx(_e.div,{"data-side":ie,"data-align":k,...E,ref:N,style:{...E.style,animation:Q?void 0:"none"}})})})});cS.displayName=Tm;var fS="PopperArrow",D4={top:"bottom",right:"left",bottom:"top",left:"right"},dS=v.forwardRef(function(n,r){const{__scopePopper:i,...l}=n,s=j4(fS,i),c=D4[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(N4,{...l,ref:r,style:{...l.style,display:"block"}})})});dS.displayName=fS;function O4(e){return e!==null}var P4=e=>({name:"transformOrigin",options:e,fn(n){const{placement:r,rects:i,middlewareData:l}=n,c=l.arrow?.centerOffset!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[h,m]=hS(r),y={start:"0%",center:"50%",end:"100%"}[m],w=(l.arrow?.x??0)+f/2,b=(l.arrow?.y??0)+d/2;let S="",E="";return h==="bottom"?(S=c?y:`${w}px`,E=`${-d}px`):h==="top"?(S=c?y:`${w}px`,E=`${i.floating.height+d}px`):h==="right"?(S=`${-d}px`,E=c?y:`${b}px`):h==="left"&&(S=`${i.floating.width+d}px`,E=c?y:`${b}px`),{data:{x:S,y:E}}}});function hS(e){const[n,r="center"]=e.split("-");return[n,r]}var Rm=lS,Nm=uS,_m=cS,Mm=dS,[Vc,tH]=Jn("Tooltip",[Ro]),qc=Ro(),pS="TooltipProvider",L4=700,bp="tooltip.open",[z4,jm]=Vc(pS),mS=e=>{const{__scopeTooltip:n,delayDuration:r=L4,skipDelayDuration:i=300,disableHoverableContent:l=!1,children:s}=e,c=v.useRef(!0),f=v.useRef(!1),d=v.useRef(0);return v.useEffect(()=>{const h=d.current;return()=>window.clearTimeout(h)},[]),g.jsx(z4,{scope:n,isOpenDelayedRef:c,delayDuration:r,onOpen:v.useCallback(()=>{window.clearTimeout(d.current),c.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.current=!0,i)},[i]),isPointerInTransitRef:f,onPointerInTransitChange:v.useCallback(h=>{f.current=h},[]),disableHoverableContent:l,children:s})};mS.displayName=pS;var Ql="Tooltip",[I4,$c]=Vc(Ql),gS=e=>{const{__scopeTooltip:n,children:r,open:i,defaultOpen:l,onOpenChange:s,disableHoverableContent:c,delayDuration:f}=e,d=jm(Ql,e.__scopeTooltip),h=qc(n),[m,y]=v.useState(null),w=kr(),b=v.useRef(0),S=c??d.disableHoverableContent,E=f??d.delayDuration,T=v.useRef(!1),[A,R]=_a({prop:i,defaultProp:l??!1,onChange:H=>{H?(d.onOpen(),document.dispatchEvent(new CustomEvent(bp))):d.onClose(),s?.(H)},caller:Ql}),N=v.useMemo(()=>A?T.current?"delayed-open":"instant-open":"closed",[A]),O=v.useCallback(()=>{window.clearTimeout(b.current),b.current=0,T.current=!1,R(!0)},[R]),L=v.useCallback(()=>{window.clearTimeout(b.current),b.current=0,R(!1)},[R]),j=v.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{T.current=!0,R(!0),b.current=0},E)},[E,R]);return v.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),g.jsx(Rm,{...h,children:g.jsx(I4,{scope:n,contentId:w,open:A,stateAttribute:N,trigger:m,onTriggerChange:y,onTriggerEnter:v.useCallback(()=>{d.isOpenDelayedRef.current?j():O()},[d.isOpenDelayedRef,j,O]),onTriggerLeave:v.useCallback(()=>{S?L():(window.clearTimeout(b.current),b.current=0)},[L,S]),onOpen:O,onClose:L,disableHoverableContent:S,children:r})})};gS.displayName=Ql;var wp="TooltipTrigger",yS=v.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,l=$c(wp,r),s=jm(wp,r),c=qc(r),f=v.useRef(null),d=ze(n,f,l.onTriggerChange),h=v.useRef(!1),m=v.useRef(!1),y=v.useCallback(()=>h.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),g.jsx(Nm,{asChild:!0,...c,children:g.jsx(_e.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...i,ref:d,onPointerMove:me(e.onPointerMove,w=>{w.pointerType!=="touch"&&!m.current&&!s.isPointerInTransitRef.current&&(l.onTriggerEnter(),m.current=!0)}),onPointerLeave:me(e.onPointerLeave,()=>{l.onTriggerLeave(),m.current=!1}),onPointerDown:me(e.onPointerDown,()=>{l.open&&l.onClose(),h.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:me(e.onFocus,()=>{h.current||l.onOpen()}),onBlur:me(e.onBlur,l.onClose),onClick:me(e.onClick,l.onClose)})})});yS.displayName=wp;var B4="TooltipPortal",[nH,U4]=Vc(B4,{forceMount:void 0}),mo="TooltipContent",vS=v.forwardRef((e,n)=>{const r=U4(mo,e.__scopeTooltip),{forceMount:i=r.forceMount,side:l="top",...s}=e,c=$c(mo,e.__scopeTooltip);return g.jsx(un,{present:i||c.open,children:c.disableHoverableContent?g.jsx(xS,{side:l,...s,ref:n}):g.jsx(H4,{side:l,...s,ref:n})})}),H4=v.forwardRef((e,n)=>{const r=$c(mo,e.__scopeTooltip),i=jm(mo,e.__scopeTooltip),l=v.useRef(null),s=ze(n,l),[c,f]=v.useState(null),{trigger:d,onClose:h}=r,m=l.current,{onPointerInTransitChange:y}=i,w=v.useCallback(()=>{f(null),y(!1)},[y]),b=v.useCallback((S,E)=>{const T=S.currentTarget,A={x:S.clientX,y:S.clientY},R=G4(A,T.getBoundingClientRect()),N=Y4(A,R),O=K4(E.getBoundingClientRect()),L=Q4([...N,...O]);f(L),y(!0)},[y]);return v.useEffect(()=>()=>w(),[w]),v.useEffect(()=>{if(d&&m){const S=T=>b(T,m),E=T=>b(T,d);return d.addEventListener("pointerleave",S),m.addEventListener("pointerleave",E),()=>{d.removeEventListener("pointerleave",S),m.removeEventListener("pointerleave",E)}}},[d,m,b,w]),v.useEffect(()=>{if(c){const S=E=>{const T=E.target,A={x:E.clientX,y:E.clientY},R=d?.contains(T)||m?.contains(T),N=!X4(A,c);R?w():N&&(w(),h())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[d,m,c,h,w]),g.jsx(xS,{...e,ref:s})}),[F4,V4]=Vc(Ql,{isInside:!1}),q4=bw("TooltipContent"),xS=v.forwardRef((e,n)=>{const{__scopeTooltip:r,children:i,"aria-label":l,onEscapeKeyDown:s,onPointerDownOutside:c,...f}=e,d=$c(mo,r),h=qc(r),{onClose:m}=d;return v.useEffect(()=>(document.addEventListener(bp,m),()=>document.removeEventListener(bp,m)),[m]),v.useEffect(()=>{if(d.trigger){const y=w=>{w.target?.contains(d.trigger)&&m()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[d.trigger,m]),g.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:m,children:g.jsxs(_m,{"data-state":d.stateAttribute,...h,...f,ref:n,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(q4,{children:i}),g.jsx(F4,{scope:r,isInside:!0,children:g.jsx(S_,{id:d.contentId,role:"tooltip",children:l||i})})]})})});vS.displayName=mo;var bS="TooltipArrow",$4=v.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,l=qc(r);return V4(bS,r).isInside?null:g.jsx(Mm,{...l,...i,ref:n})});$4.displayName=bS;function G4(e,n){const r=Math.abs(n.top-e.y),i=Math.abs(n.bottom-e.y),l=Math.abs(n.right-e.x),s=Math.abs(n.left-e.x);switch(Math.min(r,i,l,s)){case s:return"left";case l:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function Y4(e,n,r=5){const i=[];switch(n){case"top":i.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":i.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":i.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":i.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return i}function K4(e){const{top:n,right:r,bottom:i,left:l}=e;return[{x:l,y:n},{x:r,y:n},{x:r,y:i},{x:l,y:i}]}function X4(e,n){const{x:r,y:i}=e;let l=!1;for(let s=0,c=n.length-1;s<n.length;c=s++){const f=n[s],d=n[c],h=f.x,m=f.y,y=d.x,w=d.y;m>i!=w>i&&r<(y-h)*(i-m)/(w-m)+h&&(l=!l)}return l}function Q4(e){const n=e.slice();return n.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),Z4(n)}function Z4(e){if(e.length<=1)return e.slice();const n=[];for(let i=0;i<e.length;i++){const l=e[i];for(;n.length>=2;){const s=n[n.length-1],c=n[n.length-2];if((s.x-c.x)*(l.y-c.y)>=(s.y-c.y)*(l.x-c.x))n.pop();else break}n.push(l)}n.pop();const r=[];for(let i=e.length-1;i>=0;i--){const l=e[i];for(;r.length>=2;){const s=r[r.length-1],c=r[r.length-2];if((s.x-c.x)*(l.y-c.y)>=(s.y-c.y)*(l.x-c.x))r.pop();else break}r.push(l)}return r.pop(),n.length===1&&r.length===1&&n[0].x===r[0].x&&n[0].y===r[0].y?n:n.concat(r)}var W4=mS,J4=gS,eP=yS,wS=vS;const tP=W4,nP=J4,rP=eP,SS=v.forwardRef(({className:e,sideOffset:n=4,...r},i)=>g.jsx(wS,{ref:i,sideOffset:n,className:ue("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));SS.displayName=wS.displayName;const aP="sidebar_state",iP=3600*24*7,oP="16rem",lP="18rem",sP="3rem",uP="b",ES=v.createContext(null);function Gc(){const e=v.useContext(ES);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const CS=v.forwardRef(({defaultOpen:e=!0,open:n,onOpenChange:r,className:i,style:l,children:s,...c},f)=>{const d=f1(),[h,m]=v.useState(!1),[y,w]=v.useState(e),b=n??y,S=v.useCallback(R=>{const N=typeof R=="function"?R(b):R;r?r(N):w(N),document.cookie=`${aP}=${N}; path=/; max-age=${iP}`},[r,b]),E=v.useCallback(()=>d?m(R=>!R):S(R=>!R),[d,S,m]);v.useEffect(()=>{const R=N=>{N.key===uP&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),E())};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[E]);const T=b?"expanded":"collapsed",A=v.useMemo(()=>({state:T,open:b,setOpen:S,isMobile:d,openMobile:h,setOpenMobile:m,toggleSidebar:E}),[T,b,S,d,h,m,E]);return g.jsx(ES.Provider,{value:A,children:g.jsx(tP,{delayDuration:0,children:g.jsx("div",{style:{"--sidebar-width":oP,"--sidebar-width-icon":sP,...l},className:ue("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",i),ref:f,...c,children:s})})})});CS.displayName="SidebarProvider";const kS=v.forwardRef(({side:e="left",variant:n="sidebar",collapsible:r="offcanvas",className:i,children:l,...s},c)=>{const{isMobile:f,state:d,openMobile:h,setOpenMobile:m}=Gc();return r==="none"?g.jsx("div",{className:ue("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",i),ref:c,...s,children:l}):f?g.jsx(V1,{open:h,onOpenChange:m,...s,children:g.jsxs(gm,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":lP},side:e,children:[g.jsxs(ym,{className:"sr-only",children:[g.jsx(vm,{children:"Sidebar"}),g.jsx($1,{children:"Displays the mobile sidebar."})]}),g.jsx("div",{className:"flex h-full w-full flex-col",children:l})]})}):g.jsxs("div",{ref:c,className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":d==="collapsed"?r:"","data-variant":n,"data-side":e,children:[g.jsx("div",{className:ue("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",n==="floating"||n==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),g.jsx("div",{className:ue("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",n==="floating"||n==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...s,children:g.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:l})})]})});kS.displayName="Sidebar";const AS=v.forwardRef(({className:e,onClick:n,...r},i)=>{const{toggleSidebar:l}=Gc();return g.jsxs(vt,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:ue("h-7 w-7",e),onClick:s=>{n?.(s),l()},...r,children:[g.jsx(qM,{}),g.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});AS.displayName="SidebarTrigger";const cP=v.forwardRef(({className:e,...n},r)=>{const{toggleSidebar:i}=Gc();return g.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:ue("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...n})});cP.displayName="SidebarRail";const TS=v.forwardRef(({className:e,...n},r)=>g.jsx("main",{ref:r,className:ue("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...n}));TS.displayName="SidebarInset";const fP=v.forwardRef(({className:e,...n},r)=>g.jsx(d1,{ref:r,"data-sidebar":"input",className:ue("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...n}));fP.displayName="SidebarInput";const RS=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"header",className:ue("flex flex-col gap-2 p-2",e),...n}));RS.displayName="SidebarHeader";const NS=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"footer",className:ue("flex flex-col gap-2 p-2",e),...n}));NS.displayName="SidebarFooter";const dP=v.forwardRef(({className:e,...n},r)=>g.jsx(m1,{ref:r,"data-sidebar":"separator",className:ue("mx-2 w-auto bg-sidebar-border",e),...n}));dP.displayName="SidebarSeparator";const _S=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"content",className:ue("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...n}));_S.displayName="SidebarContent";const Ol=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"group",className:ue("relative flex w-full min-w-0 flex-col p-2",e),...n}));Ol.displayName="SidebarGroup";const Pl=v.forwardRef(({className:e,asChild:n=!1,...r},i)=>{const l=n?So:"div";return g.jsx(l,{ref:i,"data-sidebar":"group-label",className:ue("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})});Pl.displayName="SidebarGroupLabel";const hP=v.forwardRef(({className:e,asChild:n=!1,...r},i)=>{const l=n?So:"button";return g.jsx(l,{ref:i,"data-sidebar":"group-action",className:ue("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...r})});hP.displayName="SidebarGroupAction";const Ll=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"group-content",className:ue("w-full text-sm",e),...n}));Ll.displayName="SidebarGroupContent";const ai=v.forwardRef(({className:e,...n},r)=>g.jsx("ul",{ref:r,"data-sidebar":"menu",className:ue("flex w-full min-w-0 flex-col gap-1",e),...n}));ai.displayName="SidebarMenu";const ii=v.forwardRef(({className:e,...n},r)=>g.jsx("li",{ref:r,"data-sidebar":"menu-item",className:ue("group/menu-item relative",e),...n}));ii.displayName="SidebarMenuItem";const pP=Dc("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),oi=v.forwardRef(({asChild:e=!1,isActive:n=!1,variant:r="default",size:i="default",tooltip:l,className:s,...c},f)=>{const d=e?So:"button",{isMobile:h,state:m}=Gc(),y=g.jsx(d,{ref:f,"data-sidebar":"menu-button","data-size":i,"data-active":n,className:ue(pP({variant:r,size:i}),s),...c});return l?(typeof l=="string"&&(l={children:l}),g.jsxs(nP,{children:[g.jsx(rP,{asChild:!0,children:y}),g.jsx(SS,{side:"right",align:"center",hidden:m!=="collapsed"||h,...l})]})):y});oi.displayName="SidebarMenuButton";const mP=v.forwardRef(({className:e,asChild:n=!1,showOnHover:r=!1,...i},l)=>{const s=n?So:"button";return g.jsx(s,{ref:l,"data-sidebar":"menu-action",className:ue("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...i})});mP.displayName="SidebarMenuAction";const Sp=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:ue("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-full px-1.5 text-xs font-semibold tabular-nums shadow-sm","transition-all duration-200 ease-in-out hover:scale-110","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...n}));Sp.displayName="SidebarMenuBadge";const gP=v.forwardRef(({className:e,showIcon:n=!1,...r},i)=>{const l=v.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return g.jsxs("div",{ref:i,"data-sidebar":"menu-skeleton",className:ue("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[n&&g.jsx(Pb,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),g.jsx(Pb,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]})});gP.displayName="SidebarMenuSkeleton";const yP=v.forwardRef(({className:e,...n},r)=>g.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:ue("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...n}));yP.displayName="SidebarMenuSub";const vP=v.forwardRef(({...e},n)=>g.jsx("li",{ref:n,...e}));vP.displayName="SidebarMenuSubItem";const xP=v.forwardRef(({asChild:e=!1,size:n="md",isActive:r,className:i,...l},s)=>{const c=e?So:"a";return g.jsx(c,{ref:s,"data-sidebar":"menu-sub-button","data-size":n,"data-active":r,className:ue("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",n==="sm"&&"text-xs",n==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),...l})});xP.displayName="SidebarMenuSubButton";const bP="1.0.72",wP={version:bP};function SP({className:e}){return g.jsxs("svg",{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",className:e,children:[g.jsx("path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4"}),g.jsx("path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3"}),g.jsx("path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35"}),g.jsx("path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14"})]})}const EP=[{title:"Home",url:"/",icon:TM},{title:"Role",url:"/context/role",icon:yj},{title:"Skills",url:"/agents",icon:Hl}],CP=[{title:"Tasks",url:"/proposals",icon:Kw},{title:"Code",url:"/code",icon:sM},{title:"Utilities",url:"/utilities",icon:wj},{title:"Schedule",url:"/schedule",icon:W_},{title:"Activity",url:"/activity",icon:Y_}],kP=[{title:"Overview",url:"/context/project",icon:uc},{title:"Architecture",url:"/context/architecture",icon:WM},{title:"Knowledge",url:"/context/knowledge",icon:Q_},{title:"Resources",url:"/resources",icon:wM}],AP=[{title:"Source Control",url:"/git",icon:Xw},{title:"Terminal",url:"/terminal",icon:fj},{title:"Identity",url:"/identity",icon:NM}],TP=[{title:"Documentation",url:"https://docs.coconut.dev/studio",icon:FM,external:!0},{title:"Settings",url:"/settings/user",icon:ej}];function RP(){const{badges:e}=qN();return g.jsxs(kS,{className:"bg-sidebar border-r border-sidebar-border",children:[g.jsx(RS,{children:g.jsx(ai,{children:g.jsx(ii,{children:g.jsx(oi,{size:"lg",asChild:!0,className:"[&>svg]:!size-8",children:g.jsxs(Sr,{to:"/",children:[g.jsx(SP,{className:"size-8"}),g.jsxs("div",{className:"flex flex-col gap-0.5",children:[g.jsxs("span",{className:"font-semibold",children:[g.jsx("span",{className:"bg-gradient-to-r from-amber-500 via-orange-500 to-yellow-600 bg-clip-text text-transparent",children:"Coconut"}),g.jsx("span",{children:" Studio"})]}),g.jsxs("span",{className:"text-xs text-muted-foreground",children:["v",wP.version]})]})]})})})})}),g.jsxs(_S,{children:[g.jsxs(Ol,{children:[g.jsx(Pl,{children:"Agent"}),g.jsx(Ll,{children:g.jsx(ai,{children:EP.map(n=>g.jsx(ii,{children:g.jsx(oi,{asChild:!0,children:g.jsxs(Sr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})})},n.title))})})]}),g.jsxs(Ol,{children:[g.jsx(Pl,{children:"Work"}),g.jsx(Ll,{children:g.jsx(ai,{children:CP.map(n=>{let r=0;return n.title==="Code"&&e.codeSessions>0?r=e.codeSessions:n.title==="Schedule"&&e.runningScheduledJobs>0&&(r=e.runningScheduledJobs),g.jsxs(ii,{children:[g.jsx(oi,{asChild:!0,children:g.jsxs(Sr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})}),r>0&&g.jsx(Sp,{className:"bg-blue-600 text-white dark:bg-blue-500",children:r})]},n.title)})})})]}),g.jsxs(Ol,{children:[g.jsx(Pl,{children:"Assets"}),g.jsx(Ll,{children:g.jsx(ai,{children:kP.map(n=>g.jsx(ii,{children:g.jsx(oi,{asChild:!0,children:g.jsxs(Sr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})})},n.title))})})]}),g.jsxs(Ol,{children:[g.jsx(Pl,{children:"System"}),g.jsx(Ll,{children:g.jsx(ai,{children:AP.map(n=>{let r=0;return n.title==="Source Control"&&e.gitChanges>0?r=e.gitChanges:n.title==="Terminal"&&e.terminalSessions>0&&(r=e.terminalSessions),g.jsxs(ii,{children:[g.jsx(oi,{asChild:!0,children:g.jsxs(Sr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})}),r>0&&g.jsx(Sp,{className:"bg-blue-600 text-white dark:bg-blue-500",children:r})]},n.title)})})})]})]}),g.jsx(NS,{children:g.jsx(ai,{children:TP.map(n=>g.jsx(ii,{children:g.jsx(oi,{asChild:!0,children:n.external?g.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]}):g.jsxs(Sr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})})},n.title))})})]})}function Ep(e,[n,r]){return Math.min(r,Math.max(n,e))}var NP=v.createContext(void 0);function Yc(e){const n=v.useContext(NP);return e||n||"ltr"}function MS(e){const n=v.useRef({value:e,previous:e});return v.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var _P=[" ","Enter","ArrowUp","ArrowDown"],MP=[" ","Enter"],fi="Select",[Kc,Xc,jP]=_c(fi),[No,rH]=Jn(fi,[jP,Ro]),Qc=Ro(),[DP,Da]=No(fi),[OP,PP]=No(fi),jS=e=>{const{__scopeSelect:n,children:r,open:i,defaultOpen:l,onOpenChange:s,value:c,defaultValue:f,onValueChange:d,dir:h,name:m,autoComplete:y,disabled:w,required:b,form:S}=e,E=Qc(n),[T,A]=v.useState(null),[R,N]=v.useState(null),[O,L]=v.useState(!1),j=Yc(h),[H,$]=_a({prop:i,defaultProp:l??!1,onChange:s,caller:fi}),[Y,D]=_a({prop:c,defaultProp:f,onChange:d,caller:fi}),Z=v.useRef(null),J=T?S||!!T.closest("form"):!0,[ne,G]=v.useState(new Set),ae=Array.from(ne).map(z=>z.props.value).join(";");return g.jsx(Rm,{...E,children:g.jsxs(DP,{required:b,scope:n,trigger:T,onTriggerChange:A,valueNode:R,onValueNodeChange:N,valueNodeHasChildren:O,onValueNodeHasChildrenChange:L,contentId:kr(),value:Y,onValueChange:D,open:H,onOpenChange:$,dir:j,triggerPointerDownPosRef:Z,disabled:w,children:[g.jsx(Kc.Provider,{scope:n,children:g.jsx(OP,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(z=>{G(Q=>new Set(Q).add(z))},[]),onNativeOptionRemove:v.useCallback(z=>{G(Q=>{const B=new Set(Q);return B.delete(z),B})},[]),children:r})}),J?g.jsxs(nE,{"aria-hidden":!0,required:b,tabIndex:-1,name:m,autoComplete:y,value:Y,onChange:z=>D(z.target.value),disabled:w,form:S,children:[Y===void 0?g.jsx("option",{value:""}):null,Array.from(ne)]},ae):null]})})};jS.displayName=fi;var DS="SelectTrigger",OS=v.forwardRef((e,n)=>{const{__scopeSelect:r,disabled:i=!1,...l}=e,s=Qc(r),c=Da(DS,r),f=c.disabled||i,d=ze(n,c.onTriggerChange),h=Xc(r),m=v.useRef("touch"),[y,w,b]=aE(E=>{const T=h().filter(N=>!N.disabled),A=T.find(N=>N.value===c.value),R=iE(T,E,A);R!==void 0&&c.onValueChange(R.value)}),S=E=>{f||(c.onOpenChange(!0),b()),E&&(c.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return g.jsx(Nm,{asChild:!0,...s,children:g.jsx(_e.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":rE(c.value)?"":void 0,...l,ref:d,onClick:me(l.onClick,E=>{E.currentTarget.focus(),m.current!=="mouse"&&S(E)}),onPointerDown:me(l.onPointerDown,E=>{m.current=E.pointerType;const T=E.target;T.hasPointerCapture(E.pointerId)&&T.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(S(E),E.preventDefault())}),onKeyDown:me(l.onKeyDown,E=>{const T=y.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(T&&E.key===" ")&&_P.includes(E.key)&&(S(),E.preventDefault())})})})});OS.displayName=DS;var PS="SelectValue",LS=v.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:l,children:s,placeholder:c="",...f}=e,d=Da(PS,r),{onValueNodeHasChildrenChange:h}=d,m=s!==void 0,y=ze(n,d.onValueNodeChange);return $t(()=>{h(m)},[h,m]),g.jsx(_e.span,{...f,ref:y,style:{pointerEvents:"none"},children:rE(d.value)?g.jsx(g.Fragment,{children:c}):s})});LS.displayName=PS;var LP="SelectIcon",zS=v.forwardRef((e,n)=>{const{__scopeSelect:r,children:i,...l}=e;return g.jsx(_e.span,{"aria-hidden":!0,...l,ref:n,children:i||"▼"})});zS.displayName=LP;var zP="SelectPortal",IS=e=>g.jsx(os,{asChild:!0,...e});IS.displayName=zP;var di="SelectContent",BS=v.forwardRef((e,n)=>{const r=Da(di,e.__scopeSelect),[i,l]=v.useState();if($t(()=>{l(new DocumentFragment)},[]),!r.open){const s=i;return s?wo.createPortal(g.jsx(US,{scope:e.__scopeSelect,children:g.jsx(Kc.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),s):null}return g.jsx(HS,{...e,ref:n})});BS.displayName=di;var or=10,[US,Oa]=No(di),IP="SelectContentImpl",BP=si("SelectContent.RemoveScroll"),HS=v.forwardRef((e,n)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:s,onPointerDownOutside:c,side:f,sideOffset:d,align:h,alignOffset:m,arrowPadding:y,collisionBoundary:w,collisionPadding:b,sticky:S,hideWhenDetached:E,avoidCollisions:T,...A}=e,R=Da(di,r),[N,O]=v.useState(null),[L,j]=v.useState(null),H=ze(n,le=>O(le)),[$,Y]=v.useState(null),[D,Z]=v.useState(null),J=Xc(r),[ne,G]=v.useState(!1),ae=v.useRef(!1);v.useEffect(()=>{if(N)return cm(N)},[N]),um();const z=v.useCallback(le=>{const[ve,...Ve]=J().map(We=>We.ref.current),[De]=Ve.slice(-1),Be=document.activeElement;for(const We of le)if(We===Be||(We?.scrollIntoView({block:"nearest"}),We===ve&&L&&(L.scrollTop=0),We===De&&L&&(L.scrollTop=L.scrollHeight),We?.focus(),document.activeElement!==Be))return},[J,L]),Q=v.useCallback(()=>z([$,N]),[z,$,N]);v.useEffect(()=>{ne&&Q()},[ne,Q]);const{onOpenChange:B,triggerPointerDownPosRef:ie}=R;v.useEffect(()=>{if(N){let le={x:0,y:0};const ve=De=>{le={x:Math.abs(Math.round(De.pageX)-(ie.current?.x??0)),y:Math.abs(Math.round(De.pageY)-(ie.current?.y??0))}},Ve=De=>{le.x<=10&&le.y<=10?De.preventDefault():N.contains(De.target)||B(!1),document.removeEventListener("pointermove",ve),ie.current=null};return ie.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",Ve,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",Ve,{capture:!0})}}},[N,B,ie]),v.useEffect(()=>{const le=()=>B(!1);return window.addEventListener("blur",le),window.addEventListener("resize",le),()=>{window.removeEventListener("blur",le),window.removeEventListener("resize",le)}},[B]);const[k,W]=aE(le=>{const ve=J().filter(Be=>!Be.disabled),Ve=ve.find(Be=>Be.ref.current===document.activeElement),De=iE(ve,le,Ve);De&&setTimeout(()=>De.ref.current.focus())}),se=v.useCallback((le,ve,Ve)=>{const De=!ae.current&&!Ve;(R.value!==void 0&&R.value===ve||De)&&(Y(le),De&&(ae.current=!0))},[R.value]),M=v.useCallback(()=>N?.focus(),[N]),ce=v.useCallback((le,ve,Ve)=>{const De=!ae.current&&!Ve;(R.value!==void 0&&R.value===ve||De)&&Z(le)},[R.value]),Ee=i==="popper"?Cp:FS,pe=Ee===Cp?{side:f,sideOffset:d,align:h,alignOffset:m,arrowPadding:y,collisionBoundary:w,collisionPadding:b,sticky:S,hideWhenDetached:E,avoidCollisions:T}:{};return g.jsx(US,{scope:r,content:N,viewport:L,onViewportChange:j,itemRefCallback:se,selectedItem:$,onItemLeave:M,itemTextRefCallback:ce,focusSelectedItem:Q,selectedItemText:D,position:i,isPositioned:ne,searchRef:k,children:g.jsx(zc,{as:BP,allowPinchZoom:!0,children:g.jsx(Pc,{asChild:!0,trapped:R.open,onMountAutoFocus:le=>{le.preventDefault()},onUnmountAutoFocus:me(l,le=>{R.trigger?.focus({preventScroll:!0}),le.preventDefault()}),children:g.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:le=>le.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:g.jsx(Ee,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:le=>le.preventDefault(),...A,...pe,onPlaced:()=>G(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:me(A.onKeyDown,le=>{const ve=le.ctrlKey||le.altKey||le.metaKey;if(le.key==="Tab"&&le.preventDefault(),!ve&&le.key.length===1&&W(le.key),["ArrowUp","ArrowDown","Home","End"].includes(le.key)){let De=J().filter(Be=>!Be.disabled).map(Be=>Be.ref.current);if(["ArrowUp","End"].includes(le.key)&&(De=De.slice().reverse()),["ArrowUp","ArrowDown"].includes(le.key)){const Be=le.target,We=De.indexOf(Be);De=De.slice(We+1)}setTimeout(()=>z(De)),le.preventDefault()}})})})})})})});HS.displayName=IP;var UP="SelectItemAlignedPosition",FS=v.forwardRef((e,n)=>{const{__scopeSelect:r,onPlaced:i,...l}=e,s=Da(di,r),c=Oa(di,r),[f,d]=v.useState(null),[h,m]=v.useState(null),y=ze(n,H=>m(H)),w=Xc(r),b=v.useRef(!1),S=v.useRef(!0),{viewport:E,selectedItem:T,selectedItemText:A,focusSelectedItem:R}=c,N=v.useCallback(()=>{if(s.trigger&&s.valueNode&&f&&h&&E&&T&&A){const H=s.trigger.getBoundingClientRect(),$=h.getBoundingClientRect(),Y=s.valueNode.getBoundingClientRect(),D=A.getBoundingClientRect();if(s.dir!=="rtl"){const Be=D.left-$.left,We=Y.left-Be,Ke=H.left-We,xt=H.width+Ke,zn=Math.max(xt,$.width),tr=window.innerWidth-or,Rt=Ep(We,[or,Math.max(or,tr-zn)]);f.style.minWidth=xt+"px",f.style.left=Rt+"px"}else{const Be=$.right-D.right,We=window.innerWidth-Y.right-Be,Ke=window.innerWidth-H.right-We,xt=H.width+Ke,zn=Math.max(xt,$.width),tr=window.innerWidth-or,Rt=Ep(We,[or,Math.max(or,tr-zn)]);f.style.minWidth=xt+"px",f.style.right=Rt+"px"}const Z=w(),J=window.innerHeight-or*2,ne=E.scrollHeight,G=window.getComputedStyle(h),ae=parseInt(G.borderTopWidth,10),z=parseInt(G.paddingTop,10),Q=parseInt(G.borderBottomWidth,10),B=parseInt(G.paddingBottom,10),ie=ae+z+ne+B+Q,k=Math.min(T.offsetHeight*5,ie),W=window.getComputedStyle(E),se=parseInt(W.paddingTop,10),M=parseInt(W.paddingBottom,10),ce=H.top+H.height/2-or,Ee=J-ce,pe=T.offsetHeight/2,le=T.offsetTop+pe,ve=ae+z+le,Ve=ie-ve;if(ve<=ce){const Be=Z.length>0&&T===Z[Z.length-1].ref.current;f.style.bottom="0px";const We=h.clientHeight-E.offsetTop-E.offsetHeight,Ke=Math.max(Ee,pe+(Be?M:0)+We+Q),xt=ve+Ke;f.style.height=xt+"px"}else{const Be=Z.length>0&&T===Z[0].ref.current;f.style.top="0px";const Ke=Math.max(ce,ae+E.offsetTop+(Be?se:0)+pe)+Ve;f.style.height=Ke+"px",E.scrollTop=ve-ce+E.offsetTop}f.style.margin=`${or}px 0`,f.style.minHeight=k+"px",f.style.maxHeight=J+"px",i?.(),requestAnimationFrame(()=>b.current=!0)}},[w,s.trigger,s.valueNode,f,h,E,T,A,s.dir,i]);$t(()=>N(),[N]);const[O,L]=v.useState();$t(()=>{h&&L(window.getComputedStyle(h).zIndex)},[h]);const j=v.useCallback(H=>{H&&S.current===!0&&(N(),R?.(),S.current=!1)},[N,R]);return g.jsx(FP,{scope:r,contentWrapper:f,shouldExpandOnScrollRef:b,onScrollButtonChange:j,children:g.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:g.jsx(_e.div,{...l,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});FS.displayName=UP;var HP="SelectPopperPosition",Cp=v.forwardRef((e,n)=>{const{__scopeSelect:r,align:i="start",collisionPadding:l=or,...s}=e,c=Qc(r);return g.jsx(_m,{...c,...s,ref:n,align:i,collisionPadding:l,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Cp.displayName=HP;var[FP,Dm]=No(di,{}),kp="SelectViewport",VS=v.forwardRef((e,n)=>{const{__scopeSelect:r,nonce:i,...l}=e,s=Oa(kp,r),c=Dm(kp,r),f=ze(n,s.onViewportChange),d=v.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),g.jsx(Kc.Slot,{scope:r,children:g.jsx(_e.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:me(l.onScroll,h=>{const m=h.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:w}=c;if(w?.current&&y){const b=Math.abs(d.current-m.scrollTop);if(b>0){const S=window.innerHeight-or*2,E=parseFloat(y.style.minHeight),T=parseFloat(y.style.height),A=Math.max(E,T);if(A<S){const R=A+b,N=Math.min(S,R),O=R-N;y.style.height=N+"px",y.style.bottom==="0px"&&(m.scrollTop=O>0?O:0,y.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});VS.displayName=kp;var qS="SelectGroup",[VP,qP]=No(qS),$P=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=kr();return g.jsx(VP,{scope:r,id:l,children:g.jsx(_e.div,{role:"group","aria-labelledby":l,...i,ref:n})})});$P.displayName=qS;var $S="SelectLabel",GS=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=qP($S,r);return g.jsx(_e.div,{id:l.id,...i,ref:n})});GS.displayName=$S;var gc="SelectItem",[GP,YS]=No(gc),KS=v.forwardRef((e,n)=>{const{__scopeSelect:r,value:i,disabled:l=!1,textValue:s,...c}=e,f=Da(gc,r),d=Oa(gc,r),h=f.value===i,[m,y]=v.useState(s??""),[w,b]=v.useState(!1),S=ze(n,R=>d.itemRefCallback?.(R,i,l)),E=kr(),T=v.useRef("touch"),A=()=>{l||(f.onValueChange(i),f.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(GP,{scope:r,value:i,disabled:l,textId:E,isSelected:h,onItemTextChange:v.useCallback(R=>{y(N=>N||(R?.textContent??"").trim())},[]),children:g.jsx(Kc.ItemSlot,{scope:r,value:i,disabled:l,textValue:m,children:g.jsx(_e.div,{role:"option","aria-labelledby":E,"data-highlighted":w?"":void 0,"aria-selected":h&&w,"data-state":h?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:S,onFocus:me(c.onFocus,()=>b(!0)),onBlur:me(c.onBlur,()=>b(!1)),onClick:me(c.onClick,()=>{T.current!=="mouse"&&A()}),onPointerUp:me(c.onPointerUp,()=>{T.current==="mouse"&&A()}),onPointerDown:me(c.onPointerDown,R=>{T.current=R.pointerType}),onPointerMove:me(c.onPointerMove,R=>{T.current=R.pointerType,l?d.onItemLeave?.():T.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:me(c.onPointerLeave,R=>{R.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:me(c.onKeyDown,R=>{d.searchRef?.current!==""&&R.key===" "||(MP.includes(R.key)&&A(),R.key===" "&&R.preventDefault())})})})})});KS.displayName=gc;var zl="SelectItemText",XS=v.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:l,...s}=e,c=Da(zl,r),f=Oa(zl,r),d=YS(zl,r),h=PP(zl,r),[m,y]=v.useState(null),w=ze(n,A=>y(A),d.onItemTextChange,A=>f.itemTextRefCallback?.(A,d.value,d.disabled)),b=m?.textContent,S=v.useMemo(()=>g.jsx("option",{value:d.value,disabled:d.disabled,children:b},d.value),[d.disabled,d.value,b]),{onNativeOptionAdd:E,onNativeOptionRemove:T}=h;return $t(()=>(E(S),()=>T(S)),[E,T,S]),g.jsxs(g.Fragment,{children:[g.jsx(_e.span,{id:d.textId,...s,ref:w}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?wo.createPortal(s.children,c.valueNode):null]})});XS.displayName=zl;var QS="SelectItemIndicator",ZS=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return YS(QS,r).isSelected?g.jsx(_e.span,{"aria-hidden":!0,...i,ref:n}):null});ZS.displayName=QS;var Ap="SelectScrollUpButton",WS=v.forwardRef((e,n)=>{const r=Oa(Ap,e.__scopeSelect),i=Dm(Ap,e.__scopeSelect),[l,s]=v.useState(!1),c=ze(n,i.onScrollButtonChange);return $t(()=>{if(r.viewport&&r.isPositioned){let f=function(){const h=d.scrollTop>0;s(h)};const d=r.viewport;return f(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),l?g.jsx(eE,{...e,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:d}=r;f&&d&&(f.scrollTop=f.scrollTop-d.offsetHeight)}}):null});WS.displayName=Ap;var Tp="SelectScrollDownButton",JS=v.forwardRef((e,n)=>{const r=Oa(Tp,e.__scopeSelect),i=Dm(Tp,e.__scopeSelect),[l,s]=v.useState(!1),c=ze(n,i.onScrollButtonChange);return $t(()=>{if(r.viewport&&r.isPositioned){let f=function(){const h=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)<h;s(m)};const d=r.viewport;return f(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),l?g.jsx(eE,{...e,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:d}=r;f&&d&&(f.scrollTop=f.scrollTop+d.offsetHeight)}}):null});JS.displayName=Tp;var eE=v.forwardRef((e,n)=>{const{__scopeSelect:r,onAutoScroll:i,...l}=e,s=Oa("SelectScrollButton",r),c=v.useRef(null),f=Xc(r),d=v.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return v.useEffect(()=>()=>d(),[d]),$t(()=>{f().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[f]),g.jsx(_e.div,{"aria-hidden":!0,...l,ref:n,style:{flexShrink:0,...l.style},onPointerDown:me(l.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(i,50))}),onPointerMove:me(l.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(i,50))}),onPointerLeave:me(l.onPointerLeave,()=>{d()})})}),YP="SelectSeparator",tE=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return g.jsx(_e.div,{"aria-hidden":!0,...i,ref:n})});tE.displayName=YP;var Rp="SelectArrow",KP=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=Qc(r),s=Da(Rp,r),c=Oa(Rp,r);return s.open&&c.position==="popper"?g.jsx(Mm,{...l,...i,ref:n}):null});KP.displayName=Rp;var XP="SelectBubbleInput",nE=v.forwardRef(({__scopeSelect:e,value:n,...r},i)=>{const l=v.useRef(null),s=ze(i,l),c=MS(n);return v.useEffect(()=>{const f=l.current;if(!f)return;const d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(c!==n&&m){const y=new Event("change",{bubbles:!0});m.call(f,n),f.dispatchEvent(y)}},[c,n]),g.jsx(_e.select,{...r,style:{...Cw,...r.style},ref:s,defaultValue:n})});nE.displayName=XP;function rE(e){return e===""||e===void 0}function aE(e){const n=Tt(e),r=v.useRef(""),i=v.useRef(0),l=v.useCallback(c=>{const f=r.current+c;n(f),(function d(h){r.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>d(""),1e3))})(f)},[n]),s=v.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,l,s]}function iE(e,n,r){const l=n.length>1&&Array.from(n).every(h=>h===n[0])?n[0]:n,s=r?e.indexOf(r):-1;let c=QP(e,Math.max(s,0));l.length===1&&(c=c.filter(h=>h!==r));const d=c.find(h=>h.textValue.toLowerCase().startsWith(l.toLowerCase()));return d!==r?d:void 0}function QP(e,n){return e.map((r,i)=>e[(n+i)%e.length])}var ZP=jS,oE=OS,WP=LS,JP=zS,eL=IS,lE=BS,tL=VS,sE=GS,uE=KS,nL=XS,rL=ZS,cE=WS,fE=JS,dE=tE;const Gb=ZP,Yb=WP,Np=v.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(oE,{ref:i,className:ue("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[n,g.jsx(JP,{asChild:!0,children:g.jsx(Yw,{className:"h-4 w-4 opacity-50"})})]}));Np.displayName=oE.displayName;const hE=v.forwardRef(({className:e,...n},r)=>g.jsx(cE,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",e),...n,children:g.jsx(aM,{className:"h-4 w-4"})}));hE.displayName=cE.displayName;const pE=v.forwardRef(({className:e,...n},r)=>g.jsx(fE,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",e),...n,children:g.jsx(Yw,{className:"h-4 w-4"})}));pE.displayName=fE.displayName;const _p=v.forwardRef(({className:e,children:n,position:r="popper",...i},l)=>g.jsx(eL,{children:g.jsxs(lE,{ref:l,className:ue("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...i,children:[g.jsx(hE,{}),g.jsx(tL,{className:ue("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),g.jsx(pE,{})]})}));_p.displayName=lE.displayName;const aL=v.forwardRef(({className:e,...n},r)=>g.jsx(sE,{ref:r,className:ue("px-2 py-1.5 text-sm font-semibold",e),...n}));aL.displayName=sE.displayName;const li=v.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(uE,{ref:i,className:ue("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[g.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(rL,{children:g.jsx(Oc,{className:"h-4 w-4"})})}),g.jsx(nL,{children:n})]}));li.displayName=uE.displayName;const iL=v.forwardRef(({className:e,...n},r)=>g.jsx(dE,{ref:r,className:ue("-mx-1 my-1 h-px bg-muted",e),...n}));iL.displayName=dE.displayName;const Zc=pm,aH=F1,oL=mm,mE=v.forwardRef(({className:e,...n},r)=>g.jsx(ss,{ref:r,className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));mE.displayName=ss.displayName;const hs=v.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(oL,{children:[g.jsx(mE,{}),g.jsxs(us,{ref:i,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[n,g.jsxs(Bc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[g.jsx(so,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));hs.displayName=us.displayName;const ps=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col space-y-1.5 text-center sm:text-left",e),...n});ps.displayName="DialogHeader";const gE=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});gE.displayName="DialogFooter";const ms=v.forwardRef(({className:e,...n},r)=>g.jsx(cs,{ref:r,className:ue("text-lg font-semibold leading-none tracking-tight",e),...n}));ms.displayName=cs.displayName;const Il=v.forwardRef(({className:e,...n},r)=>g.jsx(fs,{ref:r,className:ue("text-sm text-muted-foreground",e),...n}));Il.displayName=fs.displayName;function zh({className:e,...n}){return g.jsx("kbd",{"data-slot":"kbd",className:ue("inline-flex h-5 items-center justify-center rounded border border-muted-foreground/30 bg-muted/50 px-1.5 font-sans text-[11px] font-medium text-muted-foreground shadow-sm",e),...n})}function iH({className:e,...n}){return g.jsx("span",{"data-slot":"kbd-group",className:ue("inline-flex items-center gap-0.5",e),...n})}function oH(){}function lH(){}function sH(e){const n=[],r=String(e||"");let i=r.indexOf(","),l=0,s=!1;for(;!s;){i===-1&&(i=r.length,s=!0);const c=r.slice(l,i).trim();(c||!s)&&n.push(c),l=i+1,i=r.indexOf(",",l)}return n}function lL(e,n){const r=n||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const sL=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uL=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cL={};function Kb(e,n){return(cL.jsx?uL:sL).test(e)}const fL=/[ \t\n\f\r]/g;function dL(e){return typeof e=="object"?e.type==="text"?Xb(e.value):!1:Xb(e)}function Xb(e){return e.replace(fL,"")===""}class gs{constructor(n,r,i){this.normal=r,this.property=n,i&&(this.space=i)}}gs.prototype.normal={};gs.prototype.property={};gs.prototype.space=void 0;function yE(e,n){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new gs(r,i,n)}function Mp(e){return e.toLowerCase()}class xn{constructor(n,r){this.attribute=r,this.property=n}}xn.prototype.attribute="";xn.prototype.booleanish=!1;xn.prototype.boolean=!1;xn.prototype.commaOrSpaceSeparated=!1;xn.prototype.commaSeparated=!1;xn.prototype.defined=!1;xn.prototype.mustUseProperty=!1;xn.prototype.number=!1;xn.prototype.overloadedBoolean=!1;xn.prototype.property="";xn.prototype.spaceSeparated=!1;xn.prototype.space=void 0;let hL=0;const Le=pi(),Dt=pi(),jp=pi(),he=pi(),ft=pi(),fo=pi(),Dn=pi();function pi(){return 2**++hL}const Dp=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:Dt,commaOrSpaceSeparated:Dn,commaSeparated:fo,number:he,overloadedBoolean:jp,spaceSeparated:ft},Symbol.toStringTag,{value:"Module"})),Ih=Object.keys(Dp);class Om extends xn{constructor(n,r,i,l){let s=-1;if(super(n,r),Qb(this,"space",l),typeof i=="number")for(;++s<Ih.length;){const c=Ih[s];Qb(this,Ih[s],(i&Dp[c])===Dp[c])}}}Om.prototype.defined=!0;function Qb(e,n,r){r&&(e[n]=r)}function _o(e){const n={},r={};for(const[i,l]of Object.entries(e.properties)){const s=new Om(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),n[i]=s,r[Mp(i)]=i,r[Mp(s.attribute)]=i}return new gs(n,r,e.space)}const vE=_o({properties:{ariaActiveDescendant:null,ariaAtomic:Dt,ariaAutoComplete:null,ariaBusy:Dt,ariaChecked:Dt,ariaColCount:he,ariaColIndex:he,ariaColSpan:he,ariaControls:ft,ariaCurrent:null,ariaDescribedBy:ft,ariaDetails:null,ariaDisabled:Dt,ariaDropEffect:ft,ariaErrorMessage:null,ariaExpanded:Dt,ariaFlowTo:ft,ariaGrabbed:Dt,ariaHasPopup:null,ariaHidden:Dt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ft,ariaLevel:he,ariaLive:null,ariaModal:Dt,ariaMultiLine:Dt,ariaMultiSelectable:Dt,ariaOrientation:null,ariaOwns:ft,ariaPlaceholder:null,ariaPosInSet:he,ariaPressed:Dt,ariaReadOnly:Dt,ariaRelevant:null,ariaRequired:Dt,ariaRoleDescription:ft,ariaRowCount:he,ariaRowIndex:he,ariaRowSpan:he,ariaSelected:Dt,ariaSetSize:he,ariaSort:null,ariaValueMax:he,ariaValueMin:he,ariaValueNow:he,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function xE(e,n){return n in e?e[n]:n}function bE(e,n){return xE(e,n.toLowerCase())}const pL=_o({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fo,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:ft,autoFocus:Le,autoPlay:Le,blocking:ft,capture:null,charSet:null,checked:Le,cite:null,className:ft,cols:he,colSpan:null,content:null,contentEditable:Dt,controls:Le,controlsList:ft,coords:he|fo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:jp,draggable:Dt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:ft,height:he,hidden:jp,high:he,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:ft,itemRef:ft,itemScope:Le,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:he,manifest:null,max:null,maxLength:he,media:null,method:null,min:null,minLength:he,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Le,optimum:he,pattern:null,ping:ft,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:ft,required:Le,reversed:Le,rows:he,rowSpan:he,sandbox:ft,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shape:null,size:he,sizes:null,slot:null,span:he,spellCheck:Dt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:he,step:null,style:null,tabIndex:he,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:Dt,width:he,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ft,axis:null,background:null,bgColor:null,border:he,borderColor:null,bottomMargin:he,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:he,leftMargin:he,link:null,longDesc:null,lowSrc:null,marginHeight:he,marginWidth:he,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:he,rules:null,scheme:null,scrolling:Dt,standby:null,summary:null,text:null,topMargin:he,valueType:null,version:null,vAlign:null,vLink:null,vSpace:he,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:he,security:null,unselectable:null},space:"html",transform:bE}),mL=_o({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Dn,accentHeight:he,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:he,amplitude:he,arabicForm:null,ascent:he,attributeName:null,attributeType:null,azimuth:he,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:he,by:null,calcMode:null,capHeight:he,className:ft,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:he,diffuseConstant:he,direction:null,display:null,dur:null,divisor:he,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:he,enableBackground:null,end:null,event:null,exponent:he,externalResourcesRequired:null,fill:null,fillOpacity:he,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fo,g2:fo,glyphName:fo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:he,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:he,horizOriginX:he,horizOriginY:he,id:null,ideographic:he,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:he,k:he,k1:he,k2:he,k3:he,k4:he,kernelMatrix:Dn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:he,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:he,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:he,overlineThickness:he,paintOrder:null,panose1:null,path:null,pathLength:he,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:he,pointsAtY:he,pointsAtZ:he,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Dn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Dn,rev:Dn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Dn,requiredFeatures:Dn,requiredFonts:Dn,requiredFormats:Dn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:he,specularExponent:he,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:he,strikethroughThickness:he,string:null,stroke:null,strokeDashArray:Dn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:he,strokeOpacity:he,strokeWidth:null,style:null,surfaceScale:he,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Dn,tabIndex:he,tableValues:null,target:null,targetX:he,targetY:he,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Dn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:he,underlineThickness:he,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:he,values:null,vAlphabetic:he,vMathematical:he,vectorEffect:null,vHanging:he,vIdeographic:he,version:null,vertAdvY:he,vertOriginX:he,vertOriginY:he,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:he,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xE}),wE=_o({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),SE=_o({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:bE}),EE=_o({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),gL={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},yL=/[A-Z]/g,Zb=/-[a-z]/g,vL=/^data[-\w.:]+$/i;function xL(e,n){const r=Mp(n);let i=n,l=xn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&vL.test(n)){if(n.charAt(4)==="-"){const s=n.slice(5).replace(Zb,wL);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=n.slice(4);if(!Zb.test(s)){let c=s.replace(yL,bL);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}l=Om}return new l(i,n)}function bL(e){return"-"+e.toLowerCase()}function wL(e){return e.charAt(1).toUpperCase()}const SL=yE([vE,pL,wE,SE,EE],"html"),Pm=yE([vE,mL,wE,SE,EE],"svg");function uH(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function EL(e){return e.join(" ").trim()}var io={},Bh,Wb;function CL(){if(Wb)return Bh;Wb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
365
+ For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},pO="DialogDescriptionWarning",mO=({contentRef:e,descriptionId:n})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${H1(pO).contentName}}.`;return v.useEffect(()=>{const l=e.current?.getAttribute("aria-describedby");n&&l&&(document.getElementById(n)||console.warn(i))},[i,e,n]),null},pm=T1,F1=N1,mm=M1,ss=j1,us=D1,cs=P1,fs=z1,Bc=B1;const V1=pm,gO=mm,q1=v.forwardRef(({className:e,...n},r)=>g.jsx(ss,{className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n,ref:r}));q1.displayName=ss.displayName;const yO=Dc("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),gm=v.forwardRef(({side:e="right",className:n,children:r,...i},l)=>g.jsxs(gO,{children:[g.jsx(q1,{}),g.jsxs(us,{ref:l,className:ue(yO({side:e}),n),...i,children:[r,g.jsxs(Bc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[g.jsx(so,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));gm.displayName=us.displayName;const ym=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col space-y-2 text-center sm:text-left",e),...n});ym.displayName="SheetHeader";const vm=v.forwardRef(({className:e,...n},r)=>g.jsx(cs,{ref:r,className:ue("text-lg font-semibold text-foreground",e),...n}));vm.displayName=cs.displayName;const $1=v.forwardRef(({className:e,...n},r)=>g.jsx(fs,{ref:r,className:ue("text-sm text-muted-foreground",e),...n}));$1.displayName=fs.displayName;function Pb({className:e,...n}){return g.jsx("div",{className:ue("animate-pulse rounded-md bg-muted",e),...n})}const vO=["top","right","bottom","left"],Ma=Math.min,On=Math.max,dc=Math.round,Gu=Math.floor,Ar=e=>({x:e,y:e}),xO={left:"right",right:"left",bottom:"top",top:"bottom"},bO={start:"end",end:"start"};function yp(e,n,r){return On(e,Ma(n,r))}function Qr(e,n){return typeof e=="function"?e(n):e}function Zr(e){return e.split("-")[0]}function Ao(e){return e.split("-")[1]}function xm(e){return e==="x"?"y":"x"}function bm(e){return e==="y"?"height":"width"}const wO=new Set(["top","bottom"]);function Cr(e){return wO.has(Zr(e))?"y":"x"}function wm(e){return xm(Cr(e))}function SO(e,n,r){r===void 0&&(r=!1);const i=Ao(e),l=wm(e),s=bm(l);let c=l==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=hc(c)),[c,hc(c)]}function EO(e){const n=hc(e);return[vp(e),n,vp(n)]}function vp(e){return e.replace(/start|end/g,n=>bO[n])}const Lb=["left","right"],zb=["right","left"],CO=["top","bottom"],kO=["bottom","top"];function AO(e,n,r){switch(e){case"top":case"bottom":return r?n?zb:Lb:n?Lb:zb;case"left":case"right":return n?CO:kO;default:return[]}}function TO(e,n,r,i){const l=Ao(e);let s=AO(Zr(e),r==="start",i);return l&&(s=s.map(c=>c+"-"+l),n&&(s=s.concat(s.map(vp)))),s}function hc(e){return e.replace(/left|right|bottom|top/g,n=>xO[n])}function RO(e){return{top:0,right:0,bottom:0,left:0,...e}}function G1(e){return typeof e!="number"?RO(e):{top:e,right:e,bottom:e,left:e}}function pc(e){const{x:n,y:r,width:i,height:l}=e;return{width:i,height:l,top:r,left:n,right:n+i,bottom:r+l,x:n,y:r}}function Ib(e,n,r){let{reference:i,floating:l}=e;const s=Cr(n),c=wm(n),f=bm(c),d=Zr(n),h=s==="y",m=i.x+i.width/2-l.width/2,y=i.y+i.height/2-l.height/2,w=i[f]/2-l[f]/2;let b;switch(d){case"top":b={x:m,y:i.y-l.height};break;case"bottom":b={x:m,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y};break;case"left":b={x:i.x-l.width,y};break;default:b={x:i.x,y:i.y}}switch(Ao(n)){case"start":b[c]-=w*(r&&h?-1:1);break;case"end":b[c]+=w*(r&&h?-1:1);break}return b}const NO=async(e,n,r)=>{const{placement:i="bottom",strategy:l="absolute",middleware:s=[],platform:c}=r,f=s.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(n));let h=await c.getElementRects({reference:e,floating:n,strategy:l}),{x:m,y}=Ib(h,i,d),w=i,b={},S=0;for(let E=0;E<f.length;E++){const{name:T,fn:A}=f[E],{x:R,y:N,data:O,reset:L}=await A({x:m,y,initialPlacement:i,placement:w,strategy:l,middlewareData:b,rects:h,platform:c,elements:{reference:e,floating:n}});m=R??m,y=N??y,b={...b,[T]:{...b[T],...O}},L&&S<=50&&(S++,typeof L=="object"&&(L.placement&&(w=L.placement),L.rects&&(h=L.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:l}):L.rects),{x:m,y}=Ib(h,w,d)),E=-1)}return{x:m,y,placement:w,strategy:l,middlewareData:b}};async function Kl(e,n){var r;n===void 0&&(n={});const{x:i,y:l,platform:s,rects:c,elements:f,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:w=!1,padding:b=0}=Qr(n,e),S=G1(b),T=f[w?y==="floating"?"reference":"floating":y],A=pc(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(T)))==null||r?T:T.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:h,rootBoundary:m,strategy:d})),R=y==="floating"?{x:i,y:l,width:c.floating.width,height:c.floating.height}:c.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),O=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},L=pc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:R,offsetParent:N,strategy:d}):R);return{top:(A.top-L.top+S.top)/O.y,bottom:(L.bottom-A.bottom+S.bottom)/O.y,left:(A.left-L.left+S.left)/O.x,right:(L.right-A.right+S.right)/O.x}}const _O=e=>({name:"arrow",options:e,async fn(n){const{x:r,y:i,placement:l,rects:s,platform:c,elements:f,middlewareData:d}=n,{element:h,padding:m=0}=Qr(e,n)||{};if(h==null)return{};const y=G1(m),w={x:r,y:i},b=wm(l),S=bm(b),E=await c.getDimensions(h),T=b==="y",A=T?"top":"left",R=T?"bottom":"right",N=T?"clientHeight":"clientWidth",O=s.reference[S]+s.reference[b]-w[b]-s.floating[S],L=w[b]-s.reference[b],j=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let H=j?j[N]:0;(!H||!await(c.isElement==null?void 0:c.isElement(j)))&&(H=f.floating[N]||s.floating[S]);const $=O/2-L/2,Y=H/2-E[S]/2-1,D=Ma(y[A],Y),Z=Ma(y[R],Y),J=D,ne=H-E[S]-Z,G=H/2-E[S]/2+$,ae=yp(J,G,ne),z=!d.arrow&&Ao(l)!=null&&G!==ae&&s.reference[S]/2-(G<J?D:Z)-E[S]/2<0,Q=z?G<J?G-J:G-ne:0;return{[b]:w[b]+Q,data:{[b]:ae,centerOffset:G-ae-Q,...z&&{alignmentOffset:Q}},reset:z}}}),MO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,i;const{placement:l,middlewareData:s,rects:c,initialPlacement:f,platform:d,elements:h}=n,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:E=!0,...T}=Qr(e,n);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const A=Zr(l),R=Cr(f),N=Zr(f)===f,O=await(d.isRTL==null?void 0:d.isRTL(h.floating)),L=w||(N||!E?[hc(f)]:EO(f)),j=S!=="none";!w&&j&&L.push(...TO(f,E,S,O));const H=[f,...L],$=await Kl(n,T),Y=[];let D=((i=s.flip)==null?void 0:i.overflows)||[];if(m&&Y.push($[A]),y){const G=SO(l,c,O);Y.push($[G[0]],$[G[1]])}if(D=[...D,{placement:l,overflows:Y}],!Y.every(G=>G<=0)){var Z,J;const G=(((Z=s.flip)==null?void 0:Z.index)||0)+1,ae=H[G];if(ae&&(!(y==="alignment"?R!==Cr(ae):!1)||D.every(B=>Cr(B.placement)===R?B.overflows[0]>0:!0)))return{data:{index:G,overflows:D},reset:{placement:ae}};let z=(J=D.filter(Q=>Q.overflows[0]<=0).sort((Q,B)=>Q.overflows[1]-B.overflows[1])[0])==null?void 0:J.placement;if(!z)switch(b){case"bestFit":{var ne;const Q=(ne=D.filter(B=>{if(j){const ie=Cr(B.placement);return ie===R||ie==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(ie=>ie>0).reduce((ie,k)=>ie+k,0)]).sort((B,ie)=>B[1]-ie[1])[0])==null?void 0:ne[0];Q&&(z=Q);break}case"initialPlacement":z=f;break}if(l!==z)return{reset:{placement:z}}}return{}}}};function Bb(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function Ub(e){return vO.some(n=>e[n]>=0)}const jO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...l}=Qr(e,n);switch(i){case"referenceHidden":{const s=await Kl(n,{...l,elementContext:"reference"}),c=Bb(s,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Ub(c)}}}case"escaped":{const s=await Kl(n,{...l,altBoundary:!0}),c=Bb(s,r.floating);return{data:{escapedOffsets:c,escaped:Ub(c)}}}default:return{}}}}},Y1=new Set(["left","top"]);async function DO(e,n){const{placement:r,platform:i,elements:l}=e,s=await(i.isRTL==null?void 0:i.isRTL(l.floating)),c=Zr(r),f=Ao(r),d=Cr(r)==="y",h=Y1.has(c)?-1:1,m=s&&d?-1:1,y=Qr(n,e);let{mainAxis:w,crossAxis:b,alignmentAxis:S}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof S=="number"&&(b=f==="end"?S*-1:S),d?{x:b*m,y:w*h}:{x:w*h,y:b*m}}const OO=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var r,i;const{x:l,y:s,placement:c,middlewareData:f}=n,d=await DO(n,e);return c===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:l+d.x,y:s+d.y,data:{...d,placement:c}}}}},PO=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:i,placement:l}=n,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:T=>{let{x:A,y:R}=T;return{x:A,y:R}}},...d}=Qr(e,n),h={x:r,y:i},m=await Kl(n,d),y=Cr(Zr(l)),w=xm(y);let b=h[w],S=h[y];if(s){const T=w==="y"?"top":"left",A=w==="y"?"bottom":"right",R=b+m[T],N=b-m[A];b=yp(R,b,N)}if(c){const T=y==="y"?"top":"left",A=y==="y"?"bottom":"right",R=S+m[T],N=S-m[A];S=yp(R,S,N)}const E=f.fn({...n,[w]:b,[y]:S});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[w]:s,[y]:c}}}}}},LO=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:i,placement:l,rects:s,middlewareData:c}=n,{offset:f=0,mainAxis:d=!0,crossAxis:h=!0}=Qr(e,n),m={x:r,y:i},y=Cr(l),w=xm(y);let b=m[w],S=m[y];const E=Qr(f,n),T=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(d){const N=w==="y"?"height":"width",O=s.reference[w]-s.floating[N]+T.mainAxis,L=s.reference[w]+s.reference[N]-T.mainAxis;b<O?b=O:b>L&&(b=L)}if(h){var A,R;const N=w==="y"?"width":"height",O=Y1.has(Zr(l)),L=s.reference[y]-s.floating[N]+(O&&((A=c.offset)==null?void 0:A[y])||0)+(O?0:T.crossAxis),j=s.reference[y]+s.reference[N]+(O?0:((R=c.offset)==null?void 0:R[y])||0)-(O?T.crossAxis:0);S<L?S=L:S>j&&(S=j)}return{[w]:b,[y]:S}}}},zO=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var r,i;const{placement:l,rects:s,platform:c,elements:f}=n,{apply:d=()=>{},...h}=Qr(e,n),m=await Kl(n,h),y=Zr(l),w=Ao(l),b=Cr(l)==="y",{width:S,height:E}=s.floating;let T,A;y==="top"||y==="bottom"?(T=y,A=w===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(A=y,T=w==="end"?"top":"bottom");const R=E-m.top-m.bottom,N=S-m.left-m.right,O=Ma(E-m[T],R),L=Ma(S-m[A],N),j=!n.middlewareData.shift;let H=O,$=L;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&($=N),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(H=R),j&&!w){const D=On(m.left,0),Z=On(m.right,0),J=On(m.top,0),ne=On(m.bottom,0);b?$=S-2*(D!==0||Z!==0?D+Z:On(m.left,m.right)):H=E-2*(J!==0||ne!==0?J+ne:On(m.top,m.bottom))}await d({...n,availableWidth:$,availableHeight:H});const Y=await c.getDimensions(f.floating);return S!==Y.width||E!==Y.height?{reset:{rects:!0}}:{}}}};function Uc(){return typeof window<"u"}function To(e){return K1(e)?(e.nodeName||"").toLowerCase():"#document"}function Pn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Rr(e){var n;return(n=(K1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function K1(e){return Uc()?e instanceof Node||e instanceof Pn(e).Node:!1}function ur(e){return Uc()?e instanceof Element||e instanceof Pn(e).Element:!1}function Tr(e){return Uc()?e instanceof HTMLElement||e instanceof Pn(e).HTMLElement:!1}function Hb(e){return!Uc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pn(e).ShadowRoot}const IO=new Set(["inline","contents"]);function ds(e){const{overflow:n,overflowX:r,overflowY:i,display:l}=cr(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!IO.has(l)}const BO=new Set(["table","td","th"]);function UO(e){return BO.has(To(e))}const HO=[":popover-open",":modal"];function Hc(e){return HO.some(n=>{try{return e.matches(n)}catch{return!1}})}const FO=["transform","translate","scale","rotate","perspective"],VO=["transform","translate","scale","rotate","perspective","filter"],qO=["paint","layout","strict","content"];function Sm(e){const n=Em(),r=ur(e)?cr(e):e;return FO.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||VO.some(i=>(r.willChange||"").includes(i))||qO.some(i=>(r.contain||"").includes(i))}function $O(e){let n=ja(e);for(;Tr(n)&&!po(n);){if(Sm(n))return n;if(Hc(n))return null;n=ja(n)}return null}function Em(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const GO=new Set(["html","body","#document"]);function po(e){return GO.has(To(e))}function cr(e){return Pn(e).getComputedStyle(e)}function Fc(e){return ur(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ja(e){if(To(e)==="html")return e;const n=e.assignedSlot||e.parentNode||Hb(e)&&e.host||Rr(e);return Hb(n)?n.host:n}function X1(e){const n=ja(e);return po(n)?e.ownerDocument?e.ownerDocument.body:e.body:Tr(n)&&ds(n)?n:X1(n)}function Xl(e,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const l=X1(e),s=l===((i=e.ownerDocument)==null?void 0:i.body),c=Pn(l);if(s){const f=xp(c);return n.concat(c,c.visualViewport||[],ds(l)?l:[],f&&r?Xl(f):[])}return n.concat(l,Xl(l,[],r))}function xp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Q1(e){const n=cr(e);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const l=Tr(e),s=l?e.offsetWidth:r,c=l?e.offsetHeight:i,f=dc(r)!==s||dc(i)!==c;return f&&(r=s,i=c),{width:r,height:i,$:f}}function Cm(e){return ur(e)?e:e.contextElement}function co(e){const n=Cm(e);if(!Tr(n))return Ar(1);const r=n.getBoundingClientRect(),{width:i,height:l,$:s}=Q1(n);let c=(s?dc(r.width):r.width)/i,f=(s?dc(r.height):r.height)/l;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const YO=Ar(0);function Z1(e){const n=Pn(e);return!Em()||!n.visualViewport?YO:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function KO(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==Pn(e)?!1:n}function ci(e,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),s=Cm(e);let c=Ar(1);n&&(i?ur(i)&&(c=co(i)):c=co(e));const f=KO(s,r,i)?Z1(s):Ar(0);let d=(l.left+f.x)/c.x,h=(l.top+f.y)/c.y,m=l.width/c.x,y=l.height/c.y;if(s){const w=Pn(s),b=i&&ur(i)?Pn(i):i;let S=w,E=xp(S);for(;E&&i&&b!==S;){const T=co(E),A=E.getBoundingClientRect(),R=cr(E),N=A.left+(E.clientLeft+parseFloat(R.paddingLeft))*T.x,O=A.top+(E.clientTop+parseFloat(R.paddingTop))*T.y;d*=T.x,h*=T.y,m*=T.x,y*=T.y,d+=N,h+=O,S=Pn(E),E=xp(S)}}return pc({width:m,height:y,x:d,y:h})}function km(e,n){const r=Fc(e).scrollLeft;return n?n.left+r:ci(Rr(e)).left+r}function W1(e,n,r){r===void 0&&(r=!1);const i=e.getBoundingClientRect(),l=i.left+n.scrollLeft-(r?0:km(e,i)),s=i.top+n.scrollTop;return{x:l,y:s}}function XO(e){let{elements:n,rect:r,offsetParent:i,strategy:l}=e;const s=l==="fixed",c=Rr(i),f=n?Hc(n.floating):!1;if(i===c||f&&s)return r;let d={scrollLeft:0,scrollTop:0},h=Ar(1);const m=Ar(0),y=Tr(i);if((y||!y&&!s)&&((To(i)!=="body"||ds(c))&&(d=Fc(i)),Tr(i))){const b=ci(i);h=co(i),m.x=b.x+i.clientLeft,m.y=b.y+i.clientTop}const w=c&&!y&&!s?W1(c,d,!0):Ar(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+m.x+w.x,y:r.y*h.y-d.scrollTop*h.y+m.y+w.y}}function QO(e){return Array.from(e.getClientRects())}function ZO(e){const n=Rr(e),r=Fc(e),i=e.ownerDocument.body,l=On(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),s=On(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let c=-r.scrollLeft+km(e);const f=-r.scrollTop;return cr(i).direction==="rtl"&&(c+=On(n.clientWidth,i.clientWidth)-l),{width:l,height:s,x:c,y:f}}function WO(e,n){const r=Pn(e),i=Rr(e),l=r.visualViewport;let s=i.clientWidth,c=i.clientHeight,f=0,d=0;if(l){s=l.width,c=l.height;const h=Em();(!h||h&&n==="fixed")&&(f=l.offsetLeft,d=l.offsetTop)}return{width:s,height:c,x:f,y:d}}const JO=new Set(["absolute","fixed"]);function e4(e,n){const r=ci(e,!0,n==="fixed"),i=r.top+e.clientTop,l=r.left+e.clientLeft,s=Tr(e)?co(e):Ar(1),c=e.clientWidth*s.x,f=e.clientHeight*s.y,d=l*s.x,h=i*s.y;return{width:c,height:f,x:d,y:h}}function Fb(e,n,r){let i;if(n==="viewport")i=WO(e,r);else if(n==="document")i=ZO(Rr(e));else if(ur(n))i=e4(n,r);else{const l=Z1(e);i={x:n.x-l.x,y:n.y-l.y,width:n.width,height:n.height}}return pc(i)}function J1(e,n){const r=ja(e);return r===n||!ur(r)||po(r)?!1:cr(r).position==="fixed"||J1(r,n)}function t4(e,n){const r=n.get(e);if(r)return r;let i=Xl(e,[],!1).filter(f=>ur(f)&&To(f)!=="body"),l=null;const s=cr(e).position==="fixed";let c=s?ja(e):e;for(;ur(c)&&!po(c);){const f=cr(c),d=Sm(c);!d&&f.position==="fixed"&&(l=null),(s?!d&&!l:!d&&f.position==="static"&&!!l&&JO.has(l.position)||ds(c)&&!d&&J1(e,c))?i=i.filter(m=>m!==c):l=f,c=ja(c)}return n.set(e,i),i}function n4(e){let{element:n,boundary:r,rootBoundary:i,strategy:l}=e;const c=[...r==="clippingAncestors"?Hc(n)?[]:t4(n,this._c):[].concat(r),i],f=c[0],d=c.reduce((h,m)=>{const y=Fb(n,m,l);return h.top=On(y.top,h.top),h.right=Ma(y.right,h.right),h.bottom=Ma(y.bottom,h.bottom),h.left=On(y.left,h.left),h},Fb(n,f,l));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function r4(e){const{width:n,height:r}=Q1(e);return{width:n,height:r}}function a4(e,n,r){const i=Tr(n),l=Rr(n),s=r==="fixed",c=ci(e,!0,s,n);let f={scrollLeft:0,scrollTop:0};const d=Ar(0);function h(){d.x=km(l)}if(i||!i&&!s)if((To(n)!=="body"||ds(l))&&(f=Fc(n)),i){const b=ci(n,!0,s,n);d.x=b.x+n.clientLeft,d.y=b.y+n.clientTop}else l&&h();s&&!i&&l&&h();const m=l&&!i&&!s?W1(l,f):Ar(0),y=c.left+f.scrollLeft-d.x-m.x,w=c.top+f.scrollTop-d.y-m.y;return{x:y,y:w,width:c.width,height:c.height}}function Ph(e){return cr(e).position==="static"}function Vb(e,n){if(!Tr(e)||cr(e).position==="fixed")return null;if(n)return n(e);let r=e.offsetParent;return Rr(e)===r&&(r=r.ownerDocument.body),r}function eS(e,n){const r=Pn(e);if(Hc(e))return r;if(!Tr(e)){let l=ja(e);for(;l&&!po(l);){if(ur(l)&&!Ph(l))return l;l=ja(l)}return r}let i=Vb(e,n);for(;i&&UO(i)&&Ph(i);)i=Vb(i,n);return i&&po(i)&&Ph(i)&&!Sm(i)?r:i||$O(e)||r}const i4=async function(e){const n=this.getOffsetParent||eS,r=this.getDimensions,i=await r(e.floating);return{reference:a4(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function o4(e){return cr(e).direction==="rtl"}const l4={convertOffsetParentRelativeRectToViewportRelativeRect:XO,getDocumentElement:Rr,getClippingRect:n4,getOffsetParent:eS,getElementRects:i4,getClientRects:QO,getDimensions:r4,getScale:co,isElement:ur,isRTL:o4};function tS(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function s4(e,n){let r=null,i;const l=Rr(e);function s(){var f;clearTimeout(i),(f=r)==null||f.disconnect(),r=null}function c(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),s();const h=e.getBoundingClientRect(),{left:m,top:y,width:w,height:b}=h;if(f||n(),!w||!b)return;const S=Gu(y),E=Gu(l.clientWidth-(m+w)),T=Gu(l.clientHeight-(y+b)),A=Gu(m),N={rootMargin:-S+"px "+-E+"px "+-T+"px "+-A+"px",threshold:On(0,Ma(1,d))||1};let O=!0;function L(j){const H=j[0].intersectionRatio;if(H!==d){if(!O)return c();H?c(!1,H):i=setTimeout(()=>{c(!1,1e-7)},1e3)}H===1&&!tS(h,e.getBoundingClientRect())&&c(),O=!1}try{r=new IntersectionObserver(L,{...N,root:l.ownerDocument})}catch{r=new IntersectionObserver(L,N)}r.observe(e)}return c(!0),s}function u4(e,n,r,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,h=Cm(e),m=l||s?[...h?Xl(h):[],...Xl(n)]:[];m.forEach(A=>{l&&A.addEventListener("scroll",r,{passive:!0}),s&&A.addEventListener("resize",r)});const y=h&&f?s4(h,r):null;let w=-1,b=null;c&&(b=new ResizeObserver(A=>{let[R]=A;R&&R.target===h&&b&&(b.unobserve(n),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var N;(N=b)==null||N.observe(n)})),r()}),h&&!d&&b.observe(h),b.observe(n));let S,E=d?ci(e):null;d&&T();function T(){const A=ci(e);E&&!tS(E,A)&&r(),E=A,S=requestAnimationFrame(T)}return r(),()=>{var A;m.forEach(R=>{l&&R.removeEventListener("scroll",r),s&&R.removeEventListener("resize",r)}),y?.(),(A=b)==null||A.disconnect(),b=null,d&&cancelAnimationFrame(S)}}const c4=OO,f4=PO,d4=MO,h4=zO,p4=jO,qb=_O,m4=LO,g4=(e,n,r)=>{const i=new Map,l={platform:l4,...r},s={...l.platform,_c:i};return NO(e,n,{...l,platform:s})};var y4=typeof document<"u",v4=function(){},ac=y4?v.useLayoutEffect:v4;function mc(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,i,l;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==n.length)return!1;for(i=r;i--!==0;)if(!mc(e[i],n[i]))return!1;return!0}if(l=Object.keys(e),r=l.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(n,l[i]))return!1;for(i=r;i--!==0;){const s=l[i];if(!(s==="_owner"&&e.$$typeof)&&!mc(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}function nS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $b(e,n){const r=nS(e);return Math.round(n*r)/r}function Lh(e){const n=v.useRef(e);return ac(()=>{n.current=e}),n}function x4(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:l,elements:{reference:s,floating:c}={},transform:f=!0,whileElementsMounted:d,open:h}=e,[m,y]=v.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[w,b]=v.useState(i);mc(w,i)||b(i);const[S,E]=v.useState(null),[T,A]=v.useState(null),R=v.useCallback(B=>{B!==j.current&&(j.current=B,E(B))},[]),N=v.useCallback(B=>{B!==H.current&&(H.current=B,A(B))},[]),O=s||S,L=c||T,j=v.useRef(null),H=v.useRef(null),$=v.useRef(m),Y=d!=null,D=Lh(d),Z=Lh(l),J=Lh(h),ne=v.useCallback(()=>{if(!j.current||!H.current)return;const B={placement:n,strategy:r,middleware:w};Z.current&&(B.platform=Z.current),g4(j.current,H.current,B).then(ie=>{const k={...ie,isPositioned:J.current!==!1};G.current&&!mc($.current,k)&&($.current=k,wo.flushSync(()=>{y(k)}))})},[w,n,r,Z,J]);ac(()=>{h===!1&&$.current.isPositioned&&($.current.isPositioned=!1,y(B=>({...B,isPositioned:!1})))},[h]);const G=v.useRef(!1);ac(()=>(G.current=!0,()=>{G.current=!1}),[]),ac(()=>{if(O&&(j.current=O),L&&(H.current=L),O&&L){if(D.current)return D.current(O,L,ne);ne()}},[O,L,ne,D,Y]);const ae=v.useMemo(()=>({reference:j,floating:H,setReference:R,setFloating:N}),[R,N]),z=v.useMemo(()=>({reference:O,floating:L}),[O,L]),Q=v.useMemo(()=>{const B={position:r,left:0,top:0};if(!z.floating)return B;const ie=$b(z.floating,m.x),k=$b(z.floating,m.y);return f?{...B,transform:"translate("+ie+"px, "+k+"px)",...nS(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ie,top:k}},[r,f,z.floating,m.x,m.y]);return v.useMemo(()=>({...m,update:ne,refs:ae,elements:z,floatingStyles:Q}),[m,ne,ae,z,Q])}const b4=e=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:l}=typeof e=="function"?e(r):e;return i&&n(i)?i.current!=null?qb({element:i.current,padding:l}).fn(r):{}:i?qb({element:i,padding:l}).fn(r):{}}}},w4=(e,n)=>({...c4(e),options:[e,n]}),S4=(e,n)=>({...f4(e),options:[e,n]}),E4=(e,n)=>({...m4(e),options:[e,n]}),C4=(e,n)=>({...d4(e),options:[e,n]}),k4=(e,n)=>({...h4(e),options:[e,n]}),A4=(e,n)=>({...p4(e),options:[e,n]}),T4=(e,n)=>({...b4(e),options:[e,n]});var R4="Arrow",rS=v.forwardRef((e,n)=>{const{children:r,width:i=10,height:l=5,...s}=e;return g.jsx(_e.svg,{...s,ref:n,width:i,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});rS.displayName=R4;var N4=rS;function aS(e){const[n,r]=v.useState(void 0);return $t(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const s=l[0];let c,f;if("borderBoxSize"in s){const d=s.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,f=h.blockSize}else c=e.offsetWidth,f=e.offsetHeight;r({width:c,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),n}var Am="Popper",[iS,Ro]=Jn(Am),[_4,oS]=iS(Am),lS=e=>{const{__scopePopper:n,children:r}=e,[i,l]=v.useState(null);return g.jsx(_4,{scope:n,anchor:i,onAnchorChange:l,children:r})};lS.displayName=Am;var sS="PopperAnchor",uS=v.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:i,...l}=e,s=oS(sS,r),c=v.useRef(null),f=ze(n,c),d=v.useRef(null);return v.useEffect(()=>{const h=d.current;d.current=i?.current||c.current,h!==d.current&&s.onAnchorChange(d.current)}),i?null:g.jsx(_e.div,{...l,ref:f})});uS.displayName=sS;var Tm="PopperContent",[M4,j4]=iS(Tm),cS=v.forwardRef((e,n)=>{const{__scopePopper:r,side:i="bottom",sideOffset:l=0,align:s="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:y="partial",hideWhenDetached:w=!1,updatePositionStrategy:b="optimized",onPlaced:S,...E}=e,T=oS(Tm,r),[A,R]=v.useState(null),N=ze(n,le=>R(le)),[O,L]=v.useState(null),j=aS(O),H=j?.width??0,$=j?.height??0,Y=i+(s!=="center"?"-"+s:""),D=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},Z=Array.isArray(h)?h:[h],J=Z.length>0,ne={padding:D,boundary:Z.filter(O4),altBoundary:J},{refs:G,floatingStyles:ae,placement:z,isPositioned:Q,middlewareData:B}=x4({strategy:"fixed",placement:Y,whileElementsMounted:(...le)=>u4(...le,{animationFrame:b==="always"}),elements:{reference:T.anchor},middleware:[w4({mainAxis:l+$,alignmentAxis:c}),d&&S4({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?E4():void 0,...ne}),d&&C4({...ne}),k4({...ne,apply:({elements:le,rects:ve,availableWidth:Ve,availableHeight:De})=>{const{width:Be,height:We}=ve.reference,Ke=le.floating.style;Ke.setProperty("--radix-popper-available-width",`${Ve}px`),Ke.setProperty("--radix-popper-available-height",`${De}px`),Ke.setProperty("--radix-popper-anchor-width",`${Be}px`),Ke.setProperty("--radix-popper-anchor-height",`${We}px`)}}),O&&T4({element:O,padding:f}),P4({arrowWidth:H,arrowHeight:$}),w&&A4({strategy:"referenceHidden",...ne})]}),[ie,k]=hS(z),W=Tt(S);$t(()=>{Q&&W?.()},[Q,W]);const se=B.arrow?.x,M=B.arrow?.y,ce=B.arrow?.centerOffset!==0,[Ee,pe]=v.useState();return $t(()=>{A&&pe(window.getComputedStyle(A).zIndex)},[A]),g.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:Q?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ee,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(M4,{scope:r,placedSide:ie,onArrowChange:L,arrowX:se,arrowY:M,shouldHideArrow:ce,children:g.jsx(_e.div,{"data-side":ie,"data-align":k,...E,ref:N,style:{...E.style,animation:Q?void 0:"none"}})})})});cS.displayName=Tm;var fS="PopperArrow",D4={top:"bottom",right:"left",bottom:"top",left:"right"},dS=v.forwardRef(function(n,r){const{__scopePopper:i,...l}=n,s=j4(fS,i),c=D4[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(N4,{...l,ref:r,style:{...l.style,display:"block"}})})});dS.displayName=fS;function O4(e){return e!==null}var P4=e=>({name:"transformOrigin",options:e,fn(n){const{placement:r,rects:i,middlewareData:l}=n,c=l.arrow?.centerOffset!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[h,m]=hS(r),y={start:"0%",center:"50%",end:"100%"}[m],w=(l.arrow?.x??0)+f/2,b=(l.arrow?.y??0)+d/2;let S="",E="";return h==="bottom"?(S=c?y:`${w}px`,E=`${-d}px`):h==="top"?(S=c?y:`${w}px`,E=`${i.floating.height+d}px`):h==="right"?(S=`${-d}px`,E=c?y:`${b}px`):h==="left"&&(S=`${i.floating.width+d}px`,E=c?y:`${b}px`),{data:{x:S,y:E}}}});function hS(e){const[n,r="center"]=e.split("-");return[n,r]}var Rm=lS,Nm=uS,_m=cS,Mm=dS,[Vc,tH]=Jn("Tooltip",[Ro]),qc=Ro(),pS="TooltipProvider",L4=700,bp="tooltip.open",[z4,jm]=Vc(pS),mS=e=>{const{__scopeTooltip:n,delayDuration:r=L4,skipDelayDuration:i=300,disableHoverableContent:l=!1,children:s}=e,c=v.useRef(!0),f=v.useRef(!1),d=v.useRef(0);return v.useEffect(()=>{const h=d.current;return()=>window.clearTimeout(h)},[]),g.jsx(z4,{scope:n,isOpenDelayedRef:c,delayDuration:r,onOpen:v.useCallback(()=>{window.clearTimeout(d.current),c.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.current=!0,i)},[i]),isPointerInTransitRef:f,onPointerInTransitChange:v.useCallback(h=>{f.current=h},[]),disableHoverableContent:l,children:s})};mS.displayName=pS;var Ql="Tooltip",[I4,$c]=Vc(Ql),gS=e=>{const{__scopeTooltip:n,children:r,open:i,defaultOpen:l,onOpenChange:s,disableHoverableContent:c,delayDuration:f}=e,d=jm(Ql,e.__scopeTooltip),h=qc(n),[m,y]=v.useState(null),w=kr(),b=v.useRef(0),S=c??d.disableHoverableContent,E=f??d.delayDuration,T=v.useRef(!1),[A,R]=_a({prop:i,defaultProp:l??!1,onChange:H=>{H?(d.onOpen(),document.dispatchEvent(new CustomEvent(bp))):d.onClose(),s?.(H)},caller:Ql}),N=v.useMemo(()=>A?T.current?"delayed-open":"instant-open":"closed",[A]),O=v.useCallback(()=>{window.clearTimeout(b.current),b.current=0,T.current=!1,R(!0)},[R]),L=v.useCallback(()=>{window.clearTimeout(b.current),b.current=0,R(!1)},[R]),j=v.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{T.current=!0,R(!0),b.current=0},E)},[E,R]);return v.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),g.jsx(Rm,{...h,children:g.jsx(I4,{scope:n,contentId:w,open:A,stateAttribute:N,trigger:m,onTriggerChange:y,onTriggerEnter:v.useCallback(()=>{d.isOpenDelayedRef.current?j():O()},[d.isOpenDelayedRef,j,O]),onTriggerLeave:v.useCallback(()=>{S?L():(window.clearTimeout(b.current),b.current=0)},[L,S]),onOpen:O,onClose:L,disableHoverableContent:S,children:r})})};gS.displayName=Ql;var wp="TooltipTrigger",yS=v.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,l=$c(wp,r),s=jm(wp,r),c=qc(r),f=v.useRef(null),d=ze(n,f,l.onTriggerChange),h=v.useRef(!1),m=v.useRef(!1),y=v.useCallback(()=>h.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),g.jsx(Nm,{asChild:!0,...c,children:g.jsx(_e.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...i,ref:d,onPointerMove:me(e.onPointerMove,w=>{w.pointerType!=="touch"&&!m.current&&!s.isPointerInTransitRef.current&&(l.onTriggerEnter(),m.current=!0)}),onPointerLeave:me(e.onPointerLeave,()=>{l.onTriggerLeave(),m.current=!1}),onPointerDown:me(e.onPointerDown,()=>{l.open&&l.onClose(),h.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:me(e.onFocus,()=>{h.current||l.onOpen()}),onBlur:me(e.onBlur,l.onClose),onClick:me(e.onClick,l.onClose)})})});yS.displayName=wp;var B4="TooltipPortal",[nH,U4]=Vc(B4,{forceMount:void 0}),mo="TooltipContent",vS=v.forwardRef((e,n)=>{const r=U4(mo,e.__scopeTooltip),{forceMount:i=r.forceMount,side:l="top",...s}=e,c=$c(mo,e.__scopeTooltip);return g.jsx(un,{present:i||c.open,children:c.disableHoverableContent?g.jsx(xS,{side:l,...s,ref:n}):g.jsx(H4,{side:l,...s,ref:n})})}),H4=v.forwardRef((e,n)=>{const r=$c(mo,e.__scopeTooltip),i=jm(mo,e.__scopeTooltip),l=v.useRef(null),s=ze(n,l),[c,f]=v.useState(null),{trigger:d,onClose:h}=r,m=l.current,{onPointerInTransitChange:y}=i,w=v.useCallback(()=>{f(null),y(!1)},[y]),b=v.useCallback((S,E)=>{const T=S.currentTarget,A={x:S.clientX,y:S.clientY},R=G4(A,T.getBoundingClientRect()),N=Y4(A,R),O=K4(E.getBoundingClientRect()),L=Q4([...N,...O]);f(L),y(!0)},[y]);return v.useEffect(()=>()=>w(),[w]),v.useEffect(()=>{if(d&&m){const S=T=>b(T,m),E=T=>b(T,d);return d.addEventListener("pointerleave",S),m.addEventListener("pointerleave",E),()=>{d.removeEventListener("pointerleave",S),m.removeEventListener("pointerleave",E)}}},[d,m,b,w]),v.useEffect(()=>{if(c){const S=E=>{const T=E.target,A={x:E.clientX,y:E.clientY},R=d?.contains(T)||m?.contains(T),N=!X4(A,c);R?w():N&&(w(),h())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[d,m,c,h,w]),g.jsx(xS,{...e,ref:s})}),[F4,V4]=Vc(Ql,{isInside:!1}),q4=bw("TooltipContent"),xS=v.forwardRef((e,n)=>{const{__scopeTooltip:r,children:i,"aria-label":l,onEscapeKeyDown:s,onPointerDownOutside:c,...f}=e,d=$c(mo,r),h=qc(r),{onClose:m}=d;return v.useEffect(()=>(document.addEventListener(bp,m),()=>document.removeEventListener(bp,m)),[m]),v.useEffect(()=>{if(d.trigger){const y=w=>{w.target?.contains(d.trigger)&&m()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[d.trigger,m]),g.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:m,children:g.jsxs(_m,{"data-state":d.stateAttribute,...h,...f,ref:n,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(q4,{children:i}),g.jsx(F4,{scope:r,isInside:!0,children:g.jsx(S_,{id:d.contentId,role:"tooltip",children:l||i})})]})})});vS.displayName=mo;var bS="TooltipArrow",$4=v.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,l=qc(r);return V4(bS,r).isInside?null:g.jsx(Mm,{...l,...i,ref:n})});$4.displayName=bS;function G4(e,n){const r=Math.abs(n.top-e.y),i=Math.abs(n.bottom-e.y),l=Math.abs(n.right-e.x),s=Math.abs(n.left-e.x);switch(Math.min(r,i,l,s)){case s:return"left";case l:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function Y4(e,n,r=5){const i=[];switch(n){case"top":i.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":i.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":i.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":i.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return i}function K4(e){const{top:n,right:r,bottom:i,left:l}=e;return[{x:l,y:n},{x:r,y:n},{x:r,y:i},{x:l,y:i}]}function X4(e,n){const{x:r,y:i}=e;let l=!1;for(let s=0,c=n.length-1;s<n.length;c=s++){const f=n[s],d=n[c],h=f.x,m=f.y,y=d.x,w=d.y;m>i!=w>i&&r<(y-h)*(i-m)/(w-m)+h&&(l=!l)}return l}function Q4(e){const n=e.slice();return n.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),Z4(n)}function Z4(e){if(e.length<=1)return e.slice();const n=[];for(let i=0;i<e.length;i++){const l=e[i];for(;n.length>=2;){const s=n[n.length-1],c=n[n.length-2];if((s.x-c.x)*(l.y-c.y)>=(s.y-c.y)*(l.x-c.x))n.pop();else break}n.push(l)}n.pop();const r=[];for(let i=e.length-1;i>=0;i--){const l=e[i];for(;r.length>=2;){const s=r[r.length-1],c=r[r.length-2];if((s.x-c.x)*(l.y-c.y)>=(s.y-c.y)*(l.x-c.x))r.pop();else break}r.push(l)}return r.pop(),n.length===1&&r.length===1&&n[0].x===r[0].x&&n[0].y===r[0].y?n:n.concat(r)}var W4=mS,J4=gS,eP=yS,wS=vS;const tP=W4,nP=J4,rP=eP,SS=v.forwardRef(({className:e,sideOffset:n=4,...r},i)=>g.jsx(wS,{ref:i,sideOffset:n,className:ue("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));SS.displayName=wS.displayName;const aP="sidebar_state",iP=3600*24*7,oP="16rem",lP="18rem",sP="3rem",uP="b",ES=v.createContext(null);function Gc(){const e=v.useContext(ES);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const CS=v.forwardRef(({defaultOpen:e=!0,open:n,onOpenChange:r,className:i,style:l,children:s,...c},f)=>{const d=f1(),[h,m]=v.useState(!1),[y,w]=v.useState(e),b=n??y,S=v.useCallback(R=>{const N=typeof R=="function"?R(b):R;r?r(N):w(N),document.cookie=`${aP}=${N}; path=/; max-age=${iP}`},[r,b]),E=v.useCallback(()=>d?m(R=>!R):S(R=>!R),[d,S,m]);v.useEffect(()=>{const R=N=>{N.key===uP&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),E())};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[E]);const T=b?"expanded":"collapsed",A=v.useMemo(()=>({state:T,open:b,setOpen:S,isMobile:d,openMobile:h,setOpenMobile:m,toggleSidebar:E}),[T,b,S,d,h,m,E]);return g.jsx(ES.Provider,{value:A,children:g.jsx(tP,{delayDuration:0,children:g.jsx("div",{style:{"--sidebar-width":oP,"--sidebar-width-icon":sP,...l},className:ue("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",i),ref:f,...c,children:s})})})});CS.displayName="SidebarProvider";const kS=v.forwardRef(({side:e="left",variant:n="sidebar",collapsible:r="offcanvas",className:i,children:l,...s},c)=>{const{isMobile:f,state:d,openMobile:h,setOpenMobile:m}=Gc();return r==="none"?g.jsx("div",{className:ue("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",i),ref:c,...s,children:l}):f?g.jsx(V1,{open:h,onOpenChange:m,...s,children:g.jsxs(gm,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":lP},side:e,children:[g.jsxs(ym,{className:"sr-only",children:[g.jsx(vm,{children:"Sidebar"}),g.jsx($1,{children:"Displays the mobile sidebar."})]}),g.jsx("div",{className:"flex h-full w-full flex-col",children:l})]})}):g.jsxs("div",{ref:c,className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":d==="collapsed"?r:"","data-variant":n,"data-side":e,children:[g.jsx("div",{className:ue("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",n==="floating"||n==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),g.jsx("div",{className:ue("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",n==="floating"||n==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...s,children:g.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:l})})]})});kS.displayName="Sidebar";const AS=v.forwardRef(({className:e,onClick:n,...r},i)=>{const{toggleSidebar:l}=Gc();return g.jsxs(vt,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:ue("h-7 w-7",e),onClick:s=>{n?.(s),l()},...r,children:[g.jsx(qM,{}),g.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});AS.displayName="SidebarTrigger";const cP=v.forwardRef(({className:e,...n},r)=>{const{toggleSidebar:i}=Gc();return g.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:ue("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...n})});cP.displayName="SidebarRail";const TS=v.forwardRef(({className:e,...n},r)=>g.jsx("main",{ref:r,className:ue("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...n}));TS.displayName="SidebarInset";const fP=v.forwardRef(({className:e,...n},r)=>g.jsx(d1,{ref:r,"data-sidebar":"input",className:ue("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...n}));fP.displayName="SidebarInput";const RS=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"header",className:ue("flex flex-col gap-2 p-2",e),...n}));RS.displayName="SidebarHeader";const NS=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"footer",className:ue("flex flex-col gap-2 p-2",e),...n}));NS.displayName="SidebarFooter";const dP=v.forwardRef(({className:e,...n},r)=>g.jsx(m1,{ref:r,"data-sidebar":"separator",className:ue("mx-2 w-auto bg-sidebar-border",e),...n}));dP.displayName="SidebarSeparator";const _S=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"content",className:ue("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...n}));_S.displayName="SidebarContent";const Ol=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"group",className:ue("relative flex w-full min-w-0 flex-col p-2",e),...n}));Ol.displayName="SidebarGroup";const Pl=v.forwardRef(({className:e,asChild:n=!1,...r},i)=>{const l=n?So:"div";return g.jsx(l,{ref:i,"data-sidebar":"group-label",className:ue("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})});Pl.displayName="SidebarGroupLabel";const hP=v.forwardRef(({className:e,asChild:n=!1,...r},i)=>{const l=n?So:"button";return g.jsx(l,{ref:i,"data-sidebar":"group-action",className:ue("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...r})});hP.displayName="SidebarGroupAction";const Ll=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"group-content",className:ue("w-full text-sm",e),...n}));Ll.displayName="SidebarGroupContent";const ai=v.forwardRef(({className:e,...n},r)=>g.jsx("ul",{ref:r,"data-sidebar":"menu",className:ue("flex w-full min-w-0 flex-col gap-1",e),...n}));ai.displayName="SidebarMenu";const ii=v.forwardRef(({className:e,...n},r)=>g.jsx("li",{ref:r,"data-sidebar":"menu-item",className:ue("group/menu-item relative",e),...n}));ii.displayName="SidebarMenuItem";const pP=Dc("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),oi=v.forwardRef(({asChild:e=!1,isActive:n=!1,variant:r="default",size:i="default",tooltip:l,className:s,...c},f)=>{const d=e?So:"button",{isMobile:h,state:m}=Gc(),y=g.jsx(d,{ref:f,"data-sidebar":"menu-button","data-size":i,"data-active":n,className:ue(pP({variant:r,size:i}),s),...c});return l?(typeof l=="string"&&(l={children:l}),g.jsxs(nP,{children:[g.jsx(rP,{asChild:!0,children:y}),g.jsx(SS,{side:"right",align:"center",hidden:m!=="collapsed"||h,...l})]})):y});oi.displayName="SidebarMenuButton";const mP=v.forwardRef(({className:e,asChild:n=!1,showOnHover:r=!1,...i},l)=>{const s=n?So:"button";return g.jsx(s,{ref:l,"data-sidebar":"menu-action",className:ue("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...i})});mP.displayName="SidebarMenuAction";const Sp=v.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:ue("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-full px-1.5 text-xs font-semibold tabular-nums shadow-sm","transition-all duration-200 ease-in-out hover:scale-110","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...n}));Sp.displayName="SidebarMenuBadge";const gP=v.forwardRef(({className:e,showIcon:n=!1,...r},i)=>{const l=v.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return g.jsxs("div",{ref:i,"data-sidebar":"menu-skeleton",className:ue("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[n&&g.jsx(Pb,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),g.jsx(Pb,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]})});gP.displayName="SidebarMenuSkeleton";const yP=v.forwardRef(({className:e,...n},r)=>g.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:ue("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...n}));yP.displayName="SidebarMenuSub";const vP=v.forwardRef(({...e},n)=>g.jsx("li",{ref:n,...e}));vP.displayName="SidebarMenuSubItem";const xP=v.forwardRef(({asChild:e=!1,size:n="md",isActive:r,className:i,...l},s)=>{const c=e?So:"a";return g.jsx(c,{ref:s,"data-sidebar":"menu-sub-button","data-size":n,"data-active":r,className:ue("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",n==="sm"&&"text-xs",n==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),...l})});xP.displayName="SidebarMenuSubButton";const bP="1.0.73",wP={version:bP};function SP({className:e}){return g.jsxs("svg",{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",className:e,children:[g.jsx("path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4"}),g.jsx("path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3"}),g.jsx("path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35"}),g.jsx("path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14"})]})}const EP=[{title:"Home",url:"/",icon:TM},{title:"Role",url:"/context/role",icon:yj},{title:"Skills",url:"/agents",icon:Hl}],CP=[{title:"Tasks",url:"/proposals",icon:Kw},{title:"Code",url:"/code",icon:sM},{title:"Utilities",url:"/utilities",icon:wj},{title:"Schedule",url:"/schedule",icon:W_},{title:"Activity",url:"/activity",icon:Y_}],kP=[{title:"Overview",url:"/context/project",icon:uc},{title:"Architecture",url:"/context/architecture",icon:WM},{title:"Knowledge",url:"/context/knowledge",icon:Q_},{title:"Resources",url:"/resources",icon:wM}],AP=[{title:"Source Control",url:"/git",icon:Xw},{title:"Terminal",url:"/terminal",icon:fj},{title:"Identity",url:"/identity",icon:NM}],TP=[{title:"Documentation",url:"https://docs.coconut.dev/studio",icon:FM,external:!0},{title:"Settings",url:"/settings/user",icon:ej}];function RP(){const{badges:e}=qN();return g.jsxs(kS,{className:"bg-sidebar border-r border-sidebar-border",children:[g.jsx(RS,{children:g.jsx(ai,{children:g.jsx(ii,{children:g.jsx(oi,{size:"lg",asChild:!0,className:"[&>svg]:!size-8",children:g.jsxs(Sr,{to:"/",children:[g.jsx(SP,{className:"size-8"}),g.jsxs("div",{className:"flex flex-col gap-0.5",children:[g.jsxs("span",{className:"font-semibold",children:[g.jsx("span",{className:"bg-gradient-to-r from-amber-500 via-orange-500 to-yellow-600 bg-clip-text text-transparent",children:"Coconut"}),g.jsx("span",{children:" Studio"})]}),g.jsxs("span",{className:"text-xs text-muted-foreground",children:["v",wP.version]})]})]})})})})}),g.jsxs(_S,{children:[g.jsxs(Ol,{children:[g.jsx(Pl,{children:"Agent"}),g.jsx(Ll,{children:g.jsx(ai,{children:EP.map(n=>g.jsx(ii,{children:g.jsx(oi,{asChild:!0,children:g.jsxs(Sr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})})},n.title))})})]}),g.jsxs(Ol,{children:[g.jsx(Pl,{children:"Work"}),g.jsx(Ll,{children:g.jsx(ai,{children:CP.map(n=>{let r=0;return n.title==="Code"&&e.codeSessions>0?r=e.codeSessions:n.title==="Schedule"&&e.runningScheduledJobs>0&&(r=e.runningScheduledJobs),g.jsxs(ii,{children:[g.jsx(oi,{asChild:!0,children:g.jsxs(Sr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})}),r>0&&g.jsx(Sp,{className:"bg-blue-600 text-white dark:bg-blue-500",children:r})]},n.title)})})})]}),g.jsxs(Ol,{children:[g.jsx(Pl,{children:"Assets"}),g.jsx(Ll,{children:g.jsx(ai,{children:kP.map(n=>g.jsx(ii,{children:g.jsx(oi,{asChild:!0,children:g.jsxs(Sr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})})},n.title))})})]}),g.jsxs(Ol,{children:[g.jsx(Pl,{children:"System"}),g.jsx(Ll,{children:g.jsx(ai,{children:AP.map(n=>{let r=0;return n.title==="Source Control"&&e.gitChanges>0?r=e.gitChanges:n.title==="Terminal"&&e.terminalSessions>0&&(r=e.terminalSessions),g.jsxs(ii,{children:[g.jsx(oi,{asChild:!0,children:g.jsxs(Sr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})}),r>0&&g.jsx(Sp,{className:"bg-blue-600 text-white dark:bg-blue-500",children:r})]},n.title)})})})]})]}),g.jsx(NS,{children:g.jsx(ai,{children:TP.map(n=>g.jsx(ii,{children:g.jsx(oi,{asChild:!0,children:n.external?g.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]}):g.jsxs(Sr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})})},n.title))})})]})}function Ep(e,[n,r]){return Math.min(r,Math.max(n,e))}var NP=v.createContext(void 0);function Yc(e){const n=v.useContext(NP);return e||n||"ltr"}function MS(e){const n=v.useRef({value:e,previous:e});return v.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var _P=[" ","Enter","ArrowUp","ArrowDown"],MP=[" ","Enter"],fi="Select",[Kc,Xc,jP]=_c(fi),[No,rH]=Jn(fi,[jP,Ro]),Qc=Ro(),[DP,Da]=No(fi),[OP,PP]=No(fi),jS=e=>{const{__scopeSelect:n,children:r,open:i,defaultOpen:l,onOpenChange:s,value:c,defaultValue:f,onValueChange:d,dir:h,name:m,autoComplete:y,disabled:w,required:b,form:S}=e,E=Qc(n),[T,A]=v.useState(null),[R,N]=v.useState(null),[O,L]=v.useState(!1),j=Yc(h),[H,$]=_a({prop:i,defaultProp:l??!1,onChange:s,caller:fi}),[Y,D]=_a({prop:c,defaultProp:f,onChange:d,caller:fi}),Z=v.useRef(null),J=T?S||!!T.closest("form"):!0,[ne,G]=v.useState(new Set),ae=Array.from(ne).map(z=>z.props.value).join(";");return g.jsx(Rm,{...E,children:g.jsxs(DP,{required:b,scope:n,trigger:T,onTriggerChange:A,valueNode:R,onValueNodeChange:N,valueNodeHasChildren:O,onValueNodeHasChildrenChange:L,contentId:kr(),value:Y,onValueChange:D,open:H,onOpenChange:$,dir:j,triggerPointerDownPosRef:Z,disabled:w,children:[g.jsx(Kc.Provider,{scope:n,children:g.jsx(OP,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(z=>{G(Q=>new Set(Q).add(z))},[]),onNativeOptionRemove:v.useCallback(z=>{G(Q=>{const B=new Set(Q);return B.delete(z),B})},[]),children:r})}),J?g.jsxs(nE,{"aria-hidden":!0,required:b,tabIndex:-1,name:m,autoComplete:y,value:Y,onChange:z=>D(z.target.value),disabled:w,form:S,children:[Y===void 0?g.jsx("option",{value:""}):null,Array.from(ne)]},ae):null]})})};jS.displayName=fi;var DS="SelectTrigger",OS=v.forwardRef((e,n)=>{const{__scopeSelect:r,disabled:i=!1,...l}=e,s=Qc(r),c=Da(DS,r),f=c.disabled||i,d=ze(n,c.onTriggerChange),h=Xc(r),m=v.useRef("touch"),[y,w,b]=aE(E=>{const T=h().filter(N=>!N.disabled),A=T.find(N=>N.value===c.value),R=iE(T,E,A);R!==void 0&&c.onValueChange(R.value)}),S=E=>{f||(c.onOpenChange(!0),b()),E&&(c.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return g.jsx(Nm,{asChild:!0,...s,children:g.jsx(_e.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":rE(c.value)?"":void 0,...l,ref:d,onClick:me(l.onClick,E=>{E.currentTarget.focus(),m.current!=="mouse"&&S(E)}),onPointerDown:me(l.onPointerDown,E=>{m.current=E.pointerType;const T=E.target;T.hasPointerCapture(E.pointerId)&&T.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(S(E),E.preventDefault())}),onKeyDown:me(l.onKeyDown,E=>{const T=y.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(T&&E.key===" ")&&_P.includes(E.key)&&(S(),E.preventDefault())})})})});OS.displayName=DS;var PS="SelectValue",LS=v.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:l,children:s,placeholder:c="",...f}=e,d=Da(PS,r),{onValueNodeHasChildrenChange:h}=d,m=s!==void 0,y=ze(n,d.onValueNodeChange);return $t(()=>{h(m)},[h,m]),g.jsx(_e.span,{...f,ref:y,style:{pointerEvents:"none"},children:rE(d.value)?g.jsx(g.Fragment,{children:c}):s})});LS.displayName=PS;var LP="SelectIcon",zS=v.forwardRef((e,n)=>{const{__scopeSelect:r,children:i,...l}=e;return g.jsx(_e.span,{"aria-hidden":!0,...l,ref:n,children:i||"▼"})});zS.displayName=LP;var zP="SelectPortal",IS=e=>g.jsx(os,{asChild:!0,...e});IS.displayName=zP;var di="SelectContent",BS=v.forwardRef((e,n)=>{const r=Da(di,e.__scopeSelect),[i,l]=v.useState();if($t(()=>{l(new DocumentFragment)},[]),!r.open){const s=i;return s?wo.createPortal(g.jsx(US,{scope:e.__scopeSelect,children:g.jsx(Kc.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),s):null}return g.jsx(HS,{...e,ref:n})});BS.displayName=di;var or=10,[US,Oa]=No(di),IP="SelectContentImpl",BP=si("SelectContent.RemoveScroll"),HS=v.forwardRef((e,n)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:s,onPointerDownOutside:c,side:f,sideOffset:d,align:h,alignOffset:m,arrowPadding:y,collisionBoundary:w,collisionPadding:b,sticky:S,hideWhenDetached:E,avoidCollisions:T,...A}=e,R=Da(di,r),[N,O]=v.useState(null),[L,j]=v.useState(null),H=ze(n,le=>O(le)),[$,Y]=v.useState(null),[D,Z]=v.useState(null),J=Xc(r),[ne,G]=v.useState(!1),ae=v.useRef(!1);v.useEffect(()=>{if(N)return cm(N)},[N]),um();const z=v.useCallback(le=>{const[ve,...Ve]=J().map(We=>We.ref.current),[De]=Ve.slice(-1),Be=document.activeElement;for(const We of le)if(We===Be||(We?.scrollIntoView({block:"nearest"}),We===ve&&L&&(L.scrollTop=0),We===De&&L&&(L.scrollTop=L.scrollHeight),We?.focus(),document.activeElement!==Be))return},[J,L]),Q=v.useCallback(()=>z([$,N]),[z,$,N]);v.useEffect(()=>{ne&&Q()},[ne,Q]);const{onOpenChange:B,triggerPointerDownPosRef:ie}=R;v.useEffect(()=>{if(N){let le={x:0,y:0};const ve=De=>{le={x:Math.abs(Math.round(De.pageX)-(ie.current?.x??0)),y:Math.abs(Math.round(De.pageY)-(ie.current?.y??0))}},Ve=De=>{le.x<=10&&le.y<=10?De.preventDefault():N.contains(De.target)||B(!1),document.removeEventListener("pointermove",ve),ie.current=null};return ie.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",Ve,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",Ve,{capture:!0})}}},[N,B,ie]),v.useEffect(()=>{const le=()=>B(!1);return window.addEventListener("blur",le),window.addEventListener("resize",le),()=>{window.removeEventListener("blur",le),window.removeEventListener("resize",le)}},[B]);const[k,W]=aE(le=>{const ve=J().filter(Be=>!Be.disabled),Ve=ve.find(Be=>Be.ref.current===document.activeElement),De=iE(ve,le,Ve);De&&setTimeout(()=>De.ref.current.focus())}),se=v.useCallback((le,ve,Ve)=>{const De=!ae.current&&!Ve;(R.value!==void 0&&R.value===ve||De)&&(Y(le),De&&(ae.current=!0))},[R.value]),M=v.useCallback(()=>N?.focus(),[N]),ce=v.useCallback((le,ve,Ve)=>{const De=!ae.current&&!Ve;(R.value!==void 0&&R.value===ve||De)&&Z(le)},[R.value]),Ee=i==="popper"?Cp:FS,pe=Ee===Cp?{side:f,sideOffset:d,align:h,alignOffset:m,arrowPadding:y,collisionBoundary:w,collisionPadding:b,sticky:S,hideWhenDetached:E,avoidCollisions:T}:{};return g.jsx(US,{scope:r,content:N,viewport:L,onViewportChange:j,itemRefCallback:se,selectedItem:$,onItemLeave:M,itemTextRefCallback:ce,focusSelectedItem:Q,selectedItemText:D,position:i,isPositioned:ne,searchRef:k,children:g.jsx(zc,{as:BP,allowPinchZoom:!0,children:g.jsx(Pc,{asChild:!0,trapped:R.open,onMountAutoFocus:le=>{le.preventDefault()},onUnmountAutoFocus:me(l,le=>{R.trigger?.focus({preventScroll:!0}),le.preventDefault()}),children:g.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:le=>le.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:g.jsx(Ee,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:le=>le.preventDefault(),...A,...pe,onPlaced:()=>G(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:me(A.onKeyDown,le=>{const ve=le.ctrlKey||le.altKey||le.metaKey;if(le.key==="Tab"&&le.preventDefault(),!ve&&le.key.length===1&&W(le.key),["ArrowUp","ArrowDown","Home","End"].includes(le.key)){let De=J().filter(Be=>!Be.disabled).map(Be=>Be.ref.current);if(["ArrowUp","End"].includes(le.key)&&(De=De.slice().reverse()),["ArrowUp","ArrowDown"].includes(le.key)){const Be=le.target,We=De.indexOf(Be);De=De.slice(We+1)}setTimeout(()=>z(De)),le.preventDefault()}})})})})})})});HS.displayName=IP;var UP="SelectItemAlignedPosition",FS=v.forwardRef((e,n)=>{const{__scopeSelect:r,onPlaced:i,...l}=e,s=Da(di,r),c=Oa(di,r),[f,d]=v.useState(null),[h,m]=v.useState(null),y=ze(n,H=>m(H)),w=Xc(r),b=v.useRef(!1),S=v.useRef(!0),{viewport:E,selectedItem:T,selectedItemText:A,focusSelectedItem:R}=c,N=v.useCallback(()=>{if(s.trigger&&s.valueNode&&f&&h&&E&&T&&A){const H=s.trigger.getBoundingClientRect(),$=h.getBoundingClientRect(),Y=s.valueNode.getBoundingClientRect(),D=A.getBoundingClientRect();if(s.dir!=="rtl"){const Be=D.left-$.left,We=Y.left-Be,Ke=H.left-We,xt=H.width+Ke,zn=Math.max(xt,$.width),tr=window.innerWidth-or,Rt=Ep(We,[or,Math.max(or,tr-zn)]);f.style.minWidth=xt+"px",f.style.left=Rt+"px"}else{const Be=$.right-D.right,We=window.innerWidth-Y.right-Be,Ke=window.innerWidth-H.right-We,xt=H.width+Ke,zn=Math.max(xt,$.width),tr=window.innerWidth-or,Rt=Ep(We,[or,Math.max(or,tr-zn)]);f.style.minWidth=xt+"px",f.style.right=Rt+"px"}const Z=w(),J=window.innerHeight-or*2,ne=E.scrollHeight,G=window.getComputedStyle(h),ae=parseInt(G.borderTopWidth,10),z=parseInt(G.paddingTop,10),Q=parseInt(G.borderBottomWidth,10),B=parseInt(G.paddingBottom,10),ie=ae+z+ne+B+Q,k=Math.min(T.offsetHeight*5,ie),W=window.getComputedStyle(E),se=parseInt(W.paddingTop,10),M=parseInt(W.paddingBottom,10),ce=H.top+H.height/2-or,Ee=J-ce,pe=T.offsetHeight/2,le=T.offsetTop+pe,ve=ae+z+le,Ve=ie-ve;if(ve<=ce){const Be=Z.length>0&&T===Z[Z.length-1].ref.current;f.style.bottom="0px";const We=h.clientHeight-E.offsetTop-E.offsetHeight,Ke=Math.max(Ee,pe+(Be?M:0)+We+Q),xt=ve+Ke;f.style.height=xt+"px"}else{const Be=Z.length>0&&T===Z[0].ref.current;f.style.top="0px";const Ke=Math.max(ce,ae+E.offsetTop+(Be?se:0)+pe)+Ve;f.style.height=Ke+"px",E.scrollTop=ve-ce+E.offsetTop}f.style.margin=`${or}px 0`,f.style.minHeight=k+"px",f.style.maxHeight=J+"px",i?.(),requestAnimationFrame(()=>b.current=!0)}},[w,s.trigger,s.valueNode,f,h,E,T,A,s.dir,i]);$t(()=>N(),[N]);const[O,L]=v.useState();$t(()=>{h&&L(window.getComputedStyle(h).zIndex)},[h]);const j=v.useCallback(H=>{H&&S.current===!0&&(N(),R?.(),S.current=!1)},[N,R]);return g.jsx(FP,{scope:r,contentWrapper:f,shouldExpandOnScrollRef:b,onScrollButtonChange:j,children:g.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:g.jsx(_e.div,{...l,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});FS.displayName=UP;var HP="SelectPopperPosition",Cp=v.forwardRef((e,n)=>{const{__scopeSelect:r,align:i="start",collisionPadding:l=or,...s}=e,c=Qc(r);return g.jsx(_m,{...c,...s,ref:n,align:i,collisionPadding:l,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Cp.displayName=HP;var[FP,Dm]=No(di,{}),kp="SelectViewport",VS=v.forwardRef((e,n)=>{const{__scopeSelect:r,nonce:i,...l}=e,s=Oa(kp,r),c=Dm(kp,r),f=ze(n,s.onViewportChange),d=v.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),g.jsx(Kc.Slot,{scope:r,children:g.jsx(_e.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:me(l.onScroll,h=>{const m=h.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:w}=c;if(w?.current&&y){const b=Math.abs(d.current-m.scrollTop);if(b>0){const S=window.innerHeight-or*2,E=parseFloat(y.style.minHeight),T=parseFloat(y.style.height),A=Math.max(E,T);if(A<S){const R=A+b,N=Math.min(S,R),O=R-N;y.style.height=N+"px",y.style.bottom==="0px"&&(m.scrollTop=O>0?O:0,y.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});VS.displayName=kp;var qS="SelectGroup",[VP,qP]=No(qS),$P=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=kr();return g.jsx(VP,{scope:r,id:l,children:g.jsx(_e.div,{role:"group","aria-labelledby":l,...i,ref:n})})});$P.displayName=qS;var $S="SelectLabel",GS=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=qP($S,r);return g.jsx(_e.div,{id:l.id,...i,ref:n})});GS.displayName=$S;var gc="SelectItem",[GP,YS]=No(gc),KS=v.forwardRef((e,n)=>{const{__scopeSelect:r,value:i,disabled:l=!1,textValue:s,...c}=e,f=Da(gc,r),d=Oa(gc,r),h=f.value===i,[m,y]=v.useState(s??""),[w,b]=v.useState(!1),S=ze(n,R=>d.itemRefCallback?.(R,i,l)),E=kr(),T=v.useRef("touch"),A=()=>{l||(f.onValueChange(i),f.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(GP,{scope:r,value:i,disabled:l,textId:E,isSelected:h,onItemTextChange:v.useCallback(R=>{y(N=>N||(R?.textContent??"").trim())},[]),children:g.jsx(Kc.ItemSlot,{scope:r,value:i,disabled:l,textValue:m,children:g.jsx(_e.div,{role:"option","aria-labelledby":E,"data-highlighted":w?"":void 0,"aria-selected":h&&w,"data-state":h?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:S,onFocus:me(c.onFocus,()=>b(!0)),onBlur:me(c.onBlur,()=>b(!1)),onClick:me(c.onClick,()=>{T.current!=="mouse"&&A()}),onPointerUp:me(c.onPointerUp,()=>{T.current==="mouse"&&A()}),onPointerDown:me(c.onPointerDown,R=>{T.current=R.pointerType}),onPointerMove:me(c.onPointerMove,R=>{T.current=R.pointerType,l?d.onItemLeave?.():T.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:me(c.onPointerLeave,R=>{R.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:me(c.onKeyDown,R=>{d.searchRef?.current!==""&&R.key===" "||(MP.includes(R.key)&&A(),R.key===" "&&R.preventDefault())})})})})});KS.displayName=gc;var zl="SelectItemText",XS=v.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:l,...s}=e,c=Da(zl,r),f=Oa(zl,r),d=YS(zl,r),h=PP(zl,r),[m,y]=v.useState(null),w=ze(n,A=>y(A),d.onItemTextChange,A=>f.itemTextRefCallback?.(A,d.value,d.disabled)),b=m?.textContent,S=v.useMemo(()=>g.jsx("option",{value:d.value,disabled:d.disabled,children:b},d.value),[d.disabled,d.value,b]),{onNativeOptionAdd:E,onNativeOptionRemove:T}=h;return $t(()=>(E(S),()=>T(S)),[E,T,S]),g.jsxs(g.Fragment,{children:[g.jsx(_e.span,{id:d.textId,...s,ref:w}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?wo.createPortal(s.children,c.valueNode):null]})});XS.displayName=zl;var QS="SelectItemIndicator",ZS=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return YS(QS,r).isSelected?g.jsx(_e.span,{"aria-hidden":!0,...i,ref:n}):null});ZS.displayName=QS;var Ap="SelectScrollUpButton",WS=v.forwardRef((e,n)=>{const r=Oa(Ap,e.__scopeSelect),i=Dm(Ap,e.__scopeSelect),[l,s]=v.useState(!1),c=ze(n,i.onScrollButtonChange);return $t(()=>{if(r.viewport&&r.isPositioned){let f=function(){const h=d.scrollTop>0;s(h)};const d=r.viewport;return f(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),l?g.jsx(eE,{...e,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:d}=r;f&&d&&(f.scrollTop=f.scrollTop-d.offsetHeight)}}):null});WS.displayName=Ap;var Tp="SelectScrollDownButton",JS=v.forwardRef((e,n)=>{const r=Oa(Tp,e.__scopeSelect),i=Dm(Tp,e.__scopeSelect),[l,s]=v.useState(!1),c=ze(n,i.onScrollButtonChange);return $t(()=>{if(r.viewport&&r.isPositioned){let f=function(){const h=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)<h;s(m)};const d=r.viewport;return f(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),l?g.jsx(eE,{...e,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:d}=r;f&&d&&(f.scrollTop=f.scrollTop+d.offsetHeight)}}):null});JS.displayName=Tp;var eE=v.forwardRef((e,n)=>{const{__scopeSelect:r,onAutoScroll:i,...l}=e,s=Oa("SelectScrollButton",r),c=v.useRef(null),f=Xc(r),d=v.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return v.useEffect(()=>()=>d(),[d]),$t(()=>{f().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[f]),g.jsx(_e.div,{"aria-hidden":!0,...l,ref:n,style:{flexShrink:0,...l.style},onPointerDown:me(l.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(i,50))}),onPointerMove:me(l.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(i,50))}),onPointerLeave:me(l.onPointerLeave,()=>{d()})})}),YP="SelectSeparator",tE=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return g.jsx(_e.div,{"aria-hidden":!0,...i,ref:n})});tE.displayName=YP;var Rp="SelectArrow",KP=v.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=Qc(r),s=Da(Rp,r),c=Oa(Rp,r);return s.open&&c.position==="popper"?g.jsx(Mm,{...l,...i,ref:n}):null});KP.displayName=Rp;var XP="SelectBubbleInput",nE=v.forwardRef(({__scopeSelect:e,value:n,...r},i)=>{const l=v.useRef(null),s=ze(i,l),c=MS(n);return v.useEffect(()=>{const f=l.current;if(!f)return;const d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(c!==n&&m){const y=new Event("change",{bubbles:!0});m.call(f,n),f.dispatchEvent(y)}},[c,n]),g.jsx(_e.select,{...r,style:{...Cw,...r.style},ref:s,defaultValue:n})});nE.displayName=XP;function rE(e){return e===""||e===void 0}function aE(e){const n=Tt(e),r=v.useRef(""),i=v.useRef(0),l=v.useCallback(c=>{const f=r.current+c;n(f),(function d(h){r.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>d(""),1e3))})(f)},[n]),s=v.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,l,s]}function iE(e,n,r){const l=n.length>1&&Array.from(n).every(h=>h===n[0])?n[0]:n,s=r?e.indexOf(r):-1;let c=QP(e,Math.max(s,0));l.length===1&&(c=c.filter(h=>h!==r));const d=c.find(h=>h.textValue.toLowerCase().startsWith(l.toLowerCase()));return d!==r?d:void 0}function QP(e,n){return e.map((r,i)=>e[(n+i)%e.length])}var ZP=jS,oE=OS,WP=LS,JP=zS,eL=IS,lE=BS,tL=VS,sE=GS,uE=KS,nL=XS,rL=ZS,cE=WS,fE=JS,dE=tE;const Gb=ZP,Yb=WP,Np=v.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(oE,{ref:i,className:ue("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[n,g.jsx(JP,{asChild:!0,children:g.jsx(Yw,{className:"h-4 w-4 opacity-50"})})]}));Np.displayName=oE.displayName;const hE=v.forwardRef(({className:e,...n},r)=>g.jsx(cE,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",e),...n,children:g.jsx(aM,{className:"h-4 w-4"})}));hE.displayName=cE.displayName;const pE=v.forwardRef(({className:e,...n},r)=>g.jsx(fE,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",e),...n,children:g.jsx(Yw,{className:"h-4 w-4"})}));pE.displayName=fE.displayName;const _p=v.forwardRef(({className:e,children:n,position:r="popper",...i},l)=>g.jsx(eL,{children:g.jsxs(lE,{ref:l,className:ue("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...i,children:[g.jsx(hE,{}),g.jsx(tL,{className:ue("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),g.jsx(pE,{})]})}));_p.displayName=lE.displayName;const aL=v.forwardRef(({className:e,...n},r)=>g.jsx(sE,{ref:r,className:ue("px-2 py-1.5 text-sm font-semibold",e),...n}));aL.displayName=sE.displayName;const li=v.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(uE,{ref:i,className:ue("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[g.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(rL,{children:g.jsx(Oc,{className:"h-4 w-4"})})}),g.jsx(nL,{children:n})]}));li.displayName=uE.displayName;const iL=v.forwardRef(({className:e,...n},r)=>g.jsx(dE,{ref:r,className:ue("-mx-1 my-1 h-px bg-muted",e),...n}));iL.displayName=dE.displayName;const Zc=pm,aH=F1,oL=mm,mE=v.forwardRef(({className:e,...n},r)=>g.jsx(ss,{ref:r,className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));mE.displayName=ss.displayName;const hs=v.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(oL,{children:[g.jsx(mE,{}),g.jsxs(us,{ref:i,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[n,g.jsxs(Bc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[g.jsx(so,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));hs.displayName=us.displayName;const ps=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col space-y-1.5 text-center sm:text-left",e),...n});ps.displayName="DialogHeader";const gE=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});gE.displayName="DialogFooter";const ms=v.forwardRef(({className:e,...n},r)=>g.jsx(cs,{ref:r,className:ue("text-lg font-semibold leading-none tracking-tight",e),...n}));ms.displayName=cs.displayName;const Il=v.forwardRef(({className:e,...n},r)=>g.jsx(fs,{ref:r,className:ue("text-sm text-muted-foreground",e),...n}));Il.displayName=fs.displayName;function zh({className:e,...n}){return g.jsx("kbd",{"data-slot":"kbd",className:ue("inline-flex h-5 items-center justify-center rounded border border-muted-foreground/30 bg-muted/50 px-1.5 font-sans text-[11px] font-medium text-muted-foreground shadow-sm",e),...n})}function iH({className:e,...n}){return g.jsx("span",{"data-slot":"kbd-group",className:ue("inline-flex items-center gap-0.5",e),...n})}function oH(){}function lH(){}function sH(e){const n=[],r=String(e||"");let i=r.indexOf(","),l=0,s=!1;for(;!s;){i===-1&&(i=r.length,s=!0);const c=r.slice(l,i).trim();(c||!s)&&n.push(c),l=i+1,i=r.indexOf(",",l)}return n}function lL(e,n){const r=n||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const sL=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uL=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cL={};function Kb(e,n){return(cL.jsx?uL:sL).test(e)}const fL=/[ \t\n\f\r]/g;function dL(e){return typeof e=="object"?e.type==="text"?Xb(e.value):!1:Xb(e)}function Xb(e){return e.replace(fL,"")===""}class gs{constructor(n,r,i){this.normal=r,this.property=n,i&&(this.space=i)}}gs.prototype.normal={};gs.prototype.property={};gs.prototype.space=void 0;function yE(e,n){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new gs(r,i,n)}function Mp(e){return e.toLowerCase()}class xn{constructor(n,r){this.attribute=r,this.property=n}}xn.prototype.attribute="";xn.prototype.booleanish=!1;xn.prototype.boolean=!1;xn.prototype.commaOrSpaceSeparated=!1;xn.prototype.commaSeparated=!1;xn.prototype.defined=!1;xn.prototype.mustUseProperty=!1;xn.prototype.number=!1;xn.prototype.overloadedBoolean=!1;xn.prototype.property="";xn.prototype.spaceSeparated=!1;xn.prototype.space=void 0;let hL=0;const Le=pi(),Dt=pi(),jp=pi(),he=pi(),ft=pi(),fo=pi(),Dn=pi();function pi(){return 2**++hL}const Dp=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:Dt,commaOrSpaceSeparated:Dn,commaSeparated:fo,number:he,overloadedBoolean:jp,spaceSeparated:ft},Symbol.toStringTag,{value:"Module"})),Ih=Object.keys(Dp);class Om extends xn{constructor(n,r,i,l){let s=-1;if(super(n,r),Qb(this,"space",l),typeof i=="number")for(;++s<Ih.length;){const c=Ih[s];Qb(this,Ih[s],(i&Dp[c])===Dp[c])}}}Om.prototype.defined=!0;function Qb(e,n,r){r&&(e[n]=r)}function _o(e){const n={},r={};for(const[i,l]of Object.entries(e.properties)){const s=new Om(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),n[i]=s,r[Mp(i)]=i,r[Mp(s.attribute)]=i}return new gs(n,r,e.space)}const vE=_o({properties:{ariaActiveDescendant:null,ariaAtomic:Dt,ariaAutoComplete:null,ariaBusy:Dt,ariaChecked:Dt,ariaColCount:he,ariaColIndex:he,ariaColSpan:he,ariaControls:ft,ariaCurrent:null,ariaDescribedBy:ft,ariaDetails:null,ariaDisabled:Dt,ariaDropEffect:ft,ariaErrorMessage:null,ariaExpanded:Dt,ariaFlowTo:ft,ariaGrabbed:Dt,ariaHasPopup:null,ariaHidden:Dt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ft,ariaLevel:he,ariaLive:null,ariaModal:Dt,ariaMultiLine:Dt,ariaMultiSelectable:Dt,ariaOrientation:null,ariaOwns:ft,ariaPlaceholder:null,ariaPosInSet:he,ariaPressed:Dt,ariaReadOnly:Dt,ariaRelevant:null,ariaRequired:Dt,ariaRoleDescription:ft,ariaRowCount:he,ariaRowIndex:he,ariaRowSpan:he,ariaSelected:Dt,ariaSetSize:he,ariaSort:null,ariaValueMax:he,ariaValueMin:he,ariaValueNow:he,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function xE(e,n){return n in e?e[n]:n}function bE(e,n){return xE(e,n.toLowerCase())}const pL=_o({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fo,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:ft,autoFocus:Le,autoPlay:Le,blocking:ft,capture:null,charSet:null,checked:Le,cite:null,className:ft,cols:he,colSpan:null,content:null,contentEditable:Dt,controls:Le,controlsList:ft,coords:he|fo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:jp,draggable:Dt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:ft,height:he,hidden:jp,high:he,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:ft,itemRef:ft,itemScope:Le,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:he,manifest:null,max:null,maxLength:he,media:null,method:null,min:null,minLength:he,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Le,optimum:he,pattern:null,ping:ft,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:ft,required:Le,reversed:Le,rows:he,rowSpan:he,sandbox:ft,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shape:null,size:he,sizes:null,slot:null,span:he,spellCheck:Dt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:he,step:null,style:null,tabIndex:he,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:Dt,width:he,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ft,axis:null,background:null,bgColor:null,border:he,borderColor:null,bottomMargin:he,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:he,leftMargin:he,link:null,longDesc:null,lowSrc:null,marginHeight:he,marginWidth:he,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:he,rules:null,scheme:null,scrolling:Dt,standby:null,summary:null,text:null,topMargin:he,valueType:null,version:null,vAlign:null,vLink:null,vSpace:he,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:he,security:null,unselectable:null},space:"html",transform:bE}),mL=_o({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Dn,accentHeight:he,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:he,amplitude:he,arabicForm:null,ascent:he,attributeName:null,attributeType:null,azimuth:he,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:he,by:null,calcMode:null,capHeight:he,className:ft,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:he,diffuseConstant:he,direction:null,display:null,dur:null,divisor:he,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:he,enableBackground:null,end:null,event:null,exponent:he,externalResourcesRequired:null,fill:null,fillOpacity:he,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fo,g2:fo,glyphName:fo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:he,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:he,horizOriginX:he,horizOriginY:he,id:null,ideographic:he,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:he,k:he,k1:he,k2:he,k3:he,k4:he,kernelMatrix:Dn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:he,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:he,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:he,overlineThickness:he,paintOrder:null,panose1:null,path:null,pathLength:he,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:he,pointsAtY:he,pointsAtZ:he,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Dn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Dn,rev:Dn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Dn,requiredFeatures:Dn,requiredFonts:Dn,requiredFormats:Dn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:he,specularExponent:he,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:he,strikethroughThickness:he,string:null,stroke:null,strokeDashArray:Dn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:he,strokeOpacity:he,strokeWidth:null,style:null,surfaceScale:he,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Dn,tabIndex:he,tableValues:null,target:null,targetX:he,targetY:he,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Dn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:he,underlineThickness:he,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:he,values:null,vAlphabetic:he,vMathematical:he,vectorEffect:null,vHanging:he,vIdeographic:he,version:null,vertAdvY:he,vertOriginX:he,vertOriginY:he,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:he,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xE}),wE=_o({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),SE=_o({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:bE}),EE=_o({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),gL={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},yL=/[A-Z]/g,Zb=/-[a-z]/g,vL=/^data[-\w.:]+$/i;function xL(e,n){const r=Mp(n);let i=n,l=xn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&vL.test(n)){if(n.charAt(4)==="-"){const s=n.slice(5).replace(Zb,wL);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=n.slice(4);if(!Zb.test(s)){let c=s.replace(yL,bL);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}l=Om}return new l(i,n)}function bL(e){return"-"+e.toLowerCase()}function wL(e){return e.charAt(1).toUpperCase()}const SL=yE([vE,pL,wE,SE,EE],"html"),Pm=yE([vE,mL,wE,SE,EE],"svg");function uH(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function EL(e){return e.join(" ").trim()}var io={},Bh,Wb;function CL(){if(Wb)return Bh;Wb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
366
366
  `,h="/",m="*",y="",w="comment",b="declaration";Bh=function(E,T){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];T=T||{};var A=1,R=1;function N(ne){var G=ne.match(n);G&&(A+=G.length);var ae=ne.lastIndexOf(d);R=~ae?ne.length-ae:R+ne.length}function O(){var ne={line:A,column:R};return function(G){return G.position=new L(ne),$(),G}}function L(ne){this.start=ne,this.end={line:A,column:R},this.source=T.source}L.prototype.content=E;function j(ne){var G=new Error(T.source+":"+A+":"+R+": "+ne);if(G.reason=ne,G.filename=T.source,G.line=A,G.column=R,G.source=E,!T.silent)throw G}function H(ne){var G=ne.exec(E);if(G){var ae=G[0];return N(ae),E=E.slice(ae.length),G}}function $(){H(r)}function Y(ne){var G;for(ne=ne||[];G=D();)G!==!1&&ne.push(G);return ne}function D(){var ne=O();if(!(h!=E.charAt(0)||m!=E.charAt(1))){for(var G=2;y!=E.charAt(G)&&(m!=E.charAt(G)||h!=E.charAt(G+1));)++G;if(G+=2,y===E.charAt(G-1))return j("End of comment missing");var ae=E.slice(2,G-2);return R+=2,N(ae),E=E.slice(G),R+=2,ne({type:w,comment:ae})}}function Z(){var ne=O(),G=H(i);if(G){if(D(),!H(l))return j("property missing ':'");var ae=H(s),z=ne({type:b,property:S(G[0].replace(e,y)),value:ae?S(ae[0].replace(e,y)):y});return H(c),z}}function J(){var ne=[];Y(ne);for(var G;G=Z();)G!==!1&&(ne.push(G),Y(ne));return ne}return $(),J()};function S(E){return E?E.replace(f,y):y}return Bh}var Jb;function kL(){if(Jb)return io;Jb=1;var e=io&&io.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(io,"__esModule",{value:!0}),io.default=r;var n=e(CL());function r(i,l){var s=null;if(!i||typeof i!="string")return s;var c=(0,n.default)(i),f=typeof l=="function";return c.forEach(function(d){if(d.type==="declaration"){var h=d.property,m=d.value;f?l(h,m,d):m&&(s=s||{},s[h]=m)}}),s}return io}var _l={},e0;function AL(){if(e0)return _l;e0=1,Object.defineProperty(_l,"__esModule",{value:!0}),_l.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,s=function(h){return!h||r.test(h)||e.test(h)},c=function(h,m){return m.toUpperCase()},f=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),s(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(l,f):h=h.replace(i,f),h.replace(n,c))};return _l.camelCase=d,_l}var Ml,t0;function TL(){if(t0)return Ml;t0=1;var e=Ml&&Ml.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},n=e(kL()),r=AL();function i(l,s){var c={};return!l||typeof l!="string"||(0,n.default)(l,function(f,d){f&&d&&(c[(0,r.camelCase)(f,s)]=d)}),c}return i.default=i,Ml=i,Ml}var RL=TL();const NL=Cc(RL),CE=kE("end"),Lm=kE("start");function kE(e){return n;function n(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function AE(e){const n=Lm(e),r=CE(e);if(n&&r)return{start:n,end:r}}function Fl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?n0(e.position):"start"in e||"end"in e?n0(e):"line"in e||"column"in e?Op(e):""}function Op(e){return r0(e&&e.line)+":"+r0(e&&e.column)}function n0(e){return Op(e&&e.start)+"-"+Op(e&&e.end)}function r0(e){return e&&typeof e=="number"?e:1}class rn extends Error{constructor(n,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let l="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof n=="string"?l=n:!s.cause&&n&&(c=!0,l=n.message,s.cause=n),!s.ruleId&&!s.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?s.ruleId=i:(s.source=i.slice(0,d),s.ruleId=i.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=f?f.line:void 0,this.name=Fl(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}rn.prototype.file="";rn.prototype.name="";rn.prototype.reason="";rn.prototype.message="";rn.prototype.stack="";rn.prototype.column=void 0;rn.prototype.line=void 0;rn.prototype.ancestors=void 0;rn.prototype.cause=void 0;rn.prototype.fatal=void 0;rn.prototype.place=void 0;rn.prototype.ruleId=void 0;rn.prototype.source=void 0;const zm={}.hasOwnProperty,_L=new Map,ML=/[A-Z]/g,jL=new Set(["table","tbody","thead","tfoot","tr"]),DL=new Set(["td","th"]),TE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function OL(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=FL(r,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=HL(r,n.jsx,n.jsxs)}const l={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Pm:SL,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},s=RE(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function RE(e,n,r){if(n.type==="element")return PL(e,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return LL(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return IL(e,n,r);if(n.type==="mdxjsEsm")return zL(e,n);if(n.type==="root")return BL(e,n,r);if(n.type==="text")return UL(e,n)}function PL(e,n,r){const i=e.schema;let l=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=Pm,e.schema=l),e.ancestors.push(n);const s=_E(e,n.tagName,!1),c=VL(e,n);let f=Bm(e,n);return jL.has(n.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!dL(d):!0})),NE(e,c,s,n),Im(c,f),e.ancestors.pop(),e.schema=i,e.create(n,s,c,r)}function LL(e,n){if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Zl(e,n.position)}function zL(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Zl(e,n.position)}function IL(e,n,r){const i=e.schema;let l=i;n.name==="svg"&&i.space==="html"&&(l=Pm,e.schema=l),e.ancestors.push(n);const s=n.name===null?e.Fragment:_E(e,n.name,!0),c=qL(e,n),f=Bm(e,n);return NE(e,c,s,n),Im(c,f),e.ancestors.pop(),e.schema=i,e.create(n,s,c,r)}function BL(e,n,r){const i={};return Im(i,Bm(e,n)),e.create(n,e.Fragment,i,r)}function UL(e,n){return n.value}function NE(e,n,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(n.node=i)}function Im(e,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(e.children=r)}}function HL(e,n,r){return i;function i(l,s,c,f){const h=Array.isArray(c.children)?r:n;return f?h(s,c,f):h(s,c)}}function FL(e,n){return r;function r(i,l,s,c){const f=Array.isArray(s.children),d=Lm(i);return n(l,s,c,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function VL(e,n){const r={};let i,l;for(l in n.properties)if(l!=="children"&&zm.call(n.properties,l)){const s=$L(e,l,n.properties[l]);if(s){const[c,f]=s;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&DL.has(n.tagName)?i=f:r[c]=f}}if(i){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function qL(e,n){const r={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const c=s.expression;c.type;const f=c.properties[0];f.type,Object.assign(r,e.evaluater.evaluateExpression(f.argument))}else Zl(e,n.position);else{const l=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else Zl(e,n.position);else s=i.value===null?!0:i.value;r[l]=s}return r}function Bm(e,n){const r=[];let i=-1;const l=e.passKeys?new Map:_L;for(;++i<n.children.length;){const s=n.children[i];let c;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const h=l.get(d)||0;c=d+"-"+h,l.set(d,h+1)}}const f=RE(e,s,c);f!==void 0&&r.push(f)}return r}function $L(e,n,r){const i=xL(e.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?lL(r):EL(r)),i.property==="style"){let l=typeof r=="object"?r:GL(e,String(r));return e.stylePropertyNameCase==="css"&&(l=YL(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?gL[i.property]||i.property:i.attribute,r]}}function GL(e,n){try{return NL(n,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,l=new rn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=TE+"#cannot-parse-style-attribute",l}}function _E(e,n,r){let i;if(!r)i={type:"Literal",value:n};else if(n.includes(".")){const l=n.split(".");let s=-1,c;for(;++s<l.length;){const f=Kb(l[s])?{type:"Identifier",name:l[s]}:{type:"Literal",value:l[s]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}i=c}else i=Kb(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const l=i.value;return zm.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);Zl(e)}function Zl(e,n){const r=new rn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=TE+"#cannot-handle-mdx-estrees-without-createevaluater",r}function YL(e){const n={};let r;for(r in e)zm.call(e,r)&&(n[KL(r)]=e[r]);return n}function KL(e){let n=e.replace(ML,XL);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function XL(e){return"-"+e.toLowerCase()}const Uh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},QL={};function Um(e,n){const r=QL,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return ME(e,i,l)}function ME(e,n,r){if(ZL(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return a0(e.children,n,r)}return Array.isArray(e)?a0(e,n,r):""}function a0(e,n,r){const i=[];let l=-1;for(;++l<e.length;)i[l]=ME(e[l],n,r);return i.join("")}function ZL(e){return!!(e&&typeof e=="object")}const i0=document.createElement("i");function Hm(e){const n="&"+e+";";i0.innerHTML=n;const r=i0.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}function Ln(e,n,r,i){const l=e.length;let s=0,c;if(n<0?n=-n>l?0:l+n:n=n>l?l:n,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(n,r),e.splice(...c);else for(r&&e.splice(n,r);s<i.length;)c=i.slice(s,s+1e4),c.unshift(n,0),e.splice(...c),s+=1e4,n+=1e4}function Kn(e,n){return e.length>0?(Ln(e,e.length,0,n),e):n}const o0={}.hasOwnProperty;function jE(e){const n={};let r=-1;for(;++r<e.length;)WL(n,e[r]);return n}function WL(e,n){let r;for(r in n){const l=(o0.call(e,r)?e[r]:void 0)||(e[r]={}),s=n[r];let c;if(s)for(c in s){o0.call(l,c)||(l[c]=[]);const f=s[c];JL(l[c],Array.isArray(f)?f:f?[f]:[])}}}function JL(e,n){let r=-1;const i=[];for(;++r<n.length;)(n[r].add==="after"?e:i).push(n[r]);Ln(e,0,0,i)}function DE(e,n){const r=Number.parseInt(e,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function sr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const sn=Pa(/[A-Za-z]/),nn=Pa(/[\dA-Za-z]/),ez=Pa(/[#-'*+\--9=?A-Z^-~]/);function yc(e){return e!==null&&(e<32||e===127)}const Pp=Pa(/\d/),tz=Pa(/[\dA-Fa-f]/),nz=Pa(/[!-/:-@[-`{-~]/);function Te(e){return e!==null&&e<-2}function ut(e){return e!==null&&(e<0||e===32)}function Ye(e){return e===-2||e===-1||e===32}const Wc=Pa(new RegExp("\\p{P}|\\p{S}","u")),hi=Pa(/\s/);function Pa(e){return n;function n(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Mo(e){const n=[];let r=-1,i=0,l=0;for(;++r<e.length;){const s=e.charCodeAt(r);let c="";if(s===37&&nn(e.charCodeAt(r+1))&&nn(e.charCodeAt(r+2)))l=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(r+1);s<56320&&f>56319&&f<57344?(c=String.fromCharCode(s,f),l=1):c="�"}else c=String.fromCharCode(s);c&&(n.push(e.slice(i,r),encodeURIComponent(c)),i=r+l+1,c=""),l&&(r+=l,l=0)}return n.join("")+e.slice(i)}function Ze(e,n,r,i){const l=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(d){return Ye(d)?(e.enter(r),f(d)):n(d)}function f(d){return Ye(d)&&s++<l?(e.consume(d),f):(e.exit(r),n(d))}}const rz={tokenize:az};function az(e){const n=e.attempt(this.parser.constructs.contentInitial,i,l);let r;return n;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ze(e,n,"linePrefix")}function l(f){return e.enter("paragraph"),s(f)}function s(f){const d=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=d),r=d,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Te(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),c)}}const iz={tokenize:oz},l0={tokenize:lz};function oz(e){const n=this,r=[];let i=0,l,s,c;return f;function f(N){if(i<r.length){const O=r[i];return n.containerState=O[1],e.attempt(O[0].continuation,d,h)(N)}return h(N)}function d(N){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,l&&R();const O=n.events.length;let L=O,j;for(;L--;)if(n.events[L][0]==="exit"&&n.events[L][1].type==="chunkFlow"){j=n.events[L][1].end;break}A(i);let H=O;for(;H<n.events.length;)n.events[H][1].end={...j},H++;return Ln(n.events,L+1,0,n.events.slice(O)),n.events.length=H,h(N)}return f(N)}function h(N){if(i===r.length){if(!l)return w(N);if(l.currentConstruct&&l.currentConstruct.concrete)return S(N);n.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(l0,m,y)(N)}function m(N){return l&&R(),A(i),w(N)}function y(N){return n.parser.lazy[n.now().line]=i!==r.length,c=n.now().offset,S(N)}function w(N){return n.containerState={},e.attempt(l0,b,S)(N)}function b(N){return i++,r.push([n.currentConstruct,n.containerState]),w(N)}function S(N){if(N===null){l&&R(),A(0),e.consume(N);return}return l=l||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:s}),E(N)}function E(N){if(N===null){T(e.exit("chunkFlow"),!0),A(0),e.consume(N);return}return Te(N)?(e.consume(N),T(e.exit("chunkFlow")),i=0,n.interrupt=void 0,f):(e.consume(N),E)}function T(N,O){const L=n.sliceStream(N);if(O&&L.push(null),N.previous=s,s&&(s.next=N),s=N,l.defineSkip(N.start),l.write(L),n.parser.lazy[N.start.line]){let j=l.events.length;for(;j--;)if(l.events[j][1].start.offset<c&&(!l.events[j][1].end||l.events[j][1].end.offset>c))return;const H=n.events.length;let $=H,Y,D;for(;$--;)if(n.events[$][0]==="exit"&&n.events[$][1].type==="chunkFlow"){if(Y){D=n.events[$][1].end;break}Y=!0}for(A(i),j=H;j<n.events.length;)n.events[j][1].end={...D},j++;Ln(n.events,$+1,0,n.events.slice(H)),n.events.length=j}}function A(N){let O=r.length;for(;O-- >N;){const L=r[O];n.containerState=L[1],L[0].exit.call(n,e)}r.length=N}function R(){l.write([null]),s=void 0,l=void 0,n.containerState._closeFlow=void 0}}function lz(e,n,r){return Ze(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function go(e){if(e===null||ut(e)||hi(e))return 1;if(Wc(e))return 2}function Jc(e,n,r){const i=[];let l=-1;for(;++l<e.length;){const s=e[l].resolveAll;s&&!i.includes(s)&&(n=s(n,r),i.push(s))}return n}const Lp={name:"attention",resolveAll:sz,tokenize:uz};function sz(e,n){let r=-1,i,l,s,c,f,d,h,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;d=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const y={...e[i][1].end},w={...e[r][1].start};s0(y,-d),s0(w,d),c={type:d>1?"strongSequence":"emphasisSequence",start:y,end:{...e[i][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:w},s={type:d>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},l={type:d>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[i][1].end={...c.start},e[r][1].start={...f.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=Kn(h,[["enter",e[i][1],n],["exit",e[i][1],n]])),h=Kn(h,[["enter",l,n],["enter",c,n],["exit",c,n],["enter",s,n]]),h=Kn(h,Jc(n.parser.constructs.insideSpan.null,e.slice(i+1,r),n)),h=Kn(h,[["exit",s,n],["enter",f,n],["exit",f,n],["exit",l,n]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,h=Kn(h,[["enter",e[r][1],n],["exit",e[r][1],n]])):m=0,Ln(e,i-1,r-i+3,h),r=i+h.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function uz(e,n){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=go(i);let s;return c;function c(d){return s=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===s)return e.consume(d),f;const h=e.exit("attentionSequence"),m=go(d),y=!m||m===2&&l||r.includes(d),w=!l||l===2&&m||r.includes(i);return h._open=!!(s===42?y:y&&(l||!w)),h._close=!!(s===42?w:w&&(m||!y)),n(d)}}function s0(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const cz={name:"autolink",tokenize:fz};function fz(e,n,r){let i=0;return l;function l(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(b){return sn(b)?(e.consume(b),c):b===64?r(b):h(b)}function c(b){return b===43||b===45||b===46||nn(b)?(i=1,f(b)):h(b)}function f(b){return b===58?(e.consume(b),i=0,d):(b===43||b===45||b===46||nn(b))&&i++<32?(e.consume(b),f):(i=0,h(b))}function d(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):b===null||b===32||b===60||yc(b)?r(b):(e.consume(b),d)}function h(b){return b===64?(e.consume(b),m):ez(b)?(e.consume(b),h):r(b)}function m(b){return nn(b)?y(b):r(b)}function y(b){return b===46?(e.consume(b),i=0,m):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):w(b)}function w(b){if((b===45||nn(b))&&i++<63){const S=b===45?w:y;return e.consume(b),S}return r(b)}}const ys={partial:!0,tokenize:dz};function dz(e,n,r){return i;function i(s){return Ye(s)?Ze(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||Te(s)?n(s):r(s)}}const OE={continuation:{tokenize:pz},exit:mz,name:"blockQuote",tokenize:hz};function hz(e,n,r){const i=this;return l;function l(c){if(c===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return r(c)}function s(c){return Ye(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function pz(e,n,r){const i=this;return l;function l(c){return Ye(c)?Ze(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(OE,n,r)(c)}}function mz(e){e.exit("blockQuote")}const PE={name:"characterEscape",tokenize:gz};function gz(e,n,r){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),l}function l(s){return nz(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(s)}}const LE={name:"characterReference",tokenize:yz};function yz(e,n,r){const i=this;let l=0,s,c;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),d}function d(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),s=31,c=nn,m(y))}function h(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=tz,m):(e.enter("characterReferenceValue"),s=7,c=Pp,m(y))}function m(y){if(y===59&&l){const w=e.exit("characterReferenceValue");return c===nn&&!Hm(i.sliceSerialize(w))?r(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(y)&&l++<s?(e.consume(y),m):r(y)}}const u0={partial:!0,tokenize:xz},c0={concrete:!0,name:"codeFenced",tokenize:vz};function vz(e,n,r){const i=this,l={partial:!0,tokenize:L};let s=0,c=0,f;return d;function d(j){return h(j)}function h(j){const H=i.events[i.events.length-1];return s=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,f=j,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(j)}function m(j){return j===f?(c++,e.consume(j),m):c<3?r(j):(e.exit("codeFencedFenceSequence"),Ye(j)?Ze(e,y,"whitespace")(j):y(j))}function y(j){return j===null||Te(j)?(e.exit("codeFencedFence"),i.interrupt?n(j):e.check(u0,E,O)(j)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),w(j))}function w(j){return j===null||Te(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(j)):Ye(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ze(e,b,"whitespace")(j)):j===96&&j===f?r(j):(e.consume(j),w)}function b(j){return j===null||Te(j)?y(j):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(j))}function S(j){return j===null||Te(j)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(j)):j===96&&j===f?r(j):(e.consume(j),S)}function E(j){return e.attempt(l,O,T)(j)}function T(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),A}function A(j){return s>0&&Ye(j)?Ze(e,R,"linePrefix",s+1)(j):R(j)}function R(j){return j===null||Te(j)?e.check(u0,E,O)(j):(e.enter("codeFlowValue"),N(j))}function N(j){return j===null||Te(j)?(e.exit("codeFlowValue"),R(j)):(e.consume(j),N)}function O(j){return e.exit("codeFenced"),n(j)}function L(j,H,$){let Y=0;return D;function D(ae){return j.enter("lineEnding"),j.consume(ae),j.exit("lineEnding"),Z}function Z(ae){return j.enter("codeFencedFence"),Ye(ae)?Ze(j,J,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ae):J(ae)}function J(ae){return ae===f?(j.enter("codeFencedFenceSequence"),ne(ae)):$(ae)}function ne(ae){return ae===f?(Y++,j.consume(ae),ne):Y>=c?(j.exit("codeFencedFenceSequence"),Ye(ae)?Ze(j,G,"whitespace")(ae):G(ae)):$(ae)}function G(ae){return ae===null||Te(ae)?(j.exit("codeFencedFence"),H(ae)):$(ae)}}}function xz(e,n,r){const i=this;return l;function l(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?r(c):n(c)}}const Hh={name:"codeIndented",tokenize:wz},bz={partial:!0,tokenize:Sz};function wz(e,n,r){const i=this;return l;function l(h){return e.enter("codeIndented"),Ze(e,s,"linePrefix",5)(h)}function s(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(h):r(h)}function c(h){return h===null?d(h):Te(h)?e.attempt(bz,c,d)(h):(e.enter("codeFlowValue"),f(h))}function f(h){return h===null||Te(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),f)}function d(h){return e.exit("codeIndented"),n(h)}}function Sz(e,n,r){const i=this;return l;function l(c){return i.parser.lazy[i.now().line]?r(c):Te(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):Ze(e,s,"linePrefix",5)(c)}function s(c){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):Te(c)?l(c):r(c)}}const Ez={name:"codeText",previous:kz,resolve:Cz,tokenize:Az};function Cz(e){let n=e.length-4,r=3,i,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=r;++i<n;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(i=r-1,n++;++i<=n;)l===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(l=i):(i===n||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),n-=i-l-2,i=l+2),l=void 0);return e}function kz(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Az(e,n,r){let i=0,l,s;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),i++,f):(e.exit("codeTextSequence"),d(y))}function d(y){return y===null?r(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),d):y===96?(s=e.enter("codeTextSequence"),l=0,m(y)):Te(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(y))}function h(y){return y===null||y===32||y===96||Te(y)?(e.exit("codeTextData"),d(y)):(e.consume(y),h)}function m(y){return y===96?(e.consume(y),l++,m):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(y)):(s.type="codeTextData",h(y))}}class Tz{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,r,i){const l=r||0;this.setCursor(Math.trunc(n));const s=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&jl(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),jl(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),jl(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);jl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);jl(this.left,r.reverse())}}}function jl(e,n){let r=0;if(n.length<1e4)e.push(...n);else for(;r<n.length;)e.push(...n.slice(r,r+1e4)),r+=1e4}function zE(e){const n={};let r=-1,i,l,s,c,f,d,h;const m=new Tz(e);for(;++r<m.length;){for(;r in n;)r=n[r];if(i=m.get(r),r&&i[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,Rz(m,r)),r=n[r],h=!0);else if(i[1]._container){for(s=r,l=void 0;s--;)if(c=m.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(l&&(m.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;l&&(i[1].end={...m.get(l)[1].start},f=m.slice(l,r),f.unshift(i),m.splice(l,r-l+1,f))}}return Ln(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function Rz(e,n){const r=e.get(n)[1],i=e.get(n)[2];let l=n-1;const s=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,d=[],h={};let m,y,w=-1,b=r,S=0,E=0;const T=[E];for(;b;){for(;e.get(++l)[1]!==b;);s.push(l),b._tokenizer||(m=i.sliceStream(b),b.next||m.push(null),y&&c.defineSkip(b.start),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=b,b=b.next}for(b=r;++w<f.length;)f[w][0]==="exit"&&f[w-1][0]==="enter"&&f[w][1].type===f[w-1][1].type&&f[w][1].start.line!==f[w][1].end.line&&(E=w+1,T.push(E),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(c.events=[],b?(b._tokenizer=void 0,b.previous=void 0):T.pop(),w=T.length;w--;){const A=f.slice(T[w],T[w+1]),R=s.pop();d.push([R,R+A.length-1]),e.splice(R,2,A)}for(d.reverse(),w=-1;++w<d.length;)h[S+d[w][0]]=S+d[w][1],S+=d[w][1]-d[w][0]-1;return h}const Nz={resolve:Mz,tokenize:jz},_z={partial:!0,tokenize:Dz};function Mz(e){return zE(e),e}function jz(e,n){let r;return i;function i(f){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(f)}function l(f){return f===null?s(f):Te(f)?e.check(_z,c,s)(f):(e.consume(f),l)}function s(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function c(f){return e.consume(f),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function Dz(e,n,r){const i=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Ze(e,s,"linePrefix")}function s(c){if(c===null||Te(c))return r(c);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):e.interrupt(i.parser.constructs.flow,r,n)(c)}}function IE(e,n,r,i,l,s,c,f,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return y;function y(A){return A===60?(e.enter(i),e.enter(l),e.enter(s),e.consume(A),e.exit(s),w):A===null||A===32||A===41||yc(A)?r(A):(e.enter(i),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),E(A))}function w(A){return A===62?(e.enter(s),e.consume(A),e.exit(s),e.exit(l),e.exit(i),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),b(A))}function b(A){return A===62?(e.exit("chunkString"),e.exit(f),w(A)):A===null||A===60||Te(A)?r(A):(e.consume(A),A===92?S:b)}function S(A){return A===60||A===62||A===92?(e.consume(A),b):b(A)}function E(A){return!m&&(A===null||A===41||ut(A))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(i),n(A)):m<h&&A===40?(e.consume(A),m++,E):A===41?(e.consume(A),m--,E):A===null||A===32||A===40||yc(A)?r(A):(e.consume(A),A===92?T:E)}function T(A){return A===40||A===41||A===92?(e.consume(A),E):E(A)}}function BE(e,n,r,i,l,s){const c=this;let f=0,d;return h;function h(b){return e.enter(i),e.enter(l),e.consume(b),e.exit(l),e.enter(s),m}function m(b){return f>999||b===null||b===91||b===93&&!d||b===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?r(b):b===93?(e.exit(s),e.enter(l),e.consume(b),e.exit(l),e.exit(i),n):Te(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===null||b===91||b===93||Te(b)||f++>999?(e.exit("chunkString"),m(b)):(e.consume(b),d||(d=!Ye(b)),b===92?w:y)}function w(b){return b===91||b===92||b===93?(e.consume(b),f++,y):y(b)}}function UE(e,n,r,i,l,s){let c;return f;function f(w){return w===34||w===39||w===40?(e.enter(i),e.enter(l),e.consume(w),e.exit(l),c=w===40?41:w,d):r(w)}function d(w){return w===c?(e.enter(l),e.consume(w),e.exit(l),e.exit(i),n):(e.enter(s),h(w))}function h(w){return w===c?(e.exit(s),d(c)):w===null?r(w):Te(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),Ze(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===c||w===null||Te(w)?(e.exit("chunkString"),h(w)):(e.consume(w),w===92?y:m)}function y(w){return w===c||w===92?(e.consume(w),m):m(w)}}function Vl(e,n){let r;return i;function i(l){return Te(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,i):Ye(l)?Ze(e,i,r?"linePrefix":"lineSuffix")(l):n(l)}}const Oz={name:"definition",tokenize:Lz},Pz={partial:!0,tokenize:zz};function Lz(e,n,r){const i=this;let l;return s;function s(b){return e.enter("definition"),c(b)}function c(b){return BE.call(i,e,f,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function f(b){return l=sr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),d):r(b)}function d(b){return ut(b)?Vl(e,h)(b):h(b)}function h(b){return IE(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function m(b){return e.attempt(Pz,y,y)(b)}function y(b){return Ye(b)?Ze(e,w,"whitespace")(b):w(b)}function w(b){return b===null||Te(b)?(e.exit("definition"),i.parser.defined.push(l),n(b)):r(b)}}function zz(e,n,r){return i;function i(f){return ut(f)?Vl(e,l)(f):r(f)}function l(f){return UE(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return Ye(f)?Ze(e,c,"whitespace")(f):c(f)}function c(f){return f===null||Te(f)?n(f):r(f)}}const Iz={name:"hardBreakEscape",tokenize:Bz};function Bz(e,n,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return Te(s)?(e.exit("hardBreakEscape"),n(s)):r(s)}}const Uz={name:"headingAtx",resolve:Hz,tokenize:Fz};function Hz(e,n){let r=e.length-2,i=3,l,s;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},s={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},Ln(e,i,r-i+1,[["enter",l,n],["enter",s,n],["exit",s,n],["exit",l,n]])),e}function Fz(e,n,r){let i=0;return l;function l(m){return e.enter("atxHeading"),s(m)}function s(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&i++<6?(e.consume(m),c):m===null||ut(m)?(e.exit("atxHeadingSequence"),f(m)):r(m)}function f(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Te(m)?(e.exit("atxHeading"),n(m)):Ye(m)?Ze(e,f,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),f(m))}function h(m){return m===null||m===35||ut(m)?(e.exit("atxHeadingText"),f(m)):(e.consume(m),h)}}const Vz=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],f0=["pre","script","style","textarea"],qz={concrete:!0,name:"htmlFlow",resolveTo:Yz,tokenize:Kz},$z={partial:!0,tokenize:Qz},Gz={partial:!0,tokenize:Xz};function Yz(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Kz(e,n,r){const i=this;let l,s,c,f,d;return h;function h(M){return m(M)}function m(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),y}function y(M){return M===33?(e.consume(M),w):M===47?(e.consume(M),s=!0,E):M===63?(e.consume(M),l=3,i.interrupt?n:k):sn(M)?(e.consume(M),c=String.fromCharCode(M),T):r(M)}function w(M){return M===45?(e.consume(M),l=2,b):M===91?(e.consume(M),l=5,f=0,S):sn(M)?(e.consume(M),l=4,i.interrupt?n:k):r(M)}function b(M){return M===45?(e.consume(M),i.interrupt?n:k):r(M)}function S(M){const ce="CDATA[";return M===ce.charCodeAt(f++)?(e.consume(M),f===ce.length?i.interrupt?n:J:S):r(M)}function E(M){return sn(M)?(e.consume(M),c=String.fromCharCode(M),T):r(M)}function T(M){if(M===null||M===47||M===62||ut(M)){const ce=M===47,Ee=c.toLowerCase();return!ce&&!s&&f0.includes(Ee)?(l=1,i.interrupt?n(M):J(M)):Vz.includes(c.toLowerCase())?(l=6,ce?(e.consume(M),A):i.interrupt?n(M):J(M)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(M):s?R(M):N(M))}return M===45||nn(M)?(e.consume(M),c+=String.fromCharCode(M),T):r(M)}function A(M){return M===62?(e.consume(M),i.interrupt?n:J):r(M)}function R(M){return Ye(M)?(e.consume(M),R):D(M)}function N(M){return M===47?(e.consume(M),D):M===58||M===95||sn(M)?(e.consume(M),O):Ye(M)?(e.consume(M),N):D(M)}function O(M){return M===45||M===46||M===58||M===95||nn(M)?(e.consume(M),O):L(M)}function L(M){return M===61?(e.consume(M),j):Ye(M)?(e.consume(M),L):N(M)}function j(M){return M===null||M===60||M===61||M===62||M===96?r(M):M===34||M===39?(e.consume(M),d=M,H):Ye(M)?(e.consume(M),j):$(M)}function H(M){return M===d?(e.consume(M),d=null,Y):M===null||Te(M)?r(M):(e.consume(M),H)}function $(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||ut(M)?L(M):(e.consume(M),$)}function Y(M){return M===47||M===62||Ye(M)?N(M):r(M)}function D(M){return M===62?(e.consume(M),Z):r(M)}function Z(M){return M===null||Te(M)?J(M):Ye(M)?(e.consume(M),Z):r(M)}function J(M){return M===45&&l===2?(e.consume(M),z):M===60&&l===1?(e.consume(M),Q):M===62&&l===4?(e.consume(M),W):M===63&&l===3?(e.consume(M),k):M===93&&l===5?(e.consume(M),ie):Te(M)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check($z,se,ne)(M)):M===null||Te(M)?(e.exit("htmlFlowData"),ne(M)):(e.consume(M),J)}function ne(M){return e.check(Gz,G,se)(M)}function G(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),ae}function ae(M){return M===null||Te(M)?ne(M):(e.enter("htmlFlowData"),J(M))}function z(M){return M===45?(e.consume(M),k):J(M)}function Q(M){return M===47?(e.consume(M),c="",B):J(M)}function B(M){if(M===62){const ce=c.toLowerCase();return f0.includes(ce)?(e.consume(M),W):J(M)}return sn(M)&&c.length<8?(e.consume(M),c+=String.fromCharCode(M),B):J(M)}function ie(M){return M===93?(e.consume(M),k):J(M)}function k(M){return M===62?(e.consume(M),W):M===45&&l===2?(e.consume(M),k):J(M)}function W(M){return M===null||Te(M)?(e.exit("htmlFlowData"),se(M)):(e.consume(M),W)}function se(M){return e.exit("htmlFlow"),n(M)}}function Xz(e,n,r){const i=this;return l;function l(c){return Te(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):r(c)}function s(c){return i.parser.lazy[i.now().line]?r(c):n(c)}}function Qz(e,n,r){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(ys,n,r)}}const Zz={name:"htmlText",tokenize:Wz};function Wz(e,n,r){const i=this;let l,s,c;return f;function f(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),d}function d(k){return k===33?(e.consume(k),h):k===47?(e.consume(k),L):k===63?(e.consume(k),N):sn(k)?(e.consume(k),$):r(k)}function h(k){return k===45?(e.consume(k),m):k===91?(e.consume(k),s=0,S):sn(k)?(e.consume(k),R):r(k)}function m(k){return k===45?(e.consume(k),b):r(k)}function y(k){return k===null?r(k):k===45?(e.consume(k),w):Te(k)?(c=y,Q(k)):(e.consume(k),y)}function w(k){return k===45?(e.consume(k),b):y(k)}function b(k){return k===62?z(k):k===45?w(k):y(k)}function S(k){const W="CDATA[";return k===W.charCodeAt(s++)?(e.consume(k),s===W.length?E:S):r(k)}function E(k){return k===null?r(k):k===93?(e.consume(k),T):Te(k)?(c=E,Q(k)):(e.consume(k),E)}function T(k){return k===93?(e.consume(k),A):E(k)}function A(k){return k===62?z(k):k===93?(e.consume(k),A):E(k)}function R(k){return k===null||k===62?z(k):Te(k)?(c=R,Q(k)):(e.consume(k),R)}function N(k){return k===null?r(k):k===63?(e.consume(k),O):Te(k)?(c=N,Q(k)):(e.consume(k),N)}function O(k){return k===62?z(k):N(k)}function L(k){return sn(k)?(e.consume(k),j):r(k)}function j(k){return k===45||nn(k)?(e.consume(k),j):H(k)}function H(k){return Te(k)?(c=H,Q(k)):Ye(k)?(e.consume(k),H):z(k)}function $(k){return k===45||nn(k)?(e.consume(k),$):k===47||k===62||ut(k)?Y(k):r(k)}function Y(k){return k===47?(e.consume(k),z):k===58||k===95||sn(k)?(e.consume(k),D):Te(k)?(c=Y,Q(k)):Ye(k)?(e.consume(k),Y):z(k)}function D(k){return k===45||k===46||k===58||k===95||nn(k)?(e.consume(k),D):Z(k)}function Z(k){return k===61?(e.consume(k),J):Te(k)?(c=Z,Q(k)):Ye(k)?(e.consume(k),Z):Y(k)}function J(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),l=k,ne):Te(k)?(c=J,Q(k)):Ye(k)?(e.consume(k),J):(e.consume(k),G)}function ne(k){return k===l?(e.consume(k),l=void 0,ae):k===null?r(k):Te(k)?(c=ne,Q(k)):(e.consume(k),ne)}function G(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||ut(k)?Y(k):(e.consume(k),G)}function ae(k){return k===47||k===62||ut(k)?Y(k):r(k)}function z(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),n):r(k)}function Q(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),B}function B(k){return Ye(k)?Ze(e,ie,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):ie(k)}function ie(k){return e.enter("htmlTextData"),c(k)}}const Fm={name:"labelEnd",resolveAll:n3,resolveTo:r3,tokenize:a3},Jz={tokenize:i3},e3={tokenize:o3},t3={tokenize:l3};function n3(e){let n=-1;const r=[];for(;++n<e.length;){const i=e[n][1];if(r.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",n+=l}}return e.length!==r.length&&Ln(e,0,e.length,r),e}function r3(e,n){let r=e.length,i=0,l,s,c,f;for(;r--;)if(l=e[r][1],s){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(s=r,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(c=r);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",d,n],["enter",h,n]],f=Kn(f,e.slice(s+1,s+i+3)),f=Kn(f,[["enter",m,n]]),f=Kn(f,Jc(n.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),n)),f=Kn(f,[["exit",m,n],e[c-2],e[c-1],["exit",h,n]]),f=Kn(f,e.slice(c+1)),f=Kn(f,[["exit",d,n]]),Ln(e,s,e.length,f),e}function a3(e,n,r){const i=this;let l=i.events.length,s,c;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){s=i.events[l][1];break}return f;function f(w){return s?s._inactive?y(w):(c=i.parser.defined.includes(sr(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(w),e.exit("labelMarker"),e.exit("labelEnd"),d):r(w)}function d(w){return w===40?e.attempt(Jz,m,c?m:y)(w):w===91?e.attempt(e3,m,c?h:y)(w):c?m(w):y(w)}function h(w){return e.attempt(t3,m,y)(w)}function m(w){return n(w)}function y(w){return s._balanced=!0,r(w)}}function i3(e,n,r){return i;function i(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),l}function l(y){return ut(y)?Vl(e,s)(y):s(y)}function s(y){return y===41?m(y):IE(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return ut(y)?Vl(e,d)(y):m(y)}function f(y){return r(y)}function d(y){return y===34||y===39||y===40?UE(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):m(y)}function h(y){return ut(y)?Vl(e,m)(y):m(y)}function m(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),n):r(y)}}function o3(e,n,r){const i=this;return l;function l(f){return BE.call(i,e,s,c,"reference","referenceMarker","referenceString")(f)}function s(f){return i.parser.defined.includes(sr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(f):r(f)}function c(f){return r(f)}}function l3(e,n,r){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),l}function l(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),n):r(s)}}const s3={name:"labelStartImage",resolveAll:Fm.resolveAll,tokenize:u3};function u3(e,n,r){const i=this;return l;function l(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):r(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(f):n(f)}}const c3={name:"labelStartLink",resolveAll:Fm.resolveAll,tokenize:f3};function f3(e,n,r){const i=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):n(c)}}const Fh={name:"lineEnding",tokenize:d3};function d3(e,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Ze(e,n,"linePrefix")}}const ic={name:"thematicBreak",tokenize:h3};function h3(e,n,r){let i=0,l;return s;function s(h){return e.enter("thematicBreak"),c(h)}function c(h){return l=h,f(h)}function f(h){return h===l?(e.enter("thematicBreakSequence"),d(h)):i>=3&&(h===null||Te(h))?(e.exit("thematicBreak"),n(h)):r(h)}function d(h){return h===l?(e.consume(h),i++,d):(e.exit("thematicBreakSequence"),Ye(h)?Ze(e,f,"whitespace")(h):f(h))}}const vn={continuation:{tokenize:y3},exit:x3,name:"list",tokenize:g3},p3={partial:!0,tokenize:b3},m3={partial:!0,tokenize:v3};function g3(e,n,r){const i=this,l=i.events[i.events.length-1];let s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return f;function f(b){const S=i.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!i.containerState.marker||b===i.containerState.marker:Pp(b)){if(i.containerState.type||(i.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(ic,r,h)(b):h(b);if(!i.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(b)}return r(b)}function d(b){return Pp(b)&&++c<10?(e.consume(b),d):(!i.interrupt||c<2)&&(i.containerState.marker?b===i.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),h(b)):r(b)}function h(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||b,e.check(ys,i.interrupt?r:m,e.attempt(p3,w,y))}function m(b){return i.containerState.initialBlankLine=!0,s++,w(b)}function y(b){return Ye(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),w):r(b)}function w(b){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(b)}}function y3(e,n,r){const i=this;return i.containerState._closeFlow=void 0,e.check(ys,l,s);function l(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Ze(e,n,"listItemIndent",i.containerState.size+1)(f)}function s(f){return i.containerState.furtherBlankLines||!Ye(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(m3,n,c)(f))}function c(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,Ze(e,e.attempt(vn,n,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function v3(e,n,r){const i=this;return Ze(e,l,"listItemIndent",i.containerState.size+1);function l(s){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?n(s):r(s)}}function x3(e){e.exit(this.containerState.type)}function b3(e,n,r){const i=this;return Ze(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const c=i.events[i.events.length-1];return!Ye(s)&&c&&c[1].type==="listItemPrefixWhitespace"?n(s):r(s)}}const d0={name:"setextUnderline",resolveTo:w3,tokenize:S3};function w3(e,n){let r=e.length,i,l,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",c,n]),e.splice(s+1,0,["exit",e[i][1],n]),e[i][1].end={...e[s][1].end}):e[i][1]=c,e.push(["exit",c,n]),e}function S3(e,n,r){const i=this;let l;return s;function s(h){let m=i.events.length,y;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){y=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||y)?(e.enter("setextHeadingLine"),l=h,c(h)):r(h)}function c(h){return e.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===l?(e.consume(h),f):(e.exit("setextHeadingLineSequence"),Ye(h)?Ze(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Te(h)?(e.exit("setextHeadingLine"),n(h)):r(h)}}const E3={tokenize:C3};function C3(e){const n=this,r=e.attempt(ys,i,e.attempt(this.parser.constructs.flowInitial,l,Ze(e,e.attempt(this.parser.constructs.flow,l,e.attempt(Nz,l)),"linePrefix")));return r;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const k3={resolveAll:FE()},A3=HE("string"),T3=HE("text");function HE(e){return{resolveAll:FE(e==="text"?R3:void 0),tokenize:n};function n(r){const i=this,l=this.parser.constructs[e],s=r.attempt(l,c,f);return c;function c(m){return h(m)?s(m):f(m)}function f(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),d}function d(m){return h(m)?(r.exit("data"),s(m)):(r.consume(m),d)}function h(m){if(m===null)return!0;const y=l[m];let w=-1;if(y)for(;++w<y.length;){const b=y[w];if(!b.previous||b.previous.call(i,i.previous))return!0}return!1}}}function FE(e){return n;function n(r,i){let l=-1,s;for(;++l<=r.length;)s===void 0?r[l]&&r[l][1].type==="data"&&(s=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==s+2&&(r[s][1].end=r[l-1][1].end,r.splice(s+2,l-s-2),l=s+2),s=void 0);return e?e(r,i):r}}function R3(e,n){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],l=n.sliceStream(i);let s=l.length,c=-1,f=0,d;for(;s--;){const h=l[s];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(h===-2)d=!0,f++;else if(h!==-1){s++;break}}if(n._contentTypeTextTrailing&&r===e.length&&(f=0),f){const h={type:r===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:i.start._bufferIndex+c,_index:i.start._index+s,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(r,0,["enter",h,n],["exit",h,n]),r+=2)}r++}return e}const N3={42:vn,43:vn,45:vn,48:vn,49:vn,50:vn,51:vn,52:vn,53:vn,54:vn,55:vn,56:vn,57:vn,62:OE},_3={91:Oz},M3={[-2]:Hh,[-1]:Hh,32:Hh},j3={35:Uz,42:ic,45:[d0,ic],60:qz,61:d0,95:ic,96:c0,126:c0},D3={38:LE,92:PE},O3={[-5]:Fh,[-4]:Fh,[-3]:Fh,33:s3,38:LE,42:Lp,60:[cz,Zz],91:c3,92:[Iz,PE],93:Fm,95:Lp,96:Ez},P3={null:[Lp,k3]},L3={null:[42,95]},z3={null:[]},I3=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:L3,contentInitial:_3,disable:z3,document:N3,flow:j3,flowInitial:M3,insideSpan:P3,string:D3,text:O3},Symbol.toStringTag,{value:"Module"}));function B3(e,n,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},s=[];let c=[],f=[];const d={attempt:H(L),check:H(j),consume:R,enter:N,exit:O,interrupt:H(j,{interrupt:!0})},h={code:null,containerState:{},defineSkip:E,events:[],now:S,parser:e,previous:null,sliceSerialize:w,sliceStream:b,write:y};let m=n.tokenize.call(h,d);return n.resolveAll&&s.push(n),h;function y(Z){return c=Kn(c,Z),T(),c[c.length-1]!==null?[]:($(n,0),h.events=Jc(s,h.events,h),h.events)}function w(Z,J){return H3(b(Z),J)}function b(Z){return U3(c,Z)}function S(){const{_bufferIndex:Z,_index:J,line:ne,column:G,offset:ae}=i;return{_bufferIndex:Z,_index:J,line:ne,column:G,offset:ae}}function E(Z){l[Z.line]=Z.column,D()}function T(){let Z;for(;i._index<c.length;){const J=c[i._index];if(typeof J=="string")for(Z=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Z&&i._bufferIndex<J.length;)A(J.charCodeAt(i._bufferIndex));else A(J)}}function A(Z){m=m(Z)}function R(Z){Te(Z)?(i.line++,i.column=1,i.offset+=Z===-3?2:1,D()):Z!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=Z}function N(Z,J){const ne=J||{};return ne.type=Z,ne.start=S(),h.events.push(["enter",ne,h]),f.push(ne),ne}function O(Z){const J=f.pop();return J.end=S(),h.events.push(["exit",J,h]),J}function L(Z,J){$(Z,J.from)}function j(Z,J){J.restore()}function H(Z,J){return ne;function ne(G,ae,z){let Q,B,ie,k;return Array.isArray(G)?se(G):"tokenize"in G?se([G]):W(G);function W(pe){return le;function le(ve){const Ve=ve!==null&&pe[ve],De=ve!==null&&pe.null,Be=[...Array.isArray(Ve)?Ve:Ve?[Ve]:[],...Array.isArray(De)?De:De?[De]:[]];return se(Be)(ve)}}function se(pe){return Q=pe,B=0,pe.length===0?z:M(pe[B])}function M(pe){return le;function le(ve){return k=Y(),ie=pe,pe.partial||(h.currentConstruct=pe),pe.name&&h.parser.constructs.disable.null.includes(pe.name)?Ee():pe.tokenize.call(J?Object.assign(Object.create(h),J):h,d,ce,Ee)(ve)}}function ce(pe){return Z(ie,k),ae}function Ee(pe){return k.restore(),++B<Q.length?M(Q[B]):z}}}function $(Z,J){Z.resolveAll&&!s.includes(Z)&&s.push(Z),Z.resolve&&Ln(h.events,J,h.events.length-J,Z.resolve(h.events.slice(J),h)),Z.resolveTo&&(h.events=Z.resolveTo(h.events,h))}function Y(){const Z=S(),J=h.previous,ne=h.currentConstruct,G=h.events.length,ae=Array.from(f);return{from:G,restore:z};function z(){i=Z,h.previous=J,h.currentConstruct=ne,h.events.length=G,f=ae,D()}}function D(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function U3(e,n){const r=n.start._index,i=n.start._bufferIndex,l=n.end._index,s=n.end._bufferIndex;let c;if(r===l)c=[e[r].slice(i,s)];else{if(c=e.slice(r,l),i>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(i):c.shift()}s>0&&c.push(e[l].slice(0,s))}return c}function H3(e,n){let r=-1;const i=[];let l;for(;++r<e.length;){const s=e[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
367
367
  `;break}case-3:{c=`\r
368
368
  `;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&l)continue;c=" ";break}default:c=String.fromCharCode(s)}l=s===-2,i.push(c)}return i.join("")}function F3(e){const i={constructs:jE([I3,...(e||{}).extensions||[]]),content:l(rz),defined:[],document:l(iz),flow:l(E3),lazy:{},string:l(A3),text:l(T3)};return i;function l(s){return c;function c(f){return B3(i,s,f)}}}function V3(e){for(;!zE(e););return e}const h0=/[\0\t\n\r]/g;function q3(){let e=1,n="",r=!0,i;return l;function l(s,c,f){const d=[];let h,m,y,w,b;for(s=n+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),y=0,n="",r&&(s.charCodeAt(0)===65279&&y++,r=void 0);y<s.length;){if(h0.lastIndex=y,h=h0.exec(s),w=h&&h.index!==void 0?h.index:s.length,b=s.charCodeAt(w),!h){n=s.slice(y);break}if(b===10&&y===w&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),y<w&&(d.push(s.slice(y,w)),e+=w-y),b){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:i=!0,e=1}y=w+1}return f&&(i&&d.push(-5),n&&d.push(n),d.push(null)),d}}const $3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function G3(e){return e.replace($3,Y3)}function Y3(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),s=l===120||l===88;return DE(r.slice(s?2:1),s?16:10)}return Hm(r)||e}const VE={}.hasOwnProperty;function K3(e,n,r){return typeof n!="string"&&(r=n,n=void 0),X3(r)(V3(F3(r).document().write(q3()(e,n,!0))))}function X3(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(bn),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:s(zn),blockQuote:s(De),characterEscape:Y,characterReference:Y,codeFenced:s(Be),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Be,c),codeText:s(We,c),codeTextData:Y,data:Y,codeFlowValue:Y,definition:s(Ke),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(xt),hardBreakEscape:s(tr),hardBreakTrailing:s(tr),htmlFlow:s(Rt,c),htmlFlowData:Y,htmlText:s(Rt,c),htmlTextData:Y,image:s(yi),label:c,link:s(bn),listItem:s(hr),listItemValue:w,listOrdered:s(wn,y),listUnordered:s(wn),paragraph:s(ea),reference:M,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(zn),strong:s(Sn),thematicBreak:s(vi)},exit:{atxHeading:d(),atxHeadingSequence:L,autolink:d(),autolinkEmail:Ve,autolinkProtocol:ve,blockQuote:d(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:Ee,characterReferenceMarkerNumeric:Ee,characterReferenceValue:pe,characterReference:le,codeFenced:d(T),codeFencedFence:E,codeFencedFenceInfo:b,codeFencedFenceMeta:S,codeFlowValue:D,codeIndented:d(A),codeText:d(ae),codeTextData:D,data:D,definition:d(),definitionDestinationString:O,definitionLabelString:R,definitionTitleString:N,emphasis:d(),hardBreakEscape:d(J),hardBreakTrailing:d(J),htmlFlow:d(ne),htmlFlowData:D,htmlText:d(G),htmlTextData:D,image:d(Q),label:ie,labelText:B,lineEnding:Z,link:d(z),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:ce,resourceDestinationString:k,resourceTitleString:W,resource:se,setextHeading:d($),setextHeadingLineSequence:H,setextHeadingText:j,strong:d(),thematicBreak:d()}};qE(n,(e||{}).mdastExtensions||[]);const r={};return i;function i(ee){let de={type:"root",children:[]};const ke={stack:[de],tokenStack:[],config:n,enter:f,exit:h,buffer:c,resume:m,data:r},Ae=[];let Je=-1;for(;++Je<ee.length;)if(ee[Je][1].type==="listOrdered"||ee[Je][1].type==="listUnordered")if(ee[Je][0]==="enter")Ae.push(Je);else{const Zt=Ae.pop();Je=l(ee,Zt,Je)}for(Je=-1;++Je<ee.length;){const Zt=n[ee[Je][0]];VE.call(Zt,ee[Je][1].type)&&Zt[ee[Je][1].type].call(Object.assign({sliceSerialize:ee[Je][2].sliceSerialize},ke),ee[Je][1])}if(ke.tokenStack.length>0){const Zt=ke.tokenStack[ke.tokenStack.length-1];(Zt[1]||p0).call(ke,void 0,Zt[0])}for(de.position={start:ka(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:ka(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},Je=-1;++Je<n.transforms.length;)de=n.transforms[Je](de)||de;return de}function l(ee,de,ke){let Ae=de-1,Je=-1,Zt=!1,fn,Wt,In,Jt;for(;++Ae<=ke;){const Nt=ee[Ae];switch(Nt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Nt[0]==="enter"?Je++:Je--,Jt=void 0;break}case"lineEndingBlank":{Nt[0]==="enter"&&(fn&&!Jt&&!Je&&!In&&(In=Ae),Jt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Jt=void 0}if(!Je&&Nt[0]==="enter"&&Nt[1].type==="listItemPrefix"||Je===-1&&Nt[0]==="exit"&&(Nt[1].type==="listUnordered"||Nt[1].type==="listOrdered")){if(fn){let dn=Ae;for(Wt=void 0;dn--;){const En=ee[dn];if(En[1].type==="lineEnding"||En[1].type==="lineEndingBlank"){if(En[0]==="exit")continue;Wt&&(ee[Wt][1].type="lineEndingBlank",Zt=!0),En[1].type="lineEnding",Wt=dn}else if(!(En[1].type==="linePrefix"||En[1].type==="blockQuotePrefix"||En[1].type==="blockQuotePrefixWhitespace"||En[1].type==="blockQuoteMarker"||En[1].type==="listItemIndent"))break}In&&(!Wt||In<Wt)&&(fn._spread=!0),fn.end=Object.assign({},Wt?ee[Wt][1].start:Nt[1].end),ee.splice(Wt||Ae,0,["exit",fn,Nt[2]]),Ae++,ke++}if(Nt[1].type==="listItemPrefix"){const dn={type:"listItem",_spread:!1,start:Object.assign({},Nt[1].start),end:void 0};fn=dn,ee.splice(Ae,0,["enter",dn,Nt[2]]),Ae++,ke++,In=void 0,Jt=!0}}}return ee[de][1]._spread=Zt,ke}function s(ee,de){return ke;function ke(Ae){f.call(this,ee(Ae),Ae),de&&de.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(ee,de,ke){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([de,ke||void 0]),ee.position={start:ka(de.start),end:void 0}}function d(ee){return de;function de(ke){ee&&ee.call(this,ke),h.call(this,ke)}}function h(ee,de){const ke=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==ee.type&&(de?de.call(this,ee,Ae[0]):(Ae[1]||p0).call(this,ee,Ae[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Fl({start:ee.start,end:ee.end})+"): it’s not open");ke.position.end=ka(ee.end)}function m(){return Um(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function w(ee){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function b(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.lang=ee}function S(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.meta=ee}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee.replace(/(\r?\n|\r)$/g,"")}function R(ee){const de=this.resume(),ke=this.stack[this.stack.length-1];ke.label=de,ke.identifier=sr(this.sliceSerialize(ee)).toLowerCase()}function N(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.title=ee}function O(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.url=ee}function L(ee){const de=this.stack[this.stack.length-1];if(!de.depth){const ke=this.sliceSerialize(ee).length;de.depth=ke}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function H(ee){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(ee){const ke=this.stack[this.stack.length-1].children;let Ae=ke[ke.length-1];(!Ae||Ae.type!=="text")&&(Ae=ta(),Ae.position={start:ka(ee.start),end:void 0},ke.push(Ae)),this.stack.push(Ae)}function D(ee){const de=this.stack.pop();de.value+=this.sliceSerialize(ee),de.position.end=ka(ee.end)}function Z(ee){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ke=de.children[de.children.length-1];ke.position.end=ka(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(de.type)&&(Y.call(this,ee),D.call(this,ee))}function J(){this.data.atHardBreak=!0}function ne(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function G(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function ae(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function z(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=de,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function Q(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=de,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function B(ee){const de=this.sliceSerialize(ee),ke=this.stack[this.stack.length-2];ke.label=G3(de),ke.identifier=sr(de).toLowerCase()}function ie(){const ee=this.stack[this.stack.length-1],de=this.resume(),ke=this.stack[this.stack.length-1];if(this.data.inReference=!0,ke.type==="link"){const Ae=ee.children;ke.children=Ae}else ke.alt=de}function k(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.url=ee}function W(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.title=ee}function se(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function ce(ee){const de=this.resume(),ke=this.stack[this.stack.length-1];ke.label=de,ke.identifier=sr(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function Ee(ee){this.data.characterReferenceType=ee.type}function pe(ee){const de=this.sliceSerialize(ee),ke=this.data.characterReferenceType;let Ae;ke?(Ae=DE(de,ke==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=Hm(de);const Je=this.stack[this.stack.length-1];Je.value+=Ae}function le(ee){const de=this.stack.pop();de.position.end=ka(ee.end)}function ve(ee){D.call(this,ee);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(ee)}function Ve(ee){D.call(this,ee);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(ee)}function De(){return{type:"blockquote",children:[]}}function Be(){return{type:"code",lang:null,meta:null,value:""}}function We(){return{type:"inlineCode",value:""}}function Ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xt(){return{type:"emphasis",children:[]}}function zn(){return{type:"heading",depth:0,children:[]}}function tr(){return{type:"break"}}function Rt(){return{type:"html",value:""}}function yi(){return{type:"image",title:null,url:"",alt:null}}function bn(){return{type:"link",title:null,url:"",children:[]}}function wn(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function hr(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function ea(){return{type:"paragraph",children:[]}}function Sn(){return{type:"strong",children:[]}}function ta(){return{type:"text",value:""}}function vi(){return{type:"thematicBreak"}}}function ka(e){return{line:e.line,column:e.column,offset:e.offset}}function qE(e,n){let r=-1;for(;++r<n.length;){const i=n[r];Array.isArray(i)?qE(e,i):Q3(e,i)}}function Q3(e,n){let r;for(r in n)if(VE.call(n,r))switch(r){case"canContainEols":{const i=n[r];i&&e[r].push(...i);break}case"transforms":{const i=n[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=n[r];i&&Object.assign(e[r],i);break}}}function p0(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Fl({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Fl({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Fl({start:n.start,end:n.end})+") is still open")}function Z3(e){const n=this;n.parser=r;function r(i){return K3(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function W3(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function J3(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
@@ -465,4 +465,4 @@ ${G.content||""}`;i(ae)}else i(null)}catch(J){console.error("Error fetching prop
465
465
  ${l}`,r&&`=== PROPOSAL CONTENT ===
466
466
  ${r}`].filter(Boolean),G=ne.length>0?ne.join(`
467
467
 
468
- `):null;return{type:R.includes("/edit")?"proposals-edit":"proposals-view",content:G,displayId:D,contextFiles:J}}return{type:"proposals",content:l,contextFiles:"project.md"}}return R.includes("/context")?R.includes("/architecture")?{type:"context-architecture",content:c,contextFiles:"architecture.md"}:R.includes("/project")?{type:"context-project",content:l,contextFiles:"project.md"}:R.includes("/knowledge")?{type:"context-knowledge",content:null}:{type:"context",content:null}:R.includes("/settings")?R.includes("/agents")?{type:"settings-agents",content:null}:R.includes("/integrations")?{type:"settings-integrations",content:null}:R.includes("/prompts")?{type:"settings-prompts",content:null}:R.includes("/rules")?{type:"settings-rules",content:null}:R.includes("/user")?{type:"settings-user",content:null}:{type:"settings",content:null}:R.includes("/terminal")?{type:"terminal",content:null}:{type:"dashboard",content:null}};return g.jsx(CS,{children:g.jsxs("div",{className:"flex min-h-screen w-full overflow-hidden",children:[g.jsx(RP,{}),g.jsxs(TS,{className:ue("flex-1 min-w-0 transition-all duration-300 ease-in-out",e&&"mr-96"),children:[g.jsxs("header",{className:"flex h-16 shrink-0 items-center gap-2 border-b border-content-border px-4 bg-background",children:[g.jsx(AS,{className:"-ml-1"}),g.jsxs("div",{className:"flex items-center justify-between flex-1",children:[g.jsx("h1",{className:"text-lg font-semibold",children:d||"Coconut"}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(vt,{onClick:j,size:"icon",className:"h-8 w-8 rounded-full",children:g.jsx(dp,{className:"h-4 w-4"})}),L&&N&&g.jsxs(JB,{children:[g.jsx(eU,{asChild:!0,children:g.jsx(vt,{size:"icon",variant:"outline",className:"h-8 w-8 rounded-full",children:g.jsx(xj,{className:"h-4 w-4"})})}),g.jsxs(w2,{align:"end",children:[g.jsx(E2,{children:g.jsxs("div",{className:"flex flex-col space-y-1",children:[g.jsx("p",{className:"text-sm font-medium leading-none",children:N.name}),g.jsx("p",{className:"text-xs leading-none text-muted-foreground",children:N.email})]})}),g.jsx(C2,{}),g.jsxs(S2,{onClick:H,children:[g.jsx(OM,{className:"mr-2 h-4 w-4"}),"Logout"]})]})]})]})]})]}),g.jsx("main",{className:"flex flex-1 flex-col gap-4 p-4 overflow-auto bg-content-background",children:g.jsx(nw,{})})]}),g.jsx(M8,{isOpen:e,onToggle:j,contextInfo:$(),discussDocument:m,onDiscussDocumentHandled:()=>y(null),pendingPrompt:w,onPendingPromptHandled:()=>b(null),openInFullScreen:S,onFullScreenHandled:()=>E(!1)})]})})}const oU=[{title:"Coconut Profile",href:"/settings/user",icon:mj,description:"Manage the Coconut's profile information."},{title:"User Preferences",href:"/settings/preferences",icon:aj,description:"Configure individual workspace preferences"},{title:"Authentication",href:"/settings/authentication",icon:nj,description:"Configure authentication and user access"},{title:"API Keys",href:"/settings/api-keys",icon:MM,description:"Manage API keys for programmatic access"},{title:"Symlinks",href:"/settings/rules",icon:uc,description:"Manage symlinks for easy access to project rules and configurations"},{title:"AI & LLM",href:"/settings/integrations",icon:GM,description:"Connect Coconut to LLM providers and automation hooks"},{title:"Git",href:"/settings/git",icon:Xw,description:"Configure repository defaults like worktree paths"},{title:"MCP",href:"/settings/mcp",icon:UM,description:"Model Context Protocol configuration and settings"}];function lU(){const e=Wn();return g.jsxs("div",{className:"flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0",children:[g.jsx("aside",{className:"lg:w-1/5",children:g.jsx("nav",{className:"flex overflow-x-auto pb-2 gap-1 lg:flex-col lg:gap-0 lg:space-y-1 lg:overflow-visible lg:pb-0",children:oU.map(n=>g.jsxs(Sr,{to:n.href,className:ue("inline-flex items-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 hover:text-accent-foreground h-9 px-2 sm:px-3 lg:px-4 py-2 hover:bg-accent justify-start flex-shrink-0",e.pathname===n.href?"bg-accent text-accent-foreground":"text-muted-foreground"),children:[g.jsx(n.icon,{className:"h-4 w-4 lg:mr-2"}),g.jsx("span",{className:"hidden lg:inline",children:n.title})]},n.href))})}),g.jsx("div",{className:"flex-1 lg:max-w-2xl",children:g.jsx("div",{className:"space-y-6",children:g.jsx(nw,{})})})]})}const sU=v.lazy(()=>Ie(()=>import("./DashboardPage-3PlgC6UV.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))),uU=v.lazy(()=>Ie(()=>import("./LoginPage-CBRJBmlC.js"),__vite__mapDeps([18,3,1,19]))),cU=v.lazy(()=>Ie(()=>import("./CallbackPage-B6CJkdJu.js"),__vite__mapDeps([20,8,21]))),fU=v.lazy(()=>Ie(()=>import("./ProposalsPage-Dcms-16A.js"),__vite__mapDeps([22,1,2,17,10]))),dU=v.lazy(()=>Ie(()=>import("./ProposalDetailPage-5b6lLZRq.js"),__vite__mapDeps([23,24,1,2,3,25,26,27,12,15]))),hU=v.lazy(()=>Ie(()=>import("./ProposalEditPage-lm9wiiHa.js"),__vite__mapDeps([28,3,1,29,30,31,32,17,33,2,25])).then(e=>({default:e.ProposalEditPage}))),pU=v.lazy(()=>Ie(()=>import("./NewProposalPage-C77pO28o.js"),__vite__mapDeps([34,1,3,29,30,31,32,17,33,2,25])).then(e=>({default:e.NewProposalPage}))),mU=v.lazy(()=>Ie(()=>import("./TerminalPage-CYqTT1pK.js"),__vite__mapDeps([35,1,4,5,6,7,36,37,14,38,39]))),gU=v.lazy(()=>Ie(()=>import("./TerminalSessionPage-a9QWo08R.js"),__vite__mapDeps([40,1,2,41,31,3,4,6,7,42,43,36,14,17,11,39]))),yU=v.lazy(()=>Ie(()=>import("./UtilitiesPage-CZCmnyTp.js"),__vite__mapDeps([44,1,4,38,14]))),vU=v.lazy(()=>Ie(()=>import("./CodePage-DGxzOKzh.js"),__vite__mapDeps([45,1,2,4,5,6,7,43,36,37,14]))),xU=v.lazy(()=>Ie(()=>import("./AgentsPage-nnMzCmw9.js"),__vite__mapDeps([46,1,2,24,47,48,10,17,49]))),bU=v.lazy(()=>Ie(()=>import("./AgentDetailPage-Dww8h17d.js"),__vite__mapDeps([50,1,2,25]))),wU=v.lazy(()=>Ie(()=>import("./NewAgentPage-DDkFaqIq.js"),__vite__mapDeps([51,1,3,2,24,25,26]))),SU=v.lazy(()=>Ie(()=>import("./AgentEditPage-K6I9kvCf.js"),__vite__mapDeps([52,1,3,2,24,25,26]))),EU=v.lazy(()=>Ie(()=>import("./ResourcesPage-BGugJIYF.js"),__vite__mapDeps([53,1,3,2,24,48,27,9,12,49,17,10]))),CU=v.lazy(()=>Ie(()=>import("./KnowledgePage-BuEcOdou.js"),__vite__mapDeps([54,1,2,24,47,48,10,17,55,42]))),kU=v.lazy(()=>Ie(()=>import("./KnowledgeDetailPage-8q-MYEOA.js"),__vite__mapDeps([56,1,2,24,25,12,49]))),AU=v.lazy(()=>Ie(()=>import("./KnowledgeEditPage-Di63BhFz.js"),__vite__mapDeps([57,1,3,29,30,33,2,58,17,25]))),TU=v.lazy(()=>Ie(()=>import("./NewKnowledgePage-BqMSsS53.js"),__vite__mapDeps([59,1,3,29,30,33,2,58,17,25]))),RU=v.lazy(()=>Ie(()=>import("./ProjectPage-BBL0XITa.js"),__vite__mapDeps([60,1,2,24]))),NU=v.lazy(()=>Ie(()=>import("./ProjectEditPage-Dp5M7aXW.js"),__vite__mapDeps([61,1,3,29,30,25,16]))),_U=v.lazy(()=>Ie(()=>import("./ArchitecturePage-C4bkskmN.js"),__vite__mapDeps([62,1,24]))),MU=v.lazy(()=>Ie(()=>import("./ArchitectureEditPage-wx1LBCGC.js"),__vite__mapDeps([63,1,3,29,30,25,16]))),jU=v.lazy(()=>Ie(()=>import("./RolePage-B1kmmDDF.js"),__vite__mapDeps([64,1,24]))),DU=v.lazy(()=>Ie(()=>import("./RoleEditPage-DI1lGRK2.js"),__vite__mapDeps([65,1,29,30,25,16]))),OU=v.lazy(()=>Ie(()=>import("./IdentityPage-B8xDJx3W.js"),__vite__mapDeps([66,1,3,2,67,19,11,68,17,26]))),q0=v.lazy(()=>Ie(()=>import("./UserSettingsPage-Dsop4_yN.js"),__vite__mapDeps([69,1,3,26]))),PU=v.lazy(()=>Ie(()=>import("./AuthSettingsPage-AXU_vx8p.js"),__vite__mapDeps([70,1,3,71,2,72]))),LU=v.lazy(()=>Ie(()=>import("./ApiKeysSettingsPage-DY0vNNSR.js"),__vite__mapDeps([73,1,3,2,67,17,72]))),zU=v.lazy(()=>Ie(()=>import("./AgentsSettingsPage-Dnkw87_8.js"),__vite__mapDeps([74,1,3,2,17,75,14,11]))),IU=v.lazy(()=>Ie(()=>import("./IntegrationsSettingsPage-CSr-dlmL.js"),__vite__mapDeps([76,1,3]))),BU=v.lazy(()=>Ie(()=>import("./GitSettingsPage-D22W0fXd.js"),__vite__mapDeps([77,1,3,41,36,8,21]))),UU=v.lazy(()=>Ie(()=>import("./McpSettingsPage-gariusH3.js"),__vite__mapDeps([78,1,3,2,71,67,47,48,10,72,17,16]))),HU=v.lazy(()=>Ie(()=>import("./PromptsSettingsPage-DOcni_gq.js"),__vite__mapDeps([79,1,3,2,17,68,27]))),FU=v.lazy(()=>Ie(()=>import("./RulesSettingsPage-Br_c4fhl.js"),__vite__mapDeps([80,1,3,2,17]))),VU=v.lazy(()=>Ie(()=>import("./GitPage-vBLrGiwG.js"),__vite__mapDeps([81,1,3,19,8,21,42,55,36,72,13]))),qU=v.lazy(()=>Ie(()=>import("./SchedulePage-DMBddFXL.js"),__vite__mapDeps([82,1,2,3,71,19,36,17,14,75,15]))),$U=v.lazy(()=>Ie(()=>import("./JobDetailPage-BUHRLYvQ.js"),__vite__mapDeps([83,24,1,2,25,14,26,36,75,15,12]))),GU=v.lazy(()=>Ie(()=>import("./UserPreferencesPage-IVxOVtNk.js"),__vite__mapDeps([84,1,3]))),YU=v.lazy(()=>Ie(()=>import("./ActivityPage-qJKqmwv7.js"),__vite__mapDeps([85,1,2])));function KU(){return g.jsxs(GN,{children:[g.jsx(iN,{children:g.jsx(v.Suspense,{fallback:g.jsx(sD,{}),children:g.jsxs(PR,{children:[g.jsx(Oe,{path:"/login",element:g.jsx(uU,{})}),g.jsx(Oe,{path:"/auth/github/callback",element:g.jsx(cU,{})}),g.jsxs(Oe,{path:"/",element:g.jsx(lD,{children:g.jsx(iU,{})}),children:[g.jsx(Oe,{index:!0,element:g.jsx(sU,{})}),g.jsx(Oe,{path:"proposals",element:g.jsx(fU,{})}),g.jsx(Oe,{path:"proposals/new",element:g.jsx(pU,{})}),g.jsx(Oe,{path:"proposals/:id",element:g.jsx(dU,{})}),g.jsx(Oe,{path:"proposals/:id/edit",element:g.jsx(hU,{})}),g.jsx(Oe,{path:"code",element:g.jsx(vU,{})}),g.jsx(Oe,{path:"utilities",element:g.jsx(yU,{})}),g.jsx(Oe,{path:"terminal",element:g.jsx(mU,{})}),g.jsx(Oe,{path:"terminal/:proposalId",element:g.jsx(gU,{})}),g.jsx(Oe,{path:"git",element:g.jsx(VU,{})}),g.jsx(Oe,{path:"schedule",element:g.jsx(qU,{})}),g.jsx(Oe,{path:"schedule/:id",element:g.jsx($U,{})}),g.jsx(Oe,{path:"identity",element:g.jsx(OU,{})}),g.jsx(Oe,{path:"agents",element:g.jsx(xU,{})}),g.jsx(Oe,{path:"agents/new",element:g.jsx(wU,{})}),g.jsx(Oe,{path:"agents/:id",element:g.jsx(bU,{})}),g.jsx(Oe,{path:"agents/:id/edit",element:g.jsx(SU,{})}),g.jsx(Oe,{path:"activity",element:g.jsx(YU,{})}),g.jsx(Oe,{path:"resources",element:g.jsx(EU,{})}),g.jsx(Oe,{path:"context/project",element:g.jsx(RU,{})}),g.jsx(Oe,{path:"context/project/edit",element:g.jsx(NU,{})}),g.jsx(Oe,{path:"context/architecture",element:g.jsx(_U,{})}),g.jsx(Oe,{path:"context/architecture/edit",element:g.jsx(MU,{})}),g.jsx(Oe,{path:"context/role",element:g.jsx(jU,{})}),g.jsx(Oe,{path:"context/role/edit",element:g.jsx(DU,{})}),g.jsx(Oe,{path:"context/knowledge",element:g.jsx(CU,{})}),g.jsx(Oe,{path:"context/knowledge/new",element:g.jsx(TU,{})}),g.jsx(Oe,{path:"context/knowledge/:filename",element:g.jsx(kU,{})}),g.jsx(Oe,{path:"context/knowledge/:filename/edit",element:g.jsx(AU,{})}),g.jsxs(Oe,{path:"settings",element:g.jsx(lU,{}),children:[g.jsx(Oe,{index:!0,element:g.jsx(q0,{})}),g.jsx(Oe,{path:"user",element:g.jsx(q0,{})}),g.jsx(Oe,{path:"preferences",element:g.jsx(GU,{})}),g.jsx(Oe,{path:"authentication",element:g.jsx(PU,{})}),g.jsx(Oe,{path:"api-keys",element:g.jsx(LU,{})}),g.jsx(Oe,{path:"agents",element:g.jsx(zU,{})}),g.jsx(Oe,{path:"integrations",element:g.jsx(IU,{})}),g.jsx(Oe,{path:"git",element:g.jsx(BU,{})}),g.jsx(Oe,{path:"mcp",element:g.jsx(UU,{})}),g.jsx(Oe,{path:"prompts",element:g.jsx(HU,{})}),g.jsx(Oe,{path:"rules",element:g.jsx(FU,{})})]})]})]})})}),g.jsx(oD,{})]})}UT.createRoot(document.getElementById("root")).render(g.jsx(v.StrictMode,{children:g.jsx(KU,{})}));export{XC as $,Et as A,vt as B,nM as C,Zc as D,pM as E,uc as F,Xw as G,yw as H,d1 as I,cc as J,iH as K,Sr as L,IM as M,lp as N,QU as O,aM as P,XU as Q,lj as R,es as S,fj as T,W9 as U,J9 as V,hj as W,so as X,$C as Y,GC as Z,KC as _,ZN as a,Uh as a$,YC as a0,ZC as a1,QC as a2,bs as a3,xj as a4,aH as a5,gE as a6,m1 as a7,KM as a8,iD as a9,N9 as aA,wM as aB,tf as aC,Cc as aD,uH as aE,sH as aF,Hm as aG,Ym as aH,Pm as aI,zp as aJ,z5 as aK,xL as aL,oH as aM,lL as aN,EL as aO,dL as aP,SL as aQ,Mp as aR,Lm as aS,CE as aT,Wl as aU,u6 as aV,Z3 as aW,$5 as aX,WE as aY,lH as aZ,OL as a_,JB as aa,eU as ab,w2 as ac,E2 as ad,C2 as ae,S2 as af,JU as ag,oc as ah,rU as ai,wj as aj,qN as ak,Oc as al,cM as am,_a as an,Jn as ao,_c as ap,me as aq,_e as ar,ze as as,Yc as at,Ep as au,aS as av,MS as aw,xb as ax,g6 as ay,B9 as az,hs as b,Aa as b0,rn as b1,_0 as b2,ZU as b3,UM as b4,eo as b5,MM as b6,Dc as b7,kr as b8,Ek as b9,F8 as ba,V8 as bb,un as bc,oM as bd,b8 as be,WU as bf,W_ as bg,kM as bh,Y_ as bi,je as c,ps as d,ue as e,ms as f,Il as g,Gb as h,Np as i,g as j,Yb as k,_p as l,li as m,dp as n,nj as o,Hl as p,sM as q,v as r,ej as s,Kw as t,as as u,Yw as v,wk as w,WM as x,zh as y,Wn as z};
468
+ `):null;return{type:R.includes("/edit")?"proposals-edit":"proposals-view",content:G,displayId:D,contextFiles:J}}return{type:"proposals",content:l,contextFiles:"project.md"}}return R.includes("/context")?R.includes("/architecture")?{type:"context-architecture",content:c,contextFiles:"architecture.md"}:R.includes("/project")?{type:"context-project",content:l,contextFiles:"project.md"}:R.includes("/knowledge")?{type:"context-knowledge",content:null}:{type:"context",content:null}:R.includes("/settings")?R.includes("/agents")?{type:"settings-agents",content:null}:R.includes("/integrations")?{type:"settings-integrations",content:null}:R.includes("/prompts")?{type:"settings-prompts",content:null}:R.includes("/rules")?{type:"settings-rules",content:null}:R.includes("/user")?{type:"settings-user",content:null}:{type:"settings",content:null}:R.includes("/terminal")?{type:"terminal",content:null}:{type:"dashboard",content:null}};return g.jsx(CS,{children:g.jsxs("div",{className:"flex min-h-screen w-full overflow-hidden",children:[g.jsx(RP,{}),g.jsxs(TS,{className:ue("flex-1 min-w-0 transition-all duration-300 ease-in-out",e&&"mr-96"),children:[g.jsxs("header",{className:"flex h-16 shrink-0 items-center gap-2 border-b border-content-border px-4 bg-background",children:[g.jsx(AS,{className:"-ml-1"}),g.jsxs("div",{className:"flex items-center justify-between flex-1",children:[g.jsx("h1",{className:"text-lg font-semibold",children:d||"Coconut"}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(vt,{onClick:j,size:"icon",className:"h-8 w-8 rounded-full",children:g.jsx(dp,{className:"h-4 w-4"})}),L&&N&&g.jsxs(JB,{children:[g.jsx(eU,{asChild:!0,children:g.jsx(vt,{size:"icon",variant:"outline",className:"h-8 w-8 rounded-full",children:g.jsx(xj,{className:"h-4 w-4"})})}),g.jsxs(w2,{align:"end",children:[g.jsx(E2,{children:g.jsxs("div",{className:"flex flex-col space-y-1",children:[g.jsx("p",{className:"text-sm font-medium leading-none",children:N.name}),g.jsx("p",{className:"text-xs leading-none text-muted-foreground",children:N.email})]})}),g.jsx(C2,{}),g.jsxs(S2,{onClick:H,children:[g.jsx(OM,{className:"mr-2 h-4 w-4"}),"Logout"]})]})]})]})]})]}),g.jsx("main",{className:"flex flex-1 flex-col gap-4 p-4 overflow-auto bg-content-background",children:g.jsx(nw,{})})]}),g.jsx(M8,{isOpen:e,onToggle:j,contextInfo:$(),discussDocument:m,onDiscussDocumentHandled:()=>y(null),pendingPrompt:w,onPendingPromptHandled:()=>b(null),openInFullScreen:S,onFullScreenHandled:()=>E(!1)})]})})}const oU=[{title:"Coconut Profile",href:"/settings/user",icon:mj,description:"Manage the Coconut's profile information."},{title:"User Preferences",href:"/settings/preferences",icon:aj,description:"Configure individual workspace preferences"},{title:"Authentication",href:"/settings/authentication",icon:nj,description:"Configure authentication and user access"},{title:"API Keys",href:"/settings/api-keys",icon:MM,description:"Manage API keys for programmatic access"},{title:"Symlinks",href:"/settings/rules",icon:uc,description:"Manage symlinks for easy access to project rules and configurations"},{title:"AI & LLM",href:"/settings/integrations",icon:GM,description:"Connect Coconut to LLM providers and automation hooks"},{title:"Git",href:"/settings/git",icon:Xw,description:"Configure repository defaults like worktree paths"},{title:"MCP",href:"/settings/mcp",icon:UM,description:"Model Context Protocol configuration and settings"}];function lU(){const e=Wn();return g.jsxs("div",{className:"flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0",children:[g.jsx("aside",{className:"lg:w-1/5",children:g.jsx("nav",{className:"flex overflow-x-auto pb-2 gap-1 lg:flex-col lg:gap-0 lg:space-y-1 lg:overflow-visible lg:pb-0",children:oU.map(n=>g.jsxs(Sr,{to:n.href,className:ue("inline-flex items-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 hover:text-accent-foreground h-9 px-2 sm:px-3 lg:px-4 py-2 hover:bg-accent justify-start flex-shrink-0",e.pathname===n.href?"bg-accent text-accent-foreground":"text-muted-foreground"),children:[g.jsx(n.icon,{className:"h-4 w-4 lg:mr-2"}),g.jsx("span",{className:"hidden lg:inline",children:n.title})]},n.href))})}),g.jsx("div",{className:"flex-1 lg:max-w-2xl",children:g.jsx("div",{className:"space-y-6",children:g.jsx(nw,{})})})]})}const sU=v.lazy(()=>Ie(()=>import("./DashboardPage-e9hNRsi2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))),uU=v.lazy(()=>Ie(()=>import("./LoginPage-DcTU__Dc.js"),__vite__mapDeps([18,3,1,19]))),cU=v.lazy(()=>Ie(()=>import("./CallbackPage-CtydJ4j3.js"),__vite__mapDeps([20,8,21]))),fU=v.lazy(()=>Ie(()=>import("./ProposalsPage-BvKlKvuo.js"),__vite__mapDeps([22,1,2,17,10]))),dU=v.lazy(()=>Ie(()=>import("./ProposalDetailPage-BVXTjXw2.js"),__vite__mapDeps([23,24,1,2,3,25,26,27,12,15]))),hU=v.lazy(()=>Ie(()=>import("./ProposalEditPage-Bs3ak0PG.js"),__vite__mapDeps([28,3,1,29,30,31,32,17,33,2,25])).then(e=>({default:e.ProposalEditPage}))),pU=v.lazy(()=>Ie(()=>import("./NewProposalPage-BLIqmuks.js"),__vite__mapDeps([34,1,3,29,30,31,32,17,33,2,25])).then(e=>({default:e.NewProposalPage}))),mU=v.lazy(()=>Ie(()=>import("./TerminalPage-CqPXFOIN.js"),__vite__mapDeps([35,1,4,5,6,7,36,37,14,38,39]))),gU=v.lazy(()=>Ie(()=>import("./TerminalSessionPage-DR2cApWv.js"),__vite__mapDeps([40,1,2,41,31,3,4,6,7,42,43,36,14,17,11,39]))),yU=v.lazy(()=>Ie(()=>import("./UtilitiesPage-BGiBB5PT.js"),__vite__mapDeps([44,1,4,38,14]))),vU=v.lazy(()=>Ie(()=>import("./CodePage-BiRf5q_q.js"),__vite__mapDeps([45,1,2,4,5,6,7,43,36,37,14]))),xU=v.lazy(()=>Ie(()=>import("./AgentsPage-Bage8eYW.js"),__vite__mapDeps([46,1,2,24,47,48,10,17,49]))),bU=v.lazy(()=>Ie(()=>import("./AgentDetailPage-WLAnnZep.js"),__vite__mapDeps([50,1,2,25]))),wU=v.lazy(()=>Ie(()=>import("./NewAgentPage-8-abvhkI.js"),__vite__mapDeps([51,1,3,2,24,25,26]))),SU=v.lazy(()=>Ie(()=>import("./AgentEditPage-DOemUkvg.js"),__vite__mapDeps([52,1,3,2,24,25,26]))),EU=v.lazy(()=>Ie(()=>import("./ResourcesPage-BSyX_kHV.js"),__vite__mapDeps([53,1,3,2,24,48,27,9,12,49,17,10]))),CU=v.lazy(()=>Ie(()=>import("./KnowledgePage-DIlUufGq.js"),__vite__mapDeps([54,1,2,24,47,48,10,17,55,42]))),kU=v.lazy(()=>Ie(()=>import("./KnowledgeDetailPage-CLizVIxC.js"),__vite__mapDeps([56,1,2,24,25,12,49]))),AU=v.lazy(()=>Ie(()=>import("./KnowledgeEditPage-B-sdY_DS.js"),__vite__mapDeps([57,1,3,29,30,33,2,58,17,25]))),TU=v.lazy(()=>Ie(()=>import("./NewKnowledgePage-Rvj741x1.js"),__vite__mapDeps([59,1,3,29,30,33,2,58,17,25]))),RU=v.lazy(()=>Ie(()=>import("./ProjectPage-_L4wqwrB.js"),__vite__mapDeps([60,1,2,24]))),NU=v.lazy(()=>Ie(()=>import("./ProjectEditPage-DC5-v_2a.js"),__vite__mapDeps([61,1,3,29,30,25,16]))),_U=v.lazy(()=>Ie(()=>import("./ArchitecturePage-Cj4dVDWO.js"),__vite__mapDeps([62,1,24]))),MU=v.lazy(()=>Ie(()=>import("./ArchitectureEditPage-WY9k_1tR.js"),__vite__mapDeps([63,1,3,29,30,25,16]))),jU=v.lazy(()=>Ie(()=>import("./RolePage-D8xB0I-F.js"),__vite__mapDeps([64,1,24]))),DU=v.lazy(()=>Ie(()=>import("./RoleEditPage-CnWierul.js"),__vite__mapDeps([65,1,29,30,25,16]))),OU=v.lazy(()=>Ie(()=>import("./IdentityPage-DCpoDF2j.js"),__vite__mapDeps([66,1,3,2,67,19,11,68,17,26]))),q0=v.lazy(()=>Ie(()=>import("./UserSettingsPage-BuMnU394.js"),__vite__mapDeps([69,1,3,26]))),PU=v.lazy(()=>Ie(()=>import("./AuthSettingsPage-Bs5wL5Yj.js"),__vite__mapDeps([70,1,3,71,2,72]))),LU=v.lazy(()=>Ie(()=>import("./ApiKeysSettingsPage-DCKd4LXE.js"),__vite__mapDeps([73,1,3,2,67,17,72]))),zU=v.lazy(()=>Ie(()=>import("./AgentsSettingsPage-Cw2MTnHU.js"),__vite__mapDeps([74,1,3,2,17,75,14,11]))),IU=v.lazy(()=>Ie(()=>import("./IntegrationsSettingsPage-DJpf2gZn.js"),__vite__mapDeps([76,1,3]))),BU=v.lazy(()=>Ie(()=>import("./GitSettingsPage-Cn-MciXq.js"),__vite__mapDeps([77,1,3,41,36,8,21]))),UU=v.lazy(()=>Ie(()=>import("./McpSettingsPage-BPDLne4q.js"),__vite__mapDeps([78,1,3,2,71,67,47,48,10,72,17,16]))),HU=v.lazy(()=>Ie(()=>import("./PromptsSettingsPage-K-qqpF2S.js"),__vite__mapDeps([79,1,3,2,17,68,27]))),FU=v.lazy(()=>Ie(()=>import("./RulesSettingsPage-CZBQ0u-x.js"),__vite__mapDeps([80,1,3,2,17]))),VU=v.lazy(()=>Ie(()=>import("./GitPage-BG-ZSGfu.js"),__vite__mapDeps([81,1,3,19,8,21,42,55,36,72,13]))),qU=v.lazy(()=>Ie(()=>import("./SchedulePage-HBFJT_19.js"),__vite__mapDeps([82,1,2,3,71,19,36,17,14,75,15]))),$U=v.lazy(()=>Ie(()=>import("./JobDetailPage-9shaUPlO.js"),__vite__mapDeps([83,24,1,2,25,14,26,36,75,15,12]))),GU=v.lazy(()=>Ie(()=>import("./UserPreferencesPage-CPkulDiM.js"),__vite__mapDeps([84,1,3]))),YU=v.lazy(()=>Ie(()=>import("./ActivityPage-C_HqpJt2.js"),__vite__mapDeps([85,1,2])));function KU(){return g.jsxs(GN,{children:[g.jsx(iN,{children:g.jsx(v.Suspense,{fallback:g.jsx(sD,{}),children:g.jsxs(PR,{children:[g.jsx(Oe,{path:"/login",element:g.jsx(uU,{})}),g.jsx(Oe,{path:"/auth/github/callback",element:g.jsx(cU,{})}),g.jsxs(Oe,{path:"/",element:g.jsx(lD,{children:g.jsx(iU,{})}),children:[g.jsx(Oe,{index:!0,element:g.jsx(sU,{})}),g.jsx(Oe,{path:"proposals",element:g.jsx(fU,{})}),g.jsx(Oe,{path:"proposals/new",element:g.jsx(pU,{})}),g.jsx(Oe,{path:"proposals/:id",element:g.jsx(dU,{})}),g.jsx(Oe,{path:"proposals/:id/edit",element:g.jsx(hU,{})}),g.jsx(Oe,{path:"code",element:g.jsx(vU,{})}),g.jsx(Oe,{path:"utilities",element:g.jsx(yU,{})}),g.jsx(Oe,{path:"terminal",element:g.jsx(mU,{})}),g.jsx(Oe,{path:"terminal/:proposalId",element:g.jsx(gU,{})}),g.jsx(Oe,{path:"git",element:g.jsx(VU,{})}),g.jsx(Oe,{path:"schedule",element:g.jsx(qU,{})}),g.jsx(Oe,{path:"schedule/:id",element:g.jsx($U,{})}),g.jsx(Oe,{path:"identity",element:g.jsx(OU,{})}),g.jsx(Oe,{path:"agents",element:g.jsx(xU,{})}),g.jsx(Oe,{path:"agents/new",element:g.jsx(wU,{})}),g.jsx(Oe,{path:"agents/:id",element:g.jsx(bU,{})}),g.jsx(Oe,{path:"agents/:id/edit",element:g.jsx(SU,{})}),g.jsx(Oe,{path:"activity",element:g.jsx(YU,{})}),g.jsx(Oe,{path:"resources",element:g.jsx(EU,{})}),g.jsx(Oe,{path:"context/project",element:g.jsx(RU,{})}),g.jsx(Oe,{path:"context/project/edit",element:g.jsx(NU,{})}),g.jsx(Oe,{path:"context/architecture",element:g.jsx(_U,{})}),g.jsx(Oe,{path:"context/architecture/edit",element:g.jsx(MU,{})}),g.jsx(Oe,{path:"context/role",element:g.jsx(jU,{})}),g.jsx(Oe,{path:"context/role/edit",element:g.jsx(DU,{})}),g.jsx(Oe,{path:"context/knowledge",element:g.jsx(CU,{})}),g.jsx(Oe,{path:"context/knowledge/new",element:g.jsx(TU,{})}),g.jsx(Oe,{path:"context/knowledge/:filename",element:g.jsx(kU,{})}),g.jsx(Oe,{path:"context/knowledge/:filename/edit",element:g.jsx(AU,{})}),g.jsxs(Oe,{path:"settings",element:g.jsx(lU,{}),children:[g.jsx(Oe,{index:!0,element:g.jsx(q0,{})}),g.jsx(Oe,{path:"user",element:g.jsx(q0,{})}),g.jsx(Oe,{path:"preferences",element:g.jsx(GU,{})}),g.jsx(Oe,{path:"authentication",element:g.jsx(PU,{})}),g.jsx(Oe,{path:"api-keys",element:g.jsx(LU,{})}),g.jsx(Oe,{path:"agents",element:g.jsx(zU,{})}),g.jsx(Oe,{path:"integrations",element:g.jsx(IU,{})}),g.jsx(Oe,{path:"git",element:g.jsx(BU,{})}),g.jsx(Oe,{path:"mcp",element:g.jsx(UU,{})}),g.jsx(Oe,{path:"prompts",element:g.jsx(HU,{})}),g.jsx(Oe,{path:"rules",element:g.jsx(FU,{})})]})]})]})})}),g.jsx(oD,{})]})}UT.createRoot(document.getElementById("root")).render(g.jsx(v.StrictMode,{children:g.jsx(KU,{})}));export{XC as $,Et as A,vt as B,nM as C,Zc as D,pM as E,uc as F,Xw as G,yw as H,d1 as I,cc as J,iH as K,Sr as L,IM as M,lp as N,QU as O,aM as P,XU as Q,lj as R,es as S,fj as T,W9 as U,J9 as V,hj as W,so as X,$C as Y,GC as Z,KC as _,ZN as a,Uh as a$,YC as a0,ZC as a1,QC as a2,bs as a3,xj as a4,aH as a5,gE as a6,m1 as a7,KM as a8,iD as a9,N9 as aA,wM as aB,tf as aC,Cc as aD,uH as aE,sH as aF,Hm as aG,Ym as aH,Pm as aI,zp as aJ,z5 as aK,xL as aL,oH as aM,lL as aN,EL as aO,dL as aP,SL as aQ,Mp as aR,Lm as aS,CE as aT,Wl as aU,u6 as aV,Z3 as aW,$5 as aX,WE as aY,lH as aZ,OL as a_,JB as aa,eU as ab,w2 as ac,E2 as ad,C2 as ae,S2 as af,JU as ag,oc as ah,rU as ai,wj as aj,qN as ak,Oc as al,cM as am,_a as an,Jn as ao,_c as ap,me as aq,_e as ar,ze as as,Yc as at,Ep as au,aS as av,MS as aw,xb as ax,g6 as ay,B9 as az,hs as b,Aa as b0,rn as b1,_0 as b2,ZU as b3,UM as b4,eo as b5,MM as b6,Dc as b7,kr as b8,Ek as b9,F8 as ba,V8 as bb,un as bc,oM as bd,b8 as be,WU as bf,W_ as bg,kM as bh,Y_ as bi,je as c,ps as d,ue as e,ms as f,Il as g,Gb as h,Np as i,g as j,Yb as k,_p as l,li as m,dp as n,nj as o,Hl as p,sM as q,v as r,ej as s,Kw as t,as as u,Yw as v,wk as w,WM as x,zh as y,Wn as z};