@augmentd-labs/canvas-web 2.26.27 → 2.26.28

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 (113) hide show
  1. package/dist/assets/CalendarApplet-BPEp7Vc4.js +1 -0
  2. package/dist/assets/{DocumentBodyEditor-8DNmOBS0.js → DocumentBodyEditor-DRFQgBNB.js} +1 -1
  3. package/dist/assets/{DocumentIcon-x299QNu_.js → DocumentIcon-ByDAILhm.js} +1 -1
  4. package/dist/assets/{EditorOverlay-Cv1MaTok.js → EditorOverlay-DpQKmxkR.js} +1 -1
  5. package/dist/assets/{FileForm-CqJpRbXv.js → FileForm-BqTiW78K.js} +1 -1
  6. package/dist/assets/{FiltersApplet-C-WD5XT9.js → FiltersApplet-DCTdYOjb.js} +1 -1
  7. package/dist/assets/{HomeFab-CzKEIYDk.js → HomeFab-DG6YVz9N.js} +2 -2
  8. package/dist/assets/{IdentityFields-Bti7ojF3.js → IdentityFields-D13Y3wzc.js} +1 -1
  9. package/dist/assets/{LensApplet-BCJXNx84.js → LensApplet-fVzXJVQr.js} +1 -1
  10. package/dist/assets/LinkToCard-bUXz_atc.js +1 -0
  11. package/dist/assets/{MarkdownEditor-CNY-VmKb.js → MarkdownEditor-Dnyez7VT.js} +2 -2
  12. package/dist/assets/{MessageComposerDialog-gbD0Gu_b.js → MessageComposerDialog-BKGlI7jO.js} +1 -1
  13. package/dist/assets/{NextShell-UX4Efo0u.js → NextShell-D4248rEY.js} +1 -1
  14. package/dist/assets/{NotesApplet-CvPyt7xB.js → NotesApplet-CQ92to3I.js} +1 -1
  15. package/dist/assets/ObjectPropertiesCard-CkcQp_zW.js +8 -0
  16. package/dist/assets/{PathPickerField-fZazwxCN.js → PathPickerField-B8MsG6xg.js} +1 -1
  17. package/dist/assets/{PickDocumentsCard-DamtV7fN.js → PickDocumentsCard-BQwJdHA9.js} +1 -1
  18. package/dist/assets/{SketchApplet-DDIg411i.js → SketchApplet-DbuBdGzr.js} +1 -1
  19. package/dist/assets/{SketchEditor-CKPPuZt3.js → SketchEditor-BGzrlfJR.js} +1 -1
  20. package/dist/assets/{TerminalApplet-wGJG1PPc.js → TerminalApplet-Dsv5Sktn.js} +1 -1
  21. package/dist/assets/{TextDocumentEditor-CRre32cj.js → TextDocumentEditor-Bnk3_hqG.js} +1 -1
  22. package/dist/assets/{TodosApplet-CleBd4uU.js → TodosApplet-CW69DfHJ.js} +1 -1
  23. package/dist/assets/{TodosWidget-CxiqmDuJ.js → TodosWidget-C3Ux5gnY.js} +1 -1
  24. package/dist/assets/{UploadProgressList-DRJzjy6A.js → UploadProgressList-BHxfFhkG.js} +1 -1
  25. package/dist/assets/{_agentId_-BXYnpAWp.js → _agentId_-hCidK3Gt.js} +0 -0
  26. package/dist/assets/{_contextId_-BEC7o1ya.js → _contextId_-DE4yZzvm.js} +1 -1
  27. package/dist/assets/{_workspaceName_-5rSLTtJT.js → _workspaceName_-ewVVfjoI.js} +1 -1
  28. package/dist/assets/{about-DrgIxiPQ.js → about--_m1Uqkl.js} +1 -1
  29. package/dist/assets/{add-CPkuZwMW.js → add-7Qd6XnoJ.js} +1 -1
  30. package/dist/assets/agents-CuRC26Ih.js +1 -0
  31. package/dist/assets/{agents-DlLq0q2s.js → agents-DEJU4O1Z.js} +1 -1
  32. package/dist/assets/{alert-dialog-izlVMXfa.js → alert-dialog-CShuAcnP.js} +1 -1
  33. package/dist/assets/{api-tokens-DDH7LMJ7.js → api-tokens-CmHhwd58.js} +1 -1
  34. package/dist/assets/{appearance-DRBtL9nd.js → appearance-Cdb_NAoV.js} +1 -1
  35. package/dist/assets/{applet-target-C_gBgU-Z.js → applet-target-21tr63qk.js} +1 -1
  36. package/dist/assets/{apps-CqFFzo_Z.js → apps-k3O5qSWN.js} +1 -1
  37. package/dist/assets/{auth-HZNJB4wv.js → auth-_bmIEN02.js} +1 -1
  38. package/dist/assets/backend-sync-progress-CRHe59pS.js +7 -0
  39. package/dist/assets/{button-SgR3GVvV.js → button-Bum-POPT.js} +1 -1
  40. package/dist/assets/content-app-view-Bn7PuCxV.js +1 -0
  41. package/dist/assets/{context-DQoZFMDQ.js → context-DVlMC9Bk.js} +1 -1
  42. package/dist/assets/{contexts-CvMtPd1N2.js → contexts-DSBwT_Ml2.js} +1 -1
  43. package/dist/assets/{contexts-Ef3fHwv6.js → contexts-Dtl9oERX.js} +1 -1
  44. package/dist/assets/{date-time-picker-DebNUTx3.js → date-time-picker-S055eVuO.js} +1 -1
  45. package/dist/assets/{devices-C3gLuNDv.js → devices-CmVlYbam.js} +1 -1
  46. package/dist/assets/{document-DOp6AbOi.js → document-RoetUSIa.js} +1 -1
  47. package/dist/assets/document-list-CwkeIVAT.js +2 -0
  48. package/dist/assets/{embedding-B5JiUA9X.js → embedding-2EjzoVFT.js} +1 -1
  49. package/dist/assets/{embedding-B7cWrpy0.js → embedding-BqI3l5RB.js} +1 -1
  50. package/dist/assets/{form-panel-C34lByEH.js → form-panel-DZj3WZ3z.js} +1 -1
  51. package/dist/assets/{home-C6aXJsmf.js → home-Bzy-sAMn.js} +1 -1
  52. package/dist/assets/index-QzZxj0Ty.js +16 -0
  53. package/dist/assets/index-XDD8pFI_.css +2 -0
  54. package/dist/assets/{inferd-config-editor--MDmN_7w.js → inferd-config-editor-CyDCQJRs.js} +1 -1
  55. package/dist/assets/{key-bindings-BDktmxOD.js → key-bindings-Dg3p3DnN.js} +1 -1
  56. package/dist/assets/{label-Dn4gCMcc.js → label-DJc8-3CQ.js} +1 -1
  57. package/dist/assets/{lazy-editor-BSRnneOo.js → lazy-editor-Bdm5JEXv.js} +2 -2
  58. package/dist/assets/{logs-Czn2sPeP.js → logs-DUeiDqCX.js} +1 -1
  59. package/dist/assets/{offline-COOUcZsG.js → offline-CfiX0_wL.js} +1 -1
  60. package/dist/assets/{page-header-DkOHw0g-.js → page-header-BoCaZiqu.js} +1 -1
  61. package/dist/assets/{public-share-g_wBd6BW.js → public-share-C3a_DycQ.js} +1 -1
  62. package/dist/assets/{query-debug-CrPsUwT-.js → query-debug-Bb-VKova.js} +1 -1
  63. package/dist/assets/registry-DxcaO-Vq.js +2 -0
  64. package/dist/assets/{remotes-CdEU1Y5l.js → remotes-BjjlqN_M.js} +1 -1
  65. package/dist/assets/{roles-BpVWTMmp.js → roles-BHJYWaBs.js} +1 -1
  66. package/dist/assets/{roles-Bo9GZdOk.js → roles-DXrNmLZt.js} +1 -1
  67. package/dist/assets/{settings-TQmRYAGg.js → settings-BOmqY3dt.js} +1 -1
  68. package/dist/assets/{settings-DJyvE-wf.js → settings-CImTlDKY.js} +1 -1
  69. package/dist/assets/settings-CxUUEOjw.js +16 -0
  70. package/dist/assets/{settings-Be_a2PGC.js → settings-DynBIwbc.js} +1 -1
  71. package/dist/assets/{share-target-BDbVdgTo.js → share-target-DmROSmKt.js} +1 -1
  72. package/dist/assets/{shared-BQZGA3ph.js → shared-D6K4WqN7.js} +1 -1
  73. package/dist/assets/{shared-BbAavKdN.js → shared-qsV5Q5JG.js} +1 -1
  74. package/dist/assets/sketch-lazy-QRuqtP92.js +2 -0
  75. package/dist/assets/{subtree-transfer-dialog-ChBI5llU.js → subtree-transfer-dialog-BN9xBB9n.js} +1 -1
  76. package/dist/assets/{text-documents-0P9jkIpu.js → text-documents-BJ17V0oY.js} +2 -2
  77. package/dist/assets/ui-76Hw0NU_.js +41 -0
  78. package/dist/assets/{use-applet-docs-D5eXpITp.js → use-applet-docs-DD74tPAU.js} +1 -1
  79. package/dist/assets/{use-applet-target-gXPvZGgx.js → use-applet-target-M1Q8sd1B.js} +1 -1
  80. package/dist/assets/{use-canvas-pins-BvN6Gw6f.js → use-canvas-pins-r3a-TbLQ.js} +2 -2
  81. package/dist/assets/{use-menu-BiJ8N7sS.js → use-menu-CaiLyPdw.js} +1 -1
  82. package/dist/assets/use-settings-back-DE0SPb7h.js +1 -0
  83. package/dist/assets/{use-sortable-data-BW_0sXBs.js → use-sortable-data-W2inLcb5.js} +1 -1
  84. package/dist/assets/{use-workspace-identity-BCrrvfeE.js → use-workspace-identity-B_8AUozT.js} +1 -1
  85. package/dist/assets/{useAddTarget-CqnDU0Om.js → useAddTarget-D9S8RxCR.js} +1 -1
  86. package/dist/assets/{useAgentModels-PQVPjrQu.js → useAgentModels-CITtKWhW.js} +1 -1
  87. package/dist/assets/{useDocumentThumbnail-DunxmU1A.js → useDocumentThumbnail-BpvX3fx0.js} +1 -1
  88. package/dist/assets/{useEditNoteFields-BehI0vog.js → useEditNoteFields-Dlr5PRFm.js} +1 -1
  89. package/dist/assets/{users-CKz9kOoR.js → users-DInwKAxz.js} +1 -1
  90. package/dist/assets/workspace-BuoZwRL5.js +1 -0
  91. package/dist/assets/{workspace-area-menu-C0-X-FpD.js → workspace-area-menu-CT1Yh2i4.js} +1 -1
  92. package/dist/assets/{workspace-content-gate-9okuA7J7.js → workspace-content-gate-CaCJlWnb.js} +1 -1
  93. package/dist/assets/{workspace-import-form-aR-DwHf6.js → workspace-import-form-g5tSCc9q.js} +1 -1
  94. package/dist/assets/workspaces-Bd0L13A9.js +1 -0
  95. package/dist/assets/{workspaces-Da_hUIj3.js → workspaces-p959p9BR.js} +1 -1
  96. package/dist/index.html +36 -36
  97. package/dist/sw.js +1 -1
  98. package/package.json +2 -2
  99. package/dist/assets/LinkToCard-5dg0jvSY.js +0 -1
  100. package/dist/assets/ObjectPropertiesCard-BIBMvx_i.js +0 -8
  101. package/dist/assets/agents-jmTwCDAu.js +0 -1
  102. package/dist/assets/backend-sync-progress-pZrhQPk3.js +0 -7
  103. package/dist/assets/content-app-view-y5TmcjuO.js +0 -1
  104. package/dist/assets/document-list-DKOU9Kcc.js +0 -2
  105. package/dist/assets/index-B-PM5mzp.css +0 -2
  106. package/dist/assets/index-CyEIU2rL.js +0 -16
  107. package/dist/assets/registry-ZMLdscra.js +0 -2
  108. package/dist/assets/settings-VF2v3Ya5.js +0 -14
  109. package/dist/assets/sketch-lazy-C4pjV1WK.js +0 -2
  110. package/dist/assets/ui-Byg1cZDr.js +0 -41
  111. package/dist/assets/use-settings-back-CQauYjQ4.js +0 -1
  112. package/dist/assets/workspace-CrSpR4xf.js +0 -1
  113. package/dist/assets/workspaces-BGbHBVHs.js +0 -1
@@ -1,41 +0,0 @@
1
- import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{l as t,o as n,u as r}from"./code-editor-BOIngd5F.js";import{ct as i,dt as a,ft as o,gt as s,ht as c,lt as l,mt as u,pt as d,ut as f,yt as p}from"./react-BHzhHVTZ.js";var m=e(p(),1),h=e(r(),1),g=Object.defineProperty,_=(e,t)=>g(e,`name`,{value:t,configurable:!0});function v(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}_(v,`setRef`);function y(...e){return t=>{let n=!1,r=e.map(e=>{let r=v(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():v(e[t],null)}}}}_(y,`composeRefs`);function b(...e){return h.useCallback(y(...e),e)}_(b,`useComposedRefs`);var x=Object.defineProperty,S=(e,t)=>x(e,`name`,{value:t,configurable:!0});function C(e){let t=h.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];A(r)&&typeof ae==`function`&&(r=ae(r._payload)),h.Children.forEach(r,e=>{if(te(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;A(n)&&typeof ae==`function`&&(n=ae(n._payload)),a=D(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=h.cloneElement(a,void 0,s):!o&&h.Children.count(r)===1&&h.isValidElement(r)&&(a=r);let c=a?ee(a):void 0,l=b(n,c);if(!a){if(r||r===0)throw Error(o?ie(e):re(e));return r}let u=O(i,a.props??{});return a.type!==h.Fragment&&(u.ref=n?l:c),h.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}S(C,`createSlot`);var w=C(`Slot`),T=Symbol.for(`radix.slottable`);function E(e){let t=S(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=T,t}S(E,`createSlottable`);var D=S((e,t)=>{if(`child`in e.props){let t=e.props.child;return h.isValidElement(t)?h.cloneElement(t,void 0,e.props.children(t.props.children)):null}return h.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function O(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}S(O,`mergeProps`);function ee(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}S(ee,`getElementRef`);function te(e){return h.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===T}S(te,`isSlottable`);var k=Symbol.for(`react.lazy`);function A(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===k&&`_payload`in e&&ne(e._payload)}S(A,`isLazyComponent`);function ne(e){return typeof e==`object`&&!!e&&`then`in e}S(ne,`isPromiseLike`);var re=S(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),ie=S(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),ae=h.use,j=t(),oe=Object.defineProperty,se=(e,t)=>oe(e,`name`,{value:t,configurable:!0}),M=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=C(`Primitive.${t}`),r=h.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,j.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ce(e,t){e&&m.flushSync(()=>e.dispatchEvent(t))}se(ce,`dispatchDiscreteCustomEvent`);var le=Object.defineProperty,ue=h.forwardRef(((e,t)=>le(e,`name`,{value:t,configurable:!0}))(function(e,t){return(0,j.jsx)(M.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},`Label`)),de=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),N=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),fe=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),P=e=>{let t=fe(e);return t.charAt(0).toUpperCase()+t.slice(1)},pe={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`},me=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},he=(0,h.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,h.createElement)(`svg`,{ref:c,...pe,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:de(`lucide`,i),...!a&&!me(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,h.createElement)(e,t)),...Array.isArray(a)?a:[a]])),F=(e,t)=>{let n=(0,h.forwardRef)(({className:n,...r},i)=>(0,h.createElement)(he,{ref:i,iconNode:t,className:de(`lucide-${N(P(e))}`,`lucide-${e}`,n),...r}));return n.displayName=P(e),n},ge=F(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),_e=F(`aperture`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m14.31 8 5.74 9.94`,key:`1y6ab4`}],[`path`,{d:`M9.69 8h11.48`,key:`1wxppr`}],[`path`,{d:`m7.38 12 5.74-9.94`,key:`1grp0k`}],[`path`,{d:`M9.69 16 3.95 6.06`,key:`libnyf`}],[`path`,{d:`M14.31 16H2.83`,key:`x5fava`}],[`path`,{d:`m16.62 12-5.74 9.94`,key:`1vwawt`}]]),ve=F(`app-window`,[[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}],[`path`,{d:`M10 4v4`,key:`pp8u80`}],[`path`,{d:`M2 8h20`,key:`d11cs7`}],[`path`,{d:`M6 4v4`,key:`1svtjw`}]]),ye=F(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),be=F(`arrow-down-to-line`,[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]),xe=F(`arrow-down-wide-narrow`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M11 4h10`,key:`1w87gc`}],[`path`,{d:`M11 8h7`,key:`djye34`}],[`path`,{d:`M11 12h4`,key:`q8tih4`}]]),Se=F(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),Ce=F(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),we=F(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),Te=F(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),Ee=F(`arrow-up-from-line`,[[`path`,{d:`m18 9-6-6-6 6`,key:`kcunyi`}],[`path`,{d:`M12 3v14`,key:`7cf3v8`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),De=F(`arrow-up-narrow-wide`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M11 12h4`,key:`q8tih4`}],[`path`,{d:`M11 16h7`,key:`uosisv`}],[`path`,{d:`M11 20h10`,key:`jvxblo`}]]),Oe=F(`arrow-up-wide-narrow`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 16h7`,key:`uosisv`}],[`path`,{d:`M11 20h4`,key:`1krc32`}]]),ke=F(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),Ae=F(`ban`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]),je=F(`bell`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),Me=F(`bold`,[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]),Ne=F(`book-marked`,[[`path`,{d:`M10 2v8l3-3 3 3V2`,key:`sqw3rj`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),Pe=F(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),Fe=F(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),Ie=F(`boxes`,[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]),Le=F(`braces`,[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]]),Re=F(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),ze=F(`brush`,[[`path`,{d:`m11 10 3 3`,key:`fzmg1i`}],[`path`,{d:`M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z`,key:`p4q2r7`}],[`path`,{d:`M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031`,key:`wy6l02`}]]),Be=F(`building-2`,[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]]),Ve=F(`calendar-clock`,[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5`,key:`1osxxc`}],[`path`,{d:`M3 10h5`,key:`r794hk`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]),He=F(`calendar-days`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M16 18h.01`,key:`kzsmim`}]]),Ue=F(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),We=F(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),Ge=F(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Ke=F(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),qe=F(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Je=F(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Ye=F(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),Xe=F(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),Ze=F(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),Qe=F(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),$e=F(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),et=F(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),tt=F(`circle-play`,[[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`,key:`kmsa83`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),nt=F(`circle-stop`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),rt=F(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),it=F(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),at=F(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]),ot=F(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),st=F(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),ct=F(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),lt=F(`columns-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),ut=F(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),dt=F(`corner-down-right`,[[`path`,{d:`m15 10 5 5-5 5`,key:`qqa56n`}],[`path`,{d:`M4 4v7a4 4 0 0 0 4 4h12`,key:`z08zvw`}]]),ft=F(`corner-left-up`,[[`path`,{d:`M14 9 9 4 4 9`,key:`1af5af`}],[`path`,{d:`M20 20h-7a4 4 0 0 1-4-4V4`,key:`1blwi3`}]]),pt=F(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),mt=F(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),ht=F(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),gt=F(`door-open`,[[`path`,{d:`M11 20H2`,key:`nlcfvz`}],[`path`,{d:`M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z`,key:`au4z13`}],[`path`,{d:`M11 4H8a2 2 0 0 0-2 2v14`,key:`74r1mk`}],[`path`,{d:`M14 12h.01`,key:`1jfl7z`}],[`path`,{d:`M22 20h-3`,key:`vhrsz`}]]),_t=F(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),vt=F(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),yt=F(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),bt=F(`expand`,[[`path`,{d:`m15 15 6 6`,key:`1s409w`}],[`path`,{d:`m15 9 6-6`,key:`ko1vev`}],[`path`,{d:`M21 16v5h-5`,key:`1ck2sf`}],[`path`,{d:`M21 8V3h-5`,key:`1qoq8a`}],[`path`,{d:`M3 16v5h5`,key:`1t08am`}],[`path`,{d:`m3 21 6-6`,key:`wwnumi`}],[`path`,{d:`M3 8V3h5`,key:`1ln10m`}],[`path`,{d:`M9 9 3 3`,key:`v551iv`}]]),xt=F(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),St=F(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Ct=F(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),wt=F(`file-archive`,[[`path`,{d:`M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5`,key:`4pqfef`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12v-1`,key:`1ej8lb`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M8 7V6`,key:`1nbb54`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]),Tt=F(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]),Et=F(`file-question-mark`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}]]),Dt=F(`file-search`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`11.5`,cy:`14.5`,r:`2.5`,key:`1bq0ko`}],[`path`,{d:`M13.3 16.3 15 18`,key:`2quom7`}]]),Ot=F(`file-stack`,[[`path`,{d:`M11 21a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1`,key:`likhh7`}],[`path`,{d:`M16 16a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1`,key:`17ky3x`}],[`path`,{d:`M21 6a2 2 0 0 0-.586-1.414l-2-2A2 2 0 0 0 17 2h-3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1z`,key:`1hyeo0`}]]),kt=F(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),At=F(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),jt=F(`film`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M3 7.5h4`,key:`zfgn84`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 16.5h4`,key:`1230mu`}],[`path`,{d:`M17 3v18`,key:`in4fa5`}],[`path`,{d:`M17 7.5h4`,key:`myr1c1`}],[`path`,{d:`M17 16.5h4`,key:`go4c1d`}]]),Mt=F(`fingerprint-pattern`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),Nt=F(`flag`,[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]),Pt=F(`flashlight-off`,[[`path`,{d:`M11.652 6H18`,key:`voqkpr`}],[`path`,{d:`M12 13v1`,key:`176q98`}],[`path`,{d:`M16 16v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V6`,key:`dzyf92`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M7.649 2H17a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8a4 4 0 0 0-.55 1.007`,key:`1hvcfn`}]]),Ft=F(`flashlight`,[[`path`,{d:`M12 13v1`,key:`176q98`}],[`path`,{d:`M17 2a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8A4 4 0 0 0 16 12v8a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V3a1 1 0 0 1 1-1z`,key:`17vh7j`}],[`path`,{d:`M6 6h12`,key:`n6hhss`}]]),It=F(`focus`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}]]),Lt=F(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),Rt=F(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),zt=F(`folder-search`,[[`path`,{d:`M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1`,key:`1bw5m7`}],[`path`,{d:`m21 21-1.9-1.9`,key:`1g2n9r`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}]]),Bt=F(`folder-symlink`,[[`path`,{d:`M2 9.35V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7`,key:`y8kt7d`}],[`path`,{d:`m8 16 3-3-3-3`,key:`rlqrt1`}]]),Vt=F(`folder-sync`,[[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v.5`,key:`1dkoa9`}],[`path`,{d:`M12 10v4h4`,key:`1czhmt`}],[`path`,{d:`m12 14 1.535-1.605a5 5 0 0 1 8 1.5`,key:`lvuxfi`}],[`path`,{d:`M22 22v-4h-4`,key:`1ewp4q`}],[`path`,{d:`m22 18-1.535 1.605a5 5 0 0 1-8-1.5`,key:`14ync0`}]]),Ht=F(`folder-tree`,[[`path`,{d:`M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`hod4my`}],[`path`,{d:`M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`w4yl2u`}],[`path`,{d:`M3 5a2 2 0 0 0 2 2h3`,key:`f2jnh7`}],[`path`,{d:`M3 3v13a2 2 0 0 0 2 2h3`,key:`k8epm1`}]]),Ut=F(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Wt=F(`forward`,[[`path`,{d:`m15 17 5-5-5-5`,key:`nf172w`}],[`path`,{d:`M4 18v-2a4 4 0 0 1 4-4h12`,key:`jmiej9`}]]),Gt=F(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),Kt=F(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),qt=F(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),Jt=F(`hard-drive-download`,[[`path`,{d:`M12 2v8`,key:`1q4o3n`}],[`path`,{d:`m16 6-4 4-4-4`,key:`6wukr`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M10 18h.01`,key:`h775k`}]]),Yt=F(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),Xt=F(`hash`,[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]),Zt=F(`heading-1`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`m17 12 3-2v8`,key:`1hhhft`}]]),Qt=F(`heading-2`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]),$t=F(`hexagon`,[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`,key:`yt0hxn`}]]),en=F(`history`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]]),tn=F(`image-off`,[[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}],[`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`,key:`1bzlo9`}],[`line`,{x1:`13.5`,x2:`6`,y1:`13.5`,y2:`21`,key:`1q0aeu`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`15`,key:`5mozeu`}],[`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`,key:`mmje98`}],[`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`,key:`43el77`}]]),nn=F(`image-up`,[[`path`,{d:`M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21`,key:`9csbqa`}],[`path`,{d:`m14 19.5 3-3 3 3`,key:`9vmjn0`}],[`path`,{d:`M17 22v-5.5`,key:`1aa6fl`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),rn=F(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),an=F(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),on=F(`inbox`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),sn=F(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),cn=F(`infinity`,[[`path`,{d:`M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8`,key:`18ogeb`}]]),ln=F(`italic`,[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]),un=F(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),dn=F(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),fn=F(`keyboard`,[[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M7 16h10`,key:`wp8him`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}]]),pn=F(`laptop`,[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]),mn=F(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),hn=F(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),gn=F(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),_n=F(`layout-list`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]),vn=F(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),yn=F(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),bn=F(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),xn=F(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),Sn=F(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),Cn=F(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),wn=F(`locate-fixed`,[[`line`,{x1:`2`,x2:`5`,y1:`12`,y2:`12`,key:`bvdh0s`}],[`line`,{x1:`19`,x2:`22`,y1:`12`,y2:`12`,key:`1tbv5k`}],[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`5`,key:`11lu5j`}],[`line`,{x1:`12`,x2:`12`,y1:`19`,y2:`22`,key:`x3vr5v`}],[`circle`,{cx:`12`,cy:`12`,r:`7`,key:`fim9np`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Tn=F(`lock-open`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`,key:`1mm8w8`}]]),En=F(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),Dn=F(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),On=F(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),kn=F(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),An=F(`map`,[[`path`,{d:`M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z`,key:`169xi5`}],[`path`,{d:`M15 5.764v15`,key:`1pn4in`}],[`path`,{d:`M9 3.236v15`,key:`1uimfh`}]]),jn=F(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),Mn=F(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),Nn=F(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),Pn=F(`message-square-plus`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]),Fn=F(`message-square-text`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]),In=F(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),Ln=F(`mic`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]),Rn=F(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),zn=F(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Bn=F(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),Vn=F(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),Hn=F(`move`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m19 9 3 3-3 3`,key:`1mg7y2`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}],[`path`,{d:`m9 5 3-3 3 3`,key:`l8vdw6`}]]),Un=F(`music`,[[`path`,{d:`M9 18V5l12-2v13`,key:`1jmyc2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),Wn=F(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),Gn=F(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),Kn=F(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),qn=F(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),Jn=F(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Yn=F(`pen`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Xn=F(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Zn=F(`phone`,[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),Qn=F(`pin-off`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]),$n=F(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),er=F(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),tr=F(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]),nr=F(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),rr=F(`power-off`,[[`path`,{d:`M18.36 6.64A9 9 0 0 1 20.77 15`,key:`dxknvb`}],[`path`,{d:`M6.16 6.16a9 9 0 1 0 12.68 12.68`,key:`1x7qb5`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),ir=F(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),ar=F(`quote`,[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]),or=F(`radio`,[[`path`,{d:`M16.247 7.761a6 6 0 0 1 0 8.478`,key:`1fwjs5`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 0 14.134`,key:`ehdyv1`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`,key:`1q22gi`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`,key:`r2q7qm`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),sr=F(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),cr=F(`reply-all`,[[`path`,{d:`m12 17-5-5 5-5`,key:`1s3y5u`}],[`path`,{d:`M22 18v-2a4 4 0 0 0-4-4H7`,key:`1fcyog`}],[`path`,{d:`m7 17-5-5 5-5`,key:`1ed8i2`}]]),lr=F(`reply`,[[`path`,{d:`M20 18v-2a4 4 0 0 0-4-4H4`,key:`5vmcpk`}],[`path`,{d:`m9 17-5-5 5-5`,key:`nvlc11`}]]),ur=F(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),dr=F(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),fr=F(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),pr=F(`scan-eye`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`path`,{d:`M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0`,key:`11ak4c`}]]),mr=F(`scissors`,[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M8.12 8.12 12 12`,key:`1alkpv`}],[`path`,{d:`M20 4 8.12 15.88`,key:`xgtan2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`path`,{d:`M14.8 14.8 20 20`,key:`ptml3r`}]]),hr=F(`scroll-text`,[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]),gr=F(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),_r=F(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),vr=F(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),yr=F(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),br=F(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),xr=F(`share-2`,[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]),Sr=F(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),Cr=F(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),wr=F(`shield-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]),Tr=F(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),Er=F(`shrink`,[[`path`,{d:`m15 15 6 6m-6-6v4.8m0-4.8h4.8`,key:`17vawe`}],[`path`,{d:`M9 19.8V15m0 0H4.2M9 15l-6 6`,key:`chjx8e`}],[`path`,{d:`M15 4.2V9m0 0h4.8M15 9l6-6`,key:`lav6yq`}],[`path`,{d:`M9 4.2V9m0 0H4.2M9 9 3 3`,key:`1pxi2q`}]]),Dr=F(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Or=F(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),kr=F(`square-check-big`,[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Ar=F(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),jr=F(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),Mr=F(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),Nr=F(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),Pr=F(`sticky-note`,[[`path`,{d:`M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z`,key:`1dfntj`}],[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}]]),Fr=F(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Ir=F(`table`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),Lr=F(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),Rr=F(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),zr=F(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Br=F(`trash`,[[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Vr=F(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Hr=F(`unfold-horizontal`,[[`path`,{d:`M16 12h6`,key:`15xry1`}],[`path`,{d:`M8 12H2`,key:`1jqql6`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 8v2`,key:`1woqiv`}],[`path`,{d:`M12 14v2`,key:`8jcxud`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m19 15 3-3-3-3`,key:`wjy7rq`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}]]),Ur=F(`unfold-vertical`,[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m15 5-3-3-3 3`,key:`itvq4r`}]]),Wr=F(`unlink`,[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]),Gr=F(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),Kr=F(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),qr=F(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Jr=F(`webhook`,[[`path`,{d:`M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2`,key:`q3hayz`}],[`path`,{d:`m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06`,key:`1go1hn`}],[`path`,{d:`m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8`,key:`qlwsc0`}]]),Yr=F(`wifi-off`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`,key:`1dl1wf`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`,key:`4k23kn`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`,key:`1grhjp`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`,key:`z3jwby`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Xr=F(`wifi`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),Zr=F(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Qr=F(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),$r=F(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),ei=F(`zoom-in`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`,key:`1vmskp`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),ti=F(`zoom-out`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),ni=Object.defineProperty,I=(e,t)=>ni(e,`name`,{value:t,configurable:!0});function ri(e,t){let n=h.createContext(t);n.displayName=e+`Context`;let r=I(e=>{let{children:t,...r}=e,i=h.useMemo(()=>r,Object.values(r));return(0,j.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=h.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return I(i,`useContext`),[r,i]}I(ri,`createContext`);function ii(e,t=[]){let n=[];function r(t,r){let i=h.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=I(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=h.useMemo(()=>o,Object.values(o));return(0,j.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=h.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return I(s,`useContext`),[o,s]}I(r,`createContext`);let i=I(()=>{let t=n.map(e=>h.createContext(e));return I(function(n){let r=n?.[e]||t;return h.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,ai(i,...t)]}I(ii,`createContextScope`);function ai(...e){let t=e[0];if(e.length===1)return t;let n=I(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return I(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}I(ai,`composeContextScopes`);var oi=Object.defineProperty,si=(e,t)=>oi(e,`name`,{value:t,configurable:!0}),ci=!!(typeof window<`u`&&window.document&&window.document.createElement);function L(e,t,{checkForDefaultPrevented:n=!0}={}){return si(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}si(L,`composeEventHandlers`);function li(e){if(!ci)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}si(li,`getOwnerWindow`);function ui(e){if(!ci)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}si(ui,`getOwnerDocument`);function di(e,t=!1){let{activeElement:n}=ui(e);if(!n?.nodeName)return null;if(fi(n)&&n.contentDocument)return di(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=ui(n).getElementById(e);if(t)return t}}return n}si(di,`getActiveElement`);function fi(e){return e.tagName===`IFRAME`}si(fi,`isFrame`);var R=globalThis?.document?h.useLayoutEffect:()=>{},pi=Object.defineProperty,mi=(e,t)=>pi(e,`name`,{value:t,configurable:!0}),hi=h.useId||(()=>void 0),gi=0;function _i(e){let[t,n]=h.useState(hi());return R(()=>{e||n(e=>e??String(gi++))},[e]),e||(t?`radix-${t}`:``)}mi(_i,`useId`);var vi=Object.defineProperty,yi=(e,t)=>vi(e,`name`,{value:t,configurable:!0}),bi=h.useEffectEvent,xi=h.useInsertionEffect;function Si(e){if(typeof bi==`function`)return bi(e);let t=h.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof xi==`function`?xi(()=>{t.current=e}):R(()=>{t.current=e}),h.useMemo(()=>((...e)=>t.current?.(...e)),[])}yi(Si,`useEffectEvent`);var Ci=Object.defineProperty,wi=(e,t)=>Ci(e,`name`,{value:t,configurable:!0}),Ti=h.useInsertionEffect||R;function Ei({prop:e,defaultProp:t,onChange:n=wi(()=>{},`onChange`),caller:r}){let[i,a,o]=Di({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,h.useCallback(t=>{if(s){let n=Oi(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}wi(Ei,`useControllableState`);function Di({defaultProp:e,onChange:t}){let[n,r]=h.useState(e),i=h.useRef(n),a=h.useRef(t);return Ti(()=>{a.current=t},[t]),h.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}wi(Di,`useUncontrolledState`);function Oi(e){return typeof e==`function`}wi(Oi,`isFunction`);var ki=Symbol(`RADIX:SYNC_STATE`);function Ai(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Si(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=h.useReducer((t,n)=>{if(n.type===ki)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=h.useRef(p);h.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let g=h.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return h.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:ki,state:i})},[i,d.state,c]),[g,f]}wi(Ai,`useControllableStateReducer`);var ji=Object.defineProperty,Mi=(e,t)=>ji(e,`name`,{value:t,configurable:!0});function z(e){let t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>((...e)=>t.current?.(...e)),[])}Mi(z,`useCallbackRef`);var Ni=Object.defineProperty,B=(e,t)=>Ni(e,`name`,{value:t,configurable:!0}),Pi=`dismissableLayer.update`,Fi=`dismissableLayer.pointerDownOutside`,Ii=`dismissableLayer.focusOutside`,Li,Ri=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),zi=h.forwardRef(B(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=h.useContext(Ri),[d,f]=h.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=h.useState({}),g=b(t,f),_=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v?_.indexOf(v):-1,x=d?_.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,w=h.useRef(!1),T=Ui(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:h.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return C&&!t},[u.branches,C])}),E=Wi(e=>{if(r&&w.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),D=d?x===_.length-1:!1,O=z(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return h.useEffect(()=>{if(D)return p.addEventListener(`keydown`,O,{capture:!0}),()=>p.removeEventListener(`keydown`,O,{capture:!0})},[p,D,O]),h.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Li=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Gi(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Li))}},[d,p,n,u]),h.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Gi())},[d,u]),h.useEffect(()=>{let e=B(()=>m({}),`handleUpdate`);return document.addEventListener(Pi,e),()=>document.removeEventListener(Pi,e)},[]),(0,j.jsx)(M.div,{...l,ref:g,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:L(e.onFocusCapture,E.onFocusCapture),onBlurCapture:L(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:L(e.onPointerDownCapture,T.onPointerDownCapture)})},`DismissableLayer`)),Bi=h.forwardRef(B(function(e,t){let n=h.useContext(Ri),r=h.useRef(null),i=b(t,r);return h.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,j.jsx)(M.div,{...e,ref:i})},`DismissableLayerBranch`));function Vi(){let e=h.useContext(Ri),[t,n]=h.useState(null);return h.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}B(Vi,`useDismissableLayerSurface`);var Hi=B(()=>!0,`IS_TRUE`);function Ui(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Hi}=t,s=z(e),c=h.useRef(!1),l=h.useRef(!1),u=h.useRef(new Map),d=h.useRef(()=>{});return h.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}B(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}B(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}B(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}B(p,`handleInteractionBubble`);let m=B(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Ki(Fi,s,p,{discrete:!0})};if(B(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:B(()=>c.current=!0,`onPointerDownCapture`)}}B(Ui,`usePointerDownOutside`);function Wi(e,t=globalThis?.document){let n=z(e),r=h.useRef(!1);return h.useEffect(()=>{let e=B(e=>{e.target&&!r.current&&Ki(Ii,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:B(()=>r.current=!0,`onFocusCapture`),onBlurCapture:B(()=>r.current=!1,`onBlurCapture`)}}B(Wi,`useFocusOutside`);function Gi(){let e=new CustomEvent(Pi);document.dispatchEvent(e)}B(Gi,`dispatchUpdate`);function Ki(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ce(i,a):i.dispatchEvent(a)}B(Ki,`handleAndDispatchCustomEvent`);var qi=zi,Ji=Bi,Yi=Object.defineProperty,V=(e,t)=>Yi(e,`name`,{value:t,configurable:!0}),Xi=`focusScope.autoFocusOnMount`,Zi=`focusScope.autoFocusOnUnmount`,Qi={bubbles:!1,cancelable:!0},$i=h.forwardRef(V(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=h.useState(null),l=z(i),u=z(a),d=h.useRef(null),f=b(t,c),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:H(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||H(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&H(s)};V(e,`handleFocusIn`),V(t,`handleFocusOut`),V(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),h.useEffect(()=>{if(s){oa.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Xi,Qi);s.addEventListener(Xi,l),s.dispatchEvent(t),t.defaultPrevented||(ea(la(na(s)),{select:!0}),document.activeElement===e&&H(s))}return()=>{s.removeEventListener(Xi,l),setTimeout(()=>{let t=new CustomEvent(Zi,Qi);s.addEventListener(Zi,u),s.dispatchEvent(t),t.defaultPrevented||H(e??document.body,{select:!0}),s.removeEventListener(Zi,u),oa.remove(p)},0)}}},[s,l,u,p]);let m=h.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=ta(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&H(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&H(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,j.jsx)(M.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function ea(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(H(r,{select:t}),document.activeElement!==n)return}V(ea,`focusFirst`);function ta(e){let t=na(e);return[ra(t,e),ra(t.reverse(),e)]}V(ta,`getTabbableEdges`);function na(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:V(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}V(na,`getTabbableCandidates`);function ra(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):ia(r,{upTo:t})))return r}V(ra,`findVisible`);function ia(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}V(ia,`isHidden`);function aa(e){return e instanceof HTMLInputElement&&`select`in e}V(aa,`isSelectableInput`);function H(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&aa(e)&&t&&e.select()}}V(H,`focus`);var oa=sa();function sa(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=ca(e,t),e.unshift(t)},remove(t){e=ca(e,t),e[0]?.resume()}}}V(sa,`createFocusScopesStack`);function ca(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}V(ca,`arrayRemove`);function la(e){return e.filter(e=>e.tagName!==`A`)}V(la,`removeLinks`);var ua=Object.defineProperty,da=h.forwardRef(((e,t)=>ua(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=h.useState(!1);R(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?m.createPortal((0,j.jsx)(M.div,{...r,ref:t}),o):null},`Portal`)),fa=Object.defineProperty,U=(e,t)=>fa(e,`name`,{value:t,configurable:!0});function pa(e,t){return h.useReducer((e,n)=>t[e][n]??e,e)}U(pa,`useStateMachine`);var ma=U(e=>{let{present:t,children:n}=e,r=ha(t),i=typeof n==`function`?n({present:r.isPresent}):h.Children.only(n),a=_a(r.ref,ya(i));return typeof n==`function`||r.isPresent?h.cloneElement(i,{ref:a}):null},`Presence`);function ha(e){let[t,n]=h.useState(),r=h.useRef(null),i=h.useRef(e),a=h.useRef(`none`),o=h.useRef(void 0),[s,c]=pa(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return h.useEffect(()=>{s===`mounted`?(a.current=o.current??va(r.current),o.current=void 0):a.current=`none`},[s]),R(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=va(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),R(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=U(a=>{let o=va(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=U(e=>{e.target===t&&(a.current=va(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:h.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=va(t)}else r.current=null;n(e)},[])}}U(ha,`usePresence`);function ga(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}U(ga,`setRef`);function _a(...e){let t=h.useRef(e);return t.current=e,h.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=ga(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():ga(n[e],null)}}},[])}U(_a,`useStableComposedRefs`);function va(e){return e?.animationName||`none`}U(va,`getAnimationName`);function ya(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}U(ya,`getElementRef`);var ba=Object.defineProperty,xa=(e,t)=>ba(e,`name`,{value:t,configurable:!0}),Sa=0,Ca=null;function wa(e){return Ta(),e.children}xa(wa,`FocusGuards`);function Ta(){h.useEffect(()=>{Ca||={start:Ea(),end:Ea()};let{start:e,end:t}=Ca;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Sa++,()=>{Sa===1&&(Ca?.start.remove(),Ca?.end.remove(),Ca=null),Sa=Math.max(0,Sa-1)}},[])}xa(Ta,`useFocusGuards`);function Ea(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}xa(Ea,`createFocusGuard`);var W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},W.apply(this,arguments)};function Da(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Oa(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var ka=`right-scroll-bar-position`,Aa=`width-before-scroll-bar`,ja=`with-scroll-bars-hidden`,Ma=`--removed-body-scroll-bar-size`;function Na(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Pa(e,t){var n=(0,h.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Fa=typeof window<`u`?h.useLayoutEffect:h.useEffect,Ia=new WeakMap;function La(e,t){var n=Pa(t||null,function(t){return e.forEach(function(e){return Na(e,t)})});return Fa(function(){var t=Ia.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Na(e,null)}),i.forEach(function(e){r.has(e)||Na(e,a)})}Ia.set(n,e)},[e]),n}function Ra(e){return e}function za(e,t){t===void 0&&(t=Ra);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Ba(e){e===void 0&&(e={});var t=za(null);return t.options=W({async:!0,ssr:!1},e),t}var Va=function(e){var t=e.sideCar,n=Da(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return h.createElement(r,W({},n))};Va.isSideCarExport=!0;function Ha(e,t){return e.useMedium(t),Va}var Ua=Ba(),Wa=function(){},Ga=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Wa,onWheelCapture:Wa,onTouchMoveCapture:Wa}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=Da(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=La([n,t]),w=W(W({},x),i);return h.createElement(h.Fragment,null,u&&h.createElement(S,{sideCar:Ua,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?h.cloneElement(h.Children.only(s),W(W({},w),{ref:C})):h.createElement(y,W({},w,{className:c,ref:C}),s))});Ga.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ga.classNames={fullWidth:Aa,zeroRight:ka};var Ka,qa=function(){if(Ka)return Ka;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Ja(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=qa();return t&&e.setAttribute(`nonce`,t),e}function Ya(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Xa(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Za=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ja())&&(Ya(t,n),Xa(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Qa=function(){var e=Za();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$a=function(){var e=Qa();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},eo={left:0,top:0,right:0,gap:0},to=function(e){return parseInt(e||``,10)||0},no=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[to(n),to(r),to(i)]},ro=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return eo;var t=no(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},io=$a(),ao=`data-scroll-locked`,oo=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
- .${ja} {
3
- overflow: hidden ${r};
4
- padding-right: ${s}px ${r};
5
- }
6
- body[${ao}] {
7
- overflow: hidden ${r};
8
- overscroll-behavior: contain;
9
- ${[t&&`position: relative ${r};`,n===`margin`&&`
10
- padding-left: ${i}px;
11
- padding-top: ${a}px;
12
- padding-right: ${o}px;
13
- margin-left:0;
14
- margin-top:0;
15
- margin-right: ${s}px ${r};
16
- `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17
- }
18
-
19
- .${ka} {
20
- right: ${s}px ${r};
21
- }
22
-
23
- .${Aa} {
24
- margin-right: ${s}px ${r};
25
- }
26
-
27
- .${ka} .${ka} {
28
- right: 0 ${r};
29
- }
30
-
31
- .${Aa} .${Aa} {
32
- margin-right: 0 ${r};
33
- }
34
-
35
- body[${ao}] {
36
- ${Ma}: ${s}px;
37
- }
38
- `},so=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},co=function(){h.useEffect(function(){return document.body.setAttribute(ao,(so()+1).toString()),function(){var e=so()-1;e<=0?document.body.removeAttribute(ao):document.body.setAttribute(ao,e.toString())}},[])},lo=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;co();var a=h.useMemo(function(){return ro(i)},[i]);return h.createElement(io,{styles:oo(a,!t,i,n?``:`!important`)})},uo=!1;if(typeof window<`u`)try{var fo=Object.defineProperty({},"passive",{get:function(){return uo=!0,!0}});window.addEventListener(`test`,fo,fo),window.removeEventListener(`test`,fo,fo)}catch{uo=!1}var po=uo?{passive:!1}:!1,mo=function(e){return e.tagName===`TEXTAREA`},ho=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!mo(e)&&n[t]===`visible`)},go=function(e){return ho(e,`overflowY`)},_o=function(e){return ho(e,`overflowX`)},vo=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),xo(e,r)){var i=So(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},yo=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},bo=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},xo=function(e,t){return e===`v`?go(t):_o(t)},So=function(e,t){return e===`v`?yo(t):bo(t)},Co=function(e,t){return e===`h`&&t===`rtl`?-1:1},wo=function(e,t,n,r,i){var a=Co(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=So(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&xo(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},To=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Eo=function(e){return[e.deltaX,e.deltaY]},Do=function(e){return e&&`current`in e?e.current:e},Oo=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ko=function(e){return`
39
- .block-interactivity-${e} {pointer-events: none;}
40
- .allow-interactivity-${e} {pointer-events: all;}
41
- `},Ao=0,jo=[];function Mo(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),i=h.useState(Ao++)[0],a=h.useState($a)[0],o=h.useRef(e);h.useEffect(function(){o.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Oa([e.lockRef.current],(e.shards||[]).map(Do),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=h.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=To(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=vo(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=vo(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return wo(h,t,e,h===`h`?s:c,!0)},[]),c=h.useCallback(function(e){var n=e;if(!(!jo.length||jo[jo.length-1]!==a)){var r=`deltaY`in n?Eo(n):To(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Oo(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Do).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=h.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:No(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=h.useCallback(function(e){n.current=To(e),r.current=void 0},[]),d=h.useCallback(function(t){l(t.type,Eo(t),t.target,s(t,e.lockRef.current))},[]),f=h.useCallback(function(t){l(t.type,To(t),t.target,s(t,e.lockRef.current))},[]);h.useEffect(function(){return jo.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,po),document.addEventListener(`touchmove`,c,po),document.addEventListener(`touchstart`,u,po),function(){jo=jo.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,po),document.removeEventListener(`touchmove`,c,po),document.removeEventListener(`touchstart`,u,po)}},[]);var p=e.removeScrollBar,m=e.inert;return h.createElement(h.Fragment,null,m?h.createElement(a,{styles:ko(i)}):null,p?h.createElement(lo,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function No(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Po=Ha(Ua,Mo),Fo=h.forwardRef(function(e,t){return h.createElement(Ga,W({},e,{ref:t,sideCar:Po}))});Fo.classNames=Ga.classNames;var Io=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Lo=new WeakMap,Ro=new WeakMap,zo={},Bo=0,Vo=function(e){return e&&(e.host||Vo(e.parentNode))},Ho=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Vo(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Uo=function(e,t,n,r){var i=Ho(t,Array.isArray(e)?e:[e]);zo[n]||(zo[n]=new WeakMap);var a=zo[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Lo.get(e)||0)+1,l=(a.get(e)||0)+1;Lo.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ro.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Bo++,function(){o.forEach(function(e){var t=Lo.get(e)-1,i=a.get(e)-1;Lo.set(e,t),a.set(e,i),t||(Ro.has(e)||e.removeAttribute(r),Ro.delete(e)),i||e.removeAttribute(n)}),Bo--,Bo||(Lo=new WeakMap,Lo=new WeakMap,Ro=new WeakMap,zo={})}},Wo=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Io(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Uo(r,i,n,`aria-hidden`)):function(){return null}},Go=Object.defineProperty,G=(e,t)=>Go(e,`name`,{value:t,configurable:!0}),Ko=`Dialog`,[qo,Jo]=ii(Ko),[Yo,K]=qo(Ko),Xo=G(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=h.useRef(null),c=h.useRef(null),[l,u]=Ei({prop:r,defaultProp:i??!1,onChange:a,caller:Ko}),[d,f]=h.useState(0),[p,m]=h.useState(0);return(0,j.jsx)(Yo,{scope:t,triggerRef:s,contentRef:c,contentId:_i(),titleId:_i(),descriptionId:_i(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:h.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),Zo=`DialogTrigger`,Qo=h.forwardRef(G(function(e,t){let{__scopeDialog:n,...r}=e,i=K(Zo,n),a=b(t,i.triggerRef);return(0,j.jsx)(M.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":vs(i.open),...r,ref:a,onClick:L(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),$o=`DialogPortal`,[es,ts]=qo($o,{forceMount:void 0}),ns=G(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=K($o,t);return(0,j.jsx)(es,{scope:t,forceMount:n,children:h.Children.map(r,e=>(0,j.jsx)(ma,{present:n||a.open,children:(0,j.jsx)(da,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),rs=`DialogOverlay`,is=h.forwardRef(G(function(e,t){let n=ts(rs,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=K(rs,e.__scopeDialog);return a.modal?(0,j.jsx)(ma,{present:r||a.open,children:(0,j.jsx)(os,{...i,ref:t})}):null},`DialogOverlay`)),as=C(`DialogOverlay.RemoveScroll`),os=h.forwardRef(G(function(e,t){let{__scopeDialog:n,...r}=e,i=K(rs,n),a=b(t,Vi());return(0,j.jsx)(Fo,{as,allowPinchZoom:!0,shards:[i.contentRef],children:(0,j.jsx)(M.div,{"data-state":vs(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),ss=`DialogContent`,cs=h.forwardRef(G(function(e,t){let n=ts(ss,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=K(ss,e.__scopeDialog);return(0,j.jsx)(ma,{present:r||a.open,children:a.modal?(0,j.jsx)(ls,{...i,ref:t}):(0,j.jsx)(us,{...i,ref:t})})},`DialogContent`)),ls=h.forwardRef(G(function(e,t){let n=K(ss,e.__scopeDialog),r=h.useRef(null),i=b(t,n.contentRef,r);return h.useEffect(()=>{let e=r.current;if(e)return Wo(e)},[]),(0,j.jsx)(ds,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:L(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:L(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),us=h.forwardRef(G(function(e,t){let n=K(ss,e.__scopeDialog),r=h.useRef(!1),i=h.useRef(!1);return(0,j.jsx)(ds,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),ds=h.forwardRef(G(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=K(ss,n);return Ta(),(0,j.jsx)(j.Fragment,{children:(0,j.jsx)($i,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,j.jsx)(zi,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":vs(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),fs=`DialogTitle`,ps=h.forwardRef(G(function(e,t){let{__scopeDialog:n,...r}=e,i=K(fs,n),{setTitleCount:a}=i;return R(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,j.jsx)(M.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),ms=`DialogDescription`,hs=h.forwardRef(G(function(e,t){let{__scopeDialog:n,...r}=e,i=K(ms,n),{setDescriptionCount:a}=i;return R(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,j.jsx)(M.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),gs=`DialogClose`,_s=h.forwardRef(G(function(e,t){let{__scopeDialog:n,...r}=e,i=K(gs,n);return(0,j.jsx)(M.button,{type:`button`,...r,ref:t,onClick:L(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function vs(e){return e?`open`:`closed`}G(vs,`getState`);var ys=Object.defineProperty,q=(e,t)=>ys(e,`name`,{value:t,configurable:!0}),[bs,xs]=ii(`AlertDialog`,[Jo]),J=Jo(),Ss=q(e=>{let{__scopeAlertDialog:t,...n}=e,r=J(t);return(0,j.jsx)(Xo,{...r,...n,modal:!0})},`AlertDialog`),Cs=h.forwardRef(q(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=J(n);return(0,j.jsx)(Qo,{...i,...r,ref:t})},`AlertDialogTrigger`)),ws=q(e=>{let{__scopeAlertDialog:t,...n}=e,r=J(t);return(0,j.jsx)(ns,{...r,...n})},`AlertDialogPortal`),Ts=h.forwardRef(q(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=J(n);return(0,j.jsx)(is,{...i,...r,ref:t})},`AlertDialogOverlay`)),[Es,Ds]=bs(`AlertDialogContent`),Os=h.forwardRef(q(function(e,t){let{__scopeAlertDialog:n,children:r,...i}=e,a=J(n),o=b(t,h.useRef(null)),s=h.useRef(null);return(0,j.jsx)(Es,{scope:n,cancelRef:s,children:(0,j.jsx)(cs,{role:`alertdialog`,...a,...i,ref:o,onOpenAutoFocus:L(i.onOpenAutoFocus,e=>{e.preventDefault(),s.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:r})})},`AlertDialogContent`)),ks=h.forwardRef(q(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=J(n);return(0,j.jsx)(ps,{...i,...r,ref:t})},`AlertDialogTitle`)),As=h.forwardRef(q(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=J(n);return(0,j.jsx)(hs,{...i,...r,ref:t})},`AlertDialogDescription`)),js=h.forwardRef(q(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=J(n);return(0,j.jsx)(_s,{...i,...r,ref:t})},`AlertDialogAction`)),Ms=`AlertDialogCancel`,Ns=h.forwardRef(q(function(e,t){let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=Ds(Ms,n),a=J(n),o=b(t,i);return(0,j.jsx)(_s,{...a,...r,ref:o})},`AlertDialogCancel`)),Ps=Ss,Fs=Cs,Is=ws,Ls=Ts,Rs=Os,zs=js,Bs=Ns,Vs=ks,Hs=As,Us=Object.defineProperty,Ws=(e,t)=>Us(e,`name`,{value:t,configurable:!0});function Gs(e){let[t,n]=h.useState(void 0);return R(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}Ws(Gs,`useSize`);var Ks=Object.defineProperty,qs=(e,t)=>Ks(e,`name`,{value:t,configurable:!0}),Js=`Popper`,[Ys,Xs]=ii(Js),[Zs,Qs]=Ys(Js),$s=qs(e=>{let{__scopePopper:t,children:n}=e,[r,i]=h.useState(null),[a,o]=h.useState(void 0);return(0,j.jsx)(Zs,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),ec=`PopperAnchor`,tc=h.forwardRef(qs(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Qs(ec,n),o=h.useRef(null),s=a.onAnchorChange,c=b(t,h.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=h.useRef(null);h.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&cc(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,j.jsx)(M.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),nc=`PopperContent`,[rc,ic]=Ys(nc),ac=h.forwardRef(qs(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:p=0,align:m=`center`,alignOffset:g=0,arrowPadding:_=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:x=0,sticky:S=`partial`,hideWhenDetached:C=!1,updatePositionStrategy:w=`optimized`,onPlaced:T,...E}=e,D=Qs(nc,n),[O,ee]=h.useState(null),te=b(t,ee),[k,A]=h.useState(null),ne=Gs(k),re=ne?.width??0,ie=ne?.height??0,ae=r+(m===`center`?``:`-`+m),oe=typeof x==`number`?x:{top:0,right:0,bottom:0,left:0,...x},se=Array.isArray(y)?y:[y],ce=se.length>0,le={padding:oe,boundary:se.filter(oc),altBoundary:ce},{refs:ue,floatingStyles:de,placement:N,isPositioned:fe,middlewareData:P}=c({strategy:`fixed`,placement:ae,whileElementsMounted:qs((...e)=>s(...e,{animationFrame:w===`always`}),`whileElementsMounted`),elements:{reference:D.anchor},middleware:[o({mainAxis:p+ie,alignmentAxis:g}),v&&d({mainAxis:!0,crossAxis:!1,limiter:S===`partial`?a():void 0,...le}),v&&l({...le}),u({...le,apply:qs(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),k&&i({element:k,padding:_}),sc({arrowWidth:re,arrowHeight:ie}),C&&f({strategy:`referenceHidden`,...le,boundary:ce?le.boundary:void 0})]}),pe=D.setPlacementState;R(()=>(pe(N),()=>{pe(void 0)}),[N,pe]);let[me,he]=cc(N),F=z(T);R(()=>{fe&&F?.()},[fe,F]);let ge=P.arrow?.x,_e=P.arrow?.y,ve=P.arrow?.centerOffset!==0,[ye,be]=h.useState();return R(()=>{O&&be(window.getComputedStyle(O).zIndex)},[O]),(0,j.jsx)(`div`,{ref:ue.setFloating,"data-radix-popper-content-wrapper":``,style:{...de,transform:fe?de.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ye,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(` `),...P.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,j.jsx)(rc,{scope:n,placedSide:me,placedAlign:he,onArrowChange:A,arrowX:ge,arrowY:_e,shouldHideArrow:ve,children:(0,j.jsx)(M.div,{"data-side":me,"data-align":he,...E,ref:te,style:{...E.style,animation:fe?E.style?.animation:`none`}})})})},`PopperContent`));function oc(e){return e!==null}qs(oc,`isNotNull`);var sc=qs(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=cc(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function cc(e){let[t,n=`center`]=e.split(`-`);return[t,n]}qs(cc,`getSideAndAlignFromPlacement`);var lc=$s,uc=tc,dc=ac,fc=Object.defineProperty,pc=(e,t)=>fc(e,`name`,{value:t,configurable:!0}),mc=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),hc=h.forwardRef(pc(function(e,t){return(0,j.jsx)(M.span,{...e,ref:t,style:{...mc,...e.style}})},`VisuallyHidden`)),gc=hc,_c=Object.defineProperty,Y=(e,t)=>_c(e,`name`,{value:t,configurable:!0}),[vc,yc]=ii(`Tooltip`,[Xs]),bc=Xs(),xc=`TooltipProvider`,Sc=700,Cc=`tooltip.open`,[wc,Tc]=vc(xc),Ec=Y(e=>{let{__scopeTooltip:t,delayDuration:n=Sc,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=h.useRef(!0),s=h.useRef(!1),c=h.useRef(0);return h.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,j.jsx)(wc,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:h.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:h.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:h.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),Dc=`Tooltip`,[Oc,kc]=vc(Dc),Ac=Y(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=Tc(Dc,e.__scopeTooltip),l=bc(t),[u,d]=h.useState(null),[f,p]=h.useState(void 0),m=_i(),g=h.useRef(0),_=o??c.disableHoverableContent,v=s??c.delayDuration,y=h.useRef(!1),[b,x]=Ei({prop:r,defaultProp:i??!1,onChange:Y(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Cc))):c.onClose(),a?.(e)},`onChange`),caller:Dc}),S=h.useMemo(()=>b?y.current?`delayed-open`:`instant-open`:`closed`,[b]),C=h.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,x(!0)},[x]),w=h.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),T=h.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,x(!0),g.current=0},v)},[v,x]);h.useEffect(()=>()=>{g.current&&=(window.clearTimeout(g.current),0)},[]);let E=f??m;return(0,j.jsx)(lc,{...l,children:(0,j.jsx)(Oc,{scope:t,contentId:E,setContentId:p,open:b,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:h.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:h.useCallback(()=>{_?w():(window.clearTimeout(g.current),g.current=0)},[w,_]),onOpen:C,onClose:w,disableHoverableContent:_,children:n})})},`Tooltip`),jc=`TooltipTrigger`,Mc=h.forwardRef(Y(function(e,t){let{__scopeTooltip:n,...r}=e,i=kc(jc,n),a=Tc(jc,n),o=bc(n),s=b(t,h.useRef(null),i.onTriggerChange),c=h.useRef(!1),l=h.useRef(!1),u=h.useCallback(()=>c.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,j.jsx)(uc,{asChild:!0,...o,children:(0,j.jsx)(M.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:L(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:L(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:L(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:L(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:L(e.onBlur,i.onClose),onClick:L(e.onClick,i.onClose)})})},`TooltipTrigger`)),Nc=`TooltipPortal`,[Pc,Fc]=vc(Nc,{forceMount:void 0}),Ic=Y(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=kc(Nc,t);return(0,j.jsx)(Pc,{scope:t,forceMount:n,children:(0,j.jsx)(ma,{present:n||a.open,children:(0,j.jsx)(da,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),Lc=`TooltipContent`,Rc=h.forwardRef(Y(function(e,t){let n=Fc(Lc,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=kc(Lc,e.__scopeTooltip);return(0,j.jsx)(ma,{present:r||o.open,children:o.disableHoverableContent?(0,j.jsx)(Vc,{side:i,...a,ref:t}):(0,j.jsx)(zc,{side:i,...a,ref:t})})},`TooltipContent`)),zc=h.forwardRef(Y(function(e,t){let n=kc(Lc,e.__scopeTooltip),r=Tc(Lc,e.__scopeTooltip),i=h.useRef(null),a=b(t,i),[o,s]=h.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=h.useCallback(()=>{s(null),d(!1)},[d]),p=h.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Uc(r,Hc(r,n.getBoundingClientRect())),a=Wc(t.getBoundingClientRect()),o=Kc([...i,...a]);s(o),d(!0)},[d]);return h.useEffect(()=>()=>f(),[f]),h.useEffect(()=>{if(c&&u){let e=Y(e=>p(e,u),`handleTriggerLeave`),t=Y(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),h.useEffect(()=>{if(o){let e=Y(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Gc(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,j.jsx)(Vc,{...e,ref:a})},`TooltipContentHoverable`)),Bc=E(`TooltipContent`),Vc=h.forwardRef(Y(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=kc(Lc,n),u=bc(n),{onClose:d}=l;h.useEffect(()=>(document.addEventListener(Cc,d),()=>document.removeEventListener(Cc,d)),[d]),h.useEffect(()=>{if(l.trigger){let e=Y(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:f}=l;return R(()=>(f(a),()=>{f(void 0)}),[a,f]),(0,j.jsx)(zi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,j.jsxs)(dc,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:t,style:{...c.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:[(0,j.jsx)(Bc,{children:r}),i?(0,j.jsx)(gc,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`));function Hc(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}Y(Hc,`getExitSideFromRect`);function Uc(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}Y(Uc,`getPaddedExitPoints`);function Wc(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}Y(Wc,`getPointsFromRect`);function Gc(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}Y(Gc,`isPointInPolygon`);function Kc(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),qc(t)}Y(Kc,`getHull`);function qc(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}Y(qc,`getHullPresorted`);var Jc=Ec,Yc=Ac,Xc=Mc,Zc=Ic,Qc=Rc,$c=Object.defineProperty,X=(e,t)=>$c(e,`name`,{value:t,configurable:!0}),el=`Avatar`,[tl,nl]=ii(el),rl=[0,()=>void 0],[il,al]=tl(el),ol=h.forwardRef(X(function(e,t){let{__scopeAvatar:n,...r}=e,[i,a]=h.useState(`idle`),[o,s]=pl();return(0,j.jsx)(il,{scope:n,imageLoadingStatus:i,setImageLoadingStatus:a,imageCount:o,setImageCount:s,children:(0,j.jsx)(M.span,{...r,ref:t})})},`Avatar`)),sl=`AvatarImage`,cl=h.forwardRef(X(function(e,t){let{__scopeAvatar:n,src:r,onLoadingStatusChange:i,...a}=e,o=al(sl,n);o.setImageCount;let s=dl(r,{referrerPolicy:a.referrerPolicy,crossOrigin:a.crossOrigin,loadingStatus:o.imageLoadingStatus,setLoadingStatus:o.setImageLoadingStatus}),c=z(e=>{i?.(e)}),l=h.useRef(s);return R(()=>{let e=l.current;l.current=s,s!==e&&c(s)},[s,c]),s===`loaded`?(0,j.jsx)(M.img,{...a,ref:t,src:r}):null},`AvatarImage`)),ll=`AvatarFallback`,ul=h.forwardRef(X(function(e,t){let{__scopeAvatar:n,delayMs:r,...i}=e,a=al(ll,n),[o,s]=h.useState(r===void 0);return h.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,j.jsx)(M.span,{...i,ref:t}):null},`AvatarFallback`));function dl(e,{loadingStatus:t,setLoadingStatus:n,referrerPolicy:r,crossOrigin:i}){return R(()=>{if(!e){n(`error`);return}let t=new window.Image,a=X(e=>{let t=e.currentTarget;n(fl(t))},`handleLoad`),o=X(()=>n(`error`),`handleError`);return t.addEventListener(`load`,a),t.addEventListener(`error`,o),r&&(t.referrerPolicy=r),t.crossOrigin=i??null,t.src=e,n(fl(t)),()=>{t.removeEventListener(`load`,a),t.removeEventListener(`error`,o),n(`idle`)}},[e,i,r,n]),t}X(dl,`useImageLoadingStatus`);function fl(e){return e.complete?e.naturalWidth>0?`loaded`:`error`:`loading`}X(fl,`getImageLoadingStatus`);function pl(){return rl}X(pl,`useImageCount`);function ml(e){}X(ml,`useUpdateImageCount`);var hl=Object.defineProperty,Z=(e,t)=>hl(e,`name`,{value:t,configurable:!0});function gl(e){let t=e+`CollectionProvider`,[n,r]=ii(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=Z(e=>{let{scope:t,children:n}=e,r=h.useRef(null),a=h.useRef(new Map).current;return(0,j.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=C(s),l=h.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=b(t,a(s,n).collectionRef);return(0,j.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=C(u),p=h.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=h.useRef(null),s=b(t,o),c=a(u,n);return h.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,j.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return h.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return Z(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}Z(gl,`createCollection`);var _l=new WeakMap,vl=class e extends Map{static{Z(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],_l.set(this,!0)}set(e,t){return _l.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=xl(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=yl(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=yl(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return yl(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function yl(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=bl(e,t);return n===-1?void 0:e[n]}Z(yl,`at`);function bl(e,t){let n=e.length,r=xl(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}Z(bl,`toSafeIndex`);function xl(e){return e!==e||e===0?0:Math.trunc(e)}Z(xl,`toSafeInteger`);function Sl(e){let t=e+`CollectionProvider`,[n,r]=ii(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new vl,setItemMap:Z(()=>void 0,`setItemMap`)}),o=Z(({state:e,...t})=>e?(0,j.jsx)(c,{...t,state:e}):(0,j.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=Z(e=>{let t=g();return(0,j.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=Z(e=>{let{scope:t,children:n,state:r}=e,a=h.useRef(null),[o,s]=h.useState(null),c=b(a,s),[l,u]=r;return h.useEffect(()=>{if(!o)return;let e=El(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,j.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=C(l),d=h.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=b(t,a(l,n).collectionRef);return(0,j.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=C(f),m=h.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=h.useRef(null),[s,c]=h.useState(null),l=b(t,o,c),{setItemMap:u}=a(f,n),d=h.useRef(i);Cl(d.current,i)||(d.current=i);let m=d.current;return h.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(Tl):(t.set(s,{...e,element:s}),t.toSorted(Tl)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new vl(e)))}},[s,m,u]),(0,j.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function g(){return h.useState(new vl)}Z(g,`useInitCollection`);function _(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return Z(_,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:_,useInitCollection:g}]}Z(Sl,`createCollection`);function Cl(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Z(Cl,`shallowEqual`);function wl(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Z(wl,`isElementPreceding`);function Tl(e,t){return!e[1].element||!t[1].element?0:wl(e[1].element,t[1].element)?-1:1}Z(Tl,`sortByDocumentPosition`);function El(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}Z(El,`getChildListObserver`);var Dl=Object.defineProperty,Q=(e,t)=>Dl(e,`name`,{value:t,configurable:!0}),Ol=`ToastProvider`,[kl,Al,jl]=gl(`Toast`),[Ml,Nl]=ii(`Toast`,[jl]),[Pl,Fl]=Ml(Ol),Il=Q(e=>{let{__scopeToast:t,label:n=`Notification`,duration:r=5e3,swipeDirection:i=`right`,swipeThreshold:a=50,announcerContainer:o,children:s}=e,[c,l]=h.useState(null),[u,d]=h.useState(0),f=h.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Ol}\`. Expected non-empty \`string\`.`),(0,j.jsx)(kl.Provider,{scope:t,children:(0,j.jsx)(Pl,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:u,viewport:c,onViewportChange:l,onToastAdd:h.useCallback(()=>d(e=>e+1),[]),onToastRemove:h.useCallback(()=>d(e=>e-1),[]),isClosePausedRef:f,announcerContainer:o,children:s})})},`ToastProvider`),Ll=`ToastViewport`,Rl=[`F8`],zl=`toast.viewportPause`,Bl=`toast.viewportResume`,Vl=h.forwardRef(Q(function(e,t){let{__scopeToast:n,hotkey:r=Rl,label:i=`Notifications ({hotkey})`,...a}=e,o=Fl(Ll,n),s=Al(n),c=h.useRef(null),l=h.useRef(null),u=h.useRef(null),d=h.useRef(null),f=b(t,d,o.onViewportChange),p=r.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),m=o.toastCount>0;h.useEffect(()=>{let e=Q(e=>{r.length!==0&&r.every(t=>e[t]||e.code===t)&&d.current?.focus()},`handleKeyDown`);return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),h.useEffect(()=>{let e=c.current,t=d.current;if(m&&e&&t){let n=Q(()=>{if(!o.isClosePausedRef.current){let e=new CustomEvent(zl);t.dispatchEvent(e),o.isClosePausedRef.current=!0}},`handlePause`),r=Q(()=>{if(o.isClosePausedRef.current){let e=new CustomEvent(Bl);t.dispatchEvent(e),o.isClosePausedRef.current=!1}},`handleResume`),i=Q(t=>{e.contains(t.relatedTarget)||r()},`handleFocusOutResume`),a=Q(()=>{e.contains(document.activeElement)||r()},`handlePointerLeaveResume`);return e.addEventListener(`focusin`,n),e.addEventListener(`focusout`,i),e.addEventListener(`pointermove`,n),e.addEventListener(`pointerleave`,a),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),()=>{e.removeEventListener(`focusin`,n),e.removeEventListener(`focusout`,i),e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerleave`,a),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)}}},[m,o.isClosePausedRef]);let g=h.useCallback(({tabbingDirection:e})=>{let t=s().map(t=>{let n=t.ref.current,r=[n,...fu(n)];return e===`forwards`?r:r.reverse()});return(e===`forwards`?t.reverse():t).flat()},[s]);return h.useEffect(()=>{let e=d.current;if(e){let t=Q(t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if(t.key===`Tab`&&!n){let n=document.activeElement,r=t.shiftKey;if(t.target===e&&r){l.current?.focus();return}let i=g({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);pu(i.slice(a+1))?t.preventDefault():r?l.current?.focus():u.current?.focus()}},`handleKeyDown`);return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}},[s,g]),(0,j.jsxs)(Ji,{ref:c,role:`region`,"aria-label":i.replace(`{hotkey}`,p),tabIndex:-1,style:{pointerEvents:m?void 0:`none`},children:[m&&(0,j.jsx)(Ul,{ref:l,onFocusFromOutsideViewport:()=>{pu(g({tabbingDirection:`forwards`}))}}),(0,j.jsx)(kl.Slot,{scope:n,children:(0,j.jsx)(M.ol,{tabIndex:-1,...a,ref:f})}),m&&(0,j.jsx)(Ul,{ref:u,onFocusFromOutsideViewport:()=>{pu(g({tabbingDirection:`backwards`}))}})]})},`ToastViewport`)),Hl=`ToastFocusProxy`,Ul=h.forwardRef(Q(function(e,t){let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=Fl(Hl,n);return(0,j.jsx)(hc,{tabIndex:0,...i,ref:t,style:{position:`fixed`},onFocus:e=>{let t=e.relatedTarget;a.viewport?.contains(t)||r()}})},`ToastFocusProxy`)),Wl=`Toast`,Gl=`toast.swipeStart`,Kl=`toast.swipeMove`,ql=`toast.swipeCancel`,Jl=`toast.swipeEnd`,Yl=h.forwardRef(Q(function(e,t){let{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...o}=e,[s,c]=Ei({prop:r,defaultProp:i??!0,onChange:a,caller:Wl});return(0,j.jsx)(ma,{present:n||s,children:(0,j.jsx)(Ql,{open:s,...o,ref:t,onClose:()=>c(!1),onPause:z(e.onPause),onResume:z(e.onResume),onSwipeStart:L(e.onSwipeStart,e=>{e.currentTarget.setAttribute(`data-swipe`,`start`)}),onSwipeMove:L(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`move`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-y`,`${n}px`)}),onSwipeCancel:L(e.onSwipeCancel,e=>{e.currentTarget.setAttribute(`data-swipe`,`cancel`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-y`)}),onSwipeEnd:L(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`end`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-y`,`${n}px`),c(!1)})})})},`Toast`)),[Xl,Zl]=Ml(Wl,{onClose(){}}),Ql=h.forwardRef(Q(function(e,t){let{__scopeToast:n,type:r=`foreground`,duration:i,open:a,onClose:o,onEscapeKeyDown:s,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...g}=e,_=Fl(Wl,n),v=Al(n),[y,x]=h.useState(null),S=b(t,x),C=h.useRef(null),w=h.useRef(null),T=i||_.duration,E=h.useRef(0),D=h.useRef(T),O=h.useRef(0),{onToastAdd:ee,onToastRemove:te}=_,k=z(()=>{y?.contains(document.activeElement)&&_.viewport?.focus(),o()}),A=h.useCallback(e=>{!e||e===1/0||(window.clearTimeout(O.current),E.current=new Date().getTime(),O.current=window.setTimeout(k,e))},[k]);h.useEffect(()=>{let e=_.viewport;if(e){let t=Q(()=>{A(D.current),l?.()},`handleResume`),n=Q(()=>{let e=new Date().getTime()-E.current;D.current-=e,window.clearTimeout(O.current),c?.()},`handlePause`);return e.addEventListener(zl,n),e.addEventListener(Bl,t),()=>{e.removeEventListener(zl,n),e.removeEventListener(Bl,t)}}},[_.viewport,T,c,l,A]),h.useEffect(()=>{a&&!_.isClosePausedRef.current&&A(T)},[a,T,_.isClosePausedRef,A]),h.useEffect(()=>()=>{window.clearTimeout(O.current)},[]),h.useEffect(()=>(ee(),()=>te()),[ee,te]);let ne=h.useMemo(()=>y?su(y):null,[y]);return _.viewport?(0,j.jsxs)(j.Fragment,{children:[ne&&(0,j.jsx)($l,{__scopeToast:n,role:`status`,"aria-live":r===`foreground`?`assertive`:`polite`,children:ne}),(0,j.jsx)(Xl,{scope:n,onClose:k,children:m.createPortal((0,j.jsx)(kl.ItemSlot,{scope:n,children:(0,j.jsx)(qi,{asChild:!0,onEscapeKeyDown:L(s,e=>{v().some(t=>t.ref.current?.contains(e.target))||k()}),children:(0,j.jsx)(M.li,{tabIndex:0,"data-state":a?`open`:`closed`,"data-swipe-direction":_.swipeDirection,...g,ref:S,style:{userSelect:`none`,touchAction:`none`,...e.style},onKeyDown:L(e.onKeyDown,e=>{e.key===`Escape`&&(s?.(e.nativeEvent),e.nativeEvent.defaultPrevented||k())}),onPointerDown:L(e.onPointerDown,e=>{e.button===0&&(C.current={x:e.clientX,y:e.clientY})}),onPointerMove:L(e.onPointerMove,e=>{if(!C.current)return;let t=e.clientX-C.current.x,n=e.clientY-C.current.y,r=!!w.current,i=[`left`,`right`].includes(_.swipeDirection),a=[`left`,`up`].includes(_.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),c=e.pointerType===`touch`?10:2,l={x:o,y:s},f={originalEvent:e,delta:l};r?(w.current=l,cu(Kl,d,f,{discrete:!1})):lu(l,_.swipeDirection,c)?(w.current=l,cu(Gl,u,f,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(C.current=null)}),onPointerUp:L(e.onPointerUp,e=>{let t=w.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),w.current=null,C.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};lu(t,_.swipeDirection,_.swipeThreshold)?cu(Jl,p,r,{discrete:!0}):cu(ql,f,r,{discrete:!0}),n.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}})})})}),_.viewport)})]}):null},`ToastImpl`)),$l=Q(e=>{let{__scopeToast:t,children:n,...r}=e,i=Fl(Wl,t),[a,o]=h.useState(!1),[s,c]=h.useState(!1);return uu(()=>o(!0)),h.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,j.jsx)(da,{asChild:!0,container:i.announcerContainer||void 0,children:(0,j.jsx)(hc,{...r,children:a&&(0,j.jsxs)(j.Fragment,{children:[i.label,` `,n]})})})},`ToastAnnounce`),eu=h.forwardRef(Q(function(e,t){let{__scopeToast:n,...r}=e;return(0,j.jsx)(M.div,{...r,ref:t})},`ToastTitle`)),tu=h.forwardRef(Q(function(e,t){let{__scopeToast:n,...r}=e;return(0,j.jsx)(M.div,{...r,ref:t})},`ToastDescription`)),nu=`ToastAction`,ru=h.forwardRef(Q(function(e,t){let{altText:n,...r}=e;return n.trim()?(0,j.jsx)(ou,{altText:n,asChild:!0,children:(0,j.jsx)(au,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${nu}\`. Expected non-empty \`string\`.`),null)},`ToastAction`)),iu=`ToastClose`,au=h.forwardRef(Q(function(e,t){let{__scopeToast:n,...r}=e,i=Zl(iu,n);return(0,j.jsx)(ou,{asChild:!0,children:(0,j.jsx)(M.button,{type:`button`,...r,ref:t,onClick:L(e.onClick,i.onClose)})})},`ToastClose`)),ou=h.forwardRef(Q(function(e,t){let{__scopeToast:n,altText:r,...i}=e;return(0,j.jsx)(M.div,{"data-radix-toast-announce-exclude":``,"data-radix-toast-announce-alt":r||void 0,...i,ref:t})},`ToastAnnounceExclude`));function su(e){let t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),du(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.radixToastAnnounceExclude===``;if(!n){if(r){let n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...su(e))}}}),t}Q(su,`getAnnounceTextContent`);function cu(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ce(i,a):i.dispatchEvent(a)}Q(cu,`handleAndDispatchCustomEvent`);var lu=Q((e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n},`isDeltaInDirection`);function uu(e=()=>{}){let t=z(e);R(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}Q(uu,`useNextFrame`);function du(e){return e.nodeType===e.ELEMENT_NODE}Q(du,`isHTMLElement`);function fu(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Q(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}Q(fu,`getTabbableCandidates`);function pu(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}Q(pu,`focusFirst`);var mu=Il,hu=Vl,gu=Yl,_u=eu,vu=tu,yu=ru,bu=au;function xu(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Su(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Cu(...e){return t=>{let n=!1,r=e.map(e=>{let r=Su(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Su(e[t],null)}}}}function wu(...e){return h.useCallback(Cu(...e),e)}function Tu(e,t=[]){let n=[];function r(t,r){let i=h.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=h.useMemo(()=>o,Object.values(o));return(0,j.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=h.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>h.createContext(e));return function(n){let r=n?.[e]||t;return h.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Eu(i,...t)]}function Eu(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Du=h.forwardRef((e,t)=>{let{children:n,...r}=e,i=h.Children.toArray(n),a=i.find(Au);if(a){let e=a.props.children,n=i.map(t=>t===a?h.Children.count(e)>1?h.Children.only(null):h.isValidElement(e)?e.props.children:null:t);return(0,j.jsx)(Ou,{...r,ref:t,children:h.isValidElement(e)?h.cloneElement(e,void 0,n):null})}return(0,j.jsx)(Ou,{...r,ref:t,children:n})});Du.displayName=`Slot`;var Ou=h.forwardRef((e,t)=>{let{children:n,...r}=e;if(h.isValidElement(n)){let e=Mu(n),i=ju(r,n.props);return n.type!==h.Fragment&&(i.ref=t?Cu(t,e):e),h.cloneElement(n,i)}return h.Children.count(n)>1?h.Children.only(null):null});Ou.displayName=`SlotClone`;var ku=({children:e})=>(0,j.jsx)(j.Fragment,{children:e});function Au(e){return h.isValidElement(e)&&e.type===ku}function ju(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Mu(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=h.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?Du:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,j.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Nu(e,t){e&&m.flushSync(()=>e.dispatchEvent(t))}function Pu(e){let t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...e)=>t.current?.(...e),[])}function Fu(e,t=globalThis?.document){let n=Pu(e);h.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var Iu=`DismissableLayer`,Lu=`dismissableLayer.update`,Ru=`dismissableLayer.pointerDownOutside`,zu=`dismissableLayer.focusOutside`,Bu,Vu=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Hu=h.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=h.useContext(Vu),[u,d]=h.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=h.useState({}),m=wu(t,e=>d(e)),g=Array.from(l.layers),[_]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(_),y=u?g.indexOf(u):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=Gu(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!x||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),C=Ku(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return Fu(e=>{y===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),h.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Bu=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),qu(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Bu)}},[u,f,n,l]),h.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),qu())},[u,l]),h.useEffect(()=>{let e=()=>p({});return document.addEventListener(Lu,e),()=>document.removeEventListener(Lu,e)},[]),(0,j.jsx)($.div,{...c,ref:m,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:xu(e.onFocusCapture,C.onFocusCapture),onBlurCapture:xu(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:xu(e.onPointerDownCapture,S.onPointerDownCapture)})});Hu.displayName=Iu;var Uu=`DismissableLayerBranch`,Wu=h.forwardRef((e,t)=>{let n=h.useContext(Vu),r=h.useRef(null),i=wu(t,r);return h.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,j.jsx)($.div,{...e,ref:i})});Wu.displayName=Uu;function Gu(e,t=globalThis?.document){let n=Pu(e),r=h.useRef(!1),i=h.useRef(()=>{});return h.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){Ju(Ru,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ku(e,t=globalThis?.document){let n=Pu(e),r=h.useRef(!1);return h.useEffect(()=>{let e=e=>{e.target&&!r.current&&Ju(zu,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qu(){let e=new CustomEvent(Lu);document.dispatchEvent(e)}function Ju(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Nu(i,a):i.dispatchEvent(a)}var Yu=0;function Xu(){h.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Zu()),document.body.insertAdjacentElement(`beforeend`,e[1]??Zu()),Yu++,()=>{Yu===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Yu--}},[])}function Zu(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var Qu=`focusScope.autoFocusOnMount`,$u=`focusScope.autoFocusOnUnmount`,ed={bubbles:!1,cancelable:!0},td=`FocusScope`,nd=h.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=h.useState(null),l=Pu(i),u=Pu(a),d=h.useRef(null),f=wu(t,e=>c(e)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:ld(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||ld(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ld(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),h.useEffect(()=>{if(s){ud.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Qu,ed);s.addEventListener(Qu,l),s.dispatchEvent(t),t.defaultPrevented||(rd(pd(ad(s)),{select:!0}),document.activeElement===e&&ld(s))}return()=>{s.removeEventListener(Qu,l),setTimeout(()=>{let t=new CustomEvent($u,ed);s.addEventListener($u,u),s.dispatchEvent(t),t.defaultPrevented||ld(e??document.body,{select:!0}),s.removeEventListener($u,u),ud.remove(p)},0)}}},[s,l,u,p]);let m=h.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=id(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&ld(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&ld(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,j.jsx)($.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});nd.displayName=td;function rd(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(ld(r,{select:t}),document.activeElement!==n)return}function id(e){let t=ad(e);return[od(t,e),od(t.reverse(),e)]}function ad(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function od(e,t){for(let n of e)if(!sd(n,{upTo:t}))return n}function sd(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function cd(e){return e instanceof HTMLInputElement&&`select`in e}function ld(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cd(e)&&t&&e.select()}}var ud=dd();function dd(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=fd(e,t),e.unshift(t)},remove(t){e=fd(e,t),e[0]?.resume()}}}function fd(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function pd(e){return e.filter(e=>e.tagName!==`A`)}var md=globalThis?.document?h.useLayoutEffect:()=>{},hd=h.useId||(()=>void 0),gd=0;function _d(e){let[t,n]=h.useState(hd());return md(()=>{e||n(e=>e??String(gd++))},[e]),e||(t?`radix-${t}`:``)}var vd=`Arrow`,yd=h.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,j.jsx)($.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,j.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});yd.displayName=vd;var bd=yd;function xd(e){let[t,n]=h.useState(void 0);return md(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}var Sd=`Popper`,[Cd,wd]=Tu(Sd),[Td,Ed]=Cd(Sd),Dd=e=>{let{__scopePopper:t,children:n}=e,[r,i]=h.useState(null);return(0,j.jsx)(Td,{scope:t,anchor:r,onAnchorChange:i,children:n})};Dd.displayName=Sd;var Od=`PopperAnchor`,kd=h.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=Ed(Od,n),o=h.useRef(null),s=wu(t,o);return h.useEffect(()=>{a.onAnchorChange(r?.current||o.current)}),r?null:(0,j.jsx)($.div,{...i,ref:s})});kd.displayName=Od;var Ad=`PopperContent`,[jd,Md]=Cd(Ad),Nd=h.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:p=0,align:m=`center`,alignOffset:g=0,arrowPadding:_=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:x=`partial`,hideWhenDetached:S=!1,updatePositionStrategy:C=`optimized`,onPlaced:w,...T}=e,E=Ed(Ad,n),[D,O]=h.useState(null),ee=wu(t,e=>O(e)),[te,k]=h.useState(null),A=xd(te),ne=A?.width??0,re=A?.height??0,ie=r+(m===`center`?``:`-`+m),ae=typeof b==`number`?b:{top:0,right:0,bottom:0,left:0,...b},oe=Array.isArray(y)?y:[y],se=oe.length>0,M={padding:ae,boundary:oe.filter(Ld),altBoundary:se},{refs:ce,floatingStyles:le,placement:ue,isPositioned:de,middlewareData:N}=c({strategy:`fixed`,placement:ie,whileElementsMounted:(...e)=>s(...e,{animationFrame:C===`always`}),elements:{reference:E.anchor},middleware:[o({mainAxis:p+re,alignmentAxis:g}),v&&d({mainAxis:!0,crossAxis:!1,limiter:x===`partial`?a():void 0,...M}),v&&l({...M}),u({...M,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),te&&i({element:te,padding:_}),Rd({arrowWidth:ne,arrowHeight:re}),S&&f({strategy:`referenceHidden`,...M})]}),[fe,P]=zd(ue),pe=Pu(w);md(()=>{de&&pe?.()},[de,pe]);let me=N.arrow?.x,he=N.arrow?.y,F=N.arrow?.centerOffset!==0,[ge,_e]=h.useState();return md(()=>{D&&_e(window.getComputedStyle(D).zIndex)},[D]),(0,j.jsx)(`div`,{ref:ce.setFloating,"data-radix-popper-content-wrapper":``,style:{...le,transform:de?le.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ge,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(` `),...N.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,j.jsx)(jd,{scope:n,placedSide:fe,onArrowChange:k,arrowX:me,arrowY:he,shouldHideArrow:F,children:(0,j.jsx)($.div,{"data-side":fe,"data-align":P,...T,ref:ee,style:{...T.style,animation:de?void 0:`none`}})})})});Nd.displayName=Ad;var Pd=`PopperArrow`,Fd={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Id=h.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Md(Pd,n),a=Fd[i.placedSide];return(0,j.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,j.jsx)(bd,{...r,ref:t,style:{...r.style,display:`block`}})})});Id.displayName=Pd;function Ld(e){return e!==null}var Rd=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=zd(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function zd(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Bd=Dd,Vd=kd,Hd=Nd,Ud=Id,Wd=`Portal`,Gd=h.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=h.useState(!1);md(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?m.createPortal((0,j.jsx)($.div,{...r,ref:t}),o):null});Gd.displayName=Wd;function Kd(e,t){return h.useReducer((e,n)=>t[e][n]??e,e)}var qd=e=>{let{present:t,children:n}=e,r=Jd(t),i=typeof n==`function`?n({present:r.isPresent}):h.Children.only(n),a=wu(r.ref,Xd(i));return typeof n==`function`||r.isPresent?h.cloneElement(i,{ref:a}):null};qd.displayName=`Presence`;function Jd(e){let[t,n]=h.useState(),r=h.useRef({}),i=h.useRef(e),a=h.useRef(`none`),[o,s]=Kd(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return h.useEffect(()=>{let e=Yd(r.current);a.current=o===`mounted`?e:`none`},[o]),md(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Yd(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),md(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Yd(r.current).includes(a.animationName);if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Yd(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:h.useCallback(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}function Yd(e){return e?.animationName||`none`}function Xd(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Zd({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=Qd({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=Pu(n);return[o,h.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function Qd({defaultProp:e,onChange:t}){let n=h.useState(e),[r]=n,i=h.useRef(r),a=Pu(t);return h.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}var $d=`Popover`,[ef,tf]=Tu($d,[wd]),nf=wd(),[rf,af]=ef($d),of=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=nf(t),c=h.useRef(null),[l,u]=h.useState(!1),[d=!1,f]=Zd({prop:r,defaultProp:i,onChange:a});return(0,j.jsx)(Bd,{...s,children:(0,j.jsx)(rf,{scope:t,contentId:_d(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:h.useCallback(()=>u(!0),[]),onCustomAnchorRemove:h.useCallback(()=>u(!1),[]),modal:o,children:n})})};of.displayName=$d;var sf=`PopoverAnchor`,cf=h.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=af(sf,n),a=nf(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return h.useEffect(()=>(o(),()=>s()),[o,s]),(0,j.jsx)(Vd,{...a,...r,ref:t})});cf.displayName=sf;var lf=`PopoverTrigger`,uf=h.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=af(lf,n),a=nf(n),o=wu(t,i.triggerRef),s=(0,j.jsx)($.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":wf(i.open),...r,ref:o,onClick:xu(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,j.jsx)(Vd,{asChild:!0,...a,children:s})});uf.displayName=lf;var df=`PopoverPortal`,[ff,pf]=ef(df,{forceMount:void 0}),mf=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=af(df,t);return(0,j.jsx)(ff,{scope:t,forceMount:n,children:(0,j.jsx)(qd,{present:n||a.open,children:(0,j.jsx)(Gd,{asChild:!0,container:i,children:r})})})};mf.displayName=df;var hf=`PopoverContent`,gf=h.forwardRef((e,t)=>{let n=pf(hf,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=af(hf,e.__scopePopover);return(0,j.jsx)(qd,{present:r||a.open,children:a.modal?(0,j.jsx)(_f,{...i,ref:t}):(0,j.jsx)(vf,{...i,ref:t})})});gf.displayName=hf;var _f=h.forwardRef((e,t)=>{let n=af(hf,e.__scopePopover),r=h.useRef(null),i=wu(t,r),a=h.useRef(!1);return h.useEffect(()=>{let e=r.current;if(e)return Wo(e)},[]),(0,j.jsx)(Fo,{as:Du,allowPinchZoom:!0,children:(0,j.jsx)(yf,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xu(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:xu(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:xu(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),vf=h.forwardRef((e,t)=>{let n=af(hf,e.__scopePopover),r=h.useRef(!1),i=h.useRef(!1);return(0,j.jsx)(yf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),yf=h.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=af(hf,n),p=nf(n);return Xu(),(0,j.jsx)(nd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,j.jsx)(Hu,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:(0,j.jsx)(Hd,{"data-state":wf(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),bf=`PopoverClose`,xf=h.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=af(bf,n);return(0,j.jsx)($.button,{type:`button`,...r,ref:t,onClick:xu(e.onClick,()=>i.onOpenChange(!1))})});xf.displayName=bf;var Sf=`PopoverArrow`,Cf=h.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nf(n);return(0,j.jsx)(Ud,{...i,...r,ref:t})});Cf.displayName=Sf;function wf(e){return e?`open`:`closed`}var Tf=of,Ef=uf,Df=mf,Of=gf,kf=Cf;function Af(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function jf(e,t=[]){let n=[];function r(t,r){let i=(0,h.createContext)(r),a=n.length;n=[...n,r];function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,c=(0,h.useMemo)(()=>o,Object.values(o));return(0,h.createElement)(s.Provider,{value:c},r)}function s(n,o){let s=o?.[e][a]||i,c=(0,h.useContext)(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return o.displayName=t+`Provider`,[o,s]}let i=()=>{let t=n.map(e=>(0,h.createContext)(e));return function(n){let r=n?.[e]||t;return(0,h.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Mf(i,...t)]}function Mf(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return(0,h.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Nf(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function Pf(...e){return t=>e.forEach(e=>Nf(e,t))}function Ff(...e){return(0,h.useCallback)(Pf(...e),e)}var If=(0,h.forwardRef)((e,t)=>{let{children:r,...i}=e,a=h.Children.toArray(r),o=a.find(zf);if(o){let e=o.props.children,r=a.map(t=>t===o?h.Children.count(e)>1?h.Children.only(null):(0,h.isValidElement)(e)?e.props.children:null:t);return(0,h.createElement)(Lf,n({},i,{ref:t}),(0,h.isValidElement)(e)?(0,h.cloneElement)(e,void 0,r):null)}return(0,h.createElement)(Lf,n({},i,{ref:t}),r)});If.displayName=`Slot`;var Lf=(0,h.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,h.isValidElement)(n)?(0,h.cloneElement)(n,{...Bf(r,n.props),ref:Pf(t,n.ref)}):h.Children.count(n)>1?h.Children.only(null):null});Lf.displayName=`SlotClone`;var Rf=({children:e})=>(0,h.createElement)(h.Fragment,null,e);function zf(e){return(0,h.isValidElement)(e)&&e.type===Rf}function Bf(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Vf(e){let t=e+`CollectionProvider`,[n,r]=jf(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=h.useRef(null),a=h.useRef(new Map).current;return h.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},s=e+`CollectionSlot`,c=h.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=Ff(t,a(s,n).collectionRef);return h.createElement(If,{ref:i},r)}),l=e+`CollectionItemSlot`,u=`data-radix-collection-item`,d=h.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=h.useRef(null),s=Ff(t,o),c=a(l,n);return h.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),h.createElement(If,{[u]:``,ref:s},r)});function f(t){let n=a(e+`CollectionConsumer`,t);return h.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:c,ItemSlot:d},f,r]}var Hf=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},Uf=h.useId||(()=>void 0),Wf=0;function Gf(e){let[t,n]=h.useState(Uf());return Hf(()=>{e||n(e=>e??String(Wf++))},[e]),e||(t?`radix-${t}`:``)}var Kf=[`a`,`button`,`div`,`h2`,`h3`,`img`,`label`,`li`,`nav`,`ol`,`p`,`span`,`svg`,`ul`].reduce((e,t)=>{let r=(0,h.forwardRef)((e,r)=>{let{asChild:i,...a}=e,o=i?If:t;return(0,h.useEffect)(()=>{window[Symbol.for(`radix-ui`)]=!0},[]),(0,h.createElement)(o,n({},a,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function qf(e){let t=(0,h.useRef)(e);return(0,h.useEffect)(()=>{t.current=e}),(0,h.useMemo)(()=>(...e)=>t.current?.call(t,...e),[])}function Jf({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=Yf({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=qf(n);return[o,(0,h.useCallback)(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function Yf({defaultProp:e,onChange:t}){let n=(0,h.useState)(e),[r]=n,i=(0,h.useRef)(r),a=qf(t);return(0,h.useEffect)(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}var Xf=(0,h.createContext)(void 0);function Zf(e){let t=(0,h.useContext)(Xf);return e||t||`ltr`}var Qf=`rovingFocusGroup.onEntryFocus`,$f={bubbles:!1,cancelable:!0},ep=`RovingFocusGroup`,[tp,np,rp]=Vf(ep),[ip,ap]=jf(ep,[rp]),[op,sp]=ip(ep),cp=(0,h.forwardRef)((e,t)=>(0,h.createElement)(tp.Provider,{scope:e.__scopeRovingFocusGroup},(0,h.createElement)(tp.Slot,{scope:e.__scopeRovingFocusGroup},(0,h.createElement)(lp,n({},e,{ref:t}))))),lp=(0,h.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,...d}=e,f=(0,h.useRef)(null),p=Ff(t,f),m=Zf(o),[g=null,_]=Jf({prop:s,defaultProp:c,onChange:l}),[v,y]=(0,h.useState)(!1),b=qf(u),x=np(r),S=(0,h.useRef)(!1),[C,w]=(0,h.useState)(0);return(0,h.useEffect)(()=>{let e=f.current;if(e)return e.addEventListener(Qf,b),()=>e.removeEventListener(Qf,b)},[b]),(0,h.createElement)(op,{scope:r,orientation:i,dir:m,loop:a,currentTabStopId:g,onItemFocus:(0,h.useCallback)(e=>_(e),[_]),onItemShiftTab:(0,h.useCallback)(()=>y(!0),[]),onFocusableItemAdd:(0,h.useCallback)(()=>w(e=>e+1),[]),onFocusableItemRemove:(0,h.useCallback)(()=>w(e=>e-1),[])},(0,h.createElement)(Kf.div,n({tabIndex:v||C===0?-1:0,"data-orientation":i},d,{ref:p,style:{outline:`none`,...e.style},onMouseDown:Af(e.onMouseDown,()=>{S.current=!0}),onFocus:Af(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(Qf,$f);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable);hp([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current))}}S.current=!1}),onBlur:Af(e.onBlur,()=>y(!1))})))}),up=`RovingFocusGroupItem`,dp=(0,h.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:o,...s}=e,c=Gf(),l=o||c,u=sp(up,r),d=u.currentTabStopId===l,f=np(r),{onFocusableItemAdd:p,onFocusableItemRemove:m}=u;return(0,h.useEffect)(()=>{if(i)return p(),()=>m()},[i,p,m]),(0,h.createElement)(tp.ItemSlot,{scope:r,id:l,focusable:i,active:a},(0,h.createElement)(Kf.span,n({tabIndex:d?0:-1,"data-orientation":u.orientation},s,{ref:t,onMouseDown:Af(e.onMouseDown,e=>{i?u.onItemFocus(l):e.preventDefault()}),onFocus:Af(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Af(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=mp(e,u.orientation,u.dir);if(t!==void 0){e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?gp(n,r+1):n.slice(r+1)}setTimeout(()=>hp(n))}})})))}),fp={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function pp(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function mp(e,t,n){let r=pp(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return fp[r]}function hp(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function gp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var _p=cp,vp=dp;function yp(e,t){return(0,h.useReducer)((e,n)=>t[e][n]??e,e)}var bp=e=>{let{present:t,children:n}=e,r=xp(t),i=typeof n==`function`?n({present:r.isPresent}):h.Children.only(n),a=Ff(r.ref,i.ref);return typeof n==`function`||r.isPresent?(0,h.cloneElement)(i,{ref:a}):null};bp.displayName=`Presence`;function xp(e){let[t,n]=(0,h.useState)(),r=(0,h.useRef)({}),i=(0,h.useRef)(e),a=(0,h.useRef)(`none`),[o,s]=yp(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return(0,h.useEffect)(()=>{let e=Sp(r.current);a.current=o===`mounted`?e:`none`},[o]),Hf(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Sp(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Hf(()=>{if(t){let e=e=>{let n=Sp(r.current).includes(e.animationName);e.target===t&&n&&(0,m.flushSync)(()=>s(`ANIMATION_END`))},n=e=>{e.target===t&&(a.current=Sp(r.current))};return t.addEventListener(`animationstart`,n),t.addEventListener(`animationcancel`,e),t.addEventListener(`animationend`,e),()=>{t.removeEventListener(`animationstart`,n),t.removeEventListener(`animationcancel`,e),t.removeEventListener(`animationend`,e)}}s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:(0,h.useCallback)(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}function Sp(e){return e?.animationName||`none`}var Cp=`Tabs`,[wp,Tp]=jf(Cp,[ap]),Ep=ap(),[Dp,Op]=wp(Cp),kp=(0,h.forwardRef)((e,t)=>{let{__scopeTabs:r,value:i,onValueChange:a,defaultValue:o,orientation:s=`horizontal`,dir:c,activationMode:l=`automatic`,...u}=e,d=Zf(c),[f,p]=Jf({prop:i,onChange:a,defaultProp:o});return(0,h.createElement)(Dp,{scope:r,baseId:Gf(),value:f,onValueChange:p,orientation:s,dir:d,activationMode:l},(0,h.createElement)(Kf.div,n({dir:d,"data-orientation":s},u,{ref:t})))}),Ap=`TabsList`,jp=(0,h.forwardRef)((e,t)=>{let{__scopeTabs:r,loop:i=!0,...a}=e,o=Op(Ap,r),s=Ep(r);return(0,h.createElement)(_p,n({asChild:!0},s,{orientation:o.orientation,dir:o.dir,loop:i}),(0,h.createElement)(Kf.div,n({role:`tablist`,"aria-orientation":o.orientation},a,{ref:t})))}),Mp=`TabsTrigger`,Np=(0,h.forwardRef)((e,t)=>{let{__scopeTabs:r,value:i,disabled:a=!1,...o}=e,s=Op(Mp,r),c=Ep(r),l=Ip(s.baseId,i),u=Lp(s.baseId,i),d=i===s.value;return(0,h.createElement)(vp,n({asChild:!0},c,{focusable:!a,active:d}),(0,h.createElement)(Kf.button,n({type:`button`,role:`tab`,"aria-selected":d,"aria-controls":u,"data-state":d?`active`:`inactive`,"data-disabled":a?``:void 0,disabled:a,id:l},o,{ref:t,onMouseDown:Af(e.onMouseDown,e=>{!a&&e.button===0&&e.ctrlKey===!1?s.onValueChange(i):e.preventDefault()}),onKeyDown:Af(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&s.onValueChange(i)}),onFocus:Af(e.onFocus,()=>{let e=s.activationMode!==`manual`;!d&&!a&&e&&s.onValueChange(i)})})))}),Pp=`TabsContent`,Fp=(0,h.forwardRef)((e,t)=>{let{__scopeTabs:r,value:i,forceMount:a,children:o,...s}=e,c=Op(Pp,r),l=Ip(c.baseId,i),u=Lp(c.baseId,i),d=i===c.value,f=(0,h.useRef)(d);return(0,h.useEffect)(()=>{let e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,h.createElement)(bp,{present:a||d},({present:r})=>(0,h.createElement)(Kf.div,n({"data-state":d?`active`:`inactive`,"data-orientation":c.orientation,role:`tabpanel`,"aria-labelledby":l,hidden:!r,id:u,tabIndex:0},s,{ref:t,style:{...e.style,animationDuration:f.current?`0s`:void 0}}),r&&o))});function Ip(e,t){return`${e}-trigger-${t}`}function Lp(e,t){return`${e}-content-${t}`}var Rp=kp,zp=jp,Bp=Np,Vp=Fp;export{Ir as $,Ft as $n,Fe as $r,In as $t,Is as A,an as An,it as Ar,ar as At,Yr as B,Jt as Bn,Je as Br,Yn as Bt,Yc as C,fn as Cn,dt as Cr,fr as Ct,Rs as D,cn as Dn,st as Dr,cr as Dt,Bs as E,ln as En,ct as Er,lr as Et,ei as F,$t as Fn,$e as Fr,er as Ft,Wr as G,Ut as Gn,Ue as Gr,Wn as Gt,qr as H,Kt as Hn,Ke as Hr,qn as Ht,$r as I,Qt as In,Qe as Ir,$n as It,Vr as J,Bt as Jn,Be as Jr,Vn as Jt,Ur as K,Ht as Kn,He as Kr,Un as Kt,Qr as L,Zt as Ln,Ze as Lr,Qn as Lt,Vs as M,nn as Mn,nt as Mr,rr as Mt,Fs as N,tn as Nn,tt as Nr,nr as Nt,Hs as O,sn as On,ot as Or,sr as Ot,ti as P,en as Pn,et as Pr,tr as Pt,Lr as Q,It as Qn,Ie as Qr,Ln as Qt,Zr as R,Xt as Rn,Xe as Rr,Zn as Rt,Jc as S,pn as Sn,ft as Sr,pr as St,zs as T,un as Tn,lt as Tr,ur as Tt,Kr as U,Gt as Un,Ge as Ur,Kn as Ut,Jr as V,qt as Vn,qe as Vr,Jn as Vt,Gr as W,Wt as Wn,We as Wr,Gn as Wt,zr as X,Rt as Xn,Re as Xr,zn as Xt,Br as Y,zt as Yn,ze as Yr,Bn as Yt,Rr as Z,Lt as Zn,Le as Zr,Rn as Zt,ol as _,_e as _i,vn as _n,_t as _r,vr as _t,kf as a,ke as ai,An as an,kt as ar,Ar as at,Qc as b,w as bi,hn as bn,mt as br,hr as bt,Tf as c,Ee as ci,Dn as cn,Et as cr,Dr as ct,bu as d,Ce as di,wn as dn,Ct as dr,wr as dt,Pe as ei,Fn as en,Pt as er,Fr as et,vu as f,Se as fi,Cn as fn,St as fr,Cr as ft,hu as g,ve as gi,yn as gn,vt as gr,yr as gt,_u as h,ye as hi,bn as hn,yt as hr,br as ht,Rp as i,Ae as ii,jn as in,At as ir,jr as it,Ps as j,rn as jn,rt as jr,ir as jt,Ls as k,on as kn,at as kr,or as kt,Ef as l,Te as li,En as ln,Tt as lr,Er as lt,gu as m,be as mi,xn as mn,bt as mr,xr as mt,zp as n,Me as ni,Nn as nn,Mt as nr,Nr as nt,Of as o,Oe as oi,kn as on,Ot as or,kr as ot,mu as p,xe as pi,Sn as pn,xt as pr,Sr as pt,Hr as q,Vt as qn,Ve as qr,Hn as qt,Vp as r,je as ri,Mn as rn,jt as rr,Mr as rt,Df as s,De as si,On as sn,Dt as sr,Or as st,Bp as t,Ne as ti,Pn as tn,Nt as tr,Pr as tt,yu as u,we as ui,Tn as un,wt as ur,Tr as ut,ul as v,ge as vi,_n as vn,gt as vr,_r as vt,Xc as w,dn as wn,ut as wr,dr as wt,Zc as x,mn as xn,pt as xr,mr as xt,cl as y,ue as yi,gn as yn,ht as yr,gr as yt,Xr as z,Yt as zn,Ye as zr,Xn as zt};
@@ -1 +0,0 @@
1
- import{i as e}from"./use-menu-BiJ8N7sS.js";function t(){let{goBack:t}=e();return t}export{t};
@@ -1 +0,0 @@
1
- import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{l as t,u as n}from"./code-editor-BOIngd5F.js";import{vt as r}from"./react-BHzhHVTZ.js";import{t as i}from"./button-SgR3GVvV.js";import{t as a}from"./input-BOtCd4HP.js";import{c as o,l as s,t as c}from"./api-CA6WiiYM.js";import{a as l,c as u,i as ee,s as te,t as ne}from"./alert-dialog-izlVMXfa.js";var re=`data/schema/note`,ie=`data/schema/link`,ae=`data/schema/tab`,oe=`data/schema/file`,se=`data/schema/drawing`,ce=`data/schema/message/email`,le=`data/schema/task`,d=`data/schema/identity`;function f(e,t){return e.startsWith(`${t}/`)?e.slice(t.length+1):``}var ue={png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,gif:`image/gif`,webp:`image/webp`,bmp:`image/bmp`,svg:`image/svg+xml`,avif:`image/avif`,heic:`image/heic`,heif:`image/heif`,mp3:`audio/mpeg`,wav:`audio/wav`,ogg:`audio/ogg`,oga:`audio/ogg`,m4a:`audio/mp4`,flac:`audio/flac`,aac:`audio/aac`,mp4:`video/mp4`,m4v:`video/mp4`,webm:`video/webm`,mov:`video/quicktime`,mkv:`video/x-matroska`,avi:`video/x-msvideo`,ogv:`video/ogg`,pdf:`application/pdf`,md:`text/markdown`,markdown:`text/markdown`,txt:`text/plain`,json:`application/json`,xml:`application/xml`,csv:`text/csv`,log:`text/plain`,yml:`text/yaml`,yaml:`text/yaml`};function de(e){let t=/\.([a-z0-9]+)$/i.exec(e||``);return t?t[1].toLowerCase():``}function fe(e){return ue[de(e)]}function p(e){return e.startsWith(`image/`)?`image`:e.startsWith(`audio/`)?`audio`:e.startsWith(`video/`)?`video`:e===`application/pdf`?`pdf`:e.startsWith(`text/`)||e.endsWith(`+json`)||e===`application/json`||e===`application/xml`?`text`:null}function pe(e,t){if(e===`text/markdown`||/\.(md|markdown)$/i.test(t||``))return`markdown`;if(e&&e!==`application/octet-stream`){let t=p(e);if(t)return t}let n=fe(t);if(n){let e=p(n);if(e)return e}return`binary`}function me(e){if(!e)return null;try{let t=new URL(e),n=t.hostname.replace(/^www\.|^m\./,``);if(n===`youtu.be`)return t.pathname.slice(1).split(`/`)[0]||null;if(n===`youtube.com`||n===`youtube-nocookie.com`){if(t.pathname===`/watch`)return t.searchParams.get(`v`);let e=t.pathname.match(/^\/(shorts|embed|live)\/([^/]+)/);if(e)return e[2]}return null}catch{return null}}var he=`data/schema/message/email`,ge=`data/schema/tab`,m=`data/schema/task`;function h(e,t){let n=String(e||``).replace(/\s+/g,` `).trim();return n?n.length>t?`${n.slice(0,t)}...`:n:``}function g(e){return String(e||``).replace(/```[\s\S]*?```/g,` `).replace(/`([^`]*)`/g,`$1`).replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/^#{1,6}\s+/gm,``).replace(/^\s*>\s?/gm,``).replace(/^\s*[-*+]\s+/gm,``).replace(/(\*\*|__|\*|_|~~)/g,``)}function _(e){if(!e)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(_).filter(Boolean).join(`, `);if(typeof e==`object`){let t=e,n=String(t.address||``).trim(),r=String(t.name||``).trim();return r&&n&&r!==n?`${r} <${n}>`:r||n}return``}function _e(e){let t=Array.isArray(e?.channels)?e.channels.length:0,n=Array.isArray(e?.identifiers)?e.identifiers.length:0,r=Array.isArray(e?.organizations)?e.organizations.length:0;return[t?`${t} channel${t===1?``:`s`}`:``,n?`${n} identifier${n===1?``:`s`}`:``,r?`${r} organization${r===1?``:`s`}`:``].filter(Boolean).join(` · `)}function ve(e){let t=String(e?.displayName||``).trim();if(t)return t;let n=e?.name;if(!n||typeof n!=`object`)return String(n||``).trim();let r=n;return[r.prefix,r.given,r.middle,r.family,r.suffix].map(e=>String(e||``).trim()).filter(Boolean).join(` `)}function ye(e){let t=String(e?.primaryEmail||``).trim();if(t)return t;let n=Array.isArray(e?.channels)?e.channels:[],r=n.find(e=>e?.kind===`email`&&e?.primary)||n.find(e=>e?.kind===`email`);return String(r?.value||``).trim()}function be(e){try{let t=new URL(e);return`${t.hostname}${t.pathname}`}catch{return e}}function xe(e){return e.schema===`data/schema/file`&&String(e.metadata?.contentType||``).startsWith(`image/`)}var Se=/^(imaps?|pop3s?|mailto|graph|ews|news|nntp):/i;function Ce(e){if(!e||Se.test(e))return``;let t=e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,``),n=t.indexOf(`/`),r=(n>=0?t.slice(n+1):t).split(`/`).filter(Boolean).pop();if(!r)return``;let i;try{i=decodeURIComponent(r)}catch{i=r}return/^stored:\/\//i.test(e)&&!we(i)?``:i}function we(e){return e.length>0&&!/^[a-f0-9]{12,}$/i.test(e)&&!/^[a-f0-9]{16,}\.[A-Za-z0-9]{1,12}$/i.test(e)}function Te(e){return typeof e.comment==`string`?e.comment.trim():``}function v(e){let t=String(e.metadata?.filename||``).trim();if(t)return t;let n=String(e.data?.filename||``).trim();if(n)return n;let r=(e.locations||[]).filter(Boolean),i=r.find(e=>/^stored:\/\/workspace:/i.test(e.url||``)),a=String(i?.metadata?.filename||``).trim();if(a)return a;let o=[...r].sort((e,t)=>String(e.url||``).localeCompare(String(t.url||``))),s=o.find(e=>String(e.metadata?.filename||``).trim());if(s)return String(s.metadata?.filename||``).trim();for(let e of o){let t=Ce(e.url);if(t)return t}return``}function Ee(e){let t=e.data;for(let e of[t.url,t.htmlUrl,t.htmlLink])if(typeof e==`string`&&/^https?:\/\//i.test(e))return e;for(let t of e.locations||[])if(typeof t?.url==`string`&&/^https?:\/\//i.test(t.url))return t.url;return null}function y(e){let t=e.schema===he,n=e.schema===ge,r=e.schema.split(`/`).pop()||e.schema;if(t)return{title:h(e.data.title||e.data.name||e.data.subject,160)||`Email ${e.id}`,preview:h(e.data.bodyPreview||e.data.body||``,140),subtitle:h(_(e.data.from),120),icon:`mail`,isExternal:!1,schemaLabel:r};if(e.schema===`data/schema/message`){let t=e.data.sender,n=e.data.channel;return{title:h(e.data.text,160)||`Message`,preview:h(e.data.text,400),subtitle:[t?.name||t?.displayName||t?.username||t?.id,n?.name||n?.id].filter(Boolean).join(` · `),icon:`mail`,isExternal:!1,schemaLabel:r}}if(n||e.schema===`data/schema/link`){let t=String(e.data.title||e.data.name||e.data.label||``).trim(),n=String(e.data.url||e.data.uri||``).trim();return{title:t||be(n)||`Document ${e.id}`,preview:h(e.data.description||e.data.summary||n,140),subtitle:n,icon:`globe`,isExternal:!!n,schemaLabel:r}}if(e.schema===m||e.schema.startsWith(`${m}/`)){let t=String(e.data.status||(e.data.completed?`completed`:`pending`)).trim(),n=e.data.dueDate?new Date(String(e.data.dueDate)):null,i=n&&!Number.isNaN(n.getTime())?n.toLocaleDateString(void 0,{month:`short`,day:`numeric`}):``;return{title:h(e.data.title||e.data.name,160)||`Task ${e.id}`,preview:h(g(e.data.description||e.data.summary),400),subtitle:[t,i?`due ${i}`:``].filter(Boolean).join(` · `),icon:`file`,isExternal:!1,schemaLabel:r}}if(e.schema===`data/schema/identity`||e.schema.startsWith(`data/schema/identity/`)){let t=ye(e.data),n=f(e.schema,d);return{title:h(ve(e.data),160)||`Identity ${e.id}`,preview:h(_e(e.data),140),subtitle:[t,n].filter(Boolean).join(` · `),icon:t?`mail`:`file`,isExternal:!1,schemaLabel:r}}if(e.schema===`data/schema/file`){let t=v(e),n=String(e.metadata?.contentType||``).trim(),i=e.metadata?.size,a=[n,Number.isFinite(i)?`${i} bytes`:``].filter(Boolean);return{title:h(t||e.data.title||e.data.name,160)||`File ${e.id}`,preview:a.join(` · `),subtitle:t,icon:`file`,isExternal:!1,schemaLabel:r}}return{title:h(e.data.title||e.data.name||e.data.subject||v(e),160)||`Document ${e.id}`,preview:h(g(e.data.content||e.data.description||e.data.summary||e.data.bodyPreview||e.data.body),400),subtitle:``,icon:`file`,isExternal:!1,schemaLabel:r}}function b(e){return e===`alphabetical`||e===`type`}function x(e){return e.schema===`data/schema/file`?(/\.([^.]+)$/.exec(v(e))?.[1]||e.metadata?.contentType||`file`).toLowerCase():e.schema.split(`/`).pop()||e.schema}function S(e,t,n=`asc`){let r=n===`desc`?-1:1,i=(e,t)=>e.localeCompare(t,void 0,{numeric:!0,sensitivity:`base`}),a=e.map(e=>({document:e,title:y(e).title,type:x(e)}));return a.sort((e,n)=>((t===`type`?i(e.type,n.type):0)||i(e.title,n.title)||e.document.id-n.document.id)*r),a.map(({document:e})=>e)}async function C(e,t){let n=[],r=new Set,i,a=0,o=500;for(;i=await t({limit:o,offset:a,page:void 0}),a===0&&i.payload.length&&i.payload.length<o&&(i.totalCount==null||i.payload.length<i.totalCount)&&(o=i.payload.length,i=await t({limit:o,offset:a,page:void 0})),!(!i.payload.length&&(i.totalCount==null||a>=i.totalCount));){let e=0;for(let t of i.payload)r.has(t.id)||(r.add(t.id),n.push(t),e++);if(i.payload.length&&!e)throw Error(`Document pagination did not advance`);if(a+=o,i.totalCount!=null&&a>=i.totalCount)break}let s=S(n,e.sortBy,e.order),c=e.limit??50,l=Math.max(0,e.offset??((e.page??1)-1)*(c||100)),u=c===0?s:s.slice(l,l+c);return{...i,payload:u,count:u.length,totalCount:s.length}}var w=e(n(),1),De=r(),T=t();function Oe(e){return new Promise((t,n)=>{let r=document.createElement(`div`);document.body.appendChild(r);let o=(0,De.createRoot)(r),s=e=>{o.unmount(),r.remove(),e?t(e):n(Error(`Workspace start cancelled`))};function c(){let[t,n]=(0,w.useState)(``);return(0,T.jsx)(ne,{open:!0,onOpenChange:e=>{e||s()},children:(0,T.jsxs)(ee,{children:[(0,T.jsxs)(te,{children:[(0,T.jsx)(u,{children:`Start protected workspace`}),(0,T.jsx)(l,{children:e===`workspace`?`Enter the workspace PIN/password or recovery key to start.`:`Unlock integrations, or start with authenticated integrations unavailable.`})]}),(0,T.jsxs)(`form`,{className:`space-y-4`,onSubmit:e=>{e.preventDefault(),s({passphrase:t})},children:[(0,T.jsxs)(`label`,{className:`space-y-2 block text-sm`,children:[`PIN/password or recovery key`,(0,T.jsx)(a,{autoFocus:!0,type:`password`,autoComplete:`current-password`,value:t,onChange:e=>n(e.target.value)})]}),(0,T.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,T.jsx)(i,{type:`submit`,disabled:!t,children:`Unlock and start`}),e===`secrets`&&(0,T.jsx)(i,{type:`button`,variant:`outline`,onClick:()=>s({withoutSecrets:!0}),children:`Start without integrations`}),(0,T.jsx)(i,{type:`button`,variant:`ghost`,onClick:()=>s(),children:`Cancel`})]})]})]})})}o.render((0,T.jsx)(c,{}))})}var ke={gh:`GitHub`,slack:`Slack`,gcal:`Google Calendar`,caldav:`CalDAV`,msteams:`Microsoft Teams`};function Ae(e){for(let t of e.locations||[]){let e=t?.url;if(typeof e!=`string`)continue;let n=e.indexOf(`://`);if(n<=0)continue;let r=e.slice(0,n),i=ke[r];if(i)return{scheme:r,label:i,url:e}}return null}var E=new Map,D=new Set;function O(){for(let e of D)e()}function je(e){E.set(e,(E.get(e)||0)+1),O()}function Me(e){let t=(E.get(e)||0)-1;t>0?E.set(e,t):E.delete(e),O()}function Ne(e){return D.add(e),()=>{D.delete(e)}}function Pe(e){let t=(0,w.useCallback)(()=>e!=null&&E.has(e),[e]);return(0,w.useSyncExternalStore)(Ne,t,()=>!1)}function Fe(e){let t=Pe(e.id),n=Ae(e),r=t&&n!=null;return{mirror:n,replicating:r,label:r?`Replicating to ${n.label}…`:``}}var k=`context`,A=`data/schema/identity`,Ie=e=>e===`directory`||e===`backends`?`directory`:`context`;function Le(e,t){if(!e||t===`/`)return null;let n=t.split(`/`).filter(Boolean),r=e;for(let e of n)if(r=r?.children?.find(t=>t.name===e),!r)return null;return r??null}var j=new Map,M=new Map;function N(e,t=`/`,n=k,r=`context`){e.append(`treeNameOrTreeId`,n),e.append(`treeType`,r),t&&e.append(`context`,t)}function P(e,t=[]){t.filter(Boolean).forEach(t=>e.append(`allOf`,t))}function Re(e,t=[]){t.filter(Boolean).forEach(t=>e.append(`anyOf`,t))}function ze(e,t=[]){t.filter(Boolean).forEach(t=>e.append(`noneOf`,t))}function Be(e,t=[]){t.filter(Boolean).forEach(t=>e.append(`filters`,t))}function Ve(e,t){for(let n of t??[])e.append(`ids`,String(n))}function He(e,t){for(let n of t??[]){let t=n.op===`allOf`?`+`:n.op===`noneOf`?`!`:``;e.append(`rel`,`${t}${n.p}:${n.of}:${n.dir??`out`}`)}}function F(e,t,n){let r=(t&&t.length?t:n?[n]:[]).map(e=>e.trim()).filter(Boolean);for(let t of r)e.append(`q`,t)}function Ue(e,t=k){return`${o.workspaces}/${e}/trees/${encodeURIComponent(t)}`}function I(e,t=k){return`${e}\0${t}`}function We(e){return String(e||`/`).split(`/`).filter(Boolean).map(encodeURIComponent).join(`/`)}function L(e,t,n){let r=We(n);return`${Ue(e,t)}/path/${r}`}async function Ge(e){let t=await c.get(`${o.workspaces}/${e}`);return t&&`workspace`in t?{...t.workspace,access:t.access}:t}async function Ke(e){return c.get(`${o.workspaces}/${e}/status`)}async function qe(){try{let e=await c.get(o.workspaces);return Array.isArray(e)?e:(console.warn(`listWorkspaces: response.payload is not an array:`,e),[])}catch(e){throw console.error(`Failed to list workspaces:`,e),e}}async function Je(){return c.post(`${o.workspaces}/scan`)}async function Ye(e){try{return await c.post(o.workspaces,e)}catch(e){throw console.error(`Failed to create workspace:`,e),e}}var Xe={resolving:`Resolving token on the remote server…`,exporting:`Remote server is packing the workspace…`,downloading:`Downloading archive…`,extracting:`Extracting…`,loading:`Validating and loading…`,done:`Done`};async function Ze(e){return c.get(`${o.workspaces}/import/jobs/${encodeURIComponent(e)}`)}async function R(e,t,{intervalMs:n=1500,signal:r}={}){for(;;){if(r?.aborted)throw Error(`Import tracking cancelled`);let i=await Ze(e);if(t?.(i),i.status===`done`){if(!i.result)throw Error(`Import finished without returning a workspace`);return i.result}if(i.status===`failed`)throw Error(i.error?.message||`Import failed`);await new Promise(e=>setTimeout(e,n))}}async function Qe(e,t,n,r={}){return R((await c.post(`${o.workspaces}/import`,{url:e,token:t,...r})).id,n)}async function $e(){return c.get(`${o.workspaces}/remotes`)}async function et(e,t,n){return c.post(`${o.workspaces}/remotes`,{url:e,token:t,...n?{label:n}:{}})}async function tt(e){await c.delete(`${o.workspaces}/remotes/${encodeURIComponent(e)}`)}async function nt(e,t={}){return c.post(`${o.workspaces}/${e}/export`,{stop:t.stop===!0})}async function rt(e){return c.get(`${o.workspaces}/${e}/exports`)}async function it(e){await c.delete(`${o.workspaces}/exports/${encodeURIComponent(e)}`)}async function at(e){await c.post(`${o.workspaces}/exports/ticket`);let t=`${o.workspaces}/exports/${encodeURIComponent(e)}`,n=document.createElement(`a`);n.href=t,n.download=e,document.body.appendChild(n),n.click(),n.remove()}async function ot(e,t,n,r={}){return R((await st(e,t,r)).id,n)}function st(e,t,n={}){let r=localStorage.getItem(`authToken`),i=new URLSearchParams({filename:e.name,...n}),a=`${o.workspaces}/import/upload?${i}`;return new Promise((n,i)=>{let o=new XMLHttpRequest;o.open(`POST`,a,!0),o.withCredentials=!0,r&&o.setRequestHeader(`Authorization`,`Bearer ${r}`),o.setRequestHeader(`Content-Type`,`application/octet-stream`),o.upload.onprogress=e=>{e.lengthComputable&&t&&t(e.loaded/e.total)},o.onload=()=>{let e=null;try{e=JSON.parse(o.responseText)}catch{}let t=e?.payload?.job;o.status>=200&&o.status<300&&t?n(t):i(Error(e?.message||`Import failed (HTTP ${o.status})`))},o.onerror=()=>i(Error(`Upload failed — the connection dropped`)),o.onabort=()=>i(Error(`Upload cancelled`)),o.send(e)})}async function ct(e,t,n){let r=await c.post(`${o.workspaces}/import`,{path:e,...t});return`phase`in r?R(r.id,n):r}async function lt(e,t){try{if(!t){let n=await c.get(`${o.workspaces}/${e}/status`),r=n.protection?.mode||`none`;t=n.status!==`active`&&r!==`none`?await Oe(r):{}}let n=await c.post(`${o.workspaces}/${e}/start`,t);return window.dispatchEvent(new CustomEvent(`workspaces:refresh`)),n}catch(e){throw console.error(`Failed to start workspace:`,e),e}}async function ut(e){try{let t=await c.post(`${o.workspaces}/${e}/stop`);return B(e),window.dispatchEvent(new CustomEvent(`workspace:stopped`,{detail:{refs:[e]}})),window.dispatchEvent(new CustomEvent(`workspaces:refresh`)),t}catch(e){throw console.error(`Failed to stop workspace:`,e),e}}async function dt(e){try{return await c.delete(`${o.workspaces}/${e}`)}catch(e){throw console.error(`Failed to remove workspace:`,e),e}}async function ft(e){try{return await c.get(`${o.workspaces}/${e}/trees`)||[]}catch(t){throw console.error(`Failed to list workspace trees ${e}:`,t),t}}async function z(e,t){try{return await c.get(`${o.workspaces}/${e}/trees/${encodeURIComponent(t)}`)}catch(n){throw console.error(`Failed to get workspace tree ${e}/${t}:`,n),n}}function B(e,t){if(!e){j.clear(),M.clear();return}if(!t){let t=`${e}\0`;for(let e of j.keys())e.startsWith(t)&&j.delete(e);for(let e of M.keys())e.startsWith(t)&&M.delete(e);return}let n=I(e,t);j.delete(n),M.delete(n)}var pt=`.trash`;function mt(e){return e?Array.isArray(e.children)?{...e,children:e.children.filter(e=>e?.name!==pt)}:e:null}async function ht(e,t,n={}){let r=I(e,t);if(!n.force&&j.has(r))return j.get(r);if(!n.force&&M.has(r))return M.get(r);let i=z(e,t).then(e=>{let t=mt(e);return M.get(r)===i&&j.set(r,t),t}).finally(()=>{M.get(r)===i&&M.delete(r)});return M.set(r,i),i}function V(e,t,n){let r=new URLSearchParams;He(r,n.rel);let i=new URLSearchParams;return F(i,n.queries,n.q),{treeNameOrTreeId:n.treeName||`context`,...n.treeType?{treeType:n.treeType}:{},context:e||`/`,scope:n.scope??`path`,allOf:t.filter(Boolean),anyOf:(n.anyOf??[]).filter(Boolean),noneOf:(n.noneOf??[]).filter(Boolean),filters:(n.filters??[]).filter(Boolean),rel:r.getAll(`rel`),q:i.getAll(`q`),...n.ids?.length?{ids:[...n.ids]}:{},applyCanvasSpec:n.applyCanvasSpec!==!1,...n.layerId&&n.scope!==`workspace`?{layerId:n.layerId}:{}}}async function H(e,t=`/`,n=[],r={}){if(b(r.sortBy))return C(r,i=>H(e,t,n,{...r,...i,sortBy:void 0,order:`asc`}));try{let i=new URLSearchParams,a=V(t,n,r);for(let[e,t]of Object.entries(a))Array.isArray(t)?t.forEach(t=>i.append(e,String(t))):i.append(e,String(t));r.limit!==void 0&&i.append(`limit`,r.limit.toString()),r.offset!==void 0&&i.append(`offset`,r.offset.toString()),r.page!==void 0&&i.append(`page`,r.page.toString()),r.debug&&i.append(`debug`,`true`),r.debug&&r.debugLimit&&i.append(`debugLimit`,String(r.debugLimit)),r.sortBy&&i.append(`sortBy`,r.sortBy),r.order&&i.append(`order`,r.order);let s=i.toString(),l=`${o.workspaces}/${e}/documents${s?`?`+s:``}`;return await c.getEnvelope(l)}catch(t){throw console.error(`Failed to get workspace documents ${e}:`,t),t}}async function gt(e,t,n=k,r={}){let i=n===`directory`?`directory`:`context`;return H(e,t,r.allOf||[],{treeName:n,treeType:i,limit:r.limit,page:r.page,offset:r.offset,q:r.q,queries:r.queries,anyOf:r.anyOf,noneOf:r.noneOf,filters:r.filters,ids:r.ids,sortBy:r.sortBy,order:r.order,applyCanvasSpec:r.applyCanvasSpec})}async function U(e,t,n,r={}){if(b(r.sortBy))return C(r,i=>U(e,t,n,{...r,...i,sortBy:void 0,order:`asc`}));try{let i=new URLSearchParams;r.limit!==void 0&&i.append(`limit`,r.limit.toString()),r.offset!==void 0&&i.append(`offset`,r.offset.toString()),r.page!==void 0&&i.append(`page`,r.page.toString()),F(i,r.queries,r.q),P(i,r.allOf),Re(i,r.anyOf),ze(i,r.noneOf),Be(i,r.filters),Ve(i,r.ids),r.sortBy&&i.append(`sortBy`,r.sortBy),r.order&&i.append(`order`,r.order);let a=i.toString(),s=`${o.workspaces}/${e}/trees/${encodeURIComponent(t)}/layers/${encodeURIComponent(n)}/documents${a?`?`+a:``}`;return await c.getEnvelope(s)}catch(r){throw console.error(`Failed to get workspace layer documents ${e}/${t}/${n}:`,r),r}}async function _t(e,t){try{return await c.patch(`${o.workspaces}/${e}`,t)}catch(e){throw console.error(`Failed to update workspace:`,e),e}}async function vt(e,t,n=!0,r=k,i=`context`){try{return await c.put(L(e,r,t),{type:i,autoCreateLayers:n}),!0}catch(e){throw console.error(`Failed to insert workspace path ${t}:`,e),e}}async function yt(e,t,n=k,r={}){try{return await c.put(L(e,n,t),{type:`canvas`,...r}),!0}catch(e){throw console.error(`Failed to create workspace canvas ${t}:`,e),e}}async function bt(e,t,n,r,i){let a={metadata:r};return i&&(a.querySpec=i),await c.patch(L(e,n,t),a),!0}async function xt(e,t,n=k){return await c.post(`${s}/pub/c`,{workspaceId:e,path:t,treeName:n})}async function St(e,t,n=k){let r=new URLSearchParams({workspaceId:e,path:t,treeName:n});return await c.get(`${s}/pub/c?${r.toString()}`)}async function Ct(e){return await c.delete(`${s}/pub/c/${encodeURIComponent(e)}`),!0}async function wt(e){let t=await c.get(`${o.workspaces}/${e}/shares`);return{publicCanvasShares:t?.publicCanvasShares||[],emailShares:t?.emailShares||[]}}async function Tt(e,t){return await c.delete(`${o.workspaces}/${e}/shares/public-canvas/${encodeURIComponent(t)}`),!0}async function Et(e,t,n,r=k){try{return await c.patch(L(e,r,t),n),!0}catch(e){throw console.error(`Failed to update workspace path ${t}:`,e),e}}async function Dt(e,t,n=!1,r=k,i=!1,a=!1){try{let o=new URLSearchParams({recursive:n.toString()});return i&&o.set(`purge`,`true`),a&&o.set(`destroy`,`true`),await c.delete(`${L(e,r,t)}?${o.toString()}`),!0}catch(e){throw console.error(`Failed to remove workspace path ${t}:`,e),e}}async function Ot(e,t,n,r=!1,i=k,a,o={}){try{return await c.patch(L(e,i,t),{to:n,recursive:r,...o.mergeDown?{mergeDown:!0}:{},...a&&a!==i?{targetTreeNameOrTreeId:a}:{}}),!0}catch(e){throw console.error(`Failed to move workspace path from ${t} to ${n}:`,e),e}}async function kt(e,t,n,r=!1,i=k,a){try{return await c.post(L(e,i,t),{to:n,recursive:r,...a&&a!==i?{targetTreeNameOrTreeId:a}:{}}),!0}catch(e){throw console.error(`Failed to copy workspace path from ${t} to ${n}:`,e),e}}async function At(e,t,n,r=k,i=`context`){try{let a=G(Array.isArray(n)?n:[n]),s=performance.now();return await c.post(`${o.workspaces}/${e}/documents`,{documentIds:a,treeNameOrTreeId:r,treeType:i,context:t}),console.info(`[paste] linked ${a.length} document(s) → ${r}:${t} in ${Math.round(performance.now()-s)} ms`),!0}catch(e){throw console.error(`Failed to paste documents to workspace path ${t}:`,e),e}}async function jt(e,t,n,r=k,i=`context`){try{let a=Array.isArray(n)?n:[n],s=await c.post(`${o.workspaces}/${e}/documents`,{documents:a,treeNameOrTreeId:r,treeType:i,context:t});return Array.isArray(s)?s:[]}catch(e){throw console.error(`Failed to import documents to workspace path ${t}:`,e),e}}var W=e=>`${o.workspaces}/${e}/pins`,Mt=(e,t)=>`${e}\0${t}`;async function Nt(e){let t=await c.get(W(e));return Array.isArray(t)?t:[]}async function Pt(e,t,n=k){return c.post(W(e),{path:t,tree:n})}async function Ft(e,t){await c.delete(`${W(e)}/${encodeURIComponent(t)}`)}async function It(e,t){let n=await c.patch(`${W(e)}/order`,{order:t});return Array.isArray(n)?n:[]}async function Lt(e,t=k){return await c.get(`${o.workspaces}/${e}/trees/${encodeURIComponent(t)}/layers`)||[]}async function Rt(e,t,n,r=k){return await c.patch(`${o.workspaces}/${e}/trees/${encodeURIComponent(r)}/layers/${t}`,{name:n})}async function zt(e,t,n,r=k){return await c.post(`${o.workspaces}/${e}/trees/${encodeURIComponent(r)}/layers/${t}/lock`,{lockBy:n}),!0}async function Bt(e,t,n,r=k){return await c.post(`${o.workspaces}/${e}/trees/${encodeURIComponent(r)}/layers/${t}/unlock`,{lockBy:n}),!0}async function Vt(e,t,n=k){return await c.delete(`${o.workspaces}/${e}/trees/${encodeURIComponent(n)}/layers/${t}`),!0}async function Ht(e,t,n,r=k){return await c.post(`${o.workspaces}/${e}/trees/${encodeURIComponent(r)}/layers/merge`,{layerId:t,targetLayers:n})}async function Ut(e,t,n=k){return(await c.post(`${o.workspaces}/${e}/trees/${encodeURIComponent(n)}/paths/merge-down`,{path:t}))?.data??null}async function Wt(e,t,n=k){return(await c.post(`${o.workspaces}/${e}/trees/${encodeURIComponent(n)}/paths/subtract-down`,{path:t}))?.data??null}async function Gt(e,t,n,r=k){return await c.post(`${o.workspaces}/${e}/trees/${encodeURIComponent(r)}/layers/subtract`,{layerId:t,targetLayers:n})}function G(e){let t=e.map(e=>typeof e==`number`?e:Number(e));if(t.some(e=>!Number.isFinite(e)))throw Error(`Invalid document ID(s): expected numbers (or numeric strings), got ${JSON.stringify(e)}`);return t}async function Kt(e,t,n=`/`,r=[],i=k,a=`context`,s={}){let l=new URLSearchParams;N(l,n,i,a),P(l,r),s.trashIfOrphaned&&l.append(`trashIfOrphaned`,`true`);let u=G(t);return await c.delete(`${o.workspaces}/${e}/documents/remove?${l.toString()}`,{headers:{"Content-Type":`application/json`},body:JSON.stringify(u)}),!0}async function qt(e,t,n=`/`,r=[],i=k,a=`context`){let s=new URLSearchParams;N(s,n,i,a),P(s,r);let l=G(t);return await c.delete(`${o.workspaces}/${e}/documents?${s.toString()}`,{headers:{"Content-Type":`application/json`},body:JSON.stringify(l)}),!0}async function Jt(e,t){je(t.id);try{await c.put(`${o.workspaces}/${e}/documents`,{documents:[t]})}finally{Me(t.id)}return!0}async function Yt(e,t,n={}){let r={documentIds:G(t)};return n.urls&&(r.urls=n.urls),n.keepDocument&&(r.keepDocument=!0),await c.delete(`${o.workspaces}/${e}/documents/destroy`,{headers:{"Content-Type":`application/json`},body:JSON.stringify(r)})}async function Xt(e,t,n){let r=n.folder?.trim().replace(/^\/+|\/+$/g,``),i=n.filename?.trim();return await c.post(`${o.workspaces}/${e}/documents/transfer`,{documentIds:G(t),to:n.to,mode:n.mode??`copy`,...n.deleteFrom?{deleteFrom:n.deleteFrom}:{},...n.keepDocument?{keepDocument:!0}:{},...r?{folder:r}:{},...i?{filename:i}:{},...n.onConflict?{onConflict:n.onConflict}:{}})}function Zt(e){return typeof e.capabilities?.paths==`boolean`?e.capabilities.paths:e.kind===`storage`&&e.driver!==`cacache`}async function Qt(e,t){return await c.get(`${o.workspaces}/${encodeURIComponent(e)}/documents/${t}`)}async function $t(e,t,n){return await c.get(`${o.workspaces}/${encodeURIComponent(e)}/documents/by-hash/${encodeURIComponent(t)}/${encodeURIComponent(n)}`)}async function en(e,t){return await c.get(`${o.workspaces}/${e}/documents/${t}/locations`)||[]}async function tn(e,t,n){let r=n?`?tree=${encodeURIComponent(n)}`:``;return(await c.get(`${o.workspaces}/${e}/documents/${t}/memberships${r}`))?.memberships||[]}async function nn(e,t,n=500){return(await H(e,`/`,[t?`${A}/${t}`:A],{scope:`workspace`,limit:n})).payload||[]}async function rn(e){return(await c.get(`${o.workspaces}/${encodeURIComponent(e)}/documents/relations/predicates`))?.predicates??[]}async function an(e,t,n={}){let r=new URLSearchParams;n.resolve===!1&&r.set(`resolve`,`false`),n.offset!==void 0&&r.set(`offset`,String(n.offset)),n.limit!==void 0&&r.set(`limit`,String(n.limit)),n.summary&&r.set(`summary`,`true`);let i=r.size?`?${r}`:``;return await c.get(`${o.workspaces}/${e}/documents/${t}/relations${i}`)??{documentId:Number(t),predicates:[],outgoing:[],incoming:[]}}async function on(e,t,n,r,i=`out`){return await c.post(`${o.workspaces}/${e}/documents/${t}/relations`,{p:n,to:Array.isArray(r)?G(r):r,dir:i}),!0}async function sn(e,t,n,r,i=`out`){return await c.delete(`${o.workspaces}/${e}/documents/${t}/relations`,{headers:{"Content-Type":`application/json`},body:JSON.stringify({p:n,to:r,dir:i})}),!0}function K(e,t,n={}){let r=new URLSearchParams;n.version&&r.set(`v`,n.version),n.download&&r.set(`download`,`1`),n.url&&r.set(`url`,n.url),n.format&&r.set(`format`,n.format);let i=r.toString();return`${o.workspaces}/${e}/documents/${t}/content${i?`?${i}`:``}`}async function cn(e,t,n=256,r){let i=localStorage.getItem(`authToken`),a=r?`&v=${encodeURIComponent(r)}`:``,s=await fetch(`${o.workspaces}/${e}/documents/${t}/thumbnail?size=${n}${a}`,{headers:i?{Authorization:`Bearer ${i}`}:{}});if(!s.ok)throw Error(`HTTP ${s.status}`);let c=s.headers.get(`content-type`)||`image/webp`;return{blob:await s.blob(),mime:c}}async function ln(e,t,n={}){let r=localStorage.getItem(`authToken`),i=await fetch(K(e,t,n),{signal:n.signal,headers:r?{Authorization:`Bearer ${r}`}:{}});if(!i.ok)throw Error(`HTTP ${i.status}`);let a=i.headers.get(`content-type`)||`application/octet-stream`;return{blob:await i.blob(),mime:a}}function un(e,t,n={}){return K(e,t,n)}async function dn(e,t){let n=localStorage.getItem(`authToken`);return(await fetch(`${o.workspaces}/${e}/documents/${t}/content-ticket`,{method:`POST`,headers:n?{Authorization:`Bearer ${n}`}:{},credentials:`include`})).ok}async function fn(e,t,n,r={}){let i=localStorage.getItem(`authToken`),a=await fetch(K(e,t,{download:!0,url:r.url}),{headers:i?{Authorization:`Bearer ${i}`}:{}});if(!a.ok)throw Error(`HTTP ${a.status}`);let o=await a.blob(),s=URL.createObjectURL(o),c=document.createElement(`a`);c.href=s,c.download=n,document.body.appendChild(c),c.click(),c.remove(),setTimeout(()=>URL.revokeObjectURL(s),3e4)}async function pn(e,t,n){return c.post(`${o.workspaces}/${e}/documents/purge`,{selection:t,expectedCount:n})}async function mn(e){try{return await c.get(`${o.workspaces}/${e}/services`)}catch(e){throw console.error(`Failed to get workspace services status:`,e),e}}async function hn(e,t){try{return await c.post(`${o.workspaces}/${e}/services/${t}/enable`)}catch(e){throw console.error(`Failed to enable ${t} service:`,e),e}}async function gn(e,t){try{return await c.post(`${o.workspaces}/${e}/services/${t}/disable`)}catch(e){throw console.error(`Failed to disable ${t} service:`,e),e}}var q=e=>`${o.workspaces}/${e}/backends`,J=(e,t,n)=>`${q(e)}/${encodeURIComponent(t)}/${encodeURIComponent(n)}`;async function _n(e,t){let n=t?`${q(e)}/${encodeURIComponent(t)}`:q(e);return await c.get(n)||[]}async function vn(e,t,n){return await c.get(J(e,t,n))}async function yn(e,t,n){return await c.get(`${J(e,t,n)}/usage`)}async function bn(e){return await c.delete(`${o.workspaces}/${e}/thumbnails`)}async function xn(e){return await c.get(`${o.workspaces}/${e}/usage`)}function Sn(e){if(e==null||!Number.isFinite(e))return`—`;if(e<1024)return`${e} B`;let t=[`KB`,`MB`,`GB`,`TB`],n=e,r=`B`;for(let e of t){if(n<1024)break;n/=1024,r=e}return`${n.toFixed(n>=100?0:1)} ${r}`}async function Cn(e,t,n){return await c.post(`${q(e)}/${encodeURIComponent(t)}`,n)}async function wn(e,t,n,r){return await c.patch(J(e,t,n),r)}async function Tn(e,t,n){return await c.delete(J(e,t,n))}async function En(e,t,n){return await c.post(`${J(e,t,n)}/sync`)}async function Dn(e,t,n){return await c.post(`${J(e,t,n)}/sync/cancel`)}async function On(e,t,n){return await c.post(`${J(e,t,n)}/test`)}async function kn(e,t,n){return await c.get(`${J(e,t,n)}/containers`)||[]}async function An(e,t,n,r,i){return await c.post(`${J(e,t,n)}/containers/${encodeURIComponent(r)}/documents`,i)}async function jn(e,t,n,r){return await c.post(`${J(e,t,n)}/containers/${encodeURIComponent(r)}/sync`)}function Mn(e){let t=String(e||``).split(`/`).filter(Boolean);return t[0]!==`imap`||t.length<3||t[t.length-1]===`attachments`?null:{address:t[1]}}async function Nn(e,t,n,r){return c.post(`${J(e,`imap`,t)}/messages/move`,{documentIds:n,targetPath:r})}async function Pn(e,t,n){return await c.get(`${J(e,t,n)}/containers?available=1`)||[]}async function Fn(e,t,n,r){return await c.post(`${J(e,t,n)}/containers`,{folders:r})}async function In(e,t,n,r){return await c.delete(`${J(e,t,n)}/containers/${encodeURIComponent(r)}`)}async function Ln(e,t,n,r,i){return await c.patch(`${J(e,t,n)}/containers/${encodeURIComponent(r)}`,{name:i})}function Y(e,t){if(!t?.length)return null;let n=`/`+String(e||``).split(`/`).filter(Boolean).join(`/`);for(let e of t)if(e.treePath){if(n===e.treePath)return{backend:e,key:``};if(n.startsWith(e.treePath+`/`))return{backend:e,key:n.slice(e.treePath.length+1)}}return null}function Rn(e,t){let n=Y(e,t);if(n)return{driver:n.backend.driver,address:n.backend.address,key:n.key};let r=X(e);return r?{...r,driver:t?.find(e=>e.address===r.address)?.driver||r.driver}:null}function X(e,t){let n=Y(e,t);if(n)return n.backend.driver===`file`?{driver:`file`,address:n.backend.address,key:n.key}:null;let r=String(e||``).split(`/`).filter(Boolean);return r[0]===`workspace`&&r[1]===`git`?null:r[0]===`workspace`&&r.length>=2?{driver:`file`,address:`workspace:${r[1]}`,key:r.slice(2).join(`/`)}:r[0]===`device`&&r.length>=3?{driver:`file`,address:r[2],key:r.slice(3).join(`/`)}:r[0]===`file`&&r.length>=2?{driver:`file`,address:r[1],key:r.slice(2).join(`/`)}:null}function zn(e,t){let n=Y(e,t);if(n){let{backend:e,key:t}=n;return!t||![`file`,`gdrive`].includes(e.driver)||!e.enabled||!e.capabilities.mutableContainers||e.config?.readOnly===!0?null:{driver:e.driver,address:e.address,key:t}}if(t)return null;let r=String(e||``).split(`/`).filter(Boolean);if(r[0]===`gdrive`&&r.length>2)return{driver:`gdrive`,address:r[1],key:r.slice(2).join(`/`)};let i=X(e);return i?.key?i:null}async function Bn(e,t,n,r={}){let i=new URLSearchParams;r.linked!==void 0&&i.append(`linked`,String(r.linked)),r.limit!==void 0&&i.append(`limit`,String(r.limit)),r.offset!==void 0&&i.append(`offset`,String(r.offset));let a=i.toString();return await c.getEnvelope(`${J(e,t,n)}/documents${a?`?${a}`:``}`)}async function Vn(e,t,n){return await c.post(`${q(e)}/${encodeURIComponent(t)}/discover`,n)||[]}function Hn(e,t){let n=Y(e,t);if(n)return{driver:n.backend.driver,address:n.backend.address};let r=String(e||``).split(`/`).filter(Boolean);return r.length<2||r[0]===`workspace`&&r[1]===`git`?null:r[0]===`workspace`?{driver:`file`,address:`workspace:${r[1]}`}:r[0]===`device`?r.length>=3?{driver:`file`,address:r[2]}:null:{driver:r[0],address:r[1]}}var Un=[`internal/`,`context/`,`vfs/`];async function Z(e){try{return(await c.get(`${o.workspaces}/${encodeURIComponent(e)}/bitmaps`)||[]).map(e=>typeof e==`string`?e:e.key??String(e)).filter(e=>e&&!Un.some(t=>e.startsWith(t)))}catch{return[]}}async function Wn(e){return(await Z(e)).filter(e=>e.startsWith(`tag/`)).map(e=>e.slice(4)).filter(Boolean).sort()}async function Gn(e,t){let n=t.replace(/^\/+|\/+$/g,``);if(!n)throw Error(`Bitmap key is required`);if(n.startsWith(`data/`)||n===`data`)throw Error(`data/* bitmaps are protected and cannot be deleted manually`);return await c.delete(`${o.workspaces}/${encodeURIComponent(e)}/bitmaps/${n.split(`/`).map(encodeURIComponent).join(`/`)}`),!0}async function Kn(e,t,n=!0){let r=t.replace(/^data\/dataset\//,``).replace(/^\/+|\/+$/g,``);if(!r)throw Error(`Dataset name is required`);if(r==="default")throw Error(`The "default" dataset is virtual and cannot be deleted`);return await c.delete(`${o.workspaces}/${encodeURIComponent(e)}/datasets/${r.split(`/`).map(encodeURIComponent).join(`/`)}?dropDocuments=${n}`)}function Q(e){return`${o.workspaces}/${encodeURIComponent(e)}/timelines`}async function qn(e){try{return await c.get(Q(e))||[]}catch{return[]}}async function Jn(e){try{return await c.get(`${Q(e)}?verbose=true`)||[]}catch{return[]}}async function Yn(e,t){return await c.post(Q(e),{name:t})}async function Xn(e,t){return await c.delete(`${Q(e)}/${encodeURIComponent(t)}`),!0}async function Zn(e,t){return(await c.post(`${Q(e)}/histogram`,t))?.buckets??[]}async function Qn(e,t){let n=t?`?workspaceId=${encodeURIComponent(t)}`:``;return await c.post(`${o.admin.inferd}/${e?`pause`:`resume`}${n}`)}async function $n(e){return await c.get(`${o.workspaces}/${e}/db/stats`)}async function er(e,t){return await c.put(`${o.workspaces}/${e}/db/tuning`,t)}async function tr(e){let t=await c.get(`${o.workspaces}/${e}/trash`);return Array.isArray(t)?t:[]}async function nr(e,t){return await c.post(`${o.workspaces}/${e}/trash/restore`,{documentIds:G(t)})}async function rr(e,t){return await c.delete(`${o.workspaces}/${e}/trash`,t?.length?{headers:{"Content-Type":`application/json`},body:JSON.stringify({documentIds:G(t)})}:{})}var $=(e,t,n)=>`${o.workspaces}/${e}/members/${encodeURIComponent(`${t}:${n}`)}`;async function ir(e){return c.get(`${o.workspaces}/${e}/members`)}async function ar(e,t,n,r){return c.post(`${o.workspaces}/${e}/members`,{...t,permissions:n,...r?{description:r}:{}})}async function or(e,t,n,r){return c.put($(e,t,n),{permissions:r})}async function sr(e,t,n){await c.delete($(e,t,n))}async function cr(e,t,n){return c.post(`${o.workspaces}/${encodeURIComponent(e)}/documents/copy-to-workspace`,{documentId:t,...n})}async function lr(e,t){return c.post(`${o.workspaces}/${e}/documents/${t}/download`)}export{Ge as $,dn as $t,gn as A,y as An,Wn as At,cn as B,ae as Bn,At as Bt,Gn as C,Mt as Cn,Z as Ct,Xn as D,b as Dn,ir as Dt,it as E,C as En,Lt as Et,at as F,ce as Fn,zt as Ft,yn as G,sn as Gt,Le as H,pe as Hn,pn as Ht,rr as I,oe as In,Ut as It,en as J,Kt as Jt,ht as K,tt as Kt,hn as L,d as Ln,Ht as Lt,un as M,v as Mn,Jn as Mt,fn as N,xe as Nn,ft as Nt,Yt as O,S as On,Nt as Ot,lr as P,se as Pn,qe as Pt,rn as Q,It as Qt,nt as R,ie as Rn,Nn as Rt,Ct as S,Et as Sn,tr as St,qt as T,x as Tn,nn as Tt,Sn as U,f as Un,Tn as Ut,Zn as V,le as Vn,Pt as Vt,vn as W,me as Wn,In as Wt,an as X,Ln as Xt,tn as Y,Dt as Yt,St as Z,Rt as Zt,on as _,Ft as _n,kn as _t,et as a,Qn as an,U as at,yt as b,Jt as bn,_n as bt,Zt as c,ut as cn,z as ct,V as d,En as dn,jt as dt,nr as en,$n as et,Dn as f,jn as fn,ot as ft,An as g,Bt as gn,B as gt,kt as h,Ie as hn,vt as ht,Fn as i,Je as in,H as it,Vn as j,Ee as jn,qn as jt,Vt as k,Te as kn,wt as kt,zn as l,Wt as ln,ar as lt,cr as m,Xt as mn,Qe as mt,Xe as n,Tt as nn,Qt as nt,Hn as o,er as on,mn as ot,bn as p,On as pn,ct as pt,gt as q,dt as qt,Cn as r,bt as rn,$t as rt,X as s,lt as sn,Ke as st,k as t,sr as tn,xn as tt,Rn as u,Gt as un,Mn as ut,xt as v,wn as vn,Bn as vt,Kn as w,Fe as wn,rt as wt,Yn as x,or as xn,$e as xt,Ye as y,_t as yn,Pn as yt,ln as z,re as zn,Ot as zt};
@@ -1 +0,0 @@
1
- import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{l as t,u as n}from"./code-editor-BOIngd5F.js";import{_t as r}from"./react-BHzhHVTZ.js";import{g as i}from"./chunk-62JRHF6Z-vspAGgtK.js";import{Ft as a,Kn as o,Nt as s,Vn as c,X as l,at as u,ht as d,rt as f,vr as p,zn as m}from"./ui-Byg1cZDr.js";import{t as h}from"./button-SgR3GVvV.js";import{t as g}from"./input-BOtCd4HP.js";import{t as _}from"./api-CA6WiiYM.js";import{n as v}from"./use-toast-BlLDqSUO.js";import{Kt as y,Pt as b,a as x,cn as S,mt as C,n as w,qt as ee,sn as T,xt as E,y as D,yn as O}from"./workspace-CrSpR4xf.js";import{a as k,c as A,i as j,l as M,n as N,o as P,r as F,s as I,t as L}from"./alert-dialog-izlVMXfa.js";import{t as R}from"./use-mobile-Db-vWu9Y.js";import"./layer-style-Byl5LNFR.js";import{i as z,r as te,t as B}from"./color-DFEH4BfK.js";import{t as V}from"./workspace-access-C9nZlBBZ.js";import{i as ne}from"./use-menu-BiJ8N7sS.js";import{r as re}from"./last-path-BbXWC3b3.js";import{At as H,Ct as ie,Dt as ae,Et as oe,Mt as se,Nt as ce,St as U,Tt as W,ft as G,jt as le,kt as K,wt as ue}from"./index-CyEIU2rL.js";import{n as de}from"./page-header-DkOHw0g-.js";import{t as q}from"./form-panel-C34lByEH.js";import{t as fe}from"./use-create-panel-DhSNIGtr.js";import{n as pe,t as me}from"./useSocketSubscription-ifW-vnlb.js";import{a as he,i as ge,n as _e,r as ve,t as ye}from"./workspace-import-form-aR-DwHf6.js";var J=e(n(),1),Y=t();function be({workspace:e,onStart:t,onStop:n,onEnter:r,onEdit:i,onSettings:o,onDestroy:s}){let[c,m]=(0,J.useState)(!1),g=e.status===`active`,_=e.type===`universe`||e.name===`universe`,v=e.status===`error`,y=e.status===`not_found`,b=e.isShared===!0||e.type===`shared`,x=e.ownerEmail||e.owner,S=typeof e.sharedVia==`object`&&e.sharedVia?e.sharedVia:null,C=S?.permissions||[],w=C.includes(`admin`)?`admin`:C.includes(`write`)?`read/write`:`read-only`,ee=S?.type===`group`?`via group ${S.principal}`:S?.type===`user`?`shared with you`:``,T=e.origin===`remote`,E=e.status===`offline`,D=z(e.color),O=D?``:`border-border`,R=D?{borderLeftColor:D,borderLeftWidth:`4px`}:{borderLeftWidth:`4px`};return(0,Y.jsx)(Y.Fragment,{children:(0,Y.jsxs)(K,{className:`relative ${O}`,style:R,children:[(0,Y.jsx)(se,{children:(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-2`,children:[(0,Y.jsxs)(`div`,{className:`min-w-0 flex-1 basis-40`,children:[(0,Y.jsx)(ce,{className:`truncate`,children:e.label||e.name}),(0,Y.jsx)(le,{children:b?`Shared from ${x}`:e.description||``})]}),(0,Y.jsxs)(`div`,{className:`flex w-full shrink-0 flex-wrap items-center gap-2 sm:w-auto`,children:[g?(0,Y.jsx)(h,{variant:`outline`,size:`icon`,onClick:()=>n(G(e)),title:`Stop Workspace`,disabled:v||y,children:(0,Y.jsx)(f,{className:`h-4 w-4`})}):(0,Y.jsx)(h,{variant:`outline`,size:`icon`,onClick:()=>t(G(e)),title:E?`Remote unreachable${e.statusMessage?`: ${e.statusMessage}`:``}`:`Start Workspace`,disabled:v||y||E,children:(0,Y.jsx)(a,{className:`h-4 w-4`})}),g&&(0,Y.jsx)(h,{variant:`outline`,size:`icon`,onClick:()=>r(G(e)),title:`Enter Workspace`,disabled:v||y,children:(0,Y.jsx)(p,{className:`h-4 w-4`})}),o&&(0,Y.jsx)(h,{variant:`outline`,size:`icon`,onClick:()=>o(e),title:V(e)?`Workspace settings`:`Workspace settings require admin access`,"aria-label":`Workspace settings`,disabled:y||!V(e),children:(0,Y.jsx)(d,{className:`h-4 w-4`})}),i&&!_&&!b&&(0,Y.jsx)(h,{variant:`outline`,size:`icon`,onClick:()=>i(e),title:`Edit Workspace`,disabled:v||y,children:(0,Y.jsx)(u,{className:`h-4 w-4`})}),s&&!_&&!b&&(0,Y.jsxs)(L,{open:c,onOpenChange:m,children:[(0,Y.jsx)(M,{asChild:!0,children:(0,Y.jsx)(h,{variant:`outline`,size:`icon`,title:T?`Remove remote workspace reference`:`Delete Workspace`,disabled:g&&!T,className:`text-destructive hover:text-destructive hover:bg-destructive/10`,children:(0,Y.jsx)(l,{className:`h-4 w-4`})})}),(0,Y.jsxs)(j,{children:[(0,Y.jsxs)(I,{children:[(0,Y.jsx)(A,{children:T?`Remove remote workspace`:`Delete Workspace`}),(0,Y.jsx)(k,{children:T?(0,Y.jsxs)(Y.Fragment,{children:[`Remove the reference to "`,e.label||e.name,`" from this server?`,(0,Y.jsx)(`br`,{}),(0,Y.jsx)(`br`,{}),`The workspace itself stays untouched on `,e.remote?.url||e.host,`; only the stored share token and the local cache entry are dropped.`]}):(0,Y.jsxs)(Y.Fragment,{children:[`Are you sure you want to delete the workspace "`,e.label||e.name,`"?`,(0,Y.jsx)(`br`,{}),(0,Y.jsx)(`br`,{}),(0,Y.jsx)(`strong`,{children:`This action cannot be undone.`}),` All data associated with this workspace, including documents, contexts, and configurations will be permanently removed.`]})})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsx)(F,{children:`Cancel`}),(0,Y.jsx)(N,{onClick:()=>{s(e),m(!1)},className:`bg-destructive text-destructive-foreground hover:bg-destructive/90`,children:T?`Remove reference`:`Delete Workspace`})]})]})]})]})]})}),(0,Y.jsx)(H,{children:(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Y.jsx)(`div`,{className:`h-3 w-3 rounded-full ${(()=>{switch(e.status){case`active`:return`bg-success`;case`inactive`:case`available`:return`bg-muted-foreground`;case`error`:case`offline`:return`bg-destructive`;case`not_found`:return`bg-muted-foreground`;default:return`bg-accent`}})()}`}),(0,Y.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:(()=>{switch(e.status){case`active`:return`Active`;case`inactive`:return`Inactive`;case`error`:return`Error`;case`not_found`:return`Not Found`;case`available`:return`Available`;case`removed`:return`Removed`;case`destroyed`:return`Destroyed`;case`offline`:return`Offline`;default:return e.status}})()}),_&&(0,Y.jsx)(`span`,{className:`ml-2 rounded-full bg-primary/10 px-2 py-1 text-xs text-primary`,children:`Universe`}),T&&(0,Y.jsxs)(`span`,{className:`ml-2 rounded-full bg-info/10 px-2 py-1 text-xs text-info`,title:e.remote?.url?`${e.remote.url} (${(e.remote.permissions||[]).join(`, `)||`no permissions`})`:void 0,children:[`Remote · `,e.host]}),b&&(0,Y.jsxs)(`span`,{className:`ml-2 rounded-full bg-info/10 px-2 py-1 text-xs text-info`,title:[ee,`${w} access`].filter(Boolean).join(` · `),children:[`Shared · `,w]})]})})]})})}var X=[{value:`full`,icon:o,title:`Standard`,blurb:`Everything in one folder: your files in home/, alongside db/, data/, git/.`,tree:[`workspace.json`,`home/ ← your files`,`db/ data/ cache/ Git/`]},{value:`home`,icon:m,title:`Roaming home`,blurb:`The workspace folder IS your drive. Mount it over WebDAV and it looks like a plain home directory. Canvas keeps its files in a hidden .workspace/.`,tree:[`your files, at the top level`,`.workspace/ ← hidden, ignored`]}];function xe({value:e,onChange:t,disabled:n=!1,idPrefix:r=`workspace-layout`,compact:i=!1}){return(0,Y.jsx)(`div`,{className:i?`space-y-1.5`:`grid gap-2 sm:grid-cols-2`,children:X.map(i=>{let a=e===i.value,o=i.icon;return(0,Y.jsxs)(`button`,{id:`${r}-${i.value}`,type:`button`,role:`radio`,"aria-checked":a,disabled:n,onClick:()=>t(i.value),className:`flex w-full gap-2 rounded-md border p-2.5 text-left transition-colors disabled:opacity-50 ${a?`border-primary bg-accent/40`:`hover:bg-accent/20`}`,children:[(0,Y.jsx)(o,{className:`mt-0.5 h-4 w-4 shrink-0 ${a?`text-primary`:`text-muted-foreground`}`}),(0,Y.jsxs)(`span`,{className:`min-w-0`,children:[(0,Y.jsx)(`span`,{className:`block text-xs font-medium`,children:i.title}),(0,Y.jsx)(`span`,{className:`mt-0.5 block text-[11px] leading-snug text-muted-foreground`,children:i.blurb}),(0,Y.jsx)(`span`,{className:`mt-1 block font-mono text-[10px] leading-relaxed text-muted-foreground/80`,children:i.tree.map(e=>(0,Y.jsx)(`span`,{className:`block truncate`,children:e},e))})]})]},i.value)})})}function Se(){let[e,t]=(0,J.useState)(`full`),[n,r]=(0,J.useState)(!1);return(0,J.useEffect)(()=>{let e=!0;return _.get(`/ping`,{skipAuth:!0}).then(r=>{let i=r?.defaults?.workspaceLayout;e&&!n&&(i===`home`||i===`full`)&&t(i)}).catch(()=>{}),()=>{e=!1}},[]),[e,e=>{r(!0),t(e)}]}function Ce(){let[e,t]=(0,J.useState)([]),[n,a]=(0,J.useState)(!0),[o,l]=(0,J.useState)(null),[u,d]=(0,J.useState)(``),[f,p]=(0,J.useState)(``),[m,_]=(0,J.useState)(B()),[y,x]=(0,J.useState)(null),[C,w]=(0,J.useState)(``),[E,k]=Se(),[A,j]=(0,J.useState)(null),[M,N]=(0,J.useState)(null),[P,F]=(0,J.useState)(!1),I=ae(),[L,V]=fe(),H=he(),[se,ce]=(0,J.useState)(!1),[le,K]=(0,J.useState)(!1),[_e,X]=(0,J.useState)(!1),[Ce,De]=(0,J.useState)(!1),[Z,Q]=(0,J.useState)(null),{showToast:$}=v(),Oe=i(),ke=R(),{openM2Drawer:Ae}=ne(),je=pe();me(je,`workspace`,{"workspace:status:changed":e=>t(t=>t.map(t=>t.id===e.workspaceId?{...t,status:e.status}:t)),"workspace:created":e=>t(t=>[...t,e.workspace]),"workspace:deleted":e=>t(t=>t.filter(t=>t.id!==e.workspaceId)),"workspaces.scanned":({report:e})=>{!e.discovered.length&&!e.adopted.length&&!e.updated.length&&!e.missing.length||b().then(e=>t(W(e))).catch(()=>{})}}),(0,J.useEffect)(()=>{let e=async()=>{try{a(!0);let e=await b();t(W(e)),l(null)}catch(e){console.error(`Workspace fetch error:`,e);let t=`Failed to fetch workspaces`;if(e instanceof Error)t=e.message;else if(typeof e==`object`&&e){let n=e;t=n.message||n.error||n.payload?.message||n.payload?.error||n.statusText||`Failed to fetch workspaces`}l(t),$({title:`Error`,description:t,variant:`destructive`})}finally{a(!1)}};e();let n=()=>{e()};return window.addEventListener(`workspaces:refresh`,n),()=>{window.removeEventListener(`workspaces:refresh`,n)}},[je,$]);let Me=async e=>{if(e.preventDefault(),u.trim()){F(!0);try{let e=await D({name:u,description:f||void 0,color:m,icon:y,label:C||u,layout:E});if(t(t=>[...t,e]),window.dispatchEvent(new CustomEvent(`workspaces:refresh`)),H.selected.size>0){try{await T(e.name);let{ok:t,failed:n}=await ge(e.name,Array.from(H.selected),H.tree);n&&$({title:`Folders`,description:`${t} folder(s) created, ${n} failed`,variant:`destructive`})}catch(e){console.error(`Default folder creation failed:`,e),$({title:`Folders`,description:`Workspace created, but default folders failed`,variant:`destructive`})}H.setSelected(new Set)}d(``),p(``),_(B()),x(null),w(``),$({title:`Success`,description:`Workspace '${e.label||e.name}' created.`}),V(!1)}catch(e){console.error(`Workspace creation error:`,e);let t=`Failed to create workspace`;if(e instanceof Error)t=e.message;else if(typeof e==`object`&&e){let n=e;t=n.message||n.error||n.payload?.message||n.payload?.error||n.statusText||`Failed to create workspace`}$({title:`Error`,description:t,variant:`destructive`})}finally{F(!1)}}},Ne=async e=>{if(e.preventDefault(),Z)try{let e={label:Z.label,description:Z.description,color:Z.color,icon:Z.icon??null};await O(Z.name,e),t(t=>t.map(t=>t.id===Z.id?{...t,...e}:t)),window.dispatchEvent(new CustomEvent(`workspaces:refresh`)),$({title:`Success`,description:`Workspace '${Z.label}' details updated.`}),Q(null)}catch(e){let t=e instanceof Error?e.message:`Failed to update workspace`;$({title:`Error`,description:t,variant:`destructive`})}},Pe=e=>{Q(e)},Fe=async e=>{try{await ee(e.name),t(t=>t.filter(t=>t.id!==e.id)),$({title:`Success`,description:`Workspace '${e.label||e.name}' has been destroyed.`})}catch(e){let t=e instanceof Error?e.message:`Failed to destroy workspace`;$({title:`Error`,description:t,variant:`destructive`})}},Ie=async e=>{try{let n=await T(e);t(e=>e.map(e=>e.id===n.id?{...e,...n}:e)),$({title:`Success`,description:`Workspace '${n.label||n.name}' started.`}),window.dispatchEvent(new CustomEvent(`workspaces:refresh`))}catch(e){console.error(`Workspace start error:`,e);let t=`Failed to start workspace`;if(e instanceof Error)t=e.message;else if(typeof e==`object`&&e){let n=e;t=n.message||n.error||n.payload?.message||n.payload?.error||n.statusText||`Failed to start workspace`}$({title:`Error`,description:t,variant:`destructive`})}},Le=async e=>{try{let n=await S(e);t(e=>e.map(e=>e.id===n.id?{...e,...n}:e)),$({title:`Success`,description:`Workspace '${n.label||n.name}' stopped.`}),window.dispatchEvent(new CustomEvent(`workspaces:refresh`))}catch(e){console.error(`Workspace stop error:`,e);let t=`Failed to stop workspace`;if(e instanceof Error)t=e.message;else if(typeof e==`object`&&e){let n=e;t=n.message||n.error||n.payload?.message||n.payload?.error||n.statusText||`Failed to stop workspace`}$({title:`Error`,description:t,variant:`destructive`})}},Re=e=>{Oe(re(e))},{rowProps:ze,handleProps:Be,draggingIndex:Ve,insertLineClass:He}=oe((n,r)=>{let i=ie(e,n,r);t(i),ue(i,(e,t)=>O(G(e),{order:t})).then(({failed:e})=>{window.dispatchEvent(new CustomEvent(`workspaces:refresh`)),e&&$({title:`Partial reorder`,description:`${e} workspace(s) could not be reordered`,variant:`destructive`})})});return(0,Y.jsxs)(`div`,{className:`space-y-6`,children:[(0,Y.jsx)(de,{title:`Workspaces`,description:`Divide your Universe into self-contained workspaces`,actions:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(h,{variant:`outline`,onClick:()=>ce(e=>!e),className:`max-sm:hidden`,children:`Open shared Workspace (local)…`}),(0,Y.jsx)(h,{variant:`outline`,onClick:()=>X(e=>!e),children:`Import workspace`}),(0,Y.jsx)(h,{variant:`outline`,onClick:()=>K(e=>!e),className:`max-sm:hidden`,children:`Import remote…`}),(0,Y.jsx)(h,{variant:`outline`,onClick:()=>De(e=>!e),className:`max-sm:hidden`,children:`Open remote…`}),!I.local&&!L&&(0,Y.jsxs)(h,{onClick:()=>V(!0),className:`max-sm:h-9 max-sm:w-9 max-sm:p-0`,"aria-label":`Create workspace`,title:`Create workspace`,children:[(0,Y.jsx)(s,{className:`h-4 w-4 sm:mr-2`}),(0,Y.jsx)(`span`,{className:`max-sm:hidden`,children:`Create Workspace`})]})]})}),!I.local&&L&&(0,Y.jsx)(q,{title:`Create New Workspace`,onClose:()=>V(!1),children:(0,Y.jsxs)(`form`,{onSubmit:Me,className:`space-y-4`,children:[(0,Y.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,Y.jsx)(g,{value:u,onChange:e=>d(e.target.value),placeholder:`Workspace Name (e.g., 'my-project')`,disabled:P}),(0,Y.jsx)(g,{value:C,onChange:e=>w(e.target.value),placeholder:`Workspace Label (display name, optional)`,disabled:P})]}),(0,Y.jsx)(g,{value:f,onChange:e=>p(e.target.value),placeholder:`Description (optional)`,disabled:P}),(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Y.jsx)(`label`,{htmlFor:`workspace-color`,className:`text-sm font-medium`,children:`Icon & Color`}),(0,Y.jsx)(`button`,{type:`button`,title:`Pick icon & color`,disabled:P,onClick:e=>j({x:Math.min(e.clientX,window.innerWidth-290),y:Math.min(e.clientY,window.innerHeight-360)}),className:`flex h-10 w-10 items-center justify-center rounded-md border hover:bg-accent`,children:(0,Y.jsx)(r,{icon:y||`ph:stack-fill`,width:22,height:22,color:z(m)})}),(0,Y.jsx)(g,{id:`workspace-color`,type:`color`,value:m,onChange:e=>_(e.target.value),className:`h-10 w-16 p-1`,disabled:P}),(0,Y.jsx)(h,{type:`button`,variant:`outline`,size:`sm`,onClick:()=>_(B()),disabled:P,children:`Randomize`})]}),A&&(0,Y.jsx)(U,{x:A.x,y:A.y,current:{icon:y??void 0,color:m},onChange:e=>{`icon`in e&&x(e.icon??null),`color`in e&&e.color&&_(e.color)},onClose:()=>j(null)}),(0,Y.jsxs)(`div`,{className:`rounded-lg border p-3`,children:[(0,Y.jsx)(`p`,{className:`text-sm font-medium`,children:`Folder structure`}),(0,Y.jsx)(`p`,{className:`mb-3 mt-0.5 text-xs text-muted-foreground`,children:`How the workspace directory is laid out on disk. Fixed once created.`}),(0,Y.jsx)(xe,{value:E,onChange:k,disabled:P,idPrefix:`create-workspace-layout`})]}),(0,Y.jsxs)(`div`,{className:`rounded-lg border p-3`,children:[(0,Y.jsxs)(`p`,{className:`text-sm font-medium`,children:[`Default folders `,(0,Y.jsx)(`span`,{className:`font-normal text-muted-foreground`,children:`(optional)`})]}),(0,Y.jsx)(`p`,{className:`mb-3 mt-0.5 text-xs text-muted-foreground`,children:`Ticked folders are created right after the workspace, with matching icons and colors.`}),(0,Y.jsx)(ve,{selected:H.selected,onToggle:H.toggle,tree:H.tree,onTreeChange:H.setTree,disabled:P,idPrefix:`create-default-folders`})]}),(0,Y.jsxs)(h,{type:`submit`,disabled:P||!u.trim(),children:[(0,Y.jsx)(s,{className:`mr-2 h-4 w-4`}),`Create Workspace`]})]})}),se&&(0,Y.jsx)(Te,{}),Ce&&(0,Y.jsx)(Ee,{onClose:()=>De(!1),onChanged:async()=>{try{t(W(await b()))}catch{}window.dispatchEvent(new CustomEvent(`workspaces:refresh`))}}),_e&&(0,Y.jsx)(q,{title:`Import workspace`,onClose:()=>X(!1),children:(0,Y.jsx)(ye,{onImported:()=>X(!1)})}),le&&(0,Y.jsx)(we,{onImported:e=>{t(t=>t.some(t=>t.id===e.id)?t:[...t,e]),window.dispatchEvent(new CustomEvent(`workspaces:refresh`)),K(!1)},onClose:()=>K(!1)}),(0,Y.jsxs)(`div`,{className:`space-y-4`,children:[(0,Y.jsx)(`h2`,{className:`text-xl font-semibold`,children:`Your Workspaces`}),n&&(0,Y.jsx)(`p`,{className:`text-center text-muted-foreground`,children:`Loading workspaces...`}),o&&(0,Y.jsx)(`div`,{className:`text-center text-destructive`,children:(0,Y.jsx)(`p`,{children:o})}),!n&&!o&&e.length===0&&(0,Y.jsx)(`p`,{className:`text-center text-muted-foreground`,children:`No workspaces found`}),e.length>0&&(0,Y.jsx)(`div`,{className:`grid gap-4`,children:e.map((t,n)=>{let r={...t,createdAt:t.createdAt,updatedAt:t.updatedAt,color:t.color===null?void 0:t.color},i=z(t.color);return(0,Y.jsxs)(`div`,{...ze(n),className:`flex items-stretch rounded-lg ${He(n,e.length)||``} ${Ve===n?`opacity-60`:``}`,children:[(0,Y.jsx)(`button`,{type:`button`,...Be(n),title:`Drag to reorder`,"aria-label":`Drag to reorder`,className:`hidden w-5 shrink-0 cursor-grab items-center justify-center rounded-l-lg active:cursor-grabbing md:flex ${i?``:`bg-muted`}`,style:i?{backgroundColor:i}:void 0,children:(0,Y.jsx)(c,{className:`h-4 w-4 ${te(i)}`})}),(0,Y.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,Y.jsx)(be,{workspace:r,onStart:Ie,onStop:Le,onEnter:Re,onEdit:Pe,onSettings:e=>{ke?Ae(`workspaces`,`settings`,G(e)):Oe(`/workspaces/${G(e)}/settings/general`)},onDestroy:Fe})})]},t.id)})})]}),Z&&(0,Y.jsxs)(`div`,{className:`space-y-4`,children:[(0,Y.jsxs)(`h2`,{className:`text-xl font-semibold`,children:[`Edit Workspace: `,Z.label]}),(0,Y.jsxs)(`form`,{onSubmit:Ne,className:`space-y-4`,children:[(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`label`,{htmlFor:`edit-label`,className:`text-sm font-medium`,children:`Label`}),(0,Y.jsx)(g,{id:`edit-label`,value:Z.label,onChange:e=>Q(t=>t?{...t,label:e.target.value}:null),placeholder:`Workspace Label`})]}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`label`,{htmlFor:`edit-description`,className:`text-sm font-medium`,children:`Description`}),(0,Y.jsx)(g,{id:`edit-description`,value:Z.description||``,onChange:e=>Q(t=>t?{...t,description:e.target.value}:null),placeholder:`Description (optional)`})]}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`label`,{htmlFor:`edit-color`,className:`text-sm font-medium`,children:`Icon & Color`}),(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Y.jsx)(`button`,{type:`button`,title:`Pick icon & color`,onClick:e=>N({x:Math.min(e.clientX,window.innerWidth-290),y:Math.min(e.clientY,window.innerHeight-360)}),className:`flex h-10 w-10 items-center justify-center rounded-md border hover:bg-accent`,children:(0,Y.jsx)(r,{icon:Z.icon||`ph:stack-fill`,width:22,height:22,color:z(Z.color)})}),(0,Y.jsx)(g,{id:`edit-workspace-color`,type:`color`,value:Z.color||`#FFFFFF`,onChange:e=>Q(t=>t?{...t,color:e.target.value}:null),className:`h-10 w-16 p-1`}),(0,Y.jsx)(h,{type:`button`,variant:`outline`,size:`sm`,onClick:()=>Q(e=>e?{...e,color:B()}:null),children:`Randomize Color`})]})]}),(0,Y.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Y.jsx)(h,{type:`submit`,disabled:!Z.label?.trim(),children:`Save Changes`}),(0,Y.jsx)(h,{type:`button`,variant:`outline`,onClick:()=>Q(null),children:`Cancel`})]})]}),M&&(0,Y.jsx)(U,{x:M.x,y:M.y,current:{icon:Z.icon??void 0,color:Z.color??void 0},onChange:e=>{Q(t=>{if(!t)return null;let n={...t};return`icon`in e&&(n.icon=e.icon??null),`color`in e&&e.color&&(n.color=e.color),n})},onClose:()=>N(null)})]})]})}function we({onImported:e,onClose:t}){let{showToast:n}=v(),[r,i]=(0,J.useState)(``),[a,o]=(0,J.useState)(``),[s,c]=(0,J.useState)(``),[l,u]=(0,J.useState)(``),[d,f]=(0,J.useState)(!1),[p,m]=(0,J.useState)(``);return(0,Y.jsx)(q,{title:`Import (pull) a remote Workspace`,onClose:t,children:(0,Y.jsxs)(`form`,{onSubmit:async t=>{t.preventDefault();let i;try{i=new URL(r.trim()).origin}catch{n({title:`Error`,description:`Invalid server URL`,variant:`destructive`});return}if(!a.trim().startsWith(`canvas-`)){n({title:`Error`,description:`Invalid access token (expected canvas-...)`,variant:`destructive`});return}f(!0),m(`Starting…`);try{let t=await C(i,a.trim(),e=>{m(w[e.phase]||e.phase)},{name:s.trim(),label:l.trim()});n({title:`Success`,description:`Workspace '${t.label||t.name}' imported from ${i}.`}),e(t)}catch(e){let t=e,r=t?.message||t?.payload?.message||`Failed to import remote workspace`;n({title:`Error`,description:r,variant:`destructive`})}finally{f(!1),m(``)}},className:`space-y-3`,children:[(0,Y.jsxs)(`div`,{className:`grid gap-2 md:grid-cols-3`,children:[(0,Y.jsx)(g,{placeholder:`Server URL (e.g., https://my.canvas-server.tld)`,value:r,onChange:e=>i(e.target.value),disabled:d}),(0,Y.jsx)(g,{placeholder:`Workspace share token (canvas-...)`,value:a,onChange:e=>o(e.target.value),disabled:d}),(0,Y.jsx)(h,{type:`submit`,disabled:d||!r.trim()||!a.trim()||!s.trim()||!l.trim(),children:d?`Importing…`:`Import Workspace`})]}),(0,Y.jsx)(_e,{name:s,label:l,setName:c,setLabel:u,disabled:d}),d&&p&&(0,Y.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:p}),(0,Y.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Pulls a full `,(0,Y.jsx)(`strong`,{children:`copy`}),` of the workspace from the remote canvas-server into this one, where it then lives independently. The remote workspace is stopped while it is packed, and large workspaces can take several minutes — progress is shown above.`]})]})})}function Te(){let{showToast:e}=v(),[t,n]=(0,J.useState)(``),[r,i]=(0,J.useState)(``),[a,o]=(0,J.useState)(!1),s=e=>{try{return new URL(e)}catch{return null}};return(0,Y.jsxs)(`div`,{className:`space-y-3`,children:[(0,Y.jsx)(`h2`,{className:`text-xl font-semibold`,children:`Open shared Workspace (local)`}),(0,Y.jsxs)(`div`,{className:`grid gap-2 md:grid-cols-3`,children:[(0,Y.jsx)(g,{placeholder:`Shared URL (e.g., https://host/rest/v2/pub/workspaces/ID)`,value:t,onChange:e=>n(e.target.value)}),(0,Y.jsx)(g,{placeholder:`Access token (canvas-...)`,value:r,onChange:e=>i(e.target.value)}),(0,Y.jsx)(h,{onClick:async()=>{if(!s(t.trim())){e({title:`Error`,description:`Invalid URL`,variant:`destructive`});return}if(!r.trim().startsWith(`canvas-`)){e({title:`Error`,description:`Invalid access token`,variant:`destructive`});return}o(!0);try{sessionStorage.setItem(`sharedToken:last`,r.trim());let e=new URLSearchParams({url:t.trim()}).toString();window.location.href=`/shared?${e}`}catch(t){e({title:`Error`,description:t instanceof Error?t.message:`Failed to open shared resource`,variant:`destructive`})}finally{o(!1)}},disabled:a||!t.trim()||!r.trim(),children:`Open`})]}),(0,Y.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`We use your provided URL and token to fetch via the remote's public API.`})]})}function Ee({onClose:e,onChanged:t}){let{showToast:n}=v(),r=i(),[a,o]=(0,J.useState)(``),[s,c]=(0,J.useState)(``),[l,u]=(0,J.useState)(!1),[d,f]=(0,J.useState)([]),p=(0,J.useCallback)(async()=>{try{f(await E())}catch{f([])}},[]);(0,J.useEffect)(()=>{p()},[p]);let m=async e=>{e.preventDefault();let r;try{r=new URL(a.trim()).origin}catch{n({title:`Error`,description:`Invalid server URL`,variant:`destructive`});return}u(!0);try{let e=await x(r,s.trim());n({title:`Remote workspace added`,description:`'${e.label}' is available as ${e.address}.`}),o(``),c(``),await p(),t?.()}catch(e){let t=e;n({title:`Error`,description:t?.message||t?.payload?.message||`Failed to add remote workspace`,variant:`destructive`})}finally{u(!1)}},_=async e=>{try{await y(e.id),await p(),t?.()}catch(e){n({title:`Error`,description:e instanceof Error?e.message:`Failed to remove remote workspace`,variant:`destructive`})}};return(0,Y.jsxs)(q,{title:`Open a remote Workspace`,onClose:e,children:[(0,Y.jsxs)(`form`,{onSubmit:m,className:`space-y-3`,children:[(0,Y.jsxs)(`div`,{className:`grid gap-2 md:grid-cols-3`,children:[(0,Y.jsx)(g,{placeholder:`Server URL (e.g., https://my.canvas-server.tld)`,value:a,onChange:e=>o(e.target.value),disabled:l}),(0,Y.jsx)(g,{placeholder:`Workspace share token (canvas-...)`,value:s,onChange:e=>c(e.target.value),disabled:l}),(0,Y.jsx)(h,{type:`submit`,disabled:l||!a.trim()||!s.trim(),children:l?`Checking…`:`Add Remote`})]}),(0,Y.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Keeps the workspace on its own server and registers it here as`,` `,(0,Y.jsx)(`code`,{className:`font-mono text-xs`,children:`name@host`}),` — nothing is copied. Every call you make to it is forwarded to the remote with the share token (its permissions apply); document content and thumbnails are cached locally so they stay readable when the remote is offline. Use “Import remote…” if you want an independent local copy instead.`]})]}),d.length>0&&(0,Y.jsx)(`ul`,{className:`mt-4 space-y-2 border-t pt-3`,children:d.map(e=>(0,Y.jsxs)(`li`,{className:`flex flex-col gap-2 rounded-md border p-2 sm:flex-row sm:items-center sm:justify-between`,children:[(0,Y.jsxs)(`div`,{className:`min-w-0`,children:[(0,Y.jsxs)(`div`,{className:`truncate text-sm font-medium`,children:[e.label,(0,Y.jsx)(`span`,{className:`ml-2 rounded bg-muted px-1.5 py-0.5 text-[10px] uppercase tracking-wide text-muted-foreground`,children:`remote`})]}),(0,Y.jsxs)(`div`,{className:`mt-0.5 truncate font-mono text-[11px] text-muted-foreground`,children:[e.address,` · `,e.remote.url]})]}),(0,Y.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,Y.jsx)(h,{type:`button`,variant:`outline`,size:`sm`,onClick:()=>r(`/workspaces/${e.address}`),children:`Open`}),(0,Y.jsx)(h,{type:`button`,variant:`outline`,size:`sm`,onClick:()=>_(e),className:`text-destructive hover:text-destructive`,children:`Remove`})]})]},e.id))})]})}export{Ce as default};